@contentful/experiences-visual-editor-react 1.31.1-dev-20250219T1258-06c6e3b.0 → 1.31.1-dev-20250219T1303-e8b5a85.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/dist/index.js +50 -0
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +50 -0
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1015,8 +1015,33 @@ const ComponentVariableSchema$1 = z.object({
|
|
|
1015
1015
|
});
|
|
1016
1016
|
const ComponentVariablesSchema$1 = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/), // Here the key is <variableName>_<nanoidId> so we need to allow for a longer length
|
|
1017
1017
|
ComponentVariableSchema$1);
|
|
1018
|
+
const THUMBNAIL_IDS$1 = [
|
|
1019
|
+
'columns',
|
|
1020
|
+
'columnsPlusRight',
|
|
1021
|
+
'imagesSquare',
|
|
1022
|
+
'subtitles',
|
|
1023
|
+
'rowsPlusBottom',
|
|
1024
|
+
'userRectangle',
|
|
1025
|
+
'textbox',
|
|
1026
|
+
'monitorPlay',
|
|
1027
|
+
'article',
|
|
1028
|
+
'table',
|
|
1029
|
+
'star',
|
|
1030
|
+
'heartStraight',
|
|
1031
|
+
'frameCorners',
|
|
1032
|
+
'rows',
|
|
1033
|
+
'dotsThreeOutline',
|
|
1034
|
+
'listDashes',
|
|
1035
|
+
'checkerBoard',
|
|
1036
|
+
'gridFour',
|
|
1037
|
+
'slideshow',
|
|
1038
|
+
'diamondsFour',
|
|
1039
|
+
'cards',
|
|
1040
|
+
'textColumns',
|
|
1041
|
+
];
|
|
1018
1042
|
const ComponentSettingsSchema$1 = z.object({
|
|
1019
1043
|
variableDefinitions: ComponentVariablesSchema$1,
|
|
1044
|
+
thumbnailId: z.enum(THUMBNAIL_IDS$1).optional(),
|
|
1020
1045
|
variableMappings: VariableMappingsSchema$1.optional(),
|
|
1021
1046
|
patternPropertyDefinitions: PatternPropertyDefinitionsSchema$1.optional(),
|
|
1022
1047
|
});
|
|
@@ -3422,8 +3447,33 @@ const ComponentVariableSchema = z.object({
|
|
|
3422
3447
|
});
|
|
3423
3448
|
const ComponentVariablesSchema = z.record(z.string().regex(/^[a-zA-Z0-9-_]{1,54}$/), // Here the key is <variableName>_<nanoidId> so we need to allow for a longer length
|
|
3424
3449
|
ComponentVariableSchema);
|
|
3450
|
+
const THUMBNAIL_IDS = [
|
|
3451
|
+
'columns',
|
|
3452
|
+
'columnsPlusRight',
|
|
3453
|
+
'imagesSquare',
|
|
3454
|
+
'subtitles',
|
|
3455
|
+
'rowsPlusBottom',
|
|
3456
|
+
'userRectangle',
|
|
3457
|
+
'textbox',
|
|
3458
|
+
'monitorPlay',
|
|
3459
|
+
'article',
|
|
3460
|
+
'table',
|
|
3461
|
+
'star',
|
|
3462
|
+
'heartStraight',
|
|
3463
|
+
'frameCorners',
|
|
3464
|
+
'rows',
|
|
3465
|
+
'dotsThreeOutline',
|
|
3466
|
+
'listDashes',
|
|
3467
|
+
'checkerBoard',
|
|
3468
|
+
'gridFour',
|
|
3469
|
+
'slideshow',
|
|
3470
|
+
'diamondsFour',
|
|
3471
|
+
'cards',
|
|
3472
|
+
'textColumns',
|
|
3473
|
+
];
|
|
3425
3474
|
const ComponentSettingsSchema = z.object({
|
|
3426
3475
|
variableDefinitions: ComponentVariablesSchema,
|
|
3476
|
+
thumbnailId: z.enum(THUMBNAIL_IDS).optional(),
|
|
3427
3477
|
variableMappings: VariableMappingsSchema.optional(),
|
|
3428
3478
|
patternPropertyDefinitions: PatternPropertyDefinitionsSchema.optional(),
|
|
3429
3479
|
});
|