@elementor/editor-props 0.7.1 → 0.9.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,23 @@
1
1
  # @elementor/editor-props
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c9133d7: Add background image overlay custom size
8
+ - 86863c1: Changed link control to use query instead of autocomplete
9
+ - 15c964f: Add background image overlay custom position
10
+
11
+ ### Patch Changes
12
+
13
+ - da38fa9: Remove unused exports and add missing dependencies.
14
+
15
+ ## 0.8.0
16
+
17
+ ### Minor Changes
18
+
19
+ - f1a2ffb: Change gap control prop type.
20
+
3
21
  ## 0.7.1
4
22
 
5
23
  ### Patch 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,7 +679,7 @@ 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
 
@@ -769,7 +769,7 @@ declare const dimensionsPropTypeUtil: {
769
769
  };
770
770
  disabled?: boolean | undefined;
771
771
  }>;
772
- key: TKey;
772
+ key: "dimensions";
773
773
  };
774
774
  type DimensionsPropValue = z.infer<typeof dimensionsPropTypeUtil.schema>;
775
775
 
@@ -794,7 +794,7 @@ declare const numberPropTypeUtil: {
794
794
  value: number | null;
795
795
  disabled?: boolean | undefined;
796
796
  }>;
797
- key: TKey;
797
+ key: "number";
798
798
  };
799
799
  type NumberPropValue = z.infer<typeof numberPropTypeUtil.schema>;
800
800
 
@@ -910,7 +910,7 @@ declare const shadowPropTypeUtil: {
910
910
  };
911
911
  disabled?: boolean | undefined;
912
912
  }>;
913
- key: TKey;
913
+ key: "shadow";
914
914
  };
915
915
  type ShadowPropValue = z.infer<typeof shadowPropTypeUtil.schema>;
916
916
 
@@ -974,7 +974,7 @@ declare const sizePropTypeUtil: {
974
974
  };
975
975
  disabled?: boolean | undefined;
976
976
  }>;
977
- key: TKey;
977
+ key: "size";
978
978
  };
979
979
  type SizePropValue = z.infer<typeof sizePropTypeUtil.schema>;
980
980
 
@@ -999,7 +999,7 @@ declare const stringPropTypeUtil: {
999
999
  value: string | null;
1000
1000
  disabled?: boolean | undefined;
1001
1001
  }>;
1002
- key: TKey;
1002
+ key: "string";
1003
1003
  };
1004
1004
  type StringPropValue = z.infer<typeof stringPropTypeUtil.schema>;
1005
1005
 
@@ -1063,7 +1063,7 @@ declare const strokePropTypeUtil: {
1063
1063
  };
1064
1064
  disabled?: boolean | undefined;
1065
1065
  }>;
1066
- key: TKey;
1066
+ key: "stroke";
1067
1067
  };
1068
1068
  type StrokePropValue = z.infer<typeof strokePropTypeUtil.schema>;
1069
1069
 
@@ -1088,150 +1088,150 @@ declare const urlPropTypeUtil: {
1088
1088
  value: string | null;
1089
1089
  disabled?: boolean | undefined;
1090
1090
  }>;
1091
- key: TKey;
1091
+ key: "url";
1092
1092
  };
1093
1093
  type UrlPropValue = z.infer<typeof urlPropTypeUtil.schema>;
1094
1094
 
1095
- declare const linkPropTypeUtil: {
1095
+ declare const layoutDirectionPropTypeUtil: {
1096
1096
  extract: (prop: unknown) => {
1097
- href?: any;
1098
- isTargetBlank?: any;
1097
+ row?: any;
1098
+ column?: any;
1099
1099
  } | null;
1100
- isValid: (prop: unknown) => prop is TransformablePropValue$1<"link", {
1101
- href?: any;
1102
- isTargetBlank?: any;
1100
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"layout-direction", {
1101
+ row?: any;
1102
+ column?: any;
1103
1103
  }>;
1104
1104
  create: {
1105
1105
  (value: {
1106
- href?: any;
1107
- isTargetBlank?: any;
1108
- }): TransformablePropValue$1<"link", {
1109
- href?: any;
1110
- isTargetBlank?: any;
1106
+ row?: any;
1107
+ column?: any;
1108
+ }): TransformablePropValue$1<"layout-direction", {
1109
+ row?: any;
1110
+ column?: any;
1111
1111
  }>;
1112
1112
  (value: {
1113
- href?: any;
1114
- isTargetBlank?: any;
1115
- }, createOptions?: CreateOptions): TransformablePropValue$1<"link", {
1116
- href?: any;
1117
- isTargetBlank?: any;
1113
+ row?: any;
1114
+ column?: any;
1115
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"layout-direction", {
1116
+ row?: any;
1117
+ column?: any;
1118
1118
  }>;
1119
1119
  (value: (prev?: {
1120
- href?: any;
1121
- isTargetBlank?: any;
1120
+ row?: any;
1121
+ column?: any;
1122
1122
  } | undefined) => {
1123
- href?: any;
1124
- isTargetBlank?: any;
1125
- }, createOptions: CreateOptions): TransformablePropValue$1<"link", {
1126
- href?: any;
1127
- isTargetBlank?: any;
1123
+ row?: any;
1124
+ column?: any;
1125
+ }, createOptions: CreateOptions): TransformablePropValue$1<"layout-direction", {
1126
+ row?: any;
1127
+ column?: any;
1128
1128
  }>;
1129
1129
  };
1130
1130
  schema: z.ZodObject<{
1131
- $$type: z.ZodLiteral<"link">;
1131
+ $$type: z.ZodLiteral<"layout-direction">;
1132
1132
  value: z.ZodType<{
1133
- href?: any;
1134
- isTargetBlank?: any;
1133
+ row?: any;
1134
+ column?: any;
1135
1135
  }, z.ZodTypeDef, {
1136
- href?: any;
1137
- isTargetBlank?: any;
1136
+ row?: any;
1137
+ column?: any;
1138
1138
  }>;
1139
1139
  disabled: z.ZodOptional<z.ZodBoolean>;
1140
1140
  }, "strict", z.ZodTypeAny, {
1141
- $$type: "link";
1141
+ $$type: "layout-direction";
1142
1142
  value: {
1143
- href?: any;
1144
- isTargetBlank?: any;
1143
+ row?: any;
1144
+ column?: any;
1145
1145
  };
1146
1146
  disabled?: boolean | undefined;
1147
1147
  }, {
1148
- $$type: "link";
1148
+ $$type: "layout-direction";
1149
1149
  value: {
1150
- href?: any;
1151
- isTargetBlank?: any;
1150
+ row?: any;
1151
+ column?: any;
1152
1152
  };
1153
1153
  disabled?: boolean | undefined;
1154
1154
  }>;
1155
- key: TKey;
1155
+ key: "layout-direction";
1156
1156
  };
1157
- type LinkPropValue = z.infer<typeof linkPropTypeUtil.schema>;
1157
+ type LayoutDirectionPropValue = z.infer<typeof layoutDirectionPropTypeUtil.schema>;
1158
1158
 
1159
- declare const gapPropTypeUtil: {
1159
+ declare const linkPropTypeUtil: {
1160
1160
  extract: (prop: unknown) => {
1161
- isLinked: boolean;
1162
- row?: any;
1163
- column?: any;
1161
+ destination?: any;
1162
+ label?: any;
1163
+ isTargetBlank?: any;
1164
1164
  } | null;
1165
- isValid: (prop: unknown) => prop is TransformablePropValue$1<"gap", {
1166
- isLinked: boolean;
1167
- row?: any;
1168
- column?: any;
1165
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"link", {
1166
+ destination?: any;
1167
+ label?: any;
1168
+ isTargetBlank?: any;
1169
1169
  }>;
1170
1170
  create: {
1171
1171
  (value: {
1172
- isLinked: boolean;
1173
- row?: any;
1174
- column?: any;
1175
- }): TransformablePropValue$1<"gap", {
1176
- isLinked: boolean;
1177
- row?: any;
1178
- column?: any;
1172
+ destination?: any;
1173
+ label?: any;
1174
+ isTargetBlank?: any;
1175
+ }): TransformablePropValue$1<"link", {
1176
+ destination?: any;
1177
+ label?: any;
1178
+ isTargetBlank?: any;
1179
1179
  }>;
1180
1180
  (value: {
1181
- isLinked: boolean;
1182
- row?: any;
1183
- column?: any;
1184
- }, createOptions?: CreateOptions): TransformablePropValue$1<"gap", {
1185
- isLinked: boolean;
1186
- row?: any;
1187
- column?: any;
1181
+ destination?: any;
1182
+ label?: any;
1183
+ isTargetBlank?: any;
1184
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"link", {
1185
+ destination?: any;
1186
+ label?: any;
1187
+ isTargetBlank?: any;
1188
1188
  }>;
1189
1189
  (value: (prev?: {
1190
- isLinked: boolean;
1191
- row?: any;
1192
- column?: any;
1190
+ destination?: any;
1191
+ label?: any;
1192
+ isTargetBlank?: any;
1193
1193
  } | undefined) => {
1194
- isLinked: boolean;
1195
- row?: any;
1196
- column?: any;
1197
- }, createOptions: CreateOptions): TransformablePropValue$1<"gap", {
1198
- isLinked: boolean;
1199
- row?: any;
1200
- column?: any;
1194
+ destination?: any;
1195
+ label?: any;
1196
+ isTargetBlank?: any;
1197
+ }, createOptions: CreateOptions): TransformablePropValue$1<"link", {
1198
+ destination?: any;
1199
+ label?: any;
1200
+ isTargetBlank?: any;
1201
1201
  }>;
1202
1202
  };
1203
1203
  schema: z.ZodObject<{
1204
- $$type: z.ZodLiteral<"gap">;
1204
+ $$type: z.ZodLiteral<"link">;
1205
1205
  value: z.ZodType<{
1206
- isLinked: boolean;
1207
- row?: any;
1208
- column?: any;
1206
+ destination?: any;
1207
+ label?: any;
1208
+ isTargetBlank?: any;
1209
1209
  }, z.ZodTypeDef, {
1210
- isLinked: boolean;
1211
- row?: any;
1212
- column?: any;
1210
+ destination?: any;
1211
+ label?: any;
1212
+ isTargetBlank?: any;
1213
1213
  }>;
1214
1214
  disabled: z.ZodOptional<z.ZodBoolean>;
1215
1215
  }, "strict", z.ZodTypeAny, {
1216
- $$type: "gap";
1216
+ $$type: "link";
1217
1217
  value: {
1218
- isLinked: boolean;
1219
- row?: any;
1220
- column?: any;
1218
+ destination?: any;
1219
+ label?: any;
1220
+ isTargetBlank?: any;
1221
1221
  };
1222
1222
  disabled?: boolean | undefined;
1223
1223
  }, {
1224
- $$type: "gap";
1224
+ $$type: "link";
1225
1225
  value: {
1226
- isLinked: boolean;
1227
- row?: any;
1228
- column?: any;
1226
+ destination?: any;
1227
+ label?: any;
1228
+ isTargetBlank?: any;
1229
1229
  };
1230
1230
  disabled?: boolean | undefined;
1231
1231
  }>;
1232
- key: TKey;
1232
+ key: "link";
1233
1233
  };
1234
- type GapPropValue = z.infer<typeof gapPropTypeUtil.schema>;
1234
+ type LinkPropValue = z.infer<typeof linkPropTypeUtil.schema>;
1235
1235
 
1236
1236
  declare const backgroundPropTypeUtil: {
1237
1237
  extract: (prop: unknown) => {
@@ -1293,7 +1293,7 @@ declare const backgroundPropTypeUtil: {
1293
1293
  };
1294
1294
  disabled?: boolean | undefined;
1295
1295
  }>;
1296
- key: TKey;
1296
+ key: "background";
1297
1297
  };
1298
1298
  type BackgroundPropValue = z.infer<typeof backgroundPropTypeUtil.schema>;
1299
1299
 
@@ -1511,7 +1511,7 @@ declare const backgroundOverlayPropTypeUtil: {
1511
1511
  })[];
1512
1512
  disabled?: boolean | undefined;
1513
1513
  }>;
1514
- key: TKey;
1514
+ key: "background-overlay";
1515
1515
  };
1516
1516
  type BackgroundOverlayPropValue = z.infer<typeof backgroundOverlayPropTypeUtil.schema>;
1517
1517
  type BackgroundOverlayItemPropValue = z.infer<typeof backgroundOverlayItem>;
@@ -1537,7 +1537,7 @@ declare const backgroundColorOverlayPropTypeUtil: {
1537
1537
  value: string;
1538
1538
  disabled?: boolean | undefined;
1539
1539
  }>;
1540
- key: TKey;
1540
+ key: "background-color-overlay";
1541
1541
  };
1542
1542
  type BackgroundColorOverlayPropValue = z.infer<typeof backgroundColorOverlayPropTypeUtil.schema>;
1543
1543
 
@@ -1562,10 +1562,60 @@ declare const backgroundImageOverlayPropTypeUtil: {
1562
1562
  value?: any;
1563
1563
  disabled?: boolean | undefined;
1564
1564
  }>;
1565
- key: TKey;
1565
+ key: "background-image-overlay";
1566
1566
  };
1567
1567
  type BackgroundImageOverlayPropValue = z.infer<typeof backgroundImageOverlayPropTypeUtil.schema>;
1568
1568
 
1569
+ declare const backgroundImagePositionOffsetPropTypeUtil: {
1570
+ extract: (prop: unknown) => any;
1571
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-image-position-offset", any>;
1572
+ create: {
1573
+ (value: any): TransformablePropValue$1<"background-image-position-offset", any>;
1574
+ (value: any, createOptions?: CreateOptions): TransformablePropValue$1<"background-image-position-offset", any>;
1575
+ (value: (prev?: any) => any, createOptions: CreateOptions): TransformablePropValue$1<"background-image-position-offset", any>;
1576
+ };
1577
+ schema: z.ZodObject<{
1578
+ $$type: z.ZodLiteral<"background-image-position-offset">;
1579
+ value: z.ZodType<any, z.ZodTypeDef, any>;
1580
+ disabled: z.ZodOptional<z.ZodBoolean>;
1581
+ }, "strict", z.ZodTypeAny, {
1582
+ $$type: "background-image-position-offset";
1583
+ value?: any;
1584
+ disabled?: boolean | undefined;
1585
+ }, {
1586
+ $$type: "background-image-position-offset";
1587
+ value?: any;
1588
+ disabled?: boolean | undefined;
1589
+ }>;
1590
+ key: "background-image-position-offset";
1591
+ };
1592
+ type BackgroundImagePositionOffsetPropValue = z.infer<typeof backgroundImagePositionOffsetPropTypeUtil.schema>;
1593
+
1594
+ declare const backgroundImageSizeScalePropTypeUtil: {
1595
+ extract: (prop: unknown) => any;
1596
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"background-image-size-scale", any>;
1597
+ create: {
1598
+ (value: any): TransformablePropValue$1<"background-image-size-scale", any>;
1599
+ (value: any, createOptions?: CreateOptions): TransformablePropValue$1<"background-image-size-scale", any>;
1600
+ (value: (prev?: any) => any, createOptions: CreateOptions): TransformablePropValue$1<"background-image-size-scale", any>;
1601
+ };
1602
+ schema: z.ZodObject<{
1603
+ $$type: z.ZodLiteral<"background-image-size-scale">;
1604
+ value: z.ZodType<any, z.ZodTypeDef, any>;
1605
+ disabled: z.ZodOptional<z.ZodBoolean>;
1606
+ }, "strict", z.ZodTypeAny, {
1607
+ $$type: "background-image-size-scale";
1608
+ value?: any;
1609
+ disabled?: boolean | undefined;
1610
+ }, {
1611
+ $$type: "background-image-size-scale";
1612
+ value?: any;
1613
+ disabled?: boolean | undefined;
1614
+ }>;
1615
+ key: "background-image-size-scale";
1616
+ };
1617
+ type BackgroundImageSizeScalePropValue = z.infer<typeof backgroundImageSizeScalePropTypeUtil.schema>;
1618
+
1569
1619
  declare const booleanPropTypeUtil: {
1570
1620
  extract: (prop: unknown) => boolean | null;
1571
1621
  isValid: (prop: unknown) => prop is TransformablePropValue$1<"boolean", boolean | null>;
@@ -1587,10 +1637,12 @@ declare const booleanPropTypeUtil: {
1587
1637
  value: boolean | null;
1588
1638
  disabled?: boolean | undefined;
1589
1639
  }>;
1590
- key: TKey;
1640
+ key: "boolean";
1591
1641
  };
1592
1642
  type BooleanPropValue = z.infer<typeof booleanPropTypeUtil.schema>;
1593
1643
 
1644
+ declare function mergeProps(current: Props, updates: Props): Props;
1645
+
1594
1646
  declare const transformableSchema: z.ZodObject<{
1595
1647
  $$type: z.ZodString;
1596
1648
  value: z.ZodAny;
@@ -1607,4 +1659,4 @@ declare const transformableSchema: z.ZodObject<{
1607
1659
  type TransformablePropValue = z.infer<typeof transformableSchema>;
1608
1660
  declare const isTransformable: (value: unknown) => value is TransformablePropValue;
1609
1661
 
1610
- 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 GapPropValue, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, 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, gapPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isTransformable, linkPropTypeUtil, numberPropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };
1662
+ export { type ArrayPropType, type ArrayPropValue, type BackgroundColorOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, 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, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, createPropUtils, dimensionsPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, isTransformable, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, numberPropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, urlPropTypeUtil };