@elementor/editor-props
Advanced tools
| import { z } from '@elementor/schema'; | ||
| import { createPropUtils } from '../utils/create-prop-utils'; | ||
| export const escapedHtmlPropTypeUtil = createPropUtils( 'escaped-html', z.string().nullable() ); | ||
| export type EscapedHtmlPropValue = z.infer< typeof escapedHtmlPropTypeUtil.schema >; |
+51
-45
@@ -53,2 +53,3 @@ "use strict"; | ||
| emailsPropTypeUtil: () => emailsPropTypeUtil, | ||
| escapedHtmlPropTypeUtil: () => escapedHtmlPropTypeUtil, | ||
| evaluateTerm: () => evaluateTerm, | ||
@@ -632,10 +633,14 @@ extractValue: () => extractValue, | ||
| // src/prop-types/escaped-html.ts | ||
| var import_schema44 = require("@elementor/schema"); | ||
| var escapedHtmlPropTypeUtil = createPropUtils("escaped-html", import_schema44.z.string().nullable()); | ||
| // src/prop-types/filter-prop-types/filter.ts | ||
| var import_schema49 = require("@elementor/schema"); | ||
| var import_schema50 = require("@elementor/schema"); | ||
| // src/prop-types/filter-prop-types/drop-shadow-filter.ts | ||
| var import_schema44 = require("@elementor/schema"); | ||
| var import_schema45 = require("@elementor/schema"); | ||
| var dropShadowFilterPropTypeUtil = createPropUtils( | ||
| "drop-shadow", | ||
| import_schema44.z.object({ | ||
| import_schema45.z.object({ | ||
| xAxis: unknownChildrenSchema, | ||
@@ -649,6 +654,6 @@ yAxis: unknownChildrenSchema, | ||
| // src/prop-types/filter-prop-types/filter-functions/blur-filter.ts | ||
| var import_schema45 = require("@elementor/schema"); | ||
| var import_schema46 = require("@elementor/schema"); | ||
| var blurFilterPropTypeUtil = createPropUtils( | ||
| "blur", | ||
| import_schema45.z.strictObject({ | ||
| import_schema46.z.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -659,6 +664,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts | ||
| var import_schema46 = require("@elementor/schema"); | ||
| var import_schema47 = require("@elementor/schema"); | ||
| var colorToneFilterPropTypeUtil = createPropUtils( | ||
| "color-tone", | ||
| import_schema46.z.strictObject({ | ||
| import_schema47.z.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -669,6 +674,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts | ||
| var import_schema47 = require("@elementor/schema"); | ||
| var import_schema48 = require("@elementor/schema"); | ||
| var hueRotateFilterPropTypeUtil = createPropUtils( | ||
| "hue-rotate", | ||
| import_schema47.z.strictObject({ | ||
| import_schema48.z.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -679,6 +684,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts | ||
| var import_schema48 = require("@elementor/schema"); | ||
| var import_schema49 = require("@elementor/schema"); | ||
| var intensityFilterPropTypeUtil = createPropUtils( | ||
| "intensity", | ||
| import_schema48.z.strictObject({ | ||
| import_schema49.z.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -691,5 +696,5 @@ }) | ||
| "css-filter-func", | ||
| import_schema49.z.object({ | ||
| import_schema50.z.object({ | ||
| func: stringPropTypeUtil.schema, | ||
| args: import_schema49.z.union([ | ||
| args: import_schema50.z.union([ | ||
| blurFilterPropTypeUtil.schema, | ||
@@ -703,9 +708,9 @@ intensityFilterPropTypeUtil.schema, | ||
| ); | ||
| var filterPropTypeUtil = createPropUtils("filter", import_schema49.z.array(cssFilterFunctionPropUtil.schema)); | ||
| var filterPropTypeUtil = createPropUtils("filter", import_schema50.z.array(cssFilterFunctionPropUtil.schema)); | ||
| // src/prop-types/transform-prop-types/transform.ts | ||
| var import_schema50 = require("@elementor/schema"); | ||
| var import_schema51 = require("@elementor/schema"); | ||
| var transformPropTypeUtil = createPropUtils( | ||
| "transform", | ||
| import_schema50.z.strictObject({ | ||
| import_schema51.z.strictObject({ | ||
| "transform-functions": unknownChildrenSchema, | ||
@@ -719,6 +724,6 @@ "transform-origin": unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions.ts | ||
| var import_schema55 = require("@elementor/schema"); | ||
| var import_schema56 = require("@elementor/schema"); | ||
| // src/prop-types/transform-prop-types/transform-functions/move-transform.ts | ||
| var import_schema51 = require("@elementor/schema"); | ||
| var import_schema52 = require("@elementor/schema"); | ||
@@ -736,3 +741,3 @@ // src/prop-types/transform-prop-types/types.ts | ||
| TransformFunctionKeys.move, | ||
| import_schema51.z.strictObject({ | ||
| import_schema52.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -745,6 +750,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts | ||
| var import_schema52 = require("@elementor/schema"); | ||
| var import_schema53 = require("@elementor/schema"); | ||
| var rotateTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.rotate, | ||
| import_schema52.z.strictObject({ | ||
| import_schema53.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -757,6 +762,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions/scale-transform.ts | ||
| var import_schema53 = require("@elementor/schema"); | ||
| var import_schema54 = require("@elementor/schema"); | ||
| var scaleTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.scale, | ||
| import_schema53.z.strictObject({ | ||
| import_schema54.z.strictObject({ | ||
| x: numberPropTypeUtil.schema.nullable(), | ||
@@ -769,6 +774,6 @@ y: numberPropTypeUtil.schema.nullable(), | ||
| // src/prop-types/transform-prop-types/transform-functions/skew-transform.ts | ||
| var import_schema54 = require("@elementor/schema"); | ||
| var import_schema55 = require("@elementor/schema"); | ||
| var skewTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.skew, | ||
| import_schema54.z.strictObject({ | ||
| import_schema55.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -781,9 +786,9 @@ y: unknownChildrenSchema | ||
| var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema); | ||
| var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema55.z.array(filterTypes)); | ||
| var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", import_schema56.z.array(filterTypes)); | ||
| // src/prop-types/transform-prop-types/transform-origin.ts | ||
| var import_schema56 = require("@elementor/schema"); | ||
| var import_schema57 = require("@elementor/schema"); | ||
| var transformOriginPropTypeUtil = createPropUtils( | ||
| "transform-origin", | ||
| import_schema56.z.strictObject({ | ||
| import_schema57.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -796,6 +801,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/perspective-origin.ts | ||
| var import_schema57 = require("@elementor/schema"); | ||
| var import_schema58 = require("@elementor/schema"); | ||
| var perspectiveOriginPropTypeUtil = createPropUtils( | ||
| "perspective-origin", | ||
| import_schema57.z.strictObject({ | ||
| import_schema58.z.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -807,13 +812,13 @@ y: unknownChildrenSchema | ||
| // src/prop-types/filter-prop-types/backdrop-filter.ts | ||
| var import_schema58 = require("@elementor/schema"); | ||
| var import_schema59 = require("@elementor/schema"); | ||
| var backdropFilterPropTypeUtil = createPropUtils( | ||
| "backdrop-filter", | ||
| import_schema58.z.array(cssFilterFunctionPropUtil.schema) | ||
| import_schema59.z.array(cssFilterFunctionPropUtil.schema) | ||
| ); | ||
| // src/prop-types/date-range.ts | ||
| var import_schema59 = require("@elementor/schema"); | ||
| var import_schema60 = require("@elementor/schema"); | ||
| var dateRangePropTypeUtil = createPropUtils( | ||
| "date-range", | ||
| import_schema59.z.strictObject({ | ||
| import_schema60.z.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -825,10 +830,10 @@ max: unknownChildrenSchema | ||
| // src/prop-types/date-string.ts | ||
| var import_schema60 = require("@elementor/schema"); | ||
| var dateStringPropTypeUtil = createPropUtils("date-string", import_schema60.z.string()); | ||
| var import_schema61 = require("@elementor/schema"); | ||
| var dateStringPropTypeUtil = createPropUtils("date-string", import_schema61.z.string()); | ||
| // src/prop-types/time-range.ts | ||
| var import_schema61 = require("@elementor/schema"); | ||
| var import_schema62 = require("@elementor/schema"); | ||
| var timeRangePropTypeUtil = createPropUtils( | ||
| "time-range", | ||
| import_schema61.z.strictObject({ | ||
| import_schema62.z.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -840,4 +845,4 @@ max: unknownChildrenSchema | ||
| // src/prop-types/time-string.ts | ||
| var import_schema62 = require("@elementor/schema"); | ||
| var timeStringPropTypeUtil = createPropUtils("time-string", import_schema62.z.string()); | ||
| var import_schema63 = require("@elementor/schema"); | ||
| var timeStringPropTypeUtil = createPropUtils("time-string", import_schema63.z.string()); | ||
@@ -1309,7 +1314,7 @@ // src/utils/adjust-llm-prop-value-schema.ts | ||
| // src/utils/is-transformable.ts | ||
| var import_schema63 = require("@elementor/schema"); | ||
| var transformableSchema = import_schema63.z.object({ | ||
| $$type: import_schema63.z.string(), | ||
| value: import_schema63.z.any(), | ||
| disabled: import_schema63.z.boolean().optional() | ||
| 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() | ||
| }); | ||
@@ -1583,2 +1588,3 @@ var isTransformable = (value) => { | ||
| emailsPropTypeUtil, | ||
| escapedHtmlPropTypeUtil, | ||
| evaluateTerm, | ||
@@ -1585,0 +1591,0 @@ extractValue, |
+50
-45
@@ -521,10 +521,14 @@ // src/prop-types/box-shadow.ts | ||
| // src/prop-types/escaped-html.ts | ||
| import { z as z44 } from "@elementor/schema"; | ||
| var escapedHtmlPropTypeUtil = createPropUtils("escaped-html", z44.string().nullable()); | ||
| // src/prop-types/filter-prop-types/filter.ts | ||
| import { z as z49 } from "@elementor/schema"; | ||
| import { z as z50 } from "@elementor/schema"; | ||
| // src/prop-types/filter-prop-types/drop-shadow-filter.ts | ||
| import { z as z44 } from "@elementor/schema"; | ||
| import { z as z45 } from "@elementor/schema"; | ||
| var dropShadowFilterPropTypeUtil = createPropUtils( | ||
| "drop-shadow", | ||
| z44.object({ | ||
| z45.object({ | ||
| xAxis: unknownChildrenSchema, | ||
@@ -538,6 +542,6 @@ yAxis: unknownChildrenSchema, | ||
| // src/prop-types/filter-prop-types/filter-functions/blur-filter.ts | ||
| import { z as z45 } from "@elementor/schema"; | ||
| import { z as z46 } from "@elementor/schema"; | ||
| var blurFilterPropTypeUtil = createPropUtils( | ||
| "blur", | ||
| z45.strictObject({ | ||
| z46.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -548,6 +552,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts | ||
| import { z as z46 } from "@elementor/schema"; | ||
| import { z as z47 } from "@elementor/schema"; | ||
| var colorToneFilterPropTypeUtil = createPropUtils( | ||
| "color-tone", | ||
| z46.strictObject({ | ||
| z47.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -558,6 +562,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts | ||
| import { z as z47 } from "@elementor/schema"; | ||
| import { z as z48 } from "@elementor/schema"; | ||
| var hueRotateFilterPropTypeUtil = createPropUtils( | ||
| "hue-rotate", | ||
| z47.strictObject({ | ||
| z48.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -568,6 +572,6 @@ }) | ||
| // src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts | ||
| import { z as z48 } from "@elementor/schema"; | ||
| import { z as z49 } from "@elementor/schema"; | ||
| var intensityFilterPropTypeUtil = createPropUtils( | ||
| "intensity", | ||
| z48.strictObject({ | ||
| z49.strictObject({ | ||
| size: unknownChildrenSchema | ||
@@ -580,5 +584,5 @@ }) | ||
| "css-filter-func", | ||
| z49.object({ | ||
| z50.object({ | ||
| func: stringPropTypeUtil.schema, | ||
| args: z49.union([ | ||
| args: z50.union([ | ||
| blurFilterPropTypeUtil.schema, | ||
@@ -592,9 +596,9 @@ intensityFilterPropTypeUtil.schema, | ||
| ); | ||
| var filterPropTypeUtil = createPropUtils("filter", z49.array(cssFilterFunctionPropUtil.schema)); | ||
| var filterPropTypeUtil = createPropUtils("filter", z50.array(cssFilterFunctionPropUtil.schema)); | ||
| // src/prop-types/transform-prop-types/transform.ts | ||
| import { z as z50 } from "@elementor/schema"; | ||
| import { z as z51 } from "@elementor/schema"; | ||
| var transformPropTypeUtil = createPropUtils( | ||
| "transform", | ||
| z50.strictObject({ | ||
| z51.strictObject({ | ||
| "transform-functions": unknownChildrenSchema, | ||
@@ -608,6 +612,6 @@ "transform-origin": unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions.ts | ||
| import { z as z55 } from "@elementor/schema"; | ||
| import { z as z56 } from "@elementor/schema"; | ||
| // src/prop-types/transform-prop-types/transform-functions/move-transform.ts | ||
| import { z as z51 } from "@elementor/schema"; | ||
| import { z as z52 } from "@elementor/schema"; | ||
@@ -625,3 +629,3 @@ // src/prop-types/transform-prop-types/types.ts | ||
| TransformFunctionKeys.move, | ||
| z51.strictObject({ | ||
| z52.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -634,6 +638,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts | ||
| import { z as z52 } from "@elementor/schema"; | ||
| import { z as z53 } from "@elementor/schema"; | ||
| var rotateTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.rotate, | ||
| z52.strictObject({ | ||
| z53.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -646,6 +650,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/transform-functions/scale-transform.ts | ||
| import { z as z53 } from "@elementor/schema"; | ||
| import { z as z54 } from "@elementor/schema"; | ||
| var scaleTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.scale, | ||
| z53.strictObject({ | ||
| z54.strictObject({ | ||
| x: numberPropTypeUtil.schema.nullable(), | ||
@@ -658,6 +662,6 @@ y: numberPropTypeUtil.schema.nullable(), | ||
| // src/prop-types/transform-prop-types/transform-functions/skew-transform.ts | ||
| import { z as z54 } from "@elementor/schema"; | ||
| import { z as z55 } from "@elementor/schema"; | ||
| var skewTransformPropTypeUtil = createPropUtils( | ||
| TransformFunctionKeys.skew, | ||
| z54.strictObject({ | ||
| z55.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -670,9 +674,9 @@ y: unknownChildrenSchema | ||
| var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema); | ||
| var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z55.array(filterTypes)); | ||
| var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z56.array(filterTypes)); | ||
| // src/prop-types/transform-prop-types/transform-origin.ts | ||
| import { z as z56 } from "@elementor/schema"; | ||
| import { z as z57 } from "@elementor/schema"; | ||
| var transformOriginPropTypeUtil = createPropUtils( | ||
| "transform-origin", | ||
| z56.strictObject({ | ||
| z57.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -685,6 +689,6 @@ y: unknownChildrenSchema, | ||
| // src/prop-types/transform-prop-types/perspective-origin.ts | ||
| import { z as z57 } from "@elementor/schema"; | ||
| import { z as z58 } from "@elementor/schema"; | ||
| var perspectiveOriginPropTypeUtil = createPropUtils( | ||
| "perspective-origin", | ||
| z57.strictObject({ | ||
| z58.strictObject({ | ||
| x: unknownChildrenSchema, | ||
@@ -696,13 +700,13 @@ y: unknownChildrenSchema | ||
| // src/prop-types/filter-prop-types/backdrop-filter.ts | ||
| import { z as z58 } from "@elementor/schema"; | ||
| import { z as z59 } from "@elementor/schema"; | ||
| var backdropFilterPropTypeUtil = createPropUtils( | ||
| "backdrop-filter", | ||
| z58.array(cssFilterFunctionPropUtil.schema) | ||
| z59.array(cssFilterFunctionPropUtil.schema) | ||
| ); | ||
| // src/prop-types/date-range.ts | ||
| import { z as z59 } from "@elementor/schema"; | ||
| import { z as z60 } from "@elementor/schema"; | ||
| var dateRangePropTypeUtil = createPropUtils( | ||
| "date-range", | ||
| z59.strictObject({ | ||
| z60.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -714,10 +718,10 @@ max: unknownChildrenSchema | ||
| // src/prop-types/date-string.ts | ||
| import { z as z60 } from "@elementor/schema"; | ||
| var dateStringPropTypeUtil = createPropUtils("date-string", z60.string()); | ||
| import { z as z61 } from "@elementor/schema"; | ||
| var dateStringPropTypeUtil = createPropUtils("date-string", z61.string()); | ||
| // src/prop-types/time-range.ts | ||
| import { z as z61 } from "@elementor/schema"; | ||
| import { z as z62 } from "@elementor/schema"; | ||
| var timeRangePropTypeUtil = createPropUtils( | ||
| "time-range", | ||
| z61.strictObject({ | ||
| z62.strictObject({ | ||
| min: unknownChildrenSchema, | ||
@@ -729,4 +733,4 @@ max: unknownChildrenSchema | ||
| // src/prop-types/time-string.ts | ||
| import { z as z62 } from "@elementor/schema"; | ||
| var timeStringPropTypeUtil = createPropUtils("time-string", z62.string()); | ||
| import { z as z63 } from "@elementor/schema"; | ||
| var timeStringPropTypeUtil = createPropUtils("time-string", z63.string()); | ||
@@ -1198,7 +1202,7 @@ // src/utils/adjust-llm-prop-value-schema.ts | ||
| // src/utils/is-transformable.ts | ||
| import { z as z63 } from "@elementor/schema"; | ||
| var transformableSchema = z63.object({ | ||
| $$type: z63.string(), | ||
| value: z63.any(), | ||
| disabled: z63.boolean().optional() | ||
| import { z as z64 } from "@elementor/schema"; | ||
| var transformableSchema = z64.object({ | ||
| $$type: z64.string(), | ||
| value: z64.any(), | ||
| disabled: z64.boolean().optional() | ||
| }); | ||
@@ -1471,2 +1475,3 @@ var isTransformable = (value) => { | ||
| emailsPropTypeUtil, | ||
| escapedHtmlPropTypeUtil, | ||
| evaluateTerm, | ||
@@ -1473,0 +1478,0 @@ extractValue, |
+2
-2
| { | ||
| "name": "@elementor/editor-props", | ||
| "description": "This package contains the props model for the Elementor editor", | ||
| "version": "4.3.0-1047", | ||
| "version": "4.3.0-1048", | ||
| "private": false, | ||
@@ -43,3 +43,3 @@ "author": "Elementor Team", | ||
| "dependencies": { | ||
| "@elementor/schema": "4.3.0-1047", | ||
| "@elementor/schema": "4.3.0-1048", | ||
| "jsonschema": "1.5.0" | ||
@@ -46,0 +46,0 @@ }, |
@@ -48,2 +48,3 @@ export * from './box-shadow'; | ||
| export * from './html-v3'; | ||
| export * from './escaped-html'; | ||
| export * from './filter-prop-types/filter'; | ||
@@ -50,0 +51,0 @@ export * from './transform-prop-types/transform'; |
@@ -152,2 +152,30 @@ import { type ObjectPropType, type PropsSchema } from '../../types'; | ||
| }, | ||
| escapedHtmlTitle: { | ||
| kind: 'union', | ||
| default: null, | ||
| meta: {}, | ||
| settings: {}, | ||
| prop_types: { | ||
| 'escaped-html': { | ||
| kind: 'string', | ||
| key: 'escaped-html', | ||
| default: null, | ||
| meta: {}, | ||
| settings: {}, | ||
| dependencies: undefined, | ||
| initial_value: null, | ||
| }, | ||
| dynamic: { | ||
| kind: 'plain', | ||
| key: 'dynamic', | ||
| default: null, | ||
| meta: {}, | ||
| settings: { categories: [ 'text' ] }, | ||
| dependencies: undefined, | ||
| initial_value: null, | ||
| }, | ||
| }, | ||
| dependencies: undefined, | ||
| initial_value: null, | ||
| }, | ||
| dynamicImage: { | ||
@@ -154,0 +182,0 @@ kind: 'object', |
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
894262
0.51%96
1.05%13856
0.48%+ Added
- Removed
Updated