@arbidocs/react 0.4.63 → 0.4.64

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 (57) hide show
  1. package/dist/annotations/index.cjs +24 -23
  2. package/dist/annotations/index.cjs.map +1 -1
  3. package/dist/annotations/index.js +2 -1
  4. package/dist/annotations/index.js.map +1 -1
  5. package/dist/artifacts/index.cjs +79 -50
  6. package/dist/artifacts/index.cjs.map +1 -1
  7. package/dist/artifacts/index.d.cts +52 -31
  8. package/dist/artifacts/index.d.ts +52 -31
  9. package/dist/artifacts/index.js +63 -37
  10. package/dist/artifacts/index.js.map +1 -1
  11. package/dist/{chunk-QS3Q5542.js → chunk-2VW47ADK.js} +10 -3
  12. package/dist/chunk-2VW47ADK.js.map +1 -0
  13. package/dist/chunk-4PRCRCQ5.cjs +41 -0
  14. package/dist/chunk-4PRCRCQ5.cjs.map +1 -0
  15. package/dist/{chunk-X3F5ABY2.cjs → chunk-6YKVIERB.cjs} +43 -21
  16. package/dist/chunk-6YKVIERB.cjs.map +1 -0
  17. package/dist/{chunk-Z4M7JB4L.cjs → chunk-D3CSLSGD.cjs} +9 -9
  18. package/dist/{chunk-Z4M7JB4L.cjs.map → chunk-D3CSLSGD.cjs.map} +1 -1
  19. package/dist/{chunk-N5SVBDLC.js → chunk-DIZC2XVB.js} +11 -4
  20. package/dist/chunk-DIZC2XVB.js.map +1 -0
  21. package/dist/{chunk-CVN7MAGQ.js → chunk-F5WHYJRB.js} +29 -7
  22. package/dist/chunk-F5WHYJRB.js.map +1 -0
  23. package/dist/{chunk-XDCRWZF2.cjs → chunk-GXQO3IJC.cjs} +10 -3
  24. package/dist/chunk-GXQO3IJC.cjs.map +1 -0
  25. package/dist/{chunk-OBNTJEEO.cjs → chunk-LCMCZS5Y.cjs} +11 -4
  26. package/dist/chunk-LCMCZS5Y.cjs.map +1 -0
  27. package/dist/{chunk-UDOPD3GK.js → chunk-NDABXDML.js} +3 -3
  28. package/dist/{chunk-UDOPD3GK.js.map → chunk-NDABXDML.js.map} +1 -1
  29. package/dist/chunk-QICALPFQ.js +18 -0
  30. package/dist/chunk-QICALPFQ.js.map +1 -0
  31. package/dist/{chunk-DSG3E7QX.js → chunk-SX7FCSON.js} +2 -2
  32. package/dist/chunk-SX7FCSON.js.map +1 -0
  33. package/dist/{chunk-UUE2R2E2.cjs → chunk-VH5ITITV.cjs} +2 -2
  34. package/dist/chunk-VH5ITITV.cjs.map +1 -0
  35. package/dist/{index-CUxIcC5j.d.ts → index-BWv_FKi3.d.cts} +18 -3
  36. package/dist/{index-CUxIcC5j.d.cts → index-BWv_FKi3.d.ts} +18 -3
  37. package/dist/index.cjs +356 -347
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +42 -8
  40. package/dist/index.d.ts +42 -8
  41. package/dist/index.js +11 -10
  42. package/dist/index.js.map +1 -1
  43. package/dist/shell/index.cjs +8 -7
  44. package/dist/shell/index.js +3 -2
  45. package/dist/ui/index.cjs +152 -143
  46. package/dist/ui/index.d.cts +1 -1
  47. package/dist/ui/index.d.ts +1 -1
  48. package/dist/ui/index.js +4 -3
  49. package/package.json +3 -3
  50. package/dist/chunk-CVN7MAGQ.js.map +0 -1
  51. package/dist/chunk-DSG3E7QX.js.map +0 -1
  52. package/dist/chunk-N5SVBDLC.js.map +0 -1
  53. package/dist/chunk-OBNTJEEO.cjs.map +0 -1
  54. package/dist/chunk-QS3Q5542.js.map +0 -1
  55. package/dist/chunk-UUE2R2E2.cjs.map +0 -1
  56. package/dist/chunk-X3F5ABY2.cjs.map +0 -1
  57. package/dist/chunk-XDCRWZF2.cjs.map +0 -1
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkXDCRWZF2_cjs = require('../chunk-XDCRWZF2.cjs');
3
+ var chunkGXQO3IJC_cjs = require('../chunk-GXQO3IJC.cjs');
4
+ require('../chunk-4PRCRCQ5.cjs');
4
5
  var chunkS6A6FSG7_cjs = require('../chunk-S6A6FSG7.cjs');
5
6
  var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
6
7
  var react = require('react');
@@ -1446,7 +1447,7 @@ function AnnotationToolbar({ controller, onFreeze, className }) {
1446
1447
  ),
1447
1448
  children: [
1448
1449
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", role: "group", "aria-label": "Tool", children: TOOLS.map(({ tool: t, label, icon }) => /* @__PURE__ */ jsxRuntime.jsx(
1449
- chunkXDCRWZF2_cjs.Button,
1450
+ chunkGXQO3IJC_cjs.Button,
1450
1451
  {
1451
1452
  type: "button",
1452
1453
  size: "icon",
@@ -1462,7 +1463,7 @@ function AnnotationToolbar({ controller, onFreeze, className }) {
1462
1463
  )) }),
1463
1464
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", role: "group", "aria-label": "History", children: [
1464
1465
  /* @__PURE__ */ jsxRuntime.jsx(
1465
- chunkXDCRWZF2_cjs.Button,
1466
+ chunkGXQO3IJC_cjs.Button,
1466
1467
  {
1467
1468
  type: "button",
1468
1469
  size: "icon",
@@ -1476,7 +1477,7 @@ function AnnotationToolbar({ controller, onFreeze, className }) {
1476
1477
  }
1477
1478
  ),
1478
1479
  /* @__PURE__ */ jsxRuntime.jsx(
1479
- chunkXDCRWZF2_cjs.Button,
1480
+ chunkGXQO3IJC_cjs.Button,
1480
1481
  {
1481
1482
  type: "button",
1482
1483
  size: "icon",
@@ -1535,7 +1536,7 @@ function AnnotationToolbar({ controller, onFreeze, className }) {
1535
1536
  " pending"
1536
1537
  ] }),
1537
1538
  /* @__PURE__ */ jsxRuntime.jsx(
1538
- chunkXDCRWZF2_cjs.Button,
1539
+ chunkGXQO3IJC_cjs.Button,
1539
1540
  {
1540
1541
  type: "button",
1541
1542
  size: "sm",
@@ -1550,7 +1551,7 @@ function AnnotationToolbar({ controller, onFreeze, className }) {
1550
1551
  }
1551
1552
  ),
1552
1553
  /* @__PURE__ */ jsxRuntime.jsx(
1553
- chunkXDCRWZF2_cjs.Button,
1554
+ chunkGXQO3IJC_cjs.Button,
1554
1555
  {
1555
1556
  type: "button",
1556
1557
  size: "sm",
@@ -1576,7 +1577,7 @@ function AnnotationToolbar({ controller, onFreeze, className }) {
1576
1577
  children: status
1577
1578
  }
1578
1579
  ),
1579
- onFreeze && /* @__PURE__ */ jsxRuntime.jsxs(chunkXDCRWZF2_cjs.Button, { type: "button", size: "sm", "data-testid": "annotation-freeze", onClick: onFreeze, children: [
1580
+ onFreeze && /* @__PURE__ */ jsxRuntime.jsxs(chunkGXQO3IJC_cjs.Button, { type: "button", size: "sm", "data-testid": "annotation-freeze", onClick: onFreeze, children: [
1580
1581
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Snowflake, { size: 14 }),
1581
1582
  "Freeze copy"
1582
1583
  ] })
@@ -1618,10 +1619,10 @@ function FreezeDialog({
1618
1619
  marks.filter((a) => a.kind === k && (k !== "redaction" || chunkSSOPIPEX_cjs.isEffectiveRedaction(a))).length
1619
1620
  ]
1620
1621
  ).filter(([, n]) => n > 0);
1621
- return /* @__PURE__ */ jsxRuntime.jsx(chunkXDCRWZF2_cjs.Dialog, { open, onOpenChange: (next) => !busy && onOpenChange(next), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkXDCRWZF2_cjs.DialogContent, { "data-testid": "freeze-dialog", children: [
1622
- /* @__PURE__ */ jsxRuntime.jsxs(chunkXDCRWZF2_cjs.DialogHeader, { children: [
1623
- /* @__PURE__ */ jsxRuntime.jsx(chunkXDCRWZF2_cjs.DialogTitle, { children: "Freeze a copy" }),
1624
- /* @__PURE__ */ jsxRuntime.jsx(chunkXDCRWZF2_cjs.DialogDescription, { children: "Saves a separate document with your annotations built in, next to the original. The original stays as it is." })
1622
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkGXQO3IJC_cjs.Dialog, { open, onOpenChange: (next) => !busy && onOpenChange(next), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkGXQO3IJC_cjs.DialogContent, { "data-testid": "freeze-dialog", children: [
1623
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkGXQO3IJC_cjs.DialogHeader, { children: [
1624
+ /* @__PURE__ */ jsxRuntime.jsx(chunkGXQO3IJC_cjs.DialogTitle, { children: "Freeze a copy" }),
1625
+ /* @__PURE__ */ jsxRuntime.jsx(chunkGXQO3IJC_cjs.DialogDescription, { children: "Saves a separate document with your annotations built in, next to the original. The original stays as it is." })
1625
1626
  ] }),
1626
1627
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", "data-testid": "freeze-summary", children: counts.length === 0 ? "No annotations yet." : counts.map(([k, n]) => `${n} ${KIND_LABELS[k]}`).join(", ") }),
1627
1628
  /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "space-y-2 text-sm", disabled: busy, children: [
@@ -1730,9 +1731,9 @@ function FreezeDialog({
1730
1731
  "\u2026"
1731
1732
  ] }),
1732
1733
  error && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", role: "alert", "data-testid": "freeze-error", children: error }),
1733
- /* @__PURE__ */ jsxRuntime.jsxs(chunkXDCRWZF2_cjs.DialogFooter, { children: [
1734
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkGXQO3IJC_cjs.DialogFooter, { children: [
1734
1735
  /* @__PURE__ */ jsxRuntime.jsx(
1735
- chunkXDCRWZF2_cjs.Button,
1736
+ chunkGXQO3IJC_cjs.Button,
1736
1737
  {
1737
1738
  type: "button",
1738
1739
  variant: "outline",
@@ -1742,7 +1743,7 @@ function FreezeDialog({
1742
1743
  }
1743
1744
  ),
1744
1745
  /* @__PURE__ */ jsxRuntime.jsx(
1745
- chunkXDCRWZF2_cjs.Button,
1746
+ chunkGXQO3IJC_cjs.Button,
1746
1747
  {
1747
1748
  type: "button",
1748
1749
  "data-testid": "freeze-confirm",
@@ -1817,10 +1818,10 @@ function ProductionDialog({
1817
1818
  setDragFrom(null);
1818
1819
  };
1819
1820
  const valid = Number.isInteger(start) && start >= 0 && Number.isInteger(digits) && digits >= 1 && digits <= 12;
1820
- return /* @__PURE__ */ jsxRuntime.jsx(chunkXDCRWZF2_cjs.Dialog, { open, onOpenChange: (next) => !busy && onOpenChange(next), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkXDCRWZF2_cjs.DialogContent, { "data-testid": "production-dialog", className: "max-h-[90dvh] overflow-y-auto", children: [
1821
- /* @__PURE__ */ jsxRuntime.jsxs(chunkXDCRWZF2_cjs.DialogHeader, { children: [
1822
- /* @__PURE__ */ jsxRuntime.jsx(chunkXDCRWZF2_cjs.DialogTitle, { children: "Production set" }),
1823
- /* @__PURE__ */ jsxRuntime.jsx(chunkXDCRWZF2_cjs.DialogDescription, { children: "Numbers every page with a Bates label, in the order shown. The originals are never changed; the result is downloaded and, if you choose, saved to the workspace." })
1821
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkGXQO3IJC_cjs.Dialog, { open, onOpenChange: (next) => !busy && onOpenChange(next), children: /* @__PURE__ */ jsxRuntime.jsxs(chunkGXQO3IJC_cjs.DialogContent, { "data-testid": "production-dialog", className: "max-h-[90dvh] overflow-y-auto", children: [
1822
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkGXQO3IJC_cjs.DialogHeader, { children: [
1823
+ /* @__PURE__ */ jsxRuntime.jsx(chunkGXQO3IJC_cjs.DialogTitle, { children: "Production set" }),
1824
+ /* @__PURE__ */ jsxRuntime.jsx(chunkGXQO3IJC_cjs.DialogDescription, { children: "Numbers every page with a Bates label, in the order shown. The originals are never changed; the result is downloaded and, if you choose, saved to the workspace." })
1824
1825
  ] }),
1825
1826
  /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-muted-foreground", "data-testid": "production-summary", children: [
1826
1827
  documents.length,
@@ -1861,7 +1862,7 @@ function ProductionDialog({
1861
1862
  ] }),
1862
1863
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", title: doc.name, children: doc.name }),
1863
1864
  /* @__PURE__ */ jsxRuntime.jsx(
1864
- chunkXDCRWZF2_cjs.Button,
1865
+ chunkGXQO3IJC_cjs.Button,
1865
1866
  {
1866
1867
  type: "button",
1867
1868
  variant: "ghost",
@@ -1875,7 +1876,7 @@ function ProductionDialog({
1875
1876
  }
1876
1877
  ),
1877
1878
  /* @__PURE__ */ jsxRuntime.jsx(
1878
- chunkXDCRWZF2_cjs.Button,
1879
+ chunkGXQO3IJC_cjs.Button,
1879
1880
  {
1880
1881
  type: "button",
1881
1882
  variant: "ghost",
@@ -2060,9 +2061,9 @@ function ProductionDialog({
2060
2061
  "\u2026"
2061
2062
  ] }),
2062
2063
  error && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", role: "alert", "data-testid": "production-error", children: error }),
2063
- /* @__PURE__ */ jsxRuntime.jsxs(chunkXDCRWZF2_cjs.DialogFooter, { children: [
2064
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkGXQO3IJC_cjs.DialogFooter, { children: [
2064
2065
  /* @__PURE__ */ jsxRuntime.jsx(
2065
- chunkXDCRWZF2_cjs.Button,
2066
+ chunkGXQO3IJC_cjs.Button,
2066
2067
  {
2067
2068
  type: "button",
2068
2069
  variant: "outline",
@@ -2072,7 +2073,7 @@ function ProductionDialog({
2072
2073
  }
2073
2074
  ),
2074
2075
  /* @__PURE__ */ jsxRuntime.jsx(
2075
- chunkXDCRWZF2_cjs.Button,
2076
+ chunkGXQO3IJC_cjs.Button,
2076
2077
  {
2077
2078
  type: "button",
2078
2079
  "data-testid": "production-confirm",