@elementor/editor-props
Advanced tools
| import { z } from '@elementor/schema'; | ||
| import { createPropUtils } from '../utils/create-prop-utils'; | ||
| import { unknownChildrenSchema } from './utils'; | ||
| export const iconPropTypeUtil = createPropUtils( | ||
| 'icon', | ||
| z.strictObject( { | ||
| value: unknownChildrenSchema, | ||
| library: unknownChildrenSchema, | ||
| } ) | ||
| ); | ||
| export type IconPropValue = z.infer< typeof iconPropTypeUtil.schema >; |
+155
-143
@@ -67,2 +67,3 @@ "use strict"; | ||
| hueRotateFilterPropTypeUtil: () => hueRotateFilterPropTypeUtil, | ||
| iconPropTypeUtil: () => iconPropTypeUtil, | ||
| imageAttachmentIdPropType: () => imageAttachmentIdPropType, | ||
@@ -284,14 +285,24 @@ imagePropTypeUtil: () => imagePropTypeUtil, | ||
| // src/prop-types/icon.ts | ||
| var import_schema14 = require("@elementor/schema"); | ||
| var iconPropTypeUtil = createPropUtils( | ||
| "icon", | ||
| import_schema14.z.strictObject({ | ||
| value: unknownChildrenSchema, | ||
| library: unknownChildrenSchema | ||
| }) | ||
| ); | ||
| // src/prop-types/svg-src.ts | ||
| var import_schema14 = require("@elementor/schema"); | ||
| var svgSrcValueSchema = import_schema14.z.strictObject({ | ||
| var import_schema15 = require("@elementor/schema"); | ||
| var svgSrcValueSchema = import_schema15.z.strictObject({ | ||
| id: unknownChildrenSchema, | ||
| url: import_schema14.z.null() | ||
| url: import_schema15.z.null() | ||
| }).or( | ||
| import_schema14.z.strictObject({ | ||
| id: import_schema14.z.null(), | ||
| import_schema15.z.strictObject({ | ||
| id: import_schema15.z.null(), | ||
| url: unknownChildrenSchema | ||
| }) | ||
| ).or( | ||
| import_schema14.z.strictObject({ | ||
| import_schema15.z.strictObject({ | ||
| id: unknownChildrenSchema, | ||
@@ -304,15 +315,15 @@ url: unknownChildrenSchema | ||
| // src/prop-types/video-attachment-id.ts | ||
| var import_schema15 = require("@elementor/schema"); | ||
| var videoAttachmentIdPropType = createPropUtils("video-attachment-id", import_schema15.z.number()); | ||
| var import_schema16 = require("@elementor/schema"); | ||
| var videoAttachmentIdPropType = createPropUtils("video-attachment-id", import_schema16.z.number()); | ||
| // src/prop-types/video-src.ts | ||
| var import_schema16 = require("@elementor/schema"); | ||
| var import_schema17 = require("@elementor/schema"); | ||
| var videoSrcPropTypeUtil = createPropUtils( | ||
| "video-src", | ||
| import_schema16.z.strictObject({ | ||
| import_schema17.z.strictObject({ | ||
| id: unknownChildrenSchema, | ||
| url: import_schema16.z.literal(null).optional() | ||
| url: import_schema17.z.literal(null).optional() | ||
| }).or( | ||
| import_schema16.z.strictObject({ | ||
| id: import_schema16.z.literal(null).optional(), | ||
| import_schema17.z.strictObject({ | ||
| id: import_schema17.z.literal(null).optional(), | ||
| url: unknownChildrenSchema | ||
@@ -324,6 +335,6 @@ }) | ||
| // src/prop-types/dimensions.ts | ||
| var import_schema17 = require("@elementor/schema"); | ||
| var import_schema18 = require("@elementor/schema"); | ||
| var dimensionsPropTypeUtil = createPropUtils( | ||
| "dimensions", | ||
| import_schema17.z.strictObject({ | ||
| import_schema18.z.strictObject({ | ||
| "block-start": unknownChildrenSchema, | ||
@@ -337,32 +348,32 @@ "block-end": unknownChildrenSchema, | ||
| // src/prop-types/number.ts | ||
| var import_schema18 = require("@elementor/schema"); | ||
| var numberPropTypeUtil = createPropUtils("number", import_schema18.z.number().nullable()); | ||
| var import_schema19 = require("@elementor/schema"); | ||
| var numberPropTypeUtil = createPropUtils("number", import_schema19.z.number().nullable()); | ||
| // src/prop-types/size.ts | ||
| var import_schema19 = require("@elementor/schema"); | ||
| var sizeNumberOrEmpty = import_schema19.z.union([import_schema19.z.number(), import_schema19.z.literal("")]); | ||
| var import_schema20 = require("@elementor/schema"); | ||
| var sizeNumberOrEmpty = import_schema20.z.union([import_schema20.z.number(), import_schema20.z.literal("")]); | ||
| var sizePropTypeUtil = createPropUtils( | ||
| "size", | ||
| import_schema19.z.strictObject({ | ||
| unit: import_schema19.z.enum(["px", "em", "rem", "%", "vw", "vh", "ch", "fr"]), | ||
| import_schema20.z.strictObject({ | ||
| unit: import_schema20.z.enum(["px", "em", "rem", "%", "vw", "vh", "ch", "fr"]), | ||
| size: sizeNumberOrEmpty | ||
| }).or( | ||
| import_schema19.z.strictObject({ | ||
| unit: import_schema19.z.enum(["deg", "rad", "grad", "turn"]), | ||
| import_schema20.z.strictObject({ | ||
| unit: import_schema20.z.enum(["deg", "rad", "grad", "turn"]), | ||
| size: sizeNumberOrEmpty | ||
| }) | ||
| ).or( | ||
| import_schema19.z.strictObject({ | ||
| unit: import_schema19.z.enum(["s", "ms"]), | ||
| import_schema20.z.strictObject({ | ||
| unit: import_schema20.z.enum(["s", "ms"]), | ||
| size: sizeNumberOrEmpty | ||
| }) | ||
| ).or( | ||
| import_schema19.z.strictObject({ | ||
| unit: import_schema19.z.literal("auto"), | ||
| size: import_schema19.z.literal("") | ||
| import_schema20.z.strictObject({ | ||
| unit: import_schema20.z.literal("auto"), | ||
| size: import_schema20.z.literal("") | ||
| }) | ||
| ).or( | ||
| import_schema19.z.strictObject({ | ||
| unit: import_schema19.z.literal("custom"), | ||
| size: import_schema19.z.string() | ||
| import_schema20.z.strictObject({ | ||
| unit: import_schema20.z.literal("custom"), | ||
| size: import_schema20.z.string() | ||
| }) | ||
@@ -373,12 +384,12 @@ ) | ||
| // src/prop-types/grid-track-size.ts | ||
| var import_schema20 = require("@elementor/schema"); | ||
| var import_schema21 = require("@elementor/schema"); | ||
| var gridTrackSizePropTypeUtil = createPropUtils( | ||
| "grid-track-size", | ||
| import_schema20.z.strictObject({ | ||
| unit: import_schema20.z.literal("fr"), | ||
| size: import_schema20.z.union([import_schema20.z.number(), import_schema20.z.literal("")]) | ||
| import_schema21.z.strictObject({ | ||
| unit: import_schema21.z.literal("fr"), | ||
| size: import_schema21.z.union([import_schema21.z.number(), import_schema21.z.literal("")]) | ||
| }).or( | ||
| import_schema20.z.strictObject({ | ||
| unit: import_schema20.z.literal("custom"), | ||
| size: import_schema20.z.string() | ||
| import_schema21.z.strictObject({ | ||
| unit: import_schema21.z.literal("custom"), | ||
| size: import_schema21.z.string() | ||
| }) | ||
@@ -389,8 +400,8 @@ ) | ||
| // src/prop-types/span.ts | ||
| var import_schema21 = require("@elementor/schema"); | ||
| var spanPropTypeUtil = createPropUtils("span", import_schema21.z.string().nullable()); | ||
| var import_schema22 = require("@elementor/schema"); | ||
| var spanPropTypeUtil = createPropUtils("span", import_schema22.z.string().nullable()); | ||
| // src/prop-types/string.ts | ||
| var import_schema22 = require("@elementor/schema"); | ||
| var stringPropTypeUtil = createPropUtils("string", import_schema22.z.string().nullable()); | ||
| var import_schema23 = require("@elementor/schema"); | ||
| var stringPropTypeUtil = createPropUtils("string", import_schema23.z.string().nullable()); | ||
@@ -401,6 +412,6 @@ // src/prop-types/string-array.ts | ||
| // src/prop-types/stroke.ts | ||
| var import_schema23 = require("@elementor/schema"); | ||
| var import_schema24 = require("@elementor/schema"); | ||
| var strokePropTypeUtil = createPropUtils( | ||
| "stroke", | ||
| import_schema23.z.strictObject({ | ||
| import_schema24.z.strictObject({ | ||
| color: unknownChildrenSchema, | ||
@@ -412,12 +423,12 @@ width: unknownChildrenSchema | ||
| // src/prop-types/url.ts | ||
| var import_schema24 = require("@elementor/schema"); | ||
| var urlPropTypeUtil = createPropUtils("url", import_schema24.z.string().nullable()); | ||
| var import_schema25 = require("@elementor/schema"); | ||
| var urlPropTypeUtil = createPropUtils("url", import_schema25.z.string().nullable()); | ||
| // src/prop-types/layout-direction.ts | ||
| var import_schema25 = require("@elementor/schema"); | ||
| var import_schema26 = require("@elementor/schema"); | ||
| var layoutDirectionPropTypeUtil = createPropUtils( | ||
| "layout-direction", | ||
| import_schema25.z.object({ | ||
| row: import_schema25.z.any(), | ||
| column: import_schema25.z.any() | ||
| import_schema26.z.object({ | ||
| row: import_schema26.z.any(), | ||
| column: import_schema26.z.any() | ||
| }) | ||
@@ -427,6 +438,6 @@ ); | ||
| // src/prop-types/link.ts | ||
| var import_schema26 = require("@elementor/schema"); | ||
| var import_schema27 = require("@elementor/schema"); | ||
| var linkPropTypeUtil = createPropUtils( | ||
| "link", | ||
| import_schema26.z.strictObject({ | ||
| import_schema27.z.strictObject({ | ||
| destination: unknownChildrenSchema, | ||
@@ -439,6 +450,6 @@ isTargetBlank: unknownChildrenSchema, | ||
| // src/prop-types/email.ts | ||
| var import_schema27 = require("@elementor/schema"); | ||
| var import_schema28 = require("@elementor/schema"); | ||
| var emailPropTypeUtil = createPropUtils( | ||
| "email", | ||
| import_schema27.z.strictObject({ | ||
| import_schema28.z.strictObject({ | ||
| to: unknownChildrenSchema, | ||
@@ -458,6 +469,6 @@ subject: unknownChildrenSchema, | ||
| // src/prop-types/emails.ts | ||
| var import_schema28 = require("@elementor/schema"); | ||
| var import_schema29 = require("@elementor/schema"); | ||
| var emailsPropTypeUtil = createPropUtils( | ||
| "emails", | ||
| import_schema28.z.strictObject({ | ||
| import_schema29.z.strictObject({ | ||
| to: unknownChildrenSchema, | ||
@@ -477,9 +488,9 @@ subject: unknownChildrenSchema, | ||
| // src/prop-types/selection-size.ts | ||
| var import_schema30 = require("@elementor/schema"); | ||
| var import_schema31 = require("@elementor/schema"); | ||
| // src/prop-types/key-value.ts | ||
| var import_schema29 = require("@elementor/schema"); | ||
| var import_schema30 = require("@elementor/schema"); | ||
| var keyValuePropTypeUtil = createPropUtils( | ||
| "key-value", | ||
| import_schema29.z.strictObject({ | ||
| import_schema30.z.strictObject({ | ||
| key: unknownChildrenSchema, | ||
@@ -493,4 +504,4 @@ value: unknownChildrenSchema | ||
| "selection-size", | ||
| import_schema30.z.strictObject({ | ||
| selection: import_schema30.z.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]), | ||
| import_schema31.z.strictObject({ | ||
| selection: import_schema31.z.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]), | ||
| size: unknownChildrenSchema | ||
@@ -501,6 +512,6 @@ }) | ||
| // src/prop-types/background-prop-types/background.ts | ||
| var import_schema31 = require("@elementor/schema"); | ||
| var import_schema32 = require("@elementor/schema"); | ||
| var backgroundPropTypeUtil = createPropUtils( | ||
| "background", | ||
| import_schema31.z.strictObject({ | ||
| import_schema32.z.strictObject({ | ||
| color: unknownChildrenSchema, | ||
@@ -513,3 +524,3 @@ clip: unknownChildrenSchema, | ||
| // src/prop-types/background-prop-types/background-overlay.ts | ||
| var import_schema32 = require("@elementor/schema"); | ||
| var import_schema33 = require("@elementor/schema"); | ||
@@ -530,3 +541,3 @@ // src/prop-types/background-prop-types/background-color-overlay.ts | ||
| var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema); | ||
| var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", import_schema32.z.array(backgroundOverlayItem)); | ||
| var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", import_schema33.z.array(backgroundOverlayItem)); | ||
@@ -546,10 +557,10 @@ // src/prop-types/background-prop-types/background-image-position-offset.ts | ||
| // src/prop-types/boolean.ts | ||
| var import_schema33 = require("@elementor/schema"); | ||
| var booleanPropTypeUtil = createPropUtils("boolean", import_schema33.z.boolean().nullable()); | ||
| var import_schema34 = require("@elementor/schema"); | ||
| var booleanPropTypeUtil = createPropUtils("boolean", import_schema34.z.boolean().nullable()); | ||
| // src/prop-types/color-stop.ts | ||
| var import_schema34 = require("@elementor/schema"); | ||
| var import_schema35 = require("@elementor/schema"); | ||
| var colorStopPropTypeUtil = createPropUtils( | ||
| "color-stop", | ||
| import_schema34.z.strictObject({ | ||
| import_schema35.z.strictObject({ | ||
| color: unknownChildrenSchema, | ||
@@ -561,13 +572,13 @@ offset: unknownChildrenSchema | ||
| // src/prop-types/gradient-color-stop.ts | ||
| var import_schema35 = require("@elementor/schema"); | ||
| var import_schema36 = require("@elementor/schema"); | ||
| var gradientColorStopPropTypeUtil = createPropUtils( | ||
| "gradient-color-stop", | ||
| import_schema35.z.array(colorStopPropTypeUtil.schema) | ||
| import_schema36.z.array(colorStopPropTypeUtil.schema) | ||
| ); | ||
| // src/prop-types/number-range.ts | ||
| var import_schema36 = require("@elementor/schema"); | ||
| var import_schema37 = require("@elementor/schema"); | ||
| var numberRangePropTypeUtil = createPropUtils( | ||
| "number-range", | ||
| import_schema36.z.strictObject({ | ||
| import_schema37.z.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -579,6 +590,6 @@ max: unknownChildrenSchema | ||
| // src/prop-types/date-time.ts | ||
| var import_schema37 = require("@elementor/schema"); | ||
| var import_schema38 = require("@elementor/schema"); | ||
| var DateTimePropTypeUtil = createPropUtils( | ||
| "date-time", | ||
| import_schema37.z.strictObject({ | ||
| import_schema38.z.strictObject({ | ||
| date: unknownChildrenSchema, | ||
@@ -590,6 +601,6 @@ time: unknownChildrenSchema | ||
| // src/prop-types/position.ts | ||
| var import_schema38 = require("@elementor/schema"); | ||
| var import_schema39 = require("@elementor/schema"); | ||
| var positionPropTypeUtil = createPropUtils( | ||
| "object-position", | ||
| import_schema38.z.strictObject({ | ||
| import_schema39.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -601,6 +612,6 @@ y: unknownChildrenSchema | ||
| // src/prop-types/query.ts | ||
| var import_schema39 = require("@elementor/schema"); | ||
| var import_schema40 = require("@elementor/schema"); | ||
| var queryPropTypeUtil = createPropUtils( | ||
| "query", | ||
| import_schema39.z.strictObject({ | ||
| import_schema40.z.strictObject({ | ||
| id: unknownChildrenSchema, | ||
@@ -612,6 +623,6 @@ label: unknownChildrenSchema | ||
| // src/prop-types/query-filter.ts | ||
| var import_schema40 = require("@elementor/schema"); | ||
| var import_schema41 = require("@elementor/schema"); | ||
| var queryFilterPropTypeUtil = createPropUtils( | ||
| "query-filter", | ||
| import_schema40.z.strictObject({ | ||
| import_schema41.z.strictObject({ | ||
| key: unknownChildrenSchema, | ||
@@ -628,18 +639,18 @@ values: unknownChildrenSchema, | ||
| // src/prop-types/html.ts | ||
| var import_schema41 = require("@elementor/schema"); | ||
| var htmlPropTypeUtil = createPropUtils("html", import_schema41.z.string().nullable()); | ||
| var import_schema42 = require("@elementor/schema"); | ||
| var htmlPropTypeUtil = createPropUtils("html", import_schema42.z.string().nullable()); | ||
| // src/prop-types/html-v2.ts | ||
| var import_schema42 = require("@elementor/schema"); | ||
| var childElementSchema = import_schema42.z.lazy( | ||
| () => import_schema42.z.object({ | ||
| id: import_schema42.z.string(), | ||
| type: import_schema42.z.string(), | ||
| content: import_schema42.z.string().optional(), | ||
| children: import_schema42.z.array(childElementSchema).optional() | ||
| var import_schema43 = require("@elementor/schema"); | ||
| var childElementSchema = import_schema43.z.lazy( | ||
| () => import_schema43.z.object({ | ||
| id: import_schema43.z.string(), | ||
| type: import_schema43.z.string(), | ||
| content: import_schema43.z.string().optional(), | ||
| children: import_schema43.z.array(childElementSchema).optional() | ||
| }) | ||
| ); | ||
| var htmlV2ValueSchema = import_schema42.z.object({ | ||
| content: import_schema42.z.string().nullable(), | ||
| children: import_schema42.z.array(childElementSchema) | ||
| var htmlV2ValueSchema = import_schema43.z.object({ | ||
| content: import_schema43.z.string().nullable(), | ||
| children: import_schema43.z.array(childElementSchema) | ||
| }); | ||
@@ -649,6 +660,6 @@ var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema); | ||
| // src/prop-types/html-v3.ts | ||
| var import_schema43 = require("@elementor/schema"); | ||
| var htmlV3ValueSchema = import_schema43.z.object({ | ||
| var import_schema44 = require("@elementor/schema"); | ||
| var htmlV3ValueSchema = import_schema44.z.object({ | ||
| content: stringPropTypeUtil.schema.nullable(), | ||
| children: import_schema43.z.array(import_schema43.z.unknown()) | ||
| children: import_schema44.z.array(import_schema44.z.unknown()) | ||
| }); | ||
@@ -658,13 +669,13 @@ var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema); | ||
| // src/prop-types/escaped-html.ts | ||
| var import_schema44 = require("@elementor/schema"); | ||
| var escapedHtmlPropTypeUtil = createPropUtils("escaped-html", import_schema44.z.string().nullable()); | ||
| var import_schema45 = require("@elementor/schema"); | ||
| var escapedHtmlPropTypeUtil = createPropUtils("escaped-html", import_schema45.z.string().nullable()); | ||
| // src/prop-types/filter-prop-types/filter.ts | ||
| var import_schema50 = require("@elementor/schema"); | ||
| var import_schema51 = require("@elementor/schema"); | ||
| // src/prop-types/filter-prop-types/drop-shadow-filter.ts | ||
| var import_schema45 = require("@elementor/schema"); | ||
| var import_schema46 = require("@elementor/schema"); | ||
| var dropShadowFilterPropTypeUtil = createPropUtils( | ||
| "drop-shadow", | ||
| import_schema45.z.object({ | ||
| import_schema46.z.object({ | ||
| xAxis: unknownChildrenSchema, | ||
@@ -678,6 +689,6 @@ yAxis: unknownChildrenSchema, | ||
| // src/prop-types/filter-prop-types/filter-functions/blur-filter.ts | ||
| var import_schema46 = require("@elementor/schema"); | ||
| var import_schema47 = require("@elementor/schema"); | ||
| var blurFilterPropTypeUtil = createPropUtils( | ||
| "blur", | ||
| import_schema46.z.strictObject({ | ||
| import_schema47.z.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -688,6 +699,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts | ||
| var import_schema47 = require("@elementor/schema"); | ||
| var import_schema48 = require("@elementor/schema"); | ||
| var colorToneFilterPropTypeUtil = createPropUtils( | ||
| "color-tone", | ||
| import_schema47.z.strictObject({ | ||
| import_schema48.z.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -698,6 +709,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts | ||
| var import_schema48 = require("@elementor/schema"); | ||
| var import_schema49 = require("@elementor/schema"); | ||
| var hueRotateFilterPropTypeUtil = createPropUtils( | ||
| "hue-rotate", | ||
| import_schema48.z.strictObject({ | ||
| import_schema49.z.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -708,6 +719,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts | ||
| var import_schema49 = require("@elementor/schema"); | ||
| var import_schema50 = require("@elementor/schema"); | ||
| var intensityFilterPropTypeUtil = createPropUtils( | ||
| "intensity", | ||
| import_schema49.z.strictObject({ | ||
| import_schema50.z.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -720,5 +731,5 @@ }) | ||
| "css-filter-func", | ||
| import_schema50.z.object({ | ||
| import_schema51.z.object({ | ||
| func: stringPropTypeUtil.schema, | ||
| args: import_schema50.z.union([ | ||
| args: import_schema51.z.union([ | ||
| blurFilterPropTypeUtil.schema, | ||
@@ -732,9 +743,9 @@ intensityFilterPropTypeUtil.schema, | ||
| ); | ||
| var filterPropTypeUtil = createPropUtils("filter", import_schema50.z.array(cssFilterFunctionPropUtil.schema)); | ||
| var filterPropTypeUtil = createPropUtils("filter", import_schema51.z.array(cssFilterFunctionPropUtil.schema)); | ||
| // src/prop-types/transform-prop-types/transform.ts | ||
| var import_schema51 = require("@elementor/schema"); | ||
| var import_schema52 = require("@elementor/schema"); | ||
| var transformPropTypeUtil = createPropUtils( | ||
| "transform", | ||
| import_schema51.z.strictObject({ | ||
| import_schema52.z.strictObject({ | ||
| "transform-functions": unknownChildrenSchema, | ||
@@ -748,6 +759,6 @@ "transform-origin": unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions.ts | ||
| var import_schema56 = require("@elementor/schema"); | ||
| var import_schema57 = require("@elementor/schema"); | ||
| // src/prop-types/transform-prop-types/transform-functions/move-transform.ts | ||
| var import_schema52 = require("@elementor/schema"); | ||
| var import_schema53 = require("@elementor/schema"); | ||
@@ -765,3 +776,3 @@ // src/prop-types/transform-prop-types/types.ts | ||
| TransformFunctionKeys.move, | ||
| import_schema52.z.strictObject({ | ||
| import_schema53.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -774,6 +785,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts | ||
| var import_schema53 = require("@elementor/schema"); | ||
| var import_schema54 = require("@elementor/schema"); | ||
| var rotateTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.rotate, | ||
| import_schema53.z.strictObject({ | ||
| import_schema54.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -786,6 +797,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions/scale-transform.ts | ||
| var import_schema54 = require("@elementor/schema"); | ||
| var import_schema55 = require("@elementor/schema"); | ||
| var scaleTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.scale, | ||
| import_schema54.z.strictObject({ | ||
| import_schema55.z.strictObject({ | ||
| x: numberPropTypeUtil.schema.nullable(), | ||
@@ -798,6 +809,6 @@ y: numberPropTypeUtil.schema.nullable(), | ||
| // src/prop-types/transform-prop-types/transform-functions/skew-transform.ts | ||
| var import_schema55 = require("@elementor/schema"); | ||
| var import_schema56 = require("@elementor/schema"); | ||
| var skewTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.skew, | ||
| import_schema55.z.strictObject({ | ||
| import_schema56.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -810,9 +821,9 @@ y: unknownChildrenSchema | ||
| var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema); | ||
| var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema56.z.array(filterTypes)); | ||
| var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema57.z.array(filterTypes)); | ||
| // src/prop-types/transform-prop-types/transform-origin.ts | ||
| var import_schema57 = require("@elementor/schema"); | ||
| var import_schema58 = require("@elementor/schema"); | ||
| var transformOriginPropTypeUtil = createPropUtils( | ||
| "transform-origin", | ||
| import_schema57.z.strictObject({ | ||
| import_schema58.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -825,6 +836,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/perspective-origin.ts | ||
| var import_schema58 = require("@elementor/schema"); | ||
| var import_schema59 = require("@elementor/schema"); | ||
| var perspectiveOriginPropTypeUtil = createPropUtils( | ||
| "perspective-origin", | ||
| import_schema58.z.strictObject({ | ||
| import_schema59.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -836,13 +847,13 @@ y: unknownChildrenSchema | ||
| // src/prop-types/filter-prop-types/backdrop-filter.ts | ||
| var import_schema59 = require("@elementor/schema"); | ||
| var import_schema60 = require("@elementor/schema"); | ||
| var backdropFilterPropTypeUtil = createPropUtils( | ||
| "backdrop-filter", | ||
| import_schema59.z.array(cssFilterFunctionPropUtil.schema) | ||
| import_schema60.z.array(cssFilterFunctionPropUtil.schema) | ||
| ); | ||
| // src/prop-types/date-range.ts | ||
| var import_schema60 = require("@elementor/schema"); | ||
| var import_schema61 = require("@elementor/schema"); | ||
| var dateRangePropTypeUtil = createPropUtils( | ||
| "date-range", | ||
| import_schema60.z.strictObject({ | ||
| import_schema61.z.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -854,10 +865,10 @@ max: unknownChildrenSchema | ||
| // src/prop-types/date-string.ts | ||
| var import_schema61 = require("@elementor/schema"); | ||
| var dateStringPropTypeUtil = createPropUtils("date-string", import_schema61.z.string()); | ||
| var import_schema62 = require("@elementor/schema"); | ||
| var dateStringPropTypeUtil = createPropUtils("date-string", import_schema62.z.string()); | ||
| // src/prop-types/time-range.ts | ||
| var import_schema62 = require("@elementor/schema"); | ||
| var import_schema63 = require("@elementor/schema"); | ||
| var timeRangePropTypeUtil = createPropUtils( | ||
| "time-range", | ||
| import_schema62.z.strictObject({ | ||
| import_schema63.z.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -869,4 +880,4 @@ max: unknownChildrenSchema | ||
| // src/prop-types/time-string.ts | ||
| var import_schema63 = require("@elementor/schema"); | ||
| var timeStringPropTypeUtil = createPropUtils("time-string", import_schema63.z.string()); | ||
| var import_schema64 = require("@elementor/schema"); | ||
| var timeStringPropTypeUtil = createPropUtils("time-string", import_schema64.z.string()); | ||
@@ -1338,7 +1349,7 @@ // src/utils/adjust-llm-prop-value-schema.ts | ||
| // src/utils/is-transformable.ts | ||
| var import_schema64 = require("@elementor/schema"); | ||
| var transformableSchema = import_schema64.z.object({ | ||
| $$type: import_schema64.z.string(), | ||
| value: import_schema64.z.any(), | ||
| disabled: import_schema64.z.boolean().optional() | ||
| var import_schema65 = require("@elementor/schema"); | ||
| var transformableSchema = import_schema65.z.object({ | ||
| $$type: import_schema65.z.string(), | ||
| value: import_schema65.z.any(), | ||
| disabled: import_schema65.z.boolean().optional() | ||
| }); | ||
@@ -1626,2 +1637,3 @@ var isTransformable = (value) => { | ||
| hueRotateFilterPropTypeUtil, | ||
| iconPropTypeUtil, | ||
| imageAttachmentIdPropType, | ||
@@ -1628,0 +1640,0 @@ imagePropTypeUtil, |
+154
-143
@@ -172,14 +172,24 @@ // src/prop-types/box-shadow.ts | ||
| // src/prop-types/icon.ts | ||
| import { z as z14 } from "@elementor/schema"; | ||
| var iconPropTypeUtil = createPropUtils( | ||
| "icon", | ||
| z14.strictObject({ | ||
| value: unknownChildrenSchema, | ||
| library: unknownChildrenSchema | ||
| }) | ||
| ); | ||
| // src/prop-types/svg-src.ts | ||
| import { z as z14 } from "@elementor/schema"; | ||
| var svgSrcValueSchema = z14.strictObject({ | ||
| import { z as z15 } from "@elementor/schema"; | ||
| var svgSrcValueSchema = z15.strictObject({ | ||
| id: unknownChildrenSchema, | ||
| url: z14.null() | ||
| url: z15.null() | ||
| }).or( | ||
| z14.strictObject({ | ||
| id: z14.null(), | ||
| z15.strictObject({ | ||
| id: z15.null(), | ||
| url: unknownChildrenSchema | ||
| }) | ||
| ).or( | ||
| z14.strictObject({ | ||
| z15.strictObject({ | ||
| id: unknownChildrenSchema, | ||
@@ -192,15 +202,15 @@ url: unknownChildrenSchema | ||
| // src/prop-types/video-attachment-id.ts | ||
| import { z as z15 } from "@elementor/schema"; | ||
| var videoAttachmentIdPropType = createPropUtils("video-attachment-id", z15.number()); | ||
| import { z as z16 } from "@elementor/schema"; | ||
| var videoAttachmentIdPropType = createPropUtils("video-attachment-id", z16.number()); | ||
| // src/prop-types/video-src.ts | ||
| import { z as z16 } from "@elementor/schema"; | ||
| import { z as z17 } from "@elementor/schema"; | ||
| var videoSrcPropTypeUtil = createPropUtils( | ||
| "video-src", | ||
| z16.strictObject({ | ||
| z17.strictObject({ | ||
| id: unknownChildrenSchema, | ||
| url: z16.literal(null).optional() | ||
| url: z17.literal(null).optional() | ||
| }).or( | ||
| z16.strictObject({ | ||
| id: z16.literal(null).optional(), | ||
| z17.strictObject({ | ||
| id: z17.literal(null).optional(), | ||
| url: unknownChildrenSchema | ||
@@ -212,6 +222,6 @@ }) | ||
| // src/prop-types/dimensions.ts | ||
| import { z as z17 } from "@elementor/schema"; | ||
| import { z as z18 } from "@elementor/schema"; | ||
| var dimensionsPropTypeUtil = createPropUtils( | ||
| "dimensions", | ||
| z17.strictObject({ | ||
| z18.strictObject({ | ||
| "block-start": unknownChildrenSchema, | ||
@@ -225,32 +235,32 @@ "block-end": unknownChildrenSchema, | ||
| // src/prop-types/number.ts | ||
| import { z as z18 } from "@elementor/schema"; | ||
| var numberPropTypeUtil = createPropUtils("number", z18.number().nullable()); | ||
| import { z as z19 } from "@elementor/schema"; | ||
| var numberPropTypeUtil = createPropUtils("number", z19.number().nullable()); | ||
| // src/prop-types/size.ts | ||
| import { z as z19 } from "@elementor/schema"; | ||
| var sizeNumberOrEmpty = z19.union([z19.number(), z19.literal("")]); | ||
| import { z as z20 } from "@elementor/schema"; | ||
| var sizeNumberOrEmpty = z20.union([z20.number(), z20.literal("")]); | ||
| var sizePropTypeUtil = createPropUtils( | ||
| "size", | ||
| z19.strictObject({ | ||
| unit: z19.enum(["px", "em", "rem", "%", "vw", "vh", "ch", "fr"]), | ||
| z20.strictObject({ | ||
| unit: z20.enum(["px", "em", "rem", "%", "vw", "vh", "ch", "fr"]), | ||
| size: sizeNumberOrEmpty | ||
| }).or( | ||
| z19.strictObject({ | ||
| unit: z19.enum(["deg", "rad", "grad", "turn"]), | ||
| z20.strictObject({ | ||
| unit: z20.enum(["deg", "rad", "grad", "turn"]), | ||
| size: sizeNumberOrEmpty | ||
| }) | ||
| ).or( | ||
| z19.strictObject({ | ||
| unit: z19.enum(["s", "ms"]), | ||
| z20.strictObject({ | ||
| unit: z20.enum(["s", "ms"]), | ||
| size: sizeNumberOrEmpty | ||
| }) | ||
| ).or( | ||
| z19.strictObject({ | ||
| unit: z19.literal("auto"), | ||
| size: z19.literal("") | ||
| z20.strictObject({ | ||
| unit: z20.literal("auto"), | ||
| size: z20.literal("") | ||
| }) | ||
| ).or( | ||
| z19.strictObject({ | ||
| unit: z19.literal("custom"), | ||
| size: z19.string() | ||
| z20.strictObject({ | ||
| unit: z20.literal("custom"), | ||
| size: z20.string() | ||
| }) | ||
@@ -261,12 +271,12 @@ ) | ||
| // src/prop-types/grid-track-size.ts | ||
| import { z as z20 } from "@elementor/schema"; | ||
| import { z as z21 } from "@elementor/schema"; | ||
| var gridTrackSizePropTypeUtil = createPropUtils( | ||
| "grid-track-size", | ||
| z20.strictObject({ | ||
| unit: z20.literal("fr"), | ||
| size: z20.union([z20.number(), z20.literal("")]) | ||
| z21.strictObject({ | ||
| unit: z21.literal("fr"), | ||
| size: z21.union([z21.number(), z21.literal("")]) | ||
| }).or( | ||
| z20.strictObject({ | ||
| unit: z20.literal("custom"), | ||
| size: z20.string() | ||
| z21.strictObject({ | ||
| unit: z21.literal("custom"), | ||
| size: z21.string() | ||
| }) | ||
@@ -277,8 +287,8 @@ ) | ||
| // src/prop-types/span.ts | ||
| import { z as z21 } from "@elementor/schema"; | ||
| var spanPropTypeUtil = createPropUtils("span", z21.string().nullable()); | ||
| import { z as z22 } from "@elementor/schema"; | ||
| var spanPropTypeUtil = createPropUtils("span", z22.string().nullable()); | ||
| // src/prop-types/string.ts | ||
| import { z as z22 } from "@elementor/schema"; | ||
| var stringPropTypeUtil = createPropUtils("string", z22.string().nullable()); | ||
| import { z as z23 } from "@elementor/schema"; | ||
| var stringPropTypeUtil = createPropUtils("string", z23.string().nullable()); | ||
@@ -289,6 +299,6 @@ // src/prop-types/string-array.ts | ||
| // src/prop-types/stroke.ts | ||
| import { z as z23 } from "@elementor/schema"; | ||
| import { z as z24 } from "@elementor/schema"; | ||
| var strokePropTypeUtil = createPropUtils( | ||
| "stroke", | ||
| z23.strictObject({ | ||
| z24.strictObject({ | ||
| color: unknownChildrenSchema, | ||
@@ -300,12 +310,12 @@ width: unknownChildrenSchema | ||
| // src/prop-types/url.ts | ||
| import { z as z24 } from "@elementor/schema"; | ||
| var urlPropTypeUtil = createPropUtils("url", z24.string().nullable()); | ||
| import { z as z25 } from "@elementor/schema"; | ||
| var urlPropTypeUtil = createPropUtils("url", z25.string().nullable()); | ||
| // src/prop-types/layout-direction.ts | ||
| import { z as z25 } from "@elementor/schema"; | ||
| import { z as z26 } from "@elementor/schema"; | ||
| var layoutDirectionPropTypeUtil = createPropUtils( | ||
| "layout-direction", | ||
| z25.object({ | ||
| row: z25.any(), | ||
| column: z25.any() | ||
| z26.object({ | ||
| row: z26.any(), | ||
| column: z26.any() | ||
| }) | ||
@@ -315,6 +325,6 @@ ); | ||
| // src/prop-types/link.ts | ||
| import { z as z26 } from "@elementor/schema"; | ||
| import { z as z27 } from "@elementor/schema"; | ||
| var linkPropTypeUtil = createPropUtils( | ||
| "link", | ||
| z26.strictObject({ | ||
| z27.strictObject({ | ||
| destination: unknownChildrenSchema, | ||
@@ -327,6 +337,6 @@ isTargetBlank: unknownChildrenSchema, | ||
| // src/prop-types/email.ts | ||
| import { z as z27 } from "@elementor/schema"; | ||
| import { z as z28 } from "@elementor/schema"; | ||
| var emailPropTypeUtil = createPropUtils( | ||
| "email", | ||
| z27.strictObject({ | ||
| z28.strictObject({ | ||
| to: unknownChildrenSchema, | ||
@@ -346,6 +356,6 @@ subject: unknownChildrenSchema, | ||
| // src/prop-types/emails.ts | ||
| import { z as z28 } from "@elementor/schema"; | ||
| import { z as z29 } from "@elementor/schema"; | ||
| var emailsPropTypeUtil = createPropUtils( | ||
| "emails", | ||
| z28.strictObject({ | ||
| z29.strictObject({ | ||
| to: unknownChildrenSchema, | ||
@@ -365,9 +375,9 @@ subject: unknownChildrenSchema, | ||
| // src/prop-types/selection-size.ts | ||
| import { z as z30 } from "@elementor/schema"; | ||
| import { z as z31 } from "@elementor/schema"; | ||
| // src/prop-types/key-value.ts | ||
| import { z as z29 } from "@elementor/schema"; | ||
| import { z as z30 } from "@elementor/schema"; | ||
| var keyValuePropTypeUtil = createPropUtils( | ||
| "key-value", | ||
| z29.strictObject({ | ||
| z30.strictObject({ | ||
| key: unknownChildrenSchema, | ||
@@ -381,4 +391,4 @@ value: unknownChildrenSchema | ||
| "selection-size", | ||
| z30.strictObject({ | ||
| selection: z30.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]), | ||
| z31.strictObject({ | ||
| selection: z31.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]), | ||
| size: unknownChildrenSchema | ||
@@ -389,6 +399,6 @@ }) | ||
| // src/prop-types/background-prop-types/background.ts | ||
| import { z as z31 } from "@elementor/schema"; | ||
| import { z as z32 } from "@elementor/schema"; | ||
| var backgroundPropTypeUtil = createPropUtils( | ||
| "background", | ||
| z31.strictObject({ | ||
| z32.strictObject({ | ||
| color: unknownChildrenSchema, | ||
@@ -401,3 +411,3 @@ clip: unknownChildrenSchema, | ||
| // src/prop-types/background-prop-types/background-overlay.ts | ||
| import { z as z32 } from "@elementor/schema"; | ||
| import { z as z33 } from "@elementor/schema"; | ||
@@ -418,3 +428,3 @@ // src/prop-types/background-prop-types/background-color-overlay.ts | ||
| var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema); | ||
| var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z32.array(backgroundOverlayItem)); | ||
| var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z33.array(backgroundOverlayItem)); | ||
@@ -434,10 +444,10 @@ // src/prop-types/background-prop-types/background-image-position-offset.ts | ||
| // src/prop-types/boolean.ts | ||
| import { z as z33 } from "@elementor/schema"; | ||
| var booleanPropTypeUtil = createPropUtils("boolean", z33.boolean().nullable()); | ||
| import { z as z34 } from "@elementor/schema"; | ||
| var booleanPropTypeUtil = createPropUtils("boolean", z34.boolean().nullable()); | ||
| // src/prop-types/color-stop.ts | ||
| import { z as z34 } from "@elementor/schema"; | ||
| import { z as z35 } from "@elementor/schema"; | ||
| var colorStopPropTypeUtil = createPropUtils( | ||
| "color-stop", | ||
| z34.strictObject({ | ||
| z35.strictObject({ | ||
| color: unknownChildrenSchema, | ||
@@ -449,13 +459,13 @@ offset: unknownChildrenSchema | ||
| // src/prop-types/gradient-color-stop.ts | ||
| import { z as z35 } from "@elementor/schema"; | ||
| import { z as z36 } from "@elementor/schema"; | ||
| var gradientColorStopPropTypeUtil = createPropUtils( | ||
| "gradient-color-stop", | ||
| z35.array(colorStopPropTypeUtil.schema) | ||
| z36.array(colorStopPropTypeUtil.schema) | ||
| ); | ||
| // src/prop-types/number-range.ts | ||
| import { z as z36 } from "@elementor/schema"; | ||
| import { z as z37 } from "@elementor/schema"; | ||
| var numberRangePropTypeUtil = createPropUtils( | ||
| "number-range", | ||
| z36.strictObject({ | ||
| z37.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -467,6 +477,6 @@ max: unknownChildrenSchema | ||
| // src/prop-types/date-time.ts | ||
| import { z as z37 } from "@elementor/schema"; | ||
| import { z as z38 } from "@elementor/schema"; | ||
| var DateTimePropTypeUtil = createPropUtils( | ||
| "date-time", | ||
| z37.strictObject({ | ||
| z38.strictObject({ | ||
| date: unknownChildrenSchema, | ||
@@ -478,6 +488,6 @@ time: unknownChildrenSchema | ||
| // src/prop-types/position.ts | ||
| import { z as z38 } from "@elementor/schema"; | ||
| import { z as z39 } from "@elementor/schema"; | ||
| var positionPropTypeUtil = createPropUtils( | ||
| "object-position", | ||
| z38.strictObject({ | ||
| z39.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -489,6 +499,6 @@ y: unknownChildrenSchema | ||
| // src/prop-types/query.ts | ||
| import { z as z39 } from "@elementor/schema"; | ||
| import { z as z40 } from "@elementor/schema"; | ||
| var queryPropTypeUtil = createPropUtils( | ||
| "query", | ||
| z39.strictObject({ | ||
| z40.strictObject({ | ||
| id: unknownChildrenSchema, | ||
@@ -500,6 +510,6 @@ label: unknownChildrenSchema | ||
| // src/prop-types/query-filter.ts | ||
| import { z as z40 } from "@elementor/schema"; | ||
| import { z as z41 } from "@elementor/schema"; | ||
| var queryFilterPropTypeUtil = createPropUtils( | ||
| "query-filter", | ||
| z40.strictObject({ | ||
| z41.strictObject({ | ||
| key: unknownChildrenSchema, | ||
@@ -516,18 +526,18 @@ values: unknownChildrenSchema, | ||
| // src/prop-types/html.ts | ||
| import { z as z41 } from "@elementor/schema"; | ||
| var htmlPropTypeUtil = createPropUtils("html", z41.string().nullable()); | ||
| import { z as z42 } from "@elementor/schema"; | ||
| var htmlPropTypeUtil = createPropUtils("html", z42.string().nullable()); | ||
| // src/prop-types/html-v2.ts | ||
| import { z as z42 } from "@elementor/schema"; | ||
| var childElementSchema = z42.lazy( | ||
| () => z42.object({ | ||
| id: z42.string(), | ||
| type: z42.string(), | ||
| content: z42.string().optional(), | ||
| children: z42.array(childElementSchema).optional() | ||
| import { z as z43 } from "@elementor/schema"; | ||
| var childElementSchema = z43.lazy( | ||
| () => z43.object({ | ||
| id: z43.string(), | ||
| type: z43.string(), | ||
| content: z43.string().optional(), | ||
| children: z43.array(childElementSchema).optional() | ||
| }) | ||
| ); | ||
| var htmlV2ValueSchema = z42.object({ | ||
| content: z42.string().nullable(), | ||
| children: z42.array(childElementSchema) | ||
| var htmlV2ValueSchema = z43.object({ | ||
| content: z43.string().nullable(), | ||
| children: z43.array(childElementSchema) | ||
| }); | ||
@@ -537,6 +547,6 @@ var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema); | ||
| // src/prop-types/html-v3.ts | ||
| import { z as z43 } from "@elementor/schema"; | ||
| var htmlV3ValueSchema = z43.object({ | ||
| import { z as z44 } from "@elementor/schema"; | ||
| var htmlV3ValueSchema = z44.object({ | ||
| content: stringPropTypeUtil.schema.nullable(), | ||
| children: z43.array(z43.unknown()) | ||
| children: z44.array(z44.unknown()) | ||
| }); | ||
@@ -546,13 +556,13 @@ var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema); | ||
| // src/prop-types/escaped-html.ts | ||
| import { z as z44 } from "@elementor/schema"; | ||
| var escapedHtmlPropTypeUtil = createPropUtils("escaped-html", z44.string().nullable()); | ||
| import { z as z45 } from "@elementor/schema"; | ||
| var escapedHtmlPropTypeUtil = createPropUtils("escaped-html", z45.string().nullable()); | ||
| // src/prop-types/filter-prop-types/filter.ts | ||
| import { z as z50 } from "@elementor/schema"; | ||
| import { z as z51 } from "@elementor/schema"; | ||
| // src/prop-types/filter-prop-types/drop-shadow-filter.ts | ||
| import { z as z45 } from "@elementor/schema"; | ||
| import { z as z46 } from "@elementor/schema"; | ||
| var dropShadowFilterPropTypeUtil = createPropUtils( | ||
| "drop-shadow", | ||
| z45.object({ | ||
| z46.object({ | ||
| xAxis: unknownChildrenSchema, | ||
@@ -566,6 +576,6 @@ yAxis: unknownChildrenSchema, | ||
| // src/prop-types/filter-prop-types/filter-functions/blur-filter.ts | ||
| import { z as z46 } from "@elementor/schema"; | ||
| import { z as z47 } from "@elementor/schema"; | ||
| var blurFilterPropTypeUtil = createPropUtils( | ||
| "blur", | ||
| z46.strictObject({ | ||
| z47.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -576,6 +586,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts | ||
| import { z as z47 } from "@elementor/schema"; | ||
| import { z as z48 } from "@elementor/schema"; | ||
| var colorToneFilterPropTypeUtil = createPropUtils( | ||
| "color-tone", | ||
| z47.strictObject({ | ||
| z48.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -586,6 +596,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts | ||
| import { z as z48 } from "@elementor/schema"; | ||
| import { z as z49 } from "@elementor/schema"; | ||
| var hueRotateFilterPropTypeUtil = createPropUtils( | ||
| "hue-rotate", | ||
| z48.strictObject({ | ||
| z49.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -596,6 +606,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts | ||
| import { z as z49 } from "@elementor/schema"; | ||
| import { z as z50 } from "@elementor/schema"; | ||
| var intensityFilterPropTypeUtil = createPropUtils( | ||
| "intensity", | ||
| z49.strictObject({ | ||
| z50.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -608,5 +618,5 @@ }) | ||
| "css-filter-func", | ||
| z50.object({ | ||
| z51.object({ | ||
| func: stringPropTypeUtil.schema, | ||
| args: z50.union([ | ||
| args: z51.union([ | ||
| blurFilterPropTypeUtil.schema, | ||
@@ -620,9 +630,9 @@ intensityFilterPropTypeUtil.schema, | ||
| ); | ||
| var filterPropTypeUtil = createPropUtils("filter", z50.array(cssFilterFunctionPropUtil.schema)); | ||
| var filterPropTypeUtil = createPropUtils("filter", z51.array(cssFilterFunctionPropUtil.schema)); | ||
| // src/prop-types/transform-prop-types/transform.ts | ||
| import { z as z51 } from "@elementor/schema"; | ||
| import { z as z52 } from "@elementor/schema"; | ||
| var transformPropTypeUtil = createPropUtils( | ||
| "transform", | ||
| z51.strictObject({ | ||
| z52.strictObject({ | ||
| "transform-functions": unknownChildrenSchema, | ||
@@ -636,6 +646,6 @@ "transform-origin": unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions.ts | ||
| import { z as z56 } from "@elementor/schema"; | ||
| import { z as z57 } from "@elementor/schema"; | ||
| // src/prop-types/transform-prop-types/transform-functions/move-transform.ts | ||
| import { z as z52 } from "@elementor/schema"; | ||
| import { z as z53 } from "@elementor/schema"; | ||
@@ -653,3 +663,3 @@ // src/prop-types/transform-prop-types/types.ts | ||
| TransformFunctionKeys.move, | ||
| z52.strictObject({ | ||
| z53.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -662,6 +672,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts | ||
| import { z as z53 } from "@elementor/schema"; | ||
| import { z as z54 } from "@elementor/schema"; | ||
| var rotateTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.rotate, | ||
| z53.strictObject({ | ||
| z54.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -674,6 +684,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions/scale-transform.ts | ||
| import { z as z54 } from "@elementor/schema"; | ||
| import { z as z55 } from "@elementor/schema"; | ||
| var scaleTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.scale, | ||
| z54.strictObject({ | ||
| z55.strictObject({ | ||
| x: numberPropTypeUtil.schema.nullable(), | ||
@@ -686,6 +696,6 @@ y: numberPropTypeUtil.schema.nullable(), | ||
| // src/prop-types/transform-prop-types/transform-functions/skew-transform.ts | ||
| import { z as z55 } from "@elementor/schema"; | ||
| import { z as z56 } from "@elementor/schema"; | ||
| var skewTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.skew, | ||
| z55.strictObject({ | ||
| z56.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -698,9 +708,9 @@ y: unknownChildrenSchema | ||
| var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema); | ||
| var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z56.array(filterTypes)); | ||
| var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z57.array(filterTypes)); | ||
| // src/prop-types/transform-prop-types/transform-origin.ts | ||
| import { z as z57 } from "@elementor/schema"; | ||
| import { z as z58 } from "@elementor/schema"; | ||
| var transformOriginPropTypeUtil = createPropUtils( | ||
| "transform-origin", | ||
| z57.strictObject({ | ||
| z58.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -713,6 +723,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/perspective-origin.ts | ||
| import { z as z58 } from "@elementor/schema"; | ||
| import { z as z59 } from "@elementor/schema"; | ||
| var perspectiveOriginPropTypeUtil = createPropUtils( | ||
| "perspective-origin", | ||
| z58.strictObject({ | ||
| z59.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -724,13 +734,13 @@ y: unknownChildrenSchema | ||
| // src/prop-types/filter-prop-types/backdrop-filter.ts | ||
| import { z as z59 } from "@elementor/schema"; | ||
| import { z as z60 } from "@elementor/schema"; | ||
| var backdropFilterPropTypeUtil = createPropUtils( | ||
| "backdrop-filter", | ||
| z59.array(cssFilterFunctionPropUtil.schema) | ||
| z60.array(cssFilterFunctionPropUtil.schema) | ||
| ); | ||
| // src/prop-types/date-range.ts | ||
| import { z as z60 } from "@elementor/schema"; | ||
| import { z as z61 } from "@elementor/schema"; | ||
| var dateRangePropTypeUtil = createPropUtils( | ||
| "date-range", | ||
| z60.strictObject({ | ||
| z61.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -742,10 +752,10 @@ max: unknownChildrenSchema | ||
| // src/prop-types/date-string.ts | ||
| import { z as z61 } from "@elementor/schema"; | ||
| var dateStringPropTypeUtil = createPropUtils("date-string", z61.string()); | ||
| import { z as z62 } from "@elementor/schema"; | ||
| var dateStringPropTypeUtil = createPropUtils("date-string", z62.string()); | ||
| // src/prop-types/time-range.ts | ||
| import { z as z62 } from "@elementor/schema"; | ||
| import { z as z63 } from "@elementor/schema"; | ||
| var timeRangePropTypeUtil = createPropUtils( | ||
| "time-range", | ||
| z62.strictObject({ | ||
| z63.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -757,4 +767,4 @@ max: unknownChildrenSchema | ||
| // src/prop-types/time-string.ts | ||
| import { z as z63 } from "@elementor/schema"; | ||
| var timeStringPropTypeUtil = createPropUtils("time-string", z63.string()); | ||
| import { z as z64 } from "@elementor/schema"; | ||
| var timeStringPropTypeUtil = createPropUtils("time-string", z64.string()); | ||
@@ -1226,7 +1236,7 @@ // src/utils/adjust-llm-prop-value-schema.ts | ||
| // src/utils/is-transformable.ts | ||
| import { z as z64 } from "@elementor/schema"; | ||
| var transformableSchema = z64.object({ | ||
| $$type: z64.string(), | ||
| value: z64.any(), | ||
| disabled: z64.boolean().optional() | ||
| import { z as z65 } from "@elementor/schema"; | ||
| var transformableSchema = z65.object({ | ||
| $$type: z65.string(), | ||
| value: z65.any(), | ||
| disabled: z65.boolean().optional() | ||
| }); | ||
@@ -1513,2 +1523,3 @@ var isTransformable = (value) => { | ||
| hueRotateFilterPropTypeUtil, | ||
| iconPropTypeUtil, | ||
| imageAttachmentIdPropType, | ||
@@ -1515,0 +1526,0 @@ imagePropTypeUtil, |
+2
-2
| { | ||
| "name": "@elementor/editor-props", | ||
| "description": "This package contains the props model for the Elementor editor", | ||
| "version": "4.3.0-1059", | ||
| "version": "4.3.0-1060", | ||
| "private": false, | ||
@@ -43,3 +43,3 @@ "author": "Elementor Team", | ||
| "dependencies": { | ||
| "@elementor/schema": "4.3.0-1059", | ||
| "@elementor/schema": "4.3.0-1060", | ||
| "jsonschema": "1.5.0" | ||
@@ -46,0 +46,0 @@ }, |
@@ -11,2 +11,3 @@ export * from './box-shadow'; | ||
| export * from './image-src'; | ||
| export * from './icon'; | ||
| export * from './svg-src'; | ||
@@ -13,0 +14,0 @@ export * from './video-attachment-id'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
900675
0.61%97
1.04%13952
0.69%+ Added
- Removed
Updated