@elementor/editor-props 4.2.0-855 → 4.2.0-857

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.mjs CHANGED
@@ -429,42 +429,56 @@ var queryPropTypeUtil = createPropUtils(
429
429
  })
430
430
  );
431
431
 
432
- // src/prop-types/html.ts
432
+ // src/prop-types/query-filter.ts
433
433
  import { z as z37 } from "@elementor/schema";
434
- var htmlPropTypeUtil = createPropUtils("html", z37.string().nullable());
434
+ var queryFilterPropTypeUtil = createPropUtils(
435
+ "query-filter",
436
+ z37.strictObject({
437
+ key: unknownChildrenSchema,
438
+ values: unknownChildrenSchema
439
+ })
440
+ );
441
+ var queryFilterArrayPropTypeUtil = createArrayPropUtils(
442
+ queryFilterPropTypeUtil.key,
443
+ queryFilterPropTypeUtil.schema
444
+ );
435
445
 
436
- // src/prop-types/html-v2.ts
446
+ // src/prop-types/html.ts
437
447
  import { z as z38 } from "@elementor/schema";
438
- var childElementSchema = z38.lazy(
439
- () => z38.object({
440
- id: z38.string(),
441
- type: z38.string(),
442
- content: z38.string().optional(),
443
- children: z38.array(childElementSchema).optional()
448
+ var htmlPropTypeUtil = createPropUtils("html", z38.string().nullable());
449
+
450
+ // src/prop-types/html-v2.ts
451
+ import { z as z39 } from "@elementor/schema";
452
+ var childElementSchema = z39.lazy(
453
+ () => z39.object({
454
+ id: z39.string(),
455
+ type: z39.string(),
456
+ content: z39.string().optional(),
457
+ children: z39.array(childElementSchema).optional()
444
458
  })
445
459
  );
446
- var htmlV2ValueSchema = z38.object({
447
- content: z38.string().nullable(),
448
- children: z38.array(childElementSchema)
460
+ var htmlV2ValueSchema = z39.object({
461
+ content: z39.string().nullable(),
462
+ children: z39.array(childElementSchema)
449
463
  });
450
464
  var htmlV2PropTypeUtil = createPropUtils("html-v2", htmlV2ValueSchema);
451
465
 
452
466
  // src/prop-types/html-v3.ts
453
- import { z as z39 } from "@elementor/schema";
454
- var htmlV3ValueSchema = z39.object({
467
+ import { z as z40 } from "@elementor/schema";
468
+ var htmlV3ValueSchema = z40.object({
455
469
  content: stringPropTypeUtil.schema.nullable(),
456
- children: z39.array(z39.unknown())
470
+ children: z40.array(z40.unknown())
457
471
  });
458
472
  var htmlV3PropTypeUtil = createPropUtils("html-v3", htmlV3ValueSchema);
459
473
 
460
474
  // src/prop-types/filter-prop-types/filter.ts
461
- import { z as z45 } from "@elementor/schema";
475
+ import { z as z46 } from "@elementor/schema";
462
476
 
463
477
  // src/prop-types/filter-prop-types/drop-shadow-filter.ts
464
- import { z as z40 } from "@elementor/schema";
478
+ import { z as z41 } from "@elementor/schema";
465
479
  var dropShadowFilterPropTypeUtil = createPropUtils(
466
480
  "drop-shadow",
467
- z40.object({
481
+ z41.object({
468
482
  xAxis: unknownChildrenSchema,
469
483
  yAxis: unknownChildrenSchema,
470
484
  blur: unknownChildrenSchema,
@@ -473,37 +487,37 @@ var dropShadowFilterPropTypeUtil = createPropUtils(
473
487
  );
474
488
 
475
489
  // src/prop-types/filter-prop-types/filter-functions/blur-filter.ts
476
- import { z as z41 } from "@elementor/schema";
490
+ import { z as z42 } from "@elementor/schema";
477
491
  var blurFilterPropTypeUtil = createPropUtils(
478
492
  "blur",
479
- z41.strictObject({
493
+ z42.strictObject({
480
494
  size: unknownChildrenSchema
481
495
  })
482
496
  );
483
497
 
484
498
  // src/prop-types/filter-prop-types/filter-functions/color-tone-filter.ts
485
- import { z as z42 } from "@elementor/schema";
499
+ import { z as z43 } from "@elementor/schema";
486
500
  var colorToneFilterPropTypeUtil = createPropUtils(
487
501
  "color-tone",
488
- z42.strictObject({
502
+ z43.strictObject({
489
503
  size: unknownChildrenSchema
490
504
  })
491
505
  );
492
506
 
493
507
  // src/prop-types/filter-prop-types/filter-functions/hue-rotate-filter.ts
494
- import { z as z43 } from "@elementor/schema";
508
+ import { z as z44 } from "@elementor/schema";
495
509
  var hueRotateFilterPropTypeUtil = createPropUtils(
496
510
  "hue-rotate",
497
- z43.strictObject({
511
+ z44.strictObject({
498
512
  size: unknownChildrenSchema
499
513
  })
500
514
  );
501
515
 
502
516
  // src/prop-types/filter-prop-types/filter-functions/intensity-filter.ts
503
- import { z as z44 } from "@elementor/schema";
517
+ import { z as z45 } from "@elementor/schema";
504
518
  var intensityFilterPropTypeUtil = createPropUtils(
505
519
  "intensity",
506
- z44.strictObject({
520
+ z45.strictObject({
507
521
  size: unknownChildrenSchema
508
522
  })
509
523
  );
@@ -511,9 +525,9 @@ var intensityFilterPropTypeUtil = createPropUtils(
511
525
  // src/prop-types/filter-prop-types/filter.ts
512
526
  var cssFilterFunctionPropUtil = createPropUtils(
513
527
  "css-filter-func",
514
- z45.object({
528
+ z46.object({
515
529
  func: stringPropTypeUtil.schema,
516
- args: z45.union([
530
+ args: z46.union([
517
531
  blurFilterPropTypeUtil.schema,
518
532
  intensityFilterPropTypeUtil.schema,
519
533
  colorToneFilterPropTypeUtil.schema,
@@ -522,13 +536,13 @@ var cssFilterFunctionPropUtil = createPropUtils(
522
536
  ])
523
537
  })
524
538
  );
525
- var filterPropTypeUtil = createPropUtils("filter", z45.array(cssFilterFunctionPropUtil.schema));
539
+ var filterPropTypeUtil = createPropUtils("filter", z46.array(cssFilterFunctionPropUtil.schema));
526
540
 
527
541
  // src/prop-types/transform-prop-types/transform.ts
528
- import { z as z46 } from "@elementor/schema";
542
+ import { z as z47 } from "@elementor/schema";
529
543
  var transformPropTypeUtil = createPropUtils(
530
544
  "transform",
531
- z46.strictObject({
545
+ z47.strictObject({
532
546
  "transform-functions": unknownChildrenSchema,
533
547
  "transform-origin": unknownChildrenSchema,
534
548
  perspective: unknownChildrenSchema,
@@ -537,10 +551,10 @@ var transformPropTypeUtil = createPropUtils(
537
551
  );
538
552
 
539
553
  // src/prop-types/transform-prop-types/transform-functions.ts
540
- import { z as z51 } from "@elementor/schema";
554
+ import { z as z52 } from "@elementor/schema";
541
555
 
542
556
  // src/prop-types/transform-prop-types/transform-functions/move-transform.ts
543
- import { z as z47 } from "@elementor/schema";
557
+ import { z as z48 } from "@elementor/schema";
544
558
 
545
559
  // src/prop-types/transform-prop-types/types.ts
546
560
  var TransformFunctionKeys = {
@@ -553,7 +567,7 @@ var TransformFunctionKeys = {
553
567
  // src/prop-types/transform-prop-types/transform-functions/move-transform.ts
554
568
  var moveTransformPropTypeUtil = createPropUtils(
555
569
  TransformFunctionKeys.move,
556
- z47.strictObject({
570
+ z48.strictObject({
557
571
  x: unknownChildrenSchema,
558
572
  y: unknownChildrenSchema,
559
573
  z: unknownChildrenSchema
@@ -561,10 +575,10 @@ var moveTransformPropTypeUtil = createPropUtils(
561
575
  );
562
576
 
563
577
  // src/prop-types/transform-prop-types/transform-functions/rotate-transform.ts
564
- import { z as z48 } from "@elementor/schema";
578
+ import { z as z49 } from "@elementor/schema";
565
579
  var rotateTransformPropTypeUtil = createPropUtils(
566
580
  TransformFunctionKeys.rotate,
567
- z48.strictObject({
581
+ z49.strictObject({
568
582
  x: unknownChildrenSchema,
569
583
  y: unknownChildrenSchema,
570
584
  z: unknownChildrenSchema
@@ -572,10 +586,10 @@ var rotateTransformPropTypeUtil = createPropUtils(
572
586
  );
573
587
 
574
588
  // src/prop-types/transform-prop-types/transform-functions/scale-transform.ts
575
- import { z as z49 } from "@elementor/schema";
589
+ import { z as z50 } from "@elementor/schema";
576
590
  var scaleTransformPropTypeUtil = createPropUtils(
577
591
  TransformFunctionKeys.scale,
578
- z49.strictObject({
592
+ z50.strictObject({
579
593
  x: numberPropTypeUtil.schema.nullable(),
580
594
  y: numberPropTypeUtil.schema.nullable(),
581
595
  z: numberPropTypeUtil.schema.nullable()
@@ -583,10 +597,10 @@ var scaleTransformPropTypeUtil = createPropUtils(
583
597
  );
584
598
 
585
599
  // src/prop-types/transform-prop-types/transform-functions/skew-transform.ts
586
- import { z as z50 } from "@elementor/schema";
600
+ import { z as z51 } from "@elementor/schema";
587
601
  var skewTransformPropTypeUtil = createPropUtils(
588
602
  TransformFunctionKeys.skew,
589
- z50.strictObject({
603
+ z51.strictObject({
590
604
  x: unknownChildrenSchema,
591
605
  y: unknownChildrenSchema
592
606
  })
@@ -594,13 +608,13 @@ var skewTransformPropTypeUtil = createPropUtils(
594
608
 
595
609
  // src/prop-types/transform-prop-types/transform-functions.ts
596
610
  var filterTypes = moveTransformPropTypeUtil.schema.or(scaleTransformPropTypeUtil.schema).or(rotateTransformPropTypeUtil.schema).or(skewTransformPropTypeUtil.schema);
597
- var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z51.array(filterTypes));
611
+ var transformFunctionsPropTypeUtil = createPropUtils("transform-functions", z52.array(filterTypes));
598
612
 
599
613
  // src/prop-types/transform-prop-types/transform-origin.ts
600
- import { z as z52 } from "@elementor/schema";
614
+ import { z as z53 } from "@elementor/schema";
601
615
  var transformOriginPropTypeUtil = createPropUtils(
602
616
  "transform-origin",
603
- z52.strictObject({
617
+ z53.strictObject({
604
618
  x: unknownChildrenSchema,
605
619
  y: unknownChildrenSchema,
606
620
  z: unknownChildrenSchema
@@ -608,49 +622,49 @@ var transformOriginPropTypeUtil = createPropUtils(
608
622
  );
609
623
 
610
624
  // src/prop-types/transform-prop-types/perspective-origin.ts
611
- import { z as z53 } from "@elementor/schema";
625
+ import { z as z54 } from "@elementor/schema";
612
626
  var perspectiveOriginPropTypeUtil = createPropUtils(
613
627
  "perspective-origin",
614
- z53.strictObject({
628
+ z54.strictObject({
615
629
  x: unknownChildrenSchema,
616
630
  y: unknownChildrenSchema
617
631
  })
618
632
  );
619
633
 
620
634
  // src/prop-types/filter-prop-types/backdrop-filter.ts
621
- import { z as z54 } from "@elementor/schema";
635
+ import { z as z55 } from "@elementor/schema";
622
636
  var backdropFilterPropTypeUtil = createPropUtils(
623
637
  "backdrop-filter",
624
- z54.array(cssFilterFunctionPropUtil.schema)
638
+ z55.array(cssFilterFunctionPropUtil.schema)
625
639
  );
626
640
 
627
641
  // src/prop-types/date-range.ts
628
- import { z as z55 } from "@elementor/schema";
642
+ import { z as z56 } from "@elementor/schema";
629
643
  var dateRangePropTypeUtil = createPropUtils(
630
644
  "date-range",
631
- z55.strictObject({
645
+ z56.strictObject({
632
646
  min: unknownChildrenSchema,
633
647
  max: unknownChildrenSchema
634
648
  })
635
649
  );
636
650
 
637
651
  // src/prop-types/date-string.ts
638
- import { z as z56 } from "@elementor/schema";
639
- var dateStringPropTypeUtil = createPropUtils("date-string", z56.string());
652
+ import { z as z57 } from "@elementor/schema";
653
+ var dateStringPropTypeUtil = createPropUtils("date-string", z57.string());
640
654
 
641
655
  // src/prop-types/time-range.ts
642
- import { z as z57 } from "@elementor/schema";
656
+ import { z as z58 } from "@elementor/schema";
643
657
  var timeRangePropTypeUtil = createPropUtils(
644
658
  "time-range",
645
- z57.strictObject({
659
+ z58.strictObject({
646
660
  min: unknownChildrenSchema,
647
661
  max: unknownChildrenSchema
648
662
  })
649
663
  );
650
664
 
651
665
  // src/prop-types/time-string.ts
652
- import { z as z58 } from "@elementor/schema";
653
- var timeStringPropTypeUtil = createPropUtils("time-string", z58.string());
666
+ import { z as z59 } from "@elementor/schema";
667
+ var timeStringPropTypeUtil = createPropUtils("time-string", z59.string());
654
668
 
655
669
  // src/utils/adjust-llm-prop-value-schema.ts
656
670
  var ensureNotNull = (v, fallback) => v === null ? fallback : v;
@@ -1077,11 +1091,11 @@ var validatePropValue = (schema, value) => {
1077
1091
  };
1078
1092
 
1079
1093
  // src/utils/is-transformable.ts
1080
- import { z as z59 } from "@elementor/schema";
1081
- var transformableSchema = z59.object({
1082
- $$type: z59.string(),
1083
- value: z59.any(),
1084
- disabled: z59.boolean().optional()
1094
+ import { z as z60 } from "@elementor/schema";
1095
+ var transformableSchema = z60.object({
1096
+ $$type: z60.string(),
1097
+ value: z60.any(),
1098
+ disabled: z60.boolean().optional()
1085
1099
  });
1086
1100
  var isTransformable = (value) => {
1087
1101
  return transformableSchema.safeParse(value).success;
@@ -1377,6 +1391,8 @@ export {
1377
1391
  parseHtmlChildren,
1378
1392
  perspectiveOriginPropTypeUtil,
1379
1393
  positionPropTypeUtil,
1394
+ queryFilterArrayPropTypeUtil,
1395
+ queryFilterPropTypeUtil,
1380
1396
  queryPropTypeUtil,
1381
1397
  rewrapOverridableValue,
1382
1398
  rotateTransformPropTypeUtil,