@dialpad/dialtone 9.113.1 → 9.115.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.
@@ -1,40 +1,40 @@
1
- import { EDITOR_SUPPORTED_LINK_PROTOCOLS as J, EDITOR_DEFAULT_LINK_PREFIX as K } from "./editor-constants.js";
2
- import { removeClassStyleAttrs as H, addClassStyleAttrs as X } from "../../common/utils/index.js";
3
- import { DtIconLightningBolt as T, DtIconBold as b, DtIconItalic as A, DtIconUnderline as C, DtIconStrikethrough as y, DtIconListBullet as x, DtIconListOrdered as _, DtIconAlignLeft as E, DtIconAlignCenter as S, DtIconAlignRight as O, DtIconAlignJustify as v, DtIconQuote as D, DtIconCodeBlock as Q, DtIconLink2 as F, DtIconImage as R } from "@dialpad/dialtone-icons/vue3";
4
- import { resolveComponent as h, openBlock as u, createElementBlock as B, mergeProps as M, createVNode as c, withCtx as n, Fragment as q, renderList as V, createBlock as p, resolveDynamicComponent as U, createTextVNode as m, toDisplayString as k, withModifiers as P, createElementVNode as w, createCommentVNode as j, withKeys as Y, normalizeStyle as W } from "vue";
5
- import { _ as Z } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
- import $ from "../rich-text-editor/rich-text-editor.js";
7
- import tt from "../button/button.js";
8
- import et from "../popover/popover.js";
9
- import it from "../stack/stack.js";
10
- import ot from "../input/input.js";
11
- import nt from "../tooltip/tooltip.js";
12
- import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as lt, RICH_TEXT_EDITOR_OUTPUT_FORMATS as rt } from "../rich-text-editor/rich-text-editor-constants.js";
13
- const st = {
1
+ import { EDITOR_SUPPORTED_LINK_PROTOCOLS as H, EDITOR_DEFAULT_LINK_PREFIX as X } from "./editor-constants.js";
2
+ import { removeClassStyleAttrs as Y, addClassStyleAttrs as W } from "../../common/utils/index.js";
3
+ import { DtIconLightningBolt as x, DtIconBold as y, DtIconItalic as C, DtIconUnderline as _, DtIconStrikethrough as R, DtIconListBullet as E, DtIconListOrdered as F, DtIconAlignLeft as S, DtIconAlignCenter as v, DtIconAlignRight as O, DtIconAlignJustify as D, DtIconQuote as M, DtIconCodeBlock as Q, DtIconLink2 as q, DtIconImage as V } from "@dialpad/dialtone-icons/vue3";
4
+ import { ref as Z, resolveComponent as h, openBlock as a, createElementBlock as w, mergeProps as U, createVNode as c, withCtx as u, Fragment as P, renderList as K, createBlock as p, withKeys as k, withModifiers as f, resolveDynamicComponent as j, createTextVNode as L, toDisplayString as B, createElementVNode as b, createCommentVNode as z, normalizeStyle as $ } from "vue";
5
+ import { _ as tt } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import et from "../rich-text-editor/rich-text-editor.js";
7
+ import it from "../button/button.js";
8
+ import ot from "../popover/popover.js";
9
+ import nt from "../stack/stack.js";
10
+ import rt from "../input/input.js";
11
+ import lt from "../tooltip/tooltip.js";
12
+ import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as st, RICH_TEXT_EDITOR_OUTPUT_FORMATS as ut } from "../rich-text-editor/rich-text-editor-constants.js";
13
+ const at = {
14
14
  compatConfig: { MODE: 3 },
15
15
  name: "DtRecipeEditor",
16
16
  components: {
17
- DtRichTextEditor: $,
18
- DtButton: tt,
19
- DtPopover: et,
20
- DtStack: it,
21
- DtInput: ot,
22
- DtTooltip: nt,
23
- DtIconLightningBolt: T,
24
- DtIconBold: b,
25
- DtIconItalic: A,
26
- DtIconUnderline: C,
27
- DtIconStrikethrough: y,
28
- DtIconListBullet: x,
29
- DtIconListOrdered: _,
30
- DtIconAlignLeft: E,
31
- DtIconAlignCenter: S,
17
+ DtRichTextEditor: et,
18
+ DtButton: it,
19
+ DtPopover: ot,
20
+ DtStack: nt,
21
+ DtInput: rt,
22
+ DtTooltip: lt,
23
+ DtIconLightningBolt: x,
24
+ DtIconBold: y,
25
+ DtIconItalic: C,
26
+ DtIconUnderline: _,
27
+ DtIconStrikethrough: R,
28
+ DtIconListBullet: E,
29
+ DtIconListOrdered: F,
30
+ DtIconAlignLeft: S,
31
+ DtIconAlignCenter: v,
32
32
  DtIconAlignRight: O,
33
- DtIconAlignJustify: v,
34
- DtIconQuote: D,
33
+ DtIconAlignJustify: D,
34
+ DtIconQuote: M,
35
35
  DtIconCodeBlock: Q,
36
- DtIconLink2: F,
37
- DtIconImage: R
36
+ DtIconLink2: q,
37
+ DtIconImage: V
38
38
  },
39
39
  mixins: [],
40
40
  inheritAttrs: !1,
@@ -86,7 +86,7 @@ const st = {
86
86
  type: [Boolean, String, Number],
87
87
  default: !1,
88
88
  validator(t) {
89
- return typeof t == "string" ? lt.includes(t) : !0;
89
+ return typeof t == "string" ? st.includes(t) : !0;
90
90
  }
91
91
  },
92
92
  /**
@@ -301,7 +301,9 @@ const st = {
301
301
  class: "d-recipe-editor__link"
302
302
  },
303
303
  showLinkInput: !1,
304
- linkInput: ""
304
+ linkInput: "",
305
+ currentButtonRefIndex: 0,
306
+ buttonRefMap: Z({})
305
307
  };
306
308
  },
307
309
  computed: {
@@ -309,7 +311,7 @@ const st = {
309
311
  return this.internalInputValue.length;
310
312
  },
311
313
  htmlOutputFormat() {
312
- return rt[2];
314
+ return ut[2];
313
315
  },
314
316
  showingTextFormatButtons() {
315
317
  return this.showBoldButton || this.showItalicsButton || this.showStrikeButton || this.showUnderlineButton;
@@ -320,6 +322,14 @@ const st = {
320
322
  showingListButtons() {
321
323
  return this.showListItemsButton || this.showOrderedListButton;
322
324
  },
325
+ orderedRefs() {
326
+ const t = this.buttonGroups.reduce((function(e, o) {
327
+ return o.buttonGroup.forEach((n) => {
328
+ e.push(this.getButtonRef(o.key, n.selector));
329
+ }, this), e;
330
+ }).bind(this), []);
331
+ return t.push(this.getButtonRef("custom", "link")), t;
332
+ },
323
333
  buttonGroups() {
324
334
  const t = this.individualButtons.map((e) => ({
325
335
  key: e.selector,
@@ -339,7 +349,7 @@ const st = {
339
349
  showBtn: this.showQuickRepliesButton,
340
350
  label: "Quick reply",
341
351
  selector: "quickReplies",
342
- icon: T,
352
+ icon: x,
343
353
  dataQA: "dt-recipe-editor-quick-replies-btn",
344
354
  tooltipMessage: "Quick Reply",
345
355
  onClick: this.onQuickRepliesClick
@@ -351,7 +361,7 @@ const st = {
351
361
  {
352
362
  showBtn: this.showBoldButton,
353
363
  selector: "bold",
354
- icon: b,
364
+ icon: y,
355
365
  dataQA: "dt-recipe-editor-bold-btn",
356
366
  tooltipMessage: "Bold",
357
367
  onClick: this.onBoldTextToggle
@@ -359,7 +369,7 @@ const st = {
359
369
  {
360
370
  showBtn: this.showItalicsButton,
361
371
  selector: "italic",
362
- icon: A,
372
+ icon: C,
363
373
  dataQA: "dt-recipe-editor-italics-btn",
364
374
  tooltipMessage: "Italics",
365
375
  onClick: this.onItalicTextToggle
@@ -367,7 +377,7 @@ const st = {
367
377
  {
368
378
  showBtn: this.showUnderlineButton,
369
379
  selector: "underline",
370
- icon: C,
380
+ icon: _,
371
381
  dataQA: "dt-recipe-editor-underline-btn",
372
382
  tooltipMessage: "Underline",
373
383
  onClick: this.onUnderlineTextToggle
@@ -375,7 +385,7 @@ const st = {
375
385
  {
376
386
  showBtn: this.showStrikeButton,
377
387
  selector: "strike",
378
- icon: y,
388
+ icon: R,
379
389
  dataQA: "dt-recipe-editor-strike-btn",
380
390
  tooltipMessage: "Strike",
381
391
  onClick: this.onStrikethroughTextToggle
@@ -387,7 +397,7 @@ const st = {
387
397
  {
388
398
  showBtn: this.showAlignLeftButton,
389
399
  selector: { textAlign: "left" },
390
- icon: E,
400
+ icon: S,
391
401
  dataQA: "dt-recipe-editor-align-left-btn",
392
402
  tooltipMessage: "Align Left",
393
403
  onClick: () => this.onTextAlign("left")
@@ -395,7 +405,7 @@ const st = {
395
405
  {
396
406
  showBtn: this.showAlignCenterButton,
397
407
  selector: { textAlign: "center" },
398
- icon: S,
408
+ icon: v,
399
409
  dataQA: "dt-recipe-editor-align-center-btn",
400
410
  tooltipMessage: "Align Center",
401
411
  onClick: () => this.onTextAlign("center")
@@ -411,7 +421,7 @@ const st = {
411
421
  {
412
422
  showBtn: this.showAlignJustifyButton,
413
423
  selector: { textAlign: "justify" },
414
- icon: v,
424
+ icon: D,
415
425
  dataQA: "dt-recipe-editor-align-justify-btn",
416
426
  tooltipMessage: "Align Justify",
417
427
  onClick: () => this.onTextAlign("justify")
@@ -423,7 +433,7 @@ const st = {
423
433
  {
424
434
  showBtn: this.showListItemsButton,
425
435
  selector: "bulletList",
426
- icon: x,
436
+ icon: E,
427
437
  dataQA: "dt-recipe-editor-list-items-btn",
428
438
  tooltipMessage: "Bullet List",
429
439
  onClick: this.onBulletListToggle
@@ -431,7 +441,7 @@ const st = {
431
441
  {
432
442
  showBtn: this.showOrderedListButton,
433
443
  selector: "orderedList",
434
- icon: _,
444
+ icon: F,
435
445
  dataQA: "dt-recipe-editor-ordered-list-items-btn",
436
446
  tooltipMessage: "Ordered List",
437
447
  onClick: this.onOrderedListToggle
@@ -443,7 +453,7 @@ const st = {
443
453
  {
444
454
  showBtn: this.showQuoteButton,
445
455
  selector: "blockquote",
446
- icon: D,
456
+ icon: M,
447
457
  dataQA: "dt-recipe-editor-blockquote-btn",
448
458
  tooltipMessage: "Quote",
449
459
  onClick: this.onBlockquoteToggle
@@ -459,7 +469,7 @@ const st = {
459
469
  {
460
470
  showBtn: this.showInlineImageButton,
461
471
  selector: "image",
462
- icon: R,
472
+ icon: V,
463
473
  dataQA: "dt-recipe-editor-inline-image-btn",
464
474
  tooltipMessage: "Image",
465
475
  // Handle getting image
@@ -471,7 +481,7 @@ const st = {
471
481
  return {
472
482
  showBtn: this.showAddLink.showAddLinkButton,
473
483
  selector: "link",
474
- icon: F,
484
+ icon: q,
475
485
  dataQA: "dt-recipe-editor-add-link-btn",
476
486
  tooltipMessage: "Link",
477
487
  onClick: this.openLinkInput
@@ -484,26 +494,26 @@ const st = {
484
494
  }
485
495
  },
486
496
  methods: {
487
- removeClassStyleAttrs: H,
488
- addClassStyleAttrs: X,
497
+ removeClassStyleAttrs: Y,
498
+ addClassStyleAttrs: W,
489
499
  onInputFocus(t) {
490
500
  t == null || t.stopPropagation();
491
501
  },
492
502
  removeLink() {
493
- var t, e, o, r, l;
494
- (l = (r = (o = (e = (t = this.$refs.richTextEditor) == null ? void 0 : t.editor) == null ? void 0 : e.chain()) == null ? void 0 : o.focus()) == null ? void 0 : r.unsetLink()) == null || l.run(), this.closeLinkInput();
503
+ var t, e, o, n, r;
504
+ (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();
495
505
  },
496
506
  setLink(t) {
497
- var l, i, d;
498
- const e = (l = this.$refs.richTextEditor) == null ? void 0 : l.editor;
507
+ var r, i, d;
508
+ const e = (r = this.$refs.richTextEditor) == null ? void 0 : r.editor;
499
509
  if (t == null || t.preventDefault(), t == null || t.stopPropagation(), !this.linkInput) {
500
510
  this.removeLink();
501
511
  return;
502
512
  }
503
- J.find((g) => g.test(this.linkInput)) || (this.linkInput = `${K}${this.linkInput}`);
504
- const r = (d = (i = e == null ? void 0 : e.view) == null ? void 0 : i.state) == null ? void 0 : d.selection;
505
- r.anchor === r.head ? e.chain().focus().insertContentAt(
506
- r.anchor,
513
+ H.find((m) => m.test(this.linkInput)) || (this.linkInput = `${X}${this.linkInput}`);
514
+ const n = (d = (i = e == null ? void 0 : e.view) == null ? void 0 : i.state) == null ? void 0 : d.selection;
515
+ n.anchor === n.head ? e.chain().focus().insertContentAt(
516
+ n.anchor,
507
517
  `<a class="${this.linkOptions.class}" href=${this.linkInput}>${this.linkInput}</a>`
508
518
  ).run() : e.chain().focus().extendMarkRange("link").setLink({ href: this.linkInput, class: this.linkOptions.class }).run(), this.closeLinkInput();
509
519
  },
@@ -511,10 +521,10 @@ const st = {
511
521
  this.showLinkInput = !0;
512
522
  },
513
523
  updateInput(t) {
514
- var e, o, r;
524
+ var e, o, n;
515
525
  if (!t)
516
526
  return this.closeLinkInput();
517
- this.linkInput = (r = (o = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) == null ? void 0 : o.getAttributes("link")) == null ? void 0 : r.href;
527
+ this.linkInput = (n = (o = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) == null ? void 0 : o.getAttributes("link")) == null ? void 0 : n.href;
518
528
  },
519
529
  closeLinkInput() {
520
530
  var t;
@@ -537,10 +547,10 @@ const st = {
537
547
  (t = this.$refs.richTextEditor) == null || t.editor.chain().focus().toggleStrike().run();
538
548
  },
539
549
  onTextAlign(t) {
540
- var e, o, r, l;
550
+ var e, o, n, r;
541
551
  if ((o = (e = this.$refs.richTextEditor) == null ? void 0 : e.editor) != null && o.isActive({ textAlign: t }))
542
- return (r = this.$refs.richTextEditor) == null ? void 0 : r.editor.chain().focus().unsetTextAlign().run();
543
- (l = this.$refs.richTextEditor) == null || l.editor.chain().focus().setTextAlign(t).run();
552
+ return (n = this.$refs.richTextEditor) == null ? void 0 : n.editor.chain().focus().unsetTextAlign().run();
553
+ (r = this.$refs.richTextEditor) == null || r.editor.chain().focus().setTextAlign(t).run();
544
554
  },
545
555
  onBulletListToggle() {
546
556
  var t;
@@ -587,69 +597,104 @@ const st = {
587
597
  },
588
598
  onInput(t) {
589
599
  this.$emit("input", t), this.$emit("update:modelValue", t);
600
+ },
601
+ getButtonKey(t, e) {
602
+ return `${t}-${JSON.stringify(e)}`;
603
+ },
604
+ // Unique Button Ref Key to identify ref
605
+ getButtonRef(t, e) {
606
+ return `${this.getButtonKey(t, e)}-ref`;
607
+ },
608
+ /**
609
+ * Determines if an element in the action bar button list is focusable with tab key
610
+ * @param {string} refKey - unique identifier for the ref element in DOM
611
+ */
612
+ canFocus(t) {
613
+ return t === this.orderedRefs[this.currentButtonRefIndex];
614
+ },
615
+ shiftActionBarFocusRight() {
616
+ this.shiftButtonRefIndex(1);
617
+ },
618
+ shiftActionBarFocusLeft() {
619
+ this.shiftButtonRefIndex(-1);
620
+ },
621
+ shiftButtonRefIndex(t) {
622
+ const e = this.buttonRefMap[this.orderedRefs[this.currentButtonRefIndex]], o = (this.currentButtonRefIndex + t) % this.orderedRefs.length;
623
+ this.currentButtonRefIndex = o >= 0 ? o : this.orderedRefs.length + o;
624
+ const n = this.buttonRefMap[this.orderedRefs[this.currentButtonRefIndex]];
625
+ e.$el.blur(), n.$el.focus();
590
626
  }
591
627
  }
592
- }, at = /* @__PURE__ */ w("div", { class: "d-recipe-editor__button-group-divider" }, null, -1), ut = { class: "d-recipe-editor__popover-content" }, ct = { key: 0 };
593
- function dt(t, e, o, r, l, i) {
594
- const d = h("dt-button"), g = h("dt-tooltip"), f = h("dt-stack"), z = h("dt-input"), N = h("dt-popover"), G = h("dt-rich-text-editor");
595
- return u(), B("div", M({ class: "d-recipe-editor" }, i.addClassStyleAttrs(t.$attrs), {
628
+ }, ct = /* @__PURE__ */ b("div", { class: "d-recipe-editor__button-group-divider" }, null, -1), dt = { class: "d-recipe-editor__popover-content" }, ht = { key: 0 };
629
+ function pt(t, e, o, n, r, i) {
630
+ const d = h("dt-button"), m = h("dt-tooltip"), I = h("dt-stack"), N = h("dt-input"), G = h("dt-popover"), J = h("dt-rich-text-editor");
631
+ return a(), w("div", U({ class: "d-recipe-editor" }, i.addClassStyleAttrs(t.$attrs), {
596
632
  "data-qa": "dt-recipe-editor",
597
633
  role: "presentation",
598
- onClick: e[4] || (e[4] = (s) => t.$refs.richTextEditor.focusEditor())
634
+ onClick: e[4] || (e[4] = (l) => t.$refs.richTextEditor.focusEditor())
599
635
  }), [
600
- c(f, {
636
+ c(I, {
601
637
  class: "d-recipe-editor__top-bar",
602
638
  direction: "row",
603
639
  gap: "450"
604
640
  }, {
605
- default: n(() => [
606
- (u(!0), B(q, null, V(i.buttonGroups, (s) => (u(), p(f, {
607
- key: s.key,
641
+ default: u(() => [
642
+ (a(!0), w(P, null, K(i.buttonGroups, (l) => (a(), p(I, {
643
+ key: l.key,
608
644
  direction: "row",
609
645
  gap: "300"
610
646
  }, {
611
- default: n(() => [
612
- (u(!0), B(q, null, V(s.buttonGroup, (a) => (u(), p(g, {
613
- key: `${s.key}-${JSON.stringify(a.selector)}`,
614
- message: a.tooltipMessage,
647
+ default: u(() => [
648
+ (a(!0), w(P, null, K(l.buttonGroup, (s) => (a(), p(m, {
649
+ key: i.getButtonKey(l.key, s.selector),
650
+ message: s.tooltipMessage,
615
651
  placement: "top"
616
652
  }, {
617
- anchor: n(() => {
618
- var I, L;
653
+ anchor: u(() => {
654
+ var g, T;
619
655
  return [
620
656
  c(d, {
621
- active: (L = (I = t.$refs.richTextEditor) == null ? void 0 : I.editor) == null ? void 0 : L.isActive(a.selector),
622
- "aria-label": a.tooltipMessage,
623
- "data-qa": a.dataQA,
657
+ ref_for: !0,
658
+ ref: (A) => {
659
+ r.buttonRefMap[i.getButtonRef(l.key, s.selector)] = A;
660
+ },
661
+ active: (T = (g = t.$refs.richTextEditor) == null ? void 0 : g.editor) == null ? void 0 : T.isActive(s.selector),
662
+ "aria-label": s.tooltipMessage,
663
+ "data-qa": s.dataQA,
664
+ tabindex: i.canFocus(i.getButtonRef(l.key, s.selector)) ? 0 : -1,
624
665
  importance: "clear",
625
666
  kind: "muted",
626
667
  size: "xs",
627
- onClick: (ht) => a.onClick()
668
+ onClick: (A) => s.onClick(),
669
+ onKeydown: [
670
+ k(f(i.shiftActionBarFocusRight, ["stop"]), ["right"]),
671
+ k(f(i.shiftActionBarFocusLeft, ["stop"]), ["left"])
672
+ ]
628
673
  }, {
629
- icon: n(() => [
630
- (u(), p(U(a.icon), { size: "200" }))
674
+ icon: u(() => [
675
+ (a(), p(j(s.icon), { size: "200" }))
631
676
  ]),
632
- default: n(() => [
633
- m(" " + k(a == null ? void 0 : a.label), 1)
677
+ default: u(() => [
678
+ L(" " + B(s == null ? void 0 : s.label), 1)
634
679
  ]),
635
680
  _: 2
636
- }, 1032, ["active", "aria-label", "data-qa", "onClick"])
681
+ }, 1032, ["active", "aria-label", "data-qa", "tabindex", "onClick", "onKeydown"])
637
682
  ];
638
683
  }),
639
684
  _: 2
640
685
  }, 1032, ["message"]))), 128)),
641
- at
686
+ ct
642
687
  ]),
643
688
  _: 2
644
689
  }, 1024))), 128)),
645
- i.linkButton.showBtn ? (u(), p(f, {
690
+ i.linkButton.showBtn ? (a(), p(I, {
646
691
  key: 0,
647
692
  direction: "row",
648
693
  gap: "300"
649
694
  }, {
650
- default: n(() => [
651
- c(N, {
652
- open: l.showLinkInput,
695
+ default: u(() => [
696
+ c(G, {
697
+ open: r.showLinkInput,
653
698
  "show-close-button": !1,
654
699
  "visually-hidden-close": !0,
655
700
  "visually-hidden-close-label": "Close link input popover",
@@ -658,64 +703,72 @@ function dt(t, e, o, r, l, i) {
658
703
  placement: "bottom-start",
659
704
  onClick: [
660
705
  i.onInputFocus,
661
- P(i.onInputFocus, ["stop"])
706
+ f(i.onInputFocus, ["stop"])
662
707
  ],
663
708
  onOpened: i.updateInput
664
709
  }, {
665
- anchor: n(() => [
666
- (u(), p(g, {
710
+ anchor: u(() => [
711
+ (a(), p(m, {
667
712
  key: i.linkButton.key,
668
713
  message: i.linkButton.tooltipMessage,
669
714
  placement: "top"
670
715
  }, {
671
- anchor: n(() => {
672
- var s, a;
716
+ anchor: u(() => {
717
+ var l, s;
673
718
  return [
674
719
  c(d, {
675
- active: (a = (s = t.$refs.richTextEditor) == null ? void 0 : s.editor) == null ? void 0 : a.isActive(i.linkButton.selector),
720
+ ref: (g) => {
721
+ r.buttonRefMap[i.getButtonRef("custom", "link")] = g;
722
+ },
723
+ active: (s = (l = t.$refs.richTextEditor) == null ? void 0 : l.editor) == null ? void 0 : s.isActive(i.linkButton.selector),
676
724
  "aria-label": i.linkButton.tooltipMessage,
677
725
  "data-qa": i.linkButton.dataQA,
726
+ tabindex: i.canFocus(i.getButtonRef("custom", "link")) ? 0 : -1,
678
727
  importance: "clear",
679
728
  kind: "muted",
680
729
  size: "xs",
681
- onClick: e[0] || (e[0] = (I) => i.linkButton.onClick())
730
+ onClick: e[0] || (e[0] = (g) => i.linkButton.onClick()),
731
+ onKeydown: [
732
+ k(f(i.shiftActionBarFocusRight, ["stop"]), ["right"]),
733
+ k(f(i.shiftActionBarFocusLeft, ["stop"]), ["left"])
734
+ ]
682
735
  }, {
683
- icon: n(() => [
684
- (u(), p(U(i.linkButton.icon), { size: "200" }))
736
+ icon: u(() => [
737
+ (a(), p(j(i.linkButton.icon), { size: "200" }))
685
738
  ]),
686
739
  _: 1
687
- }, 8, ["active", "aria-label", "data-qa"])
740
+ }, 8, ["active", "aria-label", "data-qa", "tabindex", "onKeydown"])
688
741
  ];
689
742
  }),
690
743
  _: 1
691
744
  }, 8, ["message"]))
692
745
  ]),
693
- content: n(() => [
694
- w("div", ut, [
695
- o.showAddLink.setLinkTitle.length > 0 ? (u(), B("span", ct, k(o.showAddLink.setLinkTitle), 1)) : j("", !0),
696
- c(z, {
697
- modelValue: l.linkInput,
698
- "onUpdate:modelValue": e[1] || (e[1] = (s) => l.linkInput = s),
746
+ content: u(() => [
747
+ b("div", dt, [
748
+ o.showAddLink.setLinkTitle.length > 0 ? (a(), w("span", ht, B(o.showAddLink.setLinkTitle), 1)) : z("", !0),
749
+ c(N, {
750
+ modelValue: r.linkInput,
751
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => r.linkInput = l),
699
752
  "input-aria-label": o.showAddLink.setLinkInputAriaLabel,
700
753
  placeholder: o.setLinkPlaceholder,
701
754
  "data-qa": "dt-recipe-editor-link-input",
702
755
  "input-wrapper-class": "d-recipe-editor-link__input-wrapper",
703
756
  onClick: [
704
757
  i.onInputFocus,
705
- P(i.onInputFocus, ["stop"])
758
+ f(i.onInputFocus, ["stop"])
706
759
  ],
707
760
  onFocus: i.onInputFocus,
708
- onKeydown: Y(i.setLink, ["enter"])
761
+ onKeydown: k(i.setLink, ["enter"])
709
762
  }, null, 8, ["modelValue", "input-aria-label", "placeholder", "onClick", "onFocus", "onKeydown"])
710
763
  ])
711
764
  ]),
712
- footerContent: n(() => [
713
- c(f, {
765
+ footerContent: u(() => [
766
+ c(I, {
714
767
  direction: "row",
715
768
  gap: "300",
716
769
  class: "d-recipe-editor__popover-footer"
717
770
  }, {
718
- default: n(() => [
771
+ default: u(() => [
719
772
  c(d, {
720
773
  "aria-label": o.removeLinkButton.ariaLabel,
721
774
  "data-qa": "dt-recipe-editor-remove-link-btn",
@@ -724,8 +777,8 @@ function dt(t, e, o, r, l, i) {
724
777
  size: "sm",
725
778
  onClick: i.removeLink
726
779
  }, {
727
- default: n(() => [
728
- m(k(o.removeLinkButton.label), 1)
780
+ default: u(() => [
781
+ L(B(o.removeLinkButton.label), 1)
729
782
  ]),
730
783
  _: 1
731
784
  }, 8, ["aria-label", "onClick"]),
@@ -737,8 +790,8 @@ function dt(t, e, o, r, l, i) {
737
790
  size: "sm",
738
791
  onClick: i.closeLinkInput
739
792
  }, {
740
- default: n(() => [
741
- m(k(o.cancelSetLinkButton.label), 1)
793
+ default: u(() => [
794
+ L(B(o.cancelSetLinkButton.label), 1)
742
795
  ]),
743
796
  _: 1
744
797
  }, 8, ["aria-label", "onClick"]),
@@ -748,8 +801,8 @@ function dt(t, e, o, r, l, i) {
748
801
  size: "sm",
749
802
  onClick: i.setLink
750
803
  }, {
751
- default: n(() => [
752
- m(k(o.confirmSetLinkButton.label), 1)
804
+ default: u(() => [
805
+ L(B(o.confirmSetLinkButton.label), 1)
753
806
  ]),
754
807
  _: 1
755
808
  }, 8, ["aria-label", "onClick"])
@@ -761,18 +814,18 @@ function dt(t, e, o, r, l, i) {
761
814
  }, 8, ["open", "onClick", "onOpened"])
762
815
  ]),
763
816
  _: 1
764
- })) : j("", !0)
817
+ })) : z("", !0)
765
818
  ]),
766
819
  _: 1
767
820
  }),
768
- w("div", {
769
- style: W({ "max-height": o.maxHeight }),
821
+ b("div", {
822
+ style: $({ "max-height": o.maxHeight }),
770
823
  class: "d-recipe-editor__content"
771
824
  }, [
772
- c(G, M({
825
+ c(J, U({
773
826
  ref: "richTextEditor",
774
- modelValue: l.internalInputValue,
775
- "onUpdate:modelValue": e[2] || (e[2] = (s) => l.internalInputValue = s),
827
+ modelValue: r.internalInputValue,
828
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => r.internalInputValue = l),
776
829
  "allow-inline-images": !0,
777
830
  "allow-line-breaks": !0,
778
831
  "hide-link-bubble-menu": !0,
@@ -789,13 +842,13 @@ function dt(t, e, o, r, l, i) {
789
842
  onTextInput: i.onTextInput,
790
843
  onBlur: i.onBlur,
791
844
  onFocus: i.onFocus,
792
- onInput: e[3] || (e[3] = (s) => i.onInput(s))
845
+ onInput: e[3] || (e[3] = (l) => i.onInput(l))
793
846
  }), null, 16, ["modelValue", "auto-focus", "editable", "input-aria-label", "input-class", "output-format", "placeholder", "use-div-tags", "onTextInput", "onBlur", "onFocus"])
794
847
  ], 4)
795
848
  ], 16);
796
849
  }
797
- const Ct = /* @__PURE__ */ Z(st, [["render", dt]]);
850
+ const yt = /* @__PURE__ */ tt(at, [["render", pt]]);
798
851
  export {
799
- Ct as default
852
+ yt as default
800
853
  };
801
854
  //# sourceMappingURL=editor.js.map