monto-email-builder 1.4.3 → 1.4.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"TextSidebarPanel.d.ts","sourceRoot":"","sources":["../../../../../src/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAA4C,MAAM,wBAAwB,CAAC;AAkE7F,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;CACjC,CAAC;AAqHF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,qBAAqB,2CAu+BzF"}
1
+ {"version":3,"file":"TextSidebarPanel.d.ts","sourceRoot":"","sources":["../../../../../src/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAA4C,MAAM,wBAAwB,CAAC;AAyE7F,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;CACjC,CAAC;AAqHF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,qBAAqB,2CAggCzF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/HtmlEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6F,MAAM,OAAO,CAAC;AAmBlH,OAAO,EAaL,OAAO,EAIP,KAAK,EAKN,MAAM,eAAe,CAAC;AAWvB,OAAO,EAAE,Q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
3
3
  newDocument: "New Blank Document",
4
4
  useBuiltInTemplates: "Use Built-in Templates",
5
5
  emailBuilder: "Monto Email Builder",
@@ -22,7 +22,7 @@ const f = {
22
22
  undoTooltip: "Undo (Ctrl/Cmd + Z)",
23
23
  redo: "Redo",
24
24
  redoTooltip: "Redo (Ctrl/Cmd + Shift + Z)"
25
- }, v = {
25
+ }, k = {
26
26
  welcomeEmail: "Marketing Template",
27
27
  oneTimePasscode: "One-time passcode (OTP)",
28
28
  resetPassword: "Reset password",
@@ -32,17 +32,17 @@ const f = {
32
32
  postMetrics: "Post metrics",
33
33
  respondToMessage: "Respond to inquiry",
34
34
  quickStart: "Quick Start"
35
- }, k = {
35
+ }, x = {
36
36
  styles: "Styles",
37
37
  inspect: "Inspect",
38
38
  clickBlockToInspect: "Click on a block to inspect.",
39
39
  blockNotFound: "Block with id {{id}} was not found. Click on a block to reset."
40
- }, x = {
40
+ }, S = {
41
41
  edit: "Edit",
42
42
  preview: "Preview",
43
43
  htmlOutput: "HTML output",
44
44
  jsonOutput: "JSON output"
45
- }, S = {
45
+ }, C = {
46
46
  title: "Image block",
47
47
  name: "Image",
48
48
  sourceUrl: "Source URL",
@@ -58,7 +58,7 @@ const f = {
58
58
  uploading: "Uploading...",
59
59
  uploadHandlerNotConfigured: "Please configure imageUploadHandler to enable local upload",
60
60
  placeholder: "Add an image"
61
- }, C = {
61
+ }, M = {
62
62
  title: "Video block",
63
63
  name: "Video",
64
64
  sourceUrl: "Video URL",
@@ -79,7 +79,7 @@ const f = {
79
79
  loop: "Loop",
80
80
  muted: "Muted",
81
81
  controls: "Show controls"
82
- }, M = {
82
+ }, T = {
83
83
  title: "Columns block",
84
84
  name: "Columns",
85
85
  layout: "Layout",
@@ -97,7 +97,7 @@ const f = {
97
97
  confirmChangeMessage: "Changing the column layout will delete data in some columns. This action cannot be undone. Are you sure you want to continue?",
98
98
  cancel: "Cancel",
99
99
  confirm: "Confirm"
100
- }, T = {
100
+ }, w = {
101
101
  global: "Global",
102
102
  backdropColor: "Backdrop color",
103
103
  canvasColor: "Canvas color",
@@ -106,7 +106,7 @@ const f = {
106
106
  pageWidth: "Page width",
107
107
  fontFamily: "Font family",
108
108
  textColor: "Text color"
109
- }, w = {
109
+ }, R = {
110
110
  title: "Text block",
111
111
  name: "Text",
112
112
  content: "Content",
@@ -173,7 +173,7 @@ const f = {
173
173
  customVariableNameInvalid: "Only letters, numbers, and underscores allowed, starting with a letter or underscore",
174
174
  customVariableNameDuplicate: "Variable name already exists"
175
175
  }
176
- }, R = {
176
+ }, L = {
177
177
  title: "Button block",
178
178
  name: "Button",
179
179
  text: "Text",
@@ -192,12 +192,12 @@ const f = {
192
192
  stylePill: "Pill",
193
193
  textColor: "Text color",
194
194
  buttonColor: "Button color"
195
- }, L = {
195
+ }, A = {
196
196
  title: "Heading block",
197
197
  name: "Heading",
198
198
  content: "Content",
199
199
  level: "Level"
200
- }, A = {
200
+ }, B = {
201
201
  title: "Avatar block",
202
202
  size: "Size",
203
203
  shape: "Shape",
@@ -206,19 +206,19 @@ const f = {
206
206
  shapeRounded: "Rounded",
207
207
  imageUrl: "Image URL",
208
208
  altText: "Alt text"
209
- }, B = {
209
+ }, O = {
210
210
  title: "Divider block",
211
211
  name: "Divider",
212
212
  color: "Color",
213
213
  height: "Height"
214
- }, O = {
214
+ }, F = {
215
215
  title: "Container block",
216
216
  name: "Container"
217
- }, F = {
217
+ }, E = {
218
218
  title: "Spacer block",
219
219
  name: "Spacer",
220
220
  height: "Height"
221
- }, E = {
221
+ }, N = {
222
222
  title: "HTML block",
223
223
  name: "HTML",
224
224
  content: "Content"
@@ -235,7 +235,7 @@ const f = {
235
235
  iconUrl: "Link URL",
236
236
  placeholder: "Click the right panel to add social media icons",
237
237
  addAnother: "Add another social link"
238
- }, N = {
238
+ }, V = {
239
239
  backgroundColor: "Background color",
240
240
  borderColor: "Border color",
241
241
  borderRadius: "Border radius",
@@ -293,27 +293,27 @@ const f = {
293
293
  empty: "No variables yet. Click Save in the code panel to scan, or insert one from the catalog above.",
294
294
  systemDefault: "System variables do not need defaults"
295
295
  }
296
- }, V = {
297
- common: f,
298
- samples: v,
299
- inspector: k,
300
- tabs: x,
301
- image: S,
302
- video: C,
303
- columns: M,
304
- emailLayout: T,
305
- text: w,
306
- button: R,
307
- heading: L,
308
- avatar: A,
309
- divider: B,
310
- container: O,
311
- spacer: F,
312
- html: E,
296
+ }, W = {
297
+ common: v,
298
+ samples: k,
299
+ inspector: x,
300
+ tabs: S,
301
+ image: C,
302
+ video: M,
303
+ columns: T,
304
+ emailLayout: w,
305
+ text: R,
306
+ button: L,
307
+ heading: A,
308
+ avatar: B,
309
+ divider: O,
310
+ container: F,
311
+ spacer: E,
312
+ html: N,
313
313
  socials: U,
314
- style: N,
314
+ style: V,
315
315
  htmlEditor: P
316
- }, W = {
316
+ }, z = {
317
317
  newDocument: "新建空白文档",
318
318
  useBuiltInTemplates: "使用内置模板",
319
319
  emailBuilder: "Monto 邮件编辑器",
@@ -336,7 +336,7 @@ const f = {
336
336
  undoTooltip: "撤销 (Ctrl/Cmd + Z)",
337
337
  redo: "重做",
338
338
  redoTooltip: "重做 (Ctrl/Cmd + Shift + Z)"
339
- }, z = {
339
+ }, I = {
340
340
  welcomeEmail: "营销模板",
341
341
  oneTimePasscode: "一次性密码 (OTP)",
342
342
  resetPassword: "重置密码",
@@ -346,17 +346,17 @@ const f = {
346
346
  postMetrics: "指标报告",
347
347
  respondToMessage: "回复询问",
348
348
  quickStart: "快速开始"
349
- }, I = {
349
+ }, D = {
350
350
  styles: "样式",
351
351
  inspect: "检查",
352
352
  clickBlockToInspect: "点击一个块进行检查。",
353
353
  blockNotFound: "未找到 id 为 {{id}} 的块。点击一个块以重置。"
354
- }, D = {
354
+ }, _ = {
355
355
  edit: "编辑",
356
356
  preview: "预览",
357
357
  htmlOutput: "HTML 输出",
358
358
  jsonOutput: "JSON 输出"
359
- }, _ = {
359
+ }, H = {
360
360
  title: "图片块",
361
361
  name: "图片",
362
362
  sourceUrl: "图片地址",
@@ -372,7 +372,7 @@ const f = {
372
372
  uploading: "上传中...",
373
373
  uploadHandlerNotConfigured: "请配置 imageUploadHandler 以启用本地上传功能",
374
374
  placeholder: "添加图片"
375
- }, H = {
375
+ }, $ = {
376
376
  title: "视频块",
377
377
  name: "视频",
378
378
  sourceUrl: "视频地址",
@@ -393,7 +393,7 @@ const f = {
393
393
  loop: "循环播放",
394
394
  muted: "静音",
395
395
  controls: "显示控制条"
396
- }, $ = {
396
+ }, K = {
397
397
  title: "列块",
398
398
  name: "列容器",
399
399
  layout: "分栏",
@@ -411,7 +411,7 @@ const f = {
411
411
  confirmChangeMessage: "切换分栏布局将删除部分列中的数据,此操作不可撤销。确定要继续吗?",
412
412
  cancel: "取消",
413
413
  confirm: "确定"
414
- }, K = {
414
+ }, q = {
415
415
  global: "全局",
416
416
  backdropColor: "背景颜色",
417
417
  canvasColor: "画布颜色",
@@ -420,7 +420,7 @@ const f = {
420
420
  pageWidth: "页面宽度",
421
421
  fontFamily: "字体",
422
422
  textColor: "文字颜色"
423
- }, q = {
423
+ }, J = {
424
424
  title: "文本块",
425
425
  name: "文本",
426
426
  content: "内容",
@@ -487,7 +487,7 @@ const f = {
487
487
  customVariableNameInvalid: "变量名只能包含英文字母、数字和下划线,且以字母或下划线开头",
488
488
  customVariableNameDuplicate: "变量名已存在"
489
489
  }
490
- }, J = {
490
+ }, Y = {
491
491
  title: "按钮块",
492
492
  name: "按钮",
493
493
  text: "文本",
@@ -506,12 +506,12 @@ const f = {
506
506
  stylePill: "胶囊",
507
507
  textColor: "文字颜色",
508
508
  buttonColor: "按钮颜色"
509
- }, Y = {
509
+ }, j = {
510
510
  title: "标题块",
511
511
  name: "标题",
512
512
  content: "内容",
513
513
  level: "级别"
514
- }, j = {
514
+ }, G = {
515
515
  title: "头像块",
516
516
  size: "尺寸",
517
517
  shape: "形状",
@@ -520,23 +520,23 @@ const f = {
520
520
  shapeRounded: "圆角",
521
521
  imageUrl: "图片地址",
522
522
  altText: "替代文本"
523
- }, G = {
523
+ }, Z = {
524
524
  title: "分割线块",
525
525
  name: "分割线",
526
526
  color: "颜色",
527
527
  height: "高度"
528
- }, Z = {
528
+ }, X = {
529
529
  title: "容器块",
530
530
  name: "容器"
531
- }, X = {
531
+ }, Q = {
532
532
  title: "间距块",
533
533
  name: "间距",
534
534
  height: "高度"
535
- }, Q = {
535
+ }, ee = {
536
536
  title: "HTML块",
537
537
  name: "HTML",
538
538
  content: "内容"
539
- }, ee = {
539
+ }, te = {
540
540
  title: "社媒块",
541
541
  name: "社媒",
542
542
  selectPlatforms: "社媒选择",
@@ -549,7 +549,7 @@ const f = {
549
549
  iconUrl: "跳转链接",
550
550
  placeholder: "点击右侧面板添加社媒图标",
551
551
  addAnother: "新增社媒"
552
- }, te = {
552
+ }, oe = {
553
553
  backgroundColor: "背景颜色",
554
554
  borderColor: "边框颜色",
555
555
  borderRadius: "圆角",
@@ -573,7 +573,7 @@ const f = {
573
573
  both: "两者",
574
574
  default: "默认",
575
575
  formatGroup: "样式"
576
- }, oe = {
576
+ }, ie = {
577
577
  mode: {
578
578
  split: "左右栏",
579
579
  code: "仅代码",
@@ -607,53 +607,131 @@ const f = {
607
607
  empty: "暂无变量。点击左侧代码区的保存按钮扫描,或从上方变量目录插入。",
608
608
  systemDefault: "系统变量无需默认值"
609
609
  }
610
- }, ie = {
611
- common: W,
612
- samples: z,
613
- inspector: I,
614
- tabs: D,
615
- image: _,
616
- video: H,
617
- columns: $,
618
- emailLayout: K,
619
- text: q,
620
- button: J,
621
- heading: Y,
622
- avatar: j,
623
- divider: G,
624
- container: Z,
625
- spacer: X,
626
- html: Q,
627
- socials: ee,
628
- style: te,
629
- htmlEditor: oe
630
610
  }, ae = {
631
- zh: ie,
632
- en: V
611
+ common: z,
612
+ samples: I,
613
+ inspector: D,
614
+ tabs: _,
615
+ image: H,
616
+ video: $,
617
+ columns: K,
618
+ emailLayout: q,
619
+ text: J,
620
+ button: Y,
621
+ heading: j,
622
+ avatar: G,
623
+ divider: Z,
624
+ container: X,
625
+ spacer: Q,
626
+ html: ee,
627
+ socials: te,
628
+ style: oe,
629
+ htmlEditor: ie
630
+ }, ne = {
631
+ zh: ae,
632
+ en: W
633
633
  };
634
- function ge(i, t, r) {
635
- const l = r ?? ne(), g = i.split(".");
636
- let n = ae[l];
637
- for (const o of g)
638
- if (n && typeof n == "object" && o in n)
639
- n = n[o];
634
+ function ge(o, t, n) {
635
+ const r = n ?? re(), g = o.split(".");
636
+ let l = ne[r];
637
+ for (const i of g)
638
+ if (l && typeof l == "object" && i in l)
639
+ l = l[i];
640
640
  else
641
- return i;
642
- return typeof n != "string" ? i : t ? n.replace(/\{\{(\w+)\}\}/g, (o, a) => {
641
+ return o;
642
+ return typeof l != "string" ? o : t ? l.replace(/\{\{(\w+)\}\}/g, (i, a) => {
643
643
  var c;
644
- return ((c = t[a]) == null ? void 0 : c.toString()) ?? o;
645
- }) : n;
644
+ return ((c = t[a]) == null ? void 0 : c.toString()) ?? i;
645
+ }) : l;
646
646
  }
647
- function ne() {
647
+ function re() {
648
648
  if (typeof window > "u")
649
649
  return "en";
650
- const i = localStorage.getItem("app-language");
651
- return i && (i === "zh" || i === "en") ? i : navigator.language.toLowerCase().startsWith("zh") ? "zh" : "en";
650
+ const o = localStorage.getItem("app-language");
651
+ return o && (o === "zh" || o === "en") ? o : navigator.language.toLowerCase().startsWith("zh") ? "zh" : "en";
652
+ }
653
+ function ye(o) {
654
+ typeof window < "u" && localStorage.setItem("app-language", o);
655
+ }
656
+ const le = /^[A-Za-z_][A-Za-z0-9_]*$/, f = [
657
+ {
658
+ id: "contacts",
659
+ items: [
660
+ { name: "first_name", labelKey: "text.variables.firstName", kind: "user" },
661
+ { name: "last_name", labelKey: "text.variables.lastName", kind: "user" },
662
+ { name: "middle_name", labelKey: "text.variables.middleName", kind: "user" }
663
+ ]
664
+ },
665
+ {
666
+ id: "email",
667
+ items: [
668
+ { name: "email", labelKey: "text.variables.email", kind: "user" },
669
+ { name: "alternative_email", labelKey: "text.variables.alternativeEmail", kind: "user" }
670
+ ]
671
+ },
672
+ {
673
+ id: "organization",
674
+ items: [
675
+ { name: "company", labelKey: "text.variables.company", kind: "user" },
676
+ { name: "address_line_1", labelKey: "text.variables.addressLine1", kind: "user" },
677
+ { name: "address_line_2", labelKey: "text.variables.addressLine2", kind: "user" },
678
+ { name: "country", labelKey: "text.variables.country", kind: "user" },
679
+ { name: "city", labelKey: "text.variables.city", kind: "user" },
680
+ { name: "state", labelKey: "text.variables.state", kind: "user" },
681
+ { name: "postal_code", labelKey: "text.variables.postalCode", kind: "user" },
682
+ { name: "recipient_company", labelKey: "text.variables.recipientCompany", kind: "user" },
683
+ { name: "recipient_address_line_1", labelKey: "text.variables.recipientAddressLine1", kind: "user" },
684
+ { name: "recipient_address_line_2", labelKey: "text.variables.recipientAddressLine2", kind: "user" },
685
+ { name: "recipient_country", labelKey: "text.variables.recipientCountry", kind: "user" },
686
+ { name: "recipient_city", labelKey: "text.variables.recipientCity", kind: "user" },
687
+ { name: "recipient_state", labelKey: "text.variables.recipientState", kind: "user" },
688
+ { name: "recipient_postal_code", labelKey: "text.variables.recipientPostalCode", kind: "user" }
689
+ ]
690
+ },
691
+ {
692
+ id: "date",
693
+ items: [
694
+ { name: "birthday", labelKey: "text.variables.birthday", kind: "user" },
695
+ { name: "send_date", labelKey: "text.variables.currentDate", kind: "builtin" },
696
+ { name: "send_year", labelKey: "text.variables.currentYear", kind: "builtin" },
697
+ { name: "send_month", labelKey: "text.variables.currentMonthName", kind: "builtin" },
698
+ { name: "send_weekday", labelKey: "text.variables.currentWeekday", kind: "builtin" }
699
+ ]
700
+ },
701
+ {
702
+ id: "links",
703
+ items: [{ name: "unsubscribe_link", labelKey: "text.variables.unsubscribeLink", kind: "builtin" }]
704
+ }
705
+ ];
706
+ function he(o) {
707
+ const t = o.baseGroups ?? f, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
708
+ for (const i of t)
709
+ for (const a of i.items)
710
+ a.kind === "user" ? n.add(a.name) : r.add(a.name);
711
+ const g = Array.isArray(o.contactAttributes) ? o.contactAttributes : [];
712
+ for (const i of g) {
713
+ const a = i == null ? void 0 : i.Enable;
714
+ if (a === 0 || a === !1) continue;
715
+ const c = typeof (i == null ? void 0 : i.AttrField) == "string" ? i.AttrField.trim() : "";
716
+ c && n.add(c);
717
+ }
718
+ const l = Array.isArray(o.customVariables) ? o.customVariables : [];
719
+ for (const i of l) {
720
+ const a = typeof (i == null ? void 0 : i.name) == "string" ? i.name.trim() : "";
721
+ a && le.test(a) && n.add(a);
722
+ }
723
+ return { allowedUser: n, allowedBuiltin: r };
724
+ }
725
+ function be(o) {
726
+ const t = o.trim();
727
+ return t ? f.some(
728
+ (n) => n.items.some((r) => r.kind === "builtin" && r.name === t)
729
+ ) : !1;
652
730
  }
653
- function ye(i) {
654
- typeof window < "u" && localStorage.setItem("app-language", i);
731
+ function fe(o, t = "user") {
732
+ return t === "user";
655
733
  }
656
- const re = "#212443", u = "#1E40AF", p = "#1F8466", m = "#E81212", d = "#F6DC9F", le = "#6C0E7C", se = "#CC996C", de = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', ce = 'ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace', e = b({
734
+ const se = "#212443", u = "#1E40AF", p = "#1F8466", m = "#E81212", d = "#F6DC9F", de = "#6C0E7C", ce = "#CC996C", pe = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', ue = 'ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace', e = b({
657
735
  palette: {
658
736
  background: {
659
737
  default: "#f2f5f7"
@@ -664,18 +742,18 @@ const re = "#212443", u = "#1E40AF", p = "#1F8466", m = "#E81212", d = "#F6DC9F"
664
742
  }
665
743
  },
666
744
  typography: {
667
- fontFamily: de
745
+ fontFamily: pe
668
746
  }
669
- }), he = b(e, {
747
+ }), ve = b(e, {
670
748
  palette: {
671
749
  brand: {
672
- navy: re,
750
+ navy: se,
673
751
  blue: u,
674
752
  red: m,
675
753
  green: p,
676
754
  yellow: d,
677
- purple: le,
678
- brown: se
755
+ purple: de,
756
+ brown: ce
679
757
  },
680
758
  success: {
681
759
  main: p,
@@ -719,7 +797,7 @@ const re = "#212443", u = "#1E40AF", p = "#1F8466", m = "#E81212", d = "#F6DC9F"
719
797
  padding: 0;
720
798
  }
721
799
  pre {
722
- font-family: ${ce}
800
+ font-family: ${ue}
723
801
  white-space: pre-wrap;
724
802
  font-size: 12px;
725
803
  }
@@ -1166,91 +1244,24 @@ const re = "#212443", u = "#1E40AF", p = "#1F8466", m = "#E81212", d = "#F6DC9F"
1166
1244
  ...Array(20).fill("none")
1167
1245
  ]
1168
1246
  });
1169
- function be(i) {
1170
- let t = i, r = 0;
1171
- for (; t && typeof t == "object" && "default" in t && r < 5; ) {
1172
- const l = t.default;
1173
- if (!l || l === t) break;
1174
- t = l, r += 1;
1247
+ function ke(o) {
1248
+ let t = o, n = 0;
1249
+ for (; t && typeof t == "object" && "default" in t && n < 5; ) {
1250
+ const r = t.default;
1251
+ if (!r || r === t) break;
1252
+ t = r, n += 1;
1175
1253
  }
1176
1254
  return typeof t == "function" || typeof t == "string" || t && typeof t == "object" && "$$typeof" in t ? t : "span";
1177
1255
  }
1178
- const pe = /^[A-Za-z_][A-Za-z0-9_]*$/, ue = [
1179
- {
1180
- id: "contacts",
1181
- items: [
1182
- { name: "first_name", labelKey: "text.variables.firstName", kind: "user" },
1183
- { name: "last_name", labelKey: "text.variables.lastName", kind: "user" },
1184
- { name: "middle_name", labelKey: "text.variables.middleName", kind: "user" }
1185
- ]
1186
- },
1187
- {
1188
- id: "email",
1189
- items: [
1190
- { name: "email", labelKey: "text.variables.email", kind: "user" },
1191
- { name: "alternative_email", labelKey: "text.variables.alternativeEmail", kind: "user" }
1192
- ]
1193
- },
1194
- {
1195
- id: "organization",
1196
- items: [
1197
- { name: "company", labelKey: "text.variables.company", kind: "user" },
1198
- { name: "address_line_1", labelKey: "text.variables.addressLine1", kind: "user" },
1199
- { name: "address_line_2", labelKey: "text.variables.addressLine2", kind: "user" },
1200
- { name: "country", labelKey: "text.variables.country", kind: "user" },
1201
- { name: "city", labelKey: "text.variables.city", kind: "user" },
1202
- { name: "state", labelKey: "text.variables.state", kind: "user" },
1203
- { name: "postal_code", labelKey: "text.variables.postalCode", kind: "user" },
1204
- { name: "recipient_company", labelKey: "text.variables.recipientCompany", kind: "user" },
1205
- { name: "recipient_address_line_1", labelKey: "text.variables.recipientAddressLine1", kind: "user" },
1206
- { name: "recipient_address_line_2", labelKey: "text.variables.recipientAddressLine2", kind: "user" },
1207
- { name: "recipient_country", labelKey: "text.variables.recipientCountry", kind: "user" },
1208
- { name: "recipient_city", labelKey: "text.variables.recipientCity", kind: "user" },
1209
- { name: "recipient_state", labelKey: "text.variables.recipientState", kind: "user" },
1210
- { name: "recipient_postal_code", labelKey: "text.variables.recipientPostalCode", kind: "user" }
1211
- ]
1212
- },
1213
- {
1214
- id: "date",
1215
- items: [
1216
- { name: "birthday", labelKey: "text.variables.birthday", kind: "user" },
1217
- { name: "send_date", labelKey: "text.variables.currentDate", kind: "builtin" },
1218
- { name: "send_year", labelKey: "text.variables.currentYear", kind: "builtin" },
1219
- { name: "send_month", labelKey: "text.variables.currentMonthName", kind: "builtin" },
1220
- { name: "send_weekday", labelKey: "text.variables.currentWeekday", kind: "builtin" }
1221
- ]
1222
- },
1223
- {
1224
- id: "links",
1225
- items: [{ name: "unsubscribe_link", labelKey: "text.variables.unsubscribeLink", kind: "user" }]
1226
- }
1227
- ];
1228
- function fe(i) {
1229
- const t = i.baseGroups ?? ue, r = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
1230
- for (const o of t)
1231
- for (const a of o.items)
1232
- a.kind === "user" ? r.add(a.name) : l.add(a.name);
1233
- const g = Array.isArray(i.contactAttributes) ? i.contactAttributes : [];
1234
- for (const o of g) {
1235
- const a = o == null ? void 0 : o.Enable;
1236
- if (a === 0 || a === !1) continue;
1237
- const c = typeof (o == null ? void 0 : o.AttrField) == "string" ? o.AttrField.trim() : "";
1238
- c && r.add(c);
1239
- }
1240
- const n = Array.isArray(i.customVariables) ? i.customVariables : [];
1241
- for (const o of n) {
1242
- const a = typeof (o == null ? void 0 : o.name) == "string" ? o.name.trim() : "";
1243
- a && pe.test(a) && r.add(a);
1244
- }
1245
- return { allowedUser: r, allowedBuiltin: l };
1246
- }
1247
1256
  export {
1248
- ue as B,
1249
- he as T,
1250
- pe as V,
1251
- fe as b,
1252
- ne as g,
1253
- be as r,
1257
+ f as B,
1258
+ ve as T,
1259
+ le as V,
1260
+ fe as a,
1261
+ he as b,
1262
+ re as g,
1263
+ be as i,
1264
+ ke as r,
1254
1265
  ye as s,
1255
1266
  ge as t
1256
1267
  };
@@ -1 +1 @@
1
- {"version":3,"file":"textDom.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/Text/textDom.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAoChD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAQnD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAErD;AA+CD,wBAAgB,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,C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AAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAajF;AA2ED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAsB3F;AAKD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAkBjE;AAED,6BAA6B;AAC7B,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1D;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,WAAW,GAAG,MAAM,CAQjE"}
@@ -26,4 +26,6 @@ export declare function buildAllowedVariableNameSets(args: {
26
26
  allowedUser: Set<string>;
27
27
  allowedBuiltin: Set<string>;
28
28
  };
29
+ export declare function isBuiltinVariableName(name: string): boolean;
30
+ export declare function requiresVariableDefault(name: string, kind?: VariableKind): boolean;
29
31
  //# sourceMappingURL=variableCatalog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"variableCatalog.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/Text/variableCatalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAElG,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC;AAE9C,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,eAAe,CAAC;IACpB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,YAAY,CAAA;KAAE,EAAE,CAAC;CACjE,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvE,eAAO,MAAM,gBAAgB,QAA6B,CAAC;AAE3D,uCAAuC;AACvC,eAAO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