@elementor/editor-props 4.3.0-999 → 4.4.0-1064
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 +132 -43
- package/dist/index.d.ts +132 -43
- package/dist/index.js +161 -143
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +159 -143
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/border-radius.ts +1 -1
- package/src/prop-types/border-width.ts +1 -1
- package/src/prop-types/escaped-html.ts +7 -0
- package/src/prop-types/icon.ts +14 -0
- package/src/prop-types/index.ts +2 -0
- package/src/prop-types/video-src.ts +2 -2
- package/src/utils/test-utils/stubs.ts +28 -0
package/dist/index.mjs
CHANGED
|
@@ -81,7 +81,7 @@ var boxShadowPropTypeUtil = createPropUtils("box-shadow", z4.array(shadowPropTyp
|
|
|
81
81
|
// src/prop-types/border-radius.ts
|
|
82
82
|
import { z as z5 } from "@elementor/schema";
|
|
83
83
|
var borderRadiusPropTypeUtil = createPropUtils(
|
|
84
|
-
"border-radius",
|
|
84
|
+
"border-radius-v2",
|
|
85
85
|
z5.strictObject({
|
|
86
86
|
"start-start": unknownChildrenSchema,
|
|
87
87
|
"start-end": unknownChildrenSchema,
|
|
@@ -93,7 +93,7 @@ var borderRadiusPropTypeUtil = createPropUtils(
|
|
|
93
93
|
// src/prop-types/border-width.ts
|
|
94
94
|
import { z as z6 } from "@elementor/schema";
|
|
95
95
|
var borderWidthPropTypeUtil = createPropUtils(
|
|
96
|
-
"border-width",
|
|
96
|
+
"border-width-v2",
|
|
97
97
|
z6.strictObject({
|
|
98
98
|
"block-start": unknownChildrenSchema,
|
|
99
99
|
"block-end": unknownChildrenSchema,
|
|
@@ -169,18 +169,28 @@ var imageSrcPropTypeUtil = createPropUtils(
|
|
|
169
169
|
)
|
|
170
170
|
);
|
|
171
171
|
|
|
172
|
-
// src/prop-types/
|
|
172
|
+
// src/prop-types/icon.ts
|
|
173
173
|
import { z as z14 } from "@elementor/schema";
|
|
174
|
-
var
|
|
174
|
+
var iconPropTypeUtil = createPropUtils(
|
|
175
|
+
"icon",
|
|
176
|
+
z14.strictObject({
|
|
177
|
+
value: unknownChildrenSchema,
|
|
178
|
+
library: unknownChildrenSchema
|
|
179
|
+
})
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
// src/prop-types/svg-src.ts
|
|
183
|
+
import { z as z15 } from "@elementor/schema";
|
|
184
|
+
var svgSrcValueSchema = z15.strictObject({
|
|
175
185
|
id: unknownChildrenSchema,
|
|
176
|
-
url:
|
|
186
|
+
url: z15.null()
|
|
177
187
|
}).or(
|
|
178
|
-
|
|
179
|
-
id:
|
|
188
|
+
z15.strictObject({
|
|
189
|
+
id: z15.null(),
|
|
180
190
|
url: unknownChildrenSchema
|
|
181
191
|
})
|
|
182
192
|
).or(
|
|
183
|
-
|
|
193
|
+
z15.strictObject({
|
|
184
194
|
id: unknownChildrenSchema,
|
|
185
195
|
url: unknownChildrenSchema
|
|
186
196
|
})
|
|
@@ -188,29 +198,29 @@ var svgSrcValueSchema = z14.strictObject({
|
|
|
188
198
|
var svgSrcPropTypeUtil = createPropUtils("svg-src", svgSrcValueSchema);
|
|
189
199
|
|
|
190
200
|
// src/prop-types/video-attachment-id.ts
|
|
191
|
-
import { z as
|
|
192
|
-
var videoAttachmentIdPropType = createPropUtils("video-attachment-id",
|
|
201
|
+
import { z as z16 } from "@elementor/schema";
|
|
202
|
+
var videoAttachmentIdPropType = createPropUtils("video-attachment-id", z16.number());
|
|
193
203
|
|
|
194
204
|
// src/prop-types/video-src.ts
|
|
195
|
-
import { z as
|
|
205
|
+
import { z as z17 } from "@elementor/schema";
|
|
196
206
|
var videoSrcPropTypeUtil = createPropUtils(
|
|
197
207
|
"video-src",
|
|
198
|
-
|
|
208
|
+
z17.strictObject({
|
|
199
209
|
id: unknownChildrenSchema,
|
|
200
|
-
url:
|
|
210
|
+
url: z17.literal(null).optional()
|
|
201
211
|
}).or(
|
|
202
|
-
|
|
203
|
-
id:
|
|
212
|
+
z17.strictObject({
|
|
213
|
+
id: z17.literal(null).optional(),
|
|
204
214
|
url: unknownChildrenSchema
|
|
205
215
|
})
|
|
206
216
|
)
|
|
207
217
|
);
|
|
208
218
|
|
|
209
219
|
// src/prop-types/dimensions.ts
|
|
210
|
-
import { z as
|
|
220
|
+
import { z as z18 } from "@elementor/schema";
|
|
211
221
|
var dimensionsPropTypeUtil = createPropUtils(
|
|
212
222
|
"dimensions",
|
|
213
|
-
|
|
223
|
+
z18.strictObject({
|
|
214
224
|
"block-start": unknownChildrenSchema,
|
|
215
225
|
"block-end": unknownChildrenSchema,
|
|
216
226
|
"inline-start": unknownChildrenSchema,
|
|
@@ -219,95 +229,95 @@ var dimensionsPropTypeUtil = createPropUtils(
|
|
|
219
229
|
);
|
|
220
230
|
|
|
221
231
|
// src/prop-types/number.ts
|
|
222
|
-
import { z as
|
|
223
|
-
var numberPropTypeUtil = createPropUtils("number",
|
|
232
|
+
import { z as z19 } from "@elementor/schema";
|
|
233
|
+
var numberPropTypeUtil = createPropUtils("number", z19.number().nullable());
|
|
224
234
|
|
|
225
235
|
// src/prop-types/size.ts
|
|
226
|
-
import { z as
|
|
227
|
-
var sizeNumberOrEmpty =
|
|
236
|
+
import { z as z20 } from "@elementor/schema";
|
|
237
|
+
var sizeNumberOrEmpty = z20.union([z20.number(), z20.literal("")]);
|
|
228
238
|
var sizePropTypeUtil = createPropUtils(
|
|
229
239
|
"size",
|
|
230
|
-
|
|
231
|
-
unit:
|
|
240
|
+
z20.strictObject({
|
|
241
|
+
unit: z20.enum(["px", "em", "rem", "%", "vw", "vh", "ch", "fr"]),
|
|
232
242
|
size: sizeNumberOrEmpty
|
|
233
243
|
}).or(
|
|
234
|
-
|
|
235
|
-
unit:
|
|
244
|
+
z20.strictObject({
|
|
245
|
+
unit: z20.enum(["deg", "rad", "grad", "turn"]),
|
|
236
246
|
size: sizeNumberOrEmpty
|
|
237
247
|
})
|
|
238
248
|
).or(
|
|
239
|
-
|
|
240
|
-
unit:
|
|
249
|
+
z20.strictObject({
|
|
250
|
+
unit: z20.enum(["s", "ms"]),
|
|
241
251
|
size: sizeNumberOrEmpty
|
|
242
252
|
})
|
|
243
253
|
).or(
|
|
244
|
-
|
|
245
|
-
unit:
|
|
246
|
-
size:
|
|
254
|
+
z20.strictObject({
|
|
255
|
+
unit: z20.literal("auto"),
|
|
256
|
+
size: z20.literal("")
|
|
247
257
|
})
|
|
248
258
|
).or(
|
|
249
|
-
|
|
250
|
-
unit:
|
|
251
|
-
size:
|
|
259
|
+
z20.strictObject({
|
|
260
|
+
unit: z20.literal("custom"),
|
|
261
|
+
size: z20.string()
|
|
252
262
|
})
|
|
253
263
|
)
|
|
254
264
|
);
|
|
255
265
|
|
|
256
266
|
// src/prop-types/grid-track-size.ts
|
|
257
|
-
import { z as
|
|
267
|
+
import { z as z21 } from "@elementor/schema";
|
|
258
268
|
var gridTrackSizePropTypeUtil = createPropUtils(
|
|
259
269
|
"grid-track-size",
|
|
260
|
-
|
|
261
|
-
unit:
|
|
262
|
-
size:
|
|
270
|
+
z21.strictObject({
|
|
271
|
+
unit: z21.literal("fr"),
|
|
272
|
+
size: z21.union([z21.number(), z21.literal("")])
|
|
263
273
|
}).or(
|
|
264
|
-
|
|
265
|
-
unit:
|
|
266
|
-
size:
|
|
274
|
+
z21.strictObject({
|
|
275
|
+
unit: z21.literal("custom"),
|
|
276
|
+
size: z21.string()
|
|
267
277
|
})
|
|
268
278
|
)
|
|
269
279
|
);
|
|
270
280
|
|
|
271
281
|
// src/prop-types/span.ts
|
|
272
|
-
import { z as
|
|
273
|
-
var spanPropTypeUtil = createPropUtils("span",
|
|
282
|
+
import { z as z22 } from "@elementor/schema";
|
|
283
|
+
var spanPropTypeUtil = createPropUtils("span", z22.string().nullable());
|
|
274
284
|
|
|
275
285
|
// src/prop-types/string.ts
|
|
276
|
-
import { z as
|
|
277
|
-
var stringPropTypeUtil = createPropUtils("string",
|
|
286
|
+
import { z as z23 } from "@elementor/schema";
|
|
287
|
+
var stringPropTypeUtil = createPropUtils("string", z23.string().nullable());
|
|
278
288
|
|
|
279
289
|
// src/prop-types/string-array.ts
|
|
280
290
|
var stringArrayPropTypeUtil = createArrayPropUtils(stringPropTypeUtil.key, stringPropTypeUtil.schema);
|
|
281
291
|
|
|
282
292
|
// src/prop-types/stroke.ts
|
|
283
|
-
import { z as
|
|
293
|
+
import { z as z24 } from "@elementor/schema";
|
|
284
294
|
var strokePropTypeUtil = createPropUtils(
|
|
285
295
|
"stroke",
|
|
286
|
-
|
|
296
|
+
z24.strictObject({
|
|
287
297
|
color: unknownChildrenSchema,
|
|
288
298
|
width: unknownChildrenSchema
|
|
289
299
|
})
|
|
290
300
|
);
|
|
291
301
|
|
|
292
302
|
// src/prop-types/url.ts
|
|
293
|
-
import { z as
|
|
294
|
-
var urlPropTypeUtil = createPropUtils("url",
|
|
303
|
+
import { z as z25 } from "@elementor/schema";
|
|
304
|
+
var urlPropTypeUtil = createPropUtils("url", z25.string().nullable());
|
|
295
305
|
|
|
296
306
|
// src/prop-types/layout-direction.ts
|
|
297
|
-
import { z as
|
|
307
|
+
import { z as z26 } from "@elementor/schema";
|
|
298
308
|
var layoutDirectionPropTypeUtil = createPropUtils(
|
|
299
309
|
"layout-direction",
|
|
300
|
-
|
|
301
|
-
row:
|
|
302
|
-
column:
|
|
310
|
+
z26.object({
|
|
311
|
+
row: z26.any(),
|
|
312
|
+
column: z26.any()
|
|
303
313
|
})
|
|
304
314
|
);
|
|
305
315
|
|
|
306
316
|
// src/prop-types/link.ts
|
|
307
|
-
import { z as
|
|
317
|
+
import { z as z27 } from "@elementor/schema";
|
|
308
318
|
var linkPropTypeUtil = createPropUtils(
|
|
309
319
|
"link",
|
|
310
|
-
|
|
320
|
+
z27.strictObject({
|
|
311
321
|
destination: unknownChildrenSchema,
|
|
312
322
|
isTargetBlank: unknownChildrenSchema,
|
|
313
323
|
tag: unknownChildrenSchema
|
|
@@ -315,10 +325,10 @@ var linkPropTypeUtil = createPropUtils(
|
|
|
315
325
|
);
|
|
316
326
|
|
|
317
327
|
// src/prop-types/email.ts
|
|
318
|
-
import { z as
|
|
328
|
+
import { z as z28 } from "@elementor/schema";
|
|
319
329
|
var emailPropTypeUtil = createPropUtils(
|
|
320
330
|
"email",
|
|
321
|
-
|
|
331
|
+
z28.strictObject({
|
|
322
332
|
to: unknownChildrenSchema,
|
|
323
333
|
subject: unknownChildrenSchema,
|
|
324
334
|
message: unknownChildrenSchema,
|
|
@@ -333,10 +343,10 @@ var emailPropTypeUtil = createPropUtils(
|
|
|
333
343
|
);
|
|
334
344
|
|
|
335
345
|
// src/prop-types/emails.ts
|
|
336
|
-
import { z as
|
|
346
|
+
import { z as z29 } from "@elementor/schema";
|
|
337
347
|
var emailsPropTypeUtil = createPropUtils(
|
|
338
348
|
"emails",
|
|
339
|
-
|
|
349
|
+
z29.strictObject({
|
|
340
350
|
to: unknownChildrenSchema,
|
|
341
351
|
subject: unknownChildrenSchema,
|
|
342
352
|
message: unknownChildrenSchema,
|
|
@@ -351,13 +361,13 @@ var emailsPropTypeUtil = createPropUtils(
|
|
|
351
361
|
);
|
|
352
362
|
|
|
353
363
|
// src/prop-types/selection-size.ts
|
|
354
|
-
import { z as
|
|
364
|
+
import { z as z31 } from "@elementor/schema";
|
|
355
365
|
|
|
356
366
|
// src/prop-types/key-value.ts
|
|
357
|
-
import { z as
|
|
367
|
+
import { z as z30 } from "@elementor/schema";
|
|
358
368
|
var keyValuePropTypeUtil = createPropUtils(
|
|
359
369
|
"key-value",
|
|
360
|
-
|
|
370
|
+
z30.strictObject({
|
|
361
371
|
key: unknownChildrenSchema,
|
|
362
372
|
value: unknownChildrenSchema
|
|
363
373
|
})
|
|
@@ -366,17 +376,17 @@ var keyValuePropTypeUtil = createPropUtils(
|
|
|
366
376
|
// src/prop-types/selection-size.ts
|
|
367
377
|
var selectionSizePropTypeUtil = createPropUtils(
|
|
368
378
|
"selection-size",
|
|
369
|
-
|
|
370
|
-
selection:
|
|
379
|
+
z31.strictObject({
|
|
380
|
+
selection: z31.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
|
|
371
381
|
size: unknownChildrenSchema
|
|
372
382
|
})
|
|
373
383
|
);
|
|
374
384
|
|
|
375
385
|
// src/prop-types/background-prop-types/background.ts
|
|
376
|
-
import { z as
|
|
386
|
+
import { z as z32 } from "@elementor/schema";
|
|
377
387
|
var backgroundPropTypeUtil = createPropUtils(
|
|
378
388
|
"background",
|
|
379
|
-
|
|
389
|
+
z32.strictObject({
|
|
380
390
|
color: unknownChildrenSchema,
|
|
381
391
|
clip: unknownChildrenSchema,
|
|
382
392
|
"background-overlay": unknownChildrenSchema
|
|
@@ -384,7 +394,7 @@ var backgroundPropTypeUtil = createPropUtils(
|
|
|
384
394
|
);
|
|
385
395
|
|
|
386
396
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
387
|
-
import { z as
|
|
397
|
+
import { z as z33 } from "@elementor/schema";
|
|
388
398
|
|
|
389
399
|
// src/prop-types/background-prop-types/background-color-overlay.ts
|
|
390
400
|
var backgroundColorOverlayPropTypeUtil = createPropUtils("background-color-overlay", unknownChildrenSchema);
|
|
@@ -400,7 +410,7 @@ var backgroundImageOverlayPropTypeUtil = createPropUtils("background-image-overl
|
|
|
400
410
|
|
|
401
411
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
402
412
|
var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema);
|
|
403
|
-
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay",
|
|
413
|
+
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z33.array(backgroundOverlayItem));
|
|
404
414
|
|
|
405
415
|
// src/prop-types/background-prop-types/background-image-position-offset.ts
|
|
406
416
|
var backgroundImagePositionOffsetPropTypeUtil = createPropUtils(
|
|
@@ -415,71 +425,71 @@ var backgroundImageSizeScalePropTypeUtil = createPropUtils(
|
|
|
415
425
|
);
|
|
416
426
|
|
|
417
427
|
// src/prop-types/boolean.ts
|
|
418
|
-
import { z as
|
|
419
|
-
var booleanPropTypeUtil = createPropUtils("boolean",
|
|
428
|
+
import { z as z34 } from "@elementor/schema";
|
|
429
|
+
var booleanPropTypeUtil = createPropUtils("boolean", z34.boolean().nullable());
|
|
420
430
|
|
|
421
431
|
// src/prop-types/color-stop.ts
|
|
422
|
-
import { z as
|
|
432
|
+
import { z as z35 } from "@elementor/schema";
|
|
423
433
|
var colorStopPropTypeUtil = createPropUtils(
|
|
424
434
|
"color-stop",
|
|
425
|
-
|
|
435
|
+
z35.strictObject({
|
|
426
436
|
color: unknownChildrenSchema,
|
|
427
437
|
offset: unknownChildrenSchema
|
|
428
438
|
})
|
|
429
439
|
);
|
|
430
440
|
|
|
431
441
|
// src/prop-types/gradient-color-stop.ts
|
|
432
|
-
import { z as
|
|
442
|
+
import { z as z36 } from "@elementor/schema";
|
|
433
443
|
var gradientColorStopPropTypeUtil = createPropUtils(
|
|
434
444
|
"gradient-color-stop",
|
|
435
|
-
|
|
445
|
+
z36.array(colorStopPropTypeUtil.schema)
|
|
436
446
|
);
|
|
437
447
|
|
|
438
448
|
// src/prop-types/number-range.ts
|
|
439
|
-
import { z as
|
|
449
|
+
import { z as z37 } from "@elementor/schema";
|
|
440
450
|
var numberRangePropTypeUtil = createPropUtils(
|
|
441
451
|
"number-range",
|
|
442
|
-
|
|
452
|
+
z37.strictObject({
|
|
443
453
|
min: unknownChildrenSchema,
|
|
444
454
|
max: unknownChildrenSchema
|
|
445
455
|
})
|
|
446
456
|
);
|
|
447
457
|
|
|
448
458
|
// src/prop-types/date-time.ts
|
|
449
|
-
import { z as
|
|
459
|
+
import { z as z38 } from "@elementor/schema";
|
|
450
460
|
var DateTimePropTypeUtil = createPropUtils(
|
|
451
461
|
"date-time",
|
|
452
|
-
|
|
462
|
+
z38.strictObject({
|
|
453
463
|
date: unknownChildrenSchema,
|
|
454
464
|
time: unknownChildrenSchema
|
|
455
465
|
})
|
|
456
466
|
);
|
|
457
467
|
|
|
458
468
|
// src/prop-types/position.ts
|
|
459
|
-
import { z as
|
|
469
|
+
import { z as z39 } from "@elementor/schema";
|
|
460
470
|
var positionPropTypeUtil = createPropUtils(
|
|
461
471
|
"object-position",
|
|
462
|
-
|
|
472
|
+
z39.strictObject({
|
|
463
473
|
x: unknownChildrenSchema,
|
|
464
474
|
y: unknownChildrenSchema
|
|
465
475
|
})
|
|
466
476
|
);
|
|
467
477
|
|
|
468
478
|
// src/prop-types/query.ts
|
|
469
|
-
import { z as
|
|
479
|
+
import { z as z40 } from "@elementor/schema";
|
|
470
480
|
var queryPropTypeUtil = createPropUtils(
|
|
471
481
|
"query",
|
|
472
|
-
|
|
482
|
+
z40.strictObject({
|
|
473
483
|
id: unknownChildrenSchema,
|
|
474
484
|
label: unknownChildrenSchema
|
|
475
485
|
})
|
|
476
486
|
);
|
|
477
487
|
|
|
478
488
|
// src/prop-types/query-filter.ts
|
|
479
|
-
import { z as
|
|
489
|
+
import { z as z41 } from "@elementor/schema";
|
|
480
490
|
var queryFilterPropTypeUtil = createPropUtils(
|
|
481
491
|
"query-filter",
|
|
482
|
-
|
|
492
|
+
z41.strictObject({
|
|
483
493
|
key: unknownChildrenSchema,
|
|
484
494
|
values: unknownChildrenSchema,
|
|
485
495
|
taxonomies: unknownChildrenSchema
|
|
@@ -491,41 +501,45 @@ var queryFilterArrayPropTypeUtil = createArrayPropUtils(
|
|
|
491
501
|
);
|
|
492
502
|
|
|
493
503
|
// src/prop-types/html.ts
|
|
494
|
-
import { z as
|
|
495
|
-
var htmlPropTypeUtil = createPropUtils("html",
|
|
504
|
+
import { z as z42 } from "@elementor/schema";
|
|
505
|
+
var htmlPropTypeUtil = createPropUtils("html", z42.string().nullable());
|
|
496
506
|
|
|
497
507
|
// src/prop-types/html-v2.ts
|
|
498
|
-
import { z as
|
|
499
|
-
var childElementSchema =
|
|
500
|
-
() =>
|
|
501
|
-
id:
|
|
502
|
-
type:
|
|
503
|
-
content:
|
|
504
|
-
children:
|
|
508
|
+
import { z as z43 } from "@elementor/schema";
|
|
509
|
+
var childElementSchema = z43.lazy(
|
|
510
|
+
() => z43.object({
|
|
511
|
+
id: z43.string(),
|
|
512
|
+
type: z43.string(),
|
|
513
|
+
content: z43.string().optional(),
|
|
514
|
+
children: z43.array(childElementSchema).optional()
|
|
505
515
|
})
|
|
506
516
|
);
|
|
507
|
-
var htmlV2ValueSchema =
|
|
508
|
-
content:
|
|
509
|
-
children:
|
|
517
|
+
var htmlV2ValueSchema = z43.object({
|
|
518
|
+
content: z43.string().nullable(),
|
|
519
|
+
children: z43.array(childElementSchema)
|
|
510
520
|
});
|
|
511
521
|
var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema);
|
|
512
522
|
|
|
513
523
|
// src/prop-types/html-v3.ts
|
|
514
|
-
import { z as
|
|
515
|
-
var htmlV3ValueSchema =
|
|
524
|
+
import { z as z44 } from "@elementor/schema";
|
|
525
|
+
var htmlV3ValueSchema = z44.object({
|
|
516
526
|
content: stringPropTypeUtil.schema.nullable(),
|
|
517
|
-
children:
|
|
527
|
+
children: z44.array(z44.unknown())
|
|
518
528
|
});
|
|
519
529
|
var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
|
|
520
530
|
|
|
531
|
+
// src/prop-types/escaped-html.ts
|
|
532
|
+
import { z as z45 } from "@elementor/schema";
|
|
533
|
+
var escapedHtmlPropTypeUtil = createPropUtils("escaped-html", z45.string().nullable());
|
|
534
|
+
|
|
521
535
|
// src/prop-types/filter-prop-types/filter.ts
|
|
522
|
-
import { z as
|
|
536
|
+
import { z as z51 } from "@elementor/schema";
|
|
523
537
|
|
|
524
538
|
// src/prop-types/filter-prop-types/drop-shadow-filter.ts
|
|
525
|
-
import { z as
|
|
539
|
+
import { z as z46 } from "@elementor/schema";
|
|
526
540
|
var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
527
541
|
"drop-shadow",
|
|
528
|
-
|
|
542
|
+
z46.object({
|
|
529
543
|
xAxis: unknownChildrenSchema,
|
|
530
544
|
yAxis: unknownChildrenSchema,
|
|
531
545
|
blur: unknownChildrenSchema,
|
|
@@ -534,37 +548,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
|
534
548
|
);
|
|
535
549
|
|
|
536
550
|
// src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
|
|
537
|
-
import { z as
|
|
551
|
+
import { z as z47 } from "@elementor/schema";
|
|
538
552
|
var blurFilterPropTypeUtil = createPropUtils(
|
|
539
553
|
"blur",
|
|
540
|
-
|
|
554
|
+
z47.strictObject({
|
|
541
555
|
size: unknownChildrenSchema
|
|
542
556
|
})
|
|
543
557
|
);
|
|
544
558
|
|
|
545
559
|
// src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
|
|
546
|
-
import { z as
|
|
560
|
+
import { z as z48 } from "@elementor/schema";
|
|
547
561
|
var colorToneFilterPropTypeUtil = createPropUtils(
|
|
548
562
|
"color-tone",
|
|
549
|
-
|
|
563
|
+
z48.strictObject({
|
|
550
564
|
size: unknownChildrenSchema
|
|
551
565
|
})
|
|
552
566
|
);
|
|
553
567
|
|
|
554
568
|
// src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
|
|
555
|
-
import { z as
|
|
569
|
+
import { z as z49 } from "@elementor/schema";
|
|
556
570
|
var hueRotateFilterPropTypeUtil = createPropUtils(
|
|
557
571
|
"hue-rotate",
|
|
558
|
-
|
|
572
|
+
z49.strictObject({
|
|
559
573
|
size: unknownChildrenSchema
|
|
560
574
|
})
|
|
561
575
|
);
|
|
562
576
|
|
|
563
577
|
// src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
|
|
564
|
-
import { z as
|
|
578
|
+
import { z as z50 } from "@elementor/schema";
|
|
565
579
|
var intensityFilterPropTypeUtil = createPropUtils(
|
|
566
580
|
"intensity",
|
|
567
|
-
|
|
581
|
+
z50.strictObject({
|
|
568
582
|
size: unknownChildrenSchema
|
|
569
583
|
})
|
|
570
584
|
);
|
|
@@ -572,9 +586,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
|
|
|
572
586
|
// src/prop-types/filter-prop-types/filter.ts
|
|
573
587
|
var cssFilterFunctionPropUtil = createPropUtils(
|
|
574
588
|
"css-filter-func",
|
|
575
|
-
|
|
589
|
+
z51.object({
|
|
576
590
|
func: stringPropTypeUtil.schema,
|
|
577
|
-
args:
|
|
591
|
+
args: z51.union([
|
|
578
592
|
blurFilterPropTypeUtil.schema,
|
|
579
593
|
intensityFilterPropTypeUtil.schema,
|
|
580
594
|
colorToneFilterPropTypeUtil.schema,
|
|
@@ -583,13 +597,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
583
597
|
])
|
|
584
598
|
})
|
|
585
599
|
);
|
|
586
|
-
var filterPropTypeUtil = createPropUtils("filter",
|
|
600
|
+
var filterPropTypeUtil = createPropUtils("filter", z51.array(cssFilterFunctionPropUtil.schema));
|
|
587
601
|
|
|
588
602
|
// src/prop-types/transform-prop-types/transform.ts
|
|
589
|
-
import { z as
|
|
603
|
+
import { z as z52 } from "@elementor/schema";
|
|
590
604
|
var transformPropTypeUtil = createPropUtils(
|
|
591
605
|
"transform",
|
|
592
|
-
|
|
606
|
+
z52.strictObject({
|
|
593
607
|
"transform-functions": unknownChildrenSchema,
|
|
594
608
|
"transform-origin": unknownChildrenSchema,
|
|
595
609
|
perspective: unknownChildrenSchema,
|
|
@@ -598,10 +612,10 @@ var transformPropTypeUtil = createPropUtils(
|
|
|
598
612
|
);
|
|
599
613
|
|
|
600
614
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
601
|
-
import { z as
|
|
615
|
+
import { z as z57 } from "@elementor/schema";
|
|
602
616
|
|
|
603
617
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
604
|
-
import { z as
|
|
618
|
+
import { z as z53 } from "@elementor/schema";
|
|
605
619
|
|
|
606
620
|
// src/prop-types/transform-prop-types/types.ts
|
|
607
621
|
var TransformFunctionKeys = {
|
|
@@ -614,7 +628,7 @@ var TransformFunctionKeys = {
|
|
|
614
628
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
615
629
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
616
630
|
TransformFunctionKeys.move,
|
|
617
|
-
|
|
631
|
+
z53.strictObject({
|
|
618
632
|
x: unknownChildrenSchema,
|
|
619
633
|
y: unknownChildrenSchema,
|
|
620
634
|
z: unknownChildrenSchema
|
|
@@ -622,10 +636,10 @@ var moveTransformPropTypeUtil = createPropUtils(
|
|
|
622
636
|
);
|
|
623
637
|
|
|
624
638
|
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
625
|
-
import { z as
|
|
639
|
+
import { z as z54 } from "@elementor/schema";
|
|
626
640
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
627
641
|
TransformFunctionKeys.rotate,
|
|
628
|
-
|
|
642
|
+
z54.strictObject({
|
|
629
643
|
x: unknownChildrenSchema,
|
|
630
644
|
y: unknownChildrenSchema,
|
|
631
645
|
z: unknownChildrenSchema
|
|
@@ -633,10 +647,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
|
|
|
633
647
|
);
|
|
634
648
|
|
|
635
649
|
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
636
|
-
import { z as
|
|
650
|
+
import { z as z55 } from "@elementor/schema";
|
|
637
651
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
638
652
|
TransformFunctionKeys.scale,
|
|
639
|
-
|
|
653
|
+
z55.strictObject({
|
|
640
654
|
x: numberPropTypeUtil.schema.nullable(),
|
|
641
655
|
y: numberPropTypeUtil.schema.nullable(),
|
|
642
656
|
z: numberPropTypeUtil.schema.nullable()
|
|
@@ -644,10 +658,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
|
|
|
644
658
|
);
|
|
645
659
|
|
|
646
660
|
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
647
|
-
import { z as
|
|
661
|
+
import { z as z56 } from "@elementor/schema";
|
|
648
662
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
649
663
|
TransformFunctionKeys.skew,
|
|
650
|
-
|
|
664
|
+
z56.strictObject({
|
|
651
665
|
x: unknownChildrenSchema,
|
|
652
666
|
y: unknownChildrenSchema
|
|
653
667
|
})
|
|
@@ -655,13 +669,13 @@ var skewTransformPropTypeUtil = createPropUtils(
|
|
|
655
669
|
|
|
656
670
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
657
671
|
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
658
|
-
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions",
|
|
672
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z57.array(filterTypes));
|
|
659
673
|
|
|
660
674
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
661
|
-
import { z as
|
|
675
|
+
import { z as z58 } from "@elementor/schema";
|
|
662
676
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
663
677
|
"transform-origin",
|
|
664
|
-
|
|
678
|
+
z58.strictObject({
|
|
665
679
|
x: unknownChildrenSchema,
|
|
666
680
|
y: unknownChildrenSchema,
|
|
667
681
|
z: unknownChildrenSchema
|
|
@@ -669,49 +683,49 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
669
683
|
);
|
|
670
684
|
|
|
671
685
|
// src/prop-types/transform-prop-types/perspective-origin.ts
|
|
672
|
-
import { z as
|
|
686
|
+
import { z as z59 } from "@elementor/schema";
|
|
673
687
|
var perspectiveOriginPropTypeUtil = createPropUtils(
|
|
674
688
|
"perspective-origin",
|
|
675
|
-
|
|
689
|
+
z59.strictObject({
|
|
676
690
|
x: unknownChildrenSchema,
|
|
677
691
|
y: unknownChildrenSchema
|
|
678
692
|
})
|
|
679
693
|
);
|
|
680
694
|
|
|
681
695
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
682
|
-
import { z as
|
|
696
|
+
import { z as z60 } from "@elementor/schema";
|
|
683
697
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
684
698
|
"backdrop-filter",
|
|
685
|
-
|
|
699
|
+
z60.array(cssFilterFunctionPropUtil.schema)
|
|
686
700
|
);
|
|
687
701
|
|
|
688
702
|
// src/prop-types/date-range.ts
|
|
689
|
-
import { z as
|
|
703
|
+
import { z as z61 } from "@elementor/schema";
|
|
690
704
|
var dateRangePropTypeUtil = createPropUtils(
|
|
691
705
|
"date-range",
|
|
692
|
-
|
|
706
|
+
z61.strictObject({
|
|
693
707
|
min: unknownChildrenSchema,
|
|
694
708
|
max: unknownChildrenSchema
|
|
695
709
|
})
|
|
696
710
|
);
|
|
697
711
|
|
|
698
712
|
// src/prop-types/date-string.ts
|
|
699
|
-
import { z as
|
|
700
|
-
var dateStringPropTypeUtil = createPropUtils("date-string",
|
|
713
|
+
import { z as z62 } from "@elementor/schema";
|
|
714
|
+
var dateStringPropTypeUtil = createPropUtils("date-string", z62.string());
|
|
701
715
|
|
|
702
716
|
// src/prop-types/time-range.ts
|
|
703
|
-
import { z as
|
|
717
|
+
import { z as z63 } from "@elementor/schema";
|
|
704
718
|
var timeRangePropTypeUtil = createPropUtils(
|
|
705
719
|
"time-range",
|
|
706
|
-
|
|
720
|
+
z63.strictObject({
|
|
707
721
|
min: unknownChildrenSchema,
|
|
708
722
|
max: unknownChildrenSchema
|
|
709
723
|
})
|
|
710
724
|
);
|
|
711
725
|
|
|
712
726
|
// src/prop-types/time-string.ts
|
|
713
|
-
import { z as
|
|
714
|
-
var timeStringPropTypeUtil = createPropUtils("time-string",
|
|
727
|
+
import { z as z64 } from "@elementor/schema";
|
|
728
|
+
var timeStringPropTypeUtil = createPropUtils("time-string", z64.string());
|
|
715
729
|
|
|
716
730
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
717
731
|
var ensureNotNull = (v, fallback) => v === null ? fallback : v;
|
|
@@ -1178,11 +1192,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1178
1192
|
};
|
|
1179
1193
|
|
|
1180
1194
|
// src/utils/is-transformable.ts
|
|
1181
|
-
import { z as
|
|
1182
|
-
var transformableSchema =
|
|
1183
|
-
$$type:
|
|
1184
|
-
value:
|
|
1185
|
-
disabled:
|
|
1195
|
+
import { z as z65 } from "@elementor/schema";
|
|
1196
|
+
var transformableSchema = z65.object({
|
|
1197
|
+
$$type: z65.string(),
|
|
1198
|
+
value: z65.any(),
|
|
1199
|
+
disabled: z65.boolean().optional()
|
|
1186
1200
|
});
|
|
1187
1201
|
var isTransformable = (value) => {
|
|
1188
1202
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1450,6 +1464,7 @@ export {
|
|
|
1450
1464
|
dropShadowFilterPropTypeUtil,
|
|
1451
1465
|
emailPropTypeUtil,
|
|
1452
1466
|
emailsPropTypeUtil,
|
|
1467
|
+
escapedHtmlPropTypeUtil,
|
|
1453
1468
|
evaluateTerm,
|
|
1454
1469
|
extractValue,
|
|
1455
1470
|
filterEmptyValues,
|
|
@@ -1463,6 +1478,7 @@ export {
|
|
|
1463
1478
|
htmlV2PropTypeUtil,
|
|
1464
1479
|
htmlV3PropTypeUtil,
|
|
1465
1480
|
hueRotateFilterPropTypeUtil,
|
|
1481
|
+
iconPropTypeUtil,
|
|
1466
1482
|
imageAttachmentIdPropType,
|
|
1467
1483
|
imagePropTypeUtil,
|
|
1468
1484
|
imageSrcPropTypeUtil,
|