@dialpad/dialtone-vue 2.169.1 → 2.171.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.
- package/dist/component-documentation.json +1 -1
- package/dist/components/hovercard/hovercard.vue.cjs +32 -12
- package/dist/components/hovercard/hovercard.vue.cjs.map +1 -1
- package/dist/components/hovercard/hovercard.vue.js +33 -13
- package/dist/components/hovercard/hovercard.vue.js.map +1 -1
- package/dist/components/popover/popover.vue.cjs +21 -43
- package/dist/components/popover/popover.vue.cjs.map +1 -1
- package/dist/components/popover/popover.vue.js +21 -43
- package/dist/components/popover/popover.vue.js.map +1 -1
- package/dist/components/rich_text_editor/extensions/image/image.cjs +30 -0
- package/dist/components/rich_text_editor/extensions/image/image.cjs.map +1 -0
- package/dist/components/rich_text_editor/extensions/image/image.js +30 -0
- package/dist/components/rich_text_editor/extensions/image/image.js.map +1 -0
- package/dist/components/rich_text_editor/extensions/image/index.cjs +5 -0
- package/dist/components/rich_text_editor/extensions/image/index.cjs.map +1 -0
- package/dist/components/rich_text_editor/extensions/image/index.js +5 -0
- package/dist/components/rich_text_editor/extensions/image/index.js.map +1 -0
- package/dist/components/rich_text_editor/rich_text_editor.vue.cjs +2 -2
- package/dist/components/rich_text_editor/rich_text_editor.vue.cjs.map +1 -1
- package/dist/components/rich_text_editor/rich_text_editor.vue.js +2 -2
- package/dist/components/rich_text_editor/rich_text_editor.vue.js.map +1 -1
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.cjs +2 -4
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.cjs.map +1 -1
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.js +2 -4
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.js.map +1 -1
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.cjs +1 -1
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.cjs.map +1 -1
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.js +1 -1
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.js.map +1 -1
- package/dist/recipes/cards/ivr_node/ivr_node.vue.cjs +6 -14
- package/dist/recipes/cards/ivr_node/ivr_node.vue.cjs.map +1 -1
- package/dist/recipes/cards/ivr_node/ivr_node.vue.js +7 -15
- package/dist/recipes/cards/ivr_node/ivr_node.vue.js.map +1 -1
- package/dist/recipes/cards/ivr_node/ivr_node_constants.cjs +18 -18
- package/dist/recipes/cards/ivr_node/ivr_node_constants.cjs.map +1 -1
- package/dist/recipes/cards/ivr_node/ivr_node_constants.js +18 -18
- package/dist/recipes/cards/ivr_node/ivr_node_constants.js.map +1 -1
- package/dist/recipes/chips/grouped_chip/grouped_chip.vue.cjs +2 -2
- package/dist/recipes/chips/grouped_chip/grouped_chip.vue.cjs.map +1 -1
- package/dist/recipes/chips/grouped_chip/grouped_chip.vue.js +2 -2
- package/dist/recipes/chips/grouped_chip/grouped_chip.vue.js.map +1 -1
- package/dist/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.cjs +6 -1
- package/dist/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.cjs.map +1 -1
- package/dist/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.js +6 -1
- package/dist/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.js.map +1 -1
- package/dist/recipes/conversation_view/editor/editor.vue.cjs +127 -28
- package/dist/recipes/conversation_view/editor/editor.vue.cjs.map +1 -1
- package/dist/recipes/conversation_view/editor/editor.vue.js +127 -28
- package/dist/recipes/conversation_view/editor/editor.vue.js.map +1 -1
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.cjs +1 -1
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.cjs.map +1 -1
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.js +1 -1
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.js.map +1 -1
- package/dist/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.cjs +1 -1
- package/dist/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.cjs.map +1 -1
- package/dist/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.js +1 -1
- package/dist/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.js.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input.vue.cjs +1 -1
- package/dist/recipes/conversation_view/message_input/message_input.vue.cjs.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input.vue.js +1 -1
- package/dist/recipes/conversation_view/message_input/message_input.vue.js.map +1 -1
- package/dist/recipes/item_layout/contact_info/contact_info.vue.cjs +6 -1
- package/dist/recipes/item_layout/contact_info/contact_info.vue.cjs.map +1 -1
- package/dist/recipes/item_layout/contact_info/contact_info.vue.js +6 -1
- package/dist/recipes/item_layout/contact_info/contact_info.vue.js.map +1 -1
- package/dist/recipes/leftbar/contact_row/contact_row.vue.cjs +8 -12
- package/dist/recipes/leftbar/contact_row/contact_row.vue.cjs.map +1 -1
- package/dist/recipes/leftbar/contact_row/contact_row.vue.js +8 -12
- package/dist/recipes/leftbar/contact_row/contact_row.vue.js.map +1 -1
- package/dist/recipes/leftbar/general_row/general_row_constants.cjs +11 -11
- package/dist/recipes/leftbar/general_row/general_row_constants.cjs.map +1 -1
- package/dist/recipes/leftbar/general_row/general_row_constants.js +11 -11
- package/dist/recipes/leftbar/general_row/general_row_constants.js.map +1 -1
- package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.cjs +1 -8
- package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.cjs.map +1 -1
- package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.js +1 -8
- package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.js.map +1 -1
- package/dist/recipes/notices/top_banner_info/top_banner_info.vue.cjs +8 -8
- package/dist/recipes/notices/top_banner_info/top_banner_info.vue.cjs.map +1 -1
- package/dist/recipes/notices/top_banner_info/top_banner_info.vue.js +8 -8
- package/dist/recipes/notices/top_banner_info/top_banner_info.vue.js.map +1 -1
- package/dist/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/image/image.d.ts +2 -0
- package/dist/types/components/rich_text_editor/extensions/image/image.d.ts.map +1 -0
- package/dist/types/components/rich_text_editor/extensions/image/index.d.ts +3 -0
- package/dist/types/components/rich_text_editor/extensions/image/index.d.ts.map +1 -0
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +1 -1
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +11 -11
- package/dist/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
- package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +1 -1
- package/dist/types/recipes/leftbar/general_row/general_row_constants.d.ts +6 -6
- package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +0 -1
- package/package.json +7 -3
- package/dist/components/hovercard/timer.cjs +0 -59
- package/dist/components/hovercard/timer.cjs.map +0 -1
- package/dist/components/hovercard/timer.js +0 -59
- package/dist/components/hovercard/timer.js.map +0 -1
- package/dist/types/components/hovercard/timer.d.ts +0 -3
- package/dist/types/components/hovercard/timer.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts +0 -6
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts.map +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { TOOLTIP_DELAY_MS } from "../tooltip/tooltip_constants.js";
|
|
2
|
-
const useTimer = /* @__PURE__ */ function() {
|
|
3
|
-
const current = { value: null };
|
|
4
|
-
let timerLeave, timerEnter;
|
|
5
|
-
let start = null;
|
|
6
|
-
let prevCard = null;
|
|
7
|
-
function enter(id) {
|
|
8
|
-
if (prevCard) {
|
|
9
|
-
const time = Date.now() - start + 100;
|
|
10
|
-
if (timerLeave) clearTimeout(timerLeave);
|
|
11
|
-
if (prevCard !== id) {
|
|
12
|
-
timerLeave = setTimeout(
|
|
13
|
-
() => {
|
|
14
|
-
if (current.value !== null) {
|
|
15
|
-
start = Date.now();
|
|
16
|
-
}
|
|
17
|
-
current.value = null;
|
|
18
|
-
},
|
|
19
|
-
time
|
|
20
|
-
);
|
|
21
|
-
if (timerEnter) clearTimeout(timerEnter);
|
|
22
|
-
timerEnter = setTimeout(
|
|
23
|
-
() => {
|
|
24
|
-
current.value = id;
|
|
25
|
-
prevCard = id;
|
|
26
|
-
},
|
|
27
|
-
time
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
} else {
|
|
31
|
-
timerEnter = setTimeout(() => {
|
|
32
|
-
current.value = id;
|
|
33
|
-
prevCard = id;
|
|
34
|
-
}, TOOLTIP_DELAY_MS);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function leave() {
|
|
38
|
-
if (timerEnter) {
|
|
39
|
-
clearTimeout(timerEnter);
|
|
40
|
-
timerEnter = null;
|
|
41
|
-
}
|
|
42
|
-
start = Date.now();
|
|
43
|
-
timerLeave = setTimeout(() => {
|
|
44
|
-
current.value = null;
|
|
45
|
-
prevCard = null;
|
|
46
|
-
}, TOOLTIP_DELAY_MS);
|
|
47
|
-
}
|
|
48
|
-
let instance = null;
|
|
49
|
-
return () => {
|
|
50
|
-
if (instance === null) {
|
|
51
|
-
instance = { current, enter, leave };
|
|
52
|
-
}
|
|
53
|
-
return instance;
|
|
54
|
-
};
|
|
55
|
-
}();
|
|
56
|
-
export {
|
|
57
|
-
useTimer as default
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=timer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timer.js","sources":["../../../components/hovercard/timer.js"],"sourcesContent":["import { TOOLTIP_DELAY_MS } from '@/components/tooltip/index.js';\n\nexport default (function () {\n const current = { value: null };\n let timerLeave, timerEnter;\n let start = null;\n let prevCard = null;\n\n // Handles the timer for when the event that opens the hovercard\n // is triggered.\n // If no hovercard is active, it sets a delay of TOOLTIP_DELAY_MS.\n // If there was an active hovercard, the delay depends on the time it takes\n // to move from one anchor to the other.\n function enter (id) {\n if (prevCard) {\n const time = Date.now() - start + 100;\n if (timerLeave) clearTimeout(timerLeave);\n if (prevCard !== id) {\n timerLeave = setTimeout(\n () => {\n if (current.value !== null) {\n start = Date.now();\n }\n current.value = null;\n },\n time,\n );\n if (timerEnter) clearTimeout(timerEnter);\n timerEnter = setTimeout(\n () => {\n current.value = id;\n prevCard = id;\n },\n time,\n );\n }\n } else {\n timerEnter = setTimeout(() => {\n current.value = id;\n prevCard = id;\n }, TOOLTIP_DELAY_MS);\n }\n }\n\n // Handles the timer for when the event that closes the hovercard\n // is triggered.\n function leave () {\n if (timerEnter) {\n clearTimeout(timerEnter);\n timerEnter = null;\n }\n start = Date.now();\n timerLeave = setTimeout(() => {\n current.value = null;\n prevCard = null;\n }, TOOLTIP_DELAY_MS);\n }\n\n let instance = null;\n\n return () => {\n if (instance === null) {\n instance = { current, enter, leave };\n }\n return instance;\n };\n})();\n"],"names":[],"mappings":";AAEA,MAAA,WAAgB,2BAAY;AAC1B,QAAM,UAAU,EAAE,OAAO;AACzB,MAAI,YAAY;AAChB,MAAI,QAAQ;AACZ,MAAI,WAAW;AAOf,WAAS,MAAO,IAAI;AAClB,QAAI,UAAU;AACZ,YAAM,OAAO,KAAK,IAAG,IAAK,QAAQ;AAClC,UAAI,WAAY,cAAa,UAAU;AACvC,UAAI,aAAa,IAAI;AACnB,qBAAa;AAAA,UACX,MAAM;AACJ,gBAAI,QAAQ,UAAU,MAAM;AAC1B,sBAAQ,KAAK;YACd;AACD,oBAAQ,QAAQ;AAAA,UACjB;AAAA,UACD;AAAA,QACV;AACQ,YAAI,WAAY,cAAa,UAAU;AACvC,qBAAa;AAAA,UACX,MAAM;AACJ,oBAAQ,QAAQ;AAChB,uBAAW;AAAA,UACZ;AAAA,UACD;AAAA,QACV;AAAA,MACO;AAAA,IACP,OAAW;AACL,mBAAa,WAAW,MAAM;AAC5B,gBAAQ,QAAQ;AAChB,mBAAW;AAAA,MACZ,GAAE,gBAAgB;AAAA,IACpB;AAAA,EACF;AAID,WAAS,QAAS;AAChB,QAAI,YAAY;AACd,mBAAa,UAAU;AACvB,mBAAa;AAAA,IACd;AACD,YAAQ,KAAK;AACb,iBAAa,WAAW,MAAM;AAC5B,cAAQ,QAAQ;AAChB,iBAAW;AAAA,IACZ,GAAE,gBAAgB;AAAA,EACpB;AAED,MAAI,WAAW;AAEf,SAAO,MAAM;AACX,QAAI,aAAa,MAAM;AACrB,iBAAW,EAAE,SAAS,OAAO,MAAK;AAAA,IACnC;AACD,WAAO;AAAA,EACX;AACA,EAAI;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../../../components/hovercard/timer.js"],"names":[],"mappings":"AA4DS,iCAKN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachment_carousel_constants.d.ts","sourceRoot":"","sources":["../../../../../recipes/conversation_view/attachment_carousel/attachment_carousel_constants.js"],"names":[],"mappings":"AAAA,qCAAsC"}
|