@dialpad/dialtone 9.158.0 → 9.160.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.
Files changed (166) hide show
  1. package/dist/css/dialtone-default-theme.css +20 -1
  2. package/dist/css/dialtone-default-theme.min.css +1 -1
  3. package/dist/css/dialtone-docs.json +1 -1
  4. package/dist/css/dialtone.css +20 -1
  5. package/dist/css/dialtone.min.css +1 -1
  6. package/dist/tokens/doc.json +84323 -84323
  7. package/dist/vue3/common/test-utils/node-traversal.cjs +2 -0
  8. package/dist/vue3/common/test-utils/node-traversal.cjs.map +1 -0
  9. package/dist/vue3/common/test-utils/node-traversal.js +54 -0
  10. package/dist/vue3/common/test-utils/node-traversal.js.map +1 -0
  11. package/dist/vue3/component-documentation.json +1 -1
  12. package/dist/vue3/dialtone-vue.cjs +1 -1
  13. package/dist/vue3/dialtone-vue.js +155 -153
  14. package/dist/vue3/dialtone-vue.js.map +1 -1
  15. package/dist/vue3/lib/button/button.cjs +1 -1
  16. package/dist/vue3/lib/button/button.cjs.map +1 -1
  17. package/dist/vue3/lib/button/button.js +146 -81
  18. package/dist/vue3/lib/button/button.js.map +1 -1
  19. package/dist/vue3/lib/datepicker/datepicker.cjs +1 -1
  20. package/dist/vue3/lib/datepicker/datepicker.cjs.map +1 -1
  21. package/dist/vue3/lib/datepicker/datepicker.js +306 -242
  22. package/dist/vue3/lib/datepicker/datepicker.js.map +1 -1
  23. package/dist/vue3/lib/datepicker/utils.cjs +1 -1
  24. package/dist/vue3/lib/datepicker/utils.cjs.map +1 -1
  25. package/dist/vue3/lib/datepicker/utils.js +40 -40
  26. package/dist/vue3/lib/datepicker/utils.js.map +1 -1
  27. package/dist/vue3/lib/dropdown/dropdown-separator.cjs +1 -1
  28. package/dist/vue3/lib/editor/editor.cjs +1 -1
  29. package/dist/vue3/lib/editor/editor.cjs.map +1 -1
  30. package/dist/vue3/lib/editor/editor.js +284 -148
  31. package/dist/vue3/lib/editor/editor.js.map +1 -1
  32. package/dist/vue3/lib/general-row/index.cjs +1 -1
  33. package/dist/vue3/lib/general-row/index.js +6 -4
  34. package/dist/vue3/lib/general-row/index.js.map +1 -1
  35. package/dist/vue3/lib/link/link.cjs +1 -1
  36. package/dist/vue3/lib/link/link.cjs.map +1 -1
  37. package/dist/vue3/lib/link/link.js +58 -18
  38. package/dist/vue3/lib/link/link.js.map +1 -1
  39. package/dist/vue3/lib/list-item-group/list-item-group.cjs +1 -1
  40. package/dist/vue3/lib/list-item-group/list-item-group.js +5 -5
  41. package/dist/vue3/lib/message-input/message-input.cjs +1 -1
  42. package/dist/vue3/lib/message-input/message-input.cjs.map +1 -1
  43. package/dist/vue3/lib/message-input/message-input.js +9 -7
  44. package/dist/vue3/lib/message-input/message-input.js.map +1 -1
  45. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs +4 -4
  46. package/dist/vue3/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  47. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js +466 -283
  48. package/dist/vue3/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  49. package/dist/vue3/lib/tooltip-directive/tooltip.cjs +1 -1
  50. package/dist/vue3/lib/tooltip-directive/tooltip.cjs.map +1 -1
  51. package/dist/vue3/lib/tooltip-directive/tooltip.js +69 -67
  52. package/dist/vue3/lib/tooltip-directive/tooltip.js.map +1 -1
  53. package/dist/vue3/localization/en-US.cjs +6 -0
  54. package/dist/vue3/localization/en-US.cjs.map +1 -1
  55. package/dist/vue3/localization/en-US.js +6 -0
  56. package/dist/vue3/localization/en-US.js.map +1 -1
  57. package/dist/vue3/types/common/sr_only_close_button.vue.d.ts +68 -1
  58. package/dist/vue3/types/common/test_utils/node_traversal.d.ts +10 -0
  59. package/dist/vue3/types/common/test_utils/node_traversal.d.ts.map +1 -0
  60. package/dist/vue3/types/components/banner/banner.vue.d.ts +136 -2
  61. package/dist/vue3/types/components/banner/banner.vue.d.ts.map +1 -1
  62. package/dist/vue3/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +39 -1
  63. package/dist/vue3/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
  64. package/dist/vue3/types/components/breadcrumbs/breadcrumbs.vue.d.ts +39 -1
  65. package/dist/vue3/types/components/button/button.vue.d.ts +68 -1
  66. package/dist/vue3/types/components/button/button.vue.d.ts.map +1 -1
  67. package/dist/vue3/types/components/chip/chip.vue.d.ts +68 -1
  68. package/dist/vue3/types/components/chip/chip.vue.d.ts.map +1 -1
  69. package/dist/vue3/types/components/collapsible/collapsible.vue.d.ts +68 -1
  70. package/dist/vue3/types/components/collapsible/collapsible.vue.d.ts.map +1 -1
  71. package/dist/vue3/types/components/datepicker/composables/useMonthYearPicker.d.ts +4 -0
  72. package/dist/vue3/types/components/datepicker/composables/useMonthYearPicker.d.ts.map +1 -1
  73. package/dist/vue3/types/components/datepicker/datepicker.vue.d.ts +8 -0
  74. package/dist/vue3/types/components/datepicker/datepicker.vue.d.ts.map +1 -1
  75. package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts +4 -0
  76. package/dist/vue3/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  77. package/dist/vue3/types/components/datepicker/utils.d.ts +1 -1
  78. package/dist/vue3/types/components/datepicker/utils.d.ts.map +1 -1
  79. package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts +136 -2
  80. package/dist/vue3/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  81. package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts +272 -4
  82. package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
  83. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts +136 -2
  84. package/dist/vue3/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  85. package/dist/vue3/types/components/link/link.vue.d.ts +39 -1
  86. package/dist/vue3/types/components/link/link.vue.d.ts.map +1 -1
  87. package/dist/vue3/types/components/modal/modal.vue.d.ts +136 -2
  88. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  89. package/dist/vue3/types/components/notice/notice.vue.d.ts +136 -2
  90. package/dist/vue3/types/components/notice/notice.vue.d.ts.map +1 -1
  91. package/dist/vue3/types/components/notice/notice_action.vue.d.ts +136 -2
  92. package/dist/vue3/types/components/notice/notice_action.vue.d.ts.map +1 -1
  93. package/dist/vue3/types/components/pagination/pagination.vue.d.ts +68 -1
  94. package/dist/vue3/types/components/pagination/pagination.vue.d.ts.map +1 -1
  95. package/dist/vue3/types/components/popover/popover.vue.d.ts +136 -2
  96. package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
  97. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts +68 -1
  98. package/dist/vue3/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  99. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +39 -1
  100. package/dist/vue3/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
  101. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +39 -1
  102. package/dist/vue3/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts +1804 -0
  103. package/dist/vue3/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts.map +1 -0
  104. package/dist/vue3/types/components/rich_text_editor/extensions/variable/index.d.ts +3 -0
  105. package/dist/vue3/types/components/rich_text_editor/extensions/variable/index.d.ts.map +1 -0
  106. package/dist/vue3/types/components/rich_text_editor/extensions/variable/variable.d.ts +3 -0
  107. package/dist/vue3/types/components/rich_text_editor/extensions/variable/variable.d.ts.map +1 -0
  108. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +87 -1
  109. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  110. package/dist/vue3/types/components/split_button/split_button-alpha.vue.d.ts +68 -1
  111. package/dist/vue3/types/components/split_button/split_button-omega.vue.d.ts +68 -1
  112. package/dist/vue3/types/components/split_button/split_button-omega.vue.d.ts.map +1 -1
  113. package/dist/vue3/types/components/split_button/split_button.vue.d.ts +272 -4
  114. package/dist/vue3/types/components/split_button/split_button.vue.d.ts.map +1 -1
  115. package/dist/vue3/types/components/tab/tab.vue.d.ts +68 -1
  116. package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +136 -2
  117. package/dist/vue3/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
  118. package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts +136 -2
  119. package/dist/vue3/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
  120. package/dist/vue3/types/components/toast/toast.vue.d.ts +544 -8
  121. package/dist/vue3/types/components/toast/toast.vue.d.ts.map +1 -1
  122. package/dist/vue3/types/directives/tooltip_directive/tooltip.d.ts.map +1 -1
  123. package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +68 -1
  124. package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
  125. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +272 -4
  126. package/dist/vue3/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  127. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +272 -4
  128. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  129. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +204 -3
  130. package/dist/vue3/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  131. package/dist/vue3/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +68 -1
  132. package/dist/vue3/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
  133. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +136 -2
  134. package/dist/vue3/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  135. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +272 -4
  136. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  137. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +204 -3
  138. package/dist/vue3/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  139. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +664 -4
  140. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  141. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +68 -1
  142. package/dist/vue3/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  143. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +68 -1
  144. package/dist/vue3/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  145. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +68 -1
  146. package/dist/vue3/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  147. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +631 -9
  148. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  149. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts +68 -1
  150. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -1
  151. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +272 -4
  152. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  153. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +68 -1
  154. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  155. package/dist/vue3/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +68 -1
  156. package/dist/vue3/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +1 -1
  157. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +68 -1
  158. package/dist/vue3/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  159. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +68 -1
  160. package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
  161. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts +68 -1
  162. package/dist/vue3/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  163. package/dist/vue3/types/recipes/leftbar/general_row/index.d.ts +1 -0
  164. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts +68 -1
  165. package/dist/vue3/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  166. package/package.json +4 -4
@@ -1,41 +1,49 @@
1
- import { EDITOR_SUPPORTED_LINK_PROTOCOLS as z, EDITOR_DEFAULT_LINK_PREFIX as J } from "./editor-constants.js";
2
- import { addClassStyleAttrs as j, removeClassStyleAttrs as H } from "../../common/utils/index.js";
3
- import { DtIconImage as w, DtIconLink2 as O, DtIconCodeBlock as D, DtIconQuote as R, DtIconAlignJustify as x, DtIconAlignRight as y, DtIconAlignCenter as C, DtIconAlignLeft as b, DtIconListOrdered as N, DtIconListBullet as S, DtIconStrikethrough as U, DtIconUnderline as F, DtIconItalic as v, DtIconBold as Q, DtIconQuickReply as M } from "@dialpad/dialtone-icons/vue3";
4
- import { DialtoneLocalization as Y } from "../../localization/index.js";
5
- import { resolveComponent as h, openBlock as c, createElementBlock as A, mergeProps as f, createVNode as a, withCtx as u, Fragment as q, renderList as V, createBlock as B, withKeys as g, withModifiers as p, createTextVNode as L, toDisplayString as k, resolveDynamicComponent as K, createElementVNode as _, createCommentVNode as X, normalizeStyle as W } from "vue";
6
- import { _ as Z } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
- import tt from "../tooltip/tooltip.js";
8
- import et from "../input/input.js";
9
- import it from "../stack/stack.js";
10
- import ot from "../popover/popover.js";
11
- import nt from "../button/button.js";
12
- import rt from "../rich-text-editor/rich-text-editor.js";
13
- import { RICH_TEXT_EDITOR_OUTPUT_FORMATS as st, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as lt } from "../rich-text-editor/rich-text-editor-constants.js";
14
- const ut = {
1
+ import { EDITOR_SUPPORTED_LINK_PROTOCOLS as Z, EDITOR_DEFAULT_LINK_PREFIX as tt } from "./editor-constants.js";
2
+ import { addClassStyleAttrs as et, removeClassStyleAttrs as it } from "../../common/utils/index.js";
3
+ import { DtIconSearch as ot, DtIconBraces as y, DtIconImage as x, DtIconLink2 as N, DtIconCodeBlock as v, DtIconQuote as S, DtIconAlignJustify as F, DtIconAlignRight as U, DtIconAlignCenter as V, DtIconAlignLeft as M, DtIconListOrdered as Q, DtIconListBullet as q, DtIconStrikethrough as K, DtIconUnderline as P, DtIconItalic as z, DtIconBold as G, DtIconQuickReply as H } from "@dialpad/dialtone-icons/vue3";
4
+ import { DialtoneLocalization as nt } from "../../localization/index.js";
5
+ import { resolveComponent as h, openBlock as u, createElementBlock as _, mergeProps as f, createVNode as c, withCtx as r, Fragment as w, renderList as O, createBlock as d, withKeys as L, withModifiers as g, createTextVNode as A, toDisplayString as m, resolveDynamicComponent as b, createElementVNode as E, createCommentVNode as D, normalizeStyle as rt } from "vue";
6
+ import { _ as st } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
+ import lt from "../tooltip/tooltip.js";
8
+ import at from "../input/input.js";
9
+ import ut from "../stack/stack.js";
10
+ import ct from "../popover/popover.js";
11
+ import dt from "../button/button.js";
12
+ import ht from "../rich-text-editor/rich-text-editor.js";
13
+ import pt from "../list-item/list-item.js";
14
+ import Bt from "../dropdown/dropdown-separator.js";
15
+ import ft from "../list-item-group/list-item-group.js";
16
+ import { RICH_TEXT_EDITOR_OUTPUT_FORMATS as gt, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as mt } from "../rich-text-editor/rich-text-editor-constants.js";
17
+ const kt = {
15
18
  compatConfig: { MODE: 3 },
16
19
  name: "DtRecipeEditor",
17
20
  components: {
18
- DtRichTextEditor: rt,
19
- DtButton: nt,
20
- DtPopover: ot,
21
- DtStack: it,
22
- DtInput: et,
23
- DtTooltip: tt,
24
- DtIconQuickReply: M,
25
- DtIconBold: Q,
26
- DtIconItalic: v,
27
- DtIconUnderline: F,
28
- DtIconStrikethrough: U,
29
- DtIconListBullet: S,
30
- DtIconListOrdered: N,
31
- DtIconAlignLeft: b,
32
- DtIconAlignCenter: C,
33
- DtIconAlignRight: y,
34
- DtIconAlignJustify: x,
35
- DtIconQuote: R,
36
- DtIconCodeBlock: D,
37
- DtIconLink2: O,
38
- DtIconImage: w
21
+ DtListItemGroup: ft,
22
+ DtDropdownSeparator: Bt,
23
+ DtListItem: pt,
24
+ DtRichTextEditor: ht,
25
+ DtButton: dt,
26
+ DtPopover: ct,
27
+ DtStack: ut,
28
+ DtInput: at,
29
+ DtTooltip: lt,
30
+ DtIconQuickReply: H,
31
+ DtIconBold: G,
32
+ DtIconItalic: z,
33
+ DtIconUnderline: P,
34
+ DtIconStrikethrough: K,
35
+ DtIconListBullet: q,
36
+ DtIconListOrdered: Q,
37
+ DtIconAlignLeft: M,
38
+ DtIconAlignCenter: V,
39
+ DtIconAlignRight: U,
40
+ DtIconAlignJustify: F,
41
+ DtIconQuote: S,
42
+ DtIconCodeBlock: v,
43
+ DtIconLink2: N,
44
+ DtIconImage: x,
45
+ DtIconBraces: y,
46
+ DtIconSearch: ot
39
47
  },
40
48
  mixins: [],
41
49
  inheritAttrs: !1,
@@ -87,7 +95,7 @@ const ut = {
87
95
  type: [Boolean, String, Number],
88
96
  default: !1,
89
97
  validator(t) {
90
- return typeof t == "string" ? lt.includes(t) : !0;
98
+ return typeof t == "string" ? mt.includes(t) : !0;
91
99
  }
92
100
  },
93
101
  /**
@@ -210,6 +218,20 @@ const ut = {
210
218
  type: Boolean,
211
219
  default: !1
212
220
  },
221
+ /**
222
+ * Show button to add a variable
223
+ */
224
+ showVariableButton: {
225
+ type: Boolean,
226
+ default: !1
227
+ },
228
+ /**
229
+ * Variable categories to display when variable button is clicked
230
+ */
231
+ variableCategories: {
232
+ type: Array,
233
+ default: () => []
234
+ },
213
235
  /**
214
236
  * Show add link default config.
215
237
  */
@@ -288,7 +310,8 @@ const ut = {
288
310
  showLinkInput: !1,
289
311
  linkInput: "",
290
312
  currentButtonRefIndex: 0,
291
- i18n: new Y()
313
+ variableSearchValue: "",
314
+ i18n: new nt()
292
315
  };
293
316
  },
294
317
  computed: {
@@ -296,7 +319,10 @@ const ut = {
296
319
  return this.internalInputValue.length;
297
320
  },
298
321
  htmlOutputFormat() {
299
- return st[2];
322
+ return gt[2];
323
+ },
324
+ flattenedVariableItems() {
325
+ return this.variableCategories ? this.variableCategories.reduce((t, e) => t.concat(e.items || []), []) : [];
300
326
  },
301
327
  showingTextFormatButtons() {
302
328
  return this.showBoldButton || this.showItalicsButton || this.showStrikeButton || this.showUnderlineButton;
@@ -309,8 +335,8 @@ const ut = {
309
335
  },
310
336
  orderedRefs() {
311
337
  const t = this.buttonGroups.reduce((function(e, o) {
312
- return o.buttonGroup.forEach((n) => {
313
- e.push(this.getButtonRef(o.key, n.selector));
338
+ return o.buttonGroup.forEach((l) => {
339
+ e.push(this.getButtonRef(o.key, l.selector));
314
340
  }, this), e;
315
341
  }).bind(this), []);
316
342
  return t.push(this.getButtonRef("custom", "link")), t;
@@ -334,7 +360,7 @@ const ut = {
334
360
  showBtn: this.showQuickRepliesButton,
335
361
  label: this.i18n.$t("DIALTONE_EDITOR_QUICK_REPLY_BUTTON_LABEL"),
336
362
  selector: "quickReplies",
337
- icon: M,
363
+ icon: H,
338
364
  dataQA: "dt-recipe-editor-quick-replies-btn",
339
365
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_QUICK_REPLY_BUTTON_LABEL"),
340
366
  onClick: this.onQuickRepliesClick
@@ -346,7 +372,7 @@ const ut = {
346
372
  {
347
373
  showBtn: this.showBoldButton,
348
374
  selector: "bold",
349
- icon: Q,
375
+ icon: G,
350
376
  dataQA: "dt-recipe-editor-bold-btn",
351
377
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_BOLD_BUTTON_LABEL"),
352
378
  onClick: this.onBoldTextToggle
@@ -354,7 +380,7 @@ const ut = {
354
380
  {
355
381
  showBtn: this.showItalicsButton,
356
382
  selector: "italic",
357
- icon: v,
383
+ icon: z,
358
384
  dataQA: "dt-recipe-editor-italics-btn",
359
385
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ITALICS_BUTTON_LABEL"),
360
386
  onClick: this.onItalicTextToggle
@@ -362,7 +388,7 @@ const ut = {
362
388
  {
363
389
  showBtn: this.showUnderlineButton,
364
390
  selector: "underline",
365
- icon: F,
391
+ icon: P,
366
392
  dataQA: "dt-recipe-editor-underline-btn",
367
393
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_UNDERLINE_BUTTON_LABEL"),
368
394
  onClick: this.onUnderlineTextToggle
@@ -370,7 +396,7 @@ const ut = {
370
396
  {
371
397
  showBtn: this.showStrikeButton,
372
398
  selector: "strike",
373
- icon: U,
399
+ icon: K,
374
400
  dataQA: "dt-recipe-editor-strike-btn",
375
401
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_STRIKE_BUTTON_LABEL"),
376
402
  onClick: this.onStrikethroughTextToggle
@@ -382,7 +408,7 @@ const ut = {
382
408
  {
383
409
  showBtn: this.showAlignLeftButton,
384
410
  selector: { textAlign: "left" },
385
- icon: b,
411
+ icon: M,
386
412
  dataQA: "dt-recipe-editor-align-left-btn",
387
413
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ALIGN_LEFT_BUTTON_LABEL"),
388
414
  onClick: () => this.onTextAlign("left")
@@ -390,7 +416,7 @@ const ut = {
390
416
  {
391
417
  showBtn: this.showAlignCenterButton,
392
418
  selector: { textAlign: "center" },
393
- icon: C,
419
+ icon: V,
394
420
  dataQA: "dt-recipe-editor-align-center-btn",
395
421
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ALIGN_CENTER_BUTTON_LABEL"),
396
422
  onClick: () => this.onTextAlign("center")
@@ -398,7 +424,7 @@ const ut = {
398
424
  {
399
425
  showBtn: this.showAlignRightButton,
400
426
  selector: { textAlign: "right" },
401
- icon: y,
427
+ icon: U,
402
428
  dataQA: "dt-recipe-editor-align-right-btn",
403
429
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ALIGN_RIGHT_BUTTON_LABEL"),
404
430
  onClick: () => this.onTextAlign("right")
@@ -406,7 +432,7 @@ const ut = {
406
432
  {
407
433
  showBtn: this.showAlignJustifyButton,
408
434
  selector: { textAlign: "justify" },
409
- icon: x,
435
+ icon: F,
410
436
  dataQA: "dt-recipe-editor-align-justify-btn",
411
437
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ALIGN_JUSTIFY_BUTTON_LABEL"),
412
438
  onClick: () => this.onTextAlign("justify")
@@ -418,7 +444,7 @@ const ut = {
418
444
  {
419
445
  showBtn: this.showListItemsButton,
420
446
  selector: "bulletList",
421
- icon: S,
447
+ icon: q,
422
448
  dataQA: "dt-recipe-editor-list-items-btn",
423
449
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_BULLET_LIST_BUTTON_LABEL"),
424
450
  onClick: this.onBulletListToggle
@@ -426,7 +452,7 @@ const ut = {
426
452
  {
427
453
  showBtn: this.showOrderedListButton,
428
454
  selector: "orderedList",
429
- icon: N,
455
+ icon: Q,
430
456
  dataQA: "dt-recipe-editor-ordered-list-items-btn",
431
457
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_ORDERED_LIST_BUTTON_LABEL"),
432
458
  onClick: this.onOrderedListToggle
@@ -438,7 +464,7 @@ const ut = {
438
464
  {
439
465
  showBtn: this.showQuoteButton,
440
466
  selector: "blockquote",
441
- icon: R,
467
+ icon: S,
442
468
  dataQA: "dt-recipe-editor-blockquote-btn",
443
469
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_QUOTE_BUTTON_LABEL"),
444
470
  onClick: this.onBlockquoteToggle
@@ -446,7 +472,7 @@ const ut = {
446
472
  {
447
473
  showBtn: this.showCodeBlockButton,
448
474
  selector: "codeBlock",
449
- icon: D,
475
+ icon: v,
450
476
  dataQA: "dt-recipe-editor-code-block-btn",
451
477
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_CODE_BUTTON_LABEL"),
452
478
  onClick: this.onCodeBlockToggle
@@ -454,7 +480,7 @@ const ut = {
454
480
  {
455
481
  showBtn: this.showInlineImageButton,
456
482
  selector: "image",
457
- icon: w,
483
+ icon: x,
458
484
  dataQA: "dt-recipe-editor-inline-image-btn",
459
485
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_IMAGE_BUTTON_LABEL"),
460
486
  // Handle getting image
@@ -466,12 +492,21 @@ const ut = {
466
492
  return {
467
493
  showBtn: this.showAddLink.showAddLinkButton,
468
494
  selector: "link",
469
- icon: O,
495
+ icon: N,
470
496
  dataQA: "dt-recipe-editor-add-link-btn",
471
497
  tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_LINK_BUTTON_LABEL"),
472
498
  onClick: this.openLinkInput
473
499
  };
474
500
  },
501
+ variableButton() {
502
+ return {
503
+ showBtn: this.showVariableButton,
504
+ selector: "variable",
505
+ icon: y,
506
+ dataQA: "dt-recipe-editor-variable-btn",
507
+ tooltipMessage: this.i18n.$t("DIALTONE_EDITOR_VARIABLE_BUTTON_LABEL")
508
+ };
509
+ },
475
510
  confirmSetLinkButtonLabels() {
476
511
  return this.i18n.$ta("DIALTONE_EDITOR_CONFIRM_SET_LINK_BUTTON");
477
512
  },
@@ -483,6 +518,11 @@ const ut = {
483
518
  },
484
519
  showAddLinkButtonLabels() {
485
520
  return this.i18n.$ta("DIALTONE_EDITOR_ADD_LINK_BUTTON");
521
+ },
522
+ filteredCategories() {
523
+ return this.variableCategories.filter(
524
+ (t) => this.getFilteredItemsForCategory(t).length
525
+ );
486
526
  }
487
527
  },
488
528
  watch: {
@@ -491,26 +531,26 @@ const ut = {
491
531
  }
492
532
  },
493
533
  methods: {
494
- removeClassStyleAttrs: H,
495
- addClassStyleAttrs: j,
534
+ removeClassStyleAttrs: it,
535
+ addClassStyleAttrs: et,
496
536
  onInputFocus(t) {
497
537
  t == null || t.stopPropagation();
498
538
  },
499
539
  removeLink() {
500
- var t, e, o, n, r;
501
- (r = (n = (o = (e = (t = this.$refs.richTextEditor) == null ? void 0 : t.editor) == null ? void 0 : e.chain()) == null ? void 0 : o.focus()) == null ? void 0 : n.unsetLink()) == null || r.run(), this.closeLinkInput();
540
+ var t, e, o, l, s;
541
+ (s = (l = (o = (e = (t = this.$refs.richTextEditor) == null ? void 0 : t.editor) == null ? void 0 : e.chain()) == null ? void 0 : o.focus()) == null ? void 0 : l.unsetLink()) == null || s.run(), this.closeLinkInput();
502
542
  },
503
543
  setLink(t) {
504
- var r, i, d;
505
- const e = (r = this.$refs.richTextEditor) == null ? void 0 : r.editor;
544
+ var s, i, p;
545
+ const e = (s = this.$refs.richTextEditor) == null ? void 0 : s.editor;
506
546
  if (t == null || t.preventDefault(), t == null || t.stopPropagation(), !this.linkInput) {
507
547
  this.removeLink();
508
548
  return;
509
549
  }
510
- z.find((T) => T.test(this.linkInput)) || (this.linkInput = `${J}${this.linkInput}`);
511
- const n = (d = (i = e == null ? void 0 : e.view) == null ? void 0 : i.state) == null ? void 0 : d.selection;
512
- n.anchor === n.head ? e.chain().focus().insertContentAt(
513
- n.anchor,
550
+ Z.find((k) => k.test(this.linkInput)) || (this.linkInput = `${tt}${this.linkInput}`);
551
+ const l = (p = (i = e == null ? void 0 : e.view) == null ? void 0 : i.state) == null ? void 0 : p.selection;
552
+ l.anchor === l.head ? e.chain().focus().insertContentAt(
553
+ l.anchor,
514
554
  `<a class="${this.linkOptions.class}" href=${this.linkInput}>${this.linkInput}</a>`
515
555
  ).run() : e.chain().focus().extendMarkRange("link").setLink({ href: this.linkInput, class: this.linkOptions.class }).run(), this.closeLinkInput();
516
556
  },
@@ -518,10 +558,10 @@ const ut = {
518
558
  this.showLinkInput = !0;
519
559
  },
520
560
  updateInput(t) {
521
- var e, o, n;
561
+ var e, o, l;
522
562
  if (!t)
523
563
  return this.closeLinkInput();
524
- this.linkInput = (n = (o = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) == null ? void 0 : o.getAttributes("link")) == null ? void 0 : n.href;
564
+ this.linkInput = (l = (o = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) == null ? void 0 : o.getAttributes("link")) == null ? void 0 : l.href;
525
565
  },
526
566
  closeLinkInput() {
527
567
  var t;
@@ -544,10 +584,10 @@ const ut = {
544
584
  (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleStrike().run();
545
585
  },
546
586
  onTextAlign(t) {
547
- var e, o, n, r;
587
+ var e, o, l, s;
548
588
  if ((o = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) != null && o.isActive({ textAlign: t }))
549
- return (n = this.$refs.richTextEditor) == null ? void 0 : n.editor.chain().focus().unsetTextAlign().run();
550
- (r = this.$refs.richTextEditor) == null || r.editor.chain().focus().setTextAlign(t).run();
589
+ return (l = this.$refs.richTextEditor) == null ? void 0 : l.editor.chain().focus().unsetTextAlign().run();
590
+ (s = this.$refs.richTextEditor) == null || s.editor.chain().focus().setTextAlign(t).run();
551
591
  },
552
592
  onBulletListToggle() {
553
593
  var t;
@@ -567,6 +607,14 @@ const ut = {
567
607
  onInsertInlineImageClick() {
568
608
  this.$emit("inline-image-click");
569
609
  },
610
+ insertVariable(t, e) {
611
+ var o;
612
+ (o = this.$refs.richTextEditor) == null || o.editor.chain().focus().insertVariable({
613
+ id: e.id,
614
+ placeholder: e.placeholder || "",
615
+ altText: ""
616
+ }).run();
617
+ },
570
618
  insertInlineImage(t) {
571
619
  var e;
572
620
  (e = this.$refs.richTextEditor) == null || e.editor.chain().focus().setImage({ src: t }).run();
@@ -616,61 +664,67 @@ const ut = {
616
664
  this.shiftButtonRefIndex(-1);
617
665
  },
618
666
  shiftButtonRefIndex(t) {
619
- const e = this.$refs[this.orderedRefs[this.currentButtonRefIndex]], o = Array.isArray(e) ? e[0] : e, n = (this.currentButtonRefIndex + t) % this.orderedRefs.length;
620
- this.currentButtonRefIndex = n >= 0 ? n : this.orderedRefs.length + n;
621
- const r = this.$refs[this.orderedRefs[this.currentButtonRefIndex]], i = Array.isArray(r) ? r[0] : r;
667
+ const e = this.$refs[this.orderedRefs[this.currentButtonRefIndex]], o = Array.isArray(e) ? e[0] : e, l = (this.currentButtonRefIndex + t) % this.orderedRefs.length;
668
+ this.currentButtonRefIndex = l >= 0 ? l : this.orderedRefs.length + l;
669
+ const s = this.$refs[this.orderedRefs[this.currentButtonRefIndex]], i = Array.isArray(s) ? s[0] : s;
622
670
  o.$el.blur(), i.$el.focus();
671
+ },
672
+ getFilteredItemsForCategory(t) {
673
+ const e = this.variableSearchValue.toLowerCase();
674
+ return t.name.toLowerCase().includes(e) ? t.items : t.items.filter(
675
+ (o) => o.name.toLowerCase().includes(e)
676
+ );
623
677
  }
624
678
  }
625
- }, at = { class: "d-recipe-editor__popover-content" };
626
- function ct(t, e, o, n, r, i) {
627
- const d = h("dt-button"), T = h("dt-tooltip"), I = h("dt-stack"), P = h("dt-input"), G = h("dt-popover"), $ = h("dt-rich-text-editor");
628
- return c(), A("div", f({ class: "d-recipe-editor" }, i.addClassStyleAttrs(t.$attrs), {
679
+ }, Tt = { class: "d-recipe-editor__popover-content" };
680
+ function It(t, e, o, l, s, i) {
681
+ const p = h("dt-button"), k = h("dt-tooltip"), T = h("dt-stack"), j = h("dt-icon-search"), C = h("dt-input"), J = h("dt-list-item"), Y = h("dt-dropdown-separator"), X = h("dt-list-item-group"), R = h("dt-popover"), $ = h("dt-rich-text-editor");
682
+ return u(), _("div", f({ class: "d-recipe-editor" }, i.addClassStyleAttrs(t.$attrs), {
629
683
  "data-qa": "dt-recipe-editor",
630
684
  role: "presentation",
631
- onClick: e[4] || (e[4] = (s) => t.$refs.richTextEditor.focusEditor())
685
+ onClick: e[5] || (e[5] = (a) => t.$refs.richTextEditor.focusEditor())
632
686
  }), [
633
- a(I, {
687
+ c(T, {
634
688
  class: "d-recipe-editor__top-bar",
635
689
  direction: "row",
636
690
  gap: "450"
637
691
  }, {
638
- default: u(() => [
639
- (c(!0), A(q, null, V(i.buttonGroups, (s) => (c(), B(I, {
640
- key: s.key,
692
+ default: r(() => [
693
+ (u(!0), _(w, null, O(i.buttonGroups, (a) => (u(), d(T, {
694
+ key: a.key,
641
695
  direction: "row",
642
696
  gap: "300"
643
697
  }, {
644
- default: u(() => [
645
- (c(!0), A(q, null, V(s.buttonGroup, (l) => (c(), B(T, {
646
- key: i.getButtonKey(s.key, l.selector),
647
- message: l.tooltipMessage,
698
+ default: r(() => [
699
+ (u(!0), _(w, null, O(a.buttonGroup, (n) => (u(), d(k, {
700
+ key: i.getButtonKey(a.key, n.selector),
701
+ message: n.tooltipMessage,
648
702
  placement: "top"
649
703
  }, {
650
- anchor: u(() => {
651
- var m, E;
704
+ anchor: r(() => {
705
+ var I, B;
652
706
  return [
653
- a(d, {
707
+ c(p, {
654
708
  ref_for: !0,
655
- ref: i.getButtonRef(s.key, l.selector),
656
- active: (E = (m = t.$refs.richTextEditor) == null ? void 0 : m.editor) == null ? void 0 : E.isActive(l.selector),
657
- "aria-label": l.tooltipMessage,
658
- "data-qa": l.dataQA,
659
- tabindex: i.canFocus(i.getButtonRef(s.key, l.selector)) ? 0 : -1,
709
+ ref: i.getButtonRef(a.key, n.selector),
710
+ active: (B = (I = t.$refs.richTextEditor) == null ? void 0 : I.editor) == null ? void 0 : B.isActive(n.selector),
711
+ "aria-label": n.tooltipMessage,
712
+ "data-qa": n.dataQA,
713
+ tabindex: i.canFocus(i.getButtonRef(a.key, n.selector)) ? 0 : -1,
660
714
  importance: "clear",
661
715
  kind: "muted",
662
716
  size: "xs",
663
- onClick: (dt) => l.onClick(),
717
+ onClick: (W) => n.onClick(),
664
718
  onKeydown: [
665
- g(p(i.shiftActionBarFocusRight, ["stop"]), ["right"]),
666
- g(p(i.shiftActionBarFocusLeft, ["stop"]), ["left"])
719
+ L(g(i.shiftActionBarFocusRight, ["stop"]), ["right"]),
720
+ L(g(i.shiftActionBarFocusLeft, ["stop"]), ["left"])
667
721
  ]
668
722
  }, {
669
- icon: u(() => [
670
- (c(), B(K(l.icon), { size: "200" }))
723
+ icon: r(() => [
724
+ (u(), d(b(n.icon), { size: "200" }))
671
725
  ]),
672
- default: u(() => [
673
- L(" " + k(l == null ? void 0 : l.label), 1)
726
+ default: r(() => [
727
+ A(" " + m(n == null ? void 0 : n.label), 1)
674
728
  ]),
675
729
  _: 2
676
730
  }, 1032, ["active", "aria-label", "data-qa", "tabindex", "onClick", "onKeydown"])
@@ -678,54 +732,134 @@ function ct(t, e, o, n, r, i) {
678
732
  }),
679
733
  _: 2
680
734
  }, 1032, ["message"]))), 128)),
681
- e[5] || (e[5] = _("div", { class: "d-recipe-editor__button-group-divider" }, null, -1))
735
+ e[6] || (e[6] = E("div", { class: "d-recipe-editor__button-group-divider" }, null, -1))
682
736
  ]),
683
737
  _: 2
684
738
  }, 1024))), 128)),
685
- i.linkButton.showBtn ? (c(), B(I, {
739
+ i.variableButton.showBtn ? (u(), d(T, {
686
740
  key: 0,
687
741
  direction: "row",
688
742
  gap: "300"
689
743
  }, {
690
- default: u(() => [
691
- a(G, {
692
- open: r.showLinkInput,
744
+ default: r(() => [
745
+ c(R, {
746
+ padding: "small",
747
+ "navigation-type": "arrow-keys",
748
+ modal: !1,
749
+ placement: "bottom-start"
750
+ }, {
751
+ anchor: r(({ attrs: a }) => [
752
+ c(k, {
753
+ message: i.variableButton.tooltipMessage,
754
+ placement: "top"
755
+ }, {
756
+ anchor: r(() => [
757
+ c(p, f(a, {
758
+ kind: "muted",
759
+ size: "xs",
760
+ importance: "clear",
761
+ "aria-label": i.variableButton.tooltipMessage,
762
+ "data-qa": i.variableButton.dataQA,
763
+ "label-class": "d-jc-flex-start"
764
+ }), {
765
+ icon: r(() => [
766
+ (u(), d(b(i.variableButton.icon), { size: "200" }))
767
+ ]),
768
+ _: 1
769
+ }, 16, ["aria-label", "data-qa"])
770
+ ]),
771
+ _: 2
772
+ }, 1032, ["message"])
773
+ ]),
774
+ content: r(({ close: a }) => [
775
+ c(C, {
776
+ modelValue: s.variableSearchValue,
777
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => s.variableSearchValue = n),
778
+ "root-class": "d-p8 d-pb4 d-w264",
779
+ type: "search",
780
+ placeholder: s.i18n.$t("DIALTONE_EDITOR_VARIABLE_POPOVER_SEARCH_PLACEHOLDER"),
781
+ size: "md",
782
+ role: "menuitem"
783
+ }, {
784
+ leftIcon: r(({ iconSize: n }) => [
785
+ c(j, { size: n }, null, 8, ["size"])
786
+ ]),
787
+ _: 1
788
+ }, 8, ["modelValue", "placeholder"]),
789
+ (u(!0), _(w, null, O(i.filteredCategories, (n, I) => (u(), d(X, {
790
+ key: n.name,
791
+ heading: n.name,
792
+ "heading-class": "d-headline--sm-compact d-p8"
793
+ }, {
794
+ default: r(() => [
795
+ (u(!0), _(w, null, O(i.getFilteredItemsForCategory(n), (B) => (u(), d(J, {
796
+ key: n.name + B.name,
797
+ role: "menuitem",
798
+ "navigation-type": "arrow-keys",
799
+ onClick: (W) => {
800
+ i.insertVariable(n.name, B), a();
801
+ }
802
+ }, {
803
+ default: r(() => [
804
+ A(m(B.name), 1)
805
+ ]),
806
+ _: 2
807
+ }, 1032, ["onClick"]))), 128)),
808
+ I < i.filteredCategories.length - 1 ? (u(), d(Y, { key: 0 })) : D("", !0)
809
+ ]),
810
+ _: 2
811
+ }, 1032, ["heading"]))), 128))
812
+ ]),
813
+ _: 1
814
+ }),
815
+ e[7] || (e[7] = E("div", { class: "d-recipe-editor__button-group-divider" }, null, -1))
816
+ ]),
817
+ _: 1
818
+ })) : D("", !0),
819
+ i.linkButton.showBtn ? (u(), d(T, {
820
+ key: 1,
821
+ direction: "row",
822
+ gap: "300"
823
+ }, {
824
+ default: r(() => [
825
+ c(R, {
826
+ open: s.showLinkInput,
693
827
  "show-close-button": !1,
694
828
  "data-qa": "dt-recipe-editor-link-input-popover",
695
829
  padding: "none",
696
830
  placement: "bottom-start",
697
831
  onClick: [
698
832
  i.onInputFocus,
699
- p(i.onInputFocus, ["stop"])
833
+ g(i.onInputFocus, ["stop"])
700
834
  ],
701
835
  onOpened: i.updateInput
702
836
  }, {
703
- anchor: u(() => [
704
- (c(), B(T, {
837
+ anchor: r(() => [
838
+ (u(), d(k, {
705
839
  key: i.linkButton.key,
706
840
  message: i.linkButton.tooltipMessage,
707
841
  placement: "top"
708
842
  }, {
709
- anchor: u(() => {
710
- var s, l;
843
+ anchor: r(() => {
844
+ var a, n;
711
845
  return [
712
- a(d, {
846
+ c(p, {
713
847
  ref: i.getButtonRef("custom", "link"),
714
- active: (l = (s = t.$refs.richTextEditor) == null ? void 0 : s.editor) == null ? void 0 : l.isActive(i.linkButton.selector),
848
+ active: (n = (a = t.$refs.richTextEditor) == null ? void 0 : a.editor) == null ? void 0 : n.isActive(i.linkButton.selector),
715
849
  "aria-label": i.linkButton.tooltipMessage,
716
850
  "data-qa": i.linkButton.dataQA,
717
851
  tabindex: i.canFocus(i.getButtonRef("custom", "link")) ? 0 : -1,
718
852
  importance: "clear",
719
853
  kind: "muted",
720
854
  size: "xs",
721
- onClick: e[0] || (e[0] = (m) => i.linkButton.onClick()),
855
+ onClick: e[1] || (e[1] = (I) => i.linkButton.onClick()),
722
856
  onKeydown: [
723
- g(p(i.shiftActionBarFocusRight, ["stop"]), ["right"]),
724
- g(p(i.shiftActionBarFocusLeft, ["stop"]), ["left"])
857
+ L(g(i.shiftActionBarFocusRight, ["stop"]), ["right"]),
858
+ L(g(i.shiftActionBarFocusLeft, ["stop"]), ["left"])
725
859
  ]
726
860
  }, {
727
- icon: u(() => [
728
- (c(), B(K(i.linkButton.icon), { size: "200" }))
861
+ icon: r(() => [
862
+ (u(), d(b(i.linkButton.icon), { size: "200" }))
729
863
  ]),
730
864
  _: 1
731
865
  }, 8, ["active", "aria-label", "data-qa", "tabindex", "onKeydown"])
@@ -734,60 +868,60 @@ function ct(t, e, o, n, r, i) {
734
868
  _: 1
735
869
  }, 8, ["message"]))
736
870
  ]),
737
- content: u(() => [
738
- _("div", at, [
739
- _("span", null, k(i.showAddLinkButtonLabels.title), 1),
740
- a(P, {
741
- modelValue: r.linkInput,
742
- "onUpdate:modelValue": e[1] || (e[1] = (s) => r.linkInput = s),
871
+ content: r(() => [
872
+ E("div", Tt, [
873
+ E("span", null, m(i.showAddLinkButtonLabels.title), 1),
874
+ c(C, {
875
+ modelValue: s.linkInput,
876
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => s.linkInput = a),
743
877
  "input-aria-label": i.showAddLinkButtonLabels["aria-label"],
744
878
  placeholder: o.setLinkPlaceholder,
745
879
  "data-qa": "dt-recipe-editor-link-input",
746
880
  "input-wrapper-class": "d-recipe-editor-link__input-wrapper",
747
881
  onClick: [
748
882
  i.onInputFocus,
749
- p(i.onInputFocus, ["stop"])
883
+ g(i.onInputFocus, ["stop"])
750
884
  ],
751
885
  onFocus: i.onInputFocus,
752
- onKeydown: g(i.setLink, ["enter"])
886
+ onKeydown: L(i.setLink, ["enter"])
753
887
  }, null, 8, ["modelValue", "input-aria-label", "placeholder", "onClick", "onFocus", "onKeydown"])
754
888
  ])
755
889
  ]),
756
- footerContent: u(() => [
757
- a(I, {
890
+ footerContent: r(() => [
891
+ c(T, {
758
892
  direction: "row",
759
893
  gap: "300",
760
894
  class: "d-recipe-editor__popover-footer"
761
895
  }, {
762
- default: u(() => [
763
- a(d, f({
896
+ default: r(() => [
897
+ c(p, f({
764
898
  "data-qa": "dt-recipe-editor-remove-link-btn",
765
899
  importance: "clear",
766
900
  kind: "muted",
767
901
  size: "sm"
768
902
  }, i.removeLinkButtonLabels, { onClick: i.removeLink }), {
769
- default: u(() => [
770
- L(k(i.removeLinkButtonLabels.title), 1)
903
+ default: r(() => [
904
+ A(m(i.removeLinkButtonLabels.title), 1)
771
905
  ]),
772
906
  _: 1
773
907
  }, 16, ["onClick"]),
774
- a(d, f({
908
+ c(p, f({
775
909
  "data-qa": "dt-recipe-editor-set-link-cancel-btn",
776
910
  importance: "clear",
777
911
  kind: "muted",
778
912
  size: "sm"
779
913
  }, i.cancelSetLinkButtonLabels, { onClick: i.closeLinkInput }), {
780
- default: u(() => [
781
- L(k(i.cancelSetLinkButtonLabels.title), 1)
914
+ default: r(() => [
915
+ A(m(i.cancelSetLinkButtonLabels.title), 1)
782
916
  ]),
783
917
  _: 1
784
918
  }, 16, ["onClick"]),
785
- a(d, f({
919
+ c(p, f({
786
920
  "data-qa": "dt-recipe-editor-set-link-confirm-btn",
787
921
  size: "sm"
788
922
  }, i.confirmSetLinkButtonLabels, { onClick: i.setLink }), {
789
- default: u(() => [
790
- L(k(i.confirmSetLinkButtonLabels.title), 1)
923
+ default: r(() => [
924
+ A(m(i.confirmSetLinkButtonLabels.title), 1)
791
925
  ]),
792
926
  _: 1
793
927
  }, 16, ["onClick"])
@@ -799,22 +933,24 @@ function ct(t, e, o, n, r, i) {
799
933
  }, 8, ["open", "onClick", "onOpened"])
800
934
  ]),
801
935
  _: 1
802
- })) : X("", !0)
936
+ })) : D("", !0)
803
937
  ]),
804
938
  _: 1
805
939
  }),
806
- _("div", {
807
- style: W({ "max-height": o.maxHeight }),
940
+ E("div", {
941
+ style: rt({ "max-height": o.maxHeight }),
808
942
  class: "d-recipe-editor__content"
809
943
  }, [
810
- a($, f({
944
+ c($, f({
811
945
  ref: "richTextEditor",
812
- modelValue: r.internalInputValue,
813
- "onUpdate:modelValue": e[2] || (e[2] = (s) => r.internalInputValue = s),
946
+ modelValue: s.internalInputValue,
947
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => s.internalInputValue = a),
814
948
  "allow-font-color": !0,
815
949
  "allow-font-family": !0,
816
950
  "allow-inline-images": !0,
817
951
  "allow-line-breaks": !0,
952
+ "allow-variable": !0,
953
+ "variable-items": i.flattenedVariableItems,
818
954
  "hide-link-bubble-menu": !0,
819
955
  "auto-focus": o.autoFocus,
820
956
  editable: o.editable,
@@ -830,13 +966,13 @@ function ct(t, e, o, n, r, i) {
830
966
  onTextInput: i.onTextInput,
831
967
  onBlur: i.onBlur,
832
968
  onFocus: i.onFocus,
833
- onInput: e[3] || (e[3] = (s) => i.onInput(s))
834
- }), null, 16, ["modelValue", "auto-focus", "editable", "input-aria-label", "input-class", "output-format", "placeholder", "use-div-tags", "allow-tables", "onTextInput", "onBlur", "onFocus"])
969
+ onInput: e[4] || (e[4] = (a) => i.onInput(a))
970
+ }), null, 16, ["modelValue", "variable-items", "auto-focus", "editable", "input-aria-label", "input-class", "output-format", "placeholder", "use-div-tags", "allow-tables", "onTextInput", "onBlur", "onFocus"])
835
971
  ], 4)
836
972
  ], 16);
837
973
  }
838
- const wt = /* @__PURE__ */ Z(ut, [["render", ct]]);
974
+ const Ut = /* @__PURE__ */ st(kt, [["render", It]]);
839
975
  export {
840
- wt as default
976
+ Ut as default
841
977
  };
842
978
  //# sourceMappingURL=editor.js.map