-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [] add cma adapter to sdk #816
Merged
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
432d721
chore: bump contentful-management from 7.19.1 to 7.20.0 (#718)
dependabot-preview[bot] d659377
chore: bump @typescript-eslint/eslint-plugin from 4.23.0 to 4.24.0 (#…
dependabot-preview[bot] 1bbdd5a
chore: bump rollup from 2.47.0 to 2.48.0 (#715)
dependabot-preview[bot] d2a332c
chore: bump @typescript-eslint/parser from 4.23.0 to 4.24.0 (#720)
dependabot-preview[bot] be74fa1
chore: bump contentful-management from 7.20.0 to 7.20.1 (#723)
dependabot-preview[bot] a4ced70
test: [] change stale limit to 2 hours (#721)
loweisz f81dad3
test: retry visit on integration tests (#724)
loweisz e72f633
chore: bump contentful-management from 7.20.1 to 7.22.0 (#726)
dependabot-preview[bot] 6b7d89d
chore: bump ts-node from 9.1.1 to 10.0.0 (#729)
dependabot-preview[bot] 2536c05
chore: bump eslint-plugin-import from 2.23.2 to 2.23.3 (#731)
dependabot-preview[bot] 32c6c1b
chore: bump dotenv from 9.0.2 to 10.0.0 (#733)
dependabot-preview[bot] 755380d
chore: bump contentful-management from 7.22.0 to 7.22.2 (#728)
dependabot-preview[bot] a4fc5e5
chore: bump rollup from 2.48.0 to 2.49.0 (#727)
dependabot-preview[bot] 82b14f4
chore: bump eslint from 7.26.0 to 7.27.0 (#730)
dependabot-preview[bot] 767eb99
chore: bump jsdom from 16.5.3 to 16.6.0 (#732)
dependabot-preview[bot] c852c89
chore: bump cypress from 7.3.0 to 7.4.0 (#734)
dependabot-preview[bot] 6bda926
chore: bump @typescript-eslint/parser from 4.24.0 to 4.25.0 (#735)
dependabot-preview[bot] 4471ab7
chore: bump eslint-config-standard from 16.0.2 to 16.0.3 (#738)
dependabot-preview[bot] e6541ae
chore: bump @types/nanoid from 2.1.0 to 3.0.0 (#736)
dependabot-preview[bot] 52bc3da
chore: bump @typescript-eslint/eslint-plugin from 4.24.0 to 4.25.0 (#…
dependabot-preview[bot] 92d6373
chore: bump rollup from 2.49.0 to 2.50.0 (#740)
dependabot-preview[bot] 3a10a67
chore: bump eslint-plugin-promise from 4.3.1 to 5.1.0 (#743)
dependabot-preview[bot] 0ecffa5
chore: bump sinon-chai from 3.6.0 to 3.7.0 (#741)
dependabot-preview[bot] 86b3969
chore: bump @types/sinon from 10.0.0 to 10.0.1 (#742)
dependabot-preview[bot] d6e13f9
chore: bump rollup from 2.50.0 to 2.50.1 (#746)
dependabot-preview[bot] e824585
chore: bump contentful-management from 7.22.2 to 7.22.4 (#749)
dependabot-preview[bot] ff6f987
chore: bump sinon from 10.0.1 to 11.1.1 (#748)
dependabot-preview[bot] eea4409
chore: bump rollup from 2.50.1 to 2.50.2 (#751)
dependabot-preview[bot] 8d1f932
chore: bump eslint-plugin-react from 7.23.2 to 7.24.0 (#755)
dependabot-preview[bot] 1938ed7
chore: bump eslint-plugin-import from 2.23.3 to 2.23.4 (#757)
dependabot-preview[bot] 10c5ee7
chore: bump rollup from 2.50.2 to 2.50.5 (#756)
dependabot-preview[bot] b8a9234
test: adds integration alias tests (#752)
loweisz 557d07b
chore: bump ws from 7.4.5 to 7.4.6 (#754)
dependabot[bot] d68adb4
chore: bump y18n from 3.2.1 to 3.2.2 in /test/extensions/test-extensi…
dependabot[bot] c35bc21
chore: bump @typescript-eslint/eslint-plugin from 4.25.0 to 4.26.0 (#…
dependabot-preview[bot] 8b33189
chore: bump @typescript-eslint/parser from 4.25.0 to 4.26.0 (#759)
dependabot-preview[bot] 3debaff
chore: bump browserslist in /test/extensions/test-extension (#739)
dependabot[bot] 0421be5
chore: bump hosted-git-info in /test/extensions/test-extension (#690)
dependabot[bot] 28122df
chore: bump lodash in /test/extensions/test-extension (#687)
dependabot[bot] d1ea939
chore: bump elliptic in /test/extensions/test-extension (#585)
dependabot[bot] 0031a8d
chore: bump typescript from 4.1.5 to 4.3.2 (#747)
dependabot-preview[bot] cbf3a74
chore: bump @types/sinon from 10.0.1 to 10.0.2 (#760)
dependabot-preview[bot] 1119fa6
chore: [] upgrade to GitHub-native Dependabot (#670)
dependabot-preview[bot] e3b3482
chore(deps-dev): bump rollup from 2.50.5 to 2.50.6 (#762)
dependabot[bot] fb87340
chore(deps-dev): bump @testing-library/dom from 7.31.0 to 7.31.2 (#763)
dependabot[bot] b7a8d26
chore: add tracking for old uie assets (#764)
shikaan dfcd14b
chore(deps-dev): bump eslint from 7.27.0 to 7.28.0 (#768)
dependabot[bot] 21a4f07
chore(deps-dev): bump @typescript-eslint/parser from 4.26.0 to 4.26.1…
dependabot[bot] f5ffb28
chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 (#767)
dependabot[bot] bdbc683
chore: update CODEOWNERS (#777)
andipaetzold 1e3f86d
chore(deps-dev): bump cypress from 7.4.0 to 7.5.0 (#772)
dependabot[bot] 3f72566
chore(deps): bump trim-newlines from 3.0.0 to 3.0.1 (#773)
dependabot[bot] 70f020e
chore(deps): bump glob-parent from 5.1.1 to 5.1.2 (#774)
dependabot[bot] ec69b23
chore(deps-dev): bump rollup from 2.50.6 to 2.51.1 (#775)
dependabot[bot] 5b4f641
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#771)
dependabot[bot] a2ac3be
chore(deps): bump normalize-url from 5.3.0 to 5.3.1 (#778)
dependabot[bot] 492f3cc
chore(deps): bump ws in /test/extensions/test-extension (#780)
dependabot[bot] dd58cd3
chore(deps-dev): bump @types/jsdom from 16.2.10 to 16.2.11 (#779)
dependabot[bot] ed0bf60
feat: add due date as a task field type (#776)
ronaldronson 4bbfc7c
chore: 3.35.0 [skip ci]
semantic-release-bot 5c0aba2
chore(deps-dev): bump tslib from 2.2.0 to 2.3.0 (#786)
dependabot[bot] f55f2ca
chore: remove tracking for old uie assets (#782)
shikaan 3695d2b
chore(deps-dev): bump contentful-management from 7.22.4 to 7.24.0 (#784)
dependabot[bot] 333d3dc
chore(deps-dev): bump @typescript-eslint/eslint-plugin (#790)
dependabot[bot] 65a9cdd
chore(deps-dev): bump rollup from 2.51.1 to 2.52.1 (#796)
dependabot[bot] a5b8dac
feat: add interface for space.getTeams [HOMER-75] (#789)
Chaoste de68c37
chore: 3.36.0 [skip ci]
semantic-release-bot 1735bad
chore(deps-dev): bump @typescript-eslint/parser from 4.26.1 to 4.27.0…
dependabot[bot] e0fe688
feat: add type parameter to create task input data (#809)
ronaldronson c535086
chore: 3.37.0 [skip ci]
semantic-release-bot f0037da
chore(deps): bump color-string in /test/extensions/test-extension (#810)
dependabot[bot] 33ce481
chore(deps-dev): bump @typescript-eslint/parser from 4.27.0 to 4.28.0…
dependabot[bot] 48a32b2
chore(deps-dev): bump rollup from 2.52.1 to 2.52.2 (#803)
dependabot[bot] 62d717c
chore(deps-dev): bump eslint from 7.28.0 to 7.29.0 (#802)
dependabot[bot] ad371f8
chore(deps-dev): bump typescript from 4.3.2 to 4.3.4 (#800)
dependabot[bot] ed66062
chore(deps-dev): bump contentful-management from 7.24.0 to 7.25.1 (#801)
dependabot[bot] 7a20fc6
chore(deps-dev): bump cypress from 7.5.0 to 7.6.0 (#811)
dependabot[bot] faebab9
test: [] check for slide in visibility instead of is clicked variable…
loweisz a178962
feat: add cma adapter to sdk
loweisz b5f1d90
fix: use correct string constant
loweisz a43f3f6
fix: add correct types
loweisz 10eaf6e
test: fix openAsset waitForSlideIn test (#817)
f644921
chore: cleanup
loweisz 992f58e
Merge branch 'master' into cma-adapter-call
loweisz 9cb6efe
refactor: change property name
loweisz d8a1fd7
test: fix test and types
loweisz ca0ac69
Merge branch 'cma-adapter-call' of https://github.com/contentful/ui-e…
loweisz a67e0b0
refactor: remove prettier changes
loweisz bad1059
fix: fix leftover
loweisz 6081558
docs: change comment wording
loweisz 6c15b71
Merge branch 'canary' into cma-adapter-call
loweisz 55a6ecc
fix: cleanup
loweisz 1a05f9f
fix: types
loweisz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Channel } from './channel' | ||
import { Adapter, MakeRequestOptions, MakeRequestWithUserAgent } from 'contentful-management/types' | ||
|
||
const createMakeRequestCall = (channel: Channel): MakeRequestWithUserAgent => { | ||
return (opts: MakeRequestOptions) => channel.call('CMAAdapterCall', opts) as Promise<any> | ||
} | ||
|
||
export function createAdapter(channel: Channel): Adapter { | ||
return { | ||
makeRequest: createMakeRequestCall(channel), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were originally planning to just call this
adapter
- right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we thought the name
adapter
is a little generic and therefore went forcmaAdapter
in case there will be more adapters in the future (e.g. GraphQL adapter?).Also, the name anyway doesn't match with the
cma.js
as it needs to passed in there asapiAdapter