@arbidocs/react 0.5.60 → 0.5.62

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 (103) hide show
  1. package/dist/ProductionDialog.d-CpzslFn0.d.cts +51 -0
  2. package/dist/ProductionDialog.d-CpzslFn0.d.ts +51 -0
  3. package/dist/annotations/freeze/index.cjs +14 -14
  4. package/dist/annotations/freeze/index.js +3 -3
  5. package/dist/annotations/index.d.cts +3 -2
  6. package/dist/annotations/index.d.ts +3 -2
  7. package/dist/artifacts/index.cjs +12 -12
  8. package/dist/artifacts/index.js +5 -5
  9. package/dist/bundle-IC65W2AO.cjs +14 -0
  10. package/dist/{bundle-DCWPYNGD.cjs.map → bundle-IC65W2AO.cjs.map} +1 -1
  11. package/dist/bundle-YNOX7VIL.js +5 -0
  12. package/dist/{bundle-JCKKGEJE.js.map → bundle-YNOX7VIL.js.map} +1 -1
  13. package/dist/calls/livekit/index.cjs +54 -54
  14. package/dist/calls/livekit/index.js +6 -6
  15. package/dist/{chunk-S2W3ZOWG.js → chunk-2LV53J46.js} +85 -16
  16. package/dist/chunk-2LV53J46.js.map +1 -0
  17. package/dist/{chunk-H3HYKAS5.cjs → chunk-3BFSALPC.cjs} +3 -3
  18. package/dist/{chunk-H3HYKAS5.cjs.map → chunk-3BFSALPC.cjs.map} +1 -1
  19. package/dist/{chunk-2NFUEC5O.js → chunk-3NBPMR3X.js} +3 -3
  20. package/dist/{chunk-2NFUEC5O.js.map → chunk-3NBPMR3X.js.map} +1 -1
  21. package/dist/chunk-4DTTEUVY.js +1042 -0
  22. package/dist/chunk-4DTTEUVY.js.map +1 -0
  23. package/dist/{chunk-U64WCQP3.js → chunk-AOEJ744V.js} +25 -14
  24. package/dist/chunk-AOEJ744V.js.map +1 -0
  25. package/dist/{chunk-4E737GNX.cjs → chunk-BLBXADTN.cjs} +86 -73
  26. package/dist/chunk-BLBXADTN.cjs.map +1 -0
  27. package/dist/{chunk-X7JXQT6F.cjs → chunk-DVL7EFZZ.cjs} +42 -46
  28. package/dist/chunk-DVL7EFZZ.cjs.map +1 -0
  29. package/dist/{chunk-VAMPYLQ4.cjs → chunk-DZUBZ45Y.cjs} +78 -2
  30. package/dist/chunk-DZUBZ45Y.cjs.map +1 -0
  31. package/dist/{chunk-OSWKXZTJ.js → chunk-ER4LFZG3.js} +12 -16
  32. package/dist/chunk-ER4LFZG3.js.map +1 -0
  33. package/dist/{chunk-5HDC43MF.js → chunk-G4Z3IP4J.js} +72 -3
  34. package/dist/chunk-G4Z3IP4J.js.map +1 -0
  35. package/dist/chunk-GOJHU7RZ.cjs +1122 -0
  36. package/dist/chunk-GOJHU7RZ.cjs.map +1 -0
  37. package/dist/{chunk-G76ASVVH.cjs → chunk-GQAXAZN7.cjs} +25 -14
  38. package/dist/chunk-GQAXAZN7.cjs.map +1 -0
  39. package/dist/{chunk-TUPSNW3B.cjs → chunk-LMW46NBD.cjs} +11 -11
  40. package/dist/{chunk-TUPSNW3B.cjs.map → chunk-LMW46NBD.cjs.map} +1 -1
  41. package/dist/{chunk-KRH55LXW.js → chunk-NCMSQACC.js} +37 -24
  42. package/dist/chunk-NCMSQACC.js.map +1 -0
  43. package/dist/{chunk-A2XSLTIP.js → chunk-NIKPG4PW.js} +3 -3
  44. package/dist/{chunk-A2XSLTIP.js.map → chunk-NIKPG4PW.js.map} +1 -1
  45. package/dist/{chunk-B6I2HRRF.cjs → chunk-PC4O3JDV.cjs} +3 -3
  46. package/dist/{chunk-B6I2HRRF.cjs.map → chunk-PC4O3JDV.cjs.map} +1 -1
  47. package/dist/{chunk-M2SZQBCO.js → chunk-SI7DJWBT.js} +3 -3
  48. package/dist/{chunk-M2SZQBCO.js.map → chunk-SI7DJWBT.js.map} +1 -1
  49. package/dist/{chunk-3QK4VVPG.cjs → chunk-TGSEQGM3.cjs} +3 -3
  50. package/dist/{chunk-3QK4VVPG.cjs.map → chunk-TGSEQGM3.cjs.map} +1 -1
  51. package/dist/{chunk-LCSUCZVX.cjs → chunk-ZNQPUPX6.cjs} +118 -41
  52. package/dist/chunk-ZNQPUPX6.cjs.map +1 -0
  53. package/dist/{chunk-CMNZI4WQ.js → chunk-ZTPJNKF2.js} +4 -4
  54. package/dist/{chunk-CMNZI4WQ.js.map → chunk-ZTPJNKF2.js.map} +1 -1
  55. package/dist/document-tools/core.cjs +408 -0
  56. package/dist/document-tools/core.cjs.map +1 -0
  57. package/dist/document-tools/core.d.cts +957 -0
  58. package/dist/document-tools/core.d.ts +957 -0
  59. package/dist/document-tools/core.js +15 -0
  60. package/dist/document-tools/core.js.map +1 -0
  61. package/dist/document-tools/index.cjs +347 -1130
  62. package/dist/document-tools/index.cjs.map +1 -1
  63. package/dist/document-tools/index.d.cts +12 -950
  64. package/dist/document-tools/index.d.ts +12 -950
  65. package/dist/document-tools/index.js +13 -1034
  66. package/dist/document-tools/index.js.map +1 -1
  67. package/dist/index.cjs +1510 -1255
  68. package/dist/index.cjs.map +1 -1
  69. package/dist/{index.d-BLw5AN0H.d.cts → index.d-AT7wdTWC.d.cts} +50 -2
  70. package/dist/{index.d-BLw5AN0H.d.ts → index.d-AT7wdTWC.d.ts} +50 -2
  71. package/dist/{index.d-DPVj21h1.d.ts → index.d-B0dosFZc.d.cts} +6 -6
  72. package/dist/{index.d-DPVj21h1.d.cts → index.d-B0dosFZc.d.ts} +6 -6
  73. package/dist/index.d.cts +145 -69
  74. package/dist/index.d.ts +145 -69
  75. package/dist/index.js +346 -121
  76. package/dist/index.js.map +1 -1
  77. package/dist/{query-keys.d-DEEMzkLz.d.cts → query-keys.d-BFKQVevT.d.cts} +21 -12
  78. package/dist/{query-keys.d-DEEMzkLz.d.ts → query-keys.d-BFKQVevT.d.ts} +21 -12
  79. package/dist/shell/index.cjs +68 -40
  80. package/dist/shell/index.d.cts +1 -1
  81. package/dist/shell/index.d.ts +1 -1
  82. package/dist/shell/index.js +3 -3
  83. package/dist/store.d-DkFXbWDk.d.ts +35 -0
  84. package/dist/store.d-GADDvC7w.d.cts +35 -0
  85. package/dist/ui/index.cjs +149 -149
  86. package/dist/ui/index.d.cts +1 -1
  87. package/dist/ui/index.d.ts +1 -1
  88. package/dist/ui/index.js +2 -2
  89. package/package.json +11 -3
  90. package/dist/ProductionDialog.d-BDJwBSzj.d.ts +0 -84
  91. package/dist/ProductionDialog.d-DjRQFmQw.d.cts +0 -84
  92. package/dist/bundle-DCWPYNGD.cjs +0 -14
  93. package/dist/bundle-JCKKGEJE.js +0 -5
  94. package/dist/chunk-4E737GNX.cjs.map +0 -1
  95. package/dist/chunk-5HDC43MF.js.map +0 -1
  96. package/dist/chunk-G76ASVVH.cjs.map +0 -1
  97. package/dist/chunk-KRH55LXW.js.map +0 -1
  98. package/dist/chunk-LCSUCZVX.cjs.map +0 -1
  99. package/dist/chunk-OSWKXZTJ.js.map +0 -1
  100. package/dist/chunk-S2W3ZOWG.js.map +0 -1
  101. package/dist/chunk-U64WCQP3.js.map +0 -1
  102. package/dist/chunk-VAMPYLQ4.cjs.map +0 -1
  103. package/dist/chunk-X7JXQT6F.cjs.map +0 -1
@@ -144,17 +144,21 @@ declare const arbiQueryKeys: {
144
144
  workspaceTrash: (workspaceId?: string) => readonly ["arbi", "storage", "workspaceTrash"] | readonly ["arbi", "storage", "workspaceTrash", string];
145
145
  /** A workspace's archive state; no id: every workspace's. */
146
146
  workspaceArchive: (workspaceId?: string) => readonly ["arbi", "workspaceArchive"] | readonly ["arbi", "workspaceArchive", string];
147
- /** Every database query of the open workspace. */
147
+ /** Every database query of every workspace (what a write or a switch refreshes). */
148
148
  databases: () => readonly ["arbi", "databases"];
149
- databaseList: () => readonly ["arbi", "databases", "list"];
150
- /** One database; no id: every one read. */
151
- database: (databaseId?: string) => readonly ["arbi", "databases", "one"] | readonly ["arbi", "databases", "one", string];
152
- /** A database's rows (a search); no id: every database's, no params: every search of one. */
153
- databaseRows: (databaseId?: string, params?: object) => readonly ["arbi", "databases", "rows"] | readonly ["arbi", "databases", "rows", string] | readonly ["arbi", "databases", "rows", string, object];
149
+ /** A workspace's databases; no id: every workspace's. */
150
+ databaseList: (workspaceId?: string) => readonly ["arbi", "databases", "list"] | readonly ["arbi", "databases", "list", string];
151
+ /** One database of a workspace; no workspace: every one read. */
152
+ database: (workspaceId?: string, databaseId?: string) => readonly ["arbi", "databases", "one"] | readonly ["arbi", "databases", "one", string, string];
153
+ /**
154
+ * A database's rows (a search); no workspace: every database's, no params: every search of one.
155
+ * `['arbi', 'databases', 'rows', workspaceId, databaseId, params]`.
156
+ */
157
+ databaseRows: (workspaceId?: string, databaseId?: string, params?: object) => readonly ["arbi", "databases", "rows"] | readonly ["arbi", "databases", "rows", string, string] | readonly ["arbi", "databases", "rows", string, string, object];
154
158
  /** The saved dashboards of a store's scope (a workspace). */
155
159
  dashboards: (scope: string) => readonly ["arbi", "dashboards", string];
156
- /** A database's rows grouped and measured (a chart); no id: every database's. */
157
- databaseAggregate: (databaseId?: string, request?: object) => readonly ["arbi", "databases", "aggregate"] | readonly ["arbi", "databases", "aggregate", string, object];
160
+ /** A database's rows grouped and measured (a chart); no workspace: every database's. */
161
+ databaseAggregate: (workspaceId?: string, databaseId?: string, request?: object) => readonly ["arbi", "databases", "aggregate"] | readonly ["arbi", "databases", "aggregate", string, string, object];
158
162
  /** Under `configs()`: the saved configuration versions. */
159
163
  configVersions: () => readonly ["arbi", "configs", "versions"];
160
164
  /** Under `configs()`: the JSON schema of every config model. */
@@ -172,9 +176,11 @@ declare const arbiQueryKeys: {
172
176
  /** Every signature request list: what a request write refreshes. */
173
177
  signatureRequests: () => readonly ["arbi", "signatureRequests"];
174
178
  signatureRequestsForDocument: (docId: string) => readonly ["arbi", "signatureRequests", "document", string];
175
- signatureRequestsAwaitingMe: () => readonly ["arbi", "signatureRequests", "awaiting-me"];
179
+ /** The requests of a workspace waiting for my signature (the open one on the server). */
180
+ signatureRequestsAwaitingMe: (workspaceId?: string) => readonly ["arbi", "signatureRequests", "awaiting-me", string];
176
181
  signatureRequest: (requestId: string) => readonly ["arbi", "signatureRequests", "one", string];
177
- signatureCandidates: () => readonly ["arbi", "signatureRequests", "candidates"];
182
+ /** Who may sign in a workspace; no id: every workspace's. */
183
+ signatureCandidates: (workspaceId?: string) => readonly ["arbi", "signatureRequests", "candidates"] | readonly ["arbi", "signatureRequests", "candidates", string];
178
184
  /** The user's saved (informal) signature. */
179
185
  savedSignature: () => readonly ["arbi", "savedSignature"];
180
186
  /** An html/react artifact's source. */
@@ -193,8 +199,11 @@ declare const arbiQueryKeys: {
193
199
  contactSearch: (term: string) => readonly ["arbi", "contacts", "search", string];
194
200
  /** Under the workspace's facts: a filtered list. */
195
201
  factList: (workspaceId: string, filter: unknown) => readonly ["arbi", "facts", string, unknown];
196
- /** Under `skills()`: the list, hidden ones included or not. */
197
- skillList: (includeHidden: boolean) => readonly ["arbi", "skills", boolean];
202
+ /**
203
+ * Under `skills()`: a workspace's list, hidden ones included or not. Without a marketplace the
204
+ * server lists the open workspace's skills, so the list is kept per workspace.
205
+ */
206
+ skillList: (workspaceId: string, includeHidden: boolean) => readonly ["arbi", "skills", "list", string, boolean];
198
207
  /** Under the project's events: one kind, one page size. */
199
208
  projectEventList: (projectExtId: string, kind: string, limit: number | "default") => readonly ["arbi", "projects", string, "events", string, number | "default"];
200
209
  /** The documents pinned for offline reading on this device. */
@@ -144,17 +144,21 @@ declare const arbiQueryKeys: {
144
144
  workspaceTrash: (workspaceId?: string) => readonly ["arbi", "storage", "workspaceTrash"] | readonly ["arbi", "storage", "workspaceTrash", string];
145
145
  /** A workspace's archive state; no id: every workspace's. */
146
146
  workspaceArchive: (workspaceId?: string) => readonly ["arbi", "workspaceArchive"] | readonly ["arbi", "workspaceArchive", string];
147
- /** Every database query of the open workspace. */
147
+ /** Every database query of every workspace (what a write or a switch refreshes). */
148
148
  databases: () => readonly ["arbi", "databases"];
149
- databaseList: () => readonly ["arbi", "databases", "list"];
150
- /** One database; no id: every one read. */
151
- database: (databaseId?: string) => readonly ["arbi", "databases", "one"] | readonly ["arbi", "databases", "one", string];
152
- /** A database's rows (a search); no id: every database's, no params: every search of one. */
153
- databaseRows: (databaseId?: string, params?: object) => readonly ["arbi", "databases", "rows"] | readonly ["arbi", "databases", "rows", string] | readonly ["arbi", "databases", "rows", string, object];
149
+ /** A workspace's databases; no id: every workspace's. */
150
+ databaseList: (workspaceId?: string) => readonly ["arbi", "databases", "list"] | readonly ["arbi", "databases", "list", string];
151
+ /** One database of a workspace; no workspace: every one read. */
152
+ database: (workspaceId?: string, databaseId?: string) => readonly ["arbi", "databases", "one"] | readonly ["arbi", "databases", "one", string, string];
153
+ /**
154
+ * A database's rows (a search); no workspace: every database's, no params: every search of one.
155
+ * `['arbi', 'databases', 'rows', workspaceId, databaseId, params]`.
156
+ */
157
+ databaseRows: (workspaceId?: string, databaseId?: string, params?: object) => readonly ["arbi", "databases", "rows"] | readonly ["arbi", "databases", "rows", string, string] | readonly ["arbi", "databases", "rows", string, string, object];
154
158
  /** The saved dashboards of a store's scope (a workspace). */
155
159
  dashboards: (scope: string) => readonly ["arbi", "dashboards", string];
156
- /** A database's rows grouped and measured (a chart); no id: every database's. */
157
- databaseAggregate: (databaseId?: string, request?: object) => readonly ["arbi", "databases", "aggregate"] | readonly ["arbi", "databases", "aggregate", string, object];
160
+ /** A database's rows grouped and measured (a chart); no workspace: every database's. */
161
+ databaseAggregate: (workspaceId?: string, databaseId?: string, request?: object) => readonly ["arbi", "databases", "aggregate"] | readonly ["arbi", "databases", "aggregate", string, string, object];
158
162
  /** Under `configs()`: the saved configuration versions. */
159
163
  configVersions: () => readonly ["arbi", "configs", "versions"];
160
164
  /** Under `configs()`: the JSON schema of every config model. */
@@ -172,9 +176,11 @@ declare const arbiQueryKeys: {
172
176
  /** Every signature request list: what a request write refreshes. */
173
177
  signatureRequests: () => readonly ["arbi", "signatureRequests"];
174
178
  signatureRequestsForDocument: (docId: string) => readonly ["arbi", "signatureRequests", "document", string];
175
- signatureRequestsAwaitingMe: () => readonly ["arbi", "signatureRequests", "awaiting-me"];
179
+ /** The requests of a workspace waiting for my signature (the open one on the server). */
180
+ signatureRequestsAwaitingMe: (workspaceId?: string) => readonly ["arbi", "signatureRequests", "awaiting-me", string];
176
181
  signatureRequest: (requestId: string) => readonly ["arbi", "signatureRequests", "one", string];
177
- signatureCandidates: () => readonly ["arbi", "signatureRequests", "candidates"];
182
+ /** Who may sign in a workspace; no id: every workspace's. */
183
+ signatureCandidates: (workspaceId?: string) => readonly ["arbi", "signatureRequests", "candidates"] | readonly ["arbi", "signatureRequests", "candidates", string];
178
184
  /** The user's saved (informal) signature. */
179
185
  savedSignature: () => readonly ["arbi", "savedSignature"];
180
186
  /** An html/react artifact's source. */
@@ -193,8 +199,11 @@ declare const arbiQueryKeys: {
193
199
  contactSearch: (term: string) => readonly ["arbi", "contacts", "search", string];
194
200
  /** Under the workspace's facts: a filtered list. */
195
201
  factList: (workspaceId: string, filter: unknown) => readonly ["arbi", "facts", string, unknown];
196
- /** Under `skills()`: the list, hidden ones included or not. */
197
- skillList: (includeHidden: boolean) => readonly ["arbi", "skills", boolean];
202
+ /**
203
+ * Under `skills()`: a workspace's list, hidden ones included or not. Without a marketplace the
204
+ * server lists the open workspace's skills, so the list is kept per workspace.
205
+ */
206
+ skillList: (workspaceId: string, includeHidden: boolean) => readonly ["arbi", "skills", "list", string, boolean];
198
207
  /** Under the project's events: one kind, one page size. */
199
208
  projectEventList: (projectExtId: string, kind: string, limit: number | "default") => readonly ["arbi", "projects", string, "events", string, number | "default"];
200
209
  /** The documents pinned for offline reading on this device. */
@@ -1,165 +1,193 @@
1
1
  'use strict';
2
2
 
3
- var chunkTUPSNW3B_cjs = require('../chunk-TUPSNW3B.cjs');
4
- var chunkVAMPYLQ4_cjs = require('../chunk-VAMPYLQ4.cjs');
3
+ var chunkLMW46NBD_cjs = require('../chunk-LMW46NBD.cjs');
4
+ var chunkDZUBZ45Y_cjs = require('../chunk-DZUBZ45Y.cjs');
5
5
  require('../chunk-N73IMVFF.cjs');
6
6
  require('../chunk-ZWFMFOGP.cjs');
7
7
  require('../chunk-VOFNX4P6.cjs');
8
8
  require('../chunk-KC474WVG.cjs');
9
9
  require('../chunk-HJDR5HEO.cjs');
10
10
  require('../chunk-Z3LLUO32.cjs');
11
- require('../chunk-S6A6FSG7.cjs');
12
11
  var chunkRCKA7BEF_cjs = require('../chunk-RCKA7BEF.cjs');
12
+ require('../chunk-S6A6FSG7.cjs');
13
13
 
14
14
 
15
15
 
16
16
  Object.defineProperty(exports, "ArbiHost", {
17
17
  enumerable: true,
18
- get: function () { return chunkTUPSNW3B_cjs.ArbiHost; }
18
+ get: function () { return chunkLMW46NBD_cjs.ArbiHost; }
19
19
  });
20
20
  Object.defineProperty(exports, "LEGACY_THREAD_DOCUMENTS_KEY", {
21
21
  enumerable: true,
22
- get: function () { return chunkTUPSNW3B_cjs.LEGACY_THREAD_DOCUMENTS_KEY; }
22
+ get: function () { return chunkLMW46NBD_cjs.LEGACY_THREAD_DOCUMENTS_KEY; }
23
23
  });
24
24
  Object.defineProperty(exports, "MENTION_HREF_PREFIX", {
25
25
  enumerable: true,
26
- get: function () { return chunkTUPSNW3B_cjs.MENTION_HREF_PREFIX; }
26
+ get: function () { return chunkLMW46NBD_cjs.MENTION_HREF_PREFIX; }
27
27
  });
28
28
  Object.defineProperty(exports, "NotificationBell", {
29
29
  enumerable: true,
30
- get: function () { return chunkTUPSNW3B_cjs.NotificationBell; }
30
+ get: function () { return chunkLMW46NBD_cjs.NotificationBell; }
31
31
  });
32
32
  Object.defineProperty(exports, "Toaster", {
33
33
  enumerable: true,
34
- get: function () { return chunkTUPSNW3B_cjs.Toaster; }
34
+ get: function () { return chunkLMW46NBD_cjs.Toaster; }
35
35
  });
36
36
  Object.defineProperty(exports, "UNBOUND", {
37
37
  enumerable: true,
38
- get: function () { return chunkTUPSNW3B_cjs.UNBOUND; }
38
+ get: function () { return chunkLMW46NBD_cjs.UNBOUND; }
39
39
  });
40
40
  Object.defineProperty(exports, "bindingOfRow", {
41
41
  enumerable: true,
42
- get: function () { return chunkTUPSNW3B_cjs.bindingOfRow; }
42
+ get: function () { return chunkLMW46NBD_cjs.bindingOfRow; }
43
43
  });
44
44
  Object.defineProperty(exports, "clearSearchSession", {
45
45
  enumerable: true,
46
- get: function () { return chunkTUPSNW3B_cjs.clearSearchSession; }
46
+ get: function () { return chunkLMW46NBD_cjs.clearSearchSession; }
47
47
  });
48
48
  Object.defineProperty(exports, "createSearchSession", {
49
49
  enumerable: true,
50
- get: function () { return chunkTUPSNW3B_cjs.createSearchSession; }
50
+ get: function () { return chunkLMW46NBD_cjs.createSearchSession; }
51
51
  });
52
52
  Object.defineProperty(exports, "extractMentions", {
53
53
  enumerable: true,
54
- get: function () { return chunkTUPSNW3B_cjs.extractMentions; }
54
+ get: function () { return chunkLMW46NBD_cjs.extractMentions; }
55
55
  });
56
56
  Object.defineProperty(exports, "filterMentionCandidates", {
57
57
  enumerable: true,
58
- get: function () { return chunkTUPSNW3B_cjs.filterMentionCandidates; }
58
+ get: function () { return chunkLMW46NBD_cjs.filterMentionCandidates; }
59
59
  });
60
60
  Object.defineProperty(exports, "findMentionQuery", {
61
61
  enumerable: true,
62
- get: function () { return chunkTUPSNW3B_cjs.findMentionQuery; }
62
+ get: function () { return chunkLMW46NBD_cjs.findMentionQuery; }
63
63
  });
64
64
  Object.defineProperty(exports, "forgetLegacyThreadDocuments", {
65
65
  enumerable: true,
66
- get: function () { return chunkTUPSNW3B_cjs.forgetLegacyThreadDocuments; }
66
+ get: function () { return chunkLMW46NBD_cjs.forgetLegacyThreadDocuments; }
67
67
  });
68
68
  Object.defineProperty(exports, "hasMessageBody", {
69
69
  enumerable: true,
70
- get: function () { return chunkTUPSNW3B_cjs.hasMessageBody; }
70
+ get: function () { return chunkLMW46NBD_cjs.hasMessageBody; }
71
71
  });
72
72
  Object.defineProperty(exports, "insertMention", {
73
73
  enumerable: true,
74
- get: function () { return chunkTUPSNW3B_cjs.insertMention; }
74
+ get: function () { return chunkLMW46NBD_cjs.insertMention; }
75
75
  });
76
76
  Object.defineProperty(exports, "latestThreadOfDocument", {
77
77
  enumerable: true,
78
- get: function () { return chunkTUPSNW3B_cjs.latestThreadOfDocument; }
78
+ get: function () { return chunkLMW46NBD_cjs.latestThreadOfDocument; }
79
79
  });
80
80
  Object.defineProperty(exports, "linkMentions", {
81
81
  enumerable: true,
82
- get: function () { return chunkTUPSNW3B_cjs.linkMentions; }
82
+ get: function () { return chunkLMW46NBD_cjs.linkMentions; }
83
83
  });
84
84
  Object.defineProperty(exports, "mentionFromHref", {
85
85
  enumerable: true,
86
- get: function () { return chunkTUPSNW3B_cjs.mentionFromHref; }
86
+ get: function () { return chunkLMW46NBD_cjs.mentionFromHref; }
87
87
  });
88
88
  Object.defineProperty(exports, "openDocumentId", {
89
89
  enumerable: true,
90
- get: function () { return chunkTUPSNW3B_cjs.openDocumentId; }
90
+ get: function () { return chunkLMW46NBD_cjs.openDocumentId; }
91
91
  });
92
92
  Object.defineProperty(exports, "opensInWord", {
93
93
  enumerable: true,
94
- get: function () { return chunkTUPSNW3B_cjs.opensInWord; }
94
+ get: function () { return chunkLMW46NBD_cjs.opensInWord; }
95
95
  });
96
96
  Object.defineProperty(exports, "persistSearchSession", {
97
97
  enumerable: true,
98
- get: function () { return chunkTUPSNW3B_cjs.persistSearchSession; }
98
+ get: function () { return chunkLMW46NBD_cjs.persistSearchSession; }
99
99
  });
100
100
  Object.defineProperty(exports, "readLegacyThreadDocuments", {
101
101
  enumerable: true,
102
- get: function () { return chunkTUPSNW3B_cjs.readLegacyThreadDocuments; }
102
+ get: function () { return chunkLMW46NBD_cjs.readLegacyThreadDocuments; }
103
103
  });
104
104
  Object.defineProperty(exports, "requestSearch", {
105
105
  enumerable: true,
106
- get: function () { return chunkTUPSNW3B_cjs.requestSearch; }
106
+ get: function () { return chunkLMW46NBD_cjs.requestSearch; }
107
107
  });
108
108
  Object.defineProperty(exports, "savedDocumentIdFor", {
109
109
  enumerable: true,
110
- get: function () { return chunkTUPSNW3B_cjs.savedDocumentIdFor; }
110
+ get: function () { return chunkLMW46NBD_cjs.savedDocumentIdFor; }
111
111
  });
112
112
  Object.defineProperty(exports, "sharedSearchSession", {
113
113
  enumerable: true,
114
- get: function () { return chunkTUPSNW3B_cjs.sharedSearchSession; }
114
+ get: function () { return chunkLMW46NBD_cjs.sharedSearchSession; }
115
115
  });
116
116
  Object.defineProperty(exports, "takeDocumentForTurn", {
117
117
  enumerable: true,
118
- get: function () { return chunkTUPSNW3B_cjs.takeDocumentForTurn; }
118
+ get: function () { return chunkLMW46NBD_cjs.takeDocumentForTurn; }
119
119
  });
120
120
  Object.defineProperty(exports, "takePendingSearch", {
121
121
  enumerable: true,
122
- get: function () { return chunkTUPSNW3B_cjs.takePendingSearch; }
122
+ get: function () { return chunkLMW46NBD_cjs.takePendingSearch; }
123
123
  });
124
124
  Object.defineProperty(exports, "toMessageMentions", {
125
125
  enumerable: true,
126
- get: function () { return chunkTUPSNW3B_cjs.toMessageMentions; }
126
+ get: function () { return chunkLMW46NBD_cjs.toMessageMentions; }
127
127
  });
128
128
  Object.defineProperty(exports, "useOpenDocumentId", {
129
129
  enumerable: true,
130
- get: function () { return chunkTUPSNW3B_cjs.useOpenDocumentId; }
130
+ get: function () { return chunkLMW46NBD_cjs.useOpenDocumentId; }
131
131
  });
132
132
  Object.defineProperty(exports, "useRegisterOpenDocument", {
133
133
  enumerable: true,
134
- get: function () { return chunkTUPSNW3B_cjs.useRegisterOpenDocument; }
134
+ get: function () { return chunkLMW46NBD_cjs.useRegisterOpenDocument; }
135
135
  });
136
136
  Object.defineProperty(exports, "useTurnDocumentId", {
137
137
  enumerable: true,
138
- get: function () { return chunkTUPSNW3B_cjs.useTurnDocumentId; }
138
+ get: function () { return chunkLMW46NBD_cjs.useTurnDocumentId; }
139
+ });
140
+ Object.defineProperty(exports, "clearChatArtifacts", {
141
+ enumerable: true,
142
+ get: function () { return chunkDZUBZ45Y_cjs.clearChatArtifacts; }
139
143
  });
140
144
  Object.defineProperty(exports, "configureNotify", {
141
145
  enumerable: true,
142
- get: function () { return chunkVAMPYLQ4_cjs.configureNotify; }
146
+ get: function () { return chunkDZUBZ45Y_cjs.configureNotify; }
147
+ });
148
+ Object.defineProperty(exports, "getChatArtifact", {
149
+ enumerable: true,
150
+ get: function () { return chunkDZUBZ45Y_cjs.getChatArtifact; }
151
+ });
152
+ Object.defineProperty(exports, "getChatArtifacts", {
153
+ enumerable: true,
154
+ get: function () { return chunkDZUBZ45Y_cjs.getChatArtifacts; }
143
155
  });
144
156
  Object.defineProperty(exports, "notify", {
145
157
  enumerable: true,
146
- get: function () { return chunkVAMPYLQ4_cjs.notify; }
158
+ get: function () { return chunkDZUBZ45Y_cjs.notify; }
147
159
  });
148
160
  Object.defineProperty(exports, "persistNotifyHistory", {
149
161
  enumerable: true,
150
- get: function () { return chunkVAMPYLQ4_cjs.persistNotifyHistory; }
162
+ get: function () { return chunkDZUBZ45Y_cjs.persistNotifyHistory; }
163
+ });
164
+ Object.defineProperty(exports, "recordChatArtifact", {
165
+ enumerable: true,
166
+ get: function () { return chunkDZUBZ45Y_cjs.recordChatArtifact; }
151
167
  });
152
168
  Object.defineProperty(exports, "selectUnread", {
153
169
  enumerable: true,
154
- get: function () { return chunkVAMPYLQ4_cjs.selectUnread; }
170
+ get: function () { return chunkDZUBZ45Y_cjs.selectUnread; }
155
171
  });
156
172
  Object.defineProperty(exports, "toast", {
157
173
  enumerable: true,
158
- get: function () { return chunkVAMPYLQ4_cjs.toast; }
174
+ get: function () { return chunkDZUBZ45Y_cjs.toast; }
175
+ });
176
+ Object.defineProperty(exports, "useChatArtifact", {
177
+ enumerable: true,
178
+ get: function () { return chunkDZUBZ45Y_cjs.useChatArtifact; }
179
+ });
180
+ Object.defineProperty(exports, "useConversationChatArtifact", {
181
+ enumerable: true,
182
+ get: function () { return chunkDZUBZ45Y_cjs.useConversationChatArtifact; }
183
+ });
184
+ Object.defineProperty(exports, "useMessageChatArtifact", {
185
+ enumerable: true,
186
+ get: function () { return chunkDZUBZ45Y_cjs.useMessageChatArtifact; }
159
187
  });
160
188
  Object.defineProperty(exports, "useNotify", {
161
189
  enumerable: true,
162
- get: function () { return chunkVAMPYLQ4_cjs.useNotify; }
190
+ get: function () { return chunkDZUBZ45Y_cjs.useNotify; }
163
191
  });
164
192
  Object.defineProperty(exports, "useHostConfigRecord", {
165
193
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { A as AppNotification, a as ArbiHost, b as ArbiHostConnection, c as ArbiHostProps, H as HostConfigRecord, L as LEGACY_THREAD_DOCUMENTS_KEY, d as MENTION_HREF_PREFIX, e as MentionCandidate, f as MentionKind, g as MessageMentionRef, N as NotificationBell, h as NotificationBellProps, j as NotifyConfig, k as NotifyOptions, l as NotifyVariant, O as OpenDocumentRegistration, S as SavedDocumentInput, m as SearchSession, n as SearchSessionState, o as SearchStatus, T as ThreadBinding, p as ThreadBindingRow, q as Toaster, r as TurnDocumentInput, U as UNBOUND, W as WordDocumentKind, s as bindingOfRow, t as clearSearchSession, u as configureNotify, v as createSearchSession, w as extractMentions, x as filterMentionCandidates, y as findMentionQuery, z as forgetLegacyThreadDocuments, B as hasMessageBody, C as insertMention, E as latestThreadOfDocument, F as linkMentions, G as mentionFromHref, I as notify, J as openDocumentId, K as opensInWord, P as persistNotifyHistory, Q as persistSearchSession, R as readLegacyThreadDocuments, V as requestSearch, X as savedDocumentIdFor, Z as selectUnread, _ as sharedSearchSession, $ as takeDocumentForTurn, a0 as takePendingSearch, a1 as toMessageMentions, a2 as useHostConfigRecord, a3 as useNotify, a4 as useOpenDocumentId, a5 as useRegisterOpenDocument, a6 as useTurnDocumentId } from '../index.d-BLw5AN0H.cjs';
1
+ export { A as AppNotification, a as ArbiHost, b as ArbiHostConnection, c as ArbiHostProps, C as ChatArtifact, H as HostConfigRecord, L as LEGACY_THREAD_DOCUMENTS_KEY, d as MENTION_HREF_PREFIX, e as MentionCandidate, f as MentionKind, g as MessageMentionRef, N as NotificationBell, h as NotificationBellProps, j as NotifyConfig, k as NotifyOptions, l as NotifyVariant, O as OpenDocumentRegistration, S as SavedDocumentInput, m as SearchSession, n as SearchSessionState, o as SearchStatus, T as ThreadBinding, p as ThreadBindingRow, q as Toaster, r as TurnDocumentInput, U as UNBOUND, W as WordDocumentKind, s as bindingOfRow, t as clearChatArtifacts, u as clearSearchSession, v as configureNotify, w as createSearchSession, x as extractMentions, y as filterMentionCandidates, z as findMentionQuery, B as forgetLegacyThreadDocuments, E as getChatArtifact, F as getChatArtifacts, G as hasMessageBody, I as insertMention, J as latestThreadOfDocument, K as linkMentions, P as mentionFromHref, Q as notify, R as openDocumentId, V as opensInWord, X as persistNotifyHistory, Y as persistSearchSession, Z as readLegacyThreadDocuments, _ as recordChatArtifact, $ as requestSearch, a0 as savedDocumentIdFor, a2 as selectUnread, a3 as sharedSearchSession, a4 as takeDocumentForTurn, a5 as takePendingSearch, a6 as toMessageMentions, a7 as useChatArtifact, a8 as useConversationChatArtifact, a9 as useHostConfigRecord, aa as useMessageChatArtifact, ab as useNotify, ac as useOpenDocumentId, ad as useRegisterOpenDocument, ae as useTurnDocumentId } from '../index.d-AT7wdTWC.cjs';
2
2
  export { ToasterProps, toast } from 'sonner';
3
3
  import 'zustand';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { A as AppNotification, a as ArbiHost, b as ArbiHostConnection, c as ArbiHostProps, H as HostConfigRecord, L as LEGACY_THREAD_DOCUMENTS_KEY, d as MENTION_HREF_PREFIX, e as MentionCandidate, f as MentionKind, g as MessageMentionRef, N as NotificationBell, h as NotificationBellProps, j as NotifyConfig, k as NotifyOptions, l as NotifyVariant, O as OpenDocumentRegistration, S as SavedDocumentInput, m as SearchSession, n as SearchSessionState, o as SearchStatus, T as ThreadBinding, p as ThreadBindingRow, q as Toaster, r as TurnDocumentInput, U as UNBOUND, W as WordDocumentKind, s as bindingOfRow, t as clearSearchSession, u as configureNotify, v as createSearchSession, w as extractMentions, x as filterMentionCandidates, y as findMentionQuery, z as forgetLegacyThreadDocuments, B as hasMessageBody, C as insertMention, E as latestThreadOfDocument, F as linkMentions, G as mentionFromHref, I as notify, J as openDocumentId, K as opensInWord, P as persistNotifyHistory, Q as persistSearchSession, R as readLegacyThreadDocuments, V as requestSearch, X as savedDocumentIdFor, Z as selectUnread, _ as sharedSearchSession, $ as takeDocumentForTurn, a0 as takePendingSearch, a1 as toMessageMentions, a2 as useHostConfigRecord, a3 as useNotify, a4 as useOpenDocumentId, a5 as useRegisterOpenDocument, a6 as useTurnDocumentId } from '../index.d-BLw5AN0H.js';
1
+ export { A as AppNotification, a as ArbiHost, b as ArbiHostConnection, c as ArbiHostProps, C as ChatArtifact, H as HostConfigRecord, L as LEGACY_THREAD_DOCUMENTS_KEY, d as MENTION_HREF_PREFIX, e as MentionCandidate, f as MentionKind, g as MessageMentionRef, N as NotificationBell, h as NotificationBellProps, j as NotifyConfig, k as NotifyOptions, l as NotifyVariant, O as OpenDocumentRegistration, S as SavedDocumentInput, m as SearchSession, n as SearchSessionState, o as SearchStatus, T as ThreadBinding, p as ThreadBindingRow, q as Toaster, r as TurnDocumentInput, U as UNBOUND, W as WordDocumentKind, s as bindingOfRow, t as clearChatArtifacts, u as clearSearchSession, v as configureNotify, w as createSearchSession, x as extractMentions, y as filterMentionCandidates, z as findMentionQuery, B as forgetLegacyThreadDocuments, E as getChatArtifact, F as getChatArtifacts, G as hasMessageBody, I as insertMention, J as latestThreadOfDocument, K as linkMentions, P as mentionFromHref, Q as notify, R as openDocumentId, V as opensInWord, X as persistNotifyHistory, Y as persistSearchSession, Z as readLegacyThreadDocuments, _ as recordChatArtifact, $ as requestSearch, a0 as savedDocumentIdFor, a2 as selectUnread, a3 as sharedSearchSession, a4 as takeDocumentForTurn, a5 as takePendingSearch, a6 as toMessageMentions, a7 as useChatArtifact, a8 as useConversationChatArtifact, a9 as useHostConfigRecord, aa as useMessageChatArtifact, ab as useNotify, ac as useOpenDocumentId, ad as useRegisterOpenDocument, ae as useTurnDocumentId } from '../index.d-AT7wdTWC.js';
2
2
  export { ToasterProps, toast } from 'sonner';
3
3
  import 'zustand';
4
4
  import 'react';
@@ -1,12 +1,12 @@
1
- export { ArbiHost, LEGACY_THREAD_DOCUMENTS_KEY, MENTION_HREF_PREFIX, NotificationBell, Toaster, UNBOUND, bindingOfRow, clearSearchSession, createSearchSession, extractMentions, filterMentionCandidates, findMentionQuery, forgetLegacyThreadDocuments, hasMessageBody, insertMention, latestThreadOfDocument, linkMentions, mentionFromHref, openDocumentId, opensInWord, persistSearchSession, readLegacyThreadDocuments, requestSearch, savedDocumentIdFor, sharedSearchSession, takeDocumentForTurn, takePendingSearch, toMessageMentions, useOpenDocumentId, useRegisterOpenDocument, useTurnDocumentId } from '../chunk-CMNZI4WQ.js';
2
- export { configureNotify, notify, persistNotifyHistory, selectUnread, toast, useNotify } from '../chunk-5HDC43MF.js';
1
+ export { ArbiHost, LEGACY_THREAD_DOCUMENTS_KEY, MENTION_HREF_PREFIX, NotificationBell, Toaster, UNBOUND, bindingOfRow, clearSearchSession, createSearchSession, extractMentions, filterMentionCandidates, findMentionQuery, forgetLegacyThreadDocuments, hasMessageBody, insertMention, latestThreadOfDocument, linkMentions, mentionFromHref, openDocumentId, opensInWord, persistSearchSession, readLegacyThreadDocuments, requestSearch, savedDocumentIdFor, sharedSearchSession, takeDocumentForTurn, takePendingSearch, toMessageMentions, useOpenDocumentId, useRegisterOpenDocument, useTurnDocumentId } from '../chunk-ZTPJNKF2.js';
2
+ export { clearChatArtifacts, configureNotify, getChatArtifact, getChatArtifacts, notify, persistNotifyHistory, recordChatArtifact, selectUnread, toast, useChatArtifact, useConversationChatArtifact, useMessageChatArtifact, useNotify } from '../chunk-G4Z3IP4J.js';
3
3
  import '../chunk-DPYBZDJB.js';
4
4
  import '../chunk-NNWMHMEC.js';
5
5
  import '../chunk-WUTL62MC.js';
6
6
  import '../chunk-Y3MTRA7D.js';
7
7
  import '../chunk-47CCGUWR.js';
8
8
  import '../chunk-QRCMKEE6.js';
9
- import '../chunk-SN5YV6FF.js';
10
9
  export { useHostConfigRecord } from '../chunk-CPZ36AQS.js';
10
+ import '../chunk-SN5YV6FF.js';
11
11
  //# sourceMappingURL=index.js.map
12
12
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,35 @@
1
+ import { b as AnnotationLayer } from './model.d-CNtRWKVK.js';
2
+
3
+ /**
4
+ * Where a layer is kept. The layer is data about a document, not part of it, so the host decides
5
+ * (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
6
+ * store; both validate on load because stored JSON is untrusted. A store shared by several
7
+ * writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
8
+ * pull others' changes, and say whether this user may write at all.
9
+ */
10
+
11
+ interface AnnotationStore {
12
+ /** The saved layer, or an empty one for a document that has none yet. */
13
+ load(documentId: string): Promise<AnnotationLayer>;
14
+ /**
15
+ * Write a layer. A store with other writers may resolve to what it actually saved — this layer
16
+ * merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
17
+ */
18
+ save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
19
+ /** Others' changes since the last load or save, or null when there are none. */
20
+ pull?(documentId: string): Promise<AnnotationLayer | null>;
21
+ /** Whether this user may change the layer; false makes it view-only. Known after `load`. */
22
+ canEdit?(documentId: string): boolean;
23
+ }
24
+ /** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
25
+ declare class AnnotationStoreOfflineError extends Error {
26
+ constructor(message?: string);
27
+ }
28
+ declare function createMemoryStore(now?: () => string): AnnotationStore;
29
+ /**
30
+ * Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
31
+ * guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
32
+ */
33
+ declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
34
+
35
+ export { type AnnotationStore as A, AnnotationStoreOfflineError as a, createMemoryStore as b, createLocalStorageStore as c };
@@ -0,0 +1,35 @@
1
+ import { b as AnnotationLayer } from './model.d-CNtRWKVK.cjs';
2
+
3
+ /**
4
+ * Where a layer is kept. The layer is data about a document, not part of it, so the host decides
5
+ * (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
6
+ * store; both validate on load because stored JSON is untrusted. A store shared by several
7
+ * writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
8
+ * pull others' changes, and say whether this user may write at all.
9
+ */
10
+
11
+ interface AnnotationStore {
12
+ /** The saved layer, or an empty one for a document that has none yet. */
13
+ load(documentId: string): Promise<AnnotationLayer>;
14
+ /**
15
+ * Write a layer. A store with other writers may resolve to what it actually saved — this layer
16
+ * merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
17
+ */
18
+ save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
19
+ /** Others' changes since the last load or save, or null when there are none. */
20
+ pull?(documentId: string): Promise<AnnotationLayer | null>;
21
+ /** Whether this user may change the layer; false makes it view-only. Known after `load`. */
22
+ canEdit?(documentId: string): boolean;
23
+ }
24
+ /** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
25
+ declare class AnnotationStoreOfflineError extends Error {
26
+ constructor(message?: string);
27
+ }
28
+ declare function createMemoryStore(now?: () => string): AnnotationStore;
29
+ /**
30
+ * Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
31
+ * guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
32
+ */
33
+ declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
34
+
35
+ export { type AnnotationStore as A, AnnotationStoreOfflineError as a, createMemoryStore as b, createLocalStorageStore as c };