@elementor/editor-props 4.0.0-683 → 4.0.0-beta5

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.ts CHANGED
@@ -842,6 +842,176 @@ declare const imageSrcPropTypeUtil: {
842
842
  };
843
843
  type ImageSrcPropValue = z.infer<typeof imageSrcPropTypeUtil.schema>;
844
844
 
845
+ declare const svgSrcValueSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
846
+ id: z.ZodNullable<z.ZodAny>;
847
+ url: z.ZodNull;
848
+ }, "strict", z.ZodTypeAny, {
849
+ url: null;
850
+ id?: any;
851
+ }, {
852
+ url: null;
853
+ id?: any;
854
+ }>, z.ZodObject<{
855
+ id: z.ZodNull;
856
+ url: z.ZodNullable<z.ZodAny>;
857
+ }, "strict", z.ZodTypeAny, {
858
+ id: null;
859
+ url?: any;
860
+ }, {
861
+ id: null;
862
+ url?: any;
863
+ }>]>, z.ZodObject<{
864
+ id: z.ZodNullable<z.ZodAny>;
865
+ url: z.ZodNullable<z.ZodAny>;
866
+ }, "strict", z.ZodTypeAny, {
867
+ id?: any;
868
+ url?: any;
869
+ }, {
870
+ id?: any;
871
+ url?: any;
872
+ }>]>;
873
+ declare const svgSrcPropTypeUtil: {
874
+ extract: (prop: unknown) => {
875
+ url: null;
876
+ id?: any;
877
+ } | {
878
+ id: null;
879
+ url?: any;
880
+ } | {
881
+ id?: any;
882
+ url?: any;
883
+ } | null;
884
+ isValid: (prop: unknown) => prop is TransformablePropValue$1<"svg-src", {
885
+ url: null;
886
+ id?: any;
887
+ } | {
888
+ id: null;
889
+ url?: any;
890
+ } | {
891
+ id?: any;
892
+ url?: any;
893
+ }>;
894
+ create: {
895
+ (value: {
896
+ url: null;
897
+ id?: any;
898
+ } | {
899
+ id: null;
900
+ url?: any;
901
+ } | {
902
+ id?: any;
903
+ url?: any;
904
+ }): TransformablePropValue$1<"svg-src", {
905
+ url: null;
906
+ id?: any;
907
+ } | {
908
+ id: null;
909
+ url?: any;
910
+ } | {
911
+ id?: any;
912
+ url?: any;
913
+ }>;
914
+ (value: {
915
+ url: null;
916
+ id?: any;
917
+ } | {
918
+ id: null;
919
+ url?: any;
920
+ } | {
921
+ id?: any;
922
+ url?: any;
923
+ }, createOptions?: CreateOptions): TransformablePropValue$1<"svg-src", {
924
+ url: null;
925
+ id?: any;
926
+ } | {
927
+ id: null;
928
+ url?: any;
929
+ } | {
930
+ id?: any;
931
+ url?: any;
932
+ }>;
933
+ (value: (prev?: {
934
+ url: null;
935
+ id?: any;
936
+ } | {
937
+ id: null;
938
+ url?: any;
939
+ } | {
940
+ id?: any;
941
+ url?: any;
942
+ } | undefined) => {
943
+ url: null;
944
+ id?: any;
945
+ } | {
946
+ id: null;
947
+ url?: any;
948
+ } | {
949
+ id?: any;
950
+ url?: any;
951
+ }, createOptions: CreateOptions): TransformablePropValue$1<"svg-src", {
952
+ url: null;
953
+ id?: any;
954
+ } | {
955
+ id: null;
956
+ url?: any;
957
+ } | {
958
+ id?: any;
959
+ url?: any;
960
+ }>;
961
+ };
962
+ schema: z.ZodObject<{
963
+ $$type: z.ZodLiteral<"svg-src">;
964
+ value: z.ZodType<{
965
+ url: null;
966
+ id?: any;
967
+ } | {
968
+ id: null;
969
+ url?: any;
970
+ } | {
971
+ id?: any;
972
+ url?: any;
973
+ }, z.ZodTypeDef, {
974
+ url: null;
975
+ id?: any;
976
+ } | {
977
+ id: null;
978
+ url?: any;
979
+ } | {
980
+ id?: any;
981
+ url?: any;
982
+ }>;
983
+ disabled: z.ZodOptional<z.ZodBoolean>;
984
+ }, "strict", z.ZodTypeAny, {
985
+ $$type: "svg-src";
986
+ value: {
987
+ url: null;
988
+ id?: any;
989
+ } | {
990
+ id: null;
991
+ url?: any;
992
+ } | {
993
+ id?: any;
994
+ url?: any;
995
+ };
996
+ disabled?: boolean | undefined;
997
+ }, {
998
+ $$type: "svg-src";
999
+ value: {
1000
+ url: null;
1001
+ id?: any;
1002
+ } | {
1003
+ id: null;
1004
+ url?: any;
1005
+ } | {
1006
+ id?: any;
1007
+ url?: any;
1008
+ };
1009
+ disabled?: boolean | undefined;
1010
+ }>;
1011
+ key: "svg-src";
1012
+ };
1013
+ type SvgSrcPropValue = z.infer<typeof svgSrcValueSchema>;
1014
+
845
1015
  declare const videoAttachmentIdPropType: {
846
1016
  extract: (prop: unknown) => number | null;
847
1017
  isValid: (prop: unknown) => prop is TransformablePropValue$1<"video-attachment-id", number>;
@@ -1203,13 +1373,13 @@ type ShadowPropValue = z.infer<typeof shadowPropTypeUtil.schema>;
1203
1373
 
1204
1374
  declare const sizePropTypeUtil: {
1205
1375
  extract: (prop: unknown) => {
1206
- size: number;
1376
+ size: number | "";
1207
1377
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1208
1378
  } | {
1209
- size: number;
1379
+ size: number | "";
1210
1380
  unit: "deg" | "rad" | "grad" | "turn";
1211
1381
  } | {
1212
- size: number;
1382
+ size: number | "";
1213
1383
  unit: "s" | "ms";
1214
1384
  } | {
1215
1385
  size: "";
@@ -1219,13 +1389,13 @@ declare const sizePropTypeUtil: {
1219
1389
  unit: "custom";
1220
1390
  } | null;
1221
1391
  isValid: (prop: unknown) => prop is TransformablePropValue$1<"size", {
1222
- size: number;
1392
+ size: number | "";
1223
1393
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1224
1394
  } | {
1225
- size: number;
1395
+ size: number | "";
1226
1396
  unit: "deg" | "rad" | "grad" | "turn";
1227
1397
  } | {
1228
- size: number;
1398
+ size: number | "";
1229
1399
  unit: "s" | "ms";
1230
1400
  } | {
1231
1401
  size: "";
@@ -1236,13 +1406,13 @@ declare const sizePropTypeUtil: {
1236
1406
  }>;
1237
1407
  create: {
1238
1408
  (value: {
1239
- size: number;
1409
+ size: number | "";
1240
1410
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1241
1411
  } | {
1242
- size: number;
1412
+ size: number | "";
1243
1413
  unit: "deg" | "rad" | "grad" | "turn";
1244
1414
  } | {
1245
- size: number;
1415
+ size: number | "";
1246
1416
  unit: "s" | "ms";
1247
1417
  } | {
1248
1418
  size: "";
@@ -1251,13 +1421,13 @@ declare const sizePropTypeUtil: {
1251
1421
  size: string;
1252
1422
  unit: "custom";
1253
1423
  }): TransformablePropValue$1<"size", {
1254
- size: number;
1424
+ size: number | "";
1255
1425
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1256
1426
  } | {
1257
- size: number;
1427
+ size: number | "";
1258
1428
  unit: "deg" | "rad" | "grad" | "turn";
1259
1429
  } | {
1260
- size: number;
1430
+ size: number | "";
1261
1431
  unit: "s" | "ms";
1262
1432
  } | {
1263
1433
  size: "";
@@ -1267,13 +1437,13 @@ declare const sizePropTypeUtil: {
1267
1437
  unit: "custom";
1268
1438
  }>;
1269
1439
  (value: {
1270
- size: number;
1440
+ size: number | "";
1271
1441
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1272
1442
  } | {
1273
- size: number;
1443
+ size: number | "";
1274
1444
  unit: "deg" | "rad" | "grad" | "turn";
1275
1445
  } | {
1276
- size: number;
1446
+ size: number | "";
1277
1447
  unit: "s" | "ms";
1278
1448
  } | {
1279
1449
  size: "";
@@ -1282,13 +1452,13 @@ declare const sizePropTypeUtil: {
1282
1452
  size: string;
1283
1453
  unit: "custom";
1284
1454
  }, createOptions?: CreateOptions): TransformablePropValue$1<"size", {
1285
- size: number;
1455
+ size: number | "";
1286
1456
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1287
1457
  } | {
1288
- size: number;
1458
+ size: number | "";
1289
1459
  unit: "deg" | "rad" | "grad" | "turn";
1290
1460
  } | {
1291
- size: number;
1461
+ size: number | "";
1292
1462
  unit: "s" | "ms";
1293
1463
  } | {
1294
1464
  size: "";
@@ -1298,13 +1468,13 @@ declare const sizePropTypeUtil: {
1298
1468
  unit: "custom";
1299
1469
  }>;
1300
1470
  (value: (prev?: {
1301
- size: number;
1471
+ size: number | "";
1302
1472
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1303
1473
  } | {
1304
- size: number;
1474
+ size: number | "";
1305
1475
  unit: "deg" | "rad" | "grad" | "turn";
1306
1476
  } | {
1307
- size: number;
1477
+ size: number | "";
1308
1478
  unit: "s" | "ms";
1309
1479
  } | {
1310
1480
  size: "";
@@ -1313,13 +1483,13 @@ declare const sizePropTypeUtil: {
1313
1483
  size: string;
1314
1484
  unit: "custom";
1315
1485
  } | undefined) => {
1316
- size: number;
1486
+ size: number | "";
1317
1487
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1318
1488
  } | {
1319
- size: number;
1489
+ size: number | "";
1320
1490
  unit: "deg" | "rad" | "grad" | "turn";
1321
1491
  } | {
1322
- size: number;
1492
+ size: number | "";
1323
1493
  unit: "s" | "ms";
1324
1494
  } | {
1325
1495
  size: "";
@@ -1328,13 +1498,13 @@ declare const sizePropTypeUtil: {
1328
1498
  size: string;
1329
1499
  unit: "custom";
1330
1500
  }, createOptions: CreateOptions): TransformablePropValue$1<"size", {
1331
- size: number;
1501
+ size: number | "";
1332
1502
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1333
1503
  } | {
1334
- size: number;
1504
+ size: number | "";
1335
1505
  unit: "deg" | "rad" | "grad" | "turn";
1336
1506
  } | {
1337
- size: number;
1507
+ size: number | "";
1338
1508
  unit: "s" | "ms";
1339
1509
  } | {
1340
1510
  size: "";
@@ -1347,13 +1517,13 @@ declare const sizePropTypeUtil: {
1347
1517
  schema: z.ZodObject<{
1348
1518
  $$type: z.ZodLiteral<"size">;
1349
1519
  value: z.ZodType<{
1350
- size: number;
1520
+ size: number | "";
1351
1521
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1352
1522
  } | {
1353
- size: number;
1523
+ size: number | "";
1354
1524
  unit: "deg" | "rad" | "grad" | "turn";
1355
1525
  } | {
1356
- size: number;
1526
+ size: number | "";
1357
1527
  unit: "s" | "ms";
1358
1528
  } | {
1359
1529
  size: "";
@@ -1362,13 +1532,13 @@ declare const sizePropTypeUtil: {
1362
1532
  size: string;
1363
1533
  unit: "custom";
1364
1534
  }, z.ZodTypeDef, {
1365
- size: number;
1535
+ size: number | "";
1366
1536
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1367
1537
  } | {
1368
- size: number;
1538
+ size: number | "";
1369
1539
  unit: "deg" | "rad" | "grad" | "turn";
1370
1540
  } | {
1371
- size: number;
1541
+ size: number | "";
1372
1542
  unit: "s" | "ms";
1373
1543
  } | {
1374
1544
  size: "";
@@ -1381,13 +1551,13 @@ declare const sizePropTypeUtil: {
1381
1551
  }, "strict", z.ZodTypeAny, {
1382
1552
  $$type: "size";
1383
1553
  value: {
1384
- size: number;
1554
+ size: number | "";
1385
1555
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1386
1556
  } | {
1387
- size: number;
1557
+ size: number | "";
1388
1558
  unit: "deg" | "rad" | "grad" | "turn";
1389
1559
  } | {
1390
- size: number;
1560
+ size: number | "";
1391
1561
  unit: "s" | "ms";
1392
1562
  } | {
1393
1563
  size: "";
@@ -1400,13 +1570,13 @@ declare const sizePropTypeUtil: {
1400
1570
  }, {
1401
1571
  $$type: "size";
1402
1572
  value: {
1403
- size: number;
1573
+ size: number | "";
1404
1574
  unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
1405
1575
  } | {
1406
- size: number;
1576
+ size: number | "";
1407
1577
  unit: "deg" | "rad" | "grad" | "turn";
1408
1578
  } | {
1409
- size: number;
1579
+ size: number | "";
1410
1580
  unit: "s" | "ms";
1411
1581
  } | {
1412
1582
  size: "";
@@ -6779,4 +6949,4 @@ declare const Schema: {
6779
6949
  removeIntention: typeof removeIntention;
6780
6950
  };
6781
6951
 
6782
- export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type HtmlV3PropValue, type HtmlV3Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, type VideoAttachmentIdPropValue, type VideoSrcPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };
6952
+ export { type AnyTransformable, type ArrayPropType, type ArrayPropValue, type BackdropFilterItemPropValue, type BackdropFilterPropValue, type BackgroundColorOverlayPropValue, type BackgroundGradientOverlayPropValue, type BackgroundImageOverlayPropValue, type BackgroundImagePositionOffsetPropValue, type BackgroundImageSizeScalePropValue, type BackgroundOverlayImagePropType, type BackgroundOverlayItemPropValue, type BackgroundOverlayPropType, type BackgroundOverlayPropValue, type BackgroundPropValue, type BooleanPropValue, type BorderRadiusPropValue, type BorderWidthPropValue, type BoxShadowPropValue, CLASSES_PROP_KEY, type ChildElement, type ClassesPropValue, type ColorPropValue, type ColorStopPropValue, type CreateOptions, DateTimePropTypeUtil, type DateTimePropValue, type Dependency, type DependencyOperator, type DependencyTerm, type DimensionsPropValue, type DropShadowFilterPropValue, type EmailPropValue, type FilterItemPropValue, type FilterPropValue, type FlexPropValue, type GradientColorStopPropValue, type HtmlPropValue, type HtmlV2PropValue, type HtmlV2Value, type HtmlV3PropValue, type HtmlV3Value, type ImageAttachmentIdPropValue, type ImagePropValue, type ImageSrcPropValue, type JsonSchema7, type KeyValuePropValue, type LayoutDirectionPropValue, type LinkPropValue, type MoveTransformPropValue, type NumberPropValue, type ObjectPropType, type ObjectPropValue, type ParseResult, type PerspectiveOriginPropValue, type PlainPropType, type PlainPropValue, type PositionPropTypeValue, type PropKey, type PropType, type PropTypeKey, type PropTypeUtil, type PropValue, type Props, type PropsSchema, type QueryPropValue, type RotateTransformPropValue, type ScaleTransformPropValue, Schema, type SelectionSizePropValue, type ShadowPropValue, type SizePropValue, type SkewTransformPropValue, type StringArrayPropValue, type StringPropValue, type StrokePropValue, type SvgSrcPropValue, type TransformFunctionsItemPropValue, type TransformFunctionsPropValue, type TransformOriginPropValue, type TransformPropValue, type TransformablePropType, type TransformablePropValue$1 as TransformablePropValue, type UnionPropType, type UrlPropValue, type VideoAttachmentIdPropValue, type VideoSrcPropValue, backdropFilterPropTypeUtil, backgroundColorOverlayPropTypeUtil, backgroundGradientOverlayPropTypeUtil, backgroundImageOverlayPropTypeUtil, backgroundImagePositionOffsetPropTypeUtil, backgroundImageSizeScalePropTypeUtil, backgroundOverlayItem, backgroundOverlayPropTypeUtil, backgroundPropTypeUtil, blurFilterPropTypeUtil, booleanPropTypeUtil, borderRadiusPropTypeUtil, borderWidthPropTypeUtil, boxShadowPropTypeUtil, classesPropTypeUtil, colorPropTypeUtil, colorStopPropTypeUtil, colorToneFilterPropTypeUtil, createArrayPropUtils, createPropUtils, cssFilterFunctionPropUtil, dimensionsPropTypeUtil, dropShadowFilterPropTypeUtil, emailPropTypeUtil, evaluateTerm, extractValue, filterEmptyValues, filterPropTypeUtil, flexPropTypeUtil, getPropSchemaFromCache, gradientColorStopPropTypeUtil, htmlPropTypeUtil, htmlV2PropTypeUtil, htmlV3PropTypeUtil, hueRotateFilterPropTypeUtil, imageAttachmentIdPropType, imagePropTypeUtil, imageSrcPropTypeUtil, intensityFilterPropTypeUtil, isDependency, isDependencyMet, isEmpty, isTransformable, keyValuePropTypeUtil, layoutDirectionPropTypeUtil, linkPropTypeUtil, mergeProps, moveTransformPropTypeUtil, numberPropTypeUtil, parseHtmlChildren, perspectiveOriginPropTypeUtil, positionPropTypeUtil, queryPropTypeUtil, rotateTransformPropTypeUtil, scaleTransformPropTypeUtil, selectionSizePropTypeUtil, shadowPropTypeUtil, sizePropTypeUtil, skewTransformPropTypeUtil, stringArrayPropTypeUtil, stringPropTypeUtil, strokePropTypeUtil, svgSrcPropTypeUtil, transformFunctionsPropTypeUtil, transformOriginPropTypeUtil, transformPropTypeUtil, urlPropTypeUtil, videoAttachmentIdPropType, videoSrcPropTypeUtil };