@arbidocs/blocks 0.4.69 → 0.4.71

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 (129) hide show
  1. package/README.md +161 -1
  2. package/bin/arbidocs-copy-pdf-assets.mjs +112 -0
  3. package/dist/{StreamedArtifactEditor-OPL4KXOT.js → StreamedArtifactEditor-HTNPG4NB.js} +3 -2
  4. package/dist/StreamedArtifactEditor-HTNPG4NB.js.map +1 -0
  5. package/dist/{StreamedArtifactEditor-RIKG6CJQ.cjs → StreamedArtifactEditor-IZWYNFMM.cjs} +3 -2
  6. package/dist/StreamedArtifactEditor-IZWYNFMM.cjs.map +1 -0
  7. package/dist/agents/index.cjs +221 -220
  8. package/dist/agents/index.js +5 -4
  9. package/dist/artifacts/editor/index.cjs +1 -0
  10. package/dist/artifacts/editor/index.js +1 -0
  11. package/dist/artifacts/index.cjs +1 -0
  12. package/dist/artifacts/index.js +1 -0
  13. package/dist/auth/index.cjs +1 -0
  14. package/dist/auth/index.js +1 -0
  15. package/dist/chat/index.cjs +67 -66
  16. package/dist/chat/index.js +3 -2
  17. package/dist/{chunk-CW4WXGEN.js → chunk-3TVTG7FK.js} +3 -3
  18. package/dist/{chunk-CW4WXGEN.js.map → chunk-3TVTG7FK.js.map} +1 -1
  19. package/dist/chunk-4DVEGXZQ.cjs +72 -0
  20. package/dist/chunk-4DVEGXZQ.cjs.map +1 -0
  21. package/dist/{chunk-EHXSBH6U.js → chunk-5HOAOKZL.js} +4 -2
  22. package/dist/chunk-5HOAOKZL.js.map +1 -0
  23. package/dist/{chunk-ZYZMCNIS.cjs → chunk-7M22KND4.cjs} +5 -5
  24. package/dist/{chunk-ZYZMCNIS.cjs.map → chunk-7M22KND4.cjs.map} +1 -1
  25. package/dist/{chunk-ZQB7HNE6.js → chunk-BMWZTNZB.js} +3 -3
  26. package/dist/{chunk-ZQB7HNE6.js.map → chunk-BMWZTNZB.js.map} +1 -1
  27. package/dist/chunk-DES3K4SD.cjs +18 -0
  28. package/dist/chunk-DES3K4SD.cjs.map +1 -0
  29. package/dist/{chunk-4HZ46XP2.js → chunk-HLMFU7L2.js} +5 -5
  30. package/dist/{chunk-4HZ46XP2.js.map → chunk-HLMFU7L2.js.map} +1 -1
  31. package/dist/{chunk-BR2CPKFU.cjs → chunk-LTA2IAQB.cjs} +6 -6
  32. package/dist/{chunk-BR2CPKFU.cjs.map → chunk-LTA2IAQB.cjs.map} +1 -1
  33. package/dist/chunk-ODWCTAH7.js +66 -0
  34. package/dist/chunk-ODWCTAH7.js.map +1 -0
  35. package/dist/{chunk-TLQQV7WW.cjs → chunk-THO7DZNN.cjs} +4 -2
  36. package/dist/chunk-THO7DZNN.cjs.map +1 -0
  37. package/dist/chunk-VUNV25KB.js +15 -0
  38. package/dist/chunk-VUNV25KB.js.map +1 -0
  39. package/dist/{chunk-WKNAFILY.cjs → chunk-XNRGCQPZ.cjs} +3 -3
  40. package/dist/{chunk-WKNAFILY.cjs.map → chunk-XNRGCQPZ.cjs.map} +1 -1
  41. package/dist/citations/index.cjs +1 -0
  42. package/dist/citations/index.js +1 -0
  43. package/dist/collaboration/index.cjs +1 -0
  44. package/dist/collaboration/index.js +1 -0
  45. package/dist/connect/docx.cjs +3 -2
  46. package/dist/connect/docx.cjs.map +1 -1
  47. package/dist/connect/docx.js +2 -1
  48. package/dist/connect/docx.js.map +1 -1
  49. package/dist/connect/index.cjs +26 -25
  50. package/dist/connect/index.cjs.map +1 -1
  51. package/dist/connect/index.js +7 -6
  52. package/dist/connect/index.js.map +1 -1
  53. package/dist/connection/ConnectionProvider.d.ts +5 -0
  54. package/dist/connection/types.d.ts +6 -0
  55. package/dist/document-tools/DocumentToolButtons.d.ts +29 -0
  56. package/dist/document-tools/MarkupNotices.d.ts +12 -0
  57. package/dist/document-tools/MarkupViewNote.d.ts +11 -0
  58. package/dist/document-tools/SignDocumentDialog.d.ts +20 -0
  59. package/dist/document-tools/SignatureCertificate.d.ts +26 -0
  60. package/dist/document-tools/SignatureStatus.d.ts +24 -0
  61. package/dist/document-tools/VersionSnapshotBar.d.ts +27 -0
  62. package/dist/document-tools/index.cjs +637 -0
  63. package/dist/document-tools/index.cjs.map +1 -0
  64. package/dist/document-tools/index.d.ts +7 -0
  65. package/dist/document-tools/index.js +623 -0
  66. package/dist/document-tools/index.js.map +1 -0
  67. package/dist/document-tools/production/ProductionSetDialog.d.ts +23 -0
  68. package/dist/document-tools/production/index.cjs +102 -0
  69. package/dist/document-tools/production/index.cjs.map +1 -0
  70. package/dist/document-tools/production/index.d.ts +1 -0
  71. package/dist/document-tools/production/index.js +100 -0
  72. package/dist/document-tools/production/index.js.map +1 -0
  73. package/dist/document-tools/viewer/AnnotatedPdfViewer.d.ts +54 -0
  74. package/dist/document-tools/viewer/SignaturePlacementViewer.d.ts +20 -0
  75. package/dist/document-tools/viewer/index.cjs +273 -0
  76. package/dist/document-tools/viewer/index.cjs.map +1 -0
  77. package/dist/document-tools/viewer/index.d.ts +2 -0
  78. package/dist/document-tools/viewer/index.js +268 -0
  79. package/dist/document-tools/viewer/index.js.map +1 -0
  80. package/dist/docx/index.cjs +1 -0
  81. package/dist/docx/index.cjs.map +1 -1
  82. package/dist/docx/index.js +1 -0
  83. package/dist/docx/index.js.map +1 -1
  84. package/dist/facts/index.cjs +1 -0
  85. package/dist/facts/index.cjs.map +1 -1
  86. package/dist/facts/index.js +1 -0
  87. package/dist/facts/index.js.map +1 -1
  88. package/dist/files/cells/DocumentNameCell.d.ts +3 -1
  89. package/dist/files/index.cjs +39 -67
  90. package/dist/files/index.cjs.map +1 -1
  91. package/dist/files/index.js +20 -63
  92. package/dist/files/index.js.map +1 -1
  93. package/dist/home/index.cjs +1 -0
  94. package/dist/home/index.cjs.map +1 -1
  95. package/dist/home/index.js +1 -0
  96. package/dist/home/index.js.map +1 -1
  97. package/dist/index.cjs +481 -480
  98. package/dist/index.cjs.map +1 -1
  99. package/dist/index.js +8 -7
  100. package/dist/index.js.map +1 -1
  101. package/dist/lib-6QPUXAQS.cjs +9674 -0
  102. package/dist/lib-6QPUXAQS.cjs.map +1 -0
  103. package/dist/lib-NRGL2JGF.js +9672 -0
  104. package/dist/lib-NRGL2JGF.js.map +1 -0
  105. package/dist/retrieval/index.cjs +1 -0
  106. package/dist/retrieval/index.js +1 -0
  107. package/dist/settings/index.cjs +2 -1
  108. package/dist/settings/index.cjs.map +1 -1
  109. package/dist/settings/index.js +2 -1
  110. package/dist/settings/index.js.map +1 -1
  111. package/dist/shell/index.cjs +1 -0
  112. package/dist/shell/index.js +1 -0
  113. package/dist/site/index.cjs +1 -0
  114. package/dist/site/index.js +1 -0
  115. package/dist/studio/index.cjs +5 -4
  116. package/dist/studio/index.cjs.map +1 -1
  117. package/dist/studio/index.js +3 -2
  118. package/dist/studio/index.js.map +1 -1
  119. package/dist/timeline/index.cjs +1 -0
  120. package/dist/timeline/index.js +1 -0
  121. package/dist/workspaces/index.cjs +1 -0
  122. package/dist/workspaces/index.cjs.map +1 -1
  123. package/dist/workspaces/index.js +1 -0
  124. package/dist/workspaces/index.js.map +1 -1
  125. package/package.json +32 -4
  126. package/dist/StreamedArtifactEditor-OPL4KXOT.js.map +0 -1
  127. package/dist/StreamedArtifactEditor-RIKG6CJQ.cjs.map +0 -1
  128. package/dist/chunk-EHXSBH6U.js.map +0 -1
  129. package/dist/chunk-TLQQV7WW.cjs.map +0 -1
@@ -9,12 +9,14 @@ export interface DocumentRowMenuProps {
9
9
  onDownload: () => void;
10
10
  /** "Download with markup": shown when the document's current version has markup. */
11
11
  onDownloadMarkup?: () => void;
12
+ /** Why "Download with markup" is off (a signed, locked version): shown under it. */
13
+ downloadMarkupDisabledReason?: string;
12
14
  onMove: () => void;
13
15
  onDelete: () => void;
14
16
  testId?: string;
15
17
  }
16
18
  /** The row-actions kebab of the grid's document cell (Open, Review, Chat, Rename, ...). */
17
- export declare function DocumentRowMenu({ canEdit, onOpen, onReview, onDocumentChat, onRename, onDownload, onDownloadMarkup, onMove, onDelete, testId, }: DocumentRowMenuProps): import("react").JSX.Element;
19
+ export declare function DocumentRowMenu({ canEdit, onOpen, onReview, onDocumentChat, onRename, onDownload, onDownloadMarkup, downloadMarkupDisabledReason, onMove, onDelete, testId, }: DocumentRowMenuProps): import("react").JSX.Element;
18
20
  export interface DocumentNameCellFrameProps {
19
21
  /** Test id on the wrapper, e.g. `open-document-viewer-button-<id>`. */
20
22
  testId?: string;
@@ -1,13 +1,14 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
+ var chunk4DVEGXZQ_cjs = require('../chunk-4DVEGXZQ.cjs');
4
5
  var chunkZPERNIMP_cjs = require('../chunk-ZPERNIMP.cjs');
5
6
  var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
6
7
  var chunk3AFWGEDJ_cjs = require('../chunk-3AFWGEDJ.cjs');
7
8
  var chunkIA7RTPT3_cjs = require('../chunk-IA7RTPT3.cjs');
8
- var chunkVFUWWH52_cjs = require('../chunk-VFUWWH52.cjs');
9
9
  var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
10
10
  var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
11
+ var chunkVFUWWH52_cjs = require('../chunk-VFUWWH52.cjs');
11
12
  require('../chunk-FX3K6LNZ.cjs');
12
13
  require('../chunk-PPCATBOY.cjs');
13
14
  require('../chunk-C54XEN5T.cjs');
@@ -16,6 +17,7 @@ var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
16
17
  var chunk2ZTONLT5_cjs = require('../chunk-2ZTONLT5.cjs');
17
18
  require('../chunk-DCDVWPMB.cjs');
18
19
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
20
+ require('../chunk-DES3K4SD.cjs');
19
21
  var react = require('react');
20
22
  var lucideReact = require('lucide-react');
21
23
  var ui = require('@arbidocs/react/ui');
@@ -1893,63 +1895,6 @@ function ViewerZoomControl({ zoom, onCycle, labels, testIds }) {
1893
1895
  }
1894
1896
  );
1895
1897
  }
1896
- function ViewerHeaderStart({ children }) {
1897
- return /* @__PURE__ */ jsxRuntime.jsx(
1898
- "div",
1899
- {
1900
- "data-slot": "viewer-header-start",
1901
- className: "flex min-w-0 items-center gap-2 overflow-hidden",
1902
- children
1903
- }
1904
- );
1905
- }
1906
- function ViewerHeaderEnd({
1907
- isCompact,
1908
- children
1909
- }) {
1910
- return /* @__PURE__ */ jsxRuntime.jsx(
1911
- "div",
1912
- {
1913
- "data-slot": "viewer-header-end",
1914
- className: ui.cn("flex flex-shrink-0 items-center", isCompact ? "gap-1" : "gap-2"),
1915
- children
1916
- }
1917
- );
1918
- }
1919
- function ViewerStatusNote({
1920
- pulse,
1921
- testId,
1922
- children
1923
- }) {
1924
- return /* @__PURE__ */ jsxRuntime.jsx(
1925
- "span",
1926
- {
1927
- "data-slot": "viewer-status-note",
1928
- className: ui.cn("flex-shrink-0 text-sm text-muted-foreground", pulse && "animate-pulse"),
1929
- "data-testid": testId,
1930
- children
1931
- }
1932
- );
1933
- }
1934
- function ViewerPane({
1935
- hidden,
1936
- scroll,
1937
- testId,
1938
- children
1939
- }) {
1940
- return /* @__PURE__ */ jsxRuntime.jsx(
1941
- "div",
1942
- {
1943
- "data-slot": "viewer-pane",
1944
- "data-testid": testId,
1945
- className: ui.cn(hidden ? "hidden" : scroll ? "h-full overflow-auto" : "relative h-full"),
1946
- children
1947
- }
1948
- );
1949
- }
1950
- function ViewerRenderedPane({ testId, children }) {
1951
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "viewer-rendered", className: "p-6", "data-testid": testId, children });
1952
- }
1953
1898
  var DEFAULT_MOVE_TO_FOLDER_LABELS = {
1954
1899
  title: "Move to Folder",
1955
1900
  cancel: "Cancel",
@@ -4168,6 +4113,7 @@ function DocumentRowMenu({
4168
4113
  onRename,
4169
4114
  onDownload,
4170
4115
  onDownloadMarkup,
4116
+ downloadMarkupDisabledReason,
4171
4117
  onMove,
4172
4118
  onDelete,
4173
4119
  testId = "document-row-menu"
@@ -4212,10 +4158,21 @@ function DocumentRowMenu({
4212
4158
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Download, { className: "mr-2 h-4 w-4" }),
4213
4159
  "Download"
4214
4160
  ] }),
4215
- onDownloadMarkup && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { onSelect: onDownloadMarkup, "data-testid": "document-row-download-markup", children: [
4216
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileDown, { className: "mr-2 h-4 w-4" }),
4217
- "Download with markup"
4218
- ] }),
4161
+ onDownloadMarkup && /* @__PURE__ */ jsxRuntime.jsxs(
4162
+ ui.DropdownMenuItem,
4163
+ {
4164
+ onSelect: onDownloadMarkup,
4165
+ disabled: !!downloadMarkupDisabledReason,
4166
+ title: downloadMarkupDisabledReason,
4167
+ "data-testid": "document-row-download-markup",
4168
+ className: downloadMarkupDisabledReason ? "flex-wrap" : void 0,
4169
+ children: [
4170
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileDown, { className: "mr-2 h-4 w-4" }),
4171
+ "Download with markup",
4172
+ downloadMarkupDisabledReason && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-0.5 w-full pl-6 text-xs text-muted-foreground", children: downloadMarkupDisabledReason })
4173
+ ]
4174
+ }
4175
+ ),
4219
4176
  canEdit && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuItem, { onSelect: onMove, children: [
4220
4177
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FolderInput, { className: "mr-2 h-4 w-4" }),
4221
4178
  "Move to\u2026"
@@ -7222,6 +7179,26 @@ function ExplorerDragPreview({ icon, title, count }) {
7222
7179
  ] });
7223
7180
  }
7224
7181
 
7182
+ Object.defineProperty(exports, "ViewerHeaderEnd", {
7183
+ enumerable: true,
7184
+ get: function () { return chunk4DVEGXZQ_cjs.ViewerHeaderEnd; }
7185
+ });
7186
+ Object.defineProperty(exports, "ViewerHeaderStart", {
7187
+ enumerable: true,
7188
+ get: function () { return chunk4DVEGXZQ_cjs.ViewerHeaderStart; }
7189
+ });
7190
+ Object.defineProperty(exports, "ViewerPane", {
7191
+ enumerable: true,
7192
+ get: function () { return chunk4DVEGXZQ_cjs.ViewerPane; }
7193
+ });
7194
+ Object.defineProperty(exports, "ViewerRenderedPane", {
7195
+ enumerable: true,
7196
+ get: function () { return chunk4DVEGXZQ_cjs.ViewerRenderedPane; }
7197
+ });
7198
+ Object.defineProperty(exports, "ViewerStatusNote", {
7199
+ enumerable: true,
7200
+ get: function () { return chunk4DVEGXZQ_cjs.ViewerStatusNote; }
7201
+ });
7225
7202
  Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEW_TOGGLE_LABELS", {
7226
7203
  enumerable: true,
7227
7204
  get: function () { return chunkZPERNIMP_cjs.DEFAULT_DOCUMENT_VIEW_TOGGLE_LABELS; }
@@ -7421,16 +7398,11 @@ exports.UrlInputDialogView = UrlInputDialogView;
7421
7398
  exports.VendorLogo = VendorLogo;
7422
7399
  exports.ViewSelectorMenu = ViewSelectorMenu;
7423
7400
  exports.ViewerFrame = ViewerFrame;
7424
- exports.ViewerHeaderEnd = ViewerHeaderEnd;
7425
- exports.ViewerHeaderStart = ViewerHeaderStart;
7426
7401
  exports.ViewerImageActions = ViewerImageActions;
7427
7402
  exports.ViewerLoadError = ViewerLoadError;
7428
7403
  exports.ViewerMessage = ViewerMessage;
7429
7404
  exports.ViewerPageCounter = ViewerPageCounter;
7430
- exports.ViewerPane = ViewerPane;
7431
7405
  exports.ViewerPreviewUnavailable = ViewerPreviewUnavailable;
7432
- exports.ViewerRenderedPane = ViewerRenderedPane;
7433
- exports.ViewerStatusNote = ViewerStatusNote;
7434
7406
  exports.ViewerTabBar = ViewerTabBar;
7435
7407
  exports.ViewerTitle = ViewerTitle;
7436
7408
  exports.ViewerZoomControl = ViewerZoomControl;