@charisol/plexo-sdk 1.4.5 → 1.4.6

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.
@@ -52,6 +52,7 @@ export declare const getDefaultStyle: (type: string) => {
52
52
  dividerColor?: undefined;
53
53
  contentPadding?: undefined;
54
54
  minHeight?: undefined;
55
+ maxWidth?: undefined;
55
56
  } | {
56
57
  color: string;
57
58
  fontSize: string;
@@ -97,6 +98,7 @@ export declare const getDefaultStyle: (type: string) => {
97
98
  dividerColor?: undefined;
98
99
  contentPadding?: undefined;
99
100
  minHeight?: undefined;
101
+ maxWidth?: undefined;
100
102
  } | {
101
103
  color: string;
102
104
  fontSize: string;
@@ -142,6 +144,7 @@ export declare const getDefaultStyle: (type: string) => {
142
144
  dividerColor?: undefined;
143
145
  contentPadding?: undefined;
144
146
  minHeight?: undefined;
147
+ maxWidth?: undefined;
145
148
  } | {
146
149
  color: string;
147
150
  backgroundColor: string;
@@ -187,6 +190,7 @@ export declare const getDefaultStyle: (type: string) => {
187
190
  dividerColor?: undefined;
188
191
  contentPadding?: undefined;
189
192
  minHeight?: undefined;
193
+ maxWidth?: undefined;
190
194
  } | {
191
195
  borderRadius: string;
192
196
  width: string;
@@ -232,6 +236,7 @@ export declare const getDefaultStyle: (type: string) => {
232
236
  dividerColor?: undefined;
233
237
  contentPadding?: undefined;
234
238
  minHeight?: undefined;
239
+ maxWidth?: undefined;
235
240
  } | {
236
241
  backgroundColor: string;
237
242
  borderRadius: string;
@@ -277,6 +282,7 @@ export declare const getDefaultStyle: (type: string) => {
277
282
  dividerColor?: undefined;
278
283
  contentPadding?: undefined;
279
284
  minHeight?: undefined;
285
+ maxWidth?: undefined;
280
286
  } | {
281
287
  backgroundColor: string;
282
288
  borderRadius: string;
@@ -322,6 +328,7 @@ export declare const getDefaultStyle: (type: string) => {
322
328
  dividerColor?: undefined;
323
329
  contentPadding?: undefined;
324
330
  minHeight?: undefined;
331
+ maxWidth?: undefined;
325
332
  } | {
326
333
  color: string;
327
334
  backgroundColor: string;
@@ -367,6 +374,7 @@ export declare const getDefaultStyle: (type: string) => {
367
374
  dividerColor?: undefined;
368
375
  contentPadding?: undefined;
369
376
  minHeight?: undefined;
377
+ maxWidth?: undefined;
370
378
  } | {
371
379
  color: string;
372
380
  fontSize: string;
@@ -412,6 +420,7 @@ export declare const getDefaultStyle: (type: string) => {
412
420
  dividerColor?: undefined;
413
421
  contentPadding?: undefined;
414
422
  minHeight?: undefined;
423
+ maxWidth?: undefined;
415
424
  } | {
416
425
  padding: string;
417
426
  color?: undefined;
@@ -457,6 +466,7 @@ export declare const getDefaultStyle: (type: string) => {
457
466
  dividerColor?: undefined;
458
467
  contentPadding?: undefined;
459
468
  minHeight?: undefined;
469
+ maxWidth?: undefined;
460
470
  } | {
461
471
  padding: string;
462
472
  borderWidth: string;
@@ -502,6 +512,7 @@ export declare const getDefaultStyle: (type: string) => {
502
512
  dividerColor?: undefined;
503
513
  contentPadding?: undefined;
504
514
  minHeight?: undefined;
515
+ maxWidth?: undefined;
505
516
  } | {
506
517
  color: string;
507
518
  backgroundColor: string;
@@ -547,6 +558,7 @@ export declare const getDefaultStyle: (type: string) => {
547
558
  dividerColor?: undefined;
548
559
  contentPadding?: undefined;
549
560
  minHeight?: undefined;
561
+ maxWidth?: undefined;
550
562
  } | {
551
563
  padding: string;
552
564
  borderRadius: string;
@@ -592,6 +604,7 @@ export declare const getDefaultStyle: (type: string) => {
592
604
  dividerColor?: undefined;
593
605
  contentPadding?: undefined;
594
606
  minHeight?: undefined;
607
+ maxWidth?: undefined;
595
608
  } | {
596
609
  padding: string;
597
610
  textAlign: string;
@@ -637,6 +650,7 @@ export declare const getDefaultStyle: (type: string) => {
637
650
  dividerColor?: undefined;
638
651
  contentPadding?: undefined;
639
652
  minHeight?: undefined;
653
+ maxWidth?: undefined;
640
654
  } | {
641
655
  headerBackgroundColor: string;
642
656
  headerTextColor: string;
@@ -682,6 +696,7 @@ export declare const getDefaultStyle: (type: string) => {
682
696
  buttonWidth?: undefined;
683
697
  cellPadding?: undefined;
684
698
  minHeight?: undefined;
699
+ maxWidth?: undefined;
685
700
  } | {
686
701
  padding: string;
687
702
  width: string;
@@ -727,6 +742,7 @@ export declare const getDefaultStyle: (type: string) => {
727
742
  dividerColor?: undefined;
728
743
  contentPadding?: undefined;
729
744
  minHeight?: undefined;
745
+ maxWidth?: undefined;
730
746
  } | {
731
747
  padding: string;
732
748
  width: string;
@@ -772,6 +788,99 @@ export declare const getDefaultStyle: (type: string) => {
772
788
  contentFontSize?: undefined;
773
789
  dividerColor?: undefined;
774
790
  contentPadding?: undefined;
791
+ maxWidth?: undefined;
792
+ } | {
793
+ padding: string;
794
+ width: string;
795
+ maxWidth: string;
796
+ minHeight: string;
797
+ borderRadius: string;
798
+ borderWidth: string;
799
+ borderStyle: string;
800
+ borderColor: string;
801
+ color?: undefined;
802
+ fontSize?: undefined;
803
+ fontWeight?: undefined;
804
+ textAlign?: undefined;
805
+ lineHeight?: undefined;
806
+ backgroundColor?: undefined;
807
+ boxShadow?: undefined;
808
+ paddingTop?: undefined;
809
+ paddingRight?: undefined;
810
+ paddingBottom?: undefined;
811
+ paddingLeft?: undefined;
812
+ fieldSpacing?: undefined;
813
+ buttonBackgroundColor?: undefined;
814
+ buttonTextColor?: undefined;
815
+ buttonBorderRadius?: undefined;
816
+ buttonPaddingTop?: undefined;
817
+ buttonPaddingBottom?: undefined;
818
+ buttonPaddingLeft?: undefined;
819
+ buttonPaddingRight?: undefined;
820
+ buttonFontSize?: undefined;
821
+ buttonFontWeight?: undefined;
822
+ buttonAlign?: undefined;
823
+ buttonWidth?: undefined;
824
+ cellPadding?: undefined;
825
+ headerBackgroundColor?: undefined;
826
+ headerTextColor?: undefined;
827
+ headerHoverBackgroundColor?: undefined;
828
+ headerActiveBackgroundColor?: undefined;
829
+ headerActiveTextColor?: undefined;
830
+ headerFontSize?: undefined;
831
+ headerFontWeight?: undefined;
832
+ iconColor?: undefined;
833
+ contentBackgroundColor?: undefined;
834
+ contentTextColor?: undefined;
835
+ contentFontSize?: undefined;
836
+ dividerColor?: undefined;
837
+ contentPadding?: undefined;
838
+ } | {
839
+ padding: string;
840
+ width: string;
841
+ maxWidth: string;
842
+ minHeight: string;
843
+ color?: undefined;
844
+ fontSize?: undefined;
845
+ fontWeight?: undefined;
846
+ textAlign?: undefined;
847
+ lineHeight?: undefined;
848
+ backgroundColor?: undefined;
849
+ borderRadius?: undefined;
850
+ borderWidth?: undefined;
851
+ borderStyle?: undefined;
852
+ borderColor?: undefined;
853
+ boxShadow?: undefined;
854
+ paddingTop?: undefined;
855
+ paddingRight?: undefined;
856
+ paddingBottom?: undefined;
857
+ paddingLeft?: undefined;
858
+ fieldSpacing?: undefined;
859
+ buttonBackgroundColor?: undefined;
860
+ buttonTextColor?: undefined;
861
+ buttonBorderRadius?: undefined;
862
+ buttonPaddingTop?: undefined;
863
+ buttonPaddingBottom?: undefined;
864
+ buttonPaddingLeft?: undefined;
865
+ buttonPaddingRight?: undefined;
866
+ buttonFontSize?: undefined;
867
+ buttonFontWeight?: undefined;
868
+ buttonAlign?: undefined;
869
+ buttonWidth?: undefined;
870
+ cellPadding?: undefined;
871
+ headerBackgroundColor?: undefined;
872
+ headerTextColor?: undefined;
873
+ headerHoverBackgroundColor?: undefined;
874
+ headerActiveBackgroundColor?: undefined;
875
+ headerActiveTextColor?: undefined;
876
+ headerFontSize?: undefined;
877
+ headerFontWeight?: undefined;
878
+ iconColor?: undefined;
879
+ contentBackgroundColor?: undefined;
880
+ contentTextColor?: undefined;
881
+ contentFontSize?: undefined;
882
+ dividerColor?: undefined;
883
+ contentPadding?: undefined;
775
884
  } | {
776
885
  color?: undefined;
777
886
  fontSize?: undefined;
@@ -817,6 +926,7 @@ export declare const getDefaultStyle: (type: string) => {
817
926
  dividerColor?: undefined;
818
927
  contentPadding?: undefined;
819
928
  minHeight?: undefined;
929
+ maxWidth?: undefined;
820
930
  };
821
931
  export declare const normalizeTemplateWithDefaults: (data: TemplateJSON) => TemplateJSON;
822
932
  export declare const getDefaultAttributes: (type: string) => {
@@ -852,6 +962,8 @@ export declare const getDefaultAttributes: (type: string) => {
852
962
  animation?: undefined;
853
963
  showDividers?: undefined;
854
964
  items?: undefined;
965
+ productId?: undefined;
966
+ serviceId?: undefined;
855
967
  } | {
856
968
  text: string;
857
969
  href: string;
@@ -885,6 +997,8 @@ export declare const getDefaultAttributes: (type: string) => {
885
997
  animation?: undefined;
886
998
  showDividers?: undefined;
887
999
  items?: undefined;
1000
+ productId?: undefined;
1001
+ serviceId?: undefined;
888
1002
  } | {
889
1003
  src: string;
890
1004
  alt: string;
@@ -918,6 +1032,8 @@ export declare const getDefaultAttributes: (type: string) => {
918
1032
  animation?: undefined;
919
1033
  showDividers?: undefined;
920
1034
  items?: undefined;
1035
+ productId?: undefined;
1036
+ serviceId?: undefined;
921
1037
  } | {
922
1038
  title: string;
923
1039
  description: string;
@@ -951,6 +1067,8 @@ export declare const getDefaultAttributes: (type: string) => {
951
1067
  animation?: undefined;
952
1068
  showDividers?: undefined;
953
1069
  items?: undefined;
1070
+ productId?: undefined;
1071
+ serviceId?: undefined;
954
1072
  } | {
955
1073
  formName: string;
956
1074
  submitLabel: string;
@@ -984,6 +1102,8 @@ export declare const getDefaultAttributes: (type: string) => {
984
1102
  animation?: undefined;
985
1103
  showDividers?: undefined;
986
1104
  items?: undefined;
1105
+ productId?: undefined;
1106
+ serviceId?: undefined;
987
1107
  } | {
988
1108
  name: string;
989
1109
  placeholder: string;
@@ -1017,6 +1137,8 @@ export declare const getDefaultAttributes: (type: string) => {
1017
1137
  animation?: undefined;
1018
1138
  showDividers?: undefined;
1019
1139
  items?: undefined;
1140
+ productId?: undefined;
1141
+ serviceId?: undefined;
1020
1142
  } | {
1021
1143
  name: string;
1022
1144
  options: {
@@ -1053,6 +1175,8 @@ export declare const getDefaultAttributes: (type: string) => {
1053
1175
  animation?: undefined;
1054
1176
  showDividers?: undefined;
1055
1177
  items?: undefined;
1178
+ productId?: undefined;
1179
+ serviceId?: undefined;
1056
1180
  } | {
1057
1181
  links: {
1058
1182
  label: string;
@@ -1089,6 +1213,8 @@ export declare const getDefaultAttributes: (type: string) => {
1089
1213
  animation?: undefined;
1090
1214
  showDividers?: undefined;
1091
1215
  items?: undefined;
1216
+ productId?: undefined;
1217
+ serviceId?: undefined;
1092
1218
  } | {
1093
1219
  htmlContent: string;
1094
1220
  text?: undefined;
@@ -1122,6 +1248,8 @@ export declare const getDefaultAttributes: (type: string) => {
1122
1248
  animation?: undefined;
1123
1249
  showDividers?: undefined;
1124
1250
  items?: undefined;
1251
+ productId?: undefined;
1252
+ serviceId?: undefined;
1125
1253
  } | {
1126
1254
  rowCount: number;
1127
1255
  colCount: number;
@@ -1155,6 +1283,8 @@ export declare const getDefaultAttributes: (type: string) => {
1155
1283
  animation?: undefined;
1156
1284
  showDividers?: undefined;
1157
1285
  items?: undefined;
1286
+ productId?: undefined;
1287
+ serviceId?: undefined;
1158
1288
  } | {
1159
1289
  targetDate: string;
1160
1290
  text?: undefined;
@@ -1188,6 +1318,8 @@ export declare const getDefaultAttributes: (type: string) => {
1188
1318
  animation?: undefined;
1189
1319
  showDividers?: undefined;
1190
1320
  items?: undefined;
1321
+ productId?: undefined;
1322
+ serviceId?: undefined;
1191
1323
  } | {
1192
1324
  videoUrl: string;
1193
1325
  text?: undefined;
@@ -1221,6 +1353,8 @@ export declare const getDefaultAttributes: (type: string) => {
1221
1353
  animation?: undefined;
1222
1354
  showDividers?: undefined;
1223
1355
  items?: undefined;
1356
+ productId?: undefined;
1357
+ serviceId?: undefined;
1224
1358
  } | {
1225
1359
  links: {
1226
1360
  provider: string;
@@ -1257,6 +1391,8 @@ export declare const getDefaultAttributes: (type: string) => {
1257
1391
  animation?: undefined;
1258
1392
  showDividers?: undefined;
1259
1393
  items?: undefined;
1394
+ productId?: undefined;
1395
+ serviceId?: undefined;
1260
1396
  } | {
1261
1397
  images: {
1262
1398
  src: string;
@@ -1293,6 +1429,8 @@ export declare const getDefaultAttributes: (type: string) => {
1293
1429
  animation?: undefined;
1294
1430
  showDividers?: undefined;
1295
1431
  items?: undefined;
1432
+ productId?: undefined;
1433
+ serviceId?: undefined;
1296
1434
  } | {
1297
1435
  iconName: string;
1298
1436
  iconSize: string;
@@ -1326,6 +1464,8 @@ export declare const getDefaultAttributes: (type: string) => {
1326
1464
  animation?: undefined;
1327
1465
  showDividers?: undefined;
1328
1466
  items?: undefined;
1467
+ productId?: undefined;
1468
+ serviceId?: undefined;
1329
1469
  } | {
1330
1470
  mode: string;
1331
1471
  iconStyle: string;
@@ -1365,6 +1505,78 @@ export declare const getDefaultAttributes: (type: string) => {
1365
1505
  images?: undefined;
1366
1506
  iconName?: undefined;
1367
1507
  iconSize?: undefined;
1508
+ productId?: undefined;
1509
+ serviceId?: undefined;
1510
+ } | {
1511
+ productId: null;
1512
+ text?: undefined;
1513
+ href?: undefined;
1514
+ openInNewTab?: undefined;
1515
+ autoWidth?: undefined;
1516
+ src?: undefined;
1517
+ alt?: undefined;
1518
+ linkType?: undefined;
1519
+ title?: undefined;
1520
+ description?: undefined;
1521
+ formName?: undefined;
1522
+ submitLabel?: undefined;
1523
+ fields?: undefined;
1524
+ buttonAutoWidth?: undefined;
1525
+ name?: undefined;
1526
+ placeholder?: undefined;
1527
+ required?: undefined;
1528
+ options?: undefined;
1529
+ links?: undefined;
1530
+ htmlContent?: undefined;
1531
+ rowCount?: undefined;
1532
+ colCount?: undefined;
1533
+ targetDate?: undefined;
1534
+ videoUrl?: undefined;
1535
+ images?: undefined;
1536
+ iconName?: undefined;
1537
+ iconSize?: undefined;
1538
+ mode?: undefined;
1539
+ iconStyle?: undefined;
1540
+ iconPosition?: undefined;
1541
+ animation?: undefined;
1542
+ showDividers?: undefined;
1543
+ items?: undefined;
1544
+ serviceId?: undefined;
1545
+ } | {
1546
+ serviceId: null;
1547
+ text?: undefined;
1548
+ href?: undefined;
1549
+ openInNewTab?: undefined;
1550
+ autoWidth?: undefined;
1551
+ src?: undefined;
1552
+ alt?: undefined;
1553
+ linkType?: undefined;
1554
+ title?: undefined;
1555
+ description?: undefined;
1556
+ formName?: undefined;
1557
+ submitLabel?: undefined;
1558
+ fields?: undefined;
1559
+ buttonAutoWidth?: undefined;
1560
+ name?: undefined;
1561
+ placeholder?: undefined;
1562
+ required?: undefined;
1563
+ options?: undefined;
1564
+ links?: undefined;
1565
+ htmlContent?: undefined;
1566
+ rowCount?: undefined;
1567
+ colCount?: undefined;
1568
+ targetDate?: undefined;
1569
+ videoUrl?: undefined;
1570
+ images?: undefined;
1571
+ iconName?: undefined;
1572
+ iconSize?: undefined;
1573
+ mode?: undefined;
1574
+ iconStyle?: undefined;
1575
+ iconPosition?: undefined;
1576
+ animation?: undefined;
1577
+ showDividers?: undefined;
1578
+ items?: undefined;
1579
+ productId?: undefined;
1368
1580
  } | {
1369
1581
  text?: undefined;
1370
1582
  href?: undefined;
@@ -1398,4 +1610,6 @@ export declare const getDefaultAttributes: (type: string) => {
1398
1610
  animation?: undefined;
1399
1611
  showDividers?: undefined;
1400
1612
  items?: undefined;
1613
+ productId?: undefined;
1614
+ serviceId?: undefined;
1401
1615
  };
@@ -113,6 +113,16 @@ export interface SitePage {
113
113
  parentId: string | null;
114
114
  order: number;
115
115
  }
116
+ /**
117
+ * Fetched the same way SitePage is (see PlexoBuilder.tsx's sitePages effect) — used by
118
+ * ProductPropertiesAccordion/BookingPropertiesAccordion to populate the "pick a product/
119
+ * service" dropdown for the `product`/`booking` marker blocks.
120
+ */
121
+ export interface CommerceProductOption {
122
+ id: string;
123
+ name: string;
124
+ kind: 'PHYSICAL' | 'SERVICE';
125
+ }
116
126
  export interface PlexoBuilderProps {
117
127
  showSaveButton?: boolean;
118
128
  mode: PlexoTargetType;
@@ -205,6 +215,17 @@ export interface PlexoBuilderProps {
205
215
  * @default false
206
216
  */
207
217
  isBlogLayout?: boolean;
218
+ /**
219
+ * When true, the Content tab's palette also shows the "Commerce" block group (Product,
220
+ * Book Consultation, Shop Grid, Cart, Checkout, Order Confirmation, Track Order) —
221
+ * marker elements a host commerce-rendering layer finds and fills with real product/
222
+ * cart/order data at render time (see ElementType's product/booking/shop_grid/etc.
223
+ * variants). Unlike isBlogLayout, this isn't a special-template gate: pass true whenever
224
+ * the current site/org has Commerce enabled, since these blocks are reasonable on any
225
+ * ordinary page, not just a dedicated shop layout.
226
+ * @default false
227
+ */
228
+ commerceEnabled?: boolean;
208
229
  /**
209
230
  * Forces the canvas into its read-only preview state (drag-and-drop, property panels,
210
231
  * and the Save button are all unavailable) regardless of the built-in Preview/Edit
@@ -38,7 +38,7 @@ export interface ElementAttributes {
38
38
  }>;
39
39
  [key: string]: any;
40
40
  }
41
- export type ElementType = 'text' | 'button' | 'image' | 'spacer' | 'divider' | 'card' | 'form_container' | 'input' | 'textarea' | 'select' | 'heading' | 'paragraph' | 'carousel' | 'video' | 'social' | 'menu' | 'html' | 'table' | 'timer' | 'icon' | 'accordion' | 'blog_title' | 'blog_content' | 'blog_featured_image' | 'blog_date' | 'blog_author' | 'blog_categories' | 'blog_comments' | 'blog_post_list';
41
+ export type ElementType = 'text' | 'button' | 'image' | 'spacer' | 'divider' | 'card' | 'form_container' | 'input' | 'textarea' | 'select' | 'heading' | 'paragraph' | 'carousel' | 'video' | 'social' | 'menu' | 'html' | 'table' | 'timer' | 'icon' | 'accordion' | 'blog_title' | 'blog_content' | 'blog_featured_image' | 'blog_date' | 'blog_author' | 'blog_categories' | 'blog_comments' | 'blog_post_list' | 'product' | 'booking' | 'shop_grid' | 'cart_summary' | 'checkout_flow' | 'order_confirmation' | 'order_tracking';
42
42
  export interface ElementJSON {
43
43
  id: string;
44
44
  type: ElementType;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "1.4.5",
4
+ "version": "1.4.6",
5
5
  "description": "Plexo visual email and landing page builder SDK — drag-and-drop template editor with AI integration.",
6
6
  "keywords": [
7
7
  "email-builder",