@elementor/editor-props 0.7.0 → 0.8.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @elementor/editor-props
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f1a2ffb: Change gap control prop type.
8
+
9
+ ## 0.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 7582ba6: Modify linked dimensions control functionality
14
+ - 7654921: Allow any strings in link control
15
+
3
16
  ## 0.7.0
4
17
 
5
18
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -257,7 +257,7 @@ declare const boxShadowPropTypeUtil: {
257
257
  }[];
258
258
  disabled?: boolean | undefined;
259
259
  }>;
260
- key: TKey;
260
+ key: "box-shadow";
261
261
  };
262
262
  type BoxShadowPropValue = z.infer<typeof boxShadowPropTypeUtil.schema>;
263
263
 
@@ -347,7 +347,7 @@ declare const borderRadiusPropTypeUtil: {
347
347
  };
348
348
  disabled?: boolean | undefined;
349
349
  }>;
350
- key: TKey;
350
+ key: "border-radius";
351
351
  };
352
352
  type BorderRadiusPropValue = z.infer<typeof borderRadiusPropTypeUtil.schema>;
353
353
 
@@ -437,7 +437,7 @@ declare const borderWidthPropTypeUtil: {
437
437
  };
438
438
  disabled?: boolean | undefined;
439
439
  }>;
440
- key: TKey;
440
+ key: "border-width";
441
441
  };
442
442
  type BorderWidthPropValue = z.infer<typeof borderWidthPropTypeUtil.schema>;
443
443
 
@@ -462,7 +462,7 @@ declare const classesPropTypeUtil: {
462
462
  value: string[];
463
463
  disabled?: boolean | undefined;
464
464
  }>;
465
- key: TKey;
465
+ key: "classes";
466
466
  };
467
467
  type ClassesPropValue = z.infer<typeof classesPropTypeUtil.schema>;
468
468
 
@@ -487,7 +487,7 @@ declare const colorPropTypeUtil: {
487
487
  value: string;
488
488
  disabled?: boolean | undefined;
489
489
  }>;
490
- key: TKey;
490
+ key: "color";
491
491
  };
492
492
  type ColorPropValue = z.infer<typeof colorPropTypeUtil.schema>;
493
493
 
@@ -551,7 +551,7 @@ declare const imagePropTypeUtil: {
551
551
  };
552
552
  disabled?: boolean | undefined;
553
553
  }>;
554
- key: TKey;
554
+ key: "image";
555
555
  };
556
556
  type ImagePropValue = z.infer<typeof imagePropTypeUtil.schema>;
557
557
 
@@ -576,7 +576,7 @@ declare const imageAttachmentIdPropType: {
576
576
  value: number;
577
577
  disabled?: boolean | undefined;
578
578
  }>;
579
- key: TKey;
579
+ key: "image-attachment-id";
580
580
  };
581
581
  type ImageAttachmentIdPropValue = z.infer<typeof imageAttachmentIdPropType.schema>;
582
582
 
@@ -679,24 +679,22 @@ declare const imageSrcPropTypeUtil: {
679
679
  };
680
680
  disabled?: boolean | undefined;
681
681
  }>;
682
- key: TKey;
682
+ key: "image-src";
683
683
  };
684
684
  type ImageSrcPropValue = z.infer<typeof imageSrcPropTypeUtil.schema>;
685
685
 
686
- declare const linkedDimensionsPropTypeUtil: {
686
+ declare const dimensionsPropTypeUtil: {
687
687
  extract: (prop: unknown) => {
688
688
  top?: any;
689
689
  right?: any;
690
690
  bottom?: any;
691
691
  left?: any;
692
- isLinked?: any;
693
692
  } | null;
694
- isValid: (prop: unknown) => prop is TransformablePropValue$1<"linked-dimensions", {
693
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"dimensions", {
695
694
  top?: any;
696
695
  right?: any;
697
696
  bottom?: any;
698
697
  left?: any;
699
- isLinked?: any;
700
698
  }>;
701
699
  create: {
702
700
  (value: {
@@ -704,87 +702,76 @@ declare const linkedDimensionsPropTypeUtil: {
704
702
  right?: any;
705
703
  bottom?: any;
706
704
  left?: any;
707
- isLinked?: any;
708
- }): TransformablePropValue$1<"linked-dimensions", {
705
+ }): TransformablePropValue$1<"dimensions", {
709
706
  top?: any;
710
707
  right?: any;
711
708
  bottom?: any;
712
709
  left?: any;
713
- isLinked?: any;
714
710
  }>;
715
711
  (value: {
716
712
  top?: any;
717
713
  right?: any;
718
714
  bottom?: any;
719
715
  left?: any;
720
- isLinked?: any;
721
- }, createOptions?: CreateOptions): TransformablePropValue$1<"linked-dimensions", {
716
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"dimensions", {
722
717
  top?: any;
723
718
  right?: any;
724
719
  bottom?: any;
725
720
  left?: any;
726
- isLinked?: any;
727
721
  }>;
728
722
  (value: (prev?: {
729
723
  top?: any;
730
724
  right?: any;
731
725
  bottom?: any;
732
726
  left?: any;
733
- isLinked?: any;
734
727
  } | undefined) => {
735
728
  top?: any;
736
729
  right?: any;
737
730
  bottom?: any;
738
731
  left?: any;
739
- isLinked?: any;
740
- }, createOptions: CreateOptions): TransformablePropValue$1<"linked-dimensions", {
732
+ }, createOptions: CreateOptions): TransformablePropValue$1<"dimensions", {
741
733
  top?: any;
742
734
  right?: any;
743
735
  bottom?: any;
744
736
  left?: any;
745
- isLinked?: any;
746
737
  }>;
747
738
  };
748
739
  schema: z.ZodObject<{
749
- $$type: z.ZodLiteral<"linked-dimensions">;
740
+ $$type: z.ZodLiteral<"dimensions">;
750
741
  value: z.ZodType<{
751
742
  top?: any;
752
743
  right?: any;
753
744
  bottom?: any;
754
745
  left?: any;
755
- isLinked?: any;
756
746
  }, z.ZodTypeDef, {
757
747
  top?: any;
758
748
  right?: any;
759
749
  bottom?: any;
760
750
  left?: any;
761
- isLinked?: any;
762
751
  }>;
763
752
  disabled: z.ZodOptional<z.ZodBoolean>;
764
753
  }, "strict", z.ZodTypeAny, {
765
- $$type: "linked-dimensions";
754
+ $$type: "dimensions";
766
755
  value: {
767
756
  top?: any;
768
757
  right?: any;
769
758
  bottom?: any;
770
759
  left?: any;
771
- isLinked?: any;
772
760
  };
773
761
  disabled?: boolean | undefined;
774
762
  }, {
775
- $$type: "linked-dimensions";
763
+ $$type: "dimensions";
776
764
  value: {
777
765
  top?: any;
778
766
  right?: any;
779
767
  bottom?: any;
780
768
  left?: any;
781
- isLinked?: any;
782
769
  };
783
770
  disabled?: boolean | undefined;
784
771
  }>;
785
- key: TKey;
772
+ key: "dimensions";
786
773
  };
787
- type LinkedDimensionsPropValue = z.infer<typeof linkedDimensionsPropTypeUtil.schema>;
774
+ type DimensionsPropValue = z.infer<typeof dimensionsPropTypeUtil.schema>;
788
775
 
789
776
  declare const numberPropTypeUtil: {
790
777
  extract: (prop: unknown) => number | null;
@@ -807,7 +794,7 @@ declare const numberPropTypeUtil: {
807
794
  value: number | null;
808
795
  disabled?: boolean | undefined;
809
796
  }>;
810
- key: TKey;
797
+ key: "number";
811
798
  };
812
799
  type NumberPropValue = z.infer<typeof numberPropTypeUtil.schema>;
813
800
 
@@ -923,7 +910,7 @@ declare const shadowPropTypeUtil: {
923
910
  };
924
911
  disabled?: boolean | undefined;
925
912
  }>;
926
- key: TKey;
913
+ key: "shadow";
927
914
  };
928
915
  type ShadowPropValue = z.infer<typeof shadowPropTypeUtil.schema>;
929
916
 
@@ -987,7 +974,7 @@ declare const sizePropTypeUtil: {
987
974
  };
988
975
  disabled?: boolean | undefined;
989
976
  }>;
990
- key: TKey;
977
+ key: "size";
991
978
  };
992
979
  type SizePropValue = z.infer<typeof sizePropTypeUtil.schema>;
993
980
 
@@ -1012,7 +999,7 @@ declare const stringPropTypeUtil: {
1012
999
  value: string | null;
1013
1000
  disabled?: boolean | undefined;
1014
1001
  }>;
1015
- key: TKey;
1002
+ key: "string";
1016
1003
  };
1017
1004
  type StringPropValue = z.infer<typeof stringPropTypeUtil.schema>;
1018
1005
 
@@ -1076,7 +1063,7 @@ declare const strokePropTypeUtil: {
1076
1063
  };
1077
1064
  disabled?: boolean | undefined;
1078
1065
  }>;
1079
- key: TKey;
1066
+ key: "stroke";
1080
1067
  };
1081
1068
  type StrokePropValue = z.infer<typeof strokePropTypeUtil.schema>;
1082
1069
 
@@ -1101,10 +1088,74 @@ declare const urlPropTypeUtil: {
1101
1088
  value: string | null;
1102
1089
  disabled?: boolean | undefined;
1103
1090
  }>;
1104
- key: TKey;
1091
+ key: "url";
1105
1092
  };
1106
1093
  type UrlPropValue = z.infer<typeof urlPropTypeUtil.schema>;
1107
1094
 
1095
+ declare const layoutDirectionPropTypeUtil: {
1096
+ extract: (prop: unknown) => {
1097
+ row?: any;
1098
+ column?: any;
1099
+ } | null;
1100
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"layout-direction", {
1101
+ row?: any;
1102
+ column?: any;
1103
+ }>;
1104
+ create: {
1105
+ (value: {
1106
+ row?: any;
1107
+ column?: any;
1108
+ }): TransformablePropValue$1<"layout-direction", {
1109
+ row?: any;
1110
+ column?: any;
1111
+ }>;
1112
+ (value: {
1113
+ row?: any;
1114
+ column?: any;
1115
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"layout-direction", {
1116
+ row?: any;
1117
+ column?: any;
1118
+ }>;
1119
+ (value: (prev?: {
1120
+ row?: any;
1121
+ column?: any;
1122
+ } | undefined) => {
1123
+ row?: any;
1124
+ column?: any;
1125
+ }, createOptions: CreateOptions): TransformablePropValue$1<"layout-direction", {
1126
+ row?: any;
1127
+ column?: any;
1128
+ }>;
1129
+ };
1130
+ schema: z.ZodObject<{
1131
+ $$type: z.ZodLiteral<"layout-direction">;
1132
+ value: z.ZodType<{
1133
+ row?: any;
1134
+ column?: any;
1135
+ }, z.ZodTypeDef, {
1136
+ row?: any;
1137
+ column?: any;
1138
+ }>;
1139
+ disabled: z.ZodOptional<z.ZodBoolean>;
1140
+ }, "strict", z.ZodTypeAny, {
1141
+ $$type: "layout-direction";
1142
+ value: {
1143
+ row?: any;
1144
+ column?: any;
1145
+ };
1146
+ disabled?: boolean | undefined;
1147
+ }, {
1148
+ $$type: "layout-direction";
1149
+ value: {
1150
+ row?: any;
1151
+ column?: any;
1152
+ };
1153
+ disabled?: boolean | undefined;
1154
+ }>;
1155
+ key: "layout-direction";
1156
+ };
1157
+ type LayoutDirectionPropValue = z.infer<typeof layoutDirectionPropTypeUtil.schema>;
1158
+
1108
1159
  declare const linkPropTypeUtil: {
1109
1160
  extract: (prop: unknown) => {
1110
1161
  href?: any;
@@ -1165,87 +1216,10 @@ declare const linkPropTypeUtil: {
1165
1216
  };
1166
1217
  disabled?: boolean | undefined;
1167
1218
  }>;
1168
- key: TKey;
1219
+ key: "link";
1169
1220
  };
1170
1221
  type LinkPropValue = z.infer<typeof linkPropTypeUtil.schema>;
1171
1222
 
1172
- declare const gapPropTypeUtil: {
1173
- extract: (prop: unknown) => {
1174
- isLinked: boolean;
1175
- row?: any;
1176
- column?: any;
1177
- } | null;
1178
- isValid: (prop: unknown) => prop is TransformablePropValue$1<"gap", {
1179
- isLinked: boolean;
1180
- row?: any;
1181
- column?: any;
1182
- }>;
1183
- create: {
1184
- (value: {
1185
- isLinked: boolean;
1186
- row?: any;
1187
- column?: any;
1188
- }): TransformablePropValue$1<"gap", {
1189
- isLinked: boolean;
1190
- row?: any;
1191
- column?: any;
1192
- }>;
1193
- (value: {
1194
- isLinked: boolean;
1195
- row?: any;
1196
- column?: any;
1197
- }, createOptions?: CreateOptions): TransformablePropValue$1<"gap", {
1198
- isLinked: boolean;
1199
- row?: any;
1200
- column?: any;
1201
- }>;
1202
- (value: (prev?: {
1203
- isLinked: boolean;
1204
- row?: any;
1205
- column?: any;
1206
- } | undefined) => {
1207
- isLinked: boolean;
1208
- row?: any;
1209
- column?: any;
1210
- }, createOptions: CreateOptions): TransformablePropValue$1<"gap", {
1211
- isLinked: boolean;
1212
- row?: any;
1213
- column?: any;
1214
- }>;
1215
- };
1216
- schema: z.ZodObject<{
1217
- $$type: z.ZodLiteral<"gap">;
1218
- value: z.ZodType<{
1219
- isLinked: boolean;
1220
- row?: any;
1221
- column?: any;
1222
- }, z.ZodTypeDef, {
1223
- isLinked: boolean;
1224
- row?: any;
1225
- column?: any;
1226
- }>;
1227
- disabled: z.ZodOptional<z.ZodBoolean>;
1228
- }, "strict", z.ZodTypeAny, {
1229
- $$type: "gap";
1230
- value: {
1231
- isLinked: boolean;
1232
- row?: any;
1233
- column?: any;
1234
- };
1235
- disabled?: boolean | undefined;
1236
- }, {
1237
- $$type: "gap";
1238
- value: {
1239
- isLinked: boolean;
1240
- row?: any;
1241
- column?: any;
1242
- };
1243
- disabled?: boolean | undefined;
1244
- }>;
1245
- key: TKey;
1246
- };
1247
- type GapPropValue = z.infer<typeof gapPropTypeUtil.schema>;
1248
-
1249
1223
  declare const backgroundPropTypeUtil: {
1250
1224
  extract: (prop: unknown) => {
1251
1225
  color?: any;
@@ -1306,7 +1280,7 @@ declare const backgroundPropTypeUtil: {
1306
1280
  };
1307
1281
  disabled?: boolean | undefined;
1308
1282
  }>;
1309
- key: TKey;
1283
+ key: "background";
1310
1284
  };
1311
1285
  type BackgroundPropValue = z.infer<typeof backgroundPropTypeUtil.schema>;
1312
1286
 
@@ -1524,7 +1498,7 @@ declare const backgroundOverlayPropTypeUtil: {
1524
1498
  })[];
1525
1499
  disabled?: boolean | undefined;
1526
1500
  }>;
1527
- key: TKey;
1501
+ key: "background-overlay";
1528
1502
  };
1529
1503
  type BackgroundOverlayPropValue = z.infer<typeof backgroundOverlayPropTypeUtil.schema>;
1530
1504
  type BackgroundOverlayItemPropValue = z.infer<typeof backgroundOverlayItem>;
@@ -1550,7 +1524,7 @@ declare const backgroundColorOverlayPropTypeUtil: {
1550
1524
  value: string;
1551
1525
  disabled?: boolean | undefined;
1552
1526
  }>;
1553
- key: TKey;
1527
+ key: "background-color-overlay";
1554
1528
  };
1555
1529
  type BackgroundColorOverlayPropValue = z.infer<typeof backgroundColorOverlayPropTypeUtil.schema>;
1556
1530
 
@@ -1575,7 +1549,7 @@ declare const backgroundImageOverlayPropTypeUtil: {
1575
1549
  value?: any;
1576
1550
  disabled?: boolean | undefined;
1577
1551
  }>;
1578
- key: TKey;
1552
+ key: "background-image-overlay";
1579
1553
  };
1580
1554
  type BackgroundImageOverlayPropValue = z.infer<typeof backgroundImageOverlayPropTypeUtil.schema>;
1581
1555
 
@@ -1600,7 +1574,7 @@ declare const booleanPropTypeUtil: {
1600
1574
  value: boolean | null;
1601
1575
  disabled?: boolean | undefined;
1602
1576
  }>;
1603
- key: TKey;
1577
+ key: "boolean";
1604
1578
  };
1605
1579
  type BooleanPropValue = z.infer<typeof booleanPropTypeUtil.schema>;
1606
1580
 
@@ -1620,4 +1594,4 @@ declare const transformableSchema: z.ZodObject<{
1620
1594
  type TransformablePropValue = z.infer<typeof transformableSchema>;
1621
1595
  declare const isTransformable: (value: unknown) => value is TransformablePropValue;
1622
1596
 
1623
- export { type ArrayPropType, type ArrayPropValue, type BackgroundColorOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, type ClassesPropValue, type ColorPropValue, type CreateOptions, type GapPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type LinkPropValue, type LinkedDimensionsPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PlainPropType, type PlainPropValue, type PlainProps, type PropKey, type PropType, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type ShadowPropValue, type SizePropValue, type StringPropValue, type StrokePropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backgroundColorOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, createPropUtils, gapPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isTransformable, linkPropTypeUtil, linkedDimensionsPropTypeUtil, numberPropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };
1597
+ export { type ArrayPropType, type ArrayPropValue, type BackgroundColorOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, type ClassesPropValue, type ColorPropValue, type CreateOptions, type DimensionsPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type LayoutDirectionPropValue, type LinkPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type PlainPropType, type PlainPropValue, type PlainProps, type PropKey, type PropType, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type ShadowPropValue, type SizePropValue, type StringPropValue, type StrokePropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, backgroundColorOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, createPropUtils, dimensionsPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isTransformable, layoutDirectionPropTypeUtil, linkPropTypeUtil, numberPropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };