payload-intl 0.0.2 → 0.0.4

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 (69) hide show
  1. package/dist/components/MessageController.js +29 -28
  2. package/dist/components/MessageController.js.map +1 -1
  3. package/dist/components/MessagesForm.js +92 -76
  4. package/dist/components/MessagesForm.js.map +1 -1
  5. package/dist/components/actions/JsonImport.d.ts +1 -1
  6. package/dist/components/actions/JsonImport.js +63 -0
  7. package/dist/components/actions/JsonImport.js.map +1 -0
  8. package/dist/components/actions/Move.d.ts +1 -1
  9. package/dist/components/inputs/InputWrapper.d.ts +1 -1
  10. package/dist/components/inputs/InputWrapper.js +24 -18
  11. package/dist/components/inputs/InputWrapper.js.map +1 -1
  12. package/dist/components/inputs/MessageInput.d.ts +1 -1
  13. package/dist/components/inputs/MessageInput.js +27 -41
  14. package/dist/components/inputs/MessageInput.js.map +1 -1
  15. package/dist/components/inputs/RichTextInput.js +62 -58
  16. package/dist/components/inputs/RichTextInput.js.map +1 -1
  17. package/dist/components/inputs/toolbar/AlignmentControls.d.ts +1 -1
  18. package/dist/components/inputs/toolbar/AlignmentControls.js +47 -44
  19. package/dist/components/inputs/toolbar/AlignmentControls.js.map +1 -1
  20. package/dist/components/inputs/toolbar/BlockElementSelect.d.ts +1 -1
  21. package/dist/components/inputs/toolbar/BlockElementSelect.js +60 -54
  22. package/dist/components/inputs/toolbar/BlockElementSelect.js.map +1 -1
  23. package/dist/components/inputs/toolbar/LinkEditor.d.ts +1 -1
  24. package/dist/components/inputs/toolbar/LinkEditor.js +182 -170
  25. package/dist/components/inputs/toolbar/LinkEditor.js.map +1 -1
  26. package/dist/components/inputs/toolbar/MarkControls.d.ts +1 -1
  27. package/dist/components/inputs/toolbar/MarkControls.js +29 -28
  28. package/dist/components/inputs/toolbar/MarkControls.js.map +1 -1
  29. package/dist/components/inputs/toolbar/RichTextToolbar.d.ts +1 -1
  30. package/dist/components/inputs/toolbar/RichTextToolbar.js +29 -26
  31. package/dist/components/inputs/toolbar/RichTextToolbar.js.map +1 -1
  32. package/dist/components/inputs/variables/VariableChip.d.ts +1 -1
  33. package/dist/components/inputs/variables/VariableChip.js +55 -49
  34. package/dist/components/inputs/variables/VariableChip.js.map +1 -1
  35. package/dist/components/inputs/variables/VariableSuggestion.d.ts +1 -1
  36. package/dist/components/inputs/variables/VariableSuggestion.js +24 -23
  37. package/dist/components/inputs/variables/VariableSuggestion.js.map +1 -1
  38. package/dist/components/inputs/variables/editors/DateVariableEditor.d.ts +1 -1
  39. package/dist/components/inputs/variables/editors/PluralVariableEditor.d.ts +1 -1
  40. package/dist/components/inputs/variables/editors/PluralVariableEditor.js +151 -122
  41. package/dist/components/inputs/variables/editors/PluralVariableEditor.js.map +1 -1
  42. package/dist/components/inputs/variables/editors/SelectVariableEditor.d.ts +1 -1
  43. package/dist/components/inputs/variables/editors/SelectVariableEditor.js +33 -29
  44. package/dist/components/inputs/variables/editors/SelectVariableEditor.js.map +1 -1
  45. package/dist/components/inputs/variables/editors/TagVariableEditor.d.ts +1 -1
  46. package/dist/components/inputs/variables/editors/TagVariableEditor.js +13 -12
  47. package/dist/components/inputs/variables/editors/TagVariableEditor.js.map +1 -1
  48. package/dist/components/inputs/variables/editors/TimeVariableEditor.d.ts +1 -1
  49. package/dist/components/inputs/variables/pickers/NumericVariablePicker.d.ts +1 -1
  50. package/dist/components/inputs/variables/pickers/NumericVariablePicker.js +40 -36
  51. package/dist/components/inputs/variables/pickers/NumericVariablePicker.js.map +1 -1
  52. package/dist/components/inputs/variables/pickers/TemporalElementEditor.d.ts +1 -1
  53. package/dist/components/layout/MessageField.js +42 -38
  54. package/dist/components/layout/MessageField.js.map +1 -1
  55. package/dist/components/layout/MessagesTabs.js +31 -30
  56. package/dist/components/layout/MessagesTabs.js.map +1 -1
  57. package/dist/components/layout/MessagesTree.js +52 -51
  58. package/dist/components/layout/MessagesTree.js.map +1 -1
  59. package/dist/context/messages-form.d.ts +1 -1
  60. package/dist/context/messages-form.js +12 -11
  61. package/dist/context/messages-form.js.map +1 -1
  62. package/dist/exports/link.d.ts +1 -1
  63. package/dist/exports/link.js +11 -10
  64. package/dist/exports/link.js.map +1 -1
  65. package/dist/exports/view.d.ts +1 -1
  66. package/dist/exports/view.js +43 -40
  67. package/dist/exports/view.js.map +1 -1
  68. package/dist/types.d.ts +2 -2
  69. package/package.json +1 -2
@@ -1,32 +1,35 @@
1
- import { Toolbar as t } from "radix-ui";
2
- import { cn as a } from "../../../utils/cn.js";
3
- import { AlignmentControls as o } from "./AlignmentControls.js";
4
- import { BlockElementSelect as n } from "./BlockElementSelect.js";
5
- import { LinkEditor as l } from "./LinkEditor.js";
6
- import { MarkControls as m } from "./MarkControls.js";
7
- function x({ editor: e, className: r }) {
8
- return /* @__PURE__ */ React.createElement(
9
- t.Root,
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { Toolbar as e } from "radix-ui";
3
+ import { cn as n } from "../../../utils/cn.js";
4
+ import { AlignmentControls as m } from "./AlignmentControls.js";
5
+ import { BlockElementSelect as l } from "./BlockElementSelect.js";
6
+ import { LinkEditor as i } from "./LinkEditor.js";
7
+ import { MarkControls as s } from "./MarkControls.js";
8
+ function d({ editor: o, className: t }) {
9
+ return /* @__PURE__ */ a(
10
+ e.Root,
10
11
  {
11
- className: a("flex rounded-md bg-elevation-100 px-2 py-1", r),
12
- "aria-label": "Formatting options"
13
- },
14
- /* @__PURE__ */ React.createElement(n, { editor: e }),
15
- /* @__PURE__ */ React.createElement(t.Separator, { className: "mx-2 w-px bg-border" }),
16
- /* @__PURE__ */ React.createElement(m, { editor: e }),
17
- /* @__PURE__ */ React.createElement(t.Separator, { className: "mx-2 w-px bg-border" }),
18
- /* @__PURE__ */ React.createElement(o, { editor: e }),
19
- /* @__PURE__ */ React.createElement(t.Separator, { className: "mx-2 w-px bg-border" }),
20
- /* @__PURE__ */ React.createElement(
21
- l,
22
- {
23
- editor: e,
24
- className: "inline-flex h-7 flex-shrink-0 flex-grow-0 basis-auto cursor-pointer items-center justify-center rounded border-none bg-transparent px-2 leading-none hover:bg-elevation-250 focus:relative focus:outline"
25
- }
26
- )
12
+ className: n("flex rounded-md bg-elevation-100 px-2 py-1", t),
13
+ "aria-label": "Formatting options",
14
+ children: [
15
+ /* @__PURE__ */ r(l, { editor: o }),
16
+ /* @__PURE__ */ r(e.Separator, { className: "mx-2 w-px bg-border" }),
17
+ /* @__PURE__ */ r(s, { editor: o }),
18
+ /* @__PURE__ */ r(e.Separator, { className: "mx-2 w-px bg-border" }),
19
+ /* @__PURE__ */ r(m, { editor: o }),
20
+ /* @__PURE__ */ r(e.Separator, { className: "mx-2 w-px bg-border" }),
21
+ /* @__PURE__ */ r(
22
+ i,
23
+ {
24
+ editor: o,
25
+ className: "inline-flex h-7 flex-shrink-0 flex-grow-0 basis-auto cursor-pointer items-center justify-center rounded border-none bg-transparent px-2 leading-none hover:bg-elevation-250 focus:relative focus:outline"
26
+ }
27
+ )
28
+ ]
29
+ }
27
30
  );
28
31
  }
29
32
  export {
30
- x as RichTextToolbar
33
+ d as RichTextToolbar
31
34
  };
32
35
  //# sourceMappingURL=RichTextToolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextToolbar.js","sources":["../../../../src/components/inputs/toolbar/RichTextToolbar.tsx"],"sourcesContent":["import type { Editor } from \"@tiptap/react\";\nimport { Toolbar } from \"radix-ui\";\n\nimport { cn } from \"@/utils/cn\";\n\nimport { AlignmentControls } from \"./AlignmentControls\";\nimport { BlockElementSelect } from \"./BlockElementSelect\";\nimport { LinkEditor } from \"./LinkEditor\";\nimport { MarkControls } from \"./MarkControls\";\n\nexport interface RichTextToolbarProps {\n editor: Editor | null;\n className?: string;\n}\n\n// TODO add horizontal rule\n\nexport function RichTextToolbar({ editor, className }: RichTextToolbarProps) {\n return (\n <Toolbar.Root\n className={cn(\"flex rounded-md bg-elevation-100 px-2 py-1\", className)}\n aria-label=\"Formatting options\"\n >\n <BlockElementSelect editor={editor} />\n\n <Toolbar.Separator className=\"mx-2 w-px bg-border\" />\n\n <MarkControls editor={editor} />\n\n <Toolbar.Separator className=\"mx-2 w-px bg-border\" />\n\n <AlignmentControls editor={editor} />\n\n <Toolbar.Separator className=\"mx-2 w-px bg-border\" />\n\n <LinkEditor\n editor={editor}\n className=\"inline-flex h-7 flex-shrink-0 flex-grow-0 basis-auto cursor-pointer items-center justify-center rounded border-none bg-transparent px-2 leading-none hover:bg-elevation-250 focus:relative focus:outline\"\n />\n </Toolbar.Root>\n );\n}\n"],"names":["RichTextToolbar","editor","className","Toolbar","cn","BlockElementSelect","MarkControls","AlignmentControls","LinkEditor"],"mappings":";;;;;;AAiBO,SAASA,EAAgB,EAAE,QAAAC,GAAQ,WAAAC,KAAmC;AAC3E,SACE,sBAAA;AAAA,IAACC,EAAQ;AAAA,IAAR;AAAA,MACC,WAAWC,EAAG,8CAA8CF,CAAS;AAAA,MACrE,cAAW;AAAA,IAAA;AAAA,IAEX,sBAAA,cAACG,KAAmB,QAAAJ,EAAA,CAAgB;AAAA,IAEpC,sBAAA,cAACE,EAAQ,WAAR,EAAkB,WAAU,uBAAsB;AAAA,IAEnD,sBAAA,cAACG,KAAa,QAAAL,EAAA,CAAgB;AAAA,IAE9B,sBAAA,cAACE,EAAQ,WAAR,EAAkB,WAAU,uBAAsB;AAAA,IAEnD,sBAAA,cAACI,KAAkB,QAAAN,EAAA,CAAgB;AAAA,IAEnC,sBAAA,cAACE,EAAQ,WAAR,EAAkB,WAAU,uBAAsB;AAAA,IAEnD,sBAAA;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,QAAAP;AAAA,QACA,WAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EACZ;AAGN;"}
1
+ {"version":3,"file":"RichTextToolbar.js","sources":["../../../../src/components/inputs/toolbar/RichTextToolbar.tsx"],"sourcesContent":["import type { Editor } from \"@tiptap/react\";\nimport { Toolbar } from \"radix-ui\";\n\nimport { cn } from \"@/utils/cn\";\n\nimport { AlignmentControls } from \"./AlignmentControls\";\nimport { BlockElementSelect } from \"./BlockElementSelect\";\nimport { LinkEditor } from \"./LinkEditor\";\nimport { MarkControls } from \"./MarkControls\";\n\nexport interface RichTextToolbarProps {\n editor: Editor | null;\n className?: string;\n}\n\n// TODO add horizontal rule\n\nexport function RichTextToolbar({ editor, className }: RichTextToolbarProps) {\n return (\n <Toolbar.Root\n className={cn(\"flex rounded-md bg-elevation-100 px-2 py-1\", className)}\n aria-label=\"Formatting options\"\n >\n <BlockElementSelect editor={editor} />\n\n <Toolbar.Separator className=\"mx-2 w-px bg-border\" />\n\n <MarkControls editor={editor} />\n\n <Toolbar.Separator className=\"mx-2 w-px bg-border\" />\n\n <AlignmentControls editor={editor} />\n\n <Toolbar.Separator className=\"mx-2 w-px bg-border\" />\n\n <LinkEditor\n editor={editor}\n className=\"inline-flex h-7 flex-shrink-0 flex-grow-0 basis-auto cursor-pointer items-center justify-center rounded border-none bg-transparent px-2 leading-none hover:bg-elevation-250 focus:relative focus:outline\"\n />\n </Toolbar.Root>\n );\n}\n"],"names":["RichTextToolbar","editor","className","jsxs","Toolbar","cn","jsx","BlockElementSelect","MarkControls","AlignmentControls","LinkEditor"],"mappings":";;;;;;;AAiBO,SAASA,EAAgB,EAAE,QAAAC,GAAQ,WAAAC,KAAmC;AAC3E,SACE,gBAAAC;AAAA,IAACC,EAAQ;AAAA,IAAR;AAAA,MACC,WAAWC,EAAG,8CAA8CH,CAAS;AAAA,MACrE,cAAW;AAAA,MAEX,UAAA;AAAA,QAAA,gBAAAI,EAACC,KAAmB,QAAAN,GAAgB;AAAA,QAEpC,gBAAAK,EAACF,EAAQ,WAAR,EAAkB,WAAU,sBAAA,CAAsB;AAAA,QAEnD,gBAAAE,EAACE,KAAa,QAAAP,GAAgB;AAAA,QAE9B,gBAAAK,EAACF,EAAQ,WAAR,EAAkB,WAAU,sBAAA,CAAsB;AAAA,QAEnD,gBAAAE,EAACG,KAAkB,QAAAR,GAAgB;AAAA,QAEnC,gBAAAK,EAACF,EAAQ,WAAR,EAAkB,WAAU,sBAAA,CAAsB;AAAA,QAEnD,gBAAAE;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,QAAAT;AAAA,YACA,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,2 +1,2 @@
1
1
  import { ReactNodeViewProps } from '@tiptap/react';
2
- export declare function VariableChip({ node, updateAttributes, }: ReactNodeViewProps<HTMLElement>): import("react").JSX.Element;
2
+ export declare function VariableChip({ node, updateAttributes, }: ReactNodeViewProps<HTMLElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,61 +1,67 @@
1
- import { NodeViewWrapper as d } from "@tiptap/react";
2
- import { Popover as r } from "radix-ui";
3
- import { useMemo as l } from "react";
4
- import { cn as s } from "../../../utils/cn.js";
5
- import { isTemporalElement as c, isNumericElement as p } from "../../../utils/guards.js";
6
- import { parseICUMessage as f } from "../../../utils/icu-tranform.js";
7
- import { SelectVariableEditor as u } from "./editors/SelectVariableEditor.js";
8
- import { TagVariableEditor as E } from "./editors/TagVariableEditor.js";
9
- import { NumericVariablePicker as b } from "./pickers/NumericVariablePicker.js";
10
- import { isArgumentElement as g, isSelectElement as h, isTagElement as v } from "@formatjs/icu-messageformat-parser";
11
- const i = !1;
12
- function P({
13
- node: n,
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { NodeViewWrapper as l } from "@tiptap/react";
3
+ import { Popover as a } from "radix-ui";
4
+ import { useMemo as c } from "react";
5
+ import { cn as p } from "../../../utils/cn.js";
6
+ import { isTemporalElement as f, isNumericElement as u } from "../../../utils/guards.js";
7
+ import { parseICUMessage as b } from "../../../utils/icu-tranform.js";
8
+ import { SelectVariableEditor as h } from "./editors/SelectVariableEditor.js";
9
+ import { TagVariableEditor as g } from "./editors/TagVariableEditor.js";
10
+ import { NumericVariablePicker as E } from "./pickers/NumericVariablePicker.js";
11
+ import { isArgumentElement as v, isSelectElement as w, isTagElement as x } from "@formatjs/icu-messageformat-parser";
12
+ const d = !1;
13
+ function S({
14
+ node: s,
14
15
  updateAttributes: m
15
16
  }) {
16
- const a = n.attrs, o = (t) => m({
17
+ const o = s.attrs, i = (t) => m({
17
18
  icu: t
18
- }), e = l(() => {
19
+ }), e = c(() => {
19
20
  try {
20
- const [t] = f(a.icu);
21
+ const [t] = b(o.icu);
21
22
  if (!t) throw new Error("No part found");
22
23
  return t;
23
24
  } catch (t) {
24
- throw console.error(t), new Error(`Invalid ICU: ${a.icu}`, { cause: t });
25
+ throw console.error(t), new Error(`Invalid ICU: ${o.icu}`, { cause: t });
25
26
  }
26
- }, [a.icu]);
27
- return /* @__PURE__ */ React.createElement(r.Root, null, /* @__PURE__ */ React.createElement(r.Trigger, { asChild: !0 }, /* @__PURE__ */ React.createElement(
28
- d,
29
- {
30
- as: "span",
31
- className: s(
32
- "inline-flex cursor-pointer items-center rounded-md bg-elevation-250 px-1 hover:bg-elevation-400",
33
- {
34
- "pointer-events-none": g(e) || c(e) && !i
35
- }
36
- ),
37
- contentEditable: !1,
38
- "data-variable": a.name,
39
- "data-icu": a.icu,
40
- role: "button",
41
- tabIndex: 0
42
- },
43
- a.label
44
- )), /* @__PURE__ */ React.createElement(r.Portal, null, /* @__PURE__ */ React.createElement(
45
- r.Content,
46
- {
47
- side: "bottom",
48
- sideOffset: 5,
49
- align: "start",
50
- className: "z-50 grid origin-(--radix-hover-card-content-transform-origin) overflow-clip rounded-md border border-border bg-elevation-50 shadow-md outline-hidden empty:hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95"
51
- },
52
- p(e) && /* @__PURE__ */ React.createElement(b, { element: e, onUpdate: o }),
53
- h(e) && /* @__PURE__ */ React.createElement(u, { element: e, onUpdate: o }),
54
- i,
55
- v(e) && /* @__PURE__ */ React.createElement(E, { element: e, onUpdate: o })
56
- )));
27
+ }, [o.icu]);
28
+ return /* @__PURE__ */ n(a.Root, { children: [
29
+ /* @__PURE__ */ r(a.Trigger, { asChild: !0, children: /* @__PURE__ */ r(
30
+ l,
31
+ {
32
+ as: "span",
33
+ className: p(
34
+ "inline-flex cursor-pointer items-center rounded-md bg-elevation-250 px-1 hover:bg-elevation-400",
35
+ {
36
+ "pointer-events-none": v(e) || f(e) && !d
37
+ }
38
+ ),
39
+ contentEditable: !1,
40
+ "data-variable": o.name,
41
+ "data-icu": o.icu,
42
+ role: "button",
43
+ tabIndex: 0,
44
+ children: o.label
45
+ }
46
+ ) }),
47
+ /* @__PURE__ */ r(a.Portal, { children: /* @__PURE__ */ n(
48
+ a.Content,
49
+ {
50
+ side: "bottom",
51
+ sideOffset: 5,
52
+ align: "start",
53
+ className: "z-50 grid origin-(--radix-hover-card-content-transform-origin) overflow-clip rounded-md border border-border bg-elevation-50 shadow-md outline-hidden empty:hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
54
+ children: [
55
+ u(e) && /* @__PURE__ */ r(E, { element: e, onUpdate: i }),
56
+ w(e) && /* @__PURE__ */ r(h, { element: e, onUpdate: i }),
57
+ d,
58
+ x(e) && /* @__PURE__ */ r(g, { element: e, onUpdate: i })
59
+ ]
60
+ }
61
+ ) })
62
+ ] });
57
63
  }
58
64
  export {
59
- P as VariableChip
65
+ S as VariableChip
60
66
  };
61
67
  //# sourceMappingURL=VariableChip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VariableChip.js","sources":["../../../../src/components/inputs/variables/VariableChip.tsx"],"sourcesContent":["import type { VariableMentionNodeAttrs } from \"@/types\";\nimport type { ReactNodeViewProps } from \"@tiptap/react\";\nimport { NodeViewWrapper } from \"@tiptap/react\";\nimport { Popover } from \"radix-ui\";\nimport { useMemo } from \"react\";\n\nimport { cn } from \"@/utils/cn\";\nimport {\n isArgumentElement,\n isNumericElement,\n isSelectElement,\n isTagElement,\n isTemporalElement,\n} from \"@/utils/guards\";\nimport { parseICUMessage } from \"@/utils/icu-tranform\";\n\nimport { SelectVariableEditor } from \"./editors/SelectVariableEditor\";\nimport { TagVariableEditor } from \"./editors/TagVariableEditor\";\nimport { NumericVariablePicker } from \"./pickers/NumericVariablePicker\";\nimport { TemporalElementEditor } from \"./pickers/TemporalElementEditor\";\n\nconst TEMPORAL_ELEMENTS_FLAG = false;\n\n// TODO replace popover with portal below input field\n\nexport function VariableChip({\n node,\n updateAttributes,\n}: ReactNodeViewProps<HTMLElement>) {\n const attrs = node.attrs as VariableMentionNodeAttrs;\n const handleUpdate = (value: string) =>\n updateAttributes({\n icu: value,\n });\n\n const element = useMemo(() => {\n try {\n const [part] = parseICUMessage(attrs.icu);\n if (!part) throw new Error(\"No part found\");\n return part;\n } catch (error) {\n console.error(error);\n throw new Error(`Invalid ICU: ${attrs.icu}`, { cause: error });\n }\n }, [attrs.icu]);\n\n return (\n <Popover.Root>\n <Popover.Trigger asChild>\n <NodeViewWrapper\n as=\"span\"\n className={cn(\n \"inline-flex cursor-pointer items-center rounded-md bg-elevation-250 px-1 hover:bg-elevation-400\",\n {\n \"pointer-events-none\":\n isArgumentElement(element) ||\n (isTemporalElement(element) && !TEMPORAL_ELEMENTS_FLAG),\n },\n )}\n contentEditable={false}\n data-variable={attrs.name}\n data-icu={attrs.icu}\n role=\"button\"\n tabIndex={0}\n >\n {attrs.label}\n </NodeViewWrapper>\n </Popover.Trigger>\n <Popover.Portal>\n <Popover.Content\n side=\"bottom\"\n sideOffset={5}\n align=\"start\"\n className=\"z-50 grid origin-(--radix-hover-card-content-transform-origin) overflow-clip rounded-md border border-border bg-elevation-50 shadow-md outline-hidden empty:hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\"\n >\n {isNumericElement(element) && (\n <NumericVariablePicker element={element} onUpdate={handleUpdate} />\n )}\n {isSelectElement(element) && (\n <SelectVariableEditor element={element} onUpdate={handleUpdate} />\n )}\n {TEMPORAL_ELEMENTS_FLAG && isTemporalElement(element) && (\n <TemporalElementEditor element={element} onUpdate={handleUpdate} />\n )}\n\n {isTagElement(element) && (\n <TagVariableEditor element={element} onUpdate={handleUpdate} />\n )}\n </Popover.Content>\n </Popover.Portal>\n </Popover.Root>\n );\n}\n"],"names":["TEMPORAL_ELEMENTS_FLAG","VariableChip","node","updateAttributes","attrs","handleUpdate","value","element","useMemo","part","parseICUMessage","error","Popover","NodeViewWrapper","cn","isArgumentElement","isTemporalElement","isNumericElement","NumericVariablePicker","isSelectElement","SelectVariableEditor","isTagElement","TagVariableEditor"],"mappings":";;;;;;;;;;AAqBA,MAAMA,IAAyB;AAIxB,SAASC,EAAa;AAAA,EAC3B,MAAAC;AAAA,EACA,kBAAAC;AACF,GAAoC;AAClC,QAAMC,IAAQF,EAAK,OACbG,IAAe,CAACC,MACpBH,EAAiB;AAAA,IACf,KAAKG;AAAA,EAAA,CACN,GAEGC,IAAUC,EAAQ,MAAM;AAC5B,QAAI;AACF,YAAM,CAACC,CAAI,IAAIC,EAAgBN,EAAM,GAAG;AACxC,UAAI,CAACK,EAAM,OAAM,IAAI,MAAM,eAAe;AAC1C,aAAOA;AAAA,IACT,SAASE,GAAO;AACd,oBAAQ,MAAMA,CAAK,GACb,IAAI,MAAM,gBAAgBP,EAAM,GAAG,IAAI,EAAE,OAAOO,GAAO;AAAA,IAC/D;AAAA,EACF,GAAG,CAACP,EAAM,GAAG,CAAC;AAEd,SACE,sBAAA,cAACQ,EAAQ,MAAR,0CACEA,EAAQ,SAAR,EAAgB,SAAO,GAAA,GACtB,sBAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,WAAWC;AAAA,QACT;AAAA,QACA;AAAA,UACE,uBACEC,EAAkBR,CAAO,KACxBS,EAAkBT,CAAO,KAAK,CAACP;AAAA,QAAA;AAAA,MACpC;AAAA,MAEF,iBAAiB;AAAA,MACjB,iBAAeI,EAAM;AAAA,MACrB,YAAUA,EAAM;AAAA,MAChB,MAAK;AAAA,MACL,UAAU;AAAA,IAAA;AAAA,IAETA,EAAM;AAAA,EAAA,CAEX,GACA,sBAAA,cAACQ,EAAQ,QAAR,MACC,sBAAA;AAAA,IAACA,EAAQ;AAAA,IAAR;AAAA,MACC,MAAK;AAAA,MACL,YAAY;AAAA,MACZ,OAAM;AAAA,MACN,WAAU;AAAA,IAAA;AAAA,IAETK,EAAiBV,CAAO,yCACtBW,GAAA,EAAsB,SAAAX,GAAkB,UAAUF,GAAc;AAAA,IAElEc,EAAgBZ,CAAO,yCACrBa,GAAA,EAAqB,SAAAb,GAAkB,UAAUF,GAAc;AAAA,IAEjEL;AAAA,IAIAqB,EAAad,CAAO,yCAClBe,GAAA,EAAkB,SAAAf,GAAkB,UAAUF,EAAA,CAAc;AAAA,EAAA,CAGnE,CACF;AAEJ;"}
1
+ {"version":3,"file":"VariableChip.js","sources":["../../../../src/components/inputs/variables/VariableChip.tsx"],"sourcesContent":["import type { VariableMentionNodeAttrs } from \"@/types\";\nimport type { ReactNodeViewProps } from \"@tiptap/react\";\nimport { NodeViewWrapper } from \"@tiptap/react\";\nimport { Popover } from \"radix-ui\";\nimport { useMemo } from \"react\";\n\nimport { cn } from \"@/utils/cn\";\nimport {\n isArgumentElement,\n isNumericElement,\n isSelectElement,\n isTagElement,\n isTemporalElement,\n} from \"@/utils/guards\";\nimport { parseICUMessage } from \"@/utils/icu-tranform\";\n\nimport { SelectVariableEditor } from \"./editors/SelectVariableEditor\";\nimport { TagVariableEditor } from \"./editors/TagVariableEditor\";\nimport { NumericVariablePicker } from \"./pickers/NumericVariablePicker\";\nimport { TemporalElementEditor } from \"./pickers/TemporalElementEditor\";\n\nconst TEMPORAL_ELEMENTS_FLAG = false;\n\n// TODO replace popover with portal below input field\n\nexport function VariableChip({\n node,\n updateAttributes,\n}: ReactNodeViewProps<HTMLElement>) {\n const attrs = node.attrs as VariableMentionNodeAttrs;\n const handleUpdate = (value: string) =>\n updateAttributes({\n icu: value,\n });\n\n const element = useMemo(() => {\n try {\n const [part] = parseICUMessage(attrs.icu);\n if (!part) throw new Error(\"No part found\");\n return part;\n } catch (error) {\n console.error(error);\n throw new Error(`Invalid ICU: ${attrs.icu}`, { cause: error });\n }\n }, [attrs.icu]);\n\n return (\n <Popover.Root>\n <Popover.Trigger asChild>\n <NodeViewWrapper\n as=\"span\"\n className={cn(\n \"inline-flex cursor-pointer items-center rounded-md bg-elevation-250 px-1 hover:bg-elevation-400\",\n {\n \"pointer-events-none\":\n isArgumentElement(element) ||\n (isTemporalElement(element) && !TEMPORAL_ELEMENTS_FLAG),\n },\n )}\n contentEditable={false}\n data-variable={attrs.name}\n data-icu={attrs.icu}\n role=\"button\"\n tabIndex={0}\n >\n {attrs.label}\n </NodeViewWrapper>\n </Popover.Trigger>\n <Popover.Portal>\n <Popover.Content\n side=\"bottom\"\n sideOffset={5}\n align=\"start\"\n className=\"z-50 grid origin-(--radix-hover-card-content-transform-origin) overflow-clip rounded-md border border-border bg-elevation-50 shadow-md outline-hidden empty:hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95\"\n >\n {isNumericElement(element) && (\n <NumericVariablePicker element={element} onUpdate={handleUpdate} />\n )}\n {isSelectElement(element) && (\n <SelectVariableEditor element={element} onUpdate={handleUpdate} />\n )}\n {TEMPORAL_ELEMENTS_FLAG && isTemporalElement(element) && (\n <TemporalElementEditor element={element} onUpdate={handleUpdate} />\n )}\n\n {isTagElement(element) && (\n <TagVariableEditor element={element} onUpdate={handleUpdate} />\n )}\n </Popover.Content>\n </Popover.Portal>\n </Popover.Root>\n );\n}\n"],"names":["TEMPORAL_ELEMENTS_FLAG","VariableChip","node","updateAttributes","attrs","handleUpdate","value","element","useMemo","part","parseICUMessage","error","jsxs","Popover","jsx","NodeViewWrapper","cn","isArgumentElement","isTemporalElement","isNumericElement","NumericVariablePicker","isSelectElement","SelectVariableEditor","isTagElement","TagVariableEditor"],"mappings":";;;;;;;;;;;AAqBA,MAAMA,IAAyB;AAIxB,SAASC,EAAa;AAAA,EAC3B,MAAAC;AAAA,EACA,kBAAAC;AACF,GAAoC;AAClC,QAAMC,IAAQF,EAAK,OACbG,IAAe,CAACC,MACpBH,EAAiB;AAAA,IACf,KAAKG;AAAA,EAAA,CACN,GAEGC,IAAUC,EAAQ,MAAM;AAC5B,QAAI;AACF,YAAM,CAACC,CAAI,IAAIC,EAAgBN,EAAM,GAAG;AACxC,UAAI,CAACK,EAAM,OAAM,IAAI,MAAM,eAAe;AAC1C,aAAOA;AAAA,IACT,SAASE,GAAO;AACd,oBAAQ,MAAMA,CAAK,GACb,IAAI,MAAM,gBAAgBP,EAAM,GAAG,IAAI,EAAE,OAAOO,GAAO;AAAA,IAC/D;AAAA,EACF,GAAG,CAACP,EAAM,GAAG,CAAC;AAEd,SACE,gBAAAQ,EAACC,EAAQ,MAAR,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACD,EAAQ,SAAR,EAAgB,SAAO,IACtB,UAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,WAAWC;AAAA,UACT;AAAA,UACA;AAAA,YACE,uBACEC,EAAkBV,CAAO,KACxBW,EAAkBX,CAAO,KAAK,CAACP;AAAA,UAAA;AAAA,QACpC;AAAA,QAEF,iBAAiB;AAAA,QACjB,iBAAeI,EAAM;AAAA,QACrB,YAAUA,EAAM;AAAA,QAChB,MAAK;AAAA,QACL,UAAU;AAAA,QAET,UAAAA,EAAM;AAAA,MAAA;AAAA,IAAA,GAEX;AAAA,IACA,gBAAAU,EAACD,EAAQ,QAAR,EACC,UAAA,gBAAAD;AAAA,MAACC,EAAQ;AAAA,MAAR;AAAA,QACC,MAAK;AAAA,QACL,YAAY;AAAA,QACZ,OAAM;AAAA,QACN,WAAU;AAAA,QAET,UAAA;AAAA,UAAAM,EAAiBZ,CAAO,KACvB,gBAAAO,EAACM,GAAA,EAAsB,SAAAb,GAAkB,UAAUF,GAAc;AAAA,UAElEgB,EAAgBd,CAAO,uBACrBe,GAAA,EAAqB,SAAAf,GAAkB,UAAUF,GAAc;AAAA,UAEjEL;AAAA,UAIAuB,EAAahB,CAAO,uBAClBiB,GAAA,EAAkB,SAAAjB,GAAkB,UAAUF,EAAA,CAAc;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,EAEjE,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -5,4 +5,4 @@ export interface VariableSuggestionProps extends SuggestionProps<VariableMention
5
5
  onKeyDown: (props: SuggestionKeyDownProps) => boolean;
6
6
  }>;
7
7
  }
8
- export declare function VariableSuggestion({ items, command, ref, }: VariableSuggestionProps): import("react").JSX.Element;
8
+ export declare function VariableSuggestion({ items, command, ref, }: VariableSuggestionProps): import("react/jsx-runtime").JSX.Element;
@@ -1,40 +1,41 @@
1
- import { useState as p, useEffect as f, useImperativeHandle as i } from "react";
2
- import { cn as g } from "../../../utils/cn.js";
3
- function v({
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useState as p, useEffect as f, useImperativeHandle as g } from "react";
3
+ import { cn as b } from "../../../utils/cn.js";
4
+ function w({
4
5
  items: e,
5
- command: a,
6
- ref: c
6
+ command: c,
7
+ ref: u
7
8
  }) {
8
- const [r, o] = p(0), l = (t) => {
9
- const n = e[t];
10
- n && a(n);
11
- }, u = () => {
12
- o((r + e.length - 1) % e.length);
9
+ const [n, o] = p(0), a = (t) => {
10
+ const r = e[t];
11
+ r && c(r);
13
12
  }, s = () => {
14
- o((r + 1) % e.length);
13
+ o((n + e.length - 1) % e.length);
15
14
  }, d = () => {
16
- l(r);
15
+ o((n + 1) % e.length);
16
+ }, i = () => {
17
+ a(n);
17
18
  };
18
- return f(() => o(0), [e]), i(c, () => ({
19
- onKeyDown: ({ event: t }) => t.key === "ArrowUp" ? (u(), !0) : t.key === "ArrowDown" ? (s(), !0) : t.key === "Enter" ? (d(), !0) : !1
20
- })), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col overflow-clip rounded-md bg-elevation-100" }, e.length ? e.map((t, n) => /* @__PURE__ */ React.createElement(
19
+ return f(() => o(0), [e]), g(u, () => ({
20
+ onKeyDown: ({ event: t }) => t.key === "ArrowUp" ? (s(), !0) : t.key === "ArrowDown" ? (d(), !0) : t.key === "Enter" ? (i(), !0) : !1
21
+ })), /* @__PURE__ */ l("div", { className: "flex flex-col overflow-clip rounded-md bg-elevation-100", children: e.length ? e.map((t, r) => /* @__PURE__ */ l(
21
22
  "button",
22
23
  {
23
- key: n,
24
24
  type: "button",
25
- className: g(
25
+ className: b(
26
26
  "cursor-pointer rounded-none border-none bg-transparent px-3 py-1 text-lg text-nowrap",
27
27
  {
28
- "bg-elevation-800 text-elevation-0": n === r,
29
- "hover:bg-elevation-250": n !== r
28
+ "bg-elevation-800 text-elevation-0": r === n,
29
+ "hover:bg-elevation-250": r !== n
30
30
  }
31
31
  ),
32
- onClick: () => l(n)
32
+ onClick: () => a(r),
33
+ children: t.label
33
34
  },
34
- t.label
35
- )) : /* @__PURE__ */ React.createElement("div", { className: "item" }, "No result"));
35
+ r
36
+ )) : /* @__PURE__ */ l("div", { className: "item", children: "No result" }) });
36
37
  }
37
38
  export {
38
- v as VariableSuggestion
39
+ w as VariableSuggestion
39
40
  };
40
41
  //# sourceMappingURL=VariableSuggestion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VariableSuggestion.js","sources":["../../../../src/components/inputs/variables/VariableSuggestion.tsx"],"sourcesContent":["import type { VariableMentionNodeAttrs } from \"@/types\";\nimport type {\n SuggestionKeyDownProps,\n SuggestionProps,\n} from \"@tiptap/suggestion\";\nimport { useEffect, useImperativeHandle, useState } from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport interface VariableSuggestionProps\n extends SuggestionProps<VariableMentionNodeAttrs, VariableMentionNodeAttrs> {\n ref: React.RefObject<{\n onKeyDown: (props: SuggestionKeyDownProps) => boolean;\n }>;\n}\n\nexport function VariableSuggestion({\n items,\n command,\n ref,\n}: VariableSuggestionProps) {\n const [selectedIndex, setSelectedIndex] = useState(0);\n\n const selectItem = (index: number) => {\n const item = items[index];\n\n if (item) command(item);\n };\n\n const upHandler = () => {\n setSelectedIndex((selectedIndex + items.length - 1) % items.length);\n };\n\n const downHandler = () => {\n setSelectedIndex((selectedIndex + 1) % items.length);\n };\n\n const enterHandler = () => {\n selectItem(selectedIndex);\n };\n\n useEffect(() => setSelectedIndex(0), [items]);\n\n useImperativeHandle(ref, () => ({\n onKeyDown: ({ event }) => {\n if (event.key === \"ArrowUp\") {\n upHandler();\n return true;\n }\n\n if (event.key === \"ArrowDown\") {\n downHandler();\n return true;\n }\n\n if (event.key === \"Enter\") {\n enterHandler();\n return true;\n }\n\n return false;\n },\n }));\n\n return (\n <div className=\"flex flex-col overflow-clip rounded-md bg-elevation-100\">\n {items.length ? (\n items.map((item, index) => (\n <button\n key={index}\n type=\"button\"\n className={cn(\n \"cursor-pointer rounded-none border-none bg-transparent px-3 py-1 text-lg text-nowrap\",\n {\n \"bg-elevation-800 text-elevation-0\": index === selectedIndex,\n \"hover:bg-elevation-250\": index !== selectedIndex,\n },\n )}\n onClick={() => selectItem(index)}\n >\n {item.label}\n </button>\n ))\n ) : (\n <div className=\"item\">No result</div>\n )}\n </div>\n );\n}\n"],"names":["VariableSuggestion","items","command","ref","selectedIndex","setSelectedIndex","useState","selectItem","index","item","upHandler","downHandler","enterHandler","useEffect","useImperativeHandle","event","cn"],"mappings":";;AAgBO,SAASA,EAAmB;AAAA,EACjC,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,KAAAC;AACF,GAA4B;AAC1B,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAAS,CAAC,GAE9CC,IAAa,CAACC,MAAkB;AACpC,UAAMC,IAAOR,EAAMO,CAAK;AAExB,IAAIC,OAAcA,CAAI;AAAA,EACxB,GAEMC,IAAY,MAAM;AACtB,IAAAL,GAAkBD,IAAgBH,EAAM,SAAS,KAAKA,EAAM,MAAM;AAAA,EACpE,GAEMU,IAAc,MAAM;AACxB,IAAAN,GAAkBD,IAAgB,KAAKH,EAAM,MAAM;AAAA,EACrD,GAEMW,IAAe,MAAM;AACzB,IAAAL,EAAWH,CAAa;AAAA,EAC1B;AAEA,SAAAS,EAAU,MAAMR,EAAiB,CAAC,GAAG,CAACJ,CAAK,CAAC,GAE5Ca,EAAoBX,GAAK,OAAO;AAAA,IAC9B,WAAW,CAAC,EAAE,OAAAY,QACRA,EAAM,QAAQ,aAChBL,EAAA,GACO,MAGLK,EAAM,QAAQ,eAChBJ,EAAA,GACO,MAGLI,EAAM,QAAQ,WAChBH,EAAA,GACO,MAGF;AAAA,EACT,EACA,GAGA,sBAAA,cAAC,OAAA,EAAI,WAAU,0DAAA,GACZX,EAAM,SACLA,EAAM,IAAI,CAACQ,GAAMD,MACf,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKA;AAAA,MACL,MAAK;AAAA,MACL,WAAWQ;AAAA,QACT;AAAA,QACA;AAAA,UACE,qCAAqCR,MAAUJ;AAAA,UAC/C,0BAA0BI,MAAUJ;AAAA,QAAA;AAAA,MACtC;AAAA,MAEF,SAAS,MAAMG,EAAWC,CAAK;AAAA,IAAA;AAAA,IAE9BC,EAAK;AAAA,EAAA,CAET,IAED,sBAAA,cAAC,SAAI,WAAU,OAAA,GAAO,WAAS,CAEnC;AAEJ;"}
1
+ {"version":3,"file":"VariableSuggestion.js","sources":["../../../../src/components/inputs/variables/VariableSuggestion.tsx"],"sourcesContent":["import type { VariableMentionNodeAttrs } from \"@/types\";\nimport type {\n SuggestionKeyDownProps,\n SuggestionProps,\n} from \"@tiptap/suggestion\";\nimport { useEffect, useImperativeHandle, useState } from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport interface VariableSuggestionProps\n extends SuggestionProps<VariableMentionNodeAttrs, VariableMentionNodeAttrs> {\n ref: React.RefObject<{\n onKeyDown: (props: SuggestionKeyDownProps) => boolean;\n }>;\n}\n\nexport function VariableSuggestion({\n items,\n command,\n ref,\n}: VariableSuggestionProps) {\n const [selectedIndex, setSelectedIndex] = useState(0);\n\n const selectItem = (index: number) => {\n const item = items[index];\n\n if (item) command(item);\n };\n\n const upHandler = () => {\n setSelectedIndex((selectedIndex + items.length - 1) % items.length);\n };\n\n const downHandler = () => {\n setSelectedIndex((selectedIndex + 1) % items.length);\n };\n\n const enterHandler = () => {\n selectItem(selectedIndex);\n };\n\n useEffect(() => setSelectedIndex(0), [items]);\n\n useImperativeHandle(ref, () => ({\n onKeyDown: ({ event }) => {\n if (event.key === \"ArrowUp\") {\n upHandler();\n return true;\n }\n\n if (event.key === \"ArrowDown\") {\n downHandler();\n return true;\n }\n\n if (event.key === \"Enter\") {\n enterHandler();\n return true;\n }\n\n return false;\n },\n }));\n\n return (\n <div className=\"flex flex-col overflow-clip rounded-md bg-elevation-100\">\n {items.length ? (\n items.map((item, index) => (\n <button\n key={index}\n type=\"button\"\n className={cn(\n \"cursor-pointer rounded-none border-none bg-transparent px-3 py-1 text-lg text-nowrap\",\n {\n \"bg-elevation-800 text-elevation-0\": index === selectedIndex,\n \"hover:bg-elevation-250\": index !== selectedIndex,\n },\n )}\n onClick={() => selectItem(index)}\n >\n {item.label}\n </button>\n ))\n ) : (\n <div className=\"item\">No result</div>\n )}\n </div>\n );\n}\n"],"names":["VariableSuggestion","items","command","ref","selectedIndex","setSelectedIndex","useState","selectItem","index","item","upHandler","downHandler","enterHandler","useEffect","useImperativeHandle","event","jsx","cn"],"mappings":";;;AAgBO,SAASA,EAAmB;AAAA,EACjC,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,KAAAC;AACF,GAA4B;AAC1B,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAAS,CAAC,GAE9CC,IAAa,CAACC,MAAkB;AACpC,UAAMC,IAAOR,EAAMO,CAAK;AAExB,IAAIC,OAAcA,CAAI;AAAA,EACxB,GAEMC,IAAY,MAAM;AACtB,IAAAL,GAAkBD,IAAgBH,EAAM,SAAS,KAAKA,EAAM,MAAM;AAAA,EACpE,GAEMU,IAAc,MAAM;AACxB,IAAAN,GAAkBD,IAAgB,KAAKH,EAAM,MAAM;AAAA,EACrD,GAEMW,IAAe,MAAM;AACzB,IAAAL,EAAWH,CAAa;AAAA,EAC1B;AAEA,SAAAS,EAAU,MAAMR,EAAiB,CAAC,GAAG,CAACJ,CAAK,CAAC,GAE5Ca,EAAoBX,GAAK,OAAO;AAAA,IAC9B,WAAW,CAAC,EAAE,OAAAY,QACRA,EAAM,QAAQ,aAChBL,EAAA,GACO,MAGLK,EAAM,QAAQ,eAChBJ,EAAA,GACO,MAGLI,EAAM,QAAQ,WAChBH,EAAA,GACO,MAGF;AAAA,EACT,EACA,GAGA,gBAAAI,EAAC,OAAA,EAAI,WAAU,2DACZ,UAAAf,EAAM,SACLA,EAAM,IAAI,CAACQ,GAAMD,MACf,gBAAAQ;AAAA,IAAC;AAAA,IAAA;AAAA,MAEC,MAAK;AAAA,MACL,WAAWC;AAAA,QACT;AAAA,QACA;AAAA,UACE,qCAAqCT,MAAUJ;AAAA,UAC/C,0BAA0BI,MAAUJ;AAAA,QAAA;AAAA,MACtC;AAAA,MAEF,SAAS,MAAMG,EAAWC,CAAK;AAAA,MAE9B,UAAAC,EAAK;AAAA,IAAA;AAAA,IAXDD;AAAA,EAAA,CAaR,IAED,gBAAAQ,EAAC,SAAI,WAAU,QAAO,uBAAS,GAEnC;AAEJ;"}
@@ -6,4 +6,4 @@ export interface DateVariableEditorProps {
6
6
  getValue: () => string;
7
7
  }>;
8
8
  }
9
- export declare function DateVariableEditor({ name, element, ref, }: DateVariableEditorProps): import("react").JSX.Element;
9
+ export declare function DateVariableEditor({ name, element, ref, }: DateVariableEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -6,4 +6,4 @@ export interface PluralVariableEditorProps {
6
6
  getValue: () => string;
7
7
  }>;
8
8
  }
9
- export declare function PluralVariableEditor({ variableName, element, ref, }: PluralVariableEditorProps): import("react").JSX.Element;
9
+ export declare function PluralVariableEditor({ variableName, element, ref, }: PluralVariableEditorProps): import("react/jsx-runtime").JSX.Element;