contentful-ui-extensions-sdk
Advanced tools
Comparing version 4.0.0-alpha.36 to 4.0.0
216
CHANGELOG.md
@@ -1,229 +0,41 @@ | ||
# [4.0.0-alpha.36](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.35...v4.0.0-alpha.36) (2021-09-30) | ||
# [4.0.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.42.0...v4.0.0) (2021-10-05) | ||
### Bug Fixes | ||
* feat!: App SDK v4 (#1008) ([08e1309](https://github.com/contentful/ui-extensions-sdk/commit/08e130967be1e14e2970043e633c87dad7dc709a)), closes [#1008](https://github.com/contentful/ui-extensions-sdk/issues/1008) | ||
* add patch in message for canary ([#999](https://github.com/contentful/ui-extensions-sdk/issues/999)) ([54b46d7](https://github.com/contentful/ui-extensions-sdk/commit/54b46d7c2d6885f4c50ea1d300c6151d2d16c808)) | ||
# [4.0.0-alpha.35](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.34...v4.0.0-alpha.35) (2021-09-28) | ||
### BREAKING CHANGES | ||
* breaking changes in typings, new `cmaAdapter`, Space API deprecation | ||
### Bug Fixes | ||
# [3.42.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.41.0...v3.42.0) (2021-10-01) | ||
* remove Promise<...> type from OnConfigureHandlerReturn ([#992](https://github.com/contentful/ui-extensions-sdk/issues/992)) ([19bbfbb](https://github.com/contentful/ui-extensions-sdk/commit/19bbfbb469cfb7904d05eb90df9e4f061e59f563)) | ||
# [4.0.0-alpha.34](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.33...v4.0.0-alpha.34) (2021-09-24) | ||
### Features | ||
* **AccessAPI:** add support for JSON patches in access sdk [EXT-3041] ([#972](https://github.com/contentful/ui-extensions-sdk/issues/972)) ([8fad304](https://github.com/contentful/ui-extensions-sdk/commit/8fad304a945393e6f32346034e9c69873eb767d1)) | ||
- show better warning for DATA_CLONE_ERR [EXT-2761] ([#989](https://github.com/contentful/ui-extensions-sdk/issues/989)) ([fb82d86](https://github.com/contentful/ui-extensions-sdk/commit/fb82d866c4ffc97554673ea8e32bc8b81fa5f33c)) | ||
# [4.0.0-alpha.33](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.32...v4.0.0-alpha.33) (2021-09-14) | ||
# [3.41.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.40.1...v3.41.0) (2021-09-29) | ||
### Features | ||
* [EXT-2970] add space api deprecation warnings ([#949](https://github.com/contentful/ui-extensions-sdk/issues/949)) ([784e8bb](https://github.com/contentful/ui-extensions-sdk/commit/784e8bbf17d91721f26b35ee307409bb24717bad)) | ||
- Include patch in message ([#997](https://github.com/contentful/ui-extensions-sdk/issues/997)) ([0a97537](https://github.com/contentful/ui-extensions-sdk/commit/0a97537e3426dfb9a2c95365ae4c96eeb848d8b4)) | ||
# [4.0.0-alpha.32](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.31...v4.0.0-alpha.32) (2021-09-13) | ||
## [3.40.1](https://github.com/contentful/ui-extensions-sdk/compare/v3.40.0...v3.40.1) (2021-09-23) | ||
### Bug Fixes | ||
* EXT-3073 typings ([#960](https://github.com/contentful/ui-extensions-sdk/issues/960)) ([e66f421](https://github.com/contentful/ui-extensions-sdk/commit/e66f42116200db13be0ab320ec9f195f4c57af1e)) | ||
- **AccessSDK:** patch action isn't supported ([#987](https://github.com/contentful/ui-extensions-sdk/issues/987)) ([7aff0ae](https://github.com/contentful/ui-extensions-sdk/commit/7aff0aeb4d3680e33a2ab7173a78982c55fa3677)) | ||
# [4.0.0-alpha.31](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.30...v4.0.0-alpha.31) (2021-07-29) | ||
# [3.40.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.39.2...v3.40.0) (2021-09-17) | ||
### Bug Fixes | ||
- adjust comments to mention apps instead of extensions ([#880](https://github.com/contentful/ui-extensions-sdk/issues/880)) ([f5fcc8f](https://github.com/contentful/ui-extensions-sdk/commit/f5fcc8f49084b02bb7de25bf84985580ca856139)) | ||
# [4.0.0-alpha.30](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.29...v4.0.0-alpha.30) (2021-07-26) | ||
### Bug Fixes | ||
- cmaAdapter is never undefined ([#881](https://github.com/contentful/ui-extensions-sdk/issues/881)) ([57f457d](https://github.com/contentful/ui-extensions-sdk/commit/57f457d8d4112b6c3a316f1e2a0bbfda2291aa5e)) | ||
# [4.0.0-alpha.29](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.28...v4.0.0-alpha.29) (2021-07-23) | ||
### Bug Fixes | ||
- [] update create contentType function with optional id ([#859](https://github.com/contentful/ui-extensions-sdk/issues/859)) ([8d1f562](https://github.com/contentful/ui-extensions-sdk/commit/8d1f562c7ef5df875286a77dfc487baf25f07947)) | ||
# [4.0.0-alpha.28](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.27...v4.0.0-alpha.28) (2021-07-23) | ||
### Bug Fixes | ||
- Update canary with master ([#879](https://github.com/contentful/ui-extensions-sdk/issues/879)) ([9c1c84d](https://github.com/contentful/ui-extensions-sdk/commit/9c1c84dd550aa276d7c40b6fa09b2ea47f14b4da)) | ||
# [4.0.0-alpha.27](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.26...v4.0.0-alpha.27) (2021-07-23) | ||
### Bug Fixes | ||
- add query support in getContentTypes ([#877](https://github.com/contentful/ui-extensions-sdk/issues/877)) ([596cc32](https://github.com/contentful/ui-extensions-sdk/commit/596cc320120df9304b1e948c126ff260dad085c2)) | ||
# [4.0.0-alpha.26](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.25...v4.0.0-alpha.26) (2021-07-20) | ||
### Bug Fixes | ||
- fix type imports ([#874](https://github.com/contentful/ui-extensions-sdk/issues/874)) ([4866e80](https://github.com/contentful/ui-extensions-sdk/commit/4866e8066154def9db10187dc7ae48a13b211606)) | ||
# [4.0.0-alpha.25](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.24...v4.0.0-alpha.25) (2021-07-20) | ||
### Bug Fixes | ||
- change type of delete contenttype to accept only the id ([#866](https://github.com/contentful/ui-extensions-sdk/issues/866)) ([57b27dc](https://github.com/contentful/ui-extensions-sdk/commit/57b27dca9848f78b25e4d5823b2b16cae2a3115c)) | ||
# [4.0.0-alpha.24](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.23...v4.0.0-alpha.24) (2021-07-20) | ||
### Bug Fixes | ||
- update canary with master ([#870](https://github.com/contentful/ui-extensions-sdk/issues/870)) ([0f509dd](https://github.com/contentful/ui-extensions-sdk/commit/0f509ddd74823f4f0d155e1ae6e46fa6b618467e)), closes [#718](https://github.com/contentful/ui-extensions-sdk/issues/718) [#719](https://github.com/contentful/ui-extensions-sdk/issues/719) [#715](https://github.com/contentful/ui-extensions-sdk/issues/715) [#720](https://github.com/contentful/ui-extensions-sdk/issues/720) [#723](https://github.com/contentful/ui-extensions-sdk/issues/723) [#721](https://github.com/contentful/ui-extensions-sdk/issues/721) [#724](https://github.com/contentful/ui-extensions-sdk/issues/724) [#726](https://github.com/contentful/ui-extensions-sdk/issues/726) [#729](https://github.com/contentful/ui-extensions-sdk/issues/729) [#731](https://github.com/contentful/ui-extensions-sdk/issues/731) [#733](https://github.com/contentful/ui-extensions-sdk/issues/733) [#728](https://github.com/contentful/ui-extensions-sdk/issues/728) [#727](https://github.com/contentful/ui-extensions-sdk/issues/727) [#730](https://github.com/contentful/ui-extensions-sdk/issues/730) [#732](https://github.com/contentful/ui-extensions-sdk/issues/732) [#734](https://github.com/contentful/ui-extensions-sdk/issues/734) [#735](https://github.com/contentful/ui-extensions-sdk/issues/735) [#738](https://github.com/contentful/ui-extensions-sdk/issues/738) [#736](https://github.com/contentful/ui-extensions-sdk/issues/736) [#737](https://github.com/contentful/ui-extensions-sdk/issues/737) [#740](https://github.com/contentful/ui-extensions-sdk/issues/740) [#743](https://github.com/contentful/ui-extensions-sdk/issues/743) [#741](https://github.com/contentful/ui-extensions-sdk/issues/741) [#742](https://github.com/contentful/ui-extensions-sdk/issues/742) [#746](https://github.com/contentful/ui-extensions-sdk/issues/746) [#749](https://github.com/contentful/ui-extensions-sdk/issues/749) [#748](https://github.com/contentful/ui-extensions-sdk/issues/748) [#751](https://github.com/contentful/ui-extensions-sdk/issues/751) [#755](https://github.com/contentful/ui-extensions-sdk/issues/755) [#757](https://github.com/contentful/ui-extensions-sdk/issues/757) [#756](https://github.com/contentful/ui-extensions-sdk/issues/756) [#752](https://github.com/contentful/ui-extensions-sdk/issues/752) [#754](https://github.com/contentful/ui-extensions-sdk/issues/754) [#626](https://github.com/contentful/ui-extensions-sdk/issues/626) [#758](https://github.com/contentful/ui-extensions-sdk/issues/758) [#759](https://github.com/contentful/ui-extensions-sdk/issues/759) [#739](https://github.com/contentful/ui-extensions-sdk/issues/739) [#690](https://github.com/contentful/ui-extensions-sdk/issues/690) [#687](https://github.com/contentful/ui-extensions-sdk/issues/687) [#585](https://github.com/contentful/ui-extensions-sdk/issues/585) [#747](https://github.com/contentful/ui-extensions-sdk/issues/747) [#760](https://github.com/contentful/ui-extensions-sdk/issues/760) [#670](https://github.com/contentful/ui-extensions-sdk/issues/670) [#762](https://github.com/contentful/ui-extensions-sdk/issues/762) [#763](https://github.com/contentful/ui-extensions-sdk/issues/763) [#764](https://github.com/contentful/ui-extensions-sdk/issues/764) [#768](https://github.com/contentful/ui-extensions-sdk/issues/768) | ||
- **dialogIds:** ignore entity scoped ids from baseSDK ([#863](https://github.com/contentful/ui-extensions-sdk/issues/863)) ([5f2850b](https://github.com/contentful/ui-extensions-sdk/commit/5f2850bc08ba61919961acd70bb582d70a5a9504)) | ||
- allow parameters and targetState to be null in onConfigure response ([#858](https://github.com/contentful/ui-extensions-sdk/issues/858)) ([0e9b80c](https://github.com/contentful/ui-extensions-sdk/commit/0e9b80cfba774736fcf80b6a37ab169d26870374)) | ||
# [4.0.0-alpha.23](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.22...v4.0.0-alpha.23) (2021-07-07) | ||
### Bug Fixes | ||
- use type export ([#841](https://github.com/contentful/ui-extensions-sdk/issues/841)) ([899535f](https://github.com/contentful/ui-extensions-sdk/commit/899535feb4939ea70c79abe3c309524eaede1e10)) | ||
# [4.0.0-alpha.22](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.21...v4.0.0-alpha.22) (2021-07-06) | ||
### Bug Fixes | ||
- missing space types and SerializedJSONValue ([#837](https://github.com/contentful/ui-extensions-sdk/issues/837)) ([3dda7f0](https://github.com/contentful/ui-extensions-sdk/commit/3dda7f00093ca39f82f010b2c391862410ee48ec)) | ||
# [4.0.0-alpha.21](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.20...v4.0.0-alpha.21) (2021-07-02) | ||
### Bug Fixes | ||
- bump version ([#835](https://github.com/contentful/ui-extensions-sdk/issues/835)) ([1f125af](https://github.com/contentful/ui-extensions-sdk/commit/1f125af52d8e2af0fc01e341bc4e2839e3354df4)) | ||
# [4.0.0-alpha.20](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.19...v4.0.0-alpha.20) (2021-07-02) | ||
### Bug Fixes | ||
- make adapter optional ([#831](https://github.com/contentful/ui-extensions-sdk/issues/831)) ([a737f82](https://github.com/contentful/ui-extensions-sdk/commit/a737f82aeec965e380dbc5aeb06fd36969306f90)) | ||
# [4.0.0-alpha.19](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.18...v4.0.0-alpha.19) (2021-07-01) | ||
### Features | ||
- [] add cma adapter to sdk ([#816](https://github.com/contentful/ui-extensions-sdk/issues/816)) ([24dab4e](https://github.com/contentful/ui-extensions-sdk/commit/24dab4e019b9f028d8739ee173373c701d36d732)) | ||
- **AccessAPI:** add support for JSON patches in access sdk [EXT-3041] ([#974](https://github.com/contentful/ui-extensions-sdk/issues/974)) ([a720fc2](https://github.com/contentful/ui-extensions-sdk/commit/a720fc223b19419f61fb5df917540834966dbd83)) | ||
# [4.0.0-alpha.18](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.17...v4.0.0-alpha.18) (2021-06-23) | ||
## [3.39.1](https://github.com/contentful/ui-extensions-sdk/compare/v3.39.0...v3.39.1) (2021-09-10) | ||
### Features | ||
- add type parameter to create task input data ([#807](https://github.com/contentful/ui-extensions-sdk/issues/807)) ([493bb0e](https://github.com/contentful/ui-extensions-sdk/commit/493bb0ec92969263ea549e6f6cc1c932c33a60c6)) | ||
# [4.0.0-alpha.17](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.16...v4.0.0-alpha.17) (2021-06-21) | ||
### Features | ||
- add interface for space.getTeams to v4 [HOMER-84] ([#797](https://github.com/contentful/ui-extensions-sdk/issues/797)) ([0cfe659](https://github.com/contentful/ui-extensions-sdk/commit/0cfe659970233fdc90b62d799cd608d949f7e8f7)) | ||
# [4.0.0-alpha.16](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.15...v4.0.0-alpha.16) (2021-06-15) | ||
### Bug Fixes | ||
- set ContentTypeAPI in SharedEditorSDK ([#794](https://github.com/contentful/ui-extensions-sdk/issues/794)) ([b9fa7fc](https://github.com/contentful/ui-extensions-sdk/commit/b9fa7fc59fb23aa691f00401a9b0f8bbd57bcba2)) | ||
- create upload types ([#961](https://github.com/contentful/ui-extensions-sdk/issues/961)) ([a65b320](https://github.com/contentful/ui-extensions-sdk/commit/a65b32046087763708f521b5b2dbb92ac22c6579)) | ||
# [4.0.0-alpha.15](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.14...v4.0.0-alpha.15) (2021-06-15) | ||
### Bug Fixes | ||
- export ContentTypeAPI ([#793](https://github.com/contentful/ui-extensions-sdk/issues/793)) ([2f0f74e](https://github.com/contentful/ui-extensions-sdk/commit/2f0f74e7674604de88f3510343949885b333bdcd)) | ||
# [4.0.0-alpha.14](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.13...v4.0.0-alpha.14) (2021-06-15) | ||
### Bug Fixes | ||
- use correct typings in waitUntilAssetProcessed ([#792](https://github.com/contentful/ui-extensions-sdk/issues/792)) ([74a030a](https://github.com/contentful/ui-extensions-sdk/commit/74a030ab4351fccc5c3ff28f7a6d4d51e368521a)) | ||
# [4.0.0-alpha.13](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.12...v4.0.0-alpha.13) (2021-06-14) | ||
### Features | ||
- add due date as a task field type ([#783](https://github.com/contentful/ui-extensions-sdk/issues/783)) ([f2b216a](https://github.com/contentful/ui-extensions-sdk/commit/f2b216a6b5906e8b2a1a0c338bb4bf9504612e9b)) | ||
# [4.0.0-alpha.12](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.11...v4.0.0-alpha.12) (2021-06-14) | ||
### Bug Fixes | ||
- change ContentType API to public type ([#788](https://github.com/contentful/ui-extensions-sdk/issues/788)) ([88742a1](https://github.com/contentful/ui-extensions-sdk/commit/88742a18b363840465a3f229f5d859af0682c0c0)) | ||
# [4.0.0-alpha.11](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.10...v4.0.0-alpha.11) (2021-06-04) | ||
### Bug Fixes | ||
- update onConfigure type to match reference ([#765](https://github.com/contentful/ui-extensions-sdk/issues/765)) ([2819f13](https://github.com/contentful/ui-extensions-sdk/commit/2819f1325c24c5cb210d5dd071dfbef1ae875ac0)) | ||
# [4.0.0-alpha.10](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.9...v4.0.0-alpha.10) (2021-05-31) | ||
### Features | ||
- update AppConfigAPI types ([#753](https://github.com/contentful/ui-extensions-sdk/issues/753)) ([6876d0a](https://github.com/contentful/ui-extensions-sdk/commit/6876d0ad0f8214acdfb97783caa54740410b037d)) | ||
# [4.0.0-alpha.9](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.8...v4.0.0-alpha.9) (2021-05-28) | ||
### Features | ||
- remove files from dist that were kept for backwards compatibility ([#750](https://github.com/contentful/ui-extensions-sdk/issues/750)) ([dbed8c2](https://github.com/contentful/ui-extensions-sdk/commit/dbed8c29eb9bbfc45bc5c50944bed75e8b3616e1)) | ||
# [4.0.0-alpha.8](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.7...v4.0.0-alpha.8) (2021-05-27) | ||
### Features | ||
- improve types for Field & Entry API ([#745](https://github.com/contentful/ui-extensions-sdk/issues/745)) ([4774448](https://github.com/contentful/ui-extensions-sdk/commit/4774448bd766b83fadfc7e989bee570ab068434c)) | ||
# [4.0.0-alpha.7](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.6...v4.0.0-alpha.7) (2021-05-26) | ||
### Features | ||
- better typings for user API ([#744](https://github.com/contentful/ui-extensions-sdk/issues/744)) ([29a6359](https://github.com/contentful/ui-extensions-sdk/commit/29a63594933f1063ac8734a9877fec6fa25928b9)) | ||
# [4.0.0-alpha.6](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.5...v4.0.0-alpha.6) (2021-05-20) | ||
### Bug Fixes | ||
- navigator api types ([#725](https://github.com/contentful/ui-extensions-sdk/issues/725)) ([7cac2eb](https://github.com/contentful/ui-extensions-sdk/commit/7cac2eb08200bba51d95d5461f00011a3add771b)), closes [#718](https://github.com/contentful/ui-extensions-sdk/issues/718) [#719](https://github.com/contentful/ui-extensions-sdk/issues/719) [#715](https://github.com/contentful/ui-extensions-sdk/issues/715) [#720](https://github.com/contentful/ui-extensions-sdk/issues/720) [#723](https://github.com/contentful/ui-extensions-sdk/issues/723) [#721](https://github.com/contentful/ui-extensions-sdk/issues/721) | ||
# [4.0.0-alpha.5](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.4...v4.0.0-alpha.5) (2021-05-18) | ||
### Features | ||
- expose WithId ([#722](https://github.com/contentful/ui-extensions-sdk/issues/722)) ([80189db](https://github.com/contentful/ui-extensions-sdk/commit/80189dbdf5b7592a73e1ed4ec4fef40b0c85a1c8)) | ||
# [4.0.0-alpha.4](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.3...v4.0.0-alpha.4) (2021-05-18) | ||
### Bug Fixes | ||
- more explicit space api types ([#711](https://github.com/contentful/ui-extensions-sdk/issues/711)) ([42d63de](https://github.com/contentful/ui-extensions-sdk/commit/42d63dea5fd9a313918a9591311d716c3374ac60)) | ||
# [4.0.0-alpha.3](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.2...v4.0.0-alpha.3) (2021-05-11) | ||
### Bug Fixes | ||
- add missing types also in files ([#707](https://github.com/contentful/ui-extensions-sdk/issues/707)) ([957c858](https://github.com/contentful/ui-extensions-sdk/commit/957c85805a683832ca7f856fe525d17195a910d2)) | ||
# [4.0.0-alpha.2](https://github.com/contentful/ui-extensions-sdk/compare/v4.0.0-alpha.1...v4.0.0-alpha.2) (2021-05-11) | ||
### Bug Fixes | ||
- include typings in the release ([#699](https://github.com/contentful/ui-extensions-sdk/issues/699)) ([16b15e2](https://github.com/contentful/ui-extensions-sdk/commit/16b15e25ddcfd8a34a6f4c9732fc5e67929ac62b)) | ||
# [4.0.0-alpha.1](https://github.com/contentful/ui-extensions-sdk/compare/v3.34.1...v4.0.0-alpha.1) (2021-05-10) | ||
### Features | ||
- improve space API typings ([#684](https://github.com/contentful/ui-extensions-sdk/issues/684)) ([a57354c](https://github.com/contentful/ui-extensions-sdk/commit/a57354c32b78204d285aba897d213f201fec208c)) | ||
### BREAKING CHANGES | ||
- old typings were too loose. | ||
- "chore: test that SDK respects alias ([#710](https://github.com/contentful/ui-extensions-sdk/issues/710))" ([#717](https://github.com/contentful/ui-extensions-sdk/issues/717)) ([4ab6e48](https://github.com/contentful/ui-extensions-sdk/commit/4ab6e48237ef6d4cdd75c7721cd994539ced0ce2)) | ||
# [3.39.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.38.0...v3.39.0) (2021-07-20) | ||
@@ -230,0 +42,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).contentfulExtension={})}(this,(function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)};var n,r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var o=function(){function e(){this._id=0,this._listeners={}}return e.prototype.dispatch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r in this._listeners)(e=this._listeners)[r].apply(e,t)},e.prototype.attach=function(e){var t=this;if("function"!=typeof e)throw new Error("listener function expected");var n=this._id++;return this._listeners[n]=e,function(){return delete t._listeners[n]}},e}(),i="__private__memoized__arguments__",a=function(e){function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=e.call(this)||this;if(o[n]=[],!t.length)throw new Error("Initial value to be memoized expected");return o[i]=t,o}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,e),r.prototype.dispatch=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this[i]=t,e.prototype.dispatch.apply(this,t)},r.prototype.attach=function(t){var n=e.prototype.attach.call(this,t);return t.apply(void 0,this[i]),n},r}(o);n=i;var s=function(){function e(e,t){var n=this;this._messageHandlers={},this._responseHandlers={},this._send=function(e,t){var n=0;return function(r,o){var i=n++;return t.postMessage({source:e,id:i,method:r,params:o},"*"),i}}(e,t.parent),t.addEventListener("message",(function(e){n._handleMessage(e.data)}))}return e.prototype.call=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._send(e,n);return new Promise((function(e,n){t._responseHandlers[o]={resolve:e,reject:n}}))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._send(e,t)},e.prototype.addHandler=function(e,t){return e in this._messageHandlers||(this._messageHandlers[e]=new o),this._messageHandlers[e].attach(t)},e.prototype._handleMessage=function(e){if(e.method){var t=e.method,n=e.params,r=this._messageHandlers[t];r&&r.dispatch.apply(r,n)}else{var o=e.id,i=this._responseHandlers[o];if(!i)return;"result"in e?i.resolve(e.result):"error"in e&&i.reject(e.error),delete this._responseHandlers[o]}},e}();var l=function(){function e(e,t){var n=this;this.id=t.id,this.locale=t.locale,this.type=t.type,this.required=t.required,this.validations=t.validations,this.items=t.items,this._value=t.value,this._valueSignal=new a(this._value),this._isDisabledSignal=new a(void 0),this._schemaErrorsChangedSignal=new a(void 0),this._channel=e,e.addHandler("valueChanged",(function(e,t,r){e!==n.id||t&&t!==n.locale||(n._value=r,n._valueSignal.dispatch(r))})),e.addHandler("isDisabledChangedForFieldLocale",(function(e,t,r){e===n.id&&t===n.locale&&n._isDisabledSignal.dispatch(r)})),e.addHandler("schemaErrorsChangedForFieldLocale",(function(e,t,r){e===n.id&&t===n.locale&&n._schemaErrorsChangedSignal.dispatch(r)}))}return e.prototype.getValue=function(){return this._value},e.prototype.setValue=function(e){return this._value=e,this._valueSignal.dispatch(e),this._channel.call("setValue",this.id,this.locale,e)},e.prototype.removeValue=function(){return this._value=void 0,this._channel.call("removeValue",this.id,this.locale)},e.prototype.setInvalid=function(e){return this._channel.call("setInvalid",e,this.locale)},e.prototype.onValueChanged=function(e){return this._valueSignal.attach(e)},e.prototype.onIsDisabledChanged=function(e){return this._isDisabledSignal.attach(e)},e.prototype.onSchemaErrorsChanged=function(e){return this._schemaErrorsChangedSignal.attach(e)},e}(),u=function(){function e(e,t,n){this.id=t.id,this.locales=t.locales,this.type=t.type,this.required=t.required,this.validations=t.validations,this.items=t.items,this._defaultLocale=n,this._fieldLocales=t.locales.reduce((function(n,o){var i,a=new l(e,{id:t.id,type:t.type,required:t.required,validations:t.validations,items:t.items,locale:o,value:t.values[o]});return r(r({},n),((i={})[o]=a,i))}),{}),this.assertHasLocale(n)}return e.prototype.getValue=function(e){return this._getFieldLocale(e).getValue()},e.prototype.setValue=function(e,t){return this._getFieldLocale(t).setValue(e)},e.prototype.removeValue=function(e){return this.setValue(void 0,e)},e.prototype.onValueChanged=function(e,t){var n=t||e;return t||(e=""),this._getFieldLocale(e).onValueChanged(n)},e.prototype.onIsDisabledChanged=function(e,t){var n=t||e;return t||(e=""),this._getFieldLocale(e).onIsDisabledChanged(n)},e.prototype._getFieldLocale=function(e){return e=e||this._defaultLocale,this.assertHasLocale(e),this._fieldLocales[e]},e.prototype.getForLocale=function(e){if(!e)throw new Error("getForLocale must be passed a locale");return this._getFieldLocale(e)},e.prototype.assertHasLocale=function(e){if(!this._fieldLocales[e])throw new Error('Unknown locale "'+e+'" for field "'+this.id+'"')},e}();function c(e,t){var n,r=e,o=r.document,i=r.MutationObserver,a=function(){u.updateHeight()},s=new i(a),l=!1,u={startAutoResizer:function(){if(u.updateHeight(),l)return;l=!0,s.observe(o.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e.addEventListener("resize",a)},stopAutoResizer:function(){if(!l)return;l=!1,s.disconnect(),e.removeEventListener("resize",a)},updateHeight:function(e){void 0===e&&(e=null);null===e&&(e=Math.ceil(o.documentElement.getBoundingClientRect().height));e!==n&&(t.send("setHeight",e),n=e)}};return u}var d=["getTask","getTasks","createTask","updateTask","deleteTask"];function p(e,t,n,o){var i=t.sys,s=new a(i),l=t.metadata,u=new a(l);e.addHandler("sysChanged",(function(e){i=e,s.dispatch(i)})),e.addHandler("metadataChanged",(function(e){l=e,u.dispatch(l)}));var c={};return d.forEach((function(t){c[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.call("callEntryMethod",t,n)}})),r(r(r({getSys:function(){return i},onSysChanged:function(e){return s.attach(e)},fields:n.reduce((function(e,t){return e[t.id]=o(t),e}),{})},l?{metadata:l}:{}),{getMetadata:function(){return l},onMetadataChanged:function(e){return u.attach(e)}}),c)}var f=["getContentType","getEntry","getEntrySnapshots","getAsset","getEditorInterface","getPublishedEntries","getPublishedAssets","getContentTypes","getEntries","getEditorInterfaces","getAssets","createContentType","createEntry","createAsset","updateContentType","updateEntry","updateAsset","deleteContentType","deleteEntry","deleteAsset","publishEntry","publishAsset","unpublishEntry","unpublishAsset","archiveEntry","archiveAsset","unarchiveEntry","unarchiveAsset","createUpload","processAsset","waitUntilAssetProcessed","getUsers","getAllScheduledActions","getEntityScheduledActions","signRequest","createTag","readTags","updateTag","deleteTag","getTeams"];function h(e,t){var n={};return f.forEach((function(t){n[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return console.warn("You called "+String(t)+" on the Space API. Since version 4.0.0 the Space API and its methods are deprecated. We recommend that you use the CMA client instead. See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details."),e.call("callSpaceMethod",t,n)}})),n.getCachedContentTypes=function(){return function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],t)},n}var g=function(e){return"object"!=typeof(t=e)||null===t||Array.isArray(t)?{}:e;var t};function v(e,t){return{openAlert:n.bind(null,"alert"),openConfirm:n.bind(null,"confirm"),openPrompt:n.bind(null,"prompt"),openExtension:o,openCurrentApp:i,openCurrent:function(e){return t.app?i(e):o(r(r({},e),{id:t.extension}))},selectSingleEntry:a.bind(null,"Entry",!1),selectSingleAsset:a.bind(null,"Asset",!1),selectMultipleEntries:a.bind(null,"Entry",!0),selectMultipleAssets:a.bind(null,"Asset",!0)};function n(t,n){return e.call("openDialog",t,g(n))}function o(n){var o=g(n);if((o=r(r({},o),{id:o.id||t.extension})).id)return e.call("openDialog","extension",o);throw new Error("Extension ID not provided.")}function i(n){if(n=g(n),t.app){var o=r(r({},n),{id:t.app});return e.call("openDialog","app",o)}throw new Error("Not in the app context.")}function a(t,n,r){return(r=g(r)).entityType=t,r.multiple=n,e.call("openDialog","entitySelector",r)}}function y(e,t){var n=new a(void 0),r=new a(void 0);return e.addHandler("localeSettingsChanged",(function(e){n.dispatch(e)})),e.addHandler("showDisabledFieldsChanged",(function(e){r.dispatch(e)})),{editorInterface:t,onLocaleSettingsChanged:function(e){return n.attach(e)},onShowDisabledFieldsChanged:function(e){return r.attach(e)}}}function _(e,t){var n=new o;return e.addHandler("navigateSlideIn",(function(e){n.dispatch(e)})),{openEntry:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Entry",id:t}))},openNewEntry:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Entry",id:null,contentTypeId:t}))},openBulkEditor:function(t,n){return e.call("navigateToBulkEditor",r({entryId:t},n))},openAsset:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Asset",id:t}))},openNewAsset:function(t){return e.call("navigateToContentEntity",r(r({},t),{entityType:"Asset",id:null}))},openPageExtension:function(n){return e.call("navigateToPage",r({type:"extension",id:t.extension},n))},openCurrentAppPage:function(n){return e.call("navigateToPage",r({type:"app",id:t.app},n))},openAppConfig:function(){return e.call("navigateToAppConfig")},openEntriesList:function(){return e.call("navigateToSpaceEnvRoute",{route:"entries"})},openAssetsList:function(){return e.call("navigateToSpaceEnvRoute",{route:"assets"})},onSlideInNavigation:function(e){return n.attach(e)}}}var m="preInstall",E="postInstall",A=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},C=function(e){return"function"==typeof e},T=function(e){return console.error(e),Promise.resolve(!1)},w=function(e,t,n){if(!C(e))return Promise.resolve(t);var r;try{r=void 0===n?e():e(n)}catch(e){return T(e)}var o,i=r;return A(o=i)&&C(o.then)||(i=Promise.resolve(i)),i.then((function(e){return e instanceof Error?Promise.reject(e):!1!==e&&(A(e)?e:t)}),T).catch(T)};function I(e){var t,n=((t={}).preInstall=null,t.postInstall=null,t),r=function(e,t){if(!C(t))throw new Error("Handler must be a function.");n[e]=t};return e.addHandler("appHook",(function(t){var r=t.stage,o=t.installationRequestId,i=t.err;return r===m?w(n[r],{}).then((function(t){return e.send("appHookResult",{stage:r,installationRequestId:o,result:t})})):r===E?w(n[r],void 0,i||null).then((function(){return e.send("appHookResult",{stage:r,installationRequestId:o})})):Promise.resolve()})),{setReady:function(){return e.call("callAppMethod","setReady")},isInstalled:function(){return e.call("callAppMethod","isInstalled")},getParameters:function(){return e.call("callAppMethod","getParameters")},getCurrentState:function(){return e.call("callAppMethod","getCurrentState")},onConfigure:function(e){r(m,e)},onConfigurationCompleted:function(e){r(E,e)}}}var b,L={LOCATION_ENTRY_FIELD:"entry-field",LOCATION_ENTRY_FIELD_SIDEBAR:"entry-field-sidebar",LOCATION_ENTRY_SIDEBAR:"entry-sidebar",LOCATION_DIALOG:"dialog",LOCATION_ENTRY_EDITOR:"entry-editor",LOCATION_PAGE:"page",LOCATION_APP_CONFIG:"app-config"},O=function(e){return function(t){return e.call("CMAAdapterCall",t)}};function S(e){return{makeRequest:O(e)}}var H=[P,x,function(e,t){var n=t.field;if(!n)throw new Error('FieldAPI called for location without "field" property defined.');return{field:new l(e,n)}},R,D],N=((b={})[L.LOCATION_ENTRY_FIELD]=H,b[L.LOCATION_ENTRY_FIELD_SIDEBAR]=H,b[L.LOCATION_ENTRY_SIDEBAR]=[P,x,R,D],b[L.LOCATION_ENTRY_EDITOR]=[P,x,R],b[L.LOCATION_DIALOG]=[P,function(e){return{close:function(t){return e.send("closeDialog",t)}}},D],b[L.LOCATION_PAGE]=[P],b[L.LOCATION_APP_CONFIG]=[P,function(e){return{app:I(e)}}],b);function P(e,t){var n=t.user,r=t.parameters,o=t.locales,i=t.ids,a=t.initialContentTypes,s=t.location||L.LOCATION_ENTRY_FIELD;return{cmaAdapter:S(e),location:{is:function(e){return s===e}},user:n,parameters:r,locales:{available:o.available,default:o.default,names:o.names,fallbacks:o.fallbacks,optional:o.optional,direction:o.direction},space:h(e,a),dialogs:v(e,i),navigator:_(e,i),notifier:{success:function(t){return e.send("notify",{type:"success",message:t})},error:function(t){return e.send("notify",{type:"error",message:t})}},ids:i,access:{can:function(t,n,r){return e.call("checkAccess",t,n,r)},canEditAppConfig:function(){return e.call("checkAppConfigAccess")}}}}function D(e,t,n){return{window:c(n,e)}}function R(e,t){return{editor:y(e,t.editorInterface)}}function x(e,t){var n=t.locales,r=t.contentType,o=t.entry,i=t.fieldInfo;return{contentType:r,entry:p(e,o,i,(function(t){return new u(e,t,n.default)}))}}var k,F,M,V,j=(k=window,F=function(e,t,n){return(N[t.location]||H).reduce((function(o,i){return r(r({},o),i(e,t,n))}),{})},(M={promise:null,resolve:null}).promise=new Promise((function(e){M.resolve=e})),(V=M).promise.then((function(e){var t=e[0],n=k.document;n.addEventListener("focus",(function(){return t.send("setActive",!0)}),!0),n.addEventListener("blur",(function(){return t.send("setActive",!1)}),!0)})),function(e,t){!function(e,t){function n(r){var o=r.data;"connect"===o.method&&(e.removeEventListener("message",n),t.apply(void 0,o.params))}e.addEventListener("message",n)}(e,(function(n,r){var o=new s(n.id,e);t(o,n,r)}))}(k,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return V.resolve(e)})),function(e,t){var n=void 0===t?{supressIframeWarning:!1}:t,r=n.makeCustomApi;n.supressIframeWarning||k.self!==k.top||console.error("Cannot use ui-extension-sdk outside of Contenful:\n\nIn order for the ui-extension-sdk to function correctly, your app needs to be run in an iframe in the Contentful Web App.\n\nLearn more about local development with the ui-extension-sdk here:\n https://www.contentful.com/developers/docs/extensibility/ui-extensions/faq/#how-can-i-use-the-ui-extension-sdk-locally"),V.promise.then((function(t){var n,o=t[0],i=t[1],a=t[2],s=F(o,i,k);"function"==typeof r&&(n=r(o,i)),a.forEach((function(e){o._handleMessage(e)})),e(s,n)}))});e.init=j,e.locations=L,Object.defineProperty(e,"__esModule",{value:!0})})),window.contentfulApp=window.contentfulExtension; | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).contentfulExtension={})}(this,(function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)};var n,r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var o=function(){function e(){this._id=0,this._listeners={}}return e.prototype.dispatch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r in this._listeners)(e=this._listeners)[r].apply(e,t)},e.prototype.attach=function(e){var t=this;if("function"!=typeof e)throw new Error("listener function expected");var n=this._id++;return this._listeners[n]=e,function(){return delete t._listeners[n]}},e}(),i="__private__memoized__arguments__",a=function(e){function r(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=e.call(this)||this;if(o[n]=[],!t.length)throw new Error("Initial value to be memoized expected");return o[i]=t,o}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,e),r.prototype.dispatch=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this[i]=t,e.prototype.dispatch.apply(this,t)},r.prototype.attach=function(t){var n=e.prototype.attach.call(this,t);return t.apply(void 0,this[i]),n},r}(o);n=i;var s=function(){function e(e,t){var n=this;this._messageHandlers={},this._responseHandlers={},this._send=function(e,t){var n=0;return function(r,o){var i=n++;try{t.postMessage({source:e,id:i,method:r,params:o},"*")}catch(e){throw e instanceof DOMException&&"DataCloneError"===e.name&&"openDialog"===r&&console.error("Error: openCurrent[App] parameters could not be parsed. You likely tried to pass functions or DOM elements as a parameter. Tip: Use the App SDK directly within the dialog location.\n\nLearn more about the dialog location: https://ctfl.io/app-sdk-dialog"),e}return i}}(e,t.parent),t.addEventListener("message",(function(e){n._handleMessage(e.data)}))}return e.prototype.call=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._send(e,n);return new Promise((function(e,n){t._responseHandlers[o]={resolve:e,reject:n}}))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._send(e,t)},e.prototype.addHandler=function(e,t){return e in this._messageHandlers||(this._messageHandlers[e]=new o),this._messageHandlers[e].attach(t)},e.prototype._handleMessage=function(e){if(e.method){var t=e.method,n=e.params,r=this._messageHandlers[t];r&&r.dispatch.apply(r,n)}else{var o=e.id,i=this._responseHandlers[o];if(!i)return;"result"in e?i.resolve(e.result):"error"in e&&i.reject(e.error),delete this._responseHandlers[o]}},e}();var l=function(){function e(e,t){var n=this;this.id=t.id,this.locale=t.locale,this.type=t.type,this.required=t.required,this.validations=t.validations,this.items=t.items,this._value=t.value,this._valueSignal=new a(this._value),this._isDisabledSignal=new a(void 0),this._schemaErrorsChangedSignal=new a(void 0),this._channel=e,e.addHandler("valueChanged",(function(e,t,r){e!==n.id||t&&t!==n.locale||(n._value=r,n._valueSignal.dispatch(r))})),e.addHandler("isDisabledChangedForFieldLocale",(function(e,t,r){e===n.id&&t===n.locale&&n._isDisabledSignal.dispatch(r)})),e.addHandler("schemaErrorsChangedForFieldLocale",(function(e,t,r){e===n.id&&t===n.locale&&n._schemaErrorsChangedSignal.dispatch(r)}))}return e.prototype.getValue=function(){return this._value},e.prototype.setValue=function(e){return this._value=e,this._valueSignal.dispatch(e),this._channel.call("setValue",this.id,this.locale,e)},e.prototype.removeValue=function(){return this._value=void 0,this._channel.call("removeValue",this.id,this.locale)},e.prototype.setInvalid=function(e){return this._channel.call("setInvalid",e,this.locale)},e.prototype.onValueChanged=function(e){return this._valueSignal.attach(e)},e.prototype.onIsDisabledChanged=function(e){return this._isDisabledSignal.attach(e)},e.prototype.onSchemaErrorsChanged=function(e){return this._schemaErrorsChangedSignal.attach(e)},e}(),u=function(){function e(e,t,n){this.id=t.id,this.locales=t.locales,this.type=t.type,this.required=t.required,this.validations=t.validations,this.items=t.items,this._defaultLocale=n,this._fieldLocales=t.locales.reduce((function(n,o){var i,a=new l(e,{id:t.id,type:t.type,required:t.required,validations:t.validations,items:t.items,locale:o,value:t.values[o]});return r(r({},n),((i={})[o]=a,i))}),{}),this.assertHasLocale(n)}return e.prototype.getValue=function(e){return this._getFieldLocale(e).getValue()},e.prototype.setValue=function(e,t){return this._getFieldLocale(t).setValue(e)},e.prototype.removeValue=function(e){return this.setValue(void 0,e)},e.prototype.onValueChanged=function(e,t){var n=t||e;return t||(e=""),this._getFieldLocale(e).onValueChanged(n)},e.prototype.onIsDisabledChanged=function(e,t){var n=t||e;return t||(e=""),this._getFieldLocale(e).onIsDisabledChanged(n)},e.prototype._getFieldLocale=function(e){return e=e||this._defaultLocale,this.assertHasLocale(e),this._fieldLocales[e]},e.prototype.getForLocale=function(e){if(!e)throw new Error("getForLocale must be passed a locale");return this._getFieldLocale(e)},e.prototype.assertHasLocale=function(e){if(!this._fieldLocales[e])throw new Error('Unknown locale "'+e+'" for field "'+this.id+'"')},e}();function c(e,t){var n,r=e,o=r.document,i=r.MutationObserver,a=function(){u.updateHeight()},s=new i(a),l=!1,u={startAutoResizer:function(){if(u.updateHeight(),l)return;l=!0,s.observe(o.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e.addEventListener("resize",a)},stopAutoResizer:function(){if(!l)return;l=!1,s.disconnect(),e.removeEventListener("resize",a)},updateHeight:function(e){void 0===e&&(e=null);null===e&&(e=Math.ceil(o.documentElement.getBoundingClientRect().height));e!==n&&(t.send("setHeight",e),n=e)}};return u}var d=["getTask","getTasks","createTask","updateTask","deleteTask"];function p(e,t,n,o){var i=t.sys,s=new a(i),l=t.metadata,u=new a(l);e.addHandler("sysChanged",(function(e){i=e,s.dispatch(i)})),e.addHandler("metadataChanged",(function(e){l=e,u.dispatch(l)}));var c={};return d.forEach((function(t){c[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.call("callEntryMethod",t,n)}})),r(r(r({getSys:function(){return i},onSysChanged:function(e){return s.attach(e)},fields:n.reduce((function(e,t){return e[t.id]=o(t),e}),{})},l?{metadata:l}:{}),{getMetadata:function(){return l},onMetadataChanged:function(e){return u.attach(e)}}),c)}var f=["getContentType","getEntry","getEntrySnapshots","getAsset","getEditorInterface","getPublishedEntries","getPublishedAssets","getContentTypes","getEntries","getEditorInterfaces","getAssets","createContentType","createEntry","createAsset","updateContentType","updateEntry","updateAsset","deleteContentType","deleteEntry","deleteAsset","publishEntry","publishAsset","unpublishEntry","unpublishAsset","archiveEntry","archiveAsset","unarchiveEntry","unarchiveAsset","createUpload","processAsset","waitUntilAssetProcessed","getUsers","getAllScheduledActions","getEntityScheduledActions","signRequest","createTag","readTags","updateTag","deleteTag","getTeams"];function h(e,t){var n={};return f.forEach((function(t){n[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return console.warn("You called "+String(t)+" on the Space API. Since version 4.0.0 the Space API and its methods are deprecated. We recommend that you use the CMA client instead. See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details."),e.call("callSpaceMethod",t,n)}})),n.getCachedContentTypes=function(){return function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([],t)},n}var g=function(e){return"object"!=typeof(t=e)||null===t||Array.isArray(t)?{}:e;var t};function v(e,t){return{openAlert:n.bind(null,"alert"),openConfirm:n.bind(null,"confirm"),openPrompt:n.bind(null,"prompt"),openExtension:o,openCurrentApp:i,openCurrent:function(e){return t.app?i(e):o(r(r({},e),{id:t.extension}))},selectSingleEntry:a.bind(null,"Entry",!1),selectSingleAsset:a.bind(null,"Asset",!1),selectMultipleEntries:a.bind(null,"Entry",!0),selectMultipleAssets:a.bind(null,"Asset",!0)};function n(t,n){return e.call("openDialog",t,g(n))}function o(n){var o=g(n);if((o=r(r({},o),{id:o.id||t.extension})).id)return e.call("openDialog","extension",o);throw new Error("Extension ID not provided.")}function i(n){if(n=g(n),t.app){var o=r(r({},n),{id:t.app});return e.call("openDialog","app",o)}throw new Error("Not in the app context.")}function a(t,n,r){return(r=g(r)).entityType=t,r.multiple=n,e.call("openDialog","entitySelector",r)}}function y(e,t){var n=new a(void 0),r=new a(void 0);return e.addHandler("localeSettingsChanged",(function(e){n.dispatch(e)})),e.addHandler("showDisabledFieldsChanged",(function(e){r.dispatch(e)})),{editorInterface:t,onLocaleSettingsChanged:function(e){return n.attach(e)},onShowDisabledFieldsChanged:function(e){return r.attach(e)}}}function _(e,t){var n=new o;return e.addHandler("navigateSlideIn",(function(e){n.dispatch(e)})),{openEntry:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Entry",id:t}))},openNewEntry:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Entry",id:null,contentTypeId:t}))},openBulkEditor:function(t,n){return e.call("navigateToBulkEditor",r({entryId:t},n))},openAsset:function(t,n){return e.call("navigateToContentEntity",r(r({},n),{entityType:"Asset",id:t}))},openNewAsset:function(t){return e.call("navigateToContentEntity",r(r({},t),{entityType:"Asset",id:null}))},openPageExtension:function(n){return e.call("navigateToPage",r({type:"extension",id:t.extension},n))},openCurrentAppPage:function(n){return e.call("navigateToPage",r({type:"app",id:t.app},n))},openAppConfig:function(){return e.call("navigateToAppConfig")},openEntriesList:function(){return e.call("navigateToSpaceEnvRoute",{route:"entries"})},openAssetsList:function(){return e.call("navigateToSpaceEnvRoute",{route:"assets"})},onSlideInNavigation:function(e){return n.attach(e)}}}var m="preInstall",E="postInstall",A=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},C=function(e){return"function"==typeof e},T=function(e){return console.error(e),Promise.resolve(!1)},w=function(e,t,n){if(!C(e))return Promise.resolve(t);var r;try{r=void 0===n?e():e(n)}catch(e){return T(e)}var o,i=r;return A(o=i)&&C(o.then)||(i=Promise.resolve(i)),i.then((function(e){return e instanceof Error?Promise.reject(e):!1!==e&&(A(e)?e:t)}),T).catch(T)};function I(e){var t,n=((t={}).preInstall=null,t.postInstall=null,t),r=function(e,t){if(!C(t))throw new Error("Handler must be a function.");n[e]=t};return e.addHandler("appHook",(function(t){var r=t.stage,o=t.installationRequestId,i=t.err;return r===m?w(n[r],{}).then((function(t){return e.send("appHookResult",{stage:r,installationRequestId:o,result:t})})):r===E?w(n[r],void 0,i||null).then((function(){return e.send("appHookResult",{stage:r,installationRequestId:o})})):Promise.resolve()})),{setReady:function(){return e.call("callAppMethod","setReady")},isInstalled:function(){return e.call("callAppMethod","isInstalled")},getParameters:function(){return e.call("callAppMethod","getParameters")},getCurrentState:function(){return e.call("callAppMethod","getCurrentState")},onConfigure:function(e){r(m,e)},onConfigurationCompleted:function(e){r(E,e)}}}var b,L={LOCATION_ENTRY_FIELD:"entry-field",LOCATION_ENTRY_FIELD_SIDEBAR:"entry-field-sidebar",LOCATION_ENTRY_SIDEBAR:"entry-sidebar",LOCATION_DIALOG:"dialog",LOCATION_ENTRY_EDITOR:"entry-editor",LOCATION_PAGE:"page",LOCATION_APP_CONFIG:"app-config"},O=function(e){return function(t){return e.call("CMAAdapterCall",t)}};function S(e){return{makeRequest:O(e)}}var D=[N,k,function(e,t){var n=t.field;if(!n)throw new Error('FieldAPI called for location without "field" property defined.');return{field:new l(e,n)}},R,P],H=((b={})[L.LOCATION_ENTRY_FIELD]=D,b[L.LOCATION_ENTRY_FIELD_SIDEBAR]=D,b[L.LOCATION_ENTRY_SIDEBAR]=[N,k,R,P],b[L.LOCATION_ENTRY_EDITOR]=[N,k,R],b[L.LOCATION_DIALOG]=[N,function(e){return{close:function(t){return e.send("closeDialog",t)}}},P],b[L.LOCATION_PAGE]=[N],b[L.LOCATION_APP_CONFIG]=[N,function(e){return{app:I(e)}}],b);function N(e,t){var n=t.user,r=t.parameters,o=t.locales,i=t.ids,a=t.initialContentTypes,s=t.location||L.LOCATION_ENTRY_FIELD;return{cmaAdapter:S(e),location:{is:function(e){return s===e}},user:n,parameters:r,locales:{available:o.available,default:o.default,names:o.names,fallbacks:o.fallbacks,optional:o.optional,direction:o.direction},space:h(e,a),dialogs:v(e,i),navigator:_(e,i),notifier:{success:function(t){return e.send("notify",{type:"success",message:t})},error:function(t){return e.send("notify",{type:"error",message:t})}},ids:i,access:{can:function(t,n,r){return e.call("checkAccess",t,n,r)},canEditAppConfig:function(){return e.call("checkAppConfigAccess")}}}}function P(e,t,n){return{window:c(n,e)}}function R(e,t){return{editor:y(e,t.editorInterface)}}function k(e,t){var n=t.locales,r=t.contentType,o=t.entry,i=t.fieldInfo;return{contentType:r,entry:p(e,o,i,(function(t){return new u(e,t,n.default)}))}}var x,F,M,V,j=(x=window,F=function(e,t,n){return(H[t.location]||D).reduce((function(o,i){return r(r({},o),i(e,t,n))}),{})},(M={promise:null,resolve:null}).promise=new Promise((function(e){M.resolve=e})),(V=M).promise.then((function(e){var t=e[0],n=x.document;n.addEventListener("focus",(function(){return t.send("setActive",!0)}),!0),n.addEventListener("blur",(function(){return t.send("setActive",!1)}),!0)})),function(e,t){!function(e,t){function n(r){var o=r.data;"connect"===o.method&&(e.removeEventListener("message",n),t.apply(void 0,o.params))}e.addEventListener("message",n)}(e,(function(n,r){var o=new s(n.id,e);t(o,n,r)}))}(x,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return V.resolve(e)})),function(e,t){var n=void 0===t?{supressIframeWarning:!1}:t,r=n.makeCustomApi;n.supressIframeWarning||x.self!==x.top||console.error("Cannot use ui-extension-sdk outside of Contenful:\n\nIn order for the ui-extension-sdk to function correctly, your app needs to be run in an iframe in the Contentful Web App.\n\nLearn more about local development with the ui-extension-sdk here:\n https://www.contentful.com/developers/docs/extensibility/ui-extensions/faq/#how-can-i-use-the-ui-extension-sdk-locally"),V.promise.then((function(t){var n,o=t[0],i=t[1],a=t[2],s=F(o,i,x);"function"==typeof r&&(n=r(o,i)),a.forEach((function(e){o._handleMessage(e)})),e(s,n)}))});e.init=j,e.locations=L,Object.defineProperty(e,"__esModule",{value:!0})})),window.contentfulApp=window.contentfulExtension; |
{ | ||
"name": "contentful-ui-extensions-sdk", | ||
"description": "SDK to develop custom UI Extension for the Contentful Web App", | ||
"version": "4.0.0-alpha.36", | ||
"version": "4.0.0", | ||
"author": "Contentful GmbH", | ||
@@ -45,7 +45,7 @@ "license": "MIT", | ||
"@testing-library/cypress": "8.0.1", | ||
"@testing-library/dom": "8.3.0", | ||
"@testing-library/dom": "8.7.2", | ||
"@types/async-retry": "1.4.3", | ||
"@types/chai-as-promised": "7.1.4", | ||
"@types/cross-spawn": "6.0.2", | ||
"@types/fs-extra": "9.0.12", | ||
"@types/fs-extra": "9.0.13", | ||
"@types/jsdom": "16.2.13", | ||
@@ -55,4 +55,4 @@ "@types/nanoid": "3.0.0", | ||
"@types/sinon-chai": "^3.2.5", | ||
"@typescript-eslint/eslint-plugin": "4.31.0", | ||
"@typescript-eslint/parser": "4.31.0", | ||
"@typescript-eslint/eslint-plugin": "4.32.0", | ||
"@typescript-eslint/parser": "4.32.0", | ||
"async-retry": "1.3.3", | ||
@@ -62,5 +62,5 @@ "babel-eslint": "10.1.0", | ||
"chai-as-promised": "7.1.1", | ||
"contentful-management": "7.37.0", | ||
"contentful-management": "7.41.1", | ||
"cross-spawn": "7.0.3", | ||
"cypress": "8.3.1", | ||
"cypress": "8.5.0", | ||
"cypress-multi-reporters": "1.5.0", | ||
@@ -72,3 +72,3 @@ "cypress-terminal-report": "^3.3.2", | ||
"eslint-config-standard": "16.0.3", | ||
"eslint-plugin-cypress": "2.11.3", | ||
"eslint-plugin-cypress": "2.12.1", | ||
"eslint-plugin-import": "2.24.2", | ||
@@ -78,3 +78,3 @@ "eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-promise": "5.1.0", | ||
"eslint-plugin-react": "7.25.1", | ||
"eslint-plugin-react": "7.26.1", | ||
"eslint-plugin-standard": "5.0.0", | ||
@@ -84,12 +84,12 @@ "fs-extra": "10.0.0", | ||
"jsdom": "17.0.0", | ||
"lint-staged": "11.1.2", | ||
"lint-staged": "11.2.0", | ||
"mocha": "8.4.0", | ||
"mocha-junit-reporter": "2.0.0", | ||
"mocha-multi-reporters": "1.5.1", | ||
"mochawesome": "6.2.2", | ||
"mochawesome": "6.3.0", | ||
"mochawesome-merge": "4.2.0", | ||
"mochawesome-report-generator": "5.2.0", | ||
"nanoid": "3.1.25", | ||
"prettier": "2.4.0", | ||
"rollup": "2.56.3", | ||
"nanoid": "3.1.28", | ||
"prettier": "2.4.1", | ||
"rollup": "2.58.0", | ||
"rollup-plugin-terser": "7.0.2", | ||
@@ -103,3 +103,3 @@ "rollup-plugin-typescript2": "0.30.0", | ||
"tslib": "2.3.1", | ||
"typescript": "4.4.2" | ||
"typescript": "4.4.3" | ||
}, | ||
@@ -106,0 +106,0 @@ "husky": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
101731
36
1669
0
1