@arbidocs/blocks 0.5.134 → 0.5.135

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 (55) hide show
  1. package/dist/{ConnectedNativeDocxComparison-H72RQJKH.cjs → ConnectedNativeDocxComparison-W4KIGO54.cjs} +8 -8
  2. package/dist/{ConnectedNativeDocxComparison-H72RQJKH.cjs.map → ConnectedNativeDocxComparison-W4KIGO54.cjs.map} +1 -1
  3. package/dist/{ConnectedStreamedWordArtifact-T7PZIRBY.cjs → ConnectedStreamedWordArtifact-764NSXPQ.cjs} +8 -8
  4. package/dist/{ConnectedStreamedWordArtifact-T7PZIRBY.cjs.map → ConnectedStreamedWordArtifact-764NSXPQ.cjs.map} +1 -1
  5. package/dist/{FilesViewerDialog-PA2B7O7I.cjs → FilesViewerDialog-IFF2JR2A.cjs} +6 -6
  6. package/dist/{FilesViewerDialog-PA2B7O7I.cjs.map → FilesViewerDialog-IFF2JR2A.cjs.map} +1 -1
  7. package/dist/{NativeDocxEditor-XZAEU5QU.cjs → NativeDocxEditor-KM6U4ZLA.cjs} +6 -6
  8. package/dist/{NativeDocxEditor-XZAEU5QU.cjs.map → NativeDocxEditor-KM6U4ZLA.cjs.map} +1 -1
  9. package/dist/{chunk-T2DUNNYY.cjs → chunk-C6DF6WB2.cjs} +745 -21
  10. package/dist/chunk-C6DF6WB2.cjs.map +1 -0
  11. package/dist/{chunk-64247UHS.cjs → chunk-DBGBAD4J.cjs} +4 -4
  12. package/dist/{chunk-64247UHS.cjs.map → chunk-DBGBAD4J.cjs.map} +1 -1
  13. package/dist/{chunk-UOZ237OW.cjs → chunk-FABKMTAI.cjs} +42 -5
  14. package/dist/chunk-FABKMTAI.cjs.map +1 -0
  15. package/dist/{chunk-L4Y6UMRC.cjs → chunk-FDRZJFNV.cjs} +5 -5
  16. package/dist/{chunk-L4Y6UMRC.cjs.map → chunk-FDRZJFNV.cjs.map} +1 -1
  17. package/dist/{chunk-O5WVYUFT.cjs → chunk-IEAZX7L6.cjs} +4 -4
  18. package/dist/{chunk-O5WVYUFT.cjs.map → chunk-IEAZX7L6.cjs.map} +1 -1
  19. package/dist/{chunk-2SWS7ESM.cjs → chunk-L62EU3TQ.cjs} +3 -3
  20. package/dist/{chunk-2SWS7ESM.cjs.map → chunk-L62EU3TQ.cjs.map} +1 -1
  21. package/dist/{chunk-IN3KXI3K.cjs → chunk-LG36LSVZ.cjs} +6 -6
  22. package/dist/{chunk-IN3KXI3K.cjs.map → chunk-LG36LSVZ.cjs.map} +1 -1
  23. package/dist/{chunk-RZSBHRQL.cjs → chunk-MMKMQZ2B.cjs} +5 -5
  24. package/dist/{chunk-RZSBHRQL.cjs.map → chunk-MMKMQZ2B.cjs.map} +1 -1
  25. package/dist/chunk-MMMGOZYH.cjs +18 -0
  26. package/dist/{chunk-KWD5Q4XH.cjs.map → chunk-MMMGOZYH.cjs.map} +1 -1
  27. package/dist/{chunk-V6SFJ44C.cjs → chunk-ZN2JXV65.cjs} +50 -13
  28. package/dist/chunk-ZN2JXV65.cjs.map +1 -0
  29. package/dist/connect/docx.cjs +12 -12
  30. package/dist/connect/index.cjs +78 -78
  31. package/dist/connect/viewer.cjs +4 -4
  32. package/dist/connection/docx/ConnectedNativeDocxEditor.js +39 -2
  33. package/dist/connection/docx/ConnectedNativeDocxEditor.js.map +2 -2
  34. package/dist/connection/viewer/ConnectedDocumentViewer.js +43 -6
  35. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  36. package/dist/docx/NativeDocxEditor.d.ts +12 -1
  37. package/dist/docx/NativeDocxEditor.js +513 -20
  38. package/dist/docx/NativeDocxEditor.js.map +3 -3
  39. package/dist/docx/index.cjs +38 -38
  40. package/dist/docx/recoveryStore.d.ts +8 -0
  41. package/dist/docx/recoveryStore.js +208 -0
  42. package/dist/docx/recoveryStore.js.map +7 -0
  43. package/dist/docx/temporaryRecovery.d.ts +8 -0
  44. package/dist/docx/temporaryRecovery.js +37 -0
  45. package/dist/docx/temporaryRecovery.js.map +7 -0
  46. package/dist/index.cjs +50 -50
  47. package/dist/styles.css +1 -1
  48. package/dist/workflow-canvas/index.cjs +9 -9
  49. package/node_modules/@arbidocs/coedit/package.json +1 -1
  50. package/package.json +5 -5
  51. package/src/docx/styles.css +37 -7
  52. package/dist/chunk-KWD5Q4XH.cjs +0 -18
  53. package/dist/chunk-T2DUNNYY.cjs.map +0 -1
  54. package/dist/chunk-UOZ237OW.cjs.map +0 -1
  55. package/dist/chunk-V6SFJ44C.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkRZSBHRQL_cjs = require('../chunk-RZSBHRQL.cjs');
4
+ var chunkMMKMQZ2B_cjs = require('../chunk-MMKMQZ2B.cjs');
5
5
  require('../chunk-32W2S6DE.cjs');
6
6
  require('../chunk-KWJW5TMH.cjs');
7
7
  require('../chunk-5GHGIDZP.cjs');
@@ -15,7 +15,7 @@ require('../chunk-HYUKPHCT.cjs');
15
15
  require('../chunk-FYFL3CET.cjs');
16
16
  require('../chunk-223D4727.cjs');
17
17
  require('../chunk-SNUBQMIS.cjs');
18
- var chunkUOZ237OW_cjs = require('../chunk-UOZ237OW.cjs');
18
+ var chunkFABKMTAI_cjs = require('../chunk-FABKMTAI.cjs');
19
19
  require('../chunk-4ONPEVTP.cjs');
20
20
  require('../chunk-V3KLUWQQ.cjs');
21
21
  var chunkOA3AN6WW_cjs = require('../chunk-OA3AN6WW.cjs');
@@ -29,7 +29,7 @@ require('../chunk-NZNBJF3M.cjs');
29
29
  require('../chunk-NWNVWO6L.cjs');
30
30
  require('../chunk-SK6HQ46Q.cjs');
31
31
  require('../chunk-TG2GM7WJ.cjs');
32
- require('../chunk-2SWS7ESM.cjs');
32
+ require('../chunk-L62EU3TQ.cjs');
33
33
  var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
34
34
  require('../chunk-OEJQFPWO.cjs');
35
35
  var chunkX46QYO4S_cjs = require('../chunk-X46QYO4S.cjs');
@@ -3106,7 +3106,7 @@ function ConnectedWorkflowsPage({
3106
3106
  const config = host.workflows;
3107
3107
  const { openConversation, openFiles } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
3108
3108
  const openWorkflow = chunkOA3AN6WW_cjs.useOpenWorkflow();
3109
- const renderPerson = chunkRZSBHRQL_cjs.useRenderTaskPerson();
3109
+ const renderPerson = chunkMMKMQZ2B_cjs.useRenderTaskPerson();
3110
3110
  const refreshDocuments = react$2.useRefreshDocuments();
3111
3111
  const invalidateTags = react$2.useInvalidateTagData();
3112
3112
  const { data: tags = [] } = react$2.useTags();
@@ -3137,7 +3137,7 @@ function ConnectedWorkflowsPage({
3137
3137
  openHistory,
3138
3138
  closeHistoryTab,
3139
3139
  selectHistoryTab
3140
- } = chunkRZSBHRQL_cjs.useWorkflowsPageState({
3140
+ } = chunkMMKMQZ2B_cjs.useWorkflowsPageState({
3141
3141
  historyWorkflowId: requestedHistoryId ?? historyWorkflowId,
3142
3142
  onHistoryWorkflowConsumed: consumeHistory
3143
3143
  });
@@ -3205,7 +3205,7 @@ function ConnectedWorkflowsPage({
3205
3205
  return (
3206
3206
  // The page in the Workflows page's frame: padded, scrolling.
3207
3207
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full min-h-0 w-full overflow-auto p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
3208
- chunkRZSBHRQL_cjs.ConnectedWorkflowRunPage,
3208
+ chunkMMKMQZ2B_cjs.ConnectedWorkflowRunPage,
3209
3209
  {
3210
3210
  workflow: running.workflow,
3211
3211
  projectFrom: running.projectFrom,
@@ -3293,7 +3293,7 @@ function ConnectedWorkflowsPage({
3293
3293
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": testId, children: [
3294
3294
  pageHeader && /* @__PURE__ */ jsxRuntime.jsx(chunkNSD37OF5_cjs.PageHeader, { ...pageHeader }),
3295
3295
  /* @__PURE__ */ jsxRuntime.jsx(
3296
- chunkUOZ237OW_cjs.ConnectedWorkflowsTable,
3296
+ chunkFABKMTAI_cjs.ConnectedWorkflowsTable,
3297
3297
  {
3298
3298
  onOpenTemplate: (id) => openBuilder({ kind: "template", id }),
3299
3299
  tabs: [
@@ -3323,7 +3323,7 @@ function ConnectedWorkflowsPage({
3323
3323
  }
3324
3324
  },
3325
3325
  content: hostTab ? hostTab.content : runsFor ? /* @__PURE__ */ jsxRuntime.jsx(
3326
- chunkRZSBHRQL_cjs.ConnectedWorkflowHistory,
3326
+ chunkMMKMQZ2B_cjs.ConnectedWorkflowHistory,
3327
3327
  {
3328
3328
  inline: true,
3329
3329
  hideHeader: true,
@@ -3387,7 +3387,7 @@ function ConnectedWorkflowsPage({
3387
3387
  }
3388
3388
  ),
3389
3389
  /* @__PURE__ */ jsxRuntime.jsx(
3390
- chunkRZSBHRQL_cjs.ConnectedTaskComposer,
3390
+ chunkMMKMQZ2B_cjs.ConnectedTaskComposer,
3391
3391
  {
3392
3392
  kind: "workflow",
3393
3393
  saveOnly: true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/coedit",
3
- "version": "0.5.134",
3
+ "version": "0.5.135",
4
4
  "description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/blocks",
3
- "version": "0.5.134",
3
+ "version": "0.5.135",
4
4
  "description": "Composable, domain-neutral UI blocks for ARBI apps, organised by capability (retrieval, facts, agents, workspaces, citations, collaboration) plus shell, theme and site primitives, on top of @arbidocs/react.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -344,9 +344,9 @@
344
344
  "custom-site:test:e2e": "playwright test -c examples/custom-site/playwright.config.ts"
345
345
  },
346
346
  "dependencies": {
347
- "@arbidocs/client": "0.5.134",
348
- "@arbidocs/coedit": "0.5.134",
349
- "@arbidocs/sdk": "0.5.134",
347
+ "@arbidocs/client": "0.5.135",
348
+ "@arbidocs/coedit": "0.5.135",
349
+ "@arbidocs/sdk": "0.5.135",
350
350
  "@auth0/auth0-react": "^2.19.0",
351
351
  "@dnd-kit/core": "^6.3.1",
352
352
  "@dnd-kit/sortable": "^10.0.0",
@@ -397,7 +397,7 @@
397
397
  "y-protocols": "^1.0.6"
398
398
  },
399
399
  "peerDependencies": {
400
- "@arbidocs/react": "0.5.134",
400
+ "@arbidocs/react": "0.5.135",
401
401
  "@lexical/html": "0.35.0",
402
402
  "@lexical/link": "0.35.0",
403
403
  "@lexical/list": "0.35.0",
@@ -134,6 +134,21 @@
134
134
  background: #fff0ef;
135
135
  color: #a23832;
136
136
  }
137
+ .native-docx-notice-stack {
138
+ position: absolute;
139
+ z-index: 40;
140
+ top: 48px;
141
+ left: 12px;
142
+ right: 12px;
143
+ display: flex;
144
+ flex-direction: column;
145
+ gap: 8px;
146
+ pointer-events: none;
147
+ }
148
+ .native-docx-notice-stack .native-docx-notice {
149
+ position: static;
150
+ pointer-events: auto;
151
+ }
137
152
  .native-docx-body .docx-review__summary,
138
153
  .native-docx-body .docx-review__replies {
139
154
  overflow-wrap: anywhere;
@@ -1303,10 +1318,20 @@
1303
1318
  border-radius: 4px;
1304
1319
  font-size: 12px;
1305
1320
  }
1306
- .native-docx-command-item:hover { background: hsl(var(--muted)); }
1307
- .native-docx-command-item:has(> .native-docx-command-control:empty) { display: none; }
1308
- .native-docx-command-control { display: flex; align-items: center; gap: 2px; }
1309
- .native-docx-command-label { cursor: pointer; }
1321
+ .native-docx-command-item:hover {
1322
+ background: hsl(var(--muted));
1323
+ }
1324
+ .native-docx-command-item:has(> .native-docx-command-control:empty) {
1325
+ display: none;
1326
+ }
1327
+ .native-docx-command-control {
1328
+ display: flex;
1329
+ align-items: center;
1330
+ gap: 2px;
1331
+ }
1332
+ .native-docx-command-label {
1333
+ cursor: pointer;
1334
+ }
1310
1335
  .native-docx-command-item .native-docx-ribbon-menu {
1311
1336
  flex-wrap: wrap;
1312
1337
  }
@@ -1321,11 +1346,16 @@
1321
1346
  .native-docx-command-item:has(.native-docx-ribbon-popover:not([hidden])) {
1322
1347
  flex-wrap: wrap;
1323
1348
  }
1324
- .native-docx-command-item:has(.native-docx-ribbon-popover:not([hidden])) .native-docx-command-control {
1349
+ .native-docx-command-item:has(.native-docx-ribbon-popover:not([hidden]))
1350
+ .native-docx-command-control {
1325
1351
  flex-basis: 100%;
1326
1352
  min-width: 0;
1327
1353
  }
1328
1354
  @media (max-width: 420px) {
1329
- .native-docx-command-categories { flex-basis: 104px; }
1330
- .native-docx-command-categories button { padding-inline: 4px; }
1355
+ .native-docx-command-categories {
1356
+ flex-basis: 104px;
1357
+ }
1358
+ .native-docx-command-categories button {
1359
+ padding-inline: 4px;
1360
+ }
1331
1361
  }
@@ -1,18 +0,0 @@
1
- "use client";
2
- 'use strict';
3
-
4
- var chunkL4Y6UMRC_cjs = require('./chunk-L4Y6UMRC.cjs');
5
- var chunkUOZ237OW_cjs = require('./chunk-UOZ237OW.cjs');
6
- var jsxRuntime = require('react/jsx-runtime');
7
-
8
- function ConnectedStreamedWordArtifact({
9
- fontBaseUrl,
10
- ...props
11
- }) {
12
- const adapter = chunkUOZ237OW_cjs.useConnectedNativeDocxAdapter(fontBaseUrl);
13
- return /* @__PURE__ */ jsxRuntime.jsx(chunkL4Y6UMRC_cjs.StreamedWordArtifact, { ...props, adapter });
14
- }
15
-
16
- exports.ConnectedStreamedWordArtifact = ConnectedStreamedWordArtifact;
17
- //# sourceMappingURL=chunk-KWD5Q4XH.cjs.map
18
- //# sourceMappingURL=chunk-KWD5Q4XH.cjs.map