@arbidocs/blocks 0.4.106 → 0.4.108

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 (67) hide show
  1. package/bin/arbidocs-render-take.mjs +27 -0
  2. package/dist/NativeDocxEditor-UAZUKZ77.js +10 -0
  3. package/dist/NativeDocxEditor-UAZUKZ77.js.map +1 -0
  4. package/dist/NativeDocxEditor-YX7B7OFH.cjs +31 -0
  5. package/dist/NativeDocxEditor-YX7B7OFH.cjs.map +1 -0
  6. package/dist/{chunk-W2RTZOK3.js → chunk-A2MN2ZLX.js} +1750 -1779
  7. package/dist/chunk-A2MN2ZLX.js.map +1 -0
  8. package/dist/{chunk-3R6XBYL7.cjs → chunk-DTBSGG36.cjs} +7 -2
  9. package/dist/chunk-DTBSGG36.cjs.map +1 -0
  10. package/dist/{chunk-4GFB5U3K.js → chunk-EGDWNEAG.js} +4 -3
  11. package/dist/chunk-EGDWNEAG.js.map +1 -0
  12. package/dist/chunk-GYAUJ4KT.js +71 -0
  13. package/dist/chunk-GYAUJ4KT.js.map +1 -0
  14. package/dist/{chunk-PIT2YZCK.js → chunk-JQVPGMLU.js} +3 -3
  15. package/dist/{chunk-PIT2YZCK.js.map → chunk-JQVPGMLU.js.map} +1 -1
  16. package/dist/{chunk-LGX6UFYG.js → chunk-P2KPDPFF.js} +8 -3
  17. package/dist/chunk-P2KPDPFF.js.map +1 -0
  18. package/dist/{chunk-ZWWN4CUL.cjs → chunk-QT6EGMAJ.cjs} +1748 -1778
  19. package/dist/chunk-QT6EGMAJ.cjs.map +1 -0
  20. package/dist/chunk-S24XEVPS.cjs +73 -0
  21. package/dist/chunk-S24XEVPS.cjs.map +1 -0
  22. package/dist/{chunk-TP3FAP5J.cjs → chunk-TTXK62YI.cjs} +5 -5
  23. package/dist/{chunk-TP3FAP5J.cjs.map → chunk-TTXK62YI.cjs.map} +1 -1
  24. package/dist/{chunk-7LLLQUM7.cjs → chunk-ZYSY4L5L.cjs} +6 -5
  25. package/dist/chunk-ZYSY4L5L.cjs.map +1 -0
  26. package/dist/collaboration/index.cjs +15 -15
  27. package/dist/collaboration/index.js +1 -1
  28. package/dist/collaboration/mail/MailMessageView.d.ts +3 -1
  29. package/dist/connect/docx.cjs +7 -6
  30. package/dist/connect/docx.cjs.map +1 -1
  31. package/dist/connect/docx.js +5 -4
  32. package/dist/connect/docx.js.map +1 -1
  33. package/dist/connect/index.cjs +368 -52
  34. package/dist/connect/index.cjs.map +1 -1
  35. package/dist/connect/index.js +356 -41
  36. package/dist/connect/index.js.map +1 -1
  37. package/dist/connection/mail/ConnectedMailComposer.d.ts +12 -2
  38. package/dist/connection/mail/ConnectedMailMessage.d.ts +19 -0
  39. package/dist/connection/mail/ConnectedMailbox.d.ts +7 -3
  40. package/dist/connection/mail/MailComposerForm.d.ts +12 -2
  41. package/dist/connection/mail/index.d.ts +2 -1
  42. package/dist/connection/mail/types.d.ts +15 -0
  43. package/dist/connection/mail/useWordBody.d.ts +48 -0
  44. package/dist/docx/NativeDocxEditor.d.ts +9 -1
  45. package/dist/docx/index.cjs +51 -50
  46. package/dist/docx/index.cjs.map +1 -1
  47. package/dist/docx/index.js +4 -3
  48. package/dist/docx/index.js.map +1 -1
  49. package/dist/docx/template/HouseTemplate.d.ts +5 -0
  50. package/dist/index.cjs +15 -15
  51. package/dist/index.js +1 -1
  52. package/dist/record/index.cjs +307 -66
  53. package/dist/record/index.cjs.map +1 -1
  54. package/dist/record/index.d.ts +145 -26
  55. package/dist/record/index.js +301 -67
  56. package/dist/record/index.js.map +1 -1
  57. package/node_modules/@arbidocs/coedit/package.json +1 -1
  58. package/package.json +8 -5
  59. package/record/render-overlays.mjs +152 -0
  60. package/record/render-take.py +985 -0
  61. package/src/docx/styles.css +22 -0
  62. package/dist/chunk-3R6XBYL7.cjs.map +0 -1
  63. package/dist/chunk-4GFB5U3K.js.map +0 -1
  64. package/dist/chunk-7LLLQUM7.cjs.map +0 -1
  65. package/dist/chunk-LGX6UFYG.js.map +0 -1
  66. package/dist/chunk-W2RTZOK3.js.map +0 -1
  67. package/dist/chunk-ZWWN4CUL.cjs.map +0 -1
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var react = require('@docx-editor.dev/react');
5
+
6
+ // src/docx/fonts.ts
7
+ var loaded = /* @__PURE__ */ new Map();
8
+ function loadDocxFonts(baseUrl = "/native-docx/fonts") {
9
+ let promise = loaded.get(baseUrl);
10
+ if (!promise) {
11
+ promise = loadFonts(baseUrl).catch((error) => {
12
+ loaded.delete(baseUrl);
13
+ throw error;
14
+ });
15
+ loaded.set(baseUrl, promise);
16
+ }
17
+ return promise;
18
+ }
19
+ async function loadFonts(baseUrl) {
20
+ const families = ["Liberation Serif", "Liberation Sans", "Liberation Mono"];
21
+ const variants = [
22
+ { suffix: "Regular", weight: 400, style: "normal" },
23
+ { suffix: "Bold", weight: 700, style: "normal" },
24
+ { suffix: "Italic", weight: 400, style: "italic" },
25
+ { suffix: "BoldItalic", weight: 700, style: "italic" }
26
+ ];
27
+ const sources = await Promise.all(
28
+ families.flatMap(
29
+ (family) => variants.map(async (face) => {
30
+ const r = await fetch(
31
+ `${baseUrl.replace(/\/$/, "")}/${family.replace(" ", "")}-${face.suffix}.ttf`
32
+ );
33
+ if (!r.ok) throw new Error(`Could not load the document font ${family}.`);
34
+ const result = react.createFontSource(new Uint8Array(await r.arrayBuffer()), {
35
+ family,
36
+ weight: face.weight,
37
+ style: face.style
38
+ });
39
+ if ("failure" in result)
40
+ throw new Error(`Could not initialize the document font ${family}.`);
41
+ return result.source;
42
+ })
43
+ )
44
+ );
45
+ const aliases = {
46
+ "Times New Roman": "Liberation Serif",
47
+ Cambria: "Liberation Serif",
48
+ "DejaVu Serif": "Liberation Serif",
49
+ Calibri: "Liberation Sans",
50
+ Aptos: "Liberation Sans",
51
+ Arial: "Liberation Sans",
52
+ Helvetica: "Liberation Sans",
53
+ "Courier New": "Liberation Mono",
54
+ "DejaVu Sans Mono": "Liberation Mono"
55
+ };
56
+ return {
57
+ epoch: 1,
58
+ maxFontBytes: 12 * 1024 * 1024,
59
+ sources,
60
+ defaultFont: { family: "Liberation Serif", sizeHalfPoints: 22 },
61
+ supportedFamilies: [...families, ...Object.keys(aliases)],
62
+ substitutions: Object.entries(aliases).flatMap(
63
+ ([from, to]) => variants.map((face) => ({
64
+ from: { family: from, weight: face.weight, style: face.style },
65
+ to: { family: to, weight: face.weight, style: face.style }
66
+ }))
67
+ )
68
+ };
69
+ }
70
+
71
+ exports.loadDocxFonts = loadDocxFonts;
72
+ //# sourceMappingURL=chunk-S24XEVPS.cjs.map
73
+ //# sourceMappingURL=chunk-S24XEVPS.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/docx/fonts.ts"],"names":["createFontSource"],"mappings":";;;;;AACA,IAAM,MAAA,uBAAa,GAAA,EAAwC;AACpD,SAAS,aAAA,CAAc,UAAU,oBAAA,EAAkD;AACxF,EAAA,IAAI,OAAA,GAAU,MAAA,CAAO,GAAA,CAAI,OAAO,CAAA;AAChC,EAAA,IAAI,CAAC,OAAA,EAAS;AACZ,IAAA,OAAA,GAAU,SAAA,CAAU,OAAO,CAAA,CAAE,KAAA,CAAM,CAAC,KAAA,KAAU;AAC5C,MAAA,MAAA,CAAO,OAAO,OAAO,CAAA;AACrB,MAAA,MAAM,KAAA;AAAA,IACR,CAAC,CAAA;AACD,IAAA,MAAA,CAAO,GAAA,CAAI,SAAS,OAAO,CAAA;AAAA,EAC7B;AACA,EAAA,OAAO,OAAA;AACT;AACA,eAAe,UAAU,OAAA,EAA6C;AACpE,EAAA,MAAM,QAAA,GAAW,CAAC,kBAAA,EAAoB,iBAAA,EAAmB,iBAAiB,CAAA;AAC1E,EAAA,MAAM,QAAA,GAAW;AAAA,IACf,EAAE,MAAA,EAAQ,SAAA,EAAW,MAAA,EAAQ,GAAA,EAAK,OAAO,QAAA,EAAS;AAAA,IAClD,EAAE,MAAA,EAAQ,MAAA,EAAQ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EAAgB,kBAAA;AAAA,IAChB,OAAA,EAAS,iBAAA;AAAA,IACT,KAAA,EAAO,iBAAA;AAAA,IACP,KAAA,EAAO,iBAAA;AAAA,IACP,SAAA,EAAW,iBAAA;AAAA,IACX,aAAA,EAAe,iBAAA;AAAA,IACf,kBAAA,EAAoB;AAAA,GACtB;AACA,EAAA,OAAO;AAAA,IACL,KAAA,EAAO,CAAA;AAAA,IACP,YAAA,EAAc,KAAK,IAAA,GAAO,IAAA;AAAA,IAC1B,OAAA;AAAA,IACA,WAAA,EAAa,EAAE,MAAA,EAAQ,kBAAA,EAAoB,gBAAgB,EAAA,EAAG;AAAA,IAC9D,iBAAA,EAAmB,CAAC,GAAG,QAAA,EAAU,GAAG,MAAA,CAAO,IAAA,CAAK,OAAO,CAAC,CAAA;AAAA,IACxD,aAAA,EAAe,MAAA,CAAO,OAAA,CAAQ,OAAO,CAAA,CAAE,OAAA;AAAA,MAAQ,CAAC,CAAC,IAAA,EAAM,EAAE,MACvD,QAAA,CAAS,GAAA,CAAI,CAAC,IAAA,MAAU;AAAA,QACtB,IAAA,EAAM,EAAE,MAAA,EAAQ,IAAA,EAAM,QAAQ,IAAA,CAAK,MAAA,EAAQ,KAAA,EAAO,IAAA,CAAK,KAAA,EAAM;AAAA,QAC7D,EAAA,EAAI,EAAE,MAAA,EAAQ,EAAA,EAAI,QAAQ,IAAA,CAAK,MAAA,EAAQ,KAAA,EAAO,IAAA,CAAK,KAAA;AAAM,OAC3D,CAAE;AAAA;AACJ,GACF;AACF","file":"chunk-S24XEVPS.cjs","sourcesContent":["import { createFontSource, type FontConfiguration } from '@docx-editor.dev/react'\nconst loaded = new Map<string, Promise<FontConfiguration>>()\nexport function loadDocxFonts(baseUrl = '/native-docx/fonts'): Promise<FontConfiguration> {\n let promise = loaded.get(baseUrl)\n if (!promise) {\n promise = loadFonts(baseUrl).catch((error) => {\n loaded.delete(baseUrl)\n throw error\n })\n loaded.set(baseUrl, promise)\n }\n return promise\n}\nasync function loadFonts(baseUrl: string): Promise<FontConfiguration> {\n const families = ['Liberation Serif', 'Liberation Sans', 'Liberation Mono']\n const variants = [\n { suffix: 'Regular', weight: 400, style: 'normal' },\n { suffix: 'Bold', weight: 700, style: 'normal' },\n { suffix: 'Italic', weight: 400, style: 'italic' },\n { suffix: 'BoldItalic', weight: 700, style: 'italic' },\n ] as const\n const sources = await Promise.all(\n families.flatMap((family) =>\n variants.map(async (face) => {\n const r = await fetch(\n `${baseUrl.replace(/\\/$/, '')}/${family.replace(' ', '')}-${face.suffix}.ttf`\n )\n if (!r.ok) throw new Error(`Could not load the document font ${family}.`)\n const result = createFontSource(new Uint8Array(await r.arrayBuffer()), {\n family,\n weight: face.weight,\n style: face.style,\n })\n if ('failure' in result)\n throw new Error(`Could not initialize the document font ${family}.`)\n return result.source\n })\n )\n )\n const aliases: Record<string, string> = {\n 'Times New Roman': 'Liberation Serif',\n Cambria: 'Liberation Serif',\n 'DejaVu Serif': 'Liberation Serif',\n Calibri: 'Liberation Sans',\n Aptos: 'Liberation Sans',\n Arial: 'Liberation Sans',\n Helvetica: 'Liberation Sans',\n 'Courier New': 'Liberation Mono',\n 'DejaVu Sans Mono': 'Liberation Mono',\n }\n return {\n epoch: 1,\n maxFontBytes: 12 * 1024 * 1024,\n sources,\n defaultFont: { family: 'Liberation Serif', sizeHalfPoints: 22 },\n supportedFamilies: [...families, ...Object.keys(aliases)],\n substitutions: Object.entries(aliases).flatMap(([from, to]) =>\n variants.map((face) => ({\n from: { family: from, weight: face.weight, style: face.style },\n to: { family: to, weight: face.weight, style: face.style },\n }))\n ),\n }\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkZWWN4CUL_cjs = require('./chunk-ZWWN4CUL.cjs');
4
+ var chunkQT6EGMAJ_cjs = require('./chunk-QT6EGMAJ.cjs');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
7
7
  function StreamedWordArtifact({
@@ -15,7 +15,7 @@ function StreamedWordArtifact({
15
15
  }) {
16
16
  if (!busy && documentId) {
17
17
  return /* @__PURE__ */ jsxRuntime.jsx(
18
- chunkZWWN4CUL_cjs.NativeDocxEditor,
18
+ chunkQT6EGMAJ_cjs.NativeDocxEditor,
19
19
  {
20
20
  adapter,
21
21
  documentId,
@@ -26,7 +26,7 @@ function StreamedWordArtifact({
26
26
  );
27
27
  }
28
28
  return /* @__PURE__ */ jsxRuntime.jsx(
29
- chunkZWWN4CUL_cjs.NativeDocxEditor,
29
+ chunkQT6EGMAJ_cjs.NativeDocxEditor,
30
30
  {
31
31
  adapter,
32
32
  documentId: "stream-preview",
@@ -39,5 +39,5 @@ function StreamedWordArtifact({
39
39
  }
40
40
 
41
41
  exports.StreamedWordArtifact = StreamedWordArtifact;
42
- //# sourceMappingURL=chunk-TP3FAP5J.cjs.map
43
- //# sourceMappingURL=chunk-TP3FAP5J.cjs.map
42
+ //# sourceMappingURL=chunk-TTXK62YI.cjs.map
43
+ //# sourceMappingURL=chunk-TTXK62YI.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/docx/StreamedWordArtifact.tsx"],"names":["jsx","NativeDocxEditor"],"mappings":";;;;;AAmBO,SAAS,oBAAA,CAAqB;AAAA,EACnC,OAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,EAA8B;AAC5B,EAAA,IAAI,CAAC,QAAQ,UAAA,EAAY;AACvB,IAAA,uBACEA,cAAA;AAAA,MAACC,kCAAA;AAAA,MAAA;AAAA,QAEC,OAAA;AAAA,QACA,UAAA;AAAA,QACA,KAAA;AAAA,QACA;AAAA,OAAA;AAAA,MAJK;AAAA,KAKP;AAAA,EAEJ;AACA,EAAA,uBACED,cAAA;AAAA,IAACC,kCAAA;AAAA,IAAA;AAAA,MAEC,OAAA;AAAA,MACA,UAAA,EAAW,gBAAA;AAAA,MACX,KAAA;AAAA,MACA,YAAA,EAAa,EAAA;AAAA,MACb,MAAA,EAAQ,EAAE,OAAA,EAAS,IAAA,EAAM,KAAA;AAAM,KAAA;AAAA,IAL3B;AAAA,GAMN;AAEJ","file":"chunk-TP3FAP5J.cjs","sourcesContent":["import { NativeDocxEditor, type NativeDocxAdapter } from './NativeDocxEditor'\n\nexport interface StreamedWordArtifactProps {\n adapter: NativeDocxAdapter\n /** Streamed Markdown, shown as a read-only preview while the draft is generated. */\n content: string\n title: string\n busy: boolean\n error?: string | null\n /** The DOCX draft the server stored for this generation (`doc-…`), once known. */\n documentId?: string\n onSaved?: (documentId: string) => void\n}\n\n/**\n * One drafting surface for an AI document draft. The server stores every draft as DOCX, so\n * this component never creates a document: it previews the streamed Markdown until generation\n * ends and the stored DOCX is known, then opens that DOCX in the live collaborative editor.\n */\nexport function StreamedWordArtifact({\n adapter,\n content,\n title,\n busy,\n error,\n documentId,\n onSaved,\n}: StreamedWordArtifactProps) {\n if (!busy && documentId) {\n return (\n <NativeDocxEditor\n key={documentId}\n adapter={adapter}\n documentId={documentId}\n title={title}\n onSaved={onSaved}\n />\n )\n }\n return (\n <NativeDocxEditor\n key=\"stream-preview\"\n adapter={adapter}\n documentId=\"stream-preview\"\n title={title}\n draftContent=\"\"\n stream={{ content, busy, error }}\n />\n )\n}\n"]}
1
+ {"version":3,"sources":["../src/docx/StreamedWordArtifact.tsx"],"names":["jsx","NativeDocxEditor"],"mappings":";;;;;AAmBO,SAAS,oBAAA,CAAqB;AAAA,EACnC,OAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,EAA8B;AAC5B,EAAA,IAAI,CAAC,QAAQ,UAAA,EAAY;AACvB,IAAA,uBACEA,cAAA;AAAA,MAACC,kCAAA;AAAA,MAAA;AAAA,QAEC,OAAA;AAAA,QACA,UAAA;AAAA,QACA,KAAA;AAAA,QACA;AAAA,OAAA;AAAA,MAJK;AAAA,KAKP;AAAA,EAEJ;AACA,EAAA,uBACED,cAAA;AAAA,IAACC,kCAAA;AAAA,IAAA;AAAA,MAEC,OAAA;AAAA,MACA,UAAA,EAAW,gBAAA;AAAA,MACX,KAAA;AAAA,MACA,YAAA,EAAa,EAAA;AAAA,MACb,MAAA,EAAQ,EAAE,OAAA,EAAS,IAAA,EAAM,KAAA;AAAM,KAAA;AAAA,IAL3B;AAAA,GAMN;AAEJ","file":"chunk-TTXK62YI.cjs","sourcesContent":["import { NativeDocxEditor, type NativeDocxAdapter } from './NativeDocxEditor'\n\nexport interface StreamedWordArtifactProps {\n adapter: NativeDocxAdapter\n /** Streamed Markdown, shown as a read-only preview while the draft is generated. */\n content: string\n title: string\n busy: boolean\n error?: string | null\n /** The DOCX draft the server stored for this generation (`doc-…`), once known. */\n documentId?: string\n onSaved?: (documentId: string) => void\n}\n\n/**\n * One drafting surface for an AI document draft. The server stores every draft as DOCX, so\n * this component never creates a document: it previews the streamed Markdown until generation\n * ends and the stored DOCX is known, then opens that DOCX in the live collaborative editor.\n */\nexport function StreamedWordArtifact({\n adapter,\n content,\n title,\n busy,\n error,\n documentId,\n onSaved,\n}: StreamedWordArtifactProps) {\n if (!busy && documentId) {\n return (\n <NativeDocxEditor\n key={documentId}\n adapter={adapter}\n documentId={documentId}\n title={title}\n onSaved={onSaved}\n />\n )\n }\n return (\n <NativeDocxEditor\n key=\"stream-preview\"\n adapter={adapter}\n documentId=\"stream-preview\"\n title={title}\n draftContent=\"\"\n stream={{ content, busy, error }}\n />\n )\n}\n"]}
@@ -2,7 +2,8 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkMUMH3Z6K_cjs = require('./chunk-MUMH3Z6K.cjs');
5
- var chunkZWWN4CUL_cjs = require('./chunk-ZWWN4CUL.cjs');
5
+ var chunkS24XEVPS_cjs = require('./chunk-S24XEVPS.cjs');
6
+ var chunkQT6EGMAJ_cjs = require('./chunk-QT6EGMAJ.cjs');
6
7
  var react$1 = require('react');
7
8
  var reactQuery = require('@tanstack/react-query');
8
9
  var react = require('@arbidocs/react');
@@ -13,7 +14,7 @@ function ConnectedNativeDocxEditor({
13
14
  ...props
14
15
  }) {
15
16
  const adapter = useConnectedNativeDocxAdapter(fontBaseUrl);
16
- return /* @__PURE__ */ jsxRuntime.jsx(chunkZWWN4CUL_cjs.NativeDocxEditor, { ...props, adapter });
17
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkQT6EGMAJ_cjs.NativeDocxEditor, { ...props, adapter });
17
18
  }
18
19
  function useConnectedNativeDocxAdapter(fontBaseUrl = "/native-docx/fonts") {
19
20
  const arbi = react.useArbi();
@@ -42,7 +43,7 @@ function useConnectedNativeDocxAdapter(fontBaseUrl = "/native-docx/fonts") {
42
43
  headers: { "Content-Type": "application/json" },
43
44
  body: JSON.stringify({ state })
44
45
  })).json(),
45
- loadFonts: () => chunkZWWN4CUL_cjs.loadDocxFonts(fontBaseUrl),
46
+ loadFonts: () => chunkS24XEVPS_cjs.loadDocxFonts(fontBaseUrl),
46
47
  baseUrl: apiUrl,
47
48
  author: user?.name || "You",
48
49
  onVersionSaved: async (id) => {
@@ -91,5 +92,5 @@ function useConnectedNativeDocxAdapter(fontBaseUrl = "/native-docx/fonts") {
91
92
 
92
93
  exports.ConnectedNativeDocxEditor = ConnectedNativeDocxEditor;
93
94
  exports.useConnectedNativeDocxAdapter = useConnectedNativeDocxAdapter;
94
- //# sourceMappingURL=chunk-7LLLQUM7.cjs.map
95
- //# sourceMappingURL=chunk-7LLLQUM7.cjs.map
95
+ //# sourceMappingURL=chunk-ZYSY4L5L.cjs.map
96
+ //# sourceMappingURL=chunk-ZYSY4L5L.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/connection/ConnectedNativeDocxEditor.tsx"],"names":["jsx","NativeDocxEditor","useArbi","useConnection","useQueryClient","useQuery","useMemo","loadDocxFonts","arbiQueryKeys","notify"],"mappings":";;;;;;;;;;AAYO,SAAS,yBAAA,CAA0B;AAAA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AAgB,MAAM,KAAK,SAAA,CAAU,WAAA,CAAY,UAAU,CAAA,EAAG;AAAA,KACvF,CAAA;AAAA,IACA,CAAC,MAAM,MAAA,EAAQ,IAAA,EAAM,MAAM,OAAA,EAAS,mBAAA,EAAqB,WAAA,EAAa,OAAA,EAAS,WAAW;AAAA,GAC5F;AACA,EAAA,OAAO,OAAA;AACT","file":"chunk-ZYSY4L5L.cjs","sourcesContent":["import { useMemo } from 'react'\nimport { useQuery, useQueryClient } from '@tanstack/react-query'\nimport { useArbi, notify, arbiQueryKeys } from '@arbidocs/react'\nimport { useConnection } from './ConnectionProvider'\nimport {\n NativeDocxEditor,\n type NativeDocxAdapter,\n type NativeDocxEditorProps,\n} from '../docx/NativeDocxEditor'\nimport { loadDocxFonts } from '../docx/fonts'\n\n/** Native Word widget bound to the standard blocks connection and SDK session. */\nexport function ConnectedNativeDocxEditor({\n fontBaseUrl = '/native-docx/fonts',\n ...props\n}: Omit<NativeDocxEditorProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <NativeDocxEditor {...props} adapter={adapter} />\n}\n\nexport function useConnectedNativeDocxAdapter(fontBaseUrl = '/native-docx/fonts') {\n const arbi = useArbi()\n const { workspaceId, apiUrl, user, ensureWorkspaceOpen } = useConnection()\n const queries = useQueryClient()\n const { data: members } = useQuery({\n queryKey: ['native-docx-members', apiUrl, user?.externalId, workspaceId],\n enabled: arbi.isLoggedIn && !!workspaceId,\n queryFn: async () => {\n await ensureWorkspaceOpen()\n return arbi.workspaces.listUsers()\n },\n })\n const adapter = useMemo<NativeDocxAdapter>(\n () => ({\n request: async (path, options) => {\n await ensureWorkspaceOpen()\n return arbi.editor.request(path, options)\n },\n open: async (id) => {\n await ensureWorkspaceOpen()\n return (\n await arbi.editor.request(`/${encodeURIComponent(id)}/session`, { method: 'POST' })\n ).json()\n },\n save: async (id, state) =>\n (\n await arbi.editor.request(`/${encodeURIComponent(id)}/save`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ state }),\n })\n ).json(),\n loadFonts: () => loadDocxFonts(fontBaseUrl),\n baseUrl: apiUrl,\n author: user?.name || 'You',\n onVersionSaved: async (id) => {\n if (!workspaceId) return\n const key = arbiQueryKeys.documents(workspaceId)\n try {\n const documents = await arbi.documents.get([id])\n if (!documents.length) throw new Error('The saved version is not available yet.')\n queries.setQueryData<Awaited<ReturnType<typeof arbi.documents.list>>>(key, (previous) => [\n ...documents,\n ...(previous || []).filter(\n (doc) => !documents.some((saved) => saved.external_id === doc.external_id)\n ),\n ])\n } catch {\n await queries.invalidateQueries({ queryKey: key })\n }\n },\n notify: (message, kind) => notify[kind](message),\n mentions: members?.map(({ user: member }) => ({\n id: member.external_id,\n name: [member.given_name, member.family_name].filter(Boolean).join(' '),\n kind: member.external_id.startsWith('agt-') ? 'agent' : 'human',\n })),\n requestAgent: async (id, request) => {\n const response = await arbi.editor.request(`/${encodeURIComponent(id)}/mentions`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n comment_id: request.commentId,\n instruction: request.instruction,\n request_id: request.requestId,\n recipient_ids: request.recipientIds,\n }),\n })\n const delivery = (await response.json()) as { response_ids: string[] }\n notify.success('Mention delivered.')\n return { responseIds: delivery.response_ids || [] }\n },\n getAgentStatus: async (responseId) => (await arbi.assistant.getResponse(responseId)).status,\n }),\n [arbi, apiUrl, user?.name, members, ensureWorkspaceOpen, fontBaseUrl, queries, workspaceId]\n )\n return adapter\n}\n"]}
@@ -3,7 +3,7 @@
3
3
 
4
4
  var chunkC2HRZSAT_cjs = require('../chunk-C2HRZSAT.cjs');
5
5
  require('../chunk-7G2LJMUG.cjs');
6
- var chunk3R6XBYL7_cjs = require('../chunk-3R6XBYL7.cjs');
6
+ var chunkDTBSGG36_cjs = require('../chunk-DTBSGG36.cjs');
7
7
  var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
8
8
  require('../chunk-ULWRNGGE.cjs');
9
9
  require('../chunk-IXALYQT7.cjs');
@@ -175,59 +175,59 @@ Object.defineProperty(exports, "vCardFilename", {
175
175
  });
176
176
  Object.defineProperty(exports, "MailDeliveryBadge", {
177
177
  enumerable: true,
178
- get: function () { return chunk3R6XBYL7_cjs.MailDeliveryBadge; }
178
+ get: function () { return chunkDTBSGG36_cjs.MailDeliveryBadge; }
179
179
  });
180
180
  Object.defineProperty(exports, "MailDeliveryList", {
181
181
  enumerable: true,
182
- get: function () { return chunk3R6XBYL7_cjs.MailDeliveryList; }
182
+ get: function () { return chunkDTBSGG36_cjs.MailDeliveryList; }
183
183
  });
184
184
  Object.defineProperty(exports, "MailDocumentPicker", {
185
185
  enumerable: true,
186
- get: function () { return chunk3R6XBYL7_cjs.MailDocumentPicker; }
186
+ get: function () { return chunkDTBSGG36_cjs.MailDocumentPicker; }
187
187
  });
188
188
  Object.defineProperty(exports, "MailGrid", {
189
189
  enumerable: true,
190
- get: function () { return chunk3R6XBYL7_cjs.MailGrid; }
190
+ get: function () { return chunkDTBSGG36_cjs.MailGrid; }
191
191
  });
192
192
  Object.defineProperty(exports, "MailMessagePreview", {
193
193
  enumerable: true,
194
- get: function () { return chunk3R6XBYL7_cjs.MailMessagePreview; }
194
+ get: function () { return chunkDTBSGG36_cjs.MailMessagePreview; }
195
195
  });
196
196
  Object.defineProperty(exports, "MailMessageView", {
197
197
  enumerable: true,
198
- get: function () { return chunk3R6XBYL7_cjs.MailMessageView; }
198
+ get: function () { return chunkDTBSGG36_cjs.MailMessageView; }
199
199
  });
200
200
  Object.defineProperty(exports, "NEEDS_CONNECTION", {
201
201
  enumerable: true,
202
- get: function () { return chunk3R6XBYL7_cjs.NEEDS_CONNECTION; }
202
+ get: function () { return chunkDTBSGG36_cjs.NEEDS_CONNECTION; }
203
203
  });
204
204
  Object.defineProperty(exports, "PlainMailBodyEditor", {
205
205
  enumerable: true,
206
- get: function () { return chunk3R6XBYL7_cjs.PlainMailBodyEditor; }
206
+ get: function () { return chunkDTBSGG36_cjs.PlainMailBodyEditor; }
207
207
  });
208
208
  Object.defineProperty(exports, "draftMailCompose", {
209
209
  enumerable: true,
210
- get: function () { return chunk3R6XBYL7_cjs.draftMailCompose; }
210
+ get: function () { return chunkDTBSGG36_cjs.draftMailCompose; }
211
211
  });
212
212
  Object.defineProperty(exports, "emptyMailCompose", {
213
213
  enumerable: true,
214
- get: function () { return chunk3R6XBYL7_cjs.emptyMailCompose; }
214
+ get: function () { return chunkDTBSGG36_cjs.emptyMailCompose; }
215
215
  });
216
216
  Object.defineProperty(exports, "hasCalendarPart", {
217
217
  enumerable: true,
218
- get: function () { return chunk3R6XBYL7_cjs.hasCalendarPart; }
218
+ get: function () { return chunkDTBSGG36_cjs.hasCalendarPart; }
219
219
  });
220
220
  Object.defineProperty(exports, "mailAddressLabel", {
221
221
  enumerable: true,
222
- get: function () { return chunk3R6XBYL7_cjs.mailAddressLabel; }
222
+ get: function () { return chunkDTBSGG36_cjs.mailAddressLabel; }
223
223
  });
224
224
  Object.defineProperty(exports, "parseMailRecipients", {
225
225
  enumerable: true,
226
- get: function () { return chunk3R6XBYL7_cjs.parseMailRecipients; }
226
+ get: function () { return chunkDTBSGG36_cjs.parseMailRecipients; }
227
227
  });
228
228
  Object.defineProperty(exports, "replyMailCompose", {
229
229
  enumerable: true,
230
- get: function () { return chunk3R6XBYL7_cjs.replyMailCompose; }
230
+ get: function () { return chunkDTBSGG36_cjs.replyMailCompose; }
231
231
  });
232
232
  Object.defineProperty(exports, "DEFAULT_SHARE_CONTROL_LABELS", {
233
233
  enumerable: true,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  export { ActionMenu, AddContactsForm, AddContactsResults, ContactCard, DEFAULT_ADD_CONTACTS_LABELS, DEFAULT_CONTACT_CARD_LABELS, DEFAULT_CONTACT_OUTCOME_LABELS, DEFAULT_DM_ACCESS_REQUEST_BANNER_LABELS, DEFAULT_DM_GRANT_ACCESS_DIALOG_LABELS, DEFAULT_DM_INVITE_CHIP_LABELS, DEFAULT_DM_THREAD_FRAME_LABELS, DEFAULT_MAIL_FOLDER_TREE_LABELS, DEFAULT_RECIPIENT_PICKER_LABELS, DmAccessRequestBanner, DmGrantAccessDialogView, DmInviteAvatar, DmInviteChip, DmNewTabIcon, DmThreadFrame, DmThreadHeader, MAX_INVITE_EMAILS, MailFolderTree, MemberBulkActions, MemberListLoading, MemberMutedText, MemberNameCell, MemberRoleCell, RecipientPicker, RoleSelect, WorkspaceDeleteButton, buildMailFolderTree, contactToVCard, descendantFolderIds, downloadVCard, isInboxFolder, parseEmails, toAddContactsRow, toAddContactsRows, toggleMailFolder, vCardFilename } from '../chunk-7C35WXYB.js';
3
3
  import '../chunk-NBV56SGU.js';
4
- export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose } from '../chunk-LGX6UFYG.js';
4
+ export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose } from '../chunk-P2KPDPFF.js';
5
5
  export { DEFAULT_SHARE_CONTROL_LABELS, ShareControl } from '../chunk-K4BGOPGG.js';
6
6
  import '../chunk-TX2ZICS7.js';
7
7
  import '../chunk-ZPLG7QYF.js';
@@ -13,6 +13,8 @@ export interface MailMessageViewProps {
13
13
  onBack: () => void;
14
14
  onEditDraft: () => void;
15
15
  onReply: (forward?: boolean, all?: boolean) => void;
16
+ /** Ask ARBI to draft the reply (in a chat beside it). Absent: not offered. */
17
+ onReplyWithArbi?: () => void;
16
18
  onUpdate: (body: MailMessageUpdate) => void;
17
19
  onDownloadAttachment: (attachment: MailAttachment) => void;
18
20
  onDownloadOriginal: () => void;
@@ -24,4 +26,4 @@ export interface MailMessageViewProps {
24
26
  renderInvite?: () => ReactNode;
25
27
  }
26
28
  /** An opened message: its actions, sender, recipients, delivery, attachments and body. */
27
- export declare function MailMessageView({ account, message, folderRole, folders, isOnline, loading, uploadPending, onBack, onEditDraft, onReply, onUpdate, onDownloadAttachment, onDownloadOriginal, onSaveToWorkspace, personLabel, renderInvite, }: MailMessageViewProps): import("react").JSX.Element;
29
+ export declare function MailMessageView({ account, message, folderRole, folders, isOnline, loading, uploadPending, onBack, onEditDraft, onReply, onReplyWithArbi, onUpdate, onDownloadAttachment, onDownloadOriginal, onSaveToWorkspace, personLabel, renderInvite, }: MailMessageViewProps): import("react").JSX.Element;
@@ -1,10 +1,11 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk7LLLQUM7_cjs = require('../chunk-7LLLQUM7.cjs');
4
+ var chunkZYSY4L5L_cjs = require('../chunk-ZYSY4L5L.cjs');
5
5
  require('../chunk-MUMH3Z6K.cjs');
6
- var chunkTP3FAP5J_cjs = require('../chunk-TP3FAP5J.cjs');
7
- require('../chunk-ZWWN4CUL.cjs');
6
+ var chunkTTXK62YI_cjs = require('../chunk-TTXK62YI.cjs');
7
+ require('../chunk-S24XEVPS.cjs');
8
+ require('../chunk-QT6EGMAJ.cjs');
8
9
  require('../chunk-5FYU7ZIU.cjs');
9
10
  require('../chunk-2A4MDHJR.cjs');
10
11
  require('../chunk-RC25WMVB.cjs');
@@ -17,13 +18,13 @@ function ConnectedStreamedWordArtifact({
17
18
  fontBaseUrl,
18
19
  ...props
19
20
  }) {
20
- const adapter = chunk7LLLQUM7_cjs.useConnectedNativeDocxAdapter(fontBaseUrl);
21
- return /* @__PURE__ */ jsxRuntime.jsx(chunkTP3FAP5J_cjs.StreamedWordArtifact, { ...props, adapter });
21
+ const adapter = chunkZYSY4L5L_cjs.useConnectedNativeDocxAdapter(fontBaseUrl);
22
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkTTXK62YI_cjs.StreamedWordArtifact, { ...props, adapter });
22
23
  }
23
24
 
24
25
  Object.defineProperty(exports, "ConnectedNativeDocxEditor", {
25
26
  enumerable: true,
26
- get: function () { return chunk7LLLQUM7_cjs.ConnectedNativeDocxEditor; }
27
+ get: function () { return chunkZYSY4L5L_cjs.ConnectedNativeDocxEditor; }
27
28
  });
28
29
  exports.ConnectedStreamedWordArtifact = ConnectedStreamedWordArtifact;
29
30
  //# sourceMappingURL=docx.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":["useConnectedNativeDocxAdapter","jsx","StreamedWordArtifact"],"mappings":";;;;;;;;;;;;;;AAGO,SAAS,6BAAA,CAA8B;AAAA,EAC5C,WAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA0E;AACxE,EAAA,MAAM,OAAA,GAAUA,gDAA8B,WAAW,CAAA;AACzD,EAAA,uBAAOC,cAAA,CAACC,sCAAA,EAAA,EAAsB,GAAG,KAAA,EAAO,OAAA,EAAkB,CAAA;AAC5D","file":"docx.cjs","sourcesContent":["import { useConnectedNativeDocxAdapter } from './ConnectedNativeDocxEditor'\nimport { StreamedWordArtifact, type StreamedWordArtifactProps } from '../docx/StreamedWordArtifact'\n\nexport function ConnectedStreamedWordArtifact({\n fontBaseUrl,\n ...props\n}: Omit<StreamedWordArtifactProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <StreamedWordArtifact {...props} adapter={adapter} />\n}\n"]}
1
+ {"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":["useConnectedNativeDocxAdapter","jsx","StreamedWordArtifact"],"mappings":";;;;;;;;;;;;;;;AAGO,SAAS,6BAAA,CAA8B;AAAA,EAC5C,WAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA0E;AACxE,EAAA,MAAM,OAAA,GAAUA,gDAA8B,WAAW,CAAA;AACzD,EAAA,uBAAOC,cAAA,CAACC,sCAAA,EAAA,EAAsB,GAAG,KAAA,EAAO,OAAA,EAAkB,CAAA;AAC5D","file":"docx.cjs","sourcesContent":["import { useConnectedNativeDocxAdapter } from './ConnectedNativeDocxEditor'\nimport { StreamedWordArtifact, type StreamedWordArtifactProps } from '../docx/StreamedWordArtifact'\n\nexport function ConnectedStreamedWordArtifact({\n fontBaseUrl,\n ...props\n}: Omit<StreamedWordArtifactProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <StreamedWordArtifact {...props} adapter={adapter} />\n}\n"]}
@@ -1,9 +1,10 @@
1
1
  "use client";
2
- import { useConnectedNativeDocxAdapter } from '../chunk-4GFB5U3K.js';
3
- export { ConnectedNativeDocxEditor } from '../chunk-4GFB5U3K.js';
2
+ import { useConnectedNativeDocxAdapter } from '../chunk-EGDWNEAG.js';
3
+ export { ConnectedNativeDocxEditor } from '../chunk-EGDWNEAG.js';
4
4
  import '../chunk-OYMWV45N.js';
5
- import { StreamedWordArtifact } from '../chunk-PIT2YZCK.js';
6
- import '../chunk-W2RTZOK3.js';
5
+ import { StreamedWordArtifact } from '../chunk-JQVPGMLU.js';
6
+ import '../chunk-GYAUJ4KT.js';
7
+ import '../chunk-A2MN2ZLX.js';
7
8
  import '../chunk-HFZ45FD3.js';
8
9
  import '../chunk-EPHGD4YV.js';
9
10
  import '../chunk-AF6RDAJF.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAGO,SAAS,6BAAA,CAA8B;AAAA,EAC5C,WAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA0E;AACxE,EAAA,MAAM,OAAA,GAAU,8BAA8B,WAAW,CAAA;AACzD,EAAA,uBAAO,GAAA,CAAC,oBAAA,EAAA,EAAsB,GAAG,KAAA,EAAO,OAAA,EAAkB,CAAA;AAC5D","file":"docx.js","sourcesContent":["import { useConnectedNativeDocxAdapter } from './ConnectedNativeDocxEditor'\nimport { StreamedWordArtifact, type StreamedWordArtifactProps } from '../docx/StreamedWordArtifact'\n\nexport function ConnectedStreamedWordArtifact({\n fontBaseUrl,\n ...props\n}: Omit<StreamedWordArtifactProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <StreamedWordArtifact {...props} adapter={adapter} />\n}\n"]}
1
+ {"version":3,"sources":["../../src/connection/ConnectedStreamedWordArtifact.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAGO,SAAS,6BAAA,CAA8B;AAAA,EAC5C,WAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA0E;AACxE,EAAA,MAAM,OAAA,GAAU,8BAA8B,WAAW,CAAA;AACzD,EAAA,uBAAO,GAAA,CAAC,oBAAA,EAAA,EAAsB,GAAG,KAAA,EAAO,OAAA,EAAkB,CAAA;AAC5D","file":"docx.js","sourcesContent":["import { useConnectedNativeDocxAdapter } from './ConnectedNativeDocxEditor'\nimport { StreamedWordArtifact, type StreamedWordArtifactProps } from '../docx/StreamedWordArtifact'\n\nexport function ConnectedStreamedWordArtifact({\n fontBaseUrl,\n ...props\n}: Omit<StreamedWordArtifactProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n return <StreamedWordArtifact {...props} adapter={adapter} />\n}\n"]}