@contentful/app-sdk 4.0.0-alpha.31 → 4.0.0-alpha.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,270 +1,258 @@
1
- # [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)
1
+ # [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)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * 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))
6
+ * 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))
7
7
 
8
- # [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)
8
+ # [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)
9
+
10
+
11
+ ### Features
12
+
13
+ * **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))
14
+
15
+ # [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)
16
+
17
+
18
+ ### Features
19
+
20
+ * [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))
21
+
22
+ # [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)
9
23
 
10
24
 
11
25
  ### Bug Fixes
12
26
 
13
- * cmaAdapter is never undefined ([#881](https://github.com/contentful/ui-extensions-sdk/issues/881)) ([57f457d](https://github.com/contentful/ui-extensions-sdk/commit/57f457d8d4112b6c3a316f1e2a0bbfda2291aa5e))
27
+ * EXT-3073 typings ([#960](https://github.com/contentful/ui-extensions-sdk/issues/960)) ([e66f421](https://github.com/contentful/ui-extensions-sdk/commit/e66f42116200db13be0ab320ec9f195f4c57af1e))
14
28
 
15
- # [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)
29
+ # [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)
30
+
31
+ ### Bug Fixes
16
32
 
33
+ - 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))
34
+
35
+ # [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)
17
36
 
18
37
  ### Bug Fixes
19
38
 
20
- * [] 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))
39
+ - cmaAdapter is never undefined ([#881](https://github.com/contentful/ui-extensions-sdk/issues/881)) ([57f457d](https://github.com/contentful/ui-extensions-sdk/commit/57f457d8d4112b6c3a316f1e2a0bbfda2291aa5e))
21
40
 
22
- # [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)
41
+ # [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)
42
+
43
+ ### Bug Fixes
23
44
 
45
+ - [] 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))
46
+
47
+ # [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)
24
48
 
25
49
  ### Bug Fixes
26
50
 
27
- * Update canary with master ([#879](https://github.com/contentful/ui-extensions-sdk/issues/879)) ([9c1c84d](https://github.com/contentful/ui-extensions-sdk/commit/9c1c84dd550aa276d7c40b6fa09b2ea47f14b4da))
51
+ - Update canary with master ([#879](https://github.com/contentful/ui-extensions-sdk/issues/879)) ([9c1c84d](https://github.com/contentful/ui-extensions-sdk/commit/9c1c84dd550aa276d7c40b6fa09b2ea47f14b4da))
28
52
 
29
53
  # [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)
30
54
 
31
-
32
55
  ### Bug Fixes
33
56
 
34
- * 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))
57
+ - 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))
35
58
 
36
59
  # [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)
37
60
 
38
-
39
61
  ### Bug Fixes
40
62
 
41
- * fix type imports ([#874](https://github.com/contentful/ui-extensions-sdk/issues/874)) ([4866e80](https://github.com/contentful/ui-extensions-sdk/commit/4866e8066154def9db10187dc7ae48a13b211606))
63
+ - fix type imports ([#874](https://github.com/contentful/ui-extensions-sdk/issues/874)) ([4866e80](https://github.com/contentful/ui-extensions-sdk/commit/4866e8066154def9db10187dc7ae48a13b211606))
42
64
 
43
65
  # [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)
44
66
 
45
-
46
67
  ### Bug Fixes
47
68
 
48
- * 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))
69
+ - 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))
49
70
 
50
71
  # [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)
51
72
 
52
-
53
73
  ### Bug Fixes
54
74
 
55
- * 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)
56
- * **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))
57
- * 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))
75
+ - 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)
76
+ - **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))
77
+ - 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))
58
78
 
59
79
  # [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)
60
80
 
61
-
62
81
  ### Bug Fixes
63
82
 
64
- * use type export ([#841](https://github.com/contentful/ui-extensions-sdk/issues/841)) ([899535f](https://github.com/contentful/ui-extensions-sdk/commit/899535feb4939ea70c79abe3c309524eaede1e10))
83
+ - use type export ([#841](https://github.com/contentful/ui-extensions-sdk/issues/841)) ([899535f](https://github.com/contentful/ui-extensions-sdk/commit/899535feb4939ea70c79abe3c309524eaede1e10))
65
84
 
66
85
  # [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)
67
86
 
68
-
69
87
  ### Bug Fixes
70
88
 
71
- * 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))
89
+ - 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))
72
90
 
73
91
  # [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)
74
92
 
75
-
76
93
  ### Bug Fixes
77
94
 
78
- * bump version ([#835](https://github.com/contentful/ui-extensions-sdk/issues/835)) ([1f125af](https://github.com/contentful/ui-extensions-sdk/commit/1f125af52d8e2af0fc01e341bc4e2839e3354df4))
95
+ - bump version ([#835](https://github.com/contentful/ui-extensions-sdk/issues/835)) ([1f125af](https://github.com/contentful/ui-extensions-sdk/commit/1f125af52d8e2af0fc01e341bc4e2839e3354df4))
79
96
 
80
97
  # [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)
81
98
 
82
-
83
99
  ### Bug Fixes
84
100
 
85
- * make adapter optional ([#831](https://github.com/contentful/ui-extensions-sdk/issues/831)) ([a737f82](https://github.com/contentful/ui-extensions-sdk/commit/a737f82aeec965e380dbc5aeb06fd36969306f90))
101
+ - make adapter optional ([#831](https://github.com/contentful/ui-extensions-sdk/issues/831)) ([a737f82](https://github.com/contentful/ui-extensions-sdk/commit/a737f82aeec965e380dbc5aeb06fd36969306f90))
86
102
 
87
103
  # [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)
88
104
 
89
-
90
105
  ### Features
91
106
 
92
- * [] 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))
107
+ - [] 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))
93
108
 
94
109
  # [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)
95
110
 
96
-
97
111
  ### Features
98
112
 
99
- * 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))
113
+ - 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))
100
114
 
101
115
  # [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)
102
116
 
103
-
104
117
  ### Features
105
118
 
106
- * 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))
119
+ - 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))
107
120
 
108
121
  # [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)
109
122
 
110
-
111
123
  ### Bug Fixes
112
124
 
113
- * set ContentTypeAPI in SharedEditorSDK ([#794](https://github.com/contentful/ui-extensions-sdk/issues/794)) ([b9fa7fc](https://github.com/contentful/ui-extensions-sdk/commit/b9fa7fc59fb23aa691f00401a9b0f8bbd57bcba2))
125
+ - set ContentTypeAPI in SharedEditorSDK ([#794](https://github.com/contentful/ui-extensions-sdk/issues/794)) ([b9fa7fc](https://github.com/contentful/ui-extensions-sdk/commit/b9fa7fc59fb23aa691f00401a9b0f8bbd57bcba2))
114
126
 
115
127
  # [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)
116
128
 
117
-
118
129
  ### Bug Fixes
119
130
 
120
- * export ContentTypeAPI ([#793](https://github.com/contentful/ui-extensions-sdk/issues/793)) ([2f0f74e](https://github.com/contentful/ui-extensions-sdk/commit/2f0f74e7674604de88f3510343949885b333bdcd))
131
+ - export ContentTypeAPI ([#793](https://github.com/contentful/ui-extensions-sdk/issues/793)) ([2f0f74e](https://github.com/contentful/ui-extensions-sdk/commit/2f0f74e7674604de88f3510343949885b333bdcd))
121
132
 
122
133
  # [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)
123
134
 
124
-
125
135
  ### Bug Fixes
126
136
 
127
- * 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))
137
+ - 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))
128
138
 
129
139
  # [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)
130
140
 
131
-
132
141
  ### Features
133
142
 
134
- * 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))
143
+ - 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))
135
144
 
136
145
  # [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)
137
146
 
138
-
139
147
  ### Bug Fixes
140
148
 
141
- * 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))
149
+ - 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))
142
150
 
143
151
  # [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)
144
152
 
145
-
146
153
  ### Bug Fixes
147
154
 
148
- * 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))
155
+ - 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))
149
156
 
150
157
  # [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)
151
158
 
152
-
153
159
  ### Features
154
160
 
155
- * update AppConfigAPI types ([#753](https://github.com/contentful/ui-extensions-sdk/issues/753)) ([6876d0a](https://github.com/contentful/ui-extensions-sdk/commit/6876d0ad0f8214acdfb97783caa54740410b037d))
161
+ - update AppConfigAPI types ([#753](https://github.com/contentful/ui-extensions-sdk/issues/753)) ([6876d0a](https://github.com/contentful/ui-extensions-sdk/commit/6876d0ad0f8214acdfb97783caa54740410b037d))
156
162
 
157
163
  # [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)
158
164
 
159
-
160
165
  ### Features
161
166
 
162
- * 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))
167
+ - 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))
163
168
 
164
169
  # [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)
165
170
 
166
-
167
171
  ### Features
168
172
 
169
- * 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))
173
+ - 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))
170
174
 
171
175
  # [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)
172
176
 
173
-
174
177
  ### Features
175
178
 
176
- * 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))
179
+ - 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))
177
180
 
178
181
  # [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)
179
182
 
180
-
181
183
  ### Bug Fixes
182
184
 
183
- * 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)
185
+ - 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)
184
186
 
185
187
  # [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)
186
188
 
187
-
188
189
  ### Features
189
190
 
190
- * expose WithId ([#722](https://github.com/contentful/ui-extensions-sdk/issues/722)) ([80189db](https://github.com/contentful/ui-extensions-sdk/commit/80189dbdf5b7592a73e1ed4ec4fef40b0c85a1c8))
191
+ - expose WithId ([#722](https://github.com/contentful/ui-extensions-sdk/issues/722)) ([80189db](https://github.com/contentful/ui-extensions-sdk/commit/80189dbdf5b7592a73e1ed4ec4fef40b0c85a1c8))
191
192
 
192
193
  # [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)
193
194
 
194
-
195
195
  ### Bug Fixes
196
196
 
197
- * 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))
197
+ - 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))
198
198
 
199
+ # [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)
199
200
 
200
- # [3.39.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.38.0...v3.39.0) (2021-07-20)
201
+ ### Bug Fixes
201
202
 
203
+ - 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))
202
204
 
203
- ### Features
205
+ # [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)
204
206
 
205
- * Add typings and expose metadata methods ([#865](https://github.com/contentful/ui-extensions-sdk/issues/865)) ([b0bbaad](https://github.com/contentful/ui-extensions-sdk/commit/b0bbaad477114f7929d974b8bce8c3c03f05f4bf))
207
+ ### Bug Fixes
206
208
 
207
- # [3.38.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.37.0...v3.38.0) (2021-06-30)
209
+ - 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))
208
210
 
211
+ # [4.0.0-alpha.1](https://github.com/contentful/ui-extensions-sdk/compare/v3.34.1...v4.0.0-alpha.1) (2021-05-10)
209
212
 
210
213
  ### Features
211
214
 
212
- * add resolved info to tasks sys ([#822](https://github.com/contentful/ui-extensions-sdk/issues/822)) ([e0be824](https://github.com/contentful/ui-extensions-sdk/commit/e0be824956082aaa8fe00bd073f7354fb7dea51b))
215
+ - improve space API typings ([#684](https://github.com/contentful/ui-extensions-sdk/issues/684)) ([a57354c](https://github.com/contentful/ui-extensions-sdk/commit/a57354c32b78204d285aba897d213f201fec208c))
213
216
 
214
- # [3.37.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.36.0...v3.37.0) (2021-06-23)
217
+ ### BREAKING CHANGES
215
218
 
219
+ - old typings were too loose.
220
+ - "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))
216
221
 
217
- ### Features
222
+ # [3.39.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.38.0...v3.39.0) (2021-07-20)
218
223
 
219
- * add type parameter to create task input data ([#809](https://github.com/contentful/ui-extensions-sdk/issues/809)) ([e0fe688](https://github.com/contentful/ui-extensions-sdk/commit/e0fe688b3e07cf58abd20a0b1f9d82c7ea1e48e7))
224
+ ### Features
220
225
 
221
- # [3.36.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.35.0...v3.36.0) (2021-06-17)
226
+ - Add typings and expose metadata methods ([#865](https://github.com/contentful/ui-extensions-sdk/issues/865)) ([b0bbaad](https://github.com/contentful/ui-extensions-sdk/commit/b0bbaad477114f7929d974b8bce8c3c03f05f4bf))
222
227
 
228
+ # [3.38.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.37.0...v3.38.0) (2021-06-30)
223
229
 
224
230
  ### Features
225
231
 
226
- * add interface for space.getTeams [HOMER-75] ([#789](https://github.com/contentful/ui-extensions-sdk/issues/789)) ([a5b8dac](https://github.com/contentful/ui-extensions-sdk/commit/a5b8dac92293d2e58ba7625ca4a310d182f3cabf))
227
-
228
- # [3.35.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.34.3...v3.35.0) (2021-06-11)
232
+ - add resolved info to tasks sys ([#822](https://github.com/contentful/ui-extensions-sdk/issues/822)) ([e0be824](https://github.com/contentful/ui-extensions-sdk/commit/e0be824956082aaa8fe00bd073f7354fb7dea51b))
229
233
 
234
+ # [3.37.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.36.0...v3.37.0) (2021-06-23)
230
235
 
231
236
  ### Features
232
237
 
233
- * add due date as a task field type ([#776](https://github.com/contentful/ui-extensions-sdk/issues/776)) ([ed0bf60](https://github.com/contentful/ui-extensions-sdk/commit/ed0bf60ce877665a3558555346c6bf0c9274bb49))
238
+ - add type parameter to create task input data ([#809](https://github.com/contentful/ui-extensions-sdk/issues/809)) ([e0fe688](https://github.com/contentful/ui-extensions-sdk/commit/e0fe688b3e07cf58abd20a0b1f9d82c7ea1e48e7))
234
239
 
235
- ## [3.34.3](https://github.com/contentful/ui-extensions-sdk/compare/v3.34.2...v3.34.3) (2021-05-18)
240
+ # [3.36.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.35.0...v3.36.0) (2021-06-17)
236
241
 
237
- ### Reverts
242
+ ### Features
238
243
 
239
- * "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))
244
+ - add interface for space.getTeams [HOMER-75] ([#789](https://github.com/contentful/ui-extensions-sdk/issues/789)) ([a5b8dac](https://github.com/contentful/ui-extensions-sdk/commit/a5b8dac92293d2e58ba7625ca4a310d182f3cabf))
240
245
 
241
- # [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)
246
+ # [3.35.0](https://github.com/contentful/ui-extensions-sdk/compare/v3.34.3...v3.35.0) (2021-06-11)
242
247
 
243
- ### Bug Fixes
248
+ ### Features
244
249
 
245
- - 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))
250
+ - add due date as a task field type ([#776](https://github.com/contentful/ui-extensions-sdk/issues/776)) ([ed0bf60](https://github.com/contentful/ui-extensions-sdk/commit/ed0bf60ce877665a3558555346c6bf0c9274bb49))
246
251
 
247
252
  ## [3.34.3](https://github.com/contentful/ui-extensions-sdk/compare/v3.34.2...v3.34.3) (2021-05-18)
248
253
 
249
254
  ### Reverts
250
255
 
251
- - bump cypress from 7.2.0 to 7.3.0 ([#706](https://github.com/contentful/ui-extensions-sdk/issues/706)) ([ebcdf01](https://github.com/contentful/ui-extensions-sdk/commit/ebcdf01c26c59707e5733f34d8897a9de9bfa462))
252
-
253
- # [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)
254
-
255
- ### Bug Fixes
256
-
257
- - 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))
258
-
259
- # [4.0.0-alpha.1](https://github.com/contentful/ui-extensions-sdk/compare/v3.34.1...v4.0.0-alpha.1) (2021-05-10)
260
-
261
- ### Features
262
-
263
- - improve space API typings ([#684](https://github.com/contentful/ui-extensions-sdk/issues/684)) ([a57354c](https://github.com/contentful/ui-extensions-sdk/commit/a57354c32b78204d285aba897d213f201fec208c))
264
-
265
- ### BREAKING CHANGES
266
-
267
- - old typings were too loose.
268
256
  - "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))
269
257
 
270
258
  ## [3.34.2](https://github.com/contentful/ui-extensions-sdk/compare/v3.34.1...v3.34.2) (2021-05-11)
@@ -1 +1 @@
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 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 E="preInstall",m="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)},I=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 w(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===E?I(n[r],{}).then((function(t){return e.send("appHookResult",{stage:r,installationRequestId:o,result:t})})):r===m?I(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(E,e)},onConfigurationCompleted:function(e){r(m,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=[D,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)}},P,R],N=((b={})[L.LOCATION_ENTRY_FIELD]=H,b[L.LOCATION_ENTRY_FIELD_SIDEBAR]=H,b[L.LOCATION_ENTRY_SIDEBAR]=[D,x,P,R],b[L.LOCATION_ENTRY_EDITOR]=[D,x,P],b[L.LOCATION_DIALOG]=[D,function(e){return{close:function(t){return e.send("closeDialog",t)}}},R],b[L.LOCATION_PAGE]=[D],b[L.LOCATION_APP_CONFIG]=[D,function(e){return{app:w(e)}}],b);function D(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){return e.call("checkAccess",t,n)},canEditAppConfig:function(){return e.call("checkAppConfigAccess")}}}}function R(e,t,n){return{window:c(n,e)}}function P(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 F,k,M,V,j=(F=window,k=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=F.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)}))}(F,(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||F.self!==F.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=k(o,i,F);"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;
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){return e.call("checkAccess",t,n)},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;
@@ -1,4 +1,4 @@
1
- import { ContentType, EditorInterface, SpaceMembership, Role, ContentTypeField, Metadata } from './entities';
1
+ import { ContentType, EditorInterface, SpaceMembership, Role, ContentTypeField, Metadata, Entry, Task, Asset } from './entities';
2
2
  import { EntryAPI } from './entry.types';
3
3
  import { SpaceAPI } from './space.types';
4
4
  import { WindowAPI } from './window.types';
@@ -107,17 +107,26 @@ export interface SharedEditorSDK {
107
107
  declare type CrudAction = 'create' | 'read' | 'update' | 'delete';
108
108
  declare type PublishableAction = 'publish' | 'unpublish';
109
109
  declare type ArchiveableAction = 'archive' | 'unarchive';
110
+ declare type JSONPatchItem = {
111
+ op: 'remove' | 'replace' | 'add';
112
+ path: string;
113
+ value?: any;
114
+ };
115
+ declare type PatchEntity = Entry | Task | Asset;
110
116
  export interface AccessAPI {
111
117
  can(action: 'read' | 'update', entity: 'EditorInterface' | EditorInterface): Promise<boolean>;
112
118
  can<T = Object>(action: CrudAction, entity: 'ContentType' | ContentType | 'Asset' | 'Entry' | T): Promise<boolean>;
113
119
  can<T = Object>(action: PublishableAction, entity: 'ContentType' | ContentType | 'Asset' | 'Entry' | T): Promise<boolean>;
114
120
  can<T = Object>(action: ArchiveableAction, entity: 'Asset' | 'Entry' | T): Promise<boolean>;
121
+ can(action: 'update', entity: PatchEntity, patch: JSONPatchItem[]): Promise<boolean>;
115
122
  /** Whether the current user can edit app config */
116
123
  canEditAppConfig: () => Promise<boolean>;
117
124
  }
118
125
  declare type EntryScopedIds = 'field' | 'entry' | 'contentType';
119
126
  export interface BaseExtensionSDK {
120
- /** Exposes methods that allow the app to read and manipulate a wide range of objects in the space. */
127
+ /** @deprecated since version 4.0.0 consider using the CMA instead
128
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
129
+ */
121
130
  space: SpaceAPI;
122
131
  /** Information about the current user and roles */
123
132
  user: UserAPI;
@@ -20,14 +20,11 @@ interface AppStateEditorInterfaceItem {
20
20
  export interface AppState {
21
21
  EditorInterface: Record<ContentType['sys']['id'], AppStateEditorInterfaceItem>;
22
22
  }
23
- export declare type OnConfigureHandlerReturn = Promise<{
24
- parameters?: KeyValueMap | null;
25
- targetState?: AppState | null;
26
- }> | {
23
+ export declare type OnConfigureHandlerReturn = {
27
24
  parameters?: KeyValueMap | null;
28
25
  targetState?: AppState | null;
29
26
  } | false;
30
- export declare type OnConfigureHandler = () => OnConfigureHandlerReturn;
27
+ export declare type OnConfigureHandler = () => OnConfigureHandlerReturn | Promise<OnConfigureHandlerReturn>;
31
28
  export interface AppConfigAPI {
32
29
  /** Tells the web app that the app is loaded */
33
30
  setReady: () => Promise<void>;
@@ -1,4 +1,4 @@
1
- export type { TagProps as Tag, TeamProps as Team, UserProps as User, AssetProps as Asset, TaskProps as Task, ScheduledActionProps as ScheduledAction, ContentTypeProps as ContentType, EditorInterfaceProps as EditorInterface, SpaceMembershipProps as SpaceMembership, ContentFields as ContentTypeField, ContentTypeFieldValidation, EntryProps as Entry, RoleProps as Role, KeyValueMap, QueryOptions, TagVisibility, MetadataProps as Metadata, } from 'contentful-management/types';
1
+ export type { TagProps as Tag, TeamProps as Team, UserProps as User, AssetProps as Asset, TaskProps as Task, ScheduledActionProps as ScheduledAction, ContentTypeProps as ContentType, EditorInterfaceProps as EditorInterface, SpaceMembershipProps as SpaceMembership, ContentFields as ContentTypeField, ContentTypeFieldValidation, EntryProps as Entry, RoleProps as Role, KeyValueMap, QueryOptions, TagVisibility, MetadataProps as Metadata, UploadProps as Upload, } from 'contentful-management/types';
2
2
  export interface CanonicalRequest {
3
3
  method: 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
4
4
  path: string;
@@ -1,4 +1,4 @@
1
- import { Asset, CanonicalRequest, ContentType, EditorInterface, ScheduledAction, Tag, Team, User, TagVisibility, KeyValueMap, Entry, QueryOptions } from './entities';
1
+ import { Asset, CanonicalRequest, ContentType, EditorInterface, ScheduledAction, Tag, Team, User, TagVisibility, KeyValueMap, Entry, QueryOptions, Upload } from './entities';
2
2
  import { CollectionResponse, ContentEntityType, Link, WithOptionalId, SearchQuery } from './utils';
3
3
  declare type Snapshot<T> = {
4
4
  sys: {
@@ -17,49 +17,256 @@ declare type Snapshot<T> = {
17
17
  snapshot: T;
18
18
  };
19
19
  export interface SpaceAPI {
20
+ /**
21
+ * @deprecated since version 4.0.0
22
+ * Please using `cma.contentType.getMany` instead
23
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
24
+ */
20
25
  getCachedContentTypes: () => ContentType[];
26
+ /**
27
+ * @deprecated since version 4.0.0
28
+ * Consider using `cma.contentType.get` instead
29
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
30
+ */
21
31
  getContentType: (id: string) => Promise<ContentType>;
32
+ /**
33
+ * @deprecated since version 4.0.0
34
+ * Consider using `cma.contentType.getMany` instead
35
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
36
+ */
22
37
  getContentTypes: <Query extends SearchQuery = SearchQuery>(query?: Query) => Promise<CollectionResponse<ContentType>>;
38
+ /**
39
+ * @deprecated since version 4.0.0
40
+ * Consider using `cma.contentType.create` or `cma.contentType.createWithId` instead
41
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
42
+ */
23
43
  createContentType: (data: WithOptionalId<ContentType>) => Promise<ContentType>;
44
+ /**
45
+ * @deprecated since version 4.0.0
46
+ * Consider using `cma.contentType.update` instead
47
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
48
+ */
24
49
  updateContentType: (data: ContentType) => Promise<ContentType>;
50
+ /**
51
+ * @deprecated since version 4.0.0
52
+ * Consider using `cma.contentType.delete` instead
53
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
54
+ */
25
55
  deleteContentType: (contentTypeId: string) => Promise<void>;
56
+ /**
57
+ * @deprecated since version 4.0.0
58
+ * Consider using `cma.entry.get` instead
59
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
60
+ */
26
61
  getEntry: <Fields extends KeyValueMap = KeyValueMap>(id: string) => Promise<Entry<Fields>>;
62
+ /**
63
+ * @deprecated since version 4.0.0
64
+ * Consider using `cma.snapshot.getForEntry` instead
65
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
66
+ */
27
67
  getEntrySnapshots: <Fields extends KeyValueMap = KeyValueMap>(id: string) => Promise<CollectionResponse<Snapshot<Entry<Fields>>>>;
68
+ /**
69
+ * @deprecated since version 4.0.0
70
+ * Consider using `cma.entry.getMany` instead
71
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
72
+ */
28
73
  getEntries: <Fields, Query extends SearchQuery = SearchQuery>(query?: Query) => Promise<CollectionResponse<Entry<Fields>>>;
74
+ /**
75
+ * @deprecated since version 4.0.0
76
+ * Consider using `cma.entry.create` or `cma.entry.createWithId` instead
77
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
78
+ */
29
79
  createEntry: <Fields>(contentTypeId: string, data: WithOptionalId<Entry<Fields>>) => Promise<Entry<Fields>>;
80
+ /**
81
+ * @deprecated since version 4.0.0
82
+ * Consider using `cma.entry.update` instead
83
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
84
+ */
30
85
  updateEntry: <Fields extends KeyValueMap = KeyValueMap>(data: Entry<Fields>) => Promise<Entry<Fields>>;
86
+ /**
87
+ * @deprecated since version 4.0.0
88
+ * Consider using `cma.entry.publish` instead
89
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
90
+ */
31
91
  publishEntry: <Fields extends KeyValueMap = KeyValueMap>(data: Entry<Fields>) => Promise<Entry<Fields>>;
92
+ /**
93
+ * @deprecated since version 4.0.0
94
+ * Consider using `cma.entry.unpublish` instead
95
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
96
+ */
32
97
  unpublishEntry: <Fields extends KeyValueMap = KeyValueMap>(data: Entry<Fields>) => Promise<Entry<Fields>>;
98
+ /**
99
+ * @deprecated since version 4.0.0
100
+ * Consider using `cma.entry.archive` instead
101
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
102
+ */
33
103
  archiveEntry: <Fields extends KeyValueMap = KeyValueMap>(data: Entry<Fields>) => Promise<Entry<Fields>>;
104
+ /**
105
+ * @deprecated since version 4.0.0
106
+ * Consider using `cma.entry.unarchive` instead
107
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
108
+ */
34
109
  unarchiveEntry: <Fields extends KeyValueMap = KeyValueMap>(data: Entry<Fields>) => Promise<Entry<Fields>>;
110
+ /**
111
+ * @deprecated since version 4.0.0
112
+ * Consider using `cma.entry.delete` instead
113
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
114
+ */
35
115
  deleteEntry: <Fields extends KeyValueMap = KeyValueMap>(data: Entry<Fields>) => Promise<void>;
116
+ /**
117
+ * @deprecated since version 4.0.0
118
+ * Consider using `cma.entry.getMany` instead
119
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
120
+ */
36
121
  getPublishedEntries: <Fields, Query extends SearchQuery = SearchQuery>(query?: Query) => Promise<CollectionResponse<Entry<Fields>>>;
122
+ /**
123
+ * @deprecated since version 4.0.0
124
+ * Consider using `cma.asset.get` instead
125
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
126
+ */
37
127
  getAsset: (id: string) => Promise<Asset>;
128
+ /**
129
+ * @deprecated since version 4.0.0
130
+ * Consider using `cma.asset.getMany` instead
131
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
132
+ */
38
133
  getAssets: <Query extends SearchQuery = SearchQuery>(query?: Query) => Promise<CollectionResponse<Asset>>;
134
+ /**
135
+ * @deprecated since version 4.0.0
136
+ * Consider using `cma.asset.create` instead
137
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
138
+ */
39
139
  createAsset: (data: WithOptionalId<Asset>) => Promise<Asset>;
140
+ /**
141
+ * @deprecated since version 4.0.0
142
+ * Consider using `cma.asset.update` instead
143
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
144
+ */
40
145
  updateAsset: (data: Asset) => Promise<Asset>;
146
+ /**
147
+ * @deprecated since version 4.0.0
148
+ * Consider using `cma.asset.delete` instead
149
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
150
+ */
41
151
  deleteAsset: (data: Asset) => Promise<void>;
152
+ /**
153
+ * @deprecated since version 4.0.0
154
+ * Consider using `cma.asset.publish` instead
155
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
156
+ */
42
157
  publishAsset: (data: Asset) => Promise<Asset>;
158
+ /**
159
+ * @deprecated since version 4.0.0
160
+ * Consider using `cma.asset.unpublish` instead
161
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
162
+ */
43
163
  unpublishAsset: (data: Asset) => Promise<Asset>;
164
+ /**
165
+ * @deprecated since version 4.0.0
166
+ * Consider using `cma.asset.archive` instead
167
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
168
+ */
44
169
  archiveAsset: (data: Asset) => Promise<Asset>;
170
+ /**
171
+ * @deprecated since version 4.0.0
172
+ * Consider using `cma.asset.processForLocale` instead
173
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
174
+ */
45
175
  processAsset: (data: Asset, locale: string) => Promise<Asset>;
176
+ /**
177
+ * @deprecated since version 4.0.0
178
+ * Consider using `cma.asset.unarchive` instead
179
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
180
+ */
46
181
  unarchiveAsset: (data: Asset) => Promise<Asset>;
182
+ /**
183
+ * @deprecated since version 4.0.0
184
+ * Consider using `cma.asset.getMany` instead
185
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
186
+ */
47
187
  getPublishedAssets: <Query extends SearchQuery = SearchQuery>(query?: Query) => Promise<CollectionResponse<Asset>>;
48
- createUpload: (base64data: string) => Promise<void>;
188
+ /**
189
+ * @deprecated since version 4.0.0
190
+ * Consider using `cma.upload.create` instead
191
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
192
+ */
193
+ createUpload: (base64data: string) => Promise<Upload>;
194
+ /**
195
+ * @deprecated since version 4.0.0
196
+ * Consider polling `cma.asset.get` instead
197
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
198
+ */
49
199
  waitUntilAssetProcessed: (assetId: string, locale: string) => Promise<Asset>;
50
- /** Returns all users who belong to the space. */
200
+ /**
201
+ * @deprecated since version 4.0.0
202
+ * Consider using `cma.user.getManyForSpace` instead
203
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
204
+ * Returns all users who belong to the space.
205
+ */
51
206
  getUsers: () => Promise<CollectionResponse<User>>;
52
- /** Returns editor interface for a given content type */
207
+ /**
208
+ * @deprecated since version 4.0.0
209
+ * Consider using `cma.editorInterface.get` instead
210
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
211
+ * Returns editor interface for a given content type
212
+ */
53
213
  getEditorInterface: (contentTypeId: string) => Promise<EditorInterface>;
54
- /** Returns editor interfaces for a given environment */
214
+ /**
215
+ * @deprecated since version 4.0.0
216
+ * Consider using `cma.editorInterface.getMany` instead
217
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
218
+ * Returns editor interfaces for a given environment
219
+ */
55
220
  getEditorInterfaces: () => Promise<CollectionResponse<EditorInterface>>;
221
+ /**
222
+ * @deprecated since version 4.0.0
223
+ * Consider using `cma.scheduledActions.getMany` instead
224
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
225
+ * Returns a list of scheduled actions for a given entity
226
+ */
56
227
  getEntityScheduledActions: (entityType: ContentEntityType, entityId: string) => Promise<ScheduledAction[]>;
228
+ /**
229
+ * @deprecated since version 4.0.0
230
+ * Consider using `cma.scheduledActions.getMany` instead
231
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
232
+ * Returns a list of scheduled actions for the currenst space & environment
233
+ */
57
234
  getAllScheduledActions: () => Promise<ScheduledAction[]>;
235
+ /**
236
+ * @deprecated since version 4.0.0
237
+ * Consider using `cma.appSignedRequest.create` instead
238
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
239
+ */
58
240
  signRequest: (request: CanonicalRequest) => Promise<Record<string, string>>;
241
+ /**
242
+ * @deprecated since version 4.0.0
243
+ * Consider using `cma.tag.create` instead
244
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
245
+ */
59
246
  createTag: (id: string, name: string, visibility?: TagVisibility) => Promise<Tag>;
247
+ /**
248
+ * @deprecated since version 4.0.0
249
+ * Consider using `cma.tag.getMany` instead
250
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
251
+ */
60
252
  readTags: (skip: number, limit: number) => Promise<CollectionResponse<Tag>>;
253
+ /**
254
+ * @deprecated since version 4.0.0
255
+ * Consider using `cma.tag.update` instead
256
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
257
+ */
61
258
  updateTag: (id: string, name: string, version: number) => Promise<Tag>;
259
+ /**
260
+ * @deprecated since version 4.0.0
261
+ * Consider using `cma.tag.delete` instead
262
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
263
+ */
62
264
  deleteTag: (id: string, version: number) => Promise<boolean>;
265
+ /**
266
+ * @deprecated since version 4.0.0
267
+ * Consider using `cma.team.get` instead
268
+ * See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details
269
+ */
63
270
  getTeams: (query: QueryOptions) => Promise<CollectionResponse<Team>>;
64
271
  }
65
272
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentful/app-sdk",
3
3
  "description": "SDK to develop custom UI Extension for the Contentful Web App",
4
- "version": "4.0.0-alpha.31",
4
+ "version": "4.0.0-alpha.35",
5
5
  "author": "Contentful GmbH",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -40,9 +40,9 @@
40
40
  "devDependencies": {
41
41
  "@semantic-release/changelog": "5.0.1",
42
42
  "@semantic-release/exec": "5.0.0",
43
- "@semantic-release/git": "9.0.0",
44
- "@testing-library/cypress": "7.0.6",
45
- "@testing-library/dom": "7.31.2",
43
+ "@semantic-release/git": "9.0.1",
44
+ "@testing-library/cypress": "8.0.1",
45
+ "@testing-library/dom": "8.3.0",
46
46
  "@types/async-retry": "1.4.3",
47
47
  "@types/chai-as-promised": "7.1.4",
48
48
  "@types/cross-spawn": "6.0.2",
@@ -51,49 +51,50 @@
51
51
  "@types/nanoid": "3.0.0",
52
52
  "@types/sinon": "^10.0.0",
53
53
  "@types/sinon-chai": "^3.2.5",
54
- "@typescript-eslint/eslint-plugin": "4.28.4",
55
- "@typescript-eslint/parser": "4.28.3",
56
- "async-retry": "1.3.1",
54
+ "@typescript-eslint/eslint-plugin": "4.31.0",
55
+ "@typescript-eslint/parser": "4.31.0",
56
+ "async-retry": "1.3.3",
57
57
  "babel-eslint": "10.1.0",
58
58
  "chai": "4.3.4",
59
59
  "chai-as-promised": "7.1.1",
60
- "contentful-management": "^7.30.0",
60
+ "contentful-management": "7.37.0",
61
61
  "cross-spawn": "7.0.3",
62
- "cypress": "7.7.0",
62
+ "cypress": "8.3.1",
63
63
  "cypress-multi-reporters": "1.5.0",
64
+ "cypress-terminal-report": "^3.3.2",
64
65
  "dotenv": "10.0.0",
65
- "eslint": "7.30.0",
66
+ "eslint": "7.32.0",
66
67
  "eslint-config-prettier": "8.3.0",
67
68
  "eslint-config-standard": "16.0.3",
68
69
  "eslint-plugin-cypress": "2.11.3",
69
- "eslint-plugin-import": "2.23.4",
70
+ "eslint-plugin-import": "2.24.2",
70
71
  "eslint-plugin-node": "11.1.0",
71
- "eslint-plugin-prettier": "3.4.0",
72
+ "eslint-plugin-prettier": "4.0.0",
72
73
  "eslint-plugin-promise": "5.1.0",
73
- "eslint-plugin-react": "7.24.0",
74
+ "eslint-plugin-react": "7.25.1",
74
75
  "eslint-plugin-standard": "5.0.0",
75
76
  "fs-extra": "10.0.0",
76
77
  "husky": "4.3.8",
77
- "jsdom": "16.6.0",
78
- "lint-staged": "11.1.0",
78
+ "jsdom": "17.0.0",
79
+ "lint-staged": "11.1.2",
79
80
  "mocha": "8.4.0",
80
81
  "mocha-junit-reporter": "2.0.0",
81
82
  "mocha-multi-reporters": "1.5.1",
82
83
  "mochawesome": "6.2.2",
83
84
  "mochawesome-merge": "4.2.0",
84
85
  "mochawesome-report-generator": "5.2.0",
85
- "nanoid": "3.1.23",
86
- "prettier": "2.3.2",
87
- "rollup": "2.53.3",
86
+ "nanoid": "3.1.25",
87
+ "prettier": "2.4.0",
88
+ "rollup": "2.56.3",
88
89
  "rollup-plugin-terser": "7.0.2",
89
90
  "rollup-plugin-typescript2": "0.30.0",
90
91
  "semantic-release": "17.4.2",
91
- "sinon": "11.1.1",
92
+ "sinon": "11.1.2",
92
93
  "sinon-chai": "3.7.0",
93
94
  "ts-mocha": "8.0.0",
94
- "ts-node": "10.1.0",
95
- "tslib": "2.3.0",
96
- "typescript": "4.3.5"
95
+ "ts-node": "10.2.1",
96
+ "tslib": "2.3.1",
97
+ "typescript": "4.4.2"
97
98
  },
98
99
  "husky": {
99
100
  "hooks": {