@arbidocs/blocks 0.4.125 → 0.4.126

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 (74) hide show
  1. package/dist/{NativeDocxEditor-2JTZNFKD.cjs → NativeDocxEditor-BE2OEOTJ.cjs} +7 -7
  2. package/dist/{NativeDocxEditor-2JTZNFKD.cjs.map → NativeDocxEditor-BE2OEOTJ.cjs.map} +1 -1
  3. package/dist/{NativeDocxEditor-QIWYQDIO.js → NativeDocxEditor-KOPFMRYW.js} +3 -3
  4. package/dist/{NativeDocxEditor-QIWYQDIO.js.map → NativeDocxEditor-KOPFMRYW.js.map} +1 -1
  5. package/dist/{StreamedArtifactEditor-DNBDUNP2.cjs → StreamedArtifactEditor-EEYAXJ4H.cjs} +5 -5
  6. package/dist/{StreamedArtifactEditor-DNBDUNP2.cjs.map → StreamedArtifactEditor-EEYAXJ4H.cjs.map} +1 -1
  7. package/dist/{StreamedArtifactEditor-WDHPTWX7.js → StreamedArtifactEditor-TDATDYD2.js} +3 -3
  8. package/dist/{StreamedArtifactEditor-WDHPTWX7.js.map → StreamedArtifactEditor-TDATDYD2.js.map} +1 -1
  9. package/dist/agents/index.cjs +241 -241
  10. package/dist/agents/index.js +6 -6
  11. package/dist/agents/workflows/StepParts.d.ts +3 -3
  12. package/dist/artifacts/VersionTimeline.d.ts +19 -1
  13. package/dist/artifacts/index.cjs +21 -21
  14. package/dist/artifacts/index.d.ts +1 -1
  15. package/dist/artifacts/index.js +1 -1
  16. package/dist/{chunk-BDSKKIFZ.js → chunk-2FL7QJKJ.js} +3 -3
  17. package/dist/{chunk-BDSKKIFZ.js.map → chunk-2FL7QJKJ.js.map} +1 -1
  18. package/dist/{chunk-KUW4ATIC.cjs → chunk-4TR5QCCX.cjs} +5 -5
  19. package/dist/{chunk-KUW4ATIC.cjs.map → chunk-4TR5QCCX.cjs.map} +1 -1
  20. package/dist/{chunk-ERNMU6RV.js → chunk-54ANPPMV.js} +5 -5
  21. package/dist/chunk-54ANPPMV.js.map +1 -0
  22. package/dist/{chunk-SHASZLGD.js → chunk-6Z72CXZR.js} +3 -3
  23. package/dist/{chunk-SHASZLGD.js.map → chunk-6Z72CXZR.js.map} +1 -1
  24. package/dist/{chunk-WEUCLOBB.cjs → chunk-D4YR56FV.cjs} +5 -5
  25. package/dist/{chunk-WEUCLOBB.cjs.map → chunk-D4YR56FV.cjs.map} +1 -1
  26. package/dist/{chunk-N7ARMX3O.cjs → chunk-DZI7WOUD.cjs} +4 -4
  27. package/dist/{chunk-N7ARMX3O.cjs.map → chunk-DZI7WOUD.cjs.map} +1 -1
  28. package/dist/{chunk-W4GXDARU.cjs → chunk-INW76PEL.cjs} +163 -110
  29. package/dist/chunk-INW76PEL.cjs.map +1 -0
  30. package/dist/{chunk-OTDGTBAS.js → chunk-KELGOCJA.js} +164 -111
  31. package/dist/chunk-KELGOCJA.js.map +1 -0
  32. package/dist/{chunk-565NYAM2.js → chunk-KLOSOT26.js} +7 -7
  33. package/dist/{chunk-565NYAM2.js.map → chunk-KLOSOT26.js.map} +1 -1
  34. package/dist/{chunk-MRURIBBB.cjs → chunk-LC2KJSUS.cjs} +5 -5
  35. package/dist/chunk-LC2KJSUS.cjs.map +1 -0
  36. package/dist/{chunk-D72GGCXN.js → chunk-MCKOZACC.js} +3 -3
  37. package/dist/{chunk-D72GGCXN.js.map → chunk-MCKOZACC.js.map} +1 -1
  38. package/dist/{chunk-JSH43QMZ.cjs → chunk-V5OAXIBN.cjs} +3 -3
  39. package/dist/{chunk-JSH43QMZ.cjs.map → chunk-V5OAXIBN.cjs.map} +1 -1
  40. package/dist/{chunk-ETN5EZI4.js → chunk-VW2C2AZL.js} +3 -3
  41. package/dist/{chunk-ETN5EZI4.js.map → chunk-VW2C2AZL.js.map} +1 -1
  42. package/dist/{chunk-SA7TN3AW.cjs → chunk-W27VK32R.cjs} +18 -18
  43. package/dist/{chunk-SA7TN3AW.cjs.map → chunk-W27VK32R.cjs.map} +1 -1
  44. package/dist/connect/docx.cjs +6 -6
  45. package/dist/connect/docx.js +4 -4
  46. package/dist/connect/index.cjs +18 -18
  47. package/dist/connect/index.js +7 -7
  48. package/dist/connection/ConnectedWorkflowBuilder.d.ts +3 -0
  49. package/dist/docx/index.cjs +46 -46
  50. package/dist/docx/index.js +3 -3
  51. package/dist/files/HtmlViewerParts.d.ts +0 -28
  52. package/dist/files/index.cjs +20 -103
  53. package/dist/files/index.cjs.map +1 -1
  54. package/dist/files/index.d.ts +1 -1
  55. package/dist/files/index.js +7 -88
  56. package/dist/files/index.js.map +1 -1
  57. package/dist/index.cjs +326 -326
  58. package/dist/index.js +11 -11
  59. package/dist/shell/index.cjs +1 -1
  60. package/dist/shell/index.js +1 -1
  61. package/dist/site/index.cjs +5 -5
  62. package/dist/site/index.js +1 -1
  63. package/dist/studio/index.cjs +1 -1
  64. package/dist/studio/index.js +1 -1
  65. package/dist/workflow-canvas/index.cjs +22 -20
  66. package/dist/workflow-canvas/index.cjs.map +1 -1
  67. package/dist/workflow-canvas/index.js +9 -7
  68. package/dist/workflow-canvas/index.js.map +1 -1
  69. package/node_modules/@arbidocs/coedit/package.json +1 -1
  70. package/package.json +4 -4
  71. package/dist/chunk-ERNMU6RV.js.map +0 -1
  72. package/dist/chunk-MRURIBBB.cjs.map +0 -1
  73. package/dist/chunk-OTDGTBAS.js.map +0 -1
  74. package/dist/chunk-W4GXDARU.cjs.map +0 -1
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
5
4
  var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
6
5
  var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
7
6
  var chunkUWIILWDI_cjs = require('../chunk-UWIILWDI.cjs');
7
+ var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
8
8
  var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
9
9
  var chunk3AFWGEDJ_cjs = require('../chunk-3AFWGEDJ.cjs');
10
- var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
11
10
  var chunkDVUZTGVL_cjs = require('../chunk-DVUZTGVL.cjs');
11
+ var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
12
12
  var chunkDETZZBG2_cjs = require('../chunk-DETZZBG2.cjs');
13
+ var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
13
14
  var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
14
15
  var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
15
- var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
16
16
  var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
17
17
  var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
18
18
  require('../chunk-FX3K6LNZ.cjs');
@@ -2191,15 +2191,7 @@ var DEFAULT_HTML_VIEWER_LABELS = {
2191
2191
  sharedWithMembers: "Shared with workspace members",
2192
2192
  privateToYou: "Private to you",
2193
2193
  shared: "Shared",
2194
- private: "Private",
2195
- instantTranslation: "Instant Translation",
2196
- backToDocument: "Back to document",
2197
- compareOriginal: "Compare original vs translation",
2198
- copyComparison: "Copy comparison",
2199
- copyTranslation: "Copy full translation",
2200
- passage: "Passage",
2201
- original: "Original",
2202
- translation: "Translation"
2194
+ private: "Private"
2203
2195
  };
2204
2196
  function HtmlViewerRoot({ children, className }) {
2205
2197
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cn("relative h-full w-full", className), "data-slot": "html-viewer", children });
@@ -2482,79 +2474,6 @@ function DocTagBar({
2482
2474
  }
2483
2475
  );
2484
2476
  }
2485
- function TranslationBadge({
2486
- isComparing,
2487
- onToggleCompare,
2488
- onCopy,
2489
- labels
2490
- }) {
2491
- const l = { ...DEFAULT_HTML_VIEWER_LABELS, ...labels };
2492
- const [copied, setCopied] = react.useState(false);
2493
- const handleCopy = async () => {
2494
- await onCopy();
2495
- setCopied(true);
2496
- setTimeout(() => setCopied(false), 2e3);
2497
- };
2498
- const iconButton = "flex items-center transition-colors hover:text-blue-text-strong pointer-coarse:min-h-11 pointer-coarse:min-w-11 pointer-coarse:justify-center";
2499
- return /* @__PURE__ */ jsxRuntime.jsxs(
2500
- "span",
2501
- {
2502
- className: "inline-flex items-center gap-1 rounded-md border border-blue-border bg-blue-bg py-0.5 pl-2 pr-1 text-sm font-medium text-blue-text",
2503
- "data-slot": "translation-badge",
2504
- children: [
2505
- l.instantTranslation,
2506
- /* @__PURE__ */ jsxRuntime.jsx(
2507
- "button",
2508
- {
2509
- type: "button",
2510
- onClick: onToggleCompare,
2511
- className: iconButton,
2512
- title: isComparing ? l.backToDocument : l.compareOriginal,
2513
- "aria-label": isComparing ? l.backToDocument : l.compareOriginal,
2514
- children: isComparing ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Columns2, { className: "size-3" })
2515
- }
2516
- ),
2517
- /* @__PURE__ */ jsxRuntime.jsx(
2518
- "button",
2519
- {
2520
- type: "button",
2521
- onClick: handleCopy,
2522
- className: iconButton,
2523
- title: isComparing ? l.copyComparison : l.copyTranslation,
2524
- "aria-label": isComparing ? l.copyComparison : l.copyTranslation,
2525
- children: copied ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-3" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { className: "size-3" })
2526
- }
2527
- )
2528
- ]
2529
- }
2530
- );
2531
- }
2532
- function TranslationCompareTable({
2533
- rows,
2534
- labels
2535
- }) {
2536
- const l = { ...DEFAULT_HTML_VIEWER_LABELS, ...labels };
2537
- const th = "border border-border px-4 py-2 text-left text-sm font-medium text-muted-foreground";
2538
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full w-full overflow-y-auto bg-muted p-4", "data-slot": "translation-compare", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto max-w-6xl", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "w-full border-collapse overflow-hidden rounded-md border border-border bg-background", children: [
2539
- /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "bg-muted", children: [
2540
- /* @__PURE__ */ jsxRuntime.jsx("th", { className: ui.cn(th, "w-40 px-3"), translate: "no", children: l.passage }),
2541
- /* @__PURE__ */ jsxRuntime.jsx("th", { className: ui.cn(th, "w-1/2"), translate: "no", children: l.original }),
2542
- /* @__PURE__ */ jsxRuntime.jsx("th", { className: ui.cn(th, "w-1/2 text-blue-text"), translate: "no", children: l.translation })
2543
- ] }) }),
2544
- /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "align-top", children: [
2545
- /* @__PURE__ */ jsxRuntime.jsx("td", { className: "border border-border px-3 py-2", translate: "no", children: row.passage }),
2546
- /* @__PURE__ */ jsxRuntime.jsx(
2547
- "td",
2548
- {
2549
- className: "whitespace-pre-wrap border border-border px-4 py-2 text-sm text-foreground",
2550
- translate: "no",
2551
- children: row.original
2552
- }
2553
- ),
2554
- /* @__PURE__ */ jsxRuntime.jsx("td", { className: "whitespace-pre-wrap border border-border px-4 py-2 text-sm text-foreground", children: row.translated })
2555
- ] }, row.key)) })
2556
- ] }) }) });
2557
- }
2558
2477
  var DEFAULT_TAG_PASSAGE_PANEL_LABELS = {
2559
2478
  title: "Tag Passage",
2560
2479
  page: (n) => `Page ${n}`,
@@ -7004,18 +6923,6 @@ function ExplorerDragPreview({ icon, title, count }) {
7004
6923
  ] });
7005
6924
  }
7006
6925
 
7007
- Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEW_TOGGLE_LABELS", {
7008
- enumerable: true,
7009
- get: function () { return chunk2WLXQGWC_cjs.DEFAULT_DOCUMENT_VIEW_TOGGLE_LABELS; }
7010
- });
7011
- Object.defineProperty(exports, "DocumentViewToggle", {
7012
- enumerable: true,
7013
- get: function () { return chunk2WLXQGWC_cjs.DocumentViewToggle; }
7014
- });
7015
- Object.defineProperty(exports, "ViewToggle", {
7016
- enumerable: true,
7017
- get: function () { return chunk2WLXQGWC_cjs.ViewToggle; }
7018
- });
7019
6926
  Object.defineProperty(exports, "DEFAULT_FOLDER_FILTER_LABELS", {
7020
6927
  enumerable: true,
7021
6928
  get: function () { return chunkO4YPVYPO_cjs.DEFAULT_FOLDER_FILTER_LABELS; }
@@ -7076,6 +6983,18 @@ Object.defineProperty(exports, "ViewerStatusNote", {
7076
6983
  enumerable: true,
7077
6984
  get: function () { return chunkUWIILWDI_cjs.ViewerStatusNote; }
7078
6985
  });
6986
+ Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEW_TOGGLE_LABELS", {
6987
+ enumerable: true,
6988
+ get: function () { return chunk2WLXQGWC_cjs.DEFAULT_DOCUMENT_VIEW_TOGGLE_LABELS; }
6989
+ });
6990
+ Object.defineProperty(exports, "DocumentViewToggle", {
6991
+ enumerable: true,
6992
+ get: function () { return chunk2WLXQGWC_cjs.DocumentViewToggle; }
6993
+ });
6994
+ Object.defineProperty(exports, "ViewToggle", {
6995
+ enumerable: true,
6996
+ get: function () { return chunk2WLXQGWC_cjs.ViewToggle; }
6997
+ });
7079
6998
  Object.defineProperty(exports, "CellHoverIcon", {
7080
6999
  enumerable: true,
7081
7000
  get: function () { return chunk3AFWGEDJ_cjs.CellHoverIcon; }
@@ -7084,6 +7003,10 @@ Object.defineProperty(exports, "HoverIconCell", {
7084
7003
  enumerable: true,
7085
7004
  get: function () { return chunk3AFWGEDJ_cjs.HoverIconCell; }
7086
7005
  });
7006
+ Object.defineProperty(exports, "UploadDropzone", {
7007
+ enumerable: true,
7008
+ get: function () { return chunkDETZZBG2_cjs.UploadDropzone; }
7009
+ });
7087
7010
  Object.defineProperty(exports, "DEFAULT_SELECTION_BAR_LABELS", {
7088
7011
  enumerable: true,
7089
7012
  get: function () { return chunkV4ISCZJ7_cjs.DEFAULT_SELECTION_BAR_LABELS; }
@@ -7096,10 +7019,6 @@ Object.defineProperty(exports, "SelectionBarAction", {
7096
7019
  enumerable: true,
7097
7020
  get: function () { return chunkV4ISCZJ7_cjs.SelectionBarAction; }
7098
7021
  });
7099
- Object.defineProperty(exports, "UploadDropzone", {
7100
- enumerable: true,
7101
- get: function () { return chunkDETZZBG2_cjs.UploadDropzone; }
7102
- });
7103
7022
  Object.defineProperty(exports, "GridView", {
7104
7023
  enumerable: true,
7105
7024
  get: function () { return chunkC2CWWEHO_cjs.GridView; }
@@ -7237,8 +7156,6 @@ exports.TransferProgressView = TransferProgressView;
7237
7156
  exports.TransferReferencesChooser = TransferReferencesChooser;
7238
7157
  exports.TransferResumeBanner = TransferResumeBanner;
7239
7158
  exports.TransferScopeChooser = TransferScopeChooser;
7240
- exports.TranslationBadge = TranslationBadge;
7241
- exports.TranslationCompareTable = TranslationCompareTable;
7242
7159
  exports.UploadBrowseButtons = UploadBrowseButtons;
7243
7160
  exports.UploadContainer = UploadContainer;
7244
7161
  exports.UploadDropArea = UploadDropArea;