@elementor/editor-editing-panel 4.0.0-552 → 4.0.0-573

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 CHANGED
@@ -54,7 +54,7 @@ type SettingsFieldProps = {
54
54
  propDisplayName: string;
55
55
  children: react.ReactNode;
56
56
  };
57
- declare const SettingsField: ({ bind, children, propDisplayName }: SettingsFieldProps) => react.JSX.Element;
57
+ declare const SettingsField: ({ bind, children, propDisplayName }: SettingsFieldProps) => react.JSX.Element | null;
58
58
 
59
59
  declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<Theme> & ({
60
60
  isOverridden?: boolean;
@@ -672,27 +672,79 @@ declare const controlTypes: {
672
672
  }) => react.JSX.Element>;
673
673
  readonly layout: "full";
674
674
  readonly propTypeUtil: {
675
- extract: (prop: unknown) => string[] | null;
676
- isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"string-array", string[]>;
675
+ extract: (prop: unknown) => {
676
+ $$type: "string";
677
+ value: string | null;
678
+ disabled?: boolean | undefined;
679
+ }[] | null;
680
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<string, {
681
+ $$type: "string";
682
+ value: string | null;
683
+ disabled?: boolean | undefined;
684
+ }[]>;
677
685
  create: {
678
- (value: string[]): _elementor_editor_props.TransformablePropValue<"string-array", string[]>;
679
- (value: string[], createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string-array", string[]>;
680
- (value: (prev?: string[] | undefined) => string[], createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string-array", string[]>;
686
+ (value: {
687
+ $$type: "string";
688
+ value: string | null;
689
+ disabled?: boolean | undefined;
690
+ }[]): _elementor_editor_props.TransformablePropValue<string, {
691
+ $$type: "string";
692
+ value: string | null;
693
+ disabled?: boolean | undefined;
694
+ }[]>;
695
+ (value: {
696
+ $$type: "string";
697
+ value: string | null;
698
+ disabled?: boolean | undefined;
699
+ }[], createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<string, {
700
+ $$type: "string";
701
+ value: string | null;
702
+ disabled?: boolean | undefined;
703
+ }[]>;
704
+ (value: (prev?: {
705
+ $$type: "string";
706
+ value: string | null;
707
+ disabled?: boolean | undefined;
708
+ }[] | undefined) => {
709
+ $$type: "string";
710
+ value: string | null;
711
+ disabled?: boolean | undefined;
712
+ }[], createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<string, {
713
+ $$type: "string";
714
+ value: string | null;
715
+ disabled?: boolean | undefined;
716
+ }[]>;
681
717
  };
682
718
  schema: zod.ZodObject<{
683
- $$type: zod.ZodLiteral<"string-array">;
684
- value: zod.ZodType<string[], zod.ZodTypeDef, string[]>;
719
+ $$type: zod.ZodLiteral<string>;
720
+ value: zod.ZodType<{
721
+ $$type: "string";
722
+ value: string | null;
723
+ disabled?: boolean | undefined;
724
+ }[], zod.ZodTypeDef, {
725
+ $$type: "string";
726
+ value: string | null;
727
+ disabled?: boolean | undefined;
728
+ }[]>;
685
729
  disabled: zod.ZodOptional<zod.ZodBoolean>;
686
730
  }, "strict", zod.ZodTypeAny, {
687
- $$type: "string-array";
688
- value: string[];
731
+ $$type: string;
732
+ value: {
733
+ $$type: "string";
734
+ value: string | null;
735
+ disabled?: boolean | undefined;
736
+ }[];
689
737
  disabled?: boolean | undefined;
690
738
  }, {
691
- $$type: "string-array";
692
- value: string[];
739
+ $$type: string;
740
+ value: {
741
+ $$type: "string";
742
+ value: string | null;
743
+ disabled?: boolean | undefined;
744
+ }[];
693
745
  disabled?: boolean | undefined;
694
746
  }>;
695
- key: "string-array";
747
+ key: string;
696
748
  };
697
749
  };
698
750
  readonly link: {
@@ -1204,27 +1256,236 @@ declare const controlTypes: {
1204
1256
  }) => react.JSX.Element>;
1205
1257
  readonly layout: "full";
1206
1258
  readonly propTypeUtil: {
1207
- extract: (prop: unknown) => string | null;
1208
- isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"html", string | null>;
1259
+ extract: (prop: unknown) => {
1260
+ content: string | null;
1261
+ children: _elementor_editor_props.ChildElement[];
1262
+ } | null;
1263
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"html-v2", {
1264
+ content: string | null;
1265
+ children: _elementor_editor_props.ChildElement[];
1266
+ }>;
1209
1267
  create: {
1210
- (value: string | null): _elementor_editor_props.TransformablePropValue<"html", string | null>;
1211
- (value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"html", string | null>;
1212
- (value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"html", string | null>;
1268
+ (value: {
1269
+ content: string | null;
1270
+ children: _elementor_editor_props.ChildElement[];
1271
+ }): _elementor_editor_props.TransformablePropValue<"html-v2", {
1272
+ content: string | null;
1273
+ children: _elementor_editor_props.ChildElement[];
1274
+ }>;
1275
+ (value: {
1276
+ content: string | null;
1277
+ children: _elementor_editor_props.ChildElement[];
1278
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"html-v2", {
1279
+ content: string | null;
1280
+ children: _elementor_editor_props.ChildElement[];
1281
+ }>;
1282
+ (value: (prev?: {
1283
+ content: string | null;
1284
+ children: _elementor_editor_props.ChildElement[];
1285
+ } | undefined) => {
1286
+ content: string | null;
1287
+ children: _elementor_editor_props.ChildElement[];
1288
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"html-v2", {
1289
+ content: string | null;
1290
+ children: _elementor_editor_props.ChildElement[];
1291
+ }>;
1213
1292
  };
1214
1293
  schema: zod.ZodObject<{
1215
- $$type: zod.ZodLiteral<"html">;
1216
- value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
1294
+ $$type: zod.ZodLiteral<"html-v2">;
1295
+ value: zod.ZodType<{
1296
+ content: string | null;
1297
+ children: _elementor_editor_props.ChildElement[];
1298
+ }, zod.ZodTypeDef, {
1299
+ content: string | null;
1300
+ children: _elementor_editor_props.ChildElement[];
1301
+ }>;
1217
1302
  disabled: zod.ZodOptional<zod.ZodBoolean>;
1218
1303
  }, "strict", zod.ZodTypeAny, {
1219
- $$type: "html";
1220
- value: string | null;
1304
+ $$type: "html-v2";
1305
+ value: {
1306
+ content: string | null;
1307
+ children: _elementor_editor_props.ChildElement[];
1308
+ };
1221
1309
  disabled?: boolean | undefined;
1222
1310
  }, {
1223
- $$type: "html";
1224
- value: string | null;
1311
+ $$type: "html-v2";
1312
+ value: {
1313
+ content: string | null;
1314
+ children: _elementor_editor_props.ChildElement[];
1315
+ };
1316
+ disabled?: boolean | undefined;
1317
+ }>;
1318
+ key: "html-v2";
1319
+ };
1320
+ };
1321
+ readonly email: {
1322
+ readonly component: ControlComponent<() => react.JSX.Element>;
1323
+ readonly layout: "custom";
1324
+ readonly propTypeUtil: {
1325
+ extract: (prop: unknown) => {
1326
+ message?: any;
1327
+ to?: any;
1328
+ subject?: any;
1329
+ from?: any;
1330
+ "meta-data"?: any;
1331
+ "send-as"?: any;
1332
+ "from-name"?: any;
1333
+ "reply-to"?: any;
1334
+ cc?: any;
1335
+ bcc?: any;
1336
+ } | null;
1337
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"email", {
1338
+ message?: any;
1339
+ to?: any;
1340
+ subject?: any;
1341
+ from?: any;
1342
+ "meta-data"?: any;
1343
+ "send-as"?: any;
1344
+ "from-name"?: any;
1345
+ "reply-to"?: any;
1346
+ cc?: any;
1347
+ bcc?: any;
1348
+ }>;
1349
+ create: {
1350
+ (value: {
1351
+ message?: any;
1352
+ to?: any;
1353
+ subject?: any;
1354
+ from?: any;
1355
+ "meta-data"?: any;
1356
+ "send-as"?: any;
1357
+ "from-name"?: any;
1358
+ "reply-to"?: any;
1359
+ cc?: any;
1360
+ bcc?: any;
1361
+ }): _elementor_editor_props.TransformablePropValue<"email", {
1362
+ message?: any;
1363
+ to?: any;
1364
+ subject?: any;
1365
+ from?: any;
1366
+ "meta-data"?: any;
1367
+ "send-as"?: any;
1368
+ "from-name"?: any;
1369
+ "reply-to"?: any;
1370
+ cc?: any;
1371
+ bcc?: any;
1372
+ }>;
1373
+ (value: {
1374
+ message?: any;
1375
+ to?: any;
1376
+ subject?: any;
1377
+ from?: any;
1378
+ "meta-data"?: any;
1379
+ "send-as"?: any;
1380
+ "from-name"?: any;
1381
+ "reply-to"?: any;
1382
+ cc?: any;
1383
+ bcc?: any;
1384
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"email", {
1385
+ message?: any;
1386
+ to?: any;
1387
+ subject?: any;
1388
+ from?: any;
1389
+ "meta-data"?: any;
1390
+ "send-as"?: any;
1391
+ "from-name"?: any;
1392
+ "reply-to"?: any;
1393
+ cc?: any;
1394
+ bcc?: any;
1395
+ }>;
1396
+ (value: (prev?: {
1397
+ message?: any;
1398
+ to?: any;
1399
+ subject?: any;
1400
+ from?: any;
1401
+ "meta-data"?: any;
1402
+ "send-as"?: any;
1403
+ "from-name"?: any;
1404
+ "reply-to"?: any;
1405
+ cc?: any;
1406
+ bcc?: any;
1407
+ } | undefined) => {
1408
+ message?: any;
1409
+ to?: any;
1410
+ subject?: any;
1411
+ from?: any;
1412
+ "meta-data"?: any;
1413
+ "send-as"?: any;
1414
+ "from-name"?: any;
1415
+ "reply-to"?: any;
1416
+ cc?: any;
1417
+ bcc?: any;
1418
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"email", {
1419
+ message?: any;
1420
+ to?: any;
1421
+ subject?: any;
1422
+ from?: any;
1423
+ "meta-data"?: any;
1424
+ "send-as"?: any;
1425
+ "from-name"?: any;
1426
+ "reply-to"?: any;
1427
+ cc?: any;
1428
+ bcc?: any;
1429
+ }>;
1430
+ };
1431
+ schema: zod.ZodObject<{
1432
+ $$type: zod.ZodLiteral<"email">;
1433
+ value: zod.ZodType<{
1434
+ message?: any;
1435
+ to?: any;
1436
+ subject?: any;
1437
+ from?: any;
1438
+ "meta-data"?: any;
1439
+ "send-as"?: any;
1440
+ "from-name"?: any;
1441
+ "reply-to"?: any;
1442
+ cc?: any;
1443
+ bcc?: any;
1444
+ }, zod.ZodTypeDef, {
1445
+ message?: any;
1446
+ to?: any;
1447
+ subject?: any;
1448
+ from?: any;
1449
+ "meta-data"?: any;
1450
+ "send-as"?: any;
1451
+ "from-name"?: any;
1452
+ "reply-to"?: any;
1453
+ cc?: any;
1454
+ bcc?: any;
1455
+ }>;
1456
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
1457
+ }, "strict", zod.ZodTypeAny, {
1458
+ $$type: "email";
1459
+ value: {
1460
+ message?: any;
1461
+ to?: any;
1462
+ subject?: any;
1463
+ from?: any;
1464
+ "meta-data"?: any;
1465
+ "send-as"?: any;
1466
+ "from-name"?: any;
1467
+ "reply-to"?: any;
1468
+ cc?: any;
1469
+ bcc?: any;
1470
+ };
1471
+ disabled?: boolean | undefined;
1472
+ }, {
1473
+ $$type: "email";
1474
+ value: {
1475
+ message?: any;
1476
+ to?: any;
1477
+ subject?: any;
1478
+ from?: any;
1479
+ "meta-data"?: any;
1480
+ "send-as"?: any;
1481
+ "from-name"?: any;
1482
+ "reply-to"?: any;
1483
+ cc?: any;
1484
+ bcc?: any;
1485
+ };
1225
1486
  disabled?: boolean | undefined;
1226
1487
  }>;
1227
- key: "html";
1488
+ key: "email";
1228
1489
  };
1229
1490
  };
1230
1491
  };