@pstdio/ui 0.45.0-nightly.20261021143541 → 0.45.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 (128) hide show
  1. package/dist/{EquationComponent-DDd5UoIP.js → EquationComponent-BtOgXA3g.js} +3 -5
  2. package/dist/{EquationComponent-DDd5UoIP.js.map → EquationComponent-BtOgXA3g.js.map} +1 -1
  3. package/dist/{MermaidComponent-vdQK_rlu.js → MermaidComponent--W7gDFCk.js} +4 -5
  4. package/dist/{MermaidComponent-vdQK_rlu.js.map → MermaidComponent--W7gDFCk.js.map} +1 -1
  5. package/dist/{activity-timeline-DOMBQZfl.js → activity-timeline-D-IDENMg.js} +2 -3
  6. package/dist/{activity-timeline-DOMBQZfl.js.map → activity-timeline-D-IDENMg.js.map} +1 -1
  7. package/dist/{apply-theme-preference-B0vCu8zY.d.ts → apply-theme-preference-Wdm8bz5f.d.ts} +0 -2
  8. package/dist/{browser-storage-C_ipoNwP.js → browser-storage-CIj_9R9x.js} +2 -3
  9. package/dist/{browser-storage-C_ipoNwP.js.map → browser-storage-CIj_9R9x.js.map} +1 -1
  10. package/dist/chat-ui.d.ts +12 -50
  11. package/dist/chat-ui.js +51 -111
  12. package/dist/chat-ui.js.map +1 -1
  13. package/dist/{collection-view-fields-tMtZmuhS.d.ts → collection-view-fields-CBlYAPxD.d.ts} +1 -9
  14. package/dist/{collection-view-grouping-BQMfKdQG.js → collection-view-grouping-BHuFPVAV.js} +3 -4
  15. package/dist/{collection-view-grouping-BQMfKdQG.js.map → collection-view-grouping-BHuFPVAV.js.map} +1 -1
  16. package/dist/{collection-view-search-DS9U9WAl.js → collection-view-search-CLvyY0cg.js} +21 -35
  17. package/dist/{collection-view-search-DS9U9WAl.js.map → collection-view-search-CLvyY0cg.js.map} +1 -1
  18. package/dist/collection-view.d.ts +1 -15
  19. package/dist/collection-view.js +3 -4
  20. package/dist/collection-view.js.map +1 -1
  21. package/dist/{data-table-stat-chart-content-waJAm_nt.js → data-table-stat-chart-content-CJVgiHlL.js} +2 -3
  22. package/dist/{data-table-stat-chart-content-waJAm_nt.js.map → data-table-stat-chart-content-CJVgiHlL.js.map} +1 -1
  23. package/dist/data-table.d.ts +2 -14
  24. package/dist/data-table.js +16 -22
  25. package/dist/data-table.js.map +1 -1
  26. package/dist/{diff-bubble-DewUd_2w.js → diff-bubble-DietCcSc.js} +2 -3
  27. package/dist/{diff-bubble-DewUd_2w.js.map → diff-bubble-DietCcSc.js.map} +1 -1
  28. package/dist/{diff-drawer-ByJsQg8F.js → diff-drawer-COlghuX8.js} +11 -25
  29. package/dist/{diff-drawer-ByJsQg8F.js.map → diff-drawer-COlghuX8.js.map} +1 -1
  30. package/dist/{diff-editor-CGpeyoCE.js → diff-editor-BMBk4KXR.js} +3 -4
  31. package/dist/{diff-editor-CGpeyoCE.js.map → diff-editor-BMBk4KXR.js.map} +1 -1
  32. package/dist/{diff-size-Dydn_Uw5.js → diff-size-BR8D-bcL.js} +2 -3
  33. package/dist/{diff-size-Dydn_Uw5.js.map → diff-size-BR8D-bcL.js.map} +1 -1
  34. package/dist/{diff-viewer-ChEyTNpa.js → diff-viewer-nCYtig03.js} +10 -15
  35. package/dist/{diff-viewer-ChEyTNpa.js.map → diff-viewer-nCYtig03.js.map} +1 -1
  36. package/dist/diff.d.ts +0 -22
  37. package/dist/diff.js +8 -9
  38. package/dist/{display-sort-control-BUMkmlIu.js → display-sort-control-DXXkOgUC.js} +6 -7
  39. package/dist/{display-sort-control-BUMkmlIu.js.map → display-sort-control-DXXkOgUC.js.map} +1 -1
  40. package/dist/{drop-indicator-HjlBSIeV.js → drop-indicator-66rhST1K.js} +2 -3
  41. package/dist/{drop-indicator-HjlBSIeV.js.map → drop-indicator-66rhST1K.js.map} +1 -1
  42. package/dist/{edit-mode-data-table-CzCMSUqv.js → edit-mode-data-table-lvGsQ1Da.js} +17 -27
  43. package/dist/{edit-mode-data-table-CzCMSUqv.js.map → edit-mode-data-table-lvGsQ1Da.js.map} +1 -1
  44. package/dist/{empty-state-3mVV_pV-.js → empty-state-J96iLli9.js} +2 -3
  45. package/dist/{empty-state-3mVV_pV-.js.map → empty-state-J96iLli9.js.map} +1 -1
  46. package/dist/{file-change-badge-0QFNv82B.js → file-change-badge-5_T5hnWQ.js} +2 -3
  47. package/dist/{file-change-badge-0QFNv82B.js.map → file-change-badge-5_T5hnWQ.js.map} +1 -1
  48. package/dist/{host-storage-28AkEy1N.js → host-storage-CtscVB4w.js} +3 -4
  49. package/dist/{host-storage-28AkEy1N.js.map → host-storage-CtscVB4w.js.map} +1 -1
  50. package/dist/{host-storage-J0089Hyk.d.ts → host-storage-SnBKPpbc.d.ts} +0 -2
  51. package/dist/{icon-options-DpzDAnlu.js → icon-options-DJmsp8bw.js} +2 -4
  52. package/dist/{icon-options-DpzDAnlu.js.map → icon-options-DJmsp8bw.js.map} +1 -1
  53. package/dist/{index-3H4B61XK.d.ts → index-B0bZ__Yf.d.ts} +1 -5
  54. package/dist/{index-CbtbcvKm.d.ts → index-CYiWcIGu.d.ts} +1 -19
  55. package/dist/{index-C0PaeiBy.d.ts → index-DYCXgPCg.d.ts} +2 -34
  56. package/dist/{index-C_ctB_DT.d.ts → index-DzVOXj8n.d.ts} +1 -37
  57. package/dist/index.d.ts +24 -174
  58. package/dist/index.js +39 -113
  59. package/dist/index.js.map +1 -1
  60. package/dist/kanban-renderer.d.ts +2 -2
  61. package/dist/kanban-renderer.js +24 -44
  62. package/dist/kanban-renderer.js.map +1 -1
  63. package/dist/{list-row-BDDAVuVd.js → list-row-Dqb5Xfjf.js} +12 -39
  64. package/dist/{list-row-BDDAVuVd.js.map → list-row-Dqb5Xfjf.js.map} +1 -1
  65. package/dist/{markdown-editor-zGkAdDzD.js → markdown-editor-D419iTD2.js} +65 -159
  66. package/dist/markdown-editor-D419iTD2.js.map +1 -0
  67. package/dist/{mermaid-renderer-BtW_13Sz.js → mermaid-renderer-B8LpF3rD.js} +6 -12
  68. package/dist/{mermaid-renderer-BtW_13Sz.js.map → mermaid-renderer-B8LpF3rD.js.map} +1 -1
  69. package/dist/mermaid.d.ts +0 -2
  70. package/dist/mermaid.js +1 -2
  71. package/dist/{monaco-browser-CLRPSE4-.js → monaco-browser-BBIyiPtL.js} +2 -3
  72. package/dist/{monaco-browser-CLRPSE4-.js.map → monaco-browser-BBIyiPtL.js.map} +1 -1
  73. package/dist/{number-input-QDqWYzTR.js → number-input-DzRvKj64.js} +3 -4
  74. package/dist/{number-input-QDqWYzTR.js.map → number-input-DzRvKj64.js.map} +1 -1
  75. package/dist/{param-editor-DGkeaE-L.js → param-editor-DyIO1rSf.js} +8 -14
  76. package/dist/{param-editor-DGkeaE-L.js.map → param-editor-DyIO1rSf.js.map} +1 -1
  77. package/dist/{param-editor-field-Dwm94sf2.js → param-editor-field-Bt7NP9OH.js} +15 -27
  78. package/dist/{param-editor-field-Dwm94sf2.js.map → param-editor-field-Bt7NP9OH.js.map} +1 -1
  79. package/dist/param-editor.d.ts +0 -66
  80. package/dist/param-editor.js +3 -3
  81. package/dist/{prism-BeBL3a5W.js → prism-CQBZiF5P.js} +3 -4
  82. package/dist/{prism-BeBL3a5W.js.map → prism-CQBZiF5P.js.map} +1 -1
  83. package/dist/{queued-follow-up-Bj_vtMgd.js → queued-follow-up-Bl8TC36-.js} +2 -3
  84. package/dist/{queued-follow-up-Bj_vtMgd.js.map → queued-follow-up-Bl8TC36-.js.map} +1 -1
  85. package/dist/{radio-CiFrDN6O.js → radio-BPnviQ4h.js} +2 -3
  86. package/dist/{radio-CiFrDN6O.js.map → radio-BPnviQ4h.js.map} +1 -1
  87. package/dist/{resolve-icon-component-Dy0pOuj5.js → resolve-icon-component-BrIOFsnC.js} +3 -4
  88. package/dist/{resolve-icon-component-Dy0pOuj5.js.map → resolve-icon-component-BrIOFsnC.js.map} +1 -1
  89. package/dist/{resource-badge-DGwekS-G.d.ts → resource-badge-C73K0Vg9.d.ts} +0 -4
  90. package/dist/{rich-text-DgUaZYHr.js → rich-text-DBpBdWtn.js} +31 -61
  91. package/dist/{rich-text-DgUaZYHr.js.map → rich-text-DBpBdWtn.js.map} +1 -1
  92. package/dist/rich-text.d.ts +1 -1
  93. package/dist/rich-text.js +3 -3
  94. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  95. package/dist/{scroll-area-IeoRS73V.js → scroll-area-BfAlvhjh.js} +3 -5
  96. package/dist/{scroll-area-IeoRS73V.js.map → scroll-area-BfAlvhjh.js.map} +1 -1
  97. package/dist/split-panel-motion-context-B8QvAyTv.js +6 -0
  98. package/dist/{split-panel-motion-context-YB0sduVv.js.map → split-panel-motion-context-B8QvAyTv.js.map} +1 -1
  99. package/dist/terminal.d.ts +1 -11
  100. package/dist/terminal.js +7 -15
  101. package/dist/terminal.js.map +1 -1
  102. package/dist/{theme-kKuLN2jb.js → theme-BMHkV5Ry.js} +2 -3
  103. package/dist/{theme-kKuLN2jb.js.map → theme-BMHkV5Ry.js.map} +1 -1
  104. package/dist/{theme-preference-BV4cbJNB.js → theme-preference-Bdi0s7vE.js} +10 -19
  105. package/dist/{theme-preference-BV4cbJNB.js.map → theme-preference-Bdi0s7vE.js.map} +1 -1
  106. package/dist/{theme-DxwT31KJ.js → theme-rmCwx-aG.js} +5 -5
  107. package/dist/theme-rmCwx-aG.js.map +1 -0
  108. package/dist/theme.d.ts +1 -1
  109. package/dist/theme.js +2 -2
  110. package/dist/{tree-list-aNC_UTGS.js → tree-list-Bg8U7ZYc.js} +31 -65
  111. package/dist/{tree-list-aNC_UTGS.js.map → tree-list-Bg8U7ZYc.js.map} +1 -1
  112. package/dist/{use-virtualizer-CqDYJolY.js → use-virtualizer-B6ABIiNI.js} +2 -3
  113. package/dist/{use-virtualizer-CqDYJolY.js.map → use-virtualizer-B6ABIiNI.js.map} +1 -1
  114. package/dist/{workspace-badge-BMjS8ii4.d.ts → workspace-badge-DI6ZpW9Z.d.ts} +0 -6
  115. package/dist/{workspace-badge-DqQKSUJw.js → workspace-badge-Dqi-Sh_Q.js} +3 -4
  116. package/dist/{workspace-badge-DqQKSUJw.js.map → workspace-badge-Dqi-Sh_Q.js.map} +1 -1
  117. package/dist-monaco/assets/{css.worker-DFdt6_zu.js → css.worker-D55UB6Ki.js} +7 -7
  118. package/dist-monaco/assets/editor.worker-C3R1XRkp.js +26 -0
  119. package/dist-monaco/assets/{html.worker-JUzsMP-j.js → html.worker-CFLR1M2C.js} +7 -7
  120. package/dist-monaco/assets/json.worker-DJ19GkSR.js +58 -0
  121. package/dist-monaco/assets/{ts.worker-CmEKzkmF.js → ts.worker-DJNYEI7I.js} +32 -32
  122. package/dist-monaco/monaco.js +188 -188
  123. package/package.json +2 -2
  124. package/dist/markdown-editor-zGkAdDzD.js.map +0 -1
  125. package/dist/split-panel-motion-context-YB0sduVv.js +0 -7
  126. package/dist/theme-DxwT31KJ.js.map +0 -1
  127. package/dist-monaco/assets/editor.worker-O-CH8JUO.js +0 -26
  128. package/dist-monaco/assets/json.worker-B4dEhy0e.js +0 -58
@@ -4,7 +4,7 @@ import { Component as i, useEffect as a, useRef as o, useState as s } from "reac
4
4
  import c from "katex";
5
5
  import { useLexicalComposerContext as l } from "@lexical/react/LexicalComposerContext";
6
6
  import "katex/dist/katex.css";
7
- //#region src/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.tsx
7
+ // src/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.tsx
8
8
  function u(i) {
9
9
  let s = e(5), { equation: l, inline: u } = i, d = o(null), f, p;
10
10
  s[0] !== l || s[1] !== u ? (f = () => {
@@ -31,8 +31,7 @@ function u(i) {
31
31
  })
32
32
  ] }), s[4] = m) : m = s[4], m;
33
33
  }
34
- //#endregion
35
- //#region src/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.tsx
34
+ // src/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.tsx
36
35
  var d = class extends i {
37
36
  state = { hasError: !1 };
38
37
  static getDerivedStateFromError() {
@@ -59,7 +58,6 @@ function f(t) {
59
58
  children: p
60
59
  }), r[5] = f, r[6] = p, r[7] = m) : m = r[7], m;
61
60
  }
62
- //#endregion
63
61
  export { f as default };
64
62
 
65
- //# sourceMappingURL=EquationComponent-DDd5UoIP.js.map
63
+ //# sourceMappingURL=EquationComponent-BtOgXA3g.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EquationComponent-DDd5UoIP.js","names":["katex","useEffect","useRef","KatexRenderer","t0","$","_c","equation","inline","katexElementRef","t1","t2","katexElement","current","render","displayMode","errorColor","output","strict","throwOnError","trust","t3","Symbol","for","_c","_Fragment","useLexicalComposerContext","ReactNode","Component","useState","KatexRenderer","EquationComponentProps","equation","inline","EditorErrorBoundaryProps","children","onError","error","Error","EditorErrorBoundaryState","hasError","EditorErrorBoundary","state","getDerivedStateFromError","componentDidCatch","props","render","EquationComponent","t0","$","_c","editor","equationValue","t1","e","_onError","t2","t3","_c","katex","KatexRenderer","$","c","t0","katexElementRef","useRef","t1","t2","equation","inline","katexElement","useEffect","t3","Fragment","EditorErrorBoundary","Component","error","EquationComponent","editor","useLexicalComposerContext","equationValue","useState"],"sources":["../src/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.tsx","../src/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.tsx"],"sourcesContent":["import \"katex/dist/katex.css\";\n\nimport katex from \"katex\";\nimport { useEffect, useRef } from \"react\";\n\nexport default function KatexRenderer({\n equation,\n inline,\n}: Readonly<{\n equation: string;\n inline: boolean;\n}>) {\n const katexElementRef = useRef(null);\n\n useEffect(() => {\n const katexElement = katexElementRef.current;\n\n if (katexElement !== null) {\n katex.render(equation, katexElement, {\n displayMode: !inline, // true === block display //\n errorColor: \"#cc0000\",\n output: \"html\",\n strict: \"warn\",\n throwOnError: false,\n trust: false,\n });\n }\n }, [equation, inline]);\n\n return (\n // We use an empty image tag either side to ensure Android doesn't try and compose from the\n // inner text from Katex. There didn't seem to be any other way of making this work,\n // without having a physical space.\n <>\n <img src=\"#\" alt=\"\" />\n <span ref={katexElementRef} />\n <img src=\"#\" alt=\"\" />\n </>\n );\n}\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport type { ReactNode } from \"react\";\nimport { Component, useState } from \"react\";\n\nimport KatexRenderer from \"./KatexRenderer\";\n\ntype EquationComponentProps = {\n equation: string;\n inline: boolean;\n};\n\ninterface EditorErrorBoundaryProps {\n children: ReactNode;\n onError: (error: Error) => void;\n}\n\ninterface EditorErrorBoundaryState {\n hasError: boolean;\n}\n\nclass EditorErrorBoundary extends Component<EditorErrorBoundaryProps, EditorErrorBoundaryState> {\n state = { hasError: false };\n\n static getDerivedStateFromError() {\n return { hasError: true };\n }\n\n componentDidCatch(error: Error) {\n this.props.onError(error);\n }\n\n render() {\n if (this.state.hasError) return null;\n return this.props.children;\n }\n}\n\nexport default function EquationComponent({ equation, inline }: EquationComponentProps) {\n const [editor] = useLexicalComposerContext();\n const [equationValue, _setEquationValue] = useState(equation);\n return (\n <EditorErrorBoundary onError={(e) => editor._onError(e)}>\n <KatexRenderer equation={equationValue} inline={inline} />\n </EditorErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;AAKA,SAAeG,EAAAC,GAAA;CAAA,IAAAC,IAAAC,EAAA,CAAA,GAAuB,EAAAC,aAAAC,cAAAJ,GAOpCK,IAAwBP,EAAO,IAAI,GAAEQ,GAAAC;CAErCV,AAFqCI,EAAA,OAAAE,KAAAF,EAAA,OAAAG,KAE3BE,UAAA;EACR,IAAAE,IAAqBH,EAAeI;EAEpC,AAAID,MAAiB,QACnBZ,EAAKc,OAAQP,GAAUK,GAAc;GAAAG,aACtB,CAACP;GAAMQ,YACR;GAASC,QACb;GAAMC,QACN;GAAMC,cACA;GAAKC,OACZ;EACT,CAAC;CACF,GACAT,IAAA,CAACJ,GAAUC,CAAM,GAACH,EAAA,KAAAE,GAAAF,EAAA,KAAAG,GAAAH,EAAA,KAAAK,GAAAL,EAAA,KAAAM,MAAAD,IAAAL,EAAA,I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EAAA,OAAAO,KAD5DC,IAAA,kBAACiB,GAAD;EAA8B,SAAArB;EAC5BG,UAAAA;CADkB,CAAA,GAEEP,EAAA,KAAAI,GAAAJ,EAAA,KAAAO,GAAAP,EAAA,KAAAQ,KAAAA,IAAAR,EAAA,IAFtBQ;AAEsB"}
1
+ {"version":3,"file":"EquationComponent-BtOgXA3g.js","names":["katex","useEffect","useRef","KatexRenderer","t0","$","_c","equation","inline","katexElementRef","t1","t2","katexElement","current","render","displayMode","errorColor","output","strict","throwOnError","trust","t3","Symbol","for","_c","_Fragment","useLexicalComposerContext","ReactNode","Component","useState","KatexRenderer","EquationComponentProps","equation","inline","EditorErrorBoundaryProps","children","onError","error","Error","EditorErrorBoundaryState","hasError","EditorErrorBoundary","state","getDerivedStateFromError","componentDidCatch","props","render","EquationComponent","t0","$","_c","editor","equationValue","t1","e","_onError","t2","t3","_c","katex","KatexRenderer","$","c","t0","katexElementRef","useRef","t1","t2","equation","inline","katexElement","useEffect","t3","Fragment","EditorErrorBoundary","Component","error","EquationComponent","editor","useLexicalComposerContext","equationValue","useState"],"sources":["../src/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.tsx","../src/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.tsx"],"sourcesContent":["import \"katex/dist/katex.css\";\n\nimport katex from \"katex\";\nimport { useEffect, useRef } from \"react\";\n\nexport default function KatexRenderer({\n equation,\n inline,\n}: Readonly<{\n equation: string;\n inline: boolean;\n}>) {\n const katexElementRef = useRef(null);\n\n useEffect(() => {\n const katexElement = katexElementRef.current;\n\n if (katexElement !== null) {\n katex.render(equation, katexElement, {\n displayMode: !inline, // true === block display //\n errorColor: \"#cc0000\",\n output: \"html\",\n strict: \"warn\",\n throwOnError: false,\n trust: false,\n });\n }\n }, [equation, inline]);\n\n return (\n // We use an empty image tag either side to ensure Android doesn't try and compose from the\n // inner text from Katex. There didn't seem to be any other way of making this work,\n // without having a physical space.\n <>\n <img src=\"#\" alt=\"\" />\n <span ref={katexElementRef} />\n <img src=\"#\" alt=\"\" />\n </>\n );\n}\n","import { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport type { ReactNode } from \"react\";\nimport { Component, useState } from \"react\";\n\nimport KatexRenderer from \"./KatexRenderer\";\n\ntype EquationComponentProps = {\n equation: string;\n inline: boolean;\n};\n\ninterface EditorErrorBoundaryProps {\n children: ReactNode;\n onError: (error: Error) => void;\n}\n\ninterface EditorErrorBoundaryState {\n hasError: boolean;\n}\n\nclass EditorErrorBoundary extends Component<EditorErrorBoundaryProps, EditorErrorBoundaryState> {\n state = { hasError: false };\n\n static getDerivedStateFromError() {\n return { hasError: true };\n }\n\n componentDidCatch(error: Error) {\n this.props.onError(error);\n }\n\n render() {\n if (this.state.hasError) return null;\n return this.props.children;\n }\n}\n\nexport default function EquationComponent({ equation, inline }: EquationComponentProps) {\n const [editor] = useLexicalComposerContext();\n const [equationValue, _setEquationValue] = useState(equation);\n return (\n <EditorErrorBoundary onError={(e) => editor._onError(e)}>\n <KatexRenderer equation={equationValue} inline={inline} />\n </EditorErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;AAKA,SAAeG,EAAAC,GAAA;CAAA,IAAAC,IAAAC,EAAA,CAAA,GAAuB,EAAAC,aAAAC,cAAAJ,GAOpCK,IAAwBP,EAAO,IAAI,GAAEQ,GAAAC;CAErCV,AAFqCI,EAAA,OAAAE,KAAAF,EAAA,OAAAG,KAE3BE,UAAA;EACR,IAAAE,IAAqBH,EAAeI;EAEpC,AAAID,MAAiB,QACnBZ,EAAKc,OAAQP,GAAUK,GAAc;GAAAG,aACtB,CAACP;GAAMQ,YACR;GAASC,QACb;GAAMC,QACN;GAAMC,cACA;GAAKC,OACZ;EACT,CAAC;CACF,GACAT,IAAA,CAACJ,GAAUC,CAAM,GAACH,EAAA,KAAAE,GAAAF,EAAA,KAAAG,GAAAH,EAAA,KAAAK,GAAAL,EAAA,KAAAM,MAAAD,IAAAL,EAAA,IAAAM,IAAAN,EAAA,KAbr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A,kBAACiB,GAAD;EAA8B,SAAArB;EAC5BG,UAAAA;CADkB,CAAA,GAEEP,EAAA,KAAAI,GAAAJ,EAAA,KAAAO,GAAAP,EAAA,KAAAQ,KAAAA,IAAAR,EAAA,IAFtBQ;AAEsB"}
@@ -1,5 +1,5 @@
1
- import { g as e } from "./markdown-editor-zGkAdDzD.js";
2
- import { t } from "./mermaid-renderer-BtW_13Sz.js";
1
+ import { g as e } from "./markdown-editor-D419iTD2.js";
2
+ import { t } from "./mermaid-renderer-B8LpF3rD.js";
3
3
  import { Box as n, Button as r, Flex as i, Textarea as a } from "@chakra-ui/react";
4
4
  import { c as o } from "react/compiler-runtime";
5
5
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
@@ -7,7 +7,7 @@ import { useEffect as l, useState as u } from "react";
7
7
  import { $getNodeByKey as d } from "lexical";
8
8
  import { useLexicalComposerContext as f } from "@lexical/react/LexicalComposerContext";
9
9
  import { useLexicalEditable as p } from "@lexical/react/useLexicalEditable";
10
- //#region src/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.tsx
10
+ // src/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.tsx
11
11
  function m(m) {
12
12
  let h = o(28), { code: g, nodeKey: _ } = m, [v] = f(), y = p(), [b, x] = u(!1), [S, C] = u(g), [w, T] = u(g), E, D;
13
13
  h[0] === g ? (E = h[1], D = h[2]) : (E = () => {
@@ -84,7 +84,6 @@ function m(m) {
84
84
  children: [P, I]
85
85
  }), h[25] = P, h[26] = I, h[27] = L) : L = h[27], L;
86
86
  }
87
- //#endregion
88
87
  export { m as default };
89
88
 
90
- //# sourceMappingURL=MermaidComponent-vdQK_rlu.js.map
89
+ //# sourceMappingURL=MermaidComponent--W7gDFCk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MermaidComponent-vdQK_rlu.js","names":["Box","Button","Flex","Textarea","useLexicalComposerContext","useLexicalEditable","$getNodeByKey","useEffect","useState","MermaidRenderer","$isMermaidNode","MermaidComponentProps","code","nodeKey","MermaidComponent","props","$","_c","editor","isEditable","isEditing","setIsEditing","draftCode","setDraftCode","previewCode","setPreviewCode","t0","t1","t2","update","node","setCode","commitCodeChanges","t3","cancelEditing","t4","undefined","t5","t6","t7","Symbol","for","event","target","value","t8","t9","_c","$isMermaidNode","MermaidComponent","$","c","props","editor","useLexicalComposerContext","isEditable","useLexicalEditable","isEditing","setIsEditing","useState","draftCode","setDraftCode","code","previewCode","setPreviewCode","t0","t1","useEffect","t2","nodeKey","node","$getNodeByKey","commitCodeChanges","t3","cancelEditing","t4","t5","MermaidRenderer","Button","t6","Flex","t7","event","t8","Box","Textarea","t9"],"sources":["../src/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.tsx"],"sourcesContent":["import { Box, Button, Flex, Textarea } from \"@chakra-ui/react\";\nimport { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { useLexicalEditable } from \"@lexical/react/useLexicalEditable\";\nimport { $getNodeByKey } from \"lexical\";\nimport { useEffect, useState } from \"react\";\nimport { MermaidRenderer } from \"@/components/mermaid-renderer\";\nimport { $isMermaidNode } from \"./MermaidNode\";\n\ninterface MermaidComponentProps {\n code: string;\n nodeKey: string;\n}\n\nexport default function MermaidComponent(props: MermaidComponentProps) {\n const { code, nodeKey } = props;\n const [editor] = useLexicalComposerContext();\n const isEditable = useLexicalEditable();\n const [isEditing, setIsEditing] = useState(false);\n const [draftCode, setDraftCode] = useState(code);\n const [previewCode, setPreviewCode] = useState(code);\n\n useEffect(() => {\n setDraftCode(code);\n setPreviewCode(code);\n }, [code]);\n\n const commitCodeChanges = () => {\n editor.update(() => {\n const node = $getNodeByKey(nodeKey);\n if ($isMermaidNode(node)) {\n node.setCode(draftCode);\n }\n });\n\n setPreviewCode(draftCode);\n setIsEditing(false);\n };\n\n const cancelEditing = () => {\n setDraftCode(previewCode);\n setIsEditing(false);\n };\n\n if (!isEditing) {\n return (\n <MermaidRenderer\n key={previewCode}\n code={previewCode}\n isEditable={isEditable}\n onRequestEdit={isEditable ? () => setIsEditing(true) : undefined}\n />\n );\n }\n\n return (\n <Box borderWidth=\"1px\" borderColor=\"border.subtle\" borderRadius=\"md\" overflow=\"hidden\" width=\"100%\">\n <Flex justifyContent=\"flex-end\" alignItems=\"center\" gap=\"xs\" paddingX=\"sm\" paddingY=\"xs\" bg=\"bg.muted\">\n <Button size=\"xs\" variant=\"subtle\" onClick={cancelEditing}>\n Cancel\n </Button>\n <Button size=\"xs\" onClick={commitCodeChanges}>\n Preview\n </Button>\n </Flex>\n <Box padding=\"sm\" bg=\"bg.muted\">\n <Textarea\n value={draftCode}\n onChange={(event) => setDraftCode(event.target.value)}\n minHeight=\"180px\"\n resize=\"vertical\"\n fontFamily=\"mono\"\n fontSize=\"sm\"\n spellCheck={false}\n />\n </Box>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;AAaA,SAAec,EAAAC,GAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,GACb,EAAAL,SAAAC,eAA0BE,GAC1B,CAAAG,KAAiBd,EAA0B,GAC3Ce,IAAmBd,EAAmB,GACtC,CAAAe,GAAAC,KAAkCb,EAAS,EAAK,GAChD,CAAAc,GAAAC,KAAkCf,EAASI,CAAI,GAC/C,CAAAY,GAAAC,KAAsCjB,EAASI,CAAI,GAAEc,GAAAC;CAErDpB,AAFqDS,EAAA,OAAAJ,KAK5Cc,IAAAV,EAAA,IAAAW,IAAAX,EAAA,OAHCU,UAAA;EAERD,AADAF,EAAaX,CAAI,GACjBa,EAAeb,CAAI;CAAC,GACnBe,IAAA,CAACf,CAAI,GAACI,EAAA,KAAAJ,GAAAI,EAAA,KAAAU,GAAAV,EAAA,KAAAW,IAHTpB,EAAUmB,GAGPC,CAAM;CAAC,IAAAC;CAAA,AAAAZ,EAAA,OAAAM,KAAAN,EAAA,OAAAE,KAAAF,EAAA,OAAAH,KAEgBe,UAAA;EASxBP,AARAH,EAAMW,aAAQ;GACZ,IAAAC,IAAaxB,EAAcO,CAAO;GACl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UAAA;CAAvC,CAAA,GAEEhB,EAAA,MAAAgB,GAAAhB,EAAA,MAAAqB;CAAA,IAAAC;CAAA,AAAAtB,EAAA,QAAAmB,KAAAnB,EAAA,QAAAqB,KANXC,IAAA,kBAAC0C,GAAD;EAAqB,gBAAA;EAAsB,YAAA;EAAa,KAAA;EAAc,UAAA;EAAc,UAAA;EAAQ,IAAA;EAA5F,UAAA,CACE7C,GAGAE,CAJG;KAOErB,EAAA,MAAAmB,GAAAnB,EAAA,MAAAqB,GAAArB,EAAA,MAAAsB,KAAAA,IAAAtB,EAAA;CAAA,IAAAuB;CAAA,AAAAvB,EAAA,QAAAwB,OAAAC,IAAA,2BAAA,KAIOF,KAAAG,MAAWnB,EAAamB,EAAKC,OAAOC,KAAM,GAAC5B,EAAA,MAAAuB,KAAAA,IAAAvB,EAAA;CAAA,IAAA6B;CAAA,AAAA7B,EAAA,QAAAM,IAOnDuB,IAAA7B,EAAA,OAVN6B,IAAA,kBAACuC,GAAD;EAAa,SAAA;EAAQ,IAAA;EACnB,UAAA,kBAACC,GAAD;GACS/D,OAAAA;GACG,UAAAiB;GACA,WAAA;GACH,QAAA;GACI,YAAA;GACF,UAAA;GACG,YAAA;EAAK,CAAA;CARjB,CAAA,GAUEvB,EAAA,MAAAM,GAAAN,EAAA,MAAA6B;CAAA,IAAAC;CACF,OADE9B,EAAA,QAAAsB,KAAAtB,EAAA,QAAA6B,KAnBRC,IAAA,kBAACsC,GAAD;EAAiB,aAAA;EAAkB,aAAA;EAA6B,cAAA;EAAc,UAAA;EAAe,OAAA;EAA7F,UAAA,CACE9C,GAQAO,CATE;KAoBE7B,EAAA,MAAAsB,GAAAtB,EAAA,MAAA6B,GAAA7B,EAAA,MAAA8B,KAAAA,IAAA9B,EAAA,KApBN8B;AAoBM"}
1
+ {"version":3,"file":"MermaidComponent--W7gDFCk.js","names":["Box","Button","Flex","Textarea","useLexicalComposerContext","useLexicalEditable","$getNodeByKey","useEffect","useState","MermaidRenderer","$isMermaidNode","MermaidComponentProps","code","nodeKey","MermaidComponent","props","$","_c","editor","isEditable","isEditing","setIsEditing","draftCode","setDraftCode","previewCode","setPreviewCode","t0","t1","t2","update","node","setCode","commitCodeChanges","t3","cancelEditing","t4","undefined","t5","t6","t7","Symbol","for","event","target","value","t8","t9","_c","$isMermaidNode","MermaidComponent","$","c","props","editor","useLexicalComposerContext","isEditable","useLexicalEditable","isEditing","setIsEditing","useState","draftCode","setDraftCode","code","previewCode","setPreviewCode","t0","t1","useEffect","t2","nodeKey","node","$getNodeByKey","commitCodeChanges","t3","cancelEditing","t4","t5","MermaidRenderer","Button","t6","Flex","t7","event","t8","Box","Textarea","t9"],"sources":["../src/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.tsx"],"sourcesContent":["import { Box, Button, Flex, Textarea } from \"@chakra-ui/react\";\nimport { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { useLexicalEditable } from \"@lexical/react/useLexicalEditable\";\nimport { $getNodeByKey } from \"lexical\";\nimport { useEffect, useState } from \"react\";\nimport { MermaidRenderer } from \"@/components/mermaid-renderer\";\nimport { $isMermaidNode } from \"./MermaidNode\";\n\ninterface MermaidComponentProps {\n code: string;\n nodeKey: string;\n}\n\nexport default function MermaidComponent(props: MermaidComponentProps) {\n const { code, nodeKey } = props;\n const [editor] = useLexicalComposerContext();\n const isEditable = useLexicalEditable();\n const [isEditing, setIsEditing] = useState(false);\n const [draftCode, setDraftCode] = useState(code);\n const [previewCode, setPreviewCode] = useState(code);\n\n useEffect(() => {\n setDraftCode(code);\n setPreviewCode(code);\n }, [code]);\n\n const commitCodeChanges = () => {\n editor.update(() => {\n const node = $getNodeByKey(nodeKey);\n if ($isMermaidNode(node)) {\n node.setCode(draftCode);\n }\n });\n\n setPreviewCode(draftCode);\n setIsEditing(false);\n };\n\n const cancelEditing = () => {\n setDraftCode(previewCode);\n setIsEditing(false);\n };\n\n if (!isEditing) {\n return (\n <MermaidRenderer\n key={previewCode}\n code={previewCode}\n isEditable={isEditable}\n onRequestEdit={isEditable ? () => setIsEditing(true) : undefined}\n />\n );\n }\n\n return (\n <Box borderWidth=\"1px\" borderColor=\"border.subtle\" borderRadius=\"md\" overflow=\"hidden\" width=\"100%\">\n <Flex justifyContent=\"flex-end\" alignItems=\"center\" gap=\"xs\" paddingX=\"sm\" paddingY=\"xs\" bg=\"bg.muted\">\n <Button size=\"xs\" variant=\"subtle\" onClick={cancelEditing}>\n Cancel\n </Button>\n <Button size=\"xs\" onClick={commitCodeChanges}>\n Preview\n </Button>\n </Flex>\n <Box padding=\"sm\" bg=\"bg.muted\">\n <Textarea\n value={draftCode}\n onChange={(event) => setDraftCode(event.target.value)}\n minHeight=\"180px\"\n resize=\"vertical\"\n fontFamily=\"mono\"\n fontSize=\"sm\"\n spellCheck={false}\n />\n </Box>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;AAaA,SAAec,EAAAC,GAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,GACb,EAAAL,SAAAC,eAA0BE,GAC1B,CAAAG,KAAiBd,EAA0B,GAC3Ce,IAAmBd,EAAmB,GACtC,CAAAe,GAAAC,KAAkCb,EAAS,EAAK,GAChD,CAAAc,GAAAC,KAAkCf,EAASI,CAAI,GAC/C,CAAAY,GAAAC,KAAsCjB,EAASI,CAAI,GAAEc,GAAAC;CAErDpB,AAFqDS,EAAA,OAAAJ,KAK5Cc,IAAAV,EAAA,IAAAW,IAAAX,EAAA,OAHCU,UAAA;EAERD,AADAF,EAAaX,CAAI,GACjBa,EAAeb,CAAI;CAAC,GACnBe,IAAA,CAACf,CAAI,GAACI,EAAA,KAAAJ,GAAAI,EAAA,KAAAU,GAAAV,EAAA,KAAAW,IAHTpB,EAAUmB,GAGPC,CAAM;CAAC,IAAAC;CAAA,AAAAZ,EAAA,OAAAM,KAAAN,EAAA,OAAAE,KAAAF,EAAA,OAAAH,KAEgBe,UAAA;EASxBP,AARAH,EAAMW,aAAQ;GACZ,IAAAC,IAAaxB,EAAcO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AA;EAAmB,UAAA;CAAvC,CAAA,GAEEhB,EAAA,MAAAgB,GAAAhB,EAAA,MAAAqB;CAAA,IAAAC;CAAA,AAAAtB,EAAA,QAAAmB,KAAAnB,EAAA,QAAAqB,KANXC,IAAA,kBAAC0C,GAAD;EAAqB,gBAAA;EAAsB,YAAA;EAAa,KAAA;EAAc,UAAA;EAAc,UAAA;EAAQ,IAAA;EAA5F,UAAA,CACE7C,GAGAE,CAJG;C,IAOErB,EAAA,MAAAmB,GAAAnB,EAAA,MAAAqB,GAAArB,EAAA,MAAAsB,KAAAA,IAAAtB,EAAA;CAAA,IAAAuB;CAAA,AAAAvB,EAAA,QAAAwB,OAAAC,IAAA,2BAAA,KAIOF,KAAAG,MAAWnB,EAAamB,EAAKC,OAAOC,KAAM,GAAC5B,EAAA,MAAAuB,KAAAA,IAAAvB,EAAA;CAAA,IAAA6B;CAAA,AAAA7B,EAAA,QAAAM,IAOnDuB,IAAA7B,EAAA,OAVN6B,IAAA,kBAACuC,GAAD;EAAa,SAAA;EAAQ,IAAA;EACnB,UAAA,kBAACC,GAAD;GACS/D,OAAAA;GACG,UAAAiB;GACA,WAAA;GACH,QAAA;GACI,YAAA;GACF,UAAA;GACG,YAAA;EAAK,CAAA;CARjB,CAAA,GAUEvB,EAAA,MAAAM,GAAAN,EAAA,MAAA6B;CAAA,IAAAC;CACF,OADE9B,EAAA,QAAAsB,KAAAtB,EAAA,QAAA6B,KAnBRC,IAAA,kBAACsC,GAAD;EAAiB,aAAA;EAAkB,aAAA;EAA6B,cAAA;EAAc,UAAA;EAAe,OAAA;EAA7F,UAAA,CACE9C,GAQAO,CATE;C,IAoBE7B,EAAA,MAAAsB,GAAAtB,EAAA,MAAA6B,GAAA7B,EAAA,MAAA8B,KAAAA,IAAA9B,EAAA,KApBN8B;AAoBM"}
@@ -2,7 +2,7 @@ import { Avatar as e, Box as t, HStack as n, Stack as r, Text as i, Timeline as
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
4
4
  import { Children as f } from "react";
5
- //#region src/components/activity/activity-avatar.tsx
5
+ // src/components/activity/activity-avatar.tsx
6
6
  var p = (n) => {
7
7
  let r = c(14), { actor: i, icon: a, color: o, background: s } = n, l = o === void 0 ? "fg.muted" : o, f = s === void 0 ? "bg.muted" : s;
8
8
  if (a) {
@@ -344,7 +344,6 @@ var p = (n) => {
344
344
  children: n
345
345
  }), t[4] = n, t[5] = r, t[6] = o) : o = t[6], o;
346
346
  };
347
- //#endregion
348
347
  export { T as a, p as c, E as i, O as n, C as o, D as r, S as s, k as t };
349
348
 
350
- //# sourceMappingURL=activity-timeline-DOMBQZfl.js.map
349
+ //# sourceMappingURL=activity-timeline-D-IDENMg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"activity-timeline-DOMBQZfl.js","names":["Avatar","Box","ReactNode","ActivityActor","ActivityAvatarProps","actor","icon","color","background","ActivityAvatar","props","$","_c","t0","t1","undefined","t2","avatarSrc","t3","avatarAlt","name","t4","t5","t6","t7","_c","defineSlotRecipe","activityCommentSlotRecipe","className","slots","base","root","width","borderWidth","borderRadius","overflow","body","display","flexDirection","content","color","overflowWrap","whiteSpace","variants","tone","default","background","borderColor","attention","size","comfortable","gap","padding","textStyle","compact","defaultVariants","HTMLChakraProps","RecipeVariantProps","Box","createSlotRecipeContext","HStack","Stack","Text","Children","ReactNode","activityCommentSlotRecipe","recipe","ActivityActor","ActivityAvatar","withContext","withProvider","ActivityCommentVariantProps","ActivityCommentHeaderProps","actor","icon","iconColor","iconBackground","timestamp","actions","ActivityCommentRootProps","ActivityCommentProps","Omit","replies","composer","children","ActivityReplyProps","TimestampSeparator","$","_c","t0","Symbol","for","ActivityCommentHeader","props","t1","name","t2","t3","t4","ActivityCommentRoot","HTMLDivElement","ActivityCommentBody","ActivityCommentContent","ActivityReply","rootProps","ActivityComment","hasReplies","count","t5","_c","_Fragment","TimelineItemProps","Box","Text","Timeline","ReactNode","ActivityActor","ActivityAvatar","ActivityEventProps","Omit","actor","icon","iconColor","iconBackground","timestamp","children","EventSeparator","$","_c","t0","Symbol","for","ActivityEvent","props","rootProps","t1","undefined","t2","t3","t4","name","t5","t6","t7","t8","_c","_Fragment","StackProps","HStack","Stack","Text","ReactNode","ActivityRootProps","children","ActivityHeaderProps","Omit","title","actions","ActivityFeedProps","ActivityRoot","props","$","_c","rootProps","t0","ActivityHeader","undefined","t1","t2","t3","ActivityFeed","_c","TimelineRootProps","Timeline","ReactNode","ActivityTimelineProps","children","ActivityTimeline","props","$","_c","rootProps","t0","Symbol","for","t1","_c","ActivityAvatar","$","t0","t1","props","color","background","icon","t2","Box","actor","t3","t4","Avatar","t5","t6","t7","activityCommentSlotRecipe","defineSlotRecipe","createSlotRecipeContext","TimestampSeparator","ActivityCommentHeader","iconBackground","iconColor","Text","timestamp","Fragment","actions","HStack","ActivityCommentRoot","withProvider","ActivityCommentBody","withContext","ActivityCommentContent","ActivityReply","children","rootProps","Stack","ActivityComment","composer","replies","hasReplies","Children","EventSeparator","ActivityEvent","Timeline","t8","ActivityRoot","ActivityHeader","title","ActivityFeed","ActivityTimeline"],"sources":["../src/components/activity/activity-avatar.tsx","../src/theme/recipes/activity-comment.ts","../src/components/activity/activity-comment.tsx","../src/components/activity/activity-event.tsx","../src/components/activity/activity-root.tsx","../src/components/activity/activity-timeline.tsx"],"sourcesContent":["import { Avatar, Box } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nimport type { ActivityActor } from \"./activity.types\";\n\nexport interface ActivityAvatarProps {\n actor?: ActivityActor;\n icon?: ReactNode;\n color?: string;\n background?: string;\n}\n\nexport const ActivityAvatar = (props: ActivityAvatarProps) => {\n const { actor, icon, color = \"fg.muted\", background = \"bg.muted\" } = props;\n\n if (icon) {\n return (\n <Box\n boxSize=\"18px\"\n borderRadius=\"full\"\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n flexShrink={0}\n color={color}\n background={background}\n >\n {icon}\n </Box>\n );\n }\n\n return (\n <Avatar.Root size=\"2xs\" flexShrink={0}>\n <Avatar.Image src={actor?.avatarSrc} alt={actor?.avatarAlt ?? actor?.name} />\n <Avatar.Fallback name={actor?.name} background={background} color={color} />\n </Avatar.Root>\n );\n};\n","import { defineSlotRecipe } from \"@chakra-ui/react\";\n\nexport const activityCommentSlotRecipe = defineSlotRecipe({\n className: \"activity-comment\",\n slots: [\"root\", \"body\", \"content\"],\n base: {\n root: {\n width: \"full\",\n borderWidth: \"1px\",\n borderRadius: \"xs\",\n overflow: \"hidden\",\n },\n body: {\n display: \"flex\",\n flexDirection: \"column\",\n },\n content: {\n color: \"fg\",\n overflowWrap: \"anywhere\",\n whiteSpace: \"pre-wrap\",\n },\n },\n variants: {\n tone: {\n default: {\n root: {\n background: \"bg\",\n borderColor: \"border.subtle\",\n },\n },\n attention: {\n root: {\n background: \"bg.warning\",\n borderColor: \"border.warning\",\n },\n },\n },\n size: {\n comfortable: {\n body: {\n gap: \"sm\",\n padding: \"md\",\n },\n content: {\n textStyle: \"label/S/regular\",\n },\n },\n compact: {\n body: {\n gap: \"xs\",\n padding: \"sm\",\n },\n content: {\n textStyle: \"label/S/regular\",\n },\n },\n },\n },\n defaultVariants: {\n tone: \"default\",\n size: \"comfortable\",\n },\n});\n","import type { HTMLChakraProps, RecipeVariantProps } from \"@chakra-ui/react\";\nimport { Box, createSlotRecipeContext, HStack, Stack, Text } from \"@chakra-ui/react\";\nimport { Children, type ReactNode } from \"react\";\n\nimport { activityCommentSlotRecipe as recipe } from \"@/theme/recipes/activity-comment\";\nimport type { ActivityActor } from \"./activity.types\";\nimport { ActivityAvatar } from \"./activity-avatar\";\n\nconst { withContext, withProvider } = createSlotRecipeContext({ recipe });\n\ntype ActivityCommentVariantProps = RecipeVariantProps<typeof recipe>;\n\ninterface ActivityCommentHeaderProps {\n actor: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n actions?: ReactNode;\n}\n\ninterface ActivityCommentRootProps extends HTMLChakraProps<\"article\">, ActivityCommentVariantProps {}\n\nexport interface ActivityCommentProps extends Omit<ActivityCommentRootProps, \"title\"> {\n actor: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n actions?: ReactNode;\n replies?: ReactNode;\n composer?: ReactNode;\n children: ReactNode;\n}\n\nexport interface ActivityReplyProps extends Omit<HTMLChakraProps<\"div\">, \"title\"> {\n actor: ActivityActor;\n timestamp?: ReactNode;\n actions?: ReactNode;\n children: ReactNode;\n}\n\nconst TimestampSeparator = () => (\n <Box as=\"span\" boxSize=\"3px\" borderRadius=\"full\" background=\"fg.subtle\" flexShrink={0} />\n);\n\nconst ActivityCommentHeader = (props: ActivityCommentHeaderProps) => {\n const { actor, icon, iconColor, iconBackground, timestamp, actions } = props;\n\n return (\n <HStack gap=\"xs\" alignItems=\"center\" minW=\"0\">\n <ActivityAvatar actor={actor} icon={icon} color={iconColor} background={iconBackground} />\n <Text textStyle=\"label/S/medium\" color=\"fg\" truncate>\n {actor.name}\n </Text>\n {timestamp ? (\n <>\n <TimestampSeparator />\n <Text textStyle=\"label/S/regular\" color=\"fg.muted\" flexShrink={0}>\n {timestamp}\n </Text>\n </>\n ) : null}\n <Box marginLeft=\"auto\" flexShrink={0}>\n {actions}\n </Box>\n </HStack>\n );\n};\n\nconst ActivityCommentRoot = withProvider<HTMLDivElement, ActivityCommentRootProps>(\"article\", \"root\");\nconst ActivityCommentBody = withContext<HTMLDivElement, HTMLChakraProps<\"div\">>(\"div\", \"body\");\nconst ActivityCommentContent = withContext<HTMLDivElement, HTMLChakraProps<\"div\">>(\"div\", \"content\");\n\nexport const ActivityReply = (props: ActivityReplyProps) => {\n const { actor, timestamp, actions, children, ...rootProps } = props;\n\n return (\n <Box paddingX=\"md\" paddingY=\"sm\" {...rootProps}>\n <Stack gap=\"xs\">\n <ActivityCommentHeader actor={actor} timestamp={timestamp} actions={actions} />\n <Box paddingLeft=\"32px\">\n <Text as=\"div\" textStyle=\"label/S/regular\" color=\"fg\" overflowWrap=\"anywhere\">\n {children}\n </Text>\n </Box>\n </Stack>\n </Box>\n );\n};\n\nexport const ActivityComment = (props: ActivityCommentProps) => {\n const { actor, icon, iconColor, iconBackground, timestamp, actions, replies, composer, children, ...rootProps } =\n props;\n const hasReplies = Children.count(replies) > 0;\n\n return (\n <ActivityCommentRoot {...rootProps}>\n <ActivityCommentBody>\n <ActivityCommentHeader\n actor={actor}\n icon={icon}\n iconColor={iconColor}\n iconBackground={iconBackground}\n timestamp={timestamp}\n actions={actions}\n />\n <ActivityCommentContent>{children}</ActivityCommentContent>\n </ActivityCommentBody>\n {hasReplies ? (\n <Box borderTopWidth=\"1px\" borderColor=\"border.subtle\">\n {replies}\n </Box>\n ) : null}\n {composer ? (\n <Box borderTopWidth=\"1px\" borderColor=\"border.subtle\">\n {composer}\n </Box>\n ) : null}\n </ActivityCommentRoot>\n );\n};\n","import type { TimelineItemProps } from \"@chakra-ui/react\";\nimport { Box, Text, Timeline } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nimport type { ActivityActor } from \"./activity.types\";\nimport { ActivityAvatar } from \"./activity-avatar\";\n\nexport interface ActivityEventProps extends Omit<TimelineItemProps, \"title\"> {\n actor?: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n children: ReactNode;\n}\n\nconst EventSeparator = () => <Box as=\"span\" boxSize=\"3px\" borderRadius=\"full\" background=\"fg.subtle\" flexShrink={0} />;\n\nexport const ActivityEvent = (props: ActivityEventProps) => {\n const { actor, icon, iconColor = \"fg\", iconBackground = \"transparent\", timestamp, children, ...rootProps } = props;\n\n return (\n <Timeline.Item gap=\"xs\" minH=\"24px\" paddingX=\"md\" {...rootProps}>\n <Timeline.Connector>\n <Timeline.Separator borderColor=\"border\" />\n <Timeline.Indicator outline=\"none\" border=\"none\" background=\"bg\">\n <ActivityAvatar actor={actor} icon={icon} color={iconColor} background={iconBackground} />\n </Timeline.Indicator>\n </Timeline.Connector>\n <Timeline.Content gap=\"0\" minW=\"0\">\n <Timeline.Title\n marginTop=\"0\"\n gap=\"xs\"\n minW=\"0\"\n fontWeight=\"normal\"\n textStyle=\"label/S/regular\"\n color=\"fg.muted\"\n >\n {actor ? (\n <Text as=\"span\" color=\"fg\" fontWeight=\"500\" flexShrink={0}>\n {actor.name}\n </Text>\n ) : null}\n <Box as=\"span\" display=\"inline-flex\" alignItems=\"center\" gap=\"2xs\" minW=\"0\" flexWrap=\"wrap\">\n {children}\n </Box>\n {timestamp ? (\n <>\n <EventSeparator />\n <Text as=\"span\" color=\"fg.muted\" flexShrink={0}>\n {timestamp}\n </Text>\n </>\n ) : null}\n </Timeline.Title>\n </Timeline.Content>\n </Timeline.Item>\n );\n};\n","import type { StackProps } from \"@chakra-ui/react\";\nimport { HStack, Stack, Text } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nexport interface ActivityRootProps extends StackProps {\n children: ReactNode;\n}\n\nexport interface ActivityHeaderProps extends Omit<StackProps, \"title\"> {\n title?: ReactNode;\n actions?: ReactNode;\n}\n\nexport interface ActivityFeedProps extends StackProps {\n children: ReactNode;\n}\n\nexport const ActivityRoot = (props: ActivityRootProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Stack width=\"full\" gap=\"md\" {...rootProps}>\n {children}\n </Stack>\n );\n};\n\nexport const ActivityHeader = (props: ActivityHeaderProps) => {\n const { title = \"Activity\", actions, ...rootProps } = props;\n\n return (\n <HStack alignItems=\"center\" justifyContent=\"space-between\" gap=\"md\" {...rootProps}>\n <Text textStyle=\"label/M/medium\" color=\"fg\">\n {title}\n </Text>\n {actions ? <HStack gap=\"xs\">{actions}</HStack> : null}\n </HStack>\n );\n};\n\nexport const ActivityFeed = (props: ActivityFeedProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Stack gap=\"md\" width=\"full\" {...rootProps}>\n {children}\n </Stack>\n );\n};\n","import type { TimelineRootProps } from \"@chakra-ui/react\";\nimport { Timeline } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nexport interface ActivityTimelineProps extends TimelineRootProps {\n children: ReactNode;\n}\n\nexport const ActivityTimeline = (props: ActivityTimelineProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Timeline.Root size=\"sm\" variant=\"plain\" width=\"full\" css={{ \"--timeline-indicator-size\": \"18px\" }} {...rootProps}>\n {children}\n </Timeline.Root>\n );\n};\n"],"mappings":";;;;;AAYA,IAAaS,KAAiBC,MAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,GAC5B,EAAAP,UAAAC,SAAAC,OAAAM,GAAAL,YAAAM,MAAqEJ,GAAhDH,IAAAM,MAAAE,KAAAA,IAAA,aAAAF,GAAoBL,IAAAM,MAAAC,KAAAA,IAAA,aAAAD;CAEzC,IAAIR,GAAI;EAAA,IAAAU;EAaE,OAbFL,EAAA,OAAAH,KAAAG,EAAA,OAAAJ,KAAAI,EAAA,OAAAL,KAEJU,IAAA,kBAACoL,GAAD;GACU,SAAA;GACK,cAAA;GACL,SAAA;GACG,YAAA;GACI,gBAAA;GACH,YAAA;GACL7L;GACKC;GAEXF,UAAAA;EAVC,CAAA,GAWEK,EAAA,KAAAH,GAAAG,EAAA,KAAAJ,GAAAI,EAAA,KAAAL,GAAAK,EAAA,KAAAK,KAAAA,IAAAL,EAAA,IAXNK;CAWM;CAMa,IAAAA,IAAAX,GAAKY,WAAkBC,IAAAb,GAAKc,aAAed,GAAKe,MAAMC;CAAA,AAAAV,EAAA,OAAAK,KAAAL,EAAA,OAAAO,KAAzEG,IAAA,kBAAAmL,EAAA,OAAA;EAAmB,KAAAxL;EAAuB,KAAAE;CAA+B,CAAA,GAAIP,EAAA,KAAAK,GAAAL,EAAA,KAAAO,GAAAP,EAAA,KAAAU,KAAAA,IAAAV,EAAA;CACtD,IAAAW,IAAAjB,GAAKe,MAAMG;CAAA,AAAAZ,EAAA,OAAAH,KAAAG,EAA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A,CAAA,GAAAT,GAAAU;CAAA,AAAAF,EAAA,OAAAD,KACeP,IAAAQ,EAAA,IAAAE,IAAAF,EAAA,OAAzC,cAAA,GAAAE,KAAmCH,GAAMC,EAAA,KAAAD,GAAAC,EAAA,KAAAR,GAAAQ,EAAA,KAAAE;CAAA,IAAAC;CAK/B,OAL+BH,EAAA,OAAAR,KAAAQ,EAAA,OAAAE,KAGvCC,IAAA,kBAAC4D,GAAD;EAAW,KAAA;EAAW,OAAA;EAAM,GAAK7D;EAC9BV;CADG,CAAA,GAEEQ,EAAA,KAAAR,GAAAQ,EAAA,KAAAE,GAAAF,EAAA,KAAAG,KAAAA,IAAAH,EAAA,IAFRG;AAEQ,GCtCCa,KAAmBC,MAAA;CAAA,IAAAC,IAAAC,EAAA,CAAA,GAAAJ,GAAAK;CAAA,AAAAF,EAAA,OAAAD,KACWF,IAAAG,EAAA,IAAAE,IAAAF,EAAA,OAAzC,cAAA,GAAAE,KAAmCH,GAAMC,EAAA,KAAAD,GAAAC,EAAA,KAAAH,GAAAG,EAAA,KAAAE;CAAA,IAAAC;CAAA,AAAAH,EAAA,OAAAI,OAAAC,IAAA,2BAAA,KAGoBF,IAAA,EAAA,6BAA+B,OAAO,GAACH,EAAA,KAAAG,KAAAA,IAAAH,EAAA;CAAA,IAAAM;CAElF,OAFkFN,EAAA,OAAAH,KAAAG,EAAA,OAAAE,KAAlGI,IAAA,kBAAA+C,EAAA,MAAA;EAAoB,MAAA;EAAa,SAAA;EAAc,OAAA;EAAY,KAAAlD;EAAuC,GAAMD;EACrGL;CACH,CAAA,GAAgBG,EAAA,KAAAH,GAAAG,EAAA,KAAAE,GAAAF,EAAA,KAAAM,KAAAA,IAAAN,EAAA,IAFhBM;AAEgB"}
1
+ {"version":3,"file":"activity-timeline-D-IDENMg.js","names":["Avatar","Box","ReactNode","ActivityActor","ActivityAvatarProps","actor","icon","color","background","ActivityAvatar","props","$","_c","t0","t1","undefined","t2","avatarSrc","t3","avatarAlt","name","t4","t5","t6","t7","_c","defineSlotRecipe","activityCommentSlotRecipe","className","slots","base","root","width","borderWidth","borderRadius","overflow","body","display","flexDirection","content","color","overflowWrap","whiteSpace","variants","tone","default","background","borderColor","attention","size","comfortable","gap","padding","textStyle","compact","defaultVariants","HTMLChakraProps","RecipeVariantProps","Box","createSlotRecipeContext","HStack","Stack","Text","Children","ReactNode","activityCommentSlotRecipe","recipe","ActivityActor","ActivityAvatar","withContext","withProvider","ActivityCommentVariantProps","ActivityCommentHeaderProps","actor","icon","iconColor","iconBackground","timestamp","actions","ActivityCommentRootProps","ActivityCommentProps","Omit","replies","composer","children","ActivityReplyProps","TimestampSeparator","$","_c","t0","Symbol","for","ActivityCommentHeader","props","t1","name","t2","t3","t4","ActivityCommentRoot","HTMLDivElement","ActivityCommentBody","ActivityCommentContent","ActivityReply","rootProps","ActivityComment","hasReplies","count","t5","_c","_Fragment","TimelineItemProps","Box","Text","Timeline","ReactNode","ActivityActor","ActivityAvatar","ActivityEventProps","Omit","actor","icon","iconColor","iconBackground","timestamp","children","EventSeparator","$","_c","t0","Symbol","for","ActivityEvent","props","rootProps","t1","undefined","t2","t3","t4","name","t5","t6","t7","t8","_c","_Fragment","StackProps","HStack","Stack","Text","ReactNode","ActivityRootProps","children","ActivityHeaderProps","Omit","title","actions","ActivityFeedProps","ActivityRoot","props","$","_c","rootProps","t0","ActivityHeader","undefined","t1","t2","t3","ActivityFeed","_c","TimelineRootProps","Timeline","ReactNode","ActivityTimelineProps","children","ActivityTimeline","props","$","_c","rootProps","t0","Symbol","for","t1","_c","ActivityAvatar","$","t0","t1","props","color","background","icon","t2","Box","actor","t3","t4","Avatar","t5","t6","t7","activityCommentSlotRecipe","defineSlotRecipe","createSlotRecipeContext","TimestampSeparator","ActivityCommentHeader","iconBackground","iconColor","Text","timestamp","Fragment","actions","HStack","ActivityCommentRoot","withProvider","ActivityCommentBody","withContext","ActivityCommentContent","ActivityReply","children","rootProps","Stack","ActivityComment","composer","replies","hasReplies","Children","EventSeparator","ActivityEvent","Timeline","t8","ActivityRoot","ActivityHeader","title","ActivityFeed","ActivityTimeline"],"sources":["../src/components/activity/activity-avatar.tsx","../src/theme/recipes/activity-comment.ts","../src/components/activity/activity-comment.tsx","../src/components/activity/activity-event.tsx","../src/components/activity/activity-root.tsx","../src/components/activity/activity-timeline.tsx"],"sourcesContent":["import { Avatar, Box } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nimport type { ActivityActor } from \"./activity.types\";\n\nexport interface ActivityAvatarProps {\n actor?: ActivityActor;\n icon?: ReactNode;\n color?: string;\n background?: string;\n}\n\nexport const ActivityAvatar = (props: ActivityAvatarProps) => {\n const { actor, icon, color = \"fg.muted\", background = \"bg.muted\" } = props;\n\n if (icon) {\n return (\n <Box\n boxSize=\"18px\"\n borderRadius=\"full\"\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n flexShrink={0}\n color={color}\n background={background}\n >\n {icon}\n </Box>\n );\n }\n\n return (\n <Avatar.Root size=\"2xs\" flexShrink={0}>\n <Avatar.Image src={actor?.avatarSrc} alt={actor?.avatarAlt ?? actor?.name} />\n <Avatar.Fallback name={actor?.name} background={background} color={color} />\n </Avatar.Root>\n );\n};\n","import { defineSlotRecipe } from \"@chakra-ui/react\";\n\nexport const activityCommentSlotRecipe = defineSlotRecipe({\n className: \"activity-comment\",\n slots: [\"root\", \"body\", \"content\"],\n base: {\n root: {\n width: \"full\",\n borderWidth: \"1px\",\n borderRadius: \"xs\",\n overflow: \"hidden\",\n },\n body: {\n display: \"flex\",\n flexDirection: \"column\",\n },\n content: {\n color: \"fg\",\n overflowWrap: \"anywhere\",\n whiteSpace: \"pre-wrap\",\n },\n },\n variants: {\n tone: {\n default: {\n root: {\n background: \"bg\",\n borderColor: \"border.subtle\",\n },\n },\n attention: {\n root: {\n background: \"bg.warning\",\n borderColor: \"border.warning\",\n },\n },\n },\n size: {\n comfortable: {\n body: {\n gap: \"sm\",\n padding: \"md\",\n },\n content: {\n textStyle: \"label/S/regular\",\n },\n },\n compact: {\n body: {\n gap: \"xs\",\n padding: \"sm\",\n },\n content: {\n textStyle: \"label/S/regular\",\n },\n },\n },\n },\n defaultVariants: {\n tone: \"default\",\n size: \"comfortable\",\n },\n});\n","import type { HTMLChakraProps, RecipeVariantProps } from \"@chakra-ui/react\";\nimport { Box, createSlotRecipeContext, HStack, Stack, Text } from \"@chakra-ui/react\";\nimport { Children, type ReactNode } from \"react\";\n\nimport { activityCommentSlotRecipe as recipe } from \"@/theme/recipes/activity-comment\";\nimport type { ActivityActor } from \"./activity.types\";\nimport { ActivityAvatar } from \"./activity-avatar\";\n\nconst { withContext, withProvider } = createSlotRecipeContext({ recipe });\n\ntype ActivityCommentVariantProps = RecipeVariantProps<typeof recipe>;\n\ninterface ActivityCommentHeaderProps {\n actor: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n actions?: ReactNode;\n}\n\ninterface ActivityCommentRootProps extends HTMLChakraProps<\"article\">, ActivityCommentVariantProps {}\n\nexport interface ActivityCommentProps extends Omit<ActivityCommentRootProps, \"title\"> {\n actor: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n actions?: ReactNode;\n replies?: ReactNode;\n composer?: ReactNode;\n children: ReactNode;\n}\n\nexport interface ActivityReplyProps extends Omit<HTMLChakraProps<\"div\">, \"title\"> {\n actor: ActivityActor;\n timestamp?: ReactNode;\n actions?: ReactNode;\n children: ReactNode;\n}\n\nconst TimestampSeparator = () => (\n <Box as=\"span\" boxSize=\"3px\" borderRadius=\"full\" background=\"fg.subtle\" flexShrink={0} />\n);\n\nconst ActivityCommentHeader = (props: ActivityCommentHeaderProps) => {\n const { actor, icon, iconColor, iconBackground, timestamp, actions } = props;\n\n return (\n <HStack gap=\"xs\" alignItems=\"center\" minW=\"0\">\n <ActivityAvatar actor={actor} icon={icon} color={iconColor} background={iconBackground} />\n <Text textStyle=\"label/S/medium\" color=\"fg\" truncate>\n {actor.name}\n </Text>\n {timestamp ? (\n <>\n <TimestampSeparator />\n <Text textStyle=\"label/S/regular\" color=\"fg.muted\" flexShrink={0}>\n {timestamp}\n </Text>\n </>\n ) : null}\n <Box marginLeft=\"auto\" flexShrink={0}>\n {actions}\n </Box>\n </HStack>\n );\n};\n\nconst ActivityCommentRoot = withProvider<HTMLDivElement, ActivityCommentRootProps>(\"article\", \"root\");\nconst ActivityCommentBody = withContext<HTMLDivElement, HTMLChakraProps<\"div\">>(\"div\", \"body\");\nconst ActivityCommentContent = withContext<HTMLDivElement, HTMLChakraProps<\"div\">>(\"div\", \"content\");\n\nexport const ActivityReply = (props: ActivityReplyProps) => {\n const { actor, timestamp, actions, children, ...rootProps } = props;\n\n return (\n <Box paddingX=\"md\" paddingY=\"sm\" {...rootProps}>\n <Stack gap=\"xs\">\n <ActivityCommentHeader actor={actor} timestamp={timestamp} actions={actions} />\n <Box paddingLeft=\"32px\">\n <Text as=\"div\" textStyle=\"label/S/regular\" color=\"fg\" overflowWrap=\"anywhere\">\n {children}\n </Text>\n </Box>\n </Stack>\n </Box>\n );\n};\n\nexport const ActivityComment = (props: ActivityCommentProps) => {\n const { actor, icon, iconColor, iconBackground, timestamp, actions, replies, composer, children, ...rootProps } =\n props;\n const hasReplies = Children.count(replies) > 0;\n\n return (\n <ActivityCommentRoot {...rootProps}>\n <ActivityCommentBody>\n <ActivityCommentHeader\n actor={actor}\n icon={icon}\n iconColor={iconColor}\n iconBackground={iconBackground}\n timestamp={timestamp}\n actions={actions}\n />\n <ActivityCommentContent>{children}</ActivityCommentContent>\n </ActivityCommentBody>\n {hasReplies ? (\n <Box borderTopWidth=\"1px\" borderColor=\"border.subtle\">\n {replies}\n </Box>\n ) : null}\n {composer ? (\n <Box borderTopWidth=\"1px\" borderColor=\"border.subtle\">\n {composer}\n </Box>\n ) : null}\n </ActivityCommentRoot>\n );\n};\n","import type { TimelineItemProps } from \"@chakra-ui/react\";\nimport { Box, Text, Timeline } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nimport type { ActivityActor } from \"./activity.types\";\nimport { ActivityAvatar } from \"./activity-avatar\";\n\nexport interface ActivityEventProps extends Omit<TimelineItemProps, \"title\"> {\n actor?: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n children: ReactNode;\n}\n\nconst EventSeparator = () => <Box as=\"span\" boxSize=\"3px\" borderRadius=\"full\" background=\"fg.subtle\" flexShrink={0} />;\n\nexport const ActivityEvent = (props: ActivityEventProps) => {\n const { actor, icon, iconColor = \"fg\", iconBackground = \"transparent\", timestamp, children, ...rootProps } = props;\n\n return (\n <Timeline.Item gap=\"xs\" minH=\"24px\" paddingX=\"md\" {...rootProps}>\n <Timeline.Connector>\n <Timeline.Separator borderColor=\"border\" />\n <Timeline.Indicator outline=\"none\" border=\"none\" background=\"bg\">\n <ActivityAvatar actor={actor} icon={icon} color={iconColor} background={iconBackground} />\n </Timeline.Indicator>\n </Timeline.Connector>\n <Timeline.Content gap=\"0\" minW=\"0\">\n <Timeline.Title\n marginTop=\"0\"\n gap=\"xs\"\n minW=\"0\"\n fontWeight=\"normal\"\n textStyle=\"label/S/regular\"\n color=\"fg.muted\"\n >\n {actor ? (\n <Text as=\"span\" color=\"fg\" fontWeight=\"500\" flexShrink={0}>\n {actor.name}\n </Text>\n ) : null}\n <Box as=\"span\" display=\"inline-flex\" alignItems=\"center\" gap=\"2xs\" minW=\"0\" flexWrap=\"wrap\">\n {children}\n </Box>\n {timestamp ? (\n <>\n <EventSeparator />\n <Text as=\"span\" color=\"fg.muted\" flexShrink={0}>\n {timestamp}\n </Text>\n </>\n ) : null}\n </Timeline.Title>\n </Timeline.Content>\n </Timeline.Item>\n );\n};\n","import type { StackProps } from \"@chakra-ui/react\";\nimport { HStack, Stack, Text } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nexport interface ActivityRootProps extends StackProps {\n children: ReactNode;\n}\n\nexport interface ActivityHeaderProps extends Omit<StackProps, \"title\"> {\n title?: ReactNode;\n actions?: ReactNode;\n}\n\nexport interface ActivityFeedProps extends StackProps {\n children: ReactNode;\n}\n\nexport const ActivityRoot = (props: ActivityRootProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Stack width=\"full\" gap=\"md\" {...rootProps}>\n {children}\n </Stack>\n );\n};\n\nexport const ActivityHeader = (props: ActivityHeaderProps) => {\n const { title = \"Activity\", actions, ...rootProps } = props;\n\n return (\n <HStack alignItems=\"center\" justifyContent=\"space-between\" gap=\"md\" {...rootProps}>\n <Text textStyle=\"label/M/medium\" color=\"fg\">\n {title}\n </Text>\n {actions ? <HStack gap=\"xs\">{actions}</HStack> : null}\n </HStack>\n );\n};\n\nexport const ActivityFeed = (props: ActivityFeedProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Stack gap=\"md\" width=\"full\" {...rootProps}>\n {children}\n </Stack>\n );\n};\n","import type { TimelineRootProps } from \"@chakra-ui/react\";\nimport { Timeline } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nexport interface ActivityTimelineProps extends TimelineRootProps {\n children: ReactNode;\n}\n\nexport const ActivityTimeline = (props: ActivityTimelineProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Timeline.Root size=\"sm\" variant=\"plain\" width=\"full\" css={{ \"--timeline-indicator-size\": \"18px\" }} {...rootProps}>\n {children}\n </Timeline.Root>\n );\n};\n"],"mappings":";;;;;AAYA,IAAaS,KAAiBC,MAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,GAC5B,EAAAP,UAAAC,SAAAC,OAAAM,GAAAL,YAAAM,MAAqEJ,GAAhDH,IAAAM,MAAAE,KAAAA,IAAA,aAAAF,GAAoBL,IAAAM,MAAAC,KAAAA,IAAA,aAAAD;CAEzC,IAAIR,GAAI;EAAA,IAAAU;EAaE,OAbFL,EAAA,OAAAH,KAAAG,EAAA,OAAAJ,KAAAI,EAAA,OAAAL,KAEJU,IAA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,EAAA,KAAAH,GAAAG,EAAA,KAAAE;CAAA,IAAAC;CAAA,AAAAH,EAAA,OAAAI,OAAAC,IAAA,2BAAA,KAGoBF,IAAA,EAAA,6BAA+B,OAAO,GAACH,EAAA,KAAAG,KAAAA,IAAAH,EAAA;CAAA,IAAAM;CAElF,OAFkFN,EAAA,OAAAH,KAAAG,EAAA,OAAAE,KAAlGI,IAAA,kBAAA+C,EAAA,MAAA;EAAoB,MAAA;EAAa,SAAA;EAAc,OAAA;EAAY,KAAAlD;EAAuC,GAAMD;EACrGL;CACH,CAAA,GAAgBG,EAAA,KAAAH,GAAAG,EAAA,KAAAE,GAAAF,EAAA,KAAAM,KAAAA,IAAAN,EAAA,IAFhBM;AAEgB"}
@@ -1,4 +1,3 @@
1
- //#region src/utils/apply-theme-preference.d.ts
2
1
  type ThemePreference = string;
3
2
  type ThemePreferenceMode = "light" | "dark";
4
3
  type ThemePreferenceTokens = Record<string, string>;
@@ -21,6 +20,5 @@ declare const getThemePreferenceMode: (theme: ThemePreference, themePreferences?
21
20
  declare const getThemePreferenceClassName: (theme: ThemePreference) => string;
22
21
  declare const getThemePreferenceClassNames: (theme: ThemePreference, mode?: ThemePreferenceMode) => string[];
23
22
  declare const applyThemePreference: (theme: ThemePreference, themePreferences?: readonly ThemePreferenceOption[]) => void;
24
- //#endregion
25
23
  export { applyThemePreference as a, getThemePreferenceClassNames as c, ThemePreferenceTokens as i, getThemePreferenceMode as l, ThemePreferenceMode as n, defaultThemePreferences as o, ThemePreferenceOption as r, getThemePreferenceClassName as s, ThemePreference as t, isThemePreference as u };
26
24
  export {};
@@ -1,4 +1,4 @@
1
- //#region src/utils/browser-storage.ts
1
+ // src/utils/browser-storage.ts
2
2
  var e = {
3
3
  getItem: () => null,
4
4
  removeItem: () => {},
@@ -31,7 +31,6 @@ var e = {
31
31
  }
32
32
  } : e;
33
33
  };
34
- //#endregion
35
34
  export { n as t };
36
35
 
37
- //# sourceMappingURL=browser-storage-C_ipoNwP.js.map
36
+ //# sourceMappingURL=browser-storage-CIj_9R9x.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-storage-C_ipoNwP.js","names":["BrowserStorage","getItem","key","removeItem","setItem","value","noopStorage","readLocalStorage","globalThis","localStorage","undefined","createBrowserStorage","storage","noopStorage","readLocalStorage","createBrowserStorage","storage","key","value"],"sources":["../src/utils/browser-storage.ts"],"sourcesContent":["interface BrowserStorage {\n getItem: (key: string) => string | null;\n removeItem: (key: string) => void;\n setItem: (key: string, value: string) => void;\n}\n\nconst noopStorage = {\n getItem: () => null,\n removeItem: () => {},\n setItem: () => {},\n} satisfies BrowserStorage;\n\nconst readLocalStorage = () => {\n try {\n return globalThis.localStorage;\n } catch {\n return undefined;\n }\n};\n\nexport const createBrowserStorage = (): BrowserStorage => {\n const storage = readLocalStorage();\n if (!storage) return noopStorage;\n\n return {\n getItem(key) {\n try {\n return storage.getItem(key);\n } catch {\n return null;\n }\n },\n removeItem(key) {\n try {\n storage.removeItem(key);\n } catch {}\n },\n setItem(key, value) {\n try {\n storage.setItem(key, value);\n } catch {}\n },\n };\n};\n"],"mappings":";AAMA,IAAMM,IAAc;CAClBL,eAAe;CACfE,kBAAkB,CAAC;CACnBC,eAAe,CAAC;AAClB,GAEMG,UAAyB;CAC7B,IAAI;EACF,OAAOC,WAAWC;CACpB,QAAQ;EACN;CACF;AACF,GAEaE,UAA6C;CACxD,IAAMC,IAAUL,EAAiB;CAGjC,OAFKK,IAEE;EACLX,QAAQC,GAAK;GACX,IAAI;IACF,OAAOU,EAAQX,QAAQC,CAAG;GAC5B,QAAQ;IACN,OAAO;GACT;EACF;EACAC,WAAWD,GAAK;GACd,IAAI;IACFU,EAAQT,WAAWD,CAAG;GACxB,QAAQ,CAAC;EACX;EACAE,QAAQF,GAAKG,GAAO;GAClB,IAAI;IACFO,EAAQR,QAAQF,GAAKG,CAAK;GAC5B,QAAQ,CAAC;EACX;CACF,IApBqBC;AAqBvB"}
1
+ {"version":3,"file":"browser-storage-CIj_9R9x.js","names":["BrowserStorage","getItem","key","removeItem","setItem","value","noopStorage","readLocalStorage","globalThis","localStorage","undefined","createBrowserStorage","storage","noopStorage","readLocalStorage","createBrowserStorage","storage","key","value"],"sources":["../src/utils/browser-storage.ts"],"sourcesContent":["interface BrowserStorage {\n getItem: (key: string) => string | null;\n removeItem: (key: string) => void;\n setItem: (key: string, value: string) => void;\n}\n\nconst noopStorage = {\n getItem: () => null,\n removeItem: () => {},\n setItem: () => {},\n} satisfies BrowserStorage;\n\nconst readLocalStorage = () => {\n try {\n return globalThis.localStorage;\n } catch {\n return undefined;\n }\n};\n\nexport const createBrowserStorage = (): BrowserStorage => {\n const storage = readLocalStorage();\n if (!storage) return noopStorage;\n\n return {\n getItem(key) {\n try {\n return storage.getItem(key);\n } catch {\n return null;\n }\n },\n removeItem(key) {\n try {\n storage.removeItem(key);\n } catch {}\n },\n setItem(key, value) {\n try {\n storage.setItem(key, value);\n } catch {}\n },\n };\n};\n"],"mappings":";AAMA,IAAMM,IAAc;CAClBL,eAAe;CACfE,kBAAkB,CAAC;CACnBC,eAAe,CAAC;AAClB,GAEMG,UAAyB;CAC7B,IAAI;EACF,OAAOC,WAAWC;CACpB,QAAQ;EACN;CACF;AACF,GAEaE,UAA6C;CACxD,IAAMC,IAAUL,EAAiB;CAGjC,OAFKK,IAEE;EACLX,QAAQC,GAAK;GACX,IAAI;IACF,OAAOU,EAAQX,QAAQC,CAAG;GAC5B,QAAQ;IACN,OAAO;GACT;EACF;EACAC,WAAWD,GAAK;GACd,IAAI;IACFU,EAAQT,WAAWD,CAAG;GACxB,QAAQ,CAAC;EACX;EACAE,QAAQF,GAAKG,GAAO;GAClB,IAAI;IACFO,EAAQR,QAAQF,GAAKG,CAAK;GAC5B,QAAQ,CAAC;EACX;CACF,IApBqBC;AAqBvB"}
package/dist/chat-ui.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { n as ResourceBadgeProps, r as ScrollArea$1 } from "./resource-badge-DGwekS-G.js";
2
- import { A as PromptSelectionSnapshot, M as PromptCommand, d as ChatLinkCandidate, f as ChatLinkHandler, h as parseChatLink, m as isGuessedChatLink, p as ChatLinkProps } from "./index-C_ctB_DT.js";
1
+ import { n as ResourceBadgeProps, r as ScrollArea$1 } from "./resource-badge-C73K0Vg9.js";
2
+ import { A as PromptSelectionSnapshot, M as PromptCommand, d as ChatLinkCandidate, f as ChatLinkHandler, h as parseChatLink, m as isGuessedChatLink, p as ChatLinkProps } from "./index-DzVOXj8n.js";
3
3
  import { HTMLChakraProps, IconButtonProps, RecipeVariantProps } from "@chakra-ui/react";
4
4
  import { StickToBottom } from "use-stick-to-bottom";
5
5
  import { ReactNode } from "react";
6
- //#region src/components/chat-ui/components/ai-conversation.d.ts
7
6
  type ConversationRootProps = HTMLChakraProps<"div", React.ComponentProps<typeof StickToBottom>>;
8
7
  type ConversationContentProps = Omit<React.ComponentProps<typeof ScrollArea$1>, "contentProps" | "viewportRef">;
9
8
  type ConversationScrollButtonProps = IconButtonProps;
@@ -17,17 +16,17 @@ export declare const ChatPrimitives: {
17
16
  id?: string | undefined | undefined;
18
17
  onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
19
18
  resource?: string | undefined | undefined;
20
- content?: string | undefined | undefined;
19
+ slot?: string | undefined | undefined;
20
+ style?: import("react").CSSProperties | undefined;
21
+ title?: string | undefined | undefined;
21
22
  color?: string | undefined | undefined;
23
+ content?: string | undefined | undefined;
22
24
  translate?: "yes" | "no" | undefined | undefined;
23
25
  initial?: (import("use-stick-to-bottom").Animation | boolean) | undefined;
24
26
  hidden?: boolean | undefined | undefined;
25
- popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
26
- radioGroup?: string | undefined | undefined;
27
- slot?: string | undefined | undefined;
28
- style?: import("react").CSSProperties | undefined;
29
- title?: string | undefined | undefined;
30
- results?: number | undefined | undefined;
27
+ "aria-roledescription"?: string | undefined | undefined;
28
+ role?: import("react").AriaRole | undefined;
29
+ children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
31
30
  defaultChecked?: boolean | undefined | undefined;
32
31
  defaultValue?: string | number | readonly string[] | undefined;
33
32
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -45,7 +44,7 @@ export declare const ChatPrimitives: {
45
44
  nonce?: string | undefined | undefined;
46
45
  spellCheck?: (boolean | "true" | "false") | undefined;
47
46
  tabIndex?: number | undefined | undefined;
48
- role?: import("react").AriaRole | undefined;
47
+ radioGroup?: string | undefined | undefined;
49
48
  about?: string | undefined | undefined;
50
49
  datatype?: string | undefined | undefined;
51
50
  inlist?: any;
@@ -62,8 +61,10 @@ export declare const ChatPrimitives: {
62
61
  itemType?: string | undefined | undefined;
63
62
  itemID?: string | undefined | undefined;
64
63
  itemRef?: string | undefined | undefined;
64
+ results?: number | undefined | undefined;
65
65
  security?: string | undefined | undefined;
66
66
  unselectable?: "on" | "off" | undefined | undefined;
67
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
67
68
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
68
69
  popoverTarget?: string | undefined | undefined;
69
70
  inert?: boolean | undefined | undefined;
@@ -111,7 +112,6 @@ export declare const ChatPrimitives: {
111
112
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
112
113
  "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
113
114
  "aria-required"?: (boolean | "true" | "false") | undefined;
114
- "aria-roledescription"?: string | undefined | undefined;
115
115
  "aria-rowcount"?: number | undefined | undefined;
116
116
  "aria-rowindex"?: number | undefined | undefined;
117
117
  "aria-rowindextext"?: string | undefined | undefined;
@@ -123,7 +123,6 @@ export declare const ChatPrimitives: {
123
123
  "aria-valuemin"?: number | undefined | undefined;
124
124
  "aria-valuenow"?: number | undefined | undefined;
125
125
  "aria-valuetext"?: string | undefined | undefined;
126
- children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
127
126
  dangerouslySetInnerHTML?: {
128
127
  __html: string | TrustedHTML;
129
128
  } | undefined | undefined;
@@ -301,8 +300,6 @@ export declare const ChatPrimitives: {
301
300
  readonly Viewport: (props: ConversationContentProps) => import("react/jsx-runtime").JSX.Element;
302
301
  readonly ScrollToBottom: (props: ConversationScrollButtonProps) => false | import("react/jsx-runtime").JSX.Element;
303
302
  };
304
- //#endregion
305
- //#region src/components/chat-ui/components/ai-message.d.ts
306
303
  declare const recipe: import("@chakra-ui/react").SlotRecipeDefinition<"root" | "content", {
307
304
  from: {
308
305
  user: {
@@ -392,8 +389,6 @@ export declare const ChatMessage: {
392
389
  readonly Root: import("react").ForwardRefExoticComponent<MessageRootProps & import("react").RefAttributes<HTMLDivElement>>;
393
390
  readonly Content: import("react").ForwardRefExoticComponent<MessageContentProps & import("react").RefAttributes<HTMLDivElement>>;
394
391
  };
395
- //#endregion
396
- //#region src/components/chat-ui/components/approval-prompt.d.ts
397
392
  interface ApprovalPromptProps {
398
393
  toolName: string;
399
394
  toolInput?: unknown;
@@ -401,8 +396,6 @@ interface ApprovalPromptProps {
401
396
  onDeny: () => void;
402
397
  }
403
398
  export declare const ApprovalPrompt: (props: ApprovalPromptProps) => import("react/jsx-runtime").JSX.Element;
404
- //#endregion
405
- //#region src/components/chat-ui/components/attachment-list.d.ts
406
399
  type AttachmentListRenderBadge = (props: AttachmentListItemRenderProps) => ReactNode;
407
400
  interface AttachmentListItemRenderProps {
408
401
  attachmentId: string;
@@ -424,15 +417,11 @@ interface AttachmentListProps {
424
417
  *
425
418
  */
426
419
  export declare const AttachmentList: (props: AttachmentListProps) => import("react/jsx-runtime").JSX.Element | null;
427
- //#endregion
428
- //#region src/components/chat-ui/components/auto-scroll.d.ts
429
420
  interface AutoScrollProps {
430
421
  userMessageCount: number;
431
422
  conversationKey?: string | null;
432
423
  }
433
424
  export declare function AutoScroll(props: AutoScrollProps): null;
434
- //#endregion
435
- //#region src/components/chat-ui/components/chat-input-question-answers.d.ts
436
425
  interface ChatInputQuestionOption {
437
426
  label: string;
438
427
  description?: string;
@@ -456,8 +445,6 @@ interface ChatInputQuestionResponse {
456
445
  callId?: string;
457
446
  }
458
447
  type ChatInputQuestionCustomAnswers = Record<string, string>;
459
- //#endregion
460
- //#region src/components/chat-ui/components/chat-input-question-prompt.d.ts
461
448
  interface QuestionPromptControlsProps {
462
449
  isEditable: boolean;
463
450
  questionPrompt: ChatInputQuestionPrompt;
@@ -468,8 +455,6 @@ interface QuestionPromptControlsProps {
468
455
  onCustomAnswerChange: (question: ChatInputQuestion, questionIndex: number, answer: string) => void;
469
456
  }
470
457
  export declare const QuestionPromptControls: (props: QuestionPromptControlsProps) => import("react/jsx-runtime").JSX.Element;
471
- //#endregion
472
- //#region src/components/chat-ui/components/composer-decision.d.ts
473
458
  /** A native decision occupies the composer without submitting the saved draft. */
474
459
  interface ComposerDecision {
475
460
  id: string;
@@ -484,8 +469,6 @@ interface ComposerDecision {
484
469
  }[];
485
470
  onAction: (actionId: string) => void | Promise<void>;
486
471
  }
487
- //#endregion
488
- //#region src/components/chat-ui/components/chat-input.d.ts
489
472
  interface ChatInputProps {
490
473
  /**
491
474
  * Serialized editor state for the text to show. The editor adopts it whenever its text differs
@@ -527,8 +510,6 @@ interface ChatInputProps {
527
510
  commands?: PromptCommand[];
528
511
  }
529
512
  export declare const ChatInput: (props: ChatInputProps) => import("react/jsx-runtime").JSX.Element;
530
- //#endregion
531
- //#region src/components/chat-ui/components/message-types.d.ts
532
513
  type SessionMessageRole = "user" | "assistant" | "tool" | "system" | "developer";
533
514
  type TextPart = {
534
515
  type: "text";
@@ -642,11 +623,7 @@ type QueuedFollowUp = {
642
623
  }>;
643
624
  position?: number;
644
625
  };
645
- //#endregion
646
- //#region src/components/chat-ui/components/queued-follow-up-list-state.d.ts
647
626
  type QueuedFollowUpMoveDirection = "up" | "down";
648
- //#endregion
649
- //#region src/components/chat-ui/components/chat-panel.d.ts
650
627
  /** Full conversation shell for agent sessions, including messages, input, attachments, and host-provided slots. */
651
628
  interface ChatPanelProps extends ChatLinkProps {
652
629
  /** Stable conversation identity used to reset ready state when switching sessions. */
@@ -711,11 +688,7 @@ interface ChatPanelProps extends ChatLinkProps {
711
688
  chatInputCommands?: PromptCommand[];
712
689
  }
713
690
  export declare const ChatPanel: (props: ChatPanelProps) => import("react/jsx-runtime").JSX.Element;
714
- //#endregion
715
- //#region src/components/chat-ui/components/chat-skeleton.d.ts
716
691
  export declare const ChatSkeleton: () => import("react/jsx-runtime").JSX.Element;
717
- //#endregion
718
- //#region src/components/chat-ui/components/conversation-browse.d.ts
719
692
  interface ConversationBrowseItem {
720
693
  /** Turn id used to scroll the log to this user message. */
721
694
  id: string;
@@ -737,8 +710,6 @@ interface ConversationBrowseProps {
737
710
  * selects that turn. Hidden below a few messages, where a gutter costs space and buys nothing.
738
711
  */
739
712
  export declare const ConversationBrowse: (props: ConversationBrowseProps) => import("react/jsx-runtime").JSX.Element | null;
740
- //#endregion
741
- //#region src/components/chat-ui/components/harness-controls.d.ts
742
713
  interface HarnessAction {
743
714
  id: string;
744
715
  label: string;
@@ -783,16 +754,12 @@ interface HarnessControlsProps {
783
754
  onAction: (modeId: string, actionId: string, argument?: string, modeSnapshot?: HarnessMode) => Promise<void>;
784
755
  }
785
756
  export declare const HarnessControls: (props: HarnessControlsProps) => import("react/jsx-runtime").JSX.Element;
786
- //#endregion
787
- //#region src/components/chat-ui/components/send-button.d.ts
788
757
  interface SendButtonProps extends IconButtonProps {
789
758
  shortcut?: string;
790
759
  title?: string;
791
760
  canInterrupt: boolean;
792
761
  }
793
762
  export declare const SendButton: (props: SendButtonProps) => import("react/jsx-runtime").JSX.Element;
794
- //#endregion
795
- //#region src/components/chat-ui/components/use-question-prompt-state.d.ts
796
763
  /**
797
764
  * Holds what the person picked for the open question and derives what the form would send.
798
765
  * `resetToken` clears the picks whenever the composer itself is reset, such as a new draft.
@@ -810,8 +777,6 @@ export declare const useQuestionPromptState: (questionPrompt: ChatInputQuestionP
810
777
  hasMissingRequiredAnswer: boolean;
811
778
  buildAnswers: () => string[][];
812
779
  };
813
- //#endregion
814
- //#region src/components/chat-ui/components/workspace-hub.d.ts
815
780
  type WorkspaceHubStatus = "ready" | "loading" | "error";
816
781
  interface ChatWorkspaceHubProps {
817
782
  /** Workspace identity/selector shown at the start of the header (e.g. GitBranch + name). */
@@ -829,9 +794,6 @@ interface ChatWorkspaceHubProps {
829
794
  * being created or has failed. The open action recedes during setup.
830
795
  */
831
796
  export declare const ChatWorkspaceHub: (props: ChatWorkspaceHubProps) => import("react/jsx-runtime").JSX.Element;
832
- //#endregion
833
- //#region src/components/chat-ui/utils/editor-state.d.ts
834
797
  export declare const createSerializedPromptState: (input?: string) => string;
835
- //#endregion
836
798
  export { type AlertPart, type AutoScrollProps, type ChatInputProps, type ChatInputQuestion, type ChatInputQuestionCustomAnswers, type ChatInputQuestionOption, type ChatInputQuestionPrompt, type ChatInputQuestionResponse, type ChatLinkCandidate, type ChatLinkHandler, type ChatLinkProps, type ChatMessagePart, type ComposerDecision, type ConversationBrowseItem, type ConversationContentProps, type ConversationRootProps, type ConversationScrollButtonProps, type HarnessControlsProps, type MessageContentProps, type MessageRootProps, type QuestionPromptControlsProps, type QueuedFollowUp, type QueuedFollowUpMoveDirection, type SendButtonProps, type SessionMessage, type SessionMessagePart, type ToolPart, isGuessedChatLink, parseChatLink };
837
799
  export {};