contentful-migration 4.23.2 → 4.25.0
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 +3 -4
- package/index.d.ts +21 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
# [4.25.0](https://github.com/contentful/contentful-migration/compare/v4.24.0...v4.25.0) (2024-10-04)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* ts errors ([#1358](https://github.com/contentful/contentful-migration/issues/1358)) ([b20125c](https://github.com/contentful/contentful-migration/commit/b20125c36a4ba78af9174066c2fb888cf5b8aaf7))
|
|
6
|
+
* **types:** add configureEntryEditors definition ([#1222](https://github.com/contentful/contentful-migration/issues/1222)) ([584b879](https://github.com/contentful/contentful-migration/commit/584b87906b831512b4206089dee0f80b53dd19cb))
|
|
8
7
|
|
|
9
8
|
# Change Log
|
|
10
9
|
|
package/index.d.ts
CHANGED
|
@@ -161,12 +161,18 @@ export interface IValidation {
|
|
|
161
161
|
[validation: string]: any
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export interface
|
|
164
|
+
export interface ContentfulEntryResource {
|
|
165
165
|
type: 'Contentful:Entry'
|
|
166
166
|
source: string
|
|
167
167
|
contentTypes: string[]
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
export interface ExternalResource {
|
|
171
|
+
type: string
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type AllowedResource = ContentfulEntryResource | ExternalResource
|
|
175
|
+
|
|
170
176
|
export type WidgetSettingsValue = number | boolean | string | undefined
|
|
171
177
|
|
|
172
178
|
export interface IEditorInterfaceOptions {
|
|
@@ -201,6 +207,12 @@ export interface IFieldGroupWidgetSettings {
|
|
|
201
207
|
[setting: string]: WidgetSettingsValue
|
|
202
208
|
}
|
|
203
209
|
|
|
210
|
+
export interface IEntryEditor {
|
|
211
|
+
widgetNamespace: 'editor-builtin' | 'builtin' | 'extension' | 'app',
|
|
212
|
+
widgetId: string,
|
|
213
|
+
settings?: IEditorInterfaceOptions
|
|
214
|
+
}
|
|
215
|
+
|
|
204
216
|
export interface ContentType {
|
|
205
217
|
id: string
|
|
206
218
|
instanceId: string
|
|
@@ -239,11 +251,18 @@ export interface ContentType {
|
|
|
239
251
|
* @param settings Widget settings
|
|
240
252
|
*/
|
|
241
253
|
configureEntryEditor(
|
|
242
|
-
widgetNamespace: 'builtin' | 'extension' | 'app',
|
|
254
|
+
widgetNamespace: 'editor-builtin' | 'builtin' | 'extension' | 'app',
|
|
243
255
|
widgetId: string,
|
|
244
256
|
settings?: IEditorInterfaceOptions
|
|
245
257
|
): void
|
|
246
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Similar to configureEntryEditor, but allows configuring multiple entry editors at once.
|
|
261
|
+
*
|
|
262
|
+
* @param entryEditors An array of entry editor configurations.
|
|
263
|
+
*/
|
|
264
|
+
configureEntryEditors(entryEditors: IEntryEditor[]): void
|
|
265
|
+
|
|
247
266
|
/**
|
|
248
267
|
* Changes the control of given field's ID.
|
|
249
268
|
*
|