@elementor/editor-props 4.0.0-547 → 4.0.0-548
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.d.mts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +76 -70
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -70
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/index.ts +1 -0
- package/src/prop-types/string-array.ts +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -1325,6 +1325,31 @@ declare const stringPropTypeUtil: {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
type StringPropValue = z.infer<typeof stringPropTypeUtil.schema>;
|
|
1327
1327
|
|
|
1328
|
+
declare const stringArrayPropTypeUtil: {
|
|
1329
|
+
extract: (prop: unknown) => string[] | null;
|
|
1330
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"string-array", string[]>;
|
|
1331
|
+
create: {
|
|
1332
|
+
(value: string[]): TransformablePropValue$1<"string-array", string[]>;
|
|
1333
|
+
(value: string[], createOptions?: CreateOptions): TransformablePropValue$1<"string-array", string[]>;
|
|
1334
|
+
(value: (prev?: string[] | undefined) => string[], createOptions: CreateOptions): TransformablePropValue$1<"string-array", string[]>;
|
|
1335
|
+
};
|
|
1336
|
+
schema: z.ZodObject<{
|
|
1337
|
+
$$type: z.ZodLiteral<"string-array">;
|
|
1338
|
+
value: z.ZodType<string[], z.ZodTypeDef, string[]>;
|
|
1339
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1340
|
+
}, "strict", z.ZodTypeAny, {
|
|
1341
|
+
$$type: "string-array";
|
|
1342
|
+
value: string[];
|
|
1343
|
+
disabled?: boolean | undefined;
|
|
1344
|
+
}, {
|
|
1345
|
+
$$type: "string-array";
|
|
1346
|
+
value: string[];
|
|
1347
|
+
disabled?: boolean | undefined;
|
|
1348
|
+
}>;
|
|
1349
|
+
key: "string-array";
|
|
1350
|
+
};
|
|
1351
|
+
type StringArrayPropValue = z.infer<typeof stringArrayPropTypeUtil.schema>;
|
|
1352
|
+
|
|
1328
1353
|
declare const strokePropTypeUtil: {
|
|
1329
1354
|
extract: (prop: unknown) => {
|
|
1330
1355
|
color?: any;
|
|
@@ -6179,4 +6204,4 @@ declare const Schema: {
|
|
|
6179
6204
|
removeIntention: typeof removeIntention;
|
|
6180
6205
|
};
|
|
6181
6206
|
|
|
6182
|
-
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
|
6207
|
+
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
package/dist/index.d.ts
CHANGED
|
@@ -1325,6 +1325,31 @@ declare const stringPropTypeUtil: {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
type StringPropValue = z.infer<typeof stringPropTypeUtil.schema>;
|
|
1327
1327
|
|
|
1328
|
+
declare const stringArrayPropTypeUtil: {
|
|
1329
|
+
extract: (prop: unknown) => string[] | null;
|
|
1330
|
+
isValid: (prop: unknown) => prop is TransformablePropValue$1<"string-array", string[]>;
|
|
1331
|
+
create: {
|
|
1332
|
+
(value: string[]): TransformablePropValue$1<"string-array", string[]>;
|
|
1333
|
+
(value: string[], createOptions?: CreateOptions): TransformablePropValue$1<"string-array", string[]>;
|
|
1334
|
+
(value: (prev?: string[] | undefined) => string[], createOptions: CreateOptions): TransformablePropValue$1<"string-array", string[]>;
|
|
1335
|
+
};
|
|
1336
|
+
schema: z.ZodObject<{
|
|
1337
|
+
$$type: z.ZodLiteral<"string-array">;
|
|
1338
|
+
value: z.ZodType<string[], z.ZodTypeDef, string[]>;
|
|
1339
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1340
|
+
}, "strict", z.ZodTypeAny, {
|
|
1341
|
+
$$type: "string-array";
|
|
1342
|
+
value: string[];
|
|
1343
|
+
disabled?: boolean | undefined;
|
|
1344
|
+
}, {
|
|
1345
|
+
$$type: "string-array";
|
|
1346
|
+
value: string[];
|
|
1347
|
+
disabled?: boolean | undefined;
|
|
1348
|
+
}>;
|
|
1349
|
+
key: "string-array";
|
|
1350
|
+
};
|
|
1351
|
+
type StringArrayPropValue = z.infer<typeof stringArrayPropTypeUtil.schema>;
|
|
1352
|
+
|
|
1328
1353
|
declare const strokePropTypeUtil: {
|
|
1329
1354
|
extract: (prop: unknown) => {
|
|
1330
1355
|
color?: any;
|
|
@@ -6179,4 +6204,4 @@ declare const Schema: {
|
|
|
6179
6204
|
removeIntention: typeof removeIntention;
|
|
6180
6205
|
};
|
|
6181
6206
|
|
|
6182
|
-
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
|
6207
|
+
export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil };
|
package/dist/index.js
CHANGED
|
@@ -78,6 +78,7 @@ __export(index_exports, {
|
|
|
78
78
|
shadowPropTypeUtil: () => shadowPropTypeUtil,
|
|
79
79
|
sizePropTypeUtil: () => sizePropTypeUtil,
|
|
80
80
|
skewTransformPropTypeUtil: () => skewTransformPropTypeUtil,
|
|
81
|
+
stringArrayPropTypeUtil: () => stringArrayPropTypeUtil,
|
|
81
82
|
stringPropTypeUtil: () => stringPropTypeUtil,
|
|
82
83
|
strokePropTypeUtil: () => strokePropTypeUtil,
|
|
83
84
|
transformFunctionsPropTypeUtil: () => transformFunctionsPropTypeUtil,
|
|
@@ -293,35 +294,39 @@ var sizePropTypeUtil = createPropUtils(
|
|
|
293
294
|
var import_schema16 = require("@elementor/schema");
|
|
294
295
|
var stringPropTypeUtil = createPropUtils("string", import_schema16.z.string().nullable());
|
|
295
296
|
|
|
296
|
-
// src/prop-types/
|
|
297
|
+
// src/prop-types/string-array.ts
|
|
297
298
|
var import_schema17 = require("@elementor/schema");
|
|
299
|
+
var stringArrayPropTypeUtil = createPropUtils("string-array", import_schema17.z.array(import_schema17.z.string()));
|
|
300
|
+
|
|
301
|
+
// src/prop-types/stroke.ts
|
|
302
|
+
var import_schema18 = require("@elementor/schema");
|
|
298
303
|
var strokePropTypeUtil = createPropUtils(
|
|
299
304
|
"stroke",
|
|
300
|
-
|
|
305
|
+
import_schema18.z.strictObject({
|
|
301
306
|
color: unknownChildrenSchema,
|
|
302
307
|
width: unknownChildrenSchema
|
|
303
308
|
})
|
|
304
309
|
);
|
|
305
310
|
|
|
306
311
|
// src/prop-types/url.ts
|
|
307
|
-
var
|
|
308
|
-
var urlPropTypeUtil = createPropUtils("url",
|
|
312
|
+
var import_schema19 = require("@elementor/schema");
|
|
313
|
+
var urlPropTypeUtil = createPropUtils("url", import_schema19.z.string().nullable());
|
|
309
314
|
|
|
310
315
|
// src/prop-types/layout-direction.ts
|
|
311
|
-
var
|
|
316
|
+
var import_schema20 = require("@elementor/schema");
|
|
312
317
|
var layoutDirectionPropTypeUtil = createPropUtils(
|
|
313
318
|
"layout-direction",
|
|
314
|
-
|
|
315
|
-
row:
|
|
316
|
-
column:
|
|
319
|
+
import_schema20.z.object({
|
|
320
|
+
row: import_schema20.z.any(),
|
|
321
|
+
column: import_schema20.z.any()
|
|
317
322
|
})
|
|
318
323
|
);
|
|
319
324
|
|
|
320
325
|
// src/prop-types/link.ts
|
|
321
|
-
var
|
|
326
|
+
var import_schema21 = require("@elementor/schema");
|
|
322
327
|
var linkPropTypeUtil = createPropUtils(
|
|
323
328
|
"link",
|
|
324
|
-
|
|
329
|
+
import_schema21.z.strictObject({
|
|
325
330
|
destination: unknownChildrenSchema,
|
|
326
331
|
isTargetBlank: unknownChildrenSchema,
|
|
327
332
|
tag: unknownChildrenSchema
|
|
@@ -329,13 +334,13 @@ var linkPropTypeUtil = createPropUtils(
|
|
|
329
334
|
);
|
|
330
335
|
|
|
331
336
|
// src/prop-types/selection-size.ts
|
|
332
|
-
var
|
|
337
|
+
var import_schema23 = require("@elementor/schema");
|
|
333
338
|
|
|
334
339
|
// src/prop-types/key-value.ts
|
|
335
|
-
var
|
|
340
|
+
var import_schema22 = require("@elementor/schema");
|
|
336
341
|
var keyValuePropTypeUtil = createPropUtils(
|
|
337
342
|
"key-value",
|
|
338
|
-
|
|
343
|
+
import_schema22.z.strictObject({
|
|
339
344
|
key: unknownChildrenSchema,
|
|
340
345
|
value: unknownChildrenSchema
|
|
341
346
|
})
|
|
@@ -344,17 +349,17 @@ var keyValuePropTypeUtil = createPropUtils(
|
|
|
344
349
|
// src/prop-types/selection-size.ts
|
|
345
350
|
var selectionSizePropTypeUtil = createPropUtils(
|
|
346
351
|
"selection-size",
|
|
347
|
-
|
|
348
|
-
selection:
|
|
352
|
+
import_schema23.z.strictObject({
|
|
353
|
+
selection: import_schema23.z.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
|
|
349
354
|
size: unknownChildrenSchema
|
|
350
355
|
})
|
|
351
356
|
);
|
|
352
357
|
|
|
353
358
|
// src/prop-types/background-prop-types/background.ts
|
|
354
|
-
var
|
|
359
|
+
var import_schema24 = require("@elementor/schema");
|
|
355
360
|
var backgroundPropTypeUtil = createPropUtils(
|
|
356
361
|
"background",
|
|
357
|
-
|
|
362
|
+
import_schema24.z.strictObject({
|
|
358
363
|
color: unknownChildrenSchema,
|
|
359
364
|
clip: unknownChildrenSchema,
|
|
360
365
|
"background-overlay": unknownChildrenSchema
|
|
@@ -362,7 +367,7 @@ var backgroundPropTypeUtil = createPropUtils(
|
|
|
362
367
|
);
|
|
363
368
|
|
|
364
369
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
365
|
-
var
|
|
370
|
+
var import_schema25 = require("@elementor/schema");
|
|
366
371
|
|
|
367
372
|
// src/prop-types/background-prop-types/background-color-overlay.ts
|
|
368
373
|
var backgroundColorOverlayPropTypeUtil = createPropUtils("background-color-overlay", unknownChildrenSchema);
|
|
@@ -378,7 +383,7 @@ var backgroundImageOverlayPropTypeUtil = createPropUtils("background-image-overl
|
|
|
378
383
|
|
|
379
384
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
380
385
|
var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema);
|
|
381
|
-
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay",
|
|
386
|
+
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", import_schema25.z.array(backgroundOverlayItem));
|
|
382
387
|
|
|
383
388
|
// src/prop-types/background-prop-types/background-image-position-offset.ts
|
|
384
389
|
var backgroundImagePositionOffsetPropTypeUtil = createPropUtils(
|
|
@@ -393,68 +398,68 @@ var backgroundImageSizeScalePropTypeUtil = createPropUtils(
|
|
|
393
398
|
);
|
|
394
399
|
|
|
395
400
|
// src/prop-types/boolean.ts
|
|
396
|
-
var
|
|
397
|
-
var booleanPropTypeUtil = createPropUtils("boolean",
|
|
401
|
+
var import_schema26 = require("@elementor/schema");
|
|
402
|
+
var booleanPropTypeUtil = createPropUtils("boolean", import_schema26.z.boolean().nullable());
|
|
398
403
|
|
|
399
404
|
// src/prop-types/color-stop.ts
|
|
400
|
-
var
|
|
405
|
+
var import_schema27 = require("@elementor/schema");
|
|
401
406
|
var colorStopPropTypeUtil = createPropUtils(
|
|
402
407
|
"color-stop",
|
|
403
|
-
|
|
408
|
+
import_schema27.z.strictObject({
|
|
404
409
|
color: unknownChildrenSchema,
|
|
405
410
|
offset: unknownChildrenSchema
|
|
406
411
|
})
|
|
407
412
|
);
|
|
408
413
|
|
|
409
414
|
// src/prop-types/gradient-color-stop.ts
|
|
410
|
-
var
|
|
415
|
+
var import_schema28 = require("@elementor/schema");
|
|
411
416
|
var gradientColorStopPropTypeUtil = createPropUtils(
|
|
412
417
|
"gradient-color-stop",
|
|
413
|
-
|
|
418
|
+
import_schema28.z.array(colorStopPropTypeUtil.schema)
|
|
414
419
|
);
|
|
415
420
|
|
|
416
421
|
// src/prop-types/date-time.ts
|
|
417
|
-
var
|
|
422
|
+
var import_schema29 = require("@elementor/schema");
|
|
418
423
|
var DateTimePropTypeUtil = createPropUtils(
|
|
419
424
|
"date-time",
|
|
420
|
-
|
|
425
|
+
import_schema29.z.strictObject({
|
|
421
426
|
date: unknownChildrenSchema,
|
|
422
427
|
time: unknownChildrenSchema
|
|
423
428
|
})
|
|
424
429
|
);
|
|
425
430
|
|
|
426
431
|
// src/prop-types/position.ts
|
|
427
|
-
var
|
|
432
|
+
var import_schema30 = require("@elementor/schema");
|
|
428
433
|
var positionPropTypeUtil = createPropUtils(
|
|
429
434
|
"object-position",
|
|
430
|
-
|
|
435
|
+
import_schema30.z.strictObject({
|
|
431
436
|
x: unknownChildrenSchema,
|
|
432
437
|
y: unknownChildrenSchema
|
|
433
438
|
})
|
|
434
439
|
);
|
|
435
440
|
|
|
436
441
|
// src/prop-types/query.ts
|
|
437
|
-
var
|
|
442
|
+
var import_schema31 = require("@elementor/schema");
|
|
438
443
|
var queryPropTypeUtil = createPropUtils(
|
|
439
444
|
"query",
|
|
440
|
-
|
|
445
|
+
import_schema31.z.strictObject({
|
|
441
446
|
id: unknownChildrenSchema,
|
|
442
447
|
label: unknownChildrenSchema
|
|
443
448
|
})
|
|
444
449
|
);
|
|
445
450
|
|
|
446
451
|
// src/prop-types/html.ts
|
|
447
|
-
var
|
|
448
|
-
var htmlPropTypeUtil = createPropUtils("html",
|
|
452
|
+
var import_schema32 = require("@elementor/schema");
|
|
453
|
+
var htmlPropTypeUtil = createPropUtils("html", import_schema32.z.string().nullable());
|
|
449
454
|
|
|
450
455
|
// src/prop-types/filter-prop-types/filter.ts
|
|
451
|
-
var
|
|
456
|
+
var import_schema38 = require("@elementor/schema");
|
|
452
457
|
|
|
453
458
|
// src/prop-types/filter-prop-types/drop-shadow-filter.ts
|
|
454
|
-
var
|
|
459
|
+
var import_schema33 = require("@elementor/schema");
|
|
455
460
|
var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
456
461
|
"drop-shadow",
|
|
457
|
-
|
|
462
|
+
import_schema33.z.object({
|
|
458
463
|
xAxis: unknownChildrenSchema,
|
|
459
464
|
yAxis: unknownChildrenSchema,
|
|
460
465
|
blur: unknownChildrenSchema,
|
|
@@ -463,37 +468,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
|
463
468
|
);
|
|
464
469
|
|
|
465
470
|
// src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
|
|
466
|
-
var
|
|
471
|
+
var import_schema34 = require("@elementor/schema");
|
|
467
472
|
var blurFilterPropTypeUtil = createPropUtils(
|
|
468
473
|
"blur",
|
|
469
|
-
|
|
474
|
+
import_schema34.z.strictObject({
|
|
470
475
|
size: unknownChildrenSchema
|
|
471
476
|
})
|
|
472
477
|
);
|
|
473
478
|
|
|
474
479
|
// src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
|
|
475
|
-
var
|
|
480
|
+
var import_schema35 = require("@elementor/schema");
|
|
476
481
|
var colorToneFilterPropTypeUtil = createPropUtils(
|
|
477
482
|
"color-tone",
|
|
478
|
-
|
|
483
|
+
import_schema35.z.strictObject({
|
|
479
484
|
size: unknownChildrenSchema
|
|
480
485
|
})
|
|
481
486
|
);
|
|
482
487
|
|
|
483
488
|
// src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
|
|
484
|
-
var
|
|
489
|
+
var import_schema36 = require("@elementor/schema");
|
|
485
490
|
var hueRotateFilterPropTypeUtil = createPropUtils(
|
|
486
491
|
"hue-rotate",
|
|
487
|
-
|
|
492
|
+
import_schema36.z.strictObject({
|
|
488
493
|
size: unknownChildrenSchema
|
|
489
494
|
})
|
|
490
495
|
);
|
|
491
496
|
|
|
492
497
|
// src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
|
|
493
|
-
var
|
|
498
|
+
var import_schema37 = require("@elementor/schema");
|
|
494
499
|
var intensityFilterPropTypeUtil = createPropUtils(
|
|
495
500
|
"intensity",
|
|
496
|
-
|
|
501
|
+
import_schema37.z.strictObject({
|
|
497
502
|
size: unknownChildrenSchema
|
|
498
503
|
})
|
|
499
504
|
);
|
|
@@ -501,9 +506,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
|
|
|
501
506
|
// src/prop-types/filter-prop-types/filter.ts
|
|
502
507
|
var cssFilterFunctionPropUtil = createPropUtils(
|
|
503
508
|
"css-filter-func",
|
|
504
|
-
|
|
509
|
+
import_schema38.z.object({
|
|
505
510
|
func: stringPropTypeUtil.schema,
|
|
506
|
-
args:
|
|
511
|
+
args: import_schema38.z.union([
|
|
507
512
|
blurFilterPropTypeUtil.schema,
|
|
508
513
|
intensityFilterPropTypeUtil.schema,
|
|
509
514
|
colorToneFilterPropTypeUtil.schema,
|
|
@@ -512,13 +517,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
512
517
|
])
|
|
513
518
|
})
|
|
514
519
|
);
|
|
515
|
-
var filterPropTypeUtil = createPropUtils("filter",
|
|
520
|
+
var filterPropTypeUtil = createPropUtils("filter", import_schema38.z.array(cssFilterFunctionPropUtil.schema));
|
|
516
521
|
|
|
517
522
|
// src/prop-types/transform-prop-types/transform.ts
|
|
518
|
-
var
|
|
523
|
+
var import_schema39 = require("@elementor/schema");
|
|
519
524
|
var transformPropTypeUtil = createPropUtils(
|
|
520
525
|
"transform",
|
|
521
|
-
|
|
526
|
+
import_schema39.z.strictObject({
|
|
522
527
|
"transform-functions": unknownChildrenSchema,
|
|
523
528
|
"transform-origin": unknownChildrenSchema,
|
|
524
529
|
perspective: unknownChildrenSchema,
|
|
@@ -527,10 +532,10 @@ var transformPropTypeUtil = createPropUtils(
|
|
|
527
532
|
);
|
|
528
533
|
|
|
529
534
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
530
|
-
var
|
|
535
|
+
var import_schema44 = require("@elementor/schema");
|
|
531
536
|
|
|
532
537
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
533
|
-
var
|
|
538
|
+
var import_schema40 = require("@elementor/schema");
|
|
534
539
|
|
|
535
540
|
// src/prop-types/transform-prop-types/types.ts
|
|
536
541
|
var TransformFunctionKeys = {
|
|
@@ -543,7 +548,7 @@ var TransformFunctionKeys = {
|
|
|
543
548
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
544
549
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
545
550
|
TransformFunctionKeys.move,
|
|
546
|
-
|
|
551
|
+
import_schema40.z.strictObject({
|
|
547
552
|
x: unknownChildrenSchema,
|
|
548
553
|
y: unknownChildrenSchema,
|
|
549
554
|
z: unknownChildrenSchema
|
|
@@ -551,10 +556,10 @@ var moveTransformPropTypeUtil = createPropUtils(
|
|
|
551
556
|
);
|
|
552
557
|
|
|
553
558
|
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
554
|
-
var
|
|
559
|
+
var import_schema41 = require("@elementor/schema");
|
|
555
560
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
556
561
|
TransformFunctionKeys.rotate,
|
|
557
|
-
|
|
562
|
+
import_schema41.z.strictObject({
|
|
558
563
|
x: unknownChildrenSchema,
|
|
559
564
|
y: unknownChildrenSchema,
|
|
560
565
|
z: unknownChildrenSchema
|
|
@@ -562,10 +567,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
|
|
|
562
567
|
);
|
|
563
568
|
|
|
564
569
|
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
565
|
-
var
|
|
570
|
+
var import_schema42 = require("@elementor/schema");
|
|
566
571
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
567
572
|
TransformFunctionKeys.scale,
|
|
568
|
-
|
|
573
|
+
import_schema42.z.strictObject({
|
|
569
574
|
x: numberPropTypeUtil.schema.nullable(),
|
|
570
575
|
y: numberPropTypeUtil.schema.nullable(),
|
|
571
576
|
z: numberPropTypeUtil.schema.nullable()
|
|
@@ -573,10 +578,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
|
|
|
573
578
|
);
|
|
574
579
|
|
|
575
580
|
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
576
|
-
var
|
|
581
|
+
var import_schema43 = require("@elementor/schema");
|
|
577
582
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
578
583
|
TransformFunctionKeys.skew,
|
|
579
|
-
|
|
584
|
+
import_schema43.z.strictObject({
|
|
580
585
|
x: unknownChildrenSchema,
|
|
581
586
|
y: unknownChildrenSchema
|
|
582
587
|
})
|
|
@@ -584,13 +589,13 @@ var skewTransformPropTypeUtil = createPropUtils(
|
|
|
584
589
|
|
|
585
590
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
586
591
|
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
587
|
-
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions",
|
|
592
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema44.z.array(filterTypes));
|
|
588
593
|
|
|
589
594
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
590
|
-
var
|
|
595
|
+
var import_schema45 = require("@elementor/schema");
|
|
591
596
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
592
597
|
"transform-origin",
|
|
593
|
-
|
|
598
|
+
import_schema45.z.strictObject({
|
|
594
599
|
x: unknownChildrenSchema,
|
|
595
600
|
y: unknownChildrenSchema,
|
|
596
601
|
z: unknownChildrenSchema
|
|
@@ -598,20 +603,20 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
598
603
|
);
|
|
599
604
|
|
|
600
605
|
// src/prop-types/transform-prop-types/perspective-origin.ts
|
|
601
|
-
var
|
|
606
|
+
var import_schema46 = require("@elementor/schema");
|
|
602
607
|
var perspectiveOriginPropTypeUtil = createPropUtils(
|
|
603
608
|
"perspective-origin",
|
|
604
|
-
|
|
609
|
+
import_schema46.z.strictObject({
|
|
605
610
|
x: unknownChildrenSchema,
|
|
606
611
|
y: unknownChildrenSchema
|
|
607
612
|
})
|
|
608
613
|
);
|
|
609
614
|
|
|
610
615
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
611
|
-
var
|
|
616
|
+
var import_schema47 = require("@elementor/schema");
|
|
612
617
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
613
618
|
"backdrop-filter",
|
|
614
|
-
|
|
619
|
+
import_schema47.z.array(cssFilterFunctionPropUtil.schema)
|
|
615
620
|
);
|
|
616
621
|
|
|
617
622
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
@@ -1026,11 +1031,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1026
1031
|
};
|
|
1027
1032
|
|
|
1028
1033
|
// src/utils/is-transformable.ts
|
|
1029
|
-
var
|
|
1030
|
-
var transformableSchema =
|
|
1031
|
-
$$type:
|
|
1032
|
-
value:
|
|
1033
|
-
disabled:
|
|
1034
|
+
var import_schema48 = require("@elementor/schema");
|
|
1035
|
+
var transformableSchema = import_schema48.z.object({
|
|
1036
|
+
$$type: import_schema48.z.string(),
|
|
1037
|
+
value: import_schema48.z.any(),
|
|
1038
|
+
disabled: import_schema48.z.boolean().optional()
|
|
1034
1039
|
});
|
|
1035
1040
|
var isTransformable = (value) => {
|
|
1036
1041
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1241,6 +1246,7 @@ var Schema = {
|
|
|
1241
1246
|
shadowPropTypeUtil,
|
|
1242
1247
|
sizePropTypeUtil,
|
|
1243
1248
|
skewTransformPropTypeUtil,
|
|
1249
|
+
stringArrayPropTypeUtil,
|
|
1244
1250
|
stringPropTypeUtil,
|
|
1245
1251
|
strokePropTypeUtil,
|
|
1246
1252
|
transformFunctionsPropTypeUtil,
|