@dialpad/dialtone 9.96.0 → 9.98.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 (126) hide show
  1. package/dist/css/dialtone-default-theme.css +45 -1
  2. package/dist/css/dialtone-default-theme.min.css +1 -1
  3. package/dist/css/dialtone.css +45 -1
  4. package/dist/css/dialtone.min.css +1 -1
  5. package/dist/css/tokens/tokens-base-deca-dark.css +293 -391
  6. package/dist/css/tokens/tokens-base-deca-light.css +284 -382
  7. package/dist/css/tokens/tokens-deca-dark.css +1001 -966
  8. package/dist/css/tokens/tokens-deca-light.css +731 -696
  9. package/dist/tokens/css/tokens-base-deca-dark.css +293 -391
  10. package/dist/tokens/css/tokens-base-deca-light.css +284 -382
  11. package/dist/tokens/css/tokens-deca-dark.css +1001 -966
  12. package/dist/tokens/css/tokens-deca-light.css +731 -696
  13. package/dist/tokens/doc.json +31965 -32211
  14. package/dist/tokens/less/tokens-base-deca-dark.less +77 -91
  15. package/dist/tokens/less/tokens-base-deca-light.less +75 -89
  16. package/dist/tokens/less/tokens-deca-dark.less +225 -220
  17. package/dist/tokens/less/tokens-deca-light.less +229 -224
  18. package/dist/tokens/themes/dp-deca-dark.cjs +1 -1
  19. package/dist/tokens/themes/dp-deca-dark.js +1 -1
  20. package/dist/tokens/themes/dp-deca-light.cjs +1 -1
  21. package/dist/tokens/themes/dp-deca-light.js +1 -1
  22. package/dist/tokens/tokens-base-deca-dark.json +77 -91
  23. package/dist/tokens/tokens-base-deca-light.json +75 -89
  24. package/dist/tokens/tokens-deca-dark.json +224 -219
  25. package/dist/tokens/tokens-deca-light.json +229 -224
  26. package/dist/vue2/component-documentation.json +1 -1
  27. package/dist/vue2/components/keyboard_shortcut/keyboard_shortcut.vue.cjs +2 -2
  28. package/dist/vue2/components/keyboard_shortcut/keyboard_shortcut.vue.js +2 -2
  29. package/dist/vue2/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.cjs.map +1 -1
  30. package/dist/vue2/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.js.map +1 -1
  31. package/dist/vue2/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.cjs.map +1 -1
  32. package/dist/vue2/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.js.map +1 -1
  33. package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.cjs +160 -17
  34. package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.cjs.map +1 -1
  35. package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.js +161 -18
  36. package/dist/vue2/components/rich_text_editor/rich_text_editor.vue.js.map +1 -1
  37. package/dist/vue2/recipes/conversation_view/editor/editor.vue.cjs +1 -1
  38. package/dist/vue2/recipes/conversation_view/editor/editor.vue.cjs.map +1 -1
  39. package/dist/vue2/recipes/conversation_view/editor/editor.vue.js +1 -1
  40. package/dist/vue2/recipes/conversation_view/editor/editor.vue.js.map +1 -1
  41. package/dist/vue2/recipes/conversation_view/message_input/last_active_nodes.cjs +87 -0
  42. package/dist/vue2/recipes/conversation_view/message_input/last_active_nodes.cjs.map +1 -0
  43. package/dist/vue2/recipes/conversation_view/message_input/last_active_nodes.js +87 -0
  44. package/dist/vue2/recipes/conversation_view/message_input/last_active_nodes.js.map +1 -0
  45. package/dist/vue2/recipes/conversation_view/message_input/message_input.vue.cjs +229 -46
  46. package/dist/vue2/recipes/conversation_view/message_input/message_input.vue.cjs.map +1 -1
  47. package/dist/vue2/recipes/conversation_view/message_input/message_input.vue.js +229 -46
  48. package/dist/vue2/recipes/conversation_view/message_input/message_input.vue.js.map +1 -1
  49. package/dist/vue2/recipes/conversation_view/message_input/message_input_button.vue.cjs +58 -0
  50. package/dist/vue2/recipes/conversation_view/message_input/message_input_button.vue.cjs.map +1 -0
  51. package/dist/vue2/recipes/conversation_view/message_input/message_input_button.vue.js +58 -0
  52. package/dist/vue2/recipes/conversation_view/message_input/message_input_button.vue.js.map +1 -0
  53. package/dist/vue2/recipes/conversation_view/message_input/message_input_link.vue.cjs +108 -0
  54. package/dist/vue2/recipes/conversation_view/message_input/message_input_link.vue.cjs.map +1 -0
  55. package/dist/vue2/recipes/conversation_view/message_input/message_input_link.vue.js +108 -0
  56. package/dist/vue2/recipes/conversation_view/message_input/message_input_link.vue.js.map +1 -0
  57. package/dist/vue2/recipes/conversation_view/message_input/message_input_topbar.vue.cjs +106 -0
  58. package/dist/vue2/recipes/conversation_view/message_input/message_input_topbar.vue.cjs.map +1 -0
  59. package/dist/vue2/recipes/conversation_view/message_input/message_input_topbar.vue.js +106 -0
  60. package/dist/vue2/recipes/conversation_view/message_input/message_input_topbar.vue.js.map +1 -0
  61. package/dist/vue2/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
  62. package/dist/vue2/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
  63. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +37 -1
  64. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  65. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  66. package/dist/vue2/types/recipes/conversation_view/message_input/last_active_nodes.d.ts +3 -0
  67. package/dist/vue2/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -0
  68. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +183 -60
  69. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  70. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts +48 -0
  71. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -0
  72. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +38 -0
  73. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -0
  74. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +87 -0
  75. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -0
  76. package/dist/vue3/component-documentation.json +1 -1
  77. package/dist/vue3/components/keyboard_shortcut/keyboard_shortcut.vue.cjs +2 -2
  78. package/dist/vue3/components/keyboard_shortcut/keyboard_shortcut.vue.js +2 -2
  79. package/dist/vue3/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.cjs.map +1 -1
  80. package/dist/vue3/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.js.map +1 -1
  81. package/dist/vue3/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.cjs.map +1 -1
  82. package/dist/vue3/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.js.map +1 -1
  83. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.cjs +223 -21
  84. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.cjs.map +1 -1
  85. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.js +225 -23
  86. package/dist/vue3/components/rich_text_editor/rich_text_editor.vue.js.map +1 -1
  87. package/dist/vue3/recipes/conversation_view/editor/editor.vue.cjs +1 -0
  88. package/dist/vue3/recipes/conversation_view/editor/editor.vue.cjs.map +1 -1
  89. package/dist/vue3/recipes/conversation_view/editor/editor.vue.js +1 -0
  90. package/dist/vue3/recipes/conversation_view/editor/editor.vue.js.map +1 -1
  91. package/dist/vue3/recipes/conversation_view/message_input/last_active_nodes.cjs +87 -0
  92. package/dist/vue3/recipes/conversation_view/message_input/last_active_nodes.cjs.map +1 -0
  93. package/dist/vue3/recipes/conversation_view/message_input/last_active_nodes.js +87 -0
  94. package/dist/vue3/recipes/conversation_view/message_input/last_active_nodes.js.map +1 -0
  95. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.cjs +279 -65
  96. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.cjs.map +1 -1
  97. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.js +280 -66
  98. package/dist/vue3/recipes/conversation_view/message_input/message_input.vue.js.map +1 -1
  99. package/dist/vue3/recipes/conversation_view/message_input/message_input_button.vue.cjs +81 -0
  100. package/dist/vue3/recipes/conversation_view/message_input/message_input_button.vue.cjs.map +1 -0
  101. package/dist/vue3/recipes/conversation_view/message_input/message_input_button.vue.js +81 -0
  102. package/dist/vue3/recipes/conversation_view/message_input/message_input_button.vue.js.map +1 -0
  103. package/dist/vue3/recipes/conversation_view/message_input/message_input_link.vue.cjs +193 -0
  104. package/dist/vue3/recipes/conversation_view/message_input/message_input_link.vue.cjs.map +1 -0
  105. package/dist/vue3/recipes/conversation_view/message_input/message_input_link.vue.js +193 -0
  106. package/dist/vue3/recipes/conversation_view/message_input/message_input_link.vue.js.map +1 -0
  107. package/dist/vue3/recipes/conversation_view/message_input/message_input_topbar.vue.cjs +223 -0
  108. package/dist/vue3/recipes/conversation_view/message_input/message_input_topbar.vue.cjs.map +1 -0
  109. package/dist/vue3/recipes/conversation_view/message_input/message_input_topbar.vue.js +223 -0
  110. package/dist/vue3/recipes/conversation_view/message_input/message_input_topbar.vue.js.map +1 -0
  111. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
  112. package/dist/vue3/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
  113. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts +42 -1
  114. package/dist/vue3/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  115. package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  116. package/dist/vue3/types/recipes/conversation_view/message_input/last_active_nodes.d.ts +3 -0
  117. package/dist/vue3/types/recipes/conversation_view/message_input/last_active_nodes.d.ts.map +1 -0
  118. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +185 -61
  119. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  120. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts +50 -0
  121. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -0
  122. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +42 -0
  123. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -0
  124. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +89 -0
  125. package/dist/vue3/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -0
  126. package/package.json +7 -4
@@ -0,0 +1,193 @@
1
+ import { DtIconLink2 } from "@dialpad/dialtone-icons/vue3";
2
+ import DtRecipeMessageInputButton from "./message_input_button.vue.js";
3
+ import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, toDisplayString, createCommentVNode, withModifiers, withKeys, createTextVNode } from "vue";
4
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ import DtPopover from "../../../components/popover/popover.vue.js";
6
+ import DtInput from "../../../components/input/input.vue.js";
7
+ import DtButton from "../../../components/button/button.vue.js";
8
+ import DtStack from "../../../components/stack/stack.vue.js";
9
+ const _sfc_main = {
10
+ name: "MessageInputLink",
11
+ components: {
12
+ DtPopover,
13
+ DtInput,
14
+ DtButton,
15
+ DtStack,
16
+ DtIconLink2,
17
+ DtRecipeMessageInputButton
18
+ },
19
+ props: {
20
+ open: {
21
+ type: Boolean,
22
+ default: false
23
+ },
24
+ linkButtonOptions: {
25
+ type: Object,
26
+ required: true
27
+ },
28
+ isSelectionActive: {
29
+ type: Function,
30
+ default: () => {
31
+ }
32
+ }
33
+ },
34
+ emits: ["set-link", "remove-link", "opened"],
35
+ data() {
36
+ return {
37
+ linkText: "",
38
+ linkInput: "",
39
+ isOpen: false
40
+ };
41
+ },
42
+ watch: {
43
+ open: {
44
+ immediate: true,
45
+ handler(value) {
46
+ this.isOpen = value;
47
+ }
48
+ }
49
+ },
50
+ methods: {
51
+ setInitialValues(linkText, linkInput) {
52
+ this.linkText = linkText;
53
+ this.linkInput = linkInput;
54
+ }
55
+ }
56
+ };
57
+ const _hoisted_1 = {
58
+ key: 0,
59
+ class: "d-recipe-message-input__link-dialog-title"
60
+ };
61
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
62
+ const _component_dt_icon_link2 = resolveComponent("dt-icon-link2");
63
+ const _component_dt_recipe_message_input_button = resolveComponent("dt-recipe-message-input-button");
64
+ const _component_dt_input = resolveComponent("dt-input");
65
+ const _component_dt_button = resolveComponent("dt-button");
66
+ const _component_dt_stack = resolveComponent("dt-stack");
67
+ const _component_dt_popover = resolveComponent("dt-popover");
68
+ return openBlock(), createBlock(_component_dt_popover, {
69
+ open: $data.isOpen,
70
+ placement: "bottom-start",
71
+ "content-class": "d-recipe-message-input__link-popover",
72
+ "visually-hidden-close": true,
73
+ "visually-hidden-close-label": $props.linkButtonOptions.visuallyHiddenCloseText,
74
+ "data-qa": "dt-message-input-link-popover",
75
+ "show-close-button": false,
76
+ onOpened: _cache[12] || (_cache[12] = ($event) => _ctx.$emit("opened", $event))
77
+ }, {
78
+ anchor: withCtx(() => [
79
+ createVNode(_component_dt_recipe_message_input_button, {
80
+ "aria-label": $props.linkButtonOptions.ariaLabel,
81
+ "tooltip-text": $props.linkButtonOptions.tooltipText,
82
+ "keyboard-shortcut-text": $props.linkButtonOptions.keyboardShortcutText,
83
+ "data-qa": "message-input-link-btn",
84
+ "is-active": $props.isSelectionActive("link"),
85
+ onClick: _cache[0] || (_cache[0] = ($event) => $data.isOpen = true)
86
+ }, {
87
+ icon: withCtx(() => [
88
+ createVNode(_component_dt_icon_link2, {
89
+ class: "d-recipe-message-input__button-stack-icon",
90
+ size: "200"
91
+ })
92
+ ]),
93
+ _: 1
94
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"])
95
+ ]),
96
+ content: withCtx(() => [
97
+ createVNode(_component_dt_stack, { gap: "500" }, {
98
+ default: withCtx(() => [
99
+ $props.linkButtonOptions.dialogTitle.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString($props.linkButtonOptions.dialogTitle), 1)) : createCommentVNode("", true),
100
+ createVNode(_component_dt_input, {
101
+ modelValue: $data.linkText,
102
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.linkText = $event),
103
+ "input-aria-label": $props.linkButtonOptions.textLabel,
104
+ size: "xs",
105
+ "data-qa": "dt-message-input-link-text-input",
106
+ label: $props.linkButtonOptions.textLabel,
107
+ "input-wrapper-class": "d-recipe-message-input__link-input",
108
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {
109
+ }, ["stop"])),
110
+ onFocus: _cache[3] || (_cache[3] = withModifiers(() => {
111
+ }, ["stop"])),
112
+ onKeydown: _cache[4] || (_cache[4] = withKeys(($event) => _ctx.$emit("set-link", $data.linkText, $data.linkInput), ["enter"]))
113
+ }, null, 8, ["modelValue", "input-aria-label", "label"]),
114
+ createVNode(_component_dt_input, {
115
+ modelValue: $data.linkInput,
116
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.linkInput = $event),
117
+ "input-aria-label": $props.linkButtonOptions.linkLabel,
118
+ size: "xs",
119
+ "data-qa": "dt-message-input-link-input",
120
+ placeholder: $props.linkButtonOptions.linkPlaceholder,
121
+ label: $props.linkButtonOptions.linkLabel,
122
+ "input-wrapper-class": "d-recipe-message-input__link-input",
123
+ onClick: _cache[6] || (_cache[6] = withModifiers(() => {
124
+ }, ["stop"])),
125
+ onFocus: _cache[7] || (_cache[7] = withModifiers(() => {
126
+ }, ["stop"])),
127
+ onKeydown: _cache[8] || (_cache[8] = withKeys(($event) => _ctx.$emit("set-link", $data.linkText, $data.linkInput), ["enter"]))
128
+ }, null, 8, ["modelValue", "input-aria-label", "placeholder", "label"]),
129
+ createVNode(_component_dt_stack, {
130
+ direction: "row",
131
+ class: "d-recipe-message-input__link-dialog-buttons"
132
+ }, {
133
+ default: withCtx(() => [
134
+ createVNode(_component_dt_button, {
135
+ "aria-label": $props.linkButtonOptions.removeLabel,
136
+ importance: "clear",
137
+ kind: "danger",
138
+ size: "md",
139
+ "data-qa": "dt-message-input-link-remove-btn",
140
+ onClick: _cache[9] || (_cache[9] = ($event) => _ctx.$emit("remove-link", $data.linkText, $data.linkInput))
141
+ }, {
142
+ default: withCtx(() => [
143
+ createTextVNode(toDisplayString($props.linkButtonOptions.removeLabel), 1)
144
+ ]),
145
+ _: 1
146
+ }, 8, ["aria-label"]),
147
+ createVNode(_component_dt_stack, {
148
+ direction: "row",
149
+ gap: "400"
150
+ }, {
151
+ default: withCtx(() => [
152
+ createVNode(_component_dt_button, {
153
+ "aria-label": $props.linkButtonOptions.cancelLabel,
154
+ importance: "clear",
155
+ kind: "muted",
156
+ size: "md",
157
+ "data-qa": "dt-message-input-link-cancel-btn",
158
+ onClick: _cache[10] || (_cache[10] = ($event) => $data.isOpen = false)
159
+ }, {
160
+ default: withCtx(() => [
161
+ createTextVNode(toDisplayString($props.linkButtonOptions.cancelLabel), 1)
162
+ ]),
163
+ _: 1
164
+ }, 8, ["aria-label"]),
165
+ createVNode(_component_dt_button, {
166
+ size: "md",
167
+ "aria-label": $props.linkButtonOptions.confirmLabel,
168
+ "data-qa": "dt-message-input-link-confirm-btn",
169
+ onClick: _cache[11] || (_cache[11] = ($event) => _ctx.$emit("set-link", $data.linkText, $data.linkInput))
170
+ }, {
171
+ default: withCtx(() => [
172
+ createTextVNode(toDisplayString($props.linkButtonOptions.confirmLabel), 1)
173
+ ]),
174
+ _: 1
175
+ }, 8, ["aria-label"])
176
+ ]),
177
+ _: 1
178
+ })
179
+ ]),
180
+ _: 1
181
+ })
182
+ ]),
183
+ _: 1
184
+ })
185
+ ]),
186
+ _: 1
187
+ }, 8, ["open", "visually-hidden-close-label"]);
188
+ }
189
+ const DtRecipeMessageInputLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
190
+ export {
191
+ DtRecipeMessageInputLink as default
192
+ };
193
+ //# sourceMappingURL=message_input_link.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message_input_link.vue.js","sources":["../../../../recipes/conversation_view/message_input/message_input_link.vue"],"sourcesContent":["<template>\n <dt-popover\n :open=\"isOpen\"\n placement=\"bottom-start\"\n content-class=\"d-recipe-message-input__link-popover\"\n :visually-hidden-close=\"true\"\n :visually-hidden-close-label=\"linkButtonOptions.visuallyHiddenCloseText\"\n data-qa=\"dt-message-input-link-popover\"\n :show-close-button=\"false\"\n @opened=\"$emit('opened', $event)\"\n >\n <template #anchor>\n <dt-recipe-message-input-button\n :aria-label=\"linkButtonOptions.ariaLabel\"\n :tooltip-text=\"linkButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"linkButtonOptions.keyboardShortcutText\"\n data-qa=\"message-input-link-btn\"\n :is-active=\"isSelectionActive('link')\"\n @click=\"isOpen = true\"\n >\n <template #icon>\n <dt-icon-link2\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n </template>\n\n <template #content>\n <dt-stack gap=\"500\">\n <div\n v-if=\"linkButtonOptions.dialogTitle.length > 0\"\n class=\"d-recipe-message-input__link-dialog-title\"\n >\n {{ linkButtonOptions.dialogTitle }}\n </div>\n <dt-input\n v-model=\"linkText\"\n :input-aria-label=\"linkButtonOptions.textLabel\"\n size=\"xs\"\n data-qa=\"dt-message-input-link-text-input\"\n :label=\"linkButtonOptions.textLabel\"\n input-wrapper-class=\"d-recipe-message-input__link-input\"\n @click.stop\n @focus.stop\n @keydown.enter=\"$emit('set-link', linkText, linkInput)\"\n />\n <dt-input\n v-model=\"linkInput\"\n :input-aria-label=\"linkButtonOptions.linkLabel\"\n size=\"xs\"\n data-qa=\"dt-message-input-link-input\"\n :placeholder=\"linkButtonOptions.linkPlaceholder\"\n :label=\"linkButtonOptions.linkLabel\"\n input-wrapper-class=\"d-recipe-message-input__link-input\"\n @click.stop\n @focus.stop\n @keydown.enter=\"$emit('set-link', linkText, linkInput)\"\n />\n <dt-stack\n direction=\"row\"\n class=\"d-recipe-message-input__link-dialog-buttons\"\n >\n <dt-button\n :aria-label=\"linkButtonOptions.removeLabel\"\n importance=\"clear\"\n kind=\"danger\"\n size=\"md\"\n data-qa=\"dt-message-input-link-remove-btn\"\n @click=\"$emit('remove-link', linkText, linkInput)\"\n >\n {{ linkButtonOptions.removeLabel }}\n </dt-button>\n <dt-stack\n direction=\"row\"\n gap=\"400\"\n >\n <dt-button\n :aria-label=\"linkButtonOptions.cancelLabel\"\n importance=\"clear\"\n kind=\"muted\"\n size=\"md\"\n data-qa=\"dt-message-input-link-cancel-btn\"\n @click=\"isOpen = false\"\n >\n {{ linkButtonOptions.cancelLabel }}\n </dt-button>\n <dt-button\n size=\"md\"\n :aria-label=\"linkButtonOptions.confirmLabel\"\n data-qa=\"dt-message-input-link-confirm-btn\"\n @click=\"$emit('set-link', linkText, linkInput)\"\n >\n {{ linkButtonOptions.confirmLabel }}\n </dt-button>\n </dt-stack>\n </dt-stack>\n </dt-stack>\n </template>\n </dt-popover>\n</template>\n\n<script>\nimport { DtPopover } from '@/components/popover';\nimport { DtInput } from '@/components/input';\nimport { DtButton } from '@/components/button';\nimport { DtStack } from '@/components/stack';\nimport { DtIconLink2 } from '@dialpad/dialtone-icons/vue3';\nimport DtRecipeMessageInputButton from './message_input_button.vue';\nexport default {\n name: 'MessageInputLink',\n\n components: {\n DtPopover,\n DtInput,\n DtButton,\n DtStack,\n DtIconLink2,\n DtRecipeMessageInputButton,\n },\n\n props: {\n open: {\n type: Boolean,\n default: false,\n },\n\n linkButtonOptions: {\n type: Object,\n required: true,\n },\n\n isSelectionActive: {\n type: Function,\n default: () => {},\n },\n },\n\n emits: ['set-link', 'remove-link', 'opened'],\n\n data () {\n return {\n linkText: '',\n linkInput: '',\n isOpen: false,\n };\n },\n\n watch: {\n open: {\n immediate: true,\n handler (value) {\n this.isOpen = value;\n },\n },\n },\n\n methods: {\n setInitialValues (linkText, linkInput) {\n this.linkText = linkText;\n this.linkInput = linkInput;\n },\n },\n};\n</script>\n"],"names":["_createBlock","_createVNode","_withCtx","_openBlock","_createElementBlock","_toDisplayString","_createCommentVNode","_withModifiers","_withKeys","_createTextVNode"],"mappings":";;;;;;;;AA8GA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EAEN,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAAA,EAED,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IAED,mBAAmB;AAAA,MACjB,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,IAED,mBAAmB;AAAA,MACjB,MAAM;AAAA,MACN,SAAS,MAAM;AAAA,MAAE;AAAA,IAClB;AAAA,EACF;AAAA,EAED,OAAO,CAAC,YAAY,eAAe,QAAQ;AAAA,EAE3C,OAAQ;AACN,WAAO;AAAA,MACL,UAAU;AAAA,MACV,WAAW;AAAA,MACX,QAAQ;AAAA;EAEX;AAAA,EAED,OAAO;AAAA,IACL,MAAM;AAAA,MACJ,WAAW;AAAA,MACX,QAAS,OAAO;AACd,aAAK,SAAS;AAAA,MACf;AAAA,IACF;AAAA,EACF;AAAA,EAED,SAAS;AAAA,IACP,iBAAkB,UAAU,WAAW;AACrC,WAAK,WAAW;AAChB,WAAK,YAAY;AAAA,IAClB;AAAA,EACF;AACH;;EApKA,KAAA;AAAA,EAiCU,OAAM;;;;;;;;;sBAhCdA,YAmGa,uBAAA;AAAA,IAlGV,MAAM,MAAM;AAAA,IACb,WAAU;AAAA,IACV,iBAAc;AAAA,IACb,yBAAuB;AAAA,IACvB,+BAA6B,OAAiB,kBAAC;AAAA,IAChD,WAAQ;AAAA,IACP,qBAAmB;AAAA,IACnB,UAAM,OAAA,EAAA,MAAA,OAAA,EAAA,IAAA,YAAE,KAAK,MAAA,UAAW,MAAM;AAAA;IAEpB,gBACT,MAciC;AAAA,MAdjCC,YAciC,2CAAA;AAAA,QAb9B,cAAY,O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AAC,QAsFc,MAAmC;AAAA,sBAtFjDO,gBAsFiBJ,gBAAA,OAAA,kBAAkB,WAAW,GAAA,CAAA;AAAA;oBAtF9C,GAAA;AAAA;kBAwFYJ,YAOY,sBAAA;AAAA,oBANV,MAAK;AAAA,oBACJ,cAAY,OAAiB,kBAAC;AAAA,oBAC/B,WAAQ;AAAA,oBACP,SAAO,OAAA,EAAA,MAAA,OAAA,EAAA,IAAA,YAAA,KAAA,MAAkB,YAAA,MAAA,UAAU,MAAS,SAAA;AAAA;oBA5F3D,SAAAC,QA8Fc,MAAoC;AAAA,sBA9FlDO,gBA8FiBJ,gBAAA,OAAA,kBAAkB,YAAY,GAAA,CAAA;AAAA;oBA9F/C,GAAA;AAAA;;gBAAA,GAAA;AAAA;;YAAA,GAAA;AAAA;;QAAA,GAAA;AAAA;;IAAA,GAAA;AAAA;;;"}
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue3 = require("@dialpad/dialtone-icons/vue3");
4
+ const message_input_button = require("./message_input_button.vue.cjs");
5
+ const vue = require("vue");
6
+ const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.cjs");
7
+ const stack = require("../../../components/stack/stack.vue.cjs");
8
+ const _sfc_main = {
9
+ name: "DtRecipeMesageInputTopbar",
10
+ components: {
11
+ DtStack: stack.default,
12
+ DtIconListBullet: vue3.DtIconListBullet,
13
+ DtIconBold: vue3.DtIconBold,
14
+ DtIconItalic: vue3.DtIconItalic,
15
+ DtIconStrikethrough: vue3.DtIconStrikethrough,
16
+ DtIconListOrdered: vue3.DtIconListOrdered,
17
+ DtIconQuote: vue3.DtIconQuote,
18
+ DtIconCode: vue3.DtIconCode,
19
+ DtIconCodeBlock: vue3.DtIconCodeBlock,
20
+ DtRecipeMessageInputButton: message_input_button.default
21
+ },
22
+ props: {
23
+ boldButtonOptions: {
24
+ type: Object,
25
+ default: () => ({})
26
+ },
27
+ italicButtonOptions: {
28
+ type: Object,
29
+ default: () => ({})
30
+ },
31
+ strikeButtonOptions: {
32
+ type: Object,
33
+ default: () => ({})
34
+ },
35
+ bulletListButtonOptions: {
36
+ type: Object,
37
+ default: () => ({})
38
+ },
39
+ orderedListButtonOptions: {
40
+ type: Object,
41
+ default: () => ({})
42
+ },
43
+ blockQuoteButtonOptions: {
44
+ type: Object,
45
+ default: () => ({})
46
+ },
47
+ codeButtonOptions: {
48
+ type: Object,
49
+ default: () => ({})
50
+ },
51
+ codeBlockButtonOptions: {
52
+ type: Object,
53
+ default: () => ({})
54
+ },
55
+ isSelectionActive: {
56
+ type: Function,
57
+ default: () => {
58
+ }
59
+ }
60
+ },
61
+ emits: ["click"]
62
+ };
63
+ const _hoisted_1 = /* @__PURE__ */ vue.createElementVNode("div", { class: "d-recipe-message-input--button-group-divider" }, null, -1);
64
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "d-recipe-message-input--button-group-divider" }, null, -1);
65
+ const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("div", { class: "d-recipe-message-input--button-group-divider" }, null, -1);
66
+ const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("div", { class: "d-recipe-message-input--button-group-divider" }, null, -1);
67
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
68
+ const _component_dt_icon_bold = vue.resolveComponent("dt-icon-bold");
69
+ const _component_dt_recipe_message_input_button = vue.resolveComponent("dt-recipe-message-input-button");
70
+ const _component_dt_icon_italic = vue.resolveComponent("dt-icon-italic");
71
+ const _component_dt_icon_strikethrough = vue.resolveComponent("dt-icon-strikethrough");
72
+ const _component_dt_icon_list_bullet = vue.resolveComponent("dt-icon-list-bullet");
73
+ const _component_dt_icon_list_ordered = vue.resolveComponent("dt-icon-list-ordered");
74
+ const _component_dt_icon_quote = vue.resolveComponent("dt-icon-quote");
75
+ const _component_dt_icon_code = vue.resolveComponent("dt-icon-code");
76
+ const _component_dt_icon_code_block = vue.resolveComponent("dt-icon-code-block");
77
+ const _component_dt_stack = vue.resolveComponent("dt-stack");
78
+ return vue.openBlock(), vue.createBlock(_component_dt_stack, {
79
+ direction: "row",
80
+ gap: "200",
81
+ class: "d-recipe-message-input__button-stack"
82
+ }, {
83
+ default: vue.withCtx(() => [
84
+ vue.createVNode(_component_dt_recipe_message_input_button, {
85
+ "aria-label": $props.boldButtonOptions.ariaLabel,
86
+ "tooltip-text": $props.boldButtonOptions.tooltipText,
87
+ "keyboard-shortcut-text": $props.boldButtonOptions.keyboardShortcutText,
88
+ "data-qa": "bold",
89
+ "is-active": $props.isSelectionActive("bold"),
90
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", "bold", $event))
91
+ }, {
92
+ icon: vue.withCtx(() => [
93
+ vue.createVNode(_component_dt_icon_bold, {
94
+ class: "d-recipe-message-input__button-stack-icon",
95
+ size: "200"
96
+ })
97
+ ]),
98
+ _: 1
99
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
100
+ vue.createVNode(_component_dt_recipe_message_input_button, {
101
+ "aria-label": $props.italicButtonOptions.ariaLabel,
102
+ "tooltip-text": $props.italicButtonOptions.tooltipText,
103
+ "keyboard-shortcut-text": $props.italicButtonOptions.keyboardShortcutText,
104
+ "data-qa": "italic",
105
+ "is-active": $props.isSelectionActive("italic"),
106
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click", "italic", $event))
107
+ }, {
108
+ icon: vue.withCtx(() => [
109
+ vue.createVNode(_component_dt_icon_italic, {
110
+ class: "d-recipe-message-input__button-stack-icon",
111
+ size: "200"
112
+ })
113
+ ]),
114
+ _: 1
115
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
116
+ vue.createVNode(_component_dt_recipe_message_input_button, {
117
+ "aria-label": $props.strikeButtonOptions.ariaLabel,
118
+ "tooltip-text": $props.strikeButtonOptions.tooltipText,
119
+ "keyboard-shortcut-text": $props.strikeButtonOptions.keyboardShortcutText,
120
+ "data-qa": "strikethrough",
121
+ "is-active": $props.isSelectionActive("strike"),
122
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("click", "strike", $event))
123
+ }, {
124
+ icon: vue.withCtx(() => [
125
+ vue.createVNode(_component_dt_icon_strikethrough, {
126
+ class: "d-recipe-message-input__button-stack-icon",
127
+ size: "200"
128
+ })
129
+ ]),
130
+ _: 1
131
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
132
+ _hoisted_1,
133
+ vue.renderSlot(_ctx.$slots, "link"),
134
+ _hoisted_2,
135
+ vue.createVNode(_component_dt_recipe_message_input_button, {
136
+ "aria-label": $props.bulletListButtonOptions.ariaLabel,
137
+ "tooltip-text": $props.bulletListButtonOptions.tooltipText,
138
+ "keyboard-shortcut-text": $props.bulletListButtonOptions.keyboardShortcutText,
139
+ "data-qa": "bullet-list",
140
+ "is-active": $props.isSelectionActive("bulletList"),
141
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("click", "bulletList", $event))
142
+ }, {
143
+ icon: vue.withCtx(() => [
144
+ vue.createVNode(_component_dt_icon_list_bullet, {
145
+ class: "d-recipe-message-input__button-stack-icon",
146
+ size: "200"
147
+ })
148
+ ]),
149
+ _: 1
150
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
151
+ vue.createVNode(_component_dt_recipe_message_input_button, {
152
+ "aria-label": $props.orderedListButtonOptions.ariaLabel,
153
+ "tooltip-text": $props.orderedListButtonOptions.tooltipText,
154
+ "keyboard-shortcut-text": $props.orderedListButtonOptions.keyboardShortcutText,
155
+ "data-qa": "ordered-list",
156
+ "is-active": $props.isSelectionActive("orderedList"),
157
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", "orderedList", $event))
158
+ }, {
159
+ icon: vue.withCtx(() => [
160
+ vue.createVNode(_component_dt_icon_list_ordered, {
161
+ class: "d-recipe-message-input__button-stack-icon",
162
+ size: "200"
163
+ })
164
+ ]),
165
+ _: 1
166
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
167
+ _hoisted_3,
168
+ vue.createVNode(_component_dt_recipe_message_input_button, {
169
+ "aria-label": $props.blockQuoteButtonOptions.ariaLabel,
170
+ "tooltip-text": $props.blockQuoteButtonOptions.tooltipText,
171
+ "keyboard-shortcut-text": $props.blockQuoteButtonOptions.keyboardShortcutText,
172
+ "data-qa": "blockquote",
173
+ "is-active": $props.isSelectionActive("blockquote"),
174
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("click", "blockquote", $event))
175
+ }, {
176
+ icon: vue.withCtx(() => [
177
+ vue.createVNode(_component_dt_icon_quote, {
178
+ class: "d-recipe-message-input__button-stack-icon",
179
+ size: "200"
180
+ })
181
+ ]),
182
+ _: 1
183
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
184
+ _hoisted_4,
185
+ vue.createVNode(_component_dt_recipe_message_input_button, {
186
+ "aria-label": $props.codeButtonOptions.ariaLabel,
187
+ "tooltip-text": $props.codeButtonOptions.tooltipText,
188
+ "keyboard-shortcut-text": $props.codeButtonOptions.keyboardShortcutText,
189
+ "data-qa": "code",
190
+ "is-active": $props.isSelectionActive("code"),
191
+ onClick: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("click", "code", $event))
192
+ }, {
193
+ icon: vue.withCtx(() => [
194
+ vue.createVNode(_component_dt_icon_code, {
195
+ class: "d-recipe-message-input__button-stack-icon",
196
+ size: "200"
197
+ })
198
+ ]),
199
+ _: 1
200
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"]),
201
+ vue.createVNode(_component_dt_recipe_message_input_button, {
202
+ "aria-label": $props.codeBlockButtonOptions.ariaLabel,
203
+ "tooltip-text": $props.codeBlockButtonOptions.tooltipText,
204
+ "keyboard-shortcut-text": $props.codeBlockButtonOptions.keyboardShortcutText,
205
+ "data-qa": "code-block",
206
+ "is-active": $props.isSelectionActive("codeBlock"),
207
+ onClick: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("click", "codeBlock", $event))
208
+ }, {
209
+ icon: vue.withCtx(() => [
210
+ vue.createVNode(_component_dt_icon_code_block, {
211
+ class: "d-recipe-message-input__button-stack-icon",
212
+ size: "200"
213
+ })
214
+ ]),
215
+ _: 1
216
+ }, 8, ["aria-label", "tooltip-text", "keyboard-shortcut-text", "is-active"])
217
+ ]),
218
+ _: 3
219
+ });
220
+ }
221
+ const DtRecipeMessageInputTopbar = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render]]);
222
+ exports.default = DtRecipeMessageInputTopbar;
223
+ //# sourceMappingURL=message_input_topbar.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message_input_topbar.vue.cjs","sources":["../../../../recipes/conversation_view/message_input/message_input_topbar.vue"],"sourcesContent":["<template>\n <dt-stack\n direction=\"row\"\n gap=\"200\"\n class=\"d-recipe-message-input__button-stack\"\n >\n <dt-recipe-message-input-button\n :aria-label=\"boldButtonOptions.ariaLabel\"\n :tooltip-text=\"boldButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"boldButtonOptions.keyboardShortcutText\"\n data-qa=\"bold\"\n :is-active=\"isSelectionActive('bold')\"\n @click=\"$emit('click', 'bold', $event)\"\n >\n <template #icon>\n <dt-icon-bold\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n\n <dt-recipe-message-input-button\n :aria-label=\"italicButtonOptions.ariaLabel\"\n :tooltip-text=\"italicButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"italicButtonOptions.keyboardShortcutText\"\n data-qa=\"italic\"\n :is-active=\"isSelectionActive('italic')\"\n @click=\"$emit('click', 'italic', $event)\"\n >\n <template #icon>\n <dt-icon-italic\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n\n <dt-recipe-message-input-button\n :aria-label=\"strikeButtonOptions.ariaLabel\"\n :tooltip-text=\"strikeButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"strikeButtonOptions.keyboardShortcutText\"\n data-qa=\"strikethrough\"\n :is-active=\"isSelectionActive('strike')\"\n @click=\"$emit('click', 'strike', $event)\"\n >\n <template #icon>\n <dt-icon-strikethrough\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n <div class=\"d-recipe-message-input--button-group-divider\" />\n\n <!-- @slot special slot for link button, since links require a custom dialog -->\n <slot name=\"link\" />\n\n <div class=\"d-recipe-message-input--button-group-divider\" />\n\n <dt-recipe-message-input-button\n :aria-label=\"bulletListButtonOptions.ariaLabel\"\n :tooltip-text=\"bulletListButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"bulletListButtonOptions.keyboardShortcutText\"\n data-qa=\"bullet-list\"\n :is-active=\"isSelectionActive('bulletList')\"\n @click=\"$emit('click', 'bulletList', $event)\"\n >\n <template #icon>\n <dt-icon-list-bullet\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n\n <dt-recipe-message-input-button\n :aria-label=\"orderedListButtonOptions.ariaLabel\"\n :tooltip-text=\"orderedListButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"orderedListButtonOptions.keyboardShortcutText\"\n data-qa=\"ordered-list\"\n :is-active=\"isSelectionActive('orderedList')\"\n @click=\"$emit('click', 'orderedList', $event)\"\n >\n <template #icon>\n <dt-icon-list-ordered\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n <div class=\"d-recipe-message-input--button-group-divider\" />\n <dt-recipe-message-input-button\n :aria-label=\"blockQuoteButtonOptions.ariaLabel\"\n :tooltip-text=\"blockQuoteButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"blockQuoteButtonOptions.keyboardShortcutText\"\n data-qa=\"blockquote\"\n :is-active=\"isSelectionActive('blockquote')\"\n @click=\"$emit('click', 'blockquote', $event)\"\n >\n <template #icon>\n <dt-icon-quote\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n\n <div class=\"d-recipe-message-input--button-group-divider\" />\n\n <dt-recipe-message-input-button\n :aria-label=\"codeButtonOptions.ariaLabel\"\n :tooltip-text=\"codeButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"codeButtonOptions.keyboardShortcutText\"\n data-qa=\"code\"\n :is-active=\"isSelectionActive('code')\"\n @click=\"$emit('click', 'code', $event)\"\n >\n <template #icon>\n <dt-icon-code\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n <dt-recipe-message-input-button\n :aria-label=\"codeBlockButtonOptions.ariaLabel\"\n :tooltip-text=\"codeBlockButtonOptions.tooltipText\"\n :keyboard-shortcut-text=\"codeBlockButtonOptions.keyboardShortcutText\"\n data-qa=\"code-block\"\n :is-active=\"isSelectionActive('codeBlock')\"\n @click=\"$emit('click', 'codeBlock', $event)\"\n >\n <template #icon>\n <dt-icon-code-block\n class=\"d-recipe-message-input__button-stack-icon\"\n size=\"200\"\n />\n </template>\n </dt-recipe-message-input-button>\n </dt-stack>\n</template>\n\n<script>\nimport { DtStack } from '@/components/stack';\n\nimport {\n DtIconListBullet, DtIconBold, DtIconItalic, DtIconStrikethrough,\n DtIconListOrdered, DtIconQuote, DtIconCode, DtIconCodeBlock,\n} from '@dialpad/dialtone-icons/vue3';\n\nimport DtRecipeMessageInputButton from './message_input_button.vue';\nexport default {\n name: 'DtRecipeMesageInputTopbar',\n components: {\n DtStack,\n DtIconListBullet,\n DtIconBold,\n DtIconItalic,\n DtIconStrikethrough,\n DtIconListOrdered,\n DtIconQuote,\n DtIconCode,\n DtIconCodeBlock,\n DtRecipeMessageInputButton,\n },\n\n props: {\n boldButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n italicButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n strikeButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n bulletListButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n orderedListButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n blockQuoteButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n codeButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n codeBlockButtonOptions: {\n type: Object,\n default: () => ({}),\n },\n\n isSelectionActive: {\n type: Function,\n default: () => {},\n },\n },\n\n emits: ['click'],\n};\n</script>\n"],"names":["DtStack","DtIconListBullet","DtIconBold","DtIconItalic","DtIconStrikethrough","DtIconListOrdered","DtIconQuote","DtIconCode","DtIconCodeBlock","DtRecipeMessageInputButton","_createElementVNode","_createBlock","_withCtx","_createVNode","_renderSlot"],"mappings":";;;;;;;AAwJA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EACN,YAAY;AAAA,IACV,SAAAA,MAAO;AAAA,IACP,kBAAAC,KAAgB;AAAA,gBAChBC,KAAU;AAAA,kBACVC,KAAY;AAAA,IACZ,qBAAAC,KAAmB;AAAA,IACnB,mBAAAC,KAAiB;AAAA,iBACjBC,KAAW;AAAA,gBACXC,KAAU;AAAA,IACV,iBAAAC,KAAe;AAAA,gCACfC,qBAA0B;AAAA,EAC3B;AAAA,EAED,OAAO;AAAA,IACL,mBAAmB;AAAA,MACjB,MAAM;AAAA,MACN,SAAS,OAAO,CAAA;AAAA,IACjB;AAAA,IAED,qBAAqB;AAAA,MACnB,MAAM;AAAA,MACN,SAAS,OAAO,CAAA;AAAA,IACjB;AAAA,IAED,qBAAqB;AAAA,MACnB,MAAM;AAAA,MACN,SAAS,OAAO,CAAA;AAAA,IACjB;AAAA,IAED,yBAAyB;AAAA,MACvB,MAAM;AAAA,MACN,SAAS,OAAO,CAAA;AAAA,IACjB;AAAA,IAED,0BAA0B;AAAA,MACxB,MAAM;AAAA,M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