@alfadocs/ui-kit 0.19.0 → 0.20.1

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 (84) hide show
  1. package/dist/_chunks/_commonjsHelpers-DaMA6jEr.js +9 -0
  2. package/dist/_chunks/{ai-prompt-input-B-w5Rx3V.js → ai-prompt-input-B5MdixzR.js} +2 -2
  3. package/dist/_chunks/{alert-DBnawbmf.js → alert-ywPR59NE.js} +14 -1
  4. package/dist/_chunks/{leo-sidebar-DIsiTju3.js → alia-sidebar-Bof6TlFx.js} +211 -211
  5. package/dist/_chunks/{audio-recorder-DNkQLW1G.js → audio-recorder-D4xM3H5i.js} +2 -2
  6. package/dist/_chunks/{chat-message-g3lxpXM_.js → chat-message-ChOnwqf_.js} +5 -5
  7. package/dist/_chunks/editable-currency-cell-renderer-Dn3-ANF5.js +1932 -0
  8. package/dist/_chunks/{email-input-DKN5JERd.js → email-input-DvJ_kPKL.js} +2 -2
  9. package/dist/_chunks/exceljs.min-DUJ-5CGx.js +23045 -0
  10. package/dist/_chunks/file-spreadsheet-zUkY8rJ2.js +25 -0
  11. package/dist/_chunks/{file-upload-nMh-1jDD.js → file-upload-DxAQprcU.js} +103 -122
  12. package/dist/_chunks/{freemium-paywall-DXc7XlGE.js → freemium-paywall-CM6V1zNf.js} +2 -2
  13. package/dist/_chunks/grip-vertical-Dlg0_k5C.js +19 -0
  14. package/dist/_chunks/html2canvas.esm-dgT_1dIT.js +4872 -0
  15. package/dist/_chunks/{index-CFoBa86t.js → index-BcMWc8W2.js} +2 -2
  16. package/dist/_chunks/index.es-B8zMZ1wV.js +6694 -0
  17. package/dist/_chunks/jspdf.es.min-DaapWjR1.js +10007 -0
  18. package/dist/_chunks/jspdf.plugin.autotable-CSiDNyPn.js +1088 -0
  19. package/dist/_chunks/{map-view-DVP-Kp9l.js → map-view-CcwycFQX.js} +2 -2
  20. package/dist/_chunks/{patient-shell-Dr64lBp_.js → patient-shell-DavGODt9.js} +2 -2
  21. package/dist/_chunks/{payment-form-BjkuQeqR.js → payment-form-F7uh0Rqr.js} +2 -2
  22. package/dist/_chunks/{pdf-viewer-BG_nsFT5.js → pdf-viewer-CuYaVR1I.js} +2 -2
  23. package/dist/_chunks/{purify.es-DpIUMBYC.js → purify.es-Cm3utOpm.js} +2 -2
  24. package/dist/_chunks/{rich-text-editor-C7TCIlQO.js → rich-text-editor-J-wAz9eN.js} +22 -22
  25. package/dist/_chunks/{sidebar-BqzlRBvC.js → sidebar-DkyC6GvS.js} +167 -180
  26. package/dist/_chunks/{suggestion-chip-C4Jz0LrM.js → suggestion-chip-C4kxWUIs.js} +2 -2
  27. package/dist/_chunks/{warning-stack-CDH9TudY.js → warning-stack-bDicCvxs.js} +2 -2
  28. package/dist/_chunks/{workflow-map-BeKe23uw.js → workflow-map-BkLglexk.js} +2 -2
  29. package/dist/agent-catalog.json +1 -1
  30. package/dist/components/ai-prompt-input/index.js +1 -1
  31. package/dist/components/alert/index.js +1 -1
  32. package/dist/components/app-frame/app-frame.d.ts +1 -1
  33. package/dist/components/audio-recorder/index.js +1 -1
  34. package/dist/components/chat-container/chat-container.d.ts +1 -1
  35. package/dist/components/chat-message/chat-message.d.ts +1 -1
  36. package/dist/components/chat-message/index.js +1 -1
  37. package/dist/components/data-table/cell-renderers/balance-cell-renderer.d.ts +37 -0
  38. package/dist/components/data-table/cell-renderers/editable-currency-cell-renderer.d.ts +23 -0
  39. package/dist/components/data-table/cell-renderers/editable-text-cell-renderer.d.ts +11 -0
  40. package/dist/components/data-table/cell-renderers/image-cell-renderer.d.ts +19 -0
  41. package/dist/components/data-table/cell-renderers/toggle-cell-renderer.d.ts +15 -3
  42. package/dist/components/data-table/data-table.d.ts +30 -3
  43. package/dist/components/data-table/filters/date-range-filter.d.ts +30 -0
  44. package/dist/components/data-table/filters/select-filter.d.ts +64 -0
  45. package/dist/components/data-table/filters/typeahead-filter.d.ts +49 -0
  46. package/dist/components/data-table/index.d.ts +13 -2
  47. package/dist/components/data-table/index.js +24 -14
  48. package/dist/components/data-table/toolbar.d.ts +80 -1
  49. package/dist/components/email-input/index.js +1 -1
  50. package/dist/components/file-upload/index.js +1 -1
  51. package/dist/components/freemium-paywall/index.js +1 -1
  52. package/dist/components/index.d.ts +1 -1
  53. package/dist/components/map-view/index.js +1 -1
  54. package/dist/components/payment-form/index.js +1 -1
  55. package/dist/components/pdf-viewer/index.js +1 -1
  56. package/dist/components/rich-text-editor/index.js +1 -1
  57. package/dist/components/sidebar/index.js +1 -1
  58. package/dist/components/suggestion-chip/index.js +1 -1
  59. package/dist/components/warning-stack/index.js +1 -1
  60. package/dist/components/workflow/index.js +1 -1
  61. package/dist/i18n/config.js +81 -13
  62. package/dist/i18n/resources.d.ts +77 -9
  63. package/dist/index.js +421 -411
  64. package/dist/locales/de.json +13 -3
  65. package/dist/locales/en.json +32 -3
  66. package/dist/locales/it.json +32 -3
  67. package/dist/patterns/alia-assistant/alia-chat-surface.d.ts +3 -0
  68. package/dist/patterns/alia-assistant/alia-embedded.d.ts +13 -0
  69. package/dist/patterns/{leo-assistant/leo-popout.d.ts → alia-assistant/alia-popout.d.ts} +4 -4
  70. package/dist/patterns/{leo-assistant/leo-sidebar.d.ts → alia-assistant/alia-sidebar.d.ts} +10 -10
  71. package/dist/patterns/{leo-assistant/leo-types.d.ts → alia-assistant/alia-types.d.ts} +23 -23
  72. package/dist/patterns/alia-assistant/index.d.ts +20 -0
  73. package/dist/patterns/alia-assistant/index.js +8 -0
  74. package/dist/patterns/patient-shell/index.js +1 -1
  75. package/dist/patterns/patient-shell/patient-shell.d.ts +1 -1
  76. package/dist/safe-html/index.js +6 -6
  77. package/dist/tokens.css +2 -2
  78. package/package.json +7 -4
  79. package/dist/_chunks/_commonjsHelpers-C6fGbg64.js +0 -7
  80. package/dist/_chunks/balance-cell-renderer-DJB6WDPe.js +0 -1015
  81. package/dist/patterns/leo-assistant/index.d.ts +0 -20
  82. package/dist/patterns/leo-assistant/index.js +0 -8
  83. package/dist/patterns/leo-assistant/leo-chat-surface.d.ts +0 -3
  84. package/dist/patterns/leo-assistant/leo-embedded.d.ts +0 -13
@@ -4,7 +4,7 @@ import P, { useMemo as N, useContext as B, useEffect as E, useLayoutEffect as X,
4
4
  import { c as ne } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as Be } from "react-i18next";
6
6
  import { createPortal as de } from "react-dom";
7
- import { g as nn } from "./_commonjsHelpers-C6fGbg64.js";
7
+ import { g as nn } from "./_commonjsHelpers-DaMA6jEr.js";
8
8
  import { B as tn } from "./button-DD_0Xdmr.js";
9
9
  import { u as on } from "./registry-C9nwlNyL.js";
10
10
  import { M as rn } from "./map-pin-B8STOPMJ.js";
@@ -1939,4 +1939,4 @@ Zt.displayName = "MapView";
1939
1939
  export {
1940
1940
  Zt as M
1941
1941
  };
1942
- //# sourceMappingURL=map-view-DVP-Kp9l.js.map
1942
+ //# sourceMappingURL=map-view-CcwycFQX.js.map
@@ -6,7 +6,7 @@ import { I } from "./icon-button-C4CGcYuz.js";
6
6
  import { D as n } from "./dropdown-menu-DZxwF23X.js";
7
7
  import { H as L, g as A, f as H, e as x, a as C, c as M, d as B } from "./header-DqmKROIY.js";
8
8
  import { L as N } from "./logo-_Z-jLq80.js";
9
- import { S as T, a as _, h as O, j as P, k as W, i as j } from "./sidebar-BqzlRBvC.js";
9
+ import { S as T, a as _, h as O, j as P, k as W, i as j } from "./sidebar-DkyC6GvS.js";
10
10
  import { T as z } from "./theme-root-BOO73p5t.js";
11
11
  import { a as R } from "./tooltip-DHik5yRI.js";
12
12
  import { u as D } from "./use-theme-B1cwAXJR.js";
@@ -185,4 +185,4 @@ V.displayName = "PatientShell";
185
185
  export {
186
186
  V as P
187
187
  };
188
- //# sourceMappingURL=patient-shell-Dr64lBp_.js.map
188
+ //# sourceMappingURL=patient-shell-DavGODt9.js.map
@@ -3,7 +3,7 @@ import { forwardRef as se, useState as E, useEffect as R, useRef as V, useMemo a
3
3
  import { c as z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as q } from "react-i18next";
5
5
  import { S as J } from "./spinner-DirtWZNG.js";
6
- import { A as W } from "./alert-DBnawbmf.js";
6
+ import { A as W } from "./alert-ywPR59NE.js";
7
7
  import { loadStripe as de } from "@stripe/stripe-js";
8
8
  import { Elements as ce, useStripe as le, useElements as me, PaymentElement as ue, AddressElement as pe } from "@stripe/react-stripe-js";
9
9
  import { u as fe } from "./registry-C9nwlNyL.js";
@@ -587,4 +587,4 @@ export {
587
587
  ye as p,
588
588
  ee as s
589
589
  };
590
- //# sourceMappingURL=payment-form-BjkuQeqR.js.map
590
+ //# sourceMappingURL=payment-form-F7uh0Rqr.js.map
@@ -6,7 +6,7 @@ import { useTranslation as pe } from "react-i18next";
6
6
  import * as ee from "@radix-ui/react-popover";
7
7
  import Me from "pdfjs-dist/build/pdf.worker.min.mjs?url";
8
8
  import { S as Le } from "./spinner-DirtWZNG.js";
9
- import { A as we } from "./alert-DBnawbmf.js";
9
+ import { A as we } from "./alert-ywPR59NE.js";
10
10
  import { u as Ze } from "./registry-C9nwlNyL.js";
11
11
  import { X as Be } from "./x-CCcI3eJp.js";
12
12
  import { C as Ke } from "./chevron-left-CX1jqD2M.js";
@@ -917,4 +917,4 @@ export {
917
917
  nt as P,
918
918
  Xe as p
919
919
  };
920
- //# sourceMappingURL=pdf-viewer-BG_nsFT5.js.map
920
+ //# sourceMappingURL=pdf-viewer-CuYaVR1I.js.map
@@ -556,6 +556,6 @@ function St() {
556
556
  }
557
557
  var mn = St();
558
558
  export {
559
- mn as p
559
+ mn as default
560
560
  };
561
- //# sourceMappingURL=purify.es-DpIUMBYC.js.map
561
+ //# sourceMappingURL=purify.es-Cm3utOpm.js.map
@@ -9,11 +9,11 @@ import ue from "@tiptap/extension-table-row";
9
9
  import me from "@tiptap/extension-table-cell";
10
10
  import fe from "@tiptap/extension-table-header";
11
11
  import { Markdown as he } from "tiptap-markdown";
12
- import { p as pe } from "./purify.es-DpIUMBYC.js";
12
+ import be from "./purify.es-Cm3utOpm.js";
13
13
  import { c as S } from "./index-D2ZczOXr.js";
14
14
  import { useTranslation as U } from "react-i18next";
15
15
  import * as z from "@radix-ui/react-dialog";
16
- import { u as be } from "./registry-C9nwlNyL.js";
16
+ import { u as pe } from "./registry-C9nwlNyL.js";
17
17
  import { s as ge } from "./safe-image-src-DstKgCo7.js";
18
18
  import { X as ve } from "./x-CCcI3eJp.js";
19
19
  import { C as ke } from "./chevron-down-BX_NP2Yh.js";
@@ -229,7 +229,7 @@ const Fe = [
229
229
  ]
230
230
  };
231
231
  function I(a) {
232
- return pe.sanitize(a, Ze);
232
+ return be.sanitize(a, Ze);
233
233
  }
234
234
  const Ue = S(
235
235
  "tiptap-theme-alfadocs ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"
@@ -564,9 +564,9 @@ const We = se(
564
564
  },
565
565
  onUpdate({ editor: s }) {
566
566
  L.current && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
567
- var d, p, b;
568
- const t = s.getHTML(), f = ((p = (d = s.storage.markdown) == null ? void 0 : d.getMarkdown) == null ? void 0 : p.call(d)) ?? "";
569
- (b = L.current) == null || b.call(L, { html: t, markdown: f });
567
+ var d, b, p;
568
+ const t = s.getHTML(), f = ((b = (d = s.storage.markdown) == null ? void 0 : d.getMarkdown) == null ? void 0 : b.call(d)) ?? "";
569
+ (p = L.current) == null || p.call(L, { html: t, markdown: f });
570
570
  }, 100));
571
571
  }
572
572
  });
@@ -602,7 +602,7 @@ const We = se(
602
602
  }),
603
603
  [e]
604
604
  );
605
- ie(A, () => E, [E]), be(Pe, E, a);
605
+ ie(A, () => E, [E]), pe(Pe, E, a);
606
606
  const V = B([]), [T, K] = H(0), q = j(() => Xe[R], [R]), J = _(
607
607
  (s) => (t) => {
608
608
  V.current[s] = t;
@@ -647,7 +647,7 @@ const We = se(
647
647
  onFocus: () => K(t),
648
648
  onKeyDown: Z
649
649
  }, d = (n, x) => G({ pressed: n, disabled: x });
650
- function p(n) {
650
+ function b(n) {
651
651
  return /* @__PURE__ */ r(
652
652
  "button",
653
653
  {
@@ -667,7 +667,7 @@ const We = se(
667
667
  }
668
668
  );
669
669
  }
670
- function b(n) {
670
+ function p(n) {
671
671
  return /* @__PURE__ */ r(
672
672
  "button",
673
673
  {
@@ -692,7 +692,7 @@ const We = se(
692
692
  }
693
693
  switch (s) {
694
694
  case "bold":
695
- return p({
695
+ return b({
696
696
  label: o("editor.bold"),
697
697
  pressed: e.isActive("bold"),
698
698
  disabled: i,
@@ -707,7 +707,7 @@ const We = se(
707
707
  )
708
708
  });
709
709
  case "italic":
710
- return p({
710
+ return b({
711
711
  label: o("editor.italic"),
712
712
  pressed: e.isActive("italic"),
713
713
  disabled: i,
@@ -722,7 +722,7 @@ const We = se(
722
722
  )
723
723
  });
724
724
  case "link":
725
- return b({
725
+ return p({
726
726
  label: o("editor.link.insert"),
727
727
  disabled: i,
728
728
  shortcut: "Control+K Meta+K",
@@ -750,7 +750,7 @@ const We = se(
750
750
  }
751
751
  );
752
752
  case "bulletList":
753
- return p({
753
+ return b({
754
754
  label: o("editor.list.bullet"),
755
755
  pressed: e.isActive("bulletList"),
756
756
  disabled: i,
@@ -764,7 +764,7 @@ const We = se(
764
764
  )
765
765
  });
766
766
  case "orderedList":
767
- return p({
767
+ return b({
768
768
  label: o("editor.list.ordered"),
769
769
  pressed: e.isActive("orderedList"),
770
770
  disabled: i,
@@ -778,7 +778,7 @@ const We = se(
778
778
  )
779
779
  });
780
780
  case "quote":
781
- return p({
781
+ return b({
782
782
  label: o("editor.quote"),
783
783
  pressed: e.isActive("blockquote"),
784
784
  disabled: i,
@@ -792,7 +792,7 @@ const We = se(
792
792
  )
793
793
  });
794
794
  case "image":
795
- return b({
795
+ return p({
796
796
  label: o("editor.image.insert"),
797
797
  disabled: i,
798
798
  onActivate: O,
@@ -805,7 +805,7 @@ const We = se(
805
805
  )
806
806
  });
807
807
  case "table":
808
- return b({
808
+ return p({
809
809
  label: o("editor.table.insert"),
810
810
  disabled: i,
811
811
  onActivate: () => e.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run(),
@@ -818,7 +818,7 @@ const We = se(
818
818
  )
819
819
  });
820
820
  case "codeBlock":
821
- return p({
821
+ return b({
822
822
  label: o("editor.codeBlock"),
823
823
  pressed: e.isActive("codeBlock"),
824
824
  disabled: i,
@@ -832,7 +832,7 @@ const We = se(
832
832
  )
833
833
  });
834
834
  case "horizontalRule":
835
- return b({
835
+ return p({
836
836
  label: o("editor.horizontalRule"),
837
837
  disabled: i,
838
838
  onActivate: () => e.chain().focus().setHorizontalRule().run(),
@@ -845,7 +845,7 @@ const We = se(
845
845
  )
846
846
  });
847
847
  case "undo":
848
- return b({
848
+ return p({
849
849
  label: o("editor.undo"),
850
850
  disabled: i || !e.can().undo(),
851
851
  shortcut: "Control+Z Meta+Z",
@@ -859,7 +859,7 @@ const We = se(
859
859
  )
860
860
  });
861
861
  case "redo":
862
- return b({
862
+ return p({
863
863
  label: o("editor.redo"),
864
864
  disabled: i || !e.can().redo(),
865
865
  shortcut: "Control+Shift+Z Meta+Shift+Z",
@@ -928,4 +928,4 @@ export {
928
928
  G as t,
929
929
  Ue as w
930
930
  };
931
- //# sourceMappingURL=rich-text-editor-C7TCIlQO.js.map
931
+ //# sourceMappingURL=rich-text-editor-J-wAz9eN.js.map