@elementor/editor-props 4.2.0-878 → 4.2.0-879
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 +104 -1
- package/dist/index.d.ts +104 -1
- package/dist/index.js +120 -103
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +119 -103
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/prop-types/grid-track-size.ts +20 -0
- package/src/prop-types/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -240,46 +240,61 @@ var sizePropTypeUtil = createPropUtils(
|
|
|
240
240
|
)
|
|
241
241
|
);
|
|
242
242
|
|
|
243
|
-
// src/prop-types/
|
|
243
|
+
// src/prop-types/grid-track-size.ts
|
|
244
244
|
import { z as z19 } from "@elementor/schema";
|
|
245
|
-
var
|
|
245
|
+
var gridTrackSizePropTypeUtil = createPropUtils(
|
|
246
|
+
"grid-track-size",
|
|
247
|
+
z19.strictObject({
|
|
248
|
+
unit: z19.literal("fr"),
|
|
249
|
+
size: z19.union([z19.number(), z19.literal("")])
|
|
250
|
+
}).or(
|
|
251
|
+
z19.strictObject({
|
|
252
|
+
unit: z19.literal("custom"),
|
|
253
|
+
size: z19.string()
|
|
254
|
+
})
|
|
255
|
+
)
|
|
256
|
+
);
|
|
246
257
|
|
|
247
|
-
// src/prop-types/
|
|
258
|
+
// src/prop-types/span.ts
|
|
248
259
|
import { z as z20 } from "@elementor/schema";
|
|
249
|
-
var
|
|
260
|
+
var spanPropTypeUtil = createPropUtils("span", z20.string().nullable());
|
|
261
|
+
|
|
262
|
+
// src/prop-types/string.ts
|
|
263
|
+
import { z as z21 } from "@elementor/schema";
|
|
264
|
+
var stringPropTypeUtil = createPropUtils("string", z21.string().nullable());
|
|
250
265
|
|
|
251
266
|
// src/prop-types/string-array.ts
|
|
252
267
|
var stringArrayPropTypeUtil = createArrayPropUtils(stringPropTypeUtil.key, stringPropTypeUtil.schema);
|
|
253
268
|
|
|
254
269
|
// src/prop-types/stroke.ts
|
|
255
|
-
import { z as
|
|
270
|
+
import { z as z22 } from "@elementor/schema";
|
|
256
271
|
var strokePropTypeUtil = createPropUtils(
|
|
257
272
|
"stroke",
|
|
258
|
-
|
|
273
|
+
z22.strictObject({
|
|
259
274
|
color: unknownChildrenSchema,
|
|
260
275
|
width: unknownChildrenSchema
|
|
261
276
|
})
|
|
262
277
|
);
|
|
263
278
|
|
|
264
279
|
// src/prop-types/url.ts
|
|
265
|
-
import { z as
|
|
266
|
-
var urlPropTypeUtil = createPropUtils("url",
|
|
280
|
+
import { z as z23 } from "@elementor/schema";
|
|
281
|
+
var urlPropTypeUtil = createPropUtils("url", z23.string().nullable());
|
|
267
282
|
|
|
268
283
|
// src/prop-types/layout-direction.ts
|
|
269
|
-
import { z as
|
|
284
|
+
import { z as z24 } from "@elementor/schema";
|
|
270
285
|
var layoutDirectionPropTypeUtil = createPropUtils(
|
|
271
286
|
"layout-direction",
|
|
272
|
-
|
|
273
|
-
row:
|
|
274
|
-
column:
|
|
287
|
+
z24.object({
|
|
288
|
+
row: z24.any(),
|
|
289
|
+
column: z24.any()
|
|
275
290
|
})
|
|
276
291
|
);
|
|
277
292
|
|
|
278
293
|
// src/prop-types/link.ts
|
|
279
|
-
import { z as
|
|
294
|
+
import { z as z25 } from "@elementor/schema";
|
|
280
295
|
var linkPropTypeUtil = createPropUtils(
|
|
281
296
|
"link",
|
|
282
|
-
|
|
297
|
+
z25.strictObject({
|
|
283
298
|
destination: unknownChildrenSchema,
|
|
284
299
|
isTargetBlank: unknownChildrenSchema,
|
|
285
300
|
tag: unknownChildrenSchema
|
|
@@ -287,10 +302,10 @@ var linkPropTypeUtil = createPropUtils(
|
|
|
287
302
|
);
|
|
288
303
|
|
|
289
304
|
// src/prop-types/email.ts
|
|
290
|
-
import { z as
|
|
305
|
+
import { z as z26 } from "@elementor/schema";
|
|
291
306
|
var emailPropTypeUtil = createPropUtils(
|
|
292
307
|
"email",
|
|
293
|
-
|
|
308
|
+
z26.strictObject({
|
|
294
309
|
to: unknownChildrenSchema,
|
|
295
310
|
subject: unknownChildrenSchema,
|
|
296
311
|
message: unknownChildrenSchema,
|
|
@@ -305,10 +320,10 @@ var emailPropTypeUtil = createPropUtils(
|
|
|
305
320
|
);
|
|
306
321
|
|
|
307
322
|
// src/prop-types/emails.ts
|
|
308
|
-
import { z as
|
|
323
|
+
import { z as z27 } from "@elementor/schema";
|
|
309
324
|
var emailsPropTypeUtil = createPropUtils(
|
|
310
325
|
"emails",
|
|
311
|
-
|
|
326
|
+
z27.strictObject({
|
|
312
327
|
to: unknownChildrenSchema,
|
|
313
328
|
subject: unknownChildrenSchema,
|
|
314
329
|
message: unknownChildrenSchema,
|
|
@@ -323,13 +338,13 @@ var emailsPropTypeUtil = createPropUtils(
|
|
|
323
338
|
);
|
|
324
339
|
|
|
325
340
|
// src/prop-types/selection-size.ts
|
|
326
|
-
import { z as
|
|
341
|
+
import { z as z29 } from "@elementor/schema";
|
|
327
342
|
|
|
328
343
|
// src/prop-types/key-value.ts
|
|
329
|
-
import { z as
|
|
344
|
+
import { z as z28 } from "@elementor/schema";
|
|
330
345
|
var keyValuePropTypeUtil = createPropUtils(
|
|
331
346
|
"key-value",
|
|
332
|
-
|
|
347
|
+
z28.strictObject({
|
|
333
348
|
key: unknownChildrenSchema,
|
|
334
349
|
value: unknownChildrenSchema
|
|
335
350
|
})
|
|
@@ -338,17 +353,17 @@ var keyValuePropTypeUtil = createPropUtils(
|
|
|
338
353
|
// src/prop-types/selection-size.ts
|
|
339
354
|
var selectionSizePropTypeUtil = createPropUtils(
|
|
340
355
|
"selection-size",
|
|
341
|
-
|
|
342
|
-
selection:
|
|
356
|
+
z29.strictObject({
|
|
357
|
+
selection: z29.union([keyValuePropTypeUtil.schema, stringPropTypeUtil.schema]),
|
|
343
358
|
size: unknownChildrenSchema
|
|
344
359
|
})
|
|
345
360
|
);
|
|
346
361
|
|
|
347
362
|
// src/prop-types/background-prop-types/background.ts
|
|
348
|
-
import { z as
|
|
363
|
+
import { z as z30 } from "@elementor/schema";
|
|
349
364
|
var backgroundPropTypeUtil = createPropUtils(
|
|
350
365
|
"background",
|
|
351
|
-
|
|
366
|
+
z30.strictObject({
|
|
352
367
|
color: unknownChildrenSchema,
|
|
353
368
|
clip: unknownChildrenSchema,
|
|
354
369
|
"background-overlay": unknownChildrenSchema
|
|
@@ -356,7 +371,7 @@ var backgroundPropTypeUtil = createPropUtils(
|
|
|
356
371
|
);
|
|
357
372
|
|
|
358
373
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
359
|
-
import { z as
|
|
374
|
+
import { z as z31 } from "@elementor/schema";
|
|
360
375
|
|
|
361
376
|
// src/prop-types/background-prop-types/background-color-overlay.ts
|
|
362
377
|
var backgroundColorOverlayPropTypeUtil = createPropUtils("background-color-overlay", unknownChildrenSchema);
|
|
@@ -372,7 +387,7 @@ var backgroundImageOverlayPropTypeUtil = createPropUtils("background-image-overl
|
|
|
372
387
|
|
|
373
388
|
// src/prop-types/background-prop-types/background-overlay.ts
|
|
374
389
|
var backgroundOverlayItem = backgroundColorOverlayPropTypeUtil.schema.or(backgroundGradientOverlayPropTypeUtil.schema).or(backgroundImageOverlayPropTypeUtil.schema);
|
|
375
|
-
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay",
|
|
390
|
+
var backgroundOverlayPropTypeUtil = createPropUtils("background-overlay", z31.array(backgroundOverlayItem));
|
|
376
391
|
|
|
377
392
|
// src/prop-types/background-prop-types/background-image-position-offset.ts
|
|
378
393
|
var backgroundImagePositionOffsetPropTypeUtil = createPropUtils(
|
|
@@ -387,71 +402,71 @@ var backgroundImageSizeScalePropTypeUtil = createPropUtils(
|
|
|
387
402
|
);
|
|
388
403
|
|
|
389
404
|
// src/prop-types/boolean.ts
|
|
390
|
-
import { z as
|
|
391
|
-
var booleanPropTypeUtil = createPropUtils("boolean",
|
|
405
|
+
import { z as z32 } from "@elementor/schema";
|
|
406
|
+
var booleanPropTypeUtil = createPropUtils("boolean", z32.boolean().nullable());
|
|
392
407
|
|
|
393
408
|
// src/prop-types/color-stop.ts
|
|
394
|
-
import { z as
|
|
409
|
+
import { z as z33 } from "@elementor/schema";
|
|
395
410
|
var colorStopPropTypeUtil = createPropUtils(
|
|
396
411
|
"color-stop",
|
|
397
|
-
|
|
412
|
+
z33.strictObject({
|
|
398
413
|
color: unknownChildrenSchema,
|
|
399
414
|
offset: unknownChildrenSchema
|
|
400
415
|
})
|
|
401
416
|
);
|
|
402
417
|
|
|
403
418
|
// src/prop-types/gradient-color-stop.ts
|
|
404
|
-
import { z as
|
|
419
|
+
import { z as z34 } from "@elementor/schema";
|
|
405
420
|
var gradientColorStopPropTypeUtil = createPropUtils(
|
|
406
421
|
"gradient-color-stop",
|
|
407
|
-
|
|
422
|
+
z34.array(colorStopPropTypeUtil.schema)
|
|
408
423
|
);
|
|
409
424
|
|
|
410
425
|
// src/prop-types/number-range.ts
|
|
411
|
-
import { z as
|
|
426
|
+
import { z as z35 } from "@elementor/schema";
|
|
412
427
|
var numberRangePropTypeUtil = createPropUtils(
|
|
413
428
|
"number-range",
|
|
414
|
-
|
|
429
|
+
z35.strictObject({
|
|
415
430
|
min: unknownChildrenSchema,
|
|
416
431
|
max: unknownChildrenSchema
|
|
417
432
|
})
|
|
418
433
|
);
|
|
419
434
|
|
|
420
435
|
// src/prop-types/date-time.ts
|
|
421
|
-
import { z as
|
|
436
|
+
import { z as z36 } from "@elementor/schema";
|
|
422
437
|
var DateTimePropTypeUtil = createPropUtils(
|
|
423
438
|
"date-time",
|
|
424
|
-
|
|
439
|
+
z36.strictObject({
|
|
425
440
|
date: unknownChildrenSchema,
|
|
426
441
|
time: unknownChildrenSchema
|
|
427
442
|
})
|
|
428
443
|
);
|
|
429
444
|
|
|
430
445
|
// src/prop-types/position.ts
|
|
431
|
-
import { z as
|
|
446
|
+
import { z as z37 } from "@elementor/schema";
|
|
432
447
|
var positionPropTypeUtil = createPropUtils(
|
|
433
448
|
"object-position",
|
|
434
|
-
|
|
449
|
+
z37.strictObject({
|
|
435
450
|
x: unknownChildrenSchema,
|
|
436
451
|
y: unknownChildrenSchema
|
|
437
452
|
})
|
|
438
453
|
);
|
|
439
454
|
|
|
440
455
|
// src/prop-types/query.ts
|
|
441
|
-
import { z as
|
|
456
|
+
import { z as z38 } from "@elementor/schema";
|
|
442
457
|
var queryPropTypeUtil = createPropUtils(
|
|
443
458
|
"query",
|
|
444
|
-
|
|
459
|
+
z38.strictObject({
|
|
445
460
|
id: unknownChildrenSchema,
|
|
446
461
|
label: unknownChildrenSchema
|
|
447
462
|
})
|
|
448
463
|
);
|
|
449
464
|
|
|
450
465
|
// src/prop-types/query-filter.ts
|
|
451
|
-
import { z as
|
|
466
|
+
import { z as z39 } from "@elementor/schema";
|
|
452
467
|
var queryFilterPropTypeUtil = createPropUtils(
|
|
453
468
|
"query-filter",
|
|
454
|
-
|
|
469
|
+
z39.strictObject({
|
|
455
470
|
key: unknownChildrenSchema,
|
|
456
471
|
values: unknownChildrenSchema,
|
|
457
472
|
taxonomies: unknownChildrenSchema
|
|
@@ -463,41 +478,41 @@ var queryFilterArrayPropTypeUtil = createArrayPropUtils(
|
|
|
463
478
|
);
|
|
464
479
|
|
|
465
480
|
// src/prop-types/html.ts
|
|
466
|
-
import { z as
|
|
467
|
-
var htmlPropTypeUtil = createPropUtils("html",
|
|
481
|
+
import { z as z40 } from "@elementor/schema";
|
|
482
|
+
var htmlPropTypeUtil = createPropUtils("html", z40.string().nullable());
|
|
468
483
|
|
|
469
484
|
// src/prop-types/html-v2.ts
|
|
470
|
-
import { z as
|
|
471
|
-
var childElementSchema =
|
|
472
|
-
() =>
|
|
473
|
-
id:
|
|
474
|
-
type:
|
|
475
|
-
content:
|
|
476
|
-
children:
|
|
485
|
+
import { z as z41 } from "@elementor/schema";
|
|
486
|
+
var childElementSchema = z41.lazy(
|
|
487
|
+
() => z41.object({
|
|
488
|
+
id: z41.string(),
|
|
489
|
+
type: z41.string(),
|
|
490
|
+
content: z41.string().optional(),
|
|
491
|
+
children: z41.array(childElementSchema).optional()
|
|
477
492
|
})
|
|
478
493
|
);
|
|
479
|
-
var htmlV2ValueSchema =
|
|
480
|
-
content:
|
|
481
|
-
children:
|
|
494
|
+
var htmlV2ValueSchema = z41.object({
|
|
495
|
+
content: z41.string().nullable(),
|
|
496
|
+
children: z41.array(childElementSchema)
|
|
482
497
|
});
|
|
483
498
|
var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema);
|
|
484
499
|
|
|
485
500
|
// src/prop-types/html-v3.ts
|
|
486
|
-
import { z as
|
|
487
|
-
var htmlV3ValueSchema =
|
|
501
|
+
import { z as z42 } from "@elementor/schema";
|
|
502
|
+
var htmlV3ValueSchema = z42.object({
|
|
488
503
|
content: stringPropTypeUtil.schema.nullable(),
|
|
489
|
-
children:
|
|
504
|
+
children: z42.array(z42.unknown())
|
|
490
505
|
});
|
|
491
506
|
var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
|
|
492
507
|
|
|
493
508
|
// src/prop-types/filter-prop-types/filter.ts
|
|
494
|
-
import { z as
|
|
509
|
+
import { z as z48 } from "@elementor/schema";
|
|
495
510
|
|
|
496
511
|
// src/prop-types/filter-prop-types/drop-shadow-filter.ts
|
|
497
|
-
import { z as
|
|
512
|
+
import { z as z43 } from "@elementor/schema";
|
|
498
513
|
var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
499
514
|
"drop-shadow",
|
|
500
|
-
|
|
515
|
+
z43.object({
|
|
501
516
|
xAxis: unknownChildrenSchema,
|
|
502
517
|
yAxis: unknownChildrenSchema,
|
|
503
518
|
blur: unknownChildrenSchema,
|
|
@@ -506,37 +521,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
|
|
|
506
521
|
);
|
|
507
522
|
|
|
508
523
|
// src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
|
|
509
|
-
import { z as
|
|
524
|
+
import { z as z44 } from "@elementor/schema";
|
|
510
525
|
var blurFilterPropTypeUtil = createPropUtils(
|
|
511
526
|
"blur",
|
|
512
|
-
|
|
527
|
+
z44.strictObject({
|
|
513
528
|
size: unknownChildrenSchema
|
|
514
529
|
})
|
|
515
530
|
);
|
|
516
531
|
|
|
517
532
|
// src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
|
|
518
|
-
import { z as
|
|
533
|
+
import { z as z45 } from "@elementor/schema";
|
|
519
534
|
var colorToneFilterPropTypeUtil = createPropUtils(
|
|
520
535
|
"color-tone",
|
|
521
|
-
|
|
536
|
+
z45.strictObject({
|
|
522
537
|
size: unknownChildrenSchema
|
|
523
538
|
})
|
|
524
539
|
);
|
|
525
540
|
|
|
526
541
|
// src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
|
|
527
|
-
import { z as
|
|
542
|
+
import { z as z46 } from "@elementor/schema";
|
|
528
543
|
var hueRotateFilterPropTypeUtil = createPropUtils(
|
|
529
544
|
"hue-rotate",
|
|
530
|
-
|
|
545
|
+
z46.strictObject({
|
|
531
546
|
size: unknownChildrenSchema
|
|
532
547
|
})
|
|
533
548
|
);
|
|
534
549
|
|
|
535
550
|
// src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
|
|
536
|
-
import { z as
|
|
551
|
+
import { z as z47 } from "@elementor/schema";
|
|
537
552
|
var intensityFilterPropTypeUtil = createPropUtils(
|
|
538
553
|
"intensity",
|
|
539
|
-
|
|
554
|
+
z47.strictObject({
|
|
540
555
|
size: unknownChildrenSchema
|
|
541
556
|
})
|
|
542
557
|
);
|
|
@@ -544,9 +559,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
|
|
|
544
559
|
// src/prop-types/filter-prop-types/filter.ts
|
|
545
560
|
var cssFilterFunctionPropUtil = createPropUtils(
|
|
546
561
|
"css-filter-func",
|
|
547
|
-
|
|
562
|
+
z48.object({
|
|
548
563
|
func: stringPropTypeUtil.schema,
|
|
549
|
-
args:
|
|
564
|
+
args: z48.union([
|
|
550
565
|
blurFilterPropTypeUtil.schema,
|
|
551
566
|
intensityFilterPropTypeUtil.schema,
|
|
552
567
|
colorToneFilterPropTypeUtil.schema,
|
|
@@ -555,13 +570,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
|
|
|
555
570
|
])
|
|
556
571
|
})
|
|
557
572
|
);
|
|
558
|
-
var filterPropTypeUtil = createPropUtils("filter",
|
|
573
|
+
var filterPropTypeUtil = createPropUtils("filter", z48.array(cssFilterFunctionPropUtil.schema));
|
|
559
574
|
|
|
560
575
|
// src/prop-types/transform-prop-types/transform.ts
|
|
561
|
-
import { z as
|
|
576
|
+
import { z as z49 } from "@elementor/schema";
|
|
562
577
|
var transformPropTypeUtil = createPropUtils(
|
|
563
578
|
"transform",
|
|
564
|
-
|
|
579
|
+
z49.strictObject({
|
|
565
580
|
"transform-functions": unknownChildrenSchema,
|
|
566
581
|
"transform-origin": unknownChildrenSchema,
|
|
567
582
|
perspective: unknownChildrenSchema,
|
|
@@ -570,10 +585,10 @@ var transformPropTypeUtil = createPropUtils(
|
|
|
570
585
|
);
|
|
571
586
|
|
|
572
587
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
573
|
-
import { z as
|
|
588
|
+
import { z as z54 } from "@elementor/schema";
|
|
574
589
|
|
|
575
590
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
576
|
-
import { z as
|
|
591
|
+
import { z as z50 } from "@elementor/schema";
|
|
577
592
|
|
|
578
593
|
// src/prop-types/transform-prop-types/types.ts
|
|
579
594
|
var TransformFunctionKeys = {
|
|
@@ -586,7 +601,7 @@ var TransformFunctionKeys = {
|
|
|
586
601
|
// src/prop-types/transform-prop-types/transform-functions/move-transform.ts
|
|
587
602
|
var moveTransformPropTypeUtil = createPropUtils(
|
|
588
603
|
TransformFunctionKeys.move,
|
|
589
|
-
|
|
604
|
+
z50.strictObject({
|
|
590
605
|
x: unknownChildrenSchema,
|
|
591
606
|
y: unknownChildrenSchema,
|
|
592
607
|
z: unknownChildrenSchema
|
|
@@ -594,10 +609,10 @@ var moveTransformPropTypeUtil = createPropUtils(
|
|
|
594
609
|
);
|
|
595
610
|
|
|
596
611
|
// src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
|
|
597
|
-
import { z as
|
|
612
|
+
import { z as z51 } from "@elementor/schema";
|
|
598
613
|
var rotateTransformPropTypeUtil = createPropUtils(
|
|
599
614
|
TransformFunctionKeys.rotate,
|
|
600
|
-
|
|
615
|
+
z51.strictObject({
|
|
601
616
|
x: unknownChildrenSchema,
|
|
602
617
|
y: unknownChildrenSchema,
|
|
603
618
|
z: unknownChildrenSchema
|
|
@@ -605,10 +620,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
|
|
|
605
620
|
);
|
|
606
621
|
|
|
607
622
|
// src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
|
|
608
|
-
import { z as
|
|
623
|
+
import { z as z52 } from "@elementor/schema";
|
|
609
624
|
var scaleTransformPropTypeUtil = createPropUtils(
|
|
610
625
|
TransformFunctionKeys.scale,
|
|
611
|
-
|
|
626
|
+
z52.strictObject({
|
|
612
627
|
x: numberPropTypeUtil.schema.nullable(),
|
|
613
628
|
y: numberPropTypeUtil.schema.nullable(),
|
|
614
629
|
z: numberPropTypeUtil.schema.nullable()
|
|
@@ -616,10 +631,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
|
|
|
616
631
|
);
|
|
617
632
|
|
|
618
633
|
// src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
|
|
619
|
-
import { z as
|
|
634
|
+
import { z as z53 } from "@elementor/schema";
|
|
620
635
|
var skewTransformPropTypeUtil = createPropUtils(
|
|
621
636
|
TransformFunctionKeys.skew,
|
|
622
|
-
|
|
637
|
+
z53.strictObject({
|
|
623
638
|
x: unknownChildrenSchema,
|
|
624
639
|
y: unknownChildrenSchema
|
|
625
640
|
})
|
|
@@ -627,13 +642,13 @@ var skewTransformPropTypeUtil = createPropUtils(
|
|
|
627
642
|
|
|
628
643
|
// src/prop-types/transform-prop-types/transform-functions.ts
|
|
629
644
|
var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
|
|
630
|
-
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions",
|
|
645
|
+
var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z54.array(filterTypes));
|
|
631
646
|
|
|
632
647
|
// src/prop-types/transform-prop-types/transform-origin.ts
|
|
633
|
-
import { z as
|
|
648
|
+
import { z as z55 } from "@elementor/schema";
|
|
634
649
|
var transformOriginPropTypeUtil = createPropUtils(
|
|
635
650
|
"transform-origin",
|
|
636
|
-
|
|
651
|
+
z55.strictObject({
|
|
637
652
|
x: unknownChildrenSchema,
|
|
638
653
|
y: unknownChildrenSchema,
|
|
639
654
|
z: unknownChildrenSchema
|
|
@@ -641,49 +656,49 @@ var transformOriginPropTypeUtil = createPropUtils(
|
|
|
641
656
|
);
|
|
642
657
|
|
|
643
658
|
// src/prop-types/transform-prop-types/perspective-origin.ts
|
|
644
|
-
import { z as
|
|
659
|
+
import { z as z56 } from "@elementor/schema";
|
|
645
660
|
var perspectiveOriginPropTypeUtil = createPropUtils(
|
|
646
661
|
"perspective-origin",
|
|
647
|
-
|
|
662
|
+
z56.strictObject({
|
|
648
663
|
x: unknownChildrenSchema,
|
|
649
664
|
y: unknownChildrenSchema
|
|
650
665
|
})
|
|
651
666
|
);
|
|
652
667
|
|
|
653
668
|
// src/prop-types/filter-prop-types/backdrop-filter.ts
|
|
654
|
-
import { z as
|
|
669
|
+
import { z as z57 } from "@elementor/schema";
|
|
655
670
|
var backdropFilterPropTypeUtil = createPropUtils(
|
|
656
671
|
"backdrop-filter",
|
|
657
|
-
|
|
672
|
+
z57.array(cssFilterFunctionPropUtil.schema)
|
|
658
673
|
);
|
|
659
674
|
|
|
660
675
|
// src/prop-types/date-range.ts
|
|
661
|
-
import { z as
|
|
676
|
+
import { z as z58 } from "@elementor/schema";
|
|
662
677
|
var dateRangePropTypeUtil = createPropUtils(
|
|
663
678
|
"date-range",
|
|
664
|
-
|
|
679
|
+
z58.strictObject({
|
|
665
680
|
min: unknownChildrenSchema,
|
|
666
681
|
max: unknownChildrenSchema
|
|
667
682
|
})
|
|
668
683
|
);
|
|
669
684
|
|
|
670
685
|
// src/prop-types/date-string.ts
|
|
671
|
-
import { z as
|
|
672
|
-
var dateStringPropTypeUtil = createPropUtils("date-string",
|
|
686
|
+
import { z as z59 } from "@elementor/schema";
|
|
687
|
+
var dateStringPropTypeUtil = createPropUtils("date-string", z59.string());
|
|
673
688
|
|
|
674
689
|
// src/prop-types/time-range.ts
|
|
675
|
-
import { z as
|
|
690
|
+
import { z as z60 } from "@elementor/schema";
|
|
676
691
|
var timeRangePropTypeUtil = createPropUtils(
|
|
677
692
|
"time-range",
|
|
678
|
-
|
|
693
|
+
z60.strictObject({
|
|
679
694
|
min: unknownChildrenSchema,
|
|
680
695
|
max: unknownChildrenSchema
|
|
681
696
|
})
|
|
682
697
|
);
|
|
683
698
|
|
|
684
699
|
// src/prop-types/time-string.ts
|
|
685
|
-
import { z as
|
|
686
|
-
var timeStringPropTypeUtil = createPropUtils("time-string",
|
|
700
|
+
import { z as z61 } from "@elementor/schema";
|
|
701
|
+
var timeStringPropTypeUtil = createPropUtils("time-string", z61.string());
|
|
687
702
|
|
|
688
703
|
// src/utils/adjust-llm-prop-value-schema.ts
|
|
689
704
|
var ensureNotNull = (v, fallback) => v === null ? fallback : v;
|
|
@@ -1110,11 +1125,11 @@ var validatePropValue = (schema, value) => {
|
|
|
1110
1125
|
};
|
|
1111
1126
|
|
|
1112
1127
|
// src/utils/is-transformable.ts
|
|
1113
|
-
import { z as
|
|
1114
|
-
var transformableSchema =
|
|
1115
|
-
$$type:
|
|
1116
|
-
value:
|
|
1117
|
-
disabled:
|
|
1128
|
+
import { z as z62 } from "@elementor/schema";
|
|
1129
|
+
var transformableSchema = z62.object({
|
|
1130
|
+
$$type: z62.string(),
|
|
1131
|
+
value: z62.any(),
|
|
1132
|
+
disabled: z62.boolean().optional()
|
|
1118
1133
|
});
|
|
1119
1134
|
var isTransformable = (value) => {
|
|
1120
1135
|
return transformableSchema.safeParse(value).success;
|
|
@@ -1388,6 +1403,7 @@ export {
|
|
|
1388
1403
|
flexPropTypeUtil,
|
|
1389
1404
|
getPropSchemaFromCache,
|
|
1390
1405
|
gradientColorStopPropTypeUtil,
|
|
1406
|
+
gridTrackSizePropTypeUtil,
|
|
1391
1407
|
htmlPropTypeUtil,
|
|
1392
1408
|
htmlV2PropTypeUtil,
|
|
1393
1409
|
htmlV3PropTypeUtil,
|