@arbidocs/blocks 0.4.108 → 0.4.109

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 (106) hide show
  1. package/dist/{NativeDocxEditor-UAZUKZ77.js → NativeDocxEditor-4PY4YZYC.js} +3 -3
  2. package/dist/{NativeDocxEditor-UAZUKZ77.js.map → NativeDocxEditor-4PY4YZYC.js.map} +1 -1
  3. package/dist/{NativeDocxEditor-YX7B7OFH.cjs → NativeDocxEditor-WODZAURG.cjs} +7 -7
  4. package/dist/{NativeDocxEditor-YX7B7OFH.cjs.map → NativeDocxEditor-WODZAURG.cjs.map} +1 -1
  5. package/dist/agents/index.cjs +207 -207
  6. package/dist/agents/index.js +2 -2
  7. package/dist/chat/index.cjs +124 -124
  8. package/dist/chat/index.js +2 -2
  9. package/dist/{chunk-QT6EGMAJ.cjs → chunk-2NIL2ASF.cjs} +38 -294
  10. package/dist/chunk-2NIL2ASF.cjs.map +1 -0
  11. package/dist/{chunk-TTXK62YI.cjs → chunk-54WBIVHV.cjs} +5 -5
  12. package/dist/{chunk-TTXK62YI.cjs.map → chunk-54WBIVHV.cjs.map} +1 -1
  13. package/dist/{chunk-IXALYQT7.cjs → chunk-C2CWWEHO.cjs} +2 -2
  14. package/dist/chunk-C2CWWEHO.cjs.map +1 -0
  15. package/dist/{chunk-XQKGYGCJ.js → chunk-DQCYCEDR.js} +3 -3
  16. package/dist/{chunk-XQKGYGCJ.js.map → chunk-DQCYCEDR.js.map} +1 -1
  17. package/dist/{chunk-ZYSY4L5L.cjs → chunk-ELDUWTRR.cjs} +4 -4
  18. package/dist/{chunk-ZYSY4L5L.cjs.map → chunk-ELDUWTRR.cjs.map} +1 -1
  19. package/dist/{chunk-3Y6NQIDE.js → chunk-FQX6N5G6.js} +5 -4
  20. package/dist/chunk-FQX6N5G6.js.map +1 -0
  21. package/dist/{chunk-LLFW2T6S.cjs → chunk-GBYY3PIC.cjs} +9 -8
  22. package/dist/chunk-GBYY3PIC.cjs.map +1 -0
  23. package/dist/{chunk-A2MN2ZLX.js → chunk-GKDWQLVU.js} +13 -274
  24. package/dist/chunk-GKDWQLVU.js.map +1 -0
  25. package/dist/{chunk-24ND4S6Y.cjs → chunk-I4XQCE6U.cjs} +5 -5
  26. package/dist/{chunk-24ND4S6Y.cjs.map → chunk-I4XQCE6U.cjs.map} +1 -1
  27. package/dist/{chunk-P2KPDPFF.js → chunk-IXTQYFIF.js} +23 -15
  28. package/dist/chunk-IXTQYFIF.js.map +1 -0
  29. package/dist/{chunk-JQVPGMLU.js → chunk-JB32KYAH.js} +3 -3
  30. package/dist/{chunk-JQVPGMLU.js.map → chunk-JB32KYAH.js.map} +1 -1
  31. package/dist/{chunk-PBS5MFIY.cjs → chunk-JK45LSIH.cjs} +3 -3
  32. package/dist/{chunk-PBS5MFIY.cjs.map → chunk-JK45LSIH.cjs.map} +1 -1
  33. package/dist/{chunk-ZPLG7QYF.js → chunk-N5YEF3LC.js} +2 -2
  34. package/dist/chunk-N5YEF3LC.js.map +1 -0
  35. package/dist/{chunk-EWSEQEPL.js → chunk-NUTLXVPX.js} +3 -2
  36. package/dist/chunk-NUTLXVPX.js.map +1 -0
  37. package/dist/{chunk-MP6FK43E.cjs → chunk-PDRYGPZB.cjs} +3 -2
  38. package/dist/chunk-PDRYGPZB.cjs.map +1 -0
  39. package/dist/{chunk-EGDWNEAG.js → chunk-PEHLUB52.js} +3 -3
  40. package/dist/{chunk-EGDWNEAG.js.map → chunk-PEHLUB52.js.map} +1 -1
  41. package/dist/{chunk-XMBYDLZQ.cjs → chunk-QKWQMOHN.cjs} +4 -4
  42. package/dist/{chunk-XMBYDLZQ.cjs.map → chunk-QKWQMOHN.cjs.map} +1 -1
  43. package/dist/{chunk-DTBSGG36.cjs → chunk-U6MPHCEB.cjs} +24 -16
  44. package/dist/chunk-U6MPHCEB.cjs.map +1 -0
  45. package/dist/{chunk-XQDM6T6C.js → chunk-UABPHZWZ.js} +3 -3
  46. package/dist/{chunk-XQDM6T6C.js.map → chunk-UABPHZWZ.js.map} +1 -1
  47. package/dist/{chunk-S7RHJI5Q.js → chunk-ZSV2NQQP.js} +3 -3
  48. package/dist/{chunk-S7RHJI5Q.js.map → chunk-ZSV2NQQP.js.map} +1 -1
  49. package/dist/citations/index.cjs +10 -10
  50. package/dist/citations/index.js +1 -1
  51. package/dist/collaboration/index.cjs +16 -16
  52. package/dist/collaboration/index.js +2 -2
  53. package/dist/connect/docx.cjs +6 -6
  54. package/dist/connect/docx.js +4 -4
  55. package/dist/connect/index.cjs +37 -37
  56. package/dist/connect/index.js +8 -8
  57. package/dist/databases/index.cjs +2 -2
  58. package/dist/databases/index.js +1 -1
  59. package/dist/docx/definitions/fragment.d.ts +2 -6
  60. package/dist/docx/definitions/port.d.ts +2 -57
  61. package/dist/docx/index.cjs +46 -46
  62. package/dist/docx/index.js +3 -3
  63. package/dist/docx/references/commands.d.ts +3 -31
  64. package/dist/docx/references/numbering.d.ts +3 -47
  65. package/dist/facts/index.cjs +2 -2
  66. package/dist/facts/index.js +1 -1
  67. package/dist/files/GridView.d.ts +4 -1
  68. package/dist/files/TagPassagePanel.d.ts +2 -0
  69. package/dist/files/index.cjs +84 -74
  70. package/dist/files/index.cjs.map +1 -1
  71. package/dist/files/index.js +84 -74
  72. package/dist/files/index.js.map +1 -1
  73. package/dist/index.cjs +422 -422
  74. package/dist/index.js +7 -7
  75. package/dist/settings/FirmPool.d.ts +45 -0
  76. package/dist/settings/index.cjs +97 -0
  77. package/dist/settings/index.cjs.map +1 -1
  78. package/dist/settings/index.d.ts +1 -0
  79. package/dist/settings/index.js +95 -1
  80. package/dist/settings/index.js.map +1 -1
  81. package/dist/studio/index.cjs +3 -3
  82. package/dist/studio/index.js +2 -2
  83. package/dist/workflow-canvas/index.cjs +9 -9
  84. package/dist/workflow-canvas/index.js +2 -2
  85. package/dist/workspaces/index.cjs +1 -1
  86. package/dist/workspaces/index.cjs.map +1 -1
  87. package/dist/workspaces/index.js +1 -1
  88. package/dist/workspaces/index.js.map +1 -1
  89. package/node_modules/@arbidocs/coedit/dist/commands.cjs +356 -0
  90. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -0
  91. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +235 -0
  92. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +235 -0
  93. package/node_modules/@arbidocs/coedit/dist/commands.js +338 -0
  94. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -0
  95. package/node_modules/@arbidocs/coedit/package.json +6 -1
  96. package/package.json +4 -4
  97. package/dist/chunk-3Y6NQIDE.js.map +0 -1
  98. package/dist/chunk-A2MN2ZLX.js.map +0 -1
  99. package/dist/chunk-DTBSGG36.cjs.map +0 -1
  100. package/dist/chunk-EWSEQEPL.js.map +0 -1
  101. package/dist/chunk-IXALYQT7.cjs.map +0 -1
  102. package/dist/chunk-LLFW2T6S.cjs.map +0 -1
  103. package/dist/chunk-MP6FK43E.cjs.map +0 -1
  104. package/dist/chunk-P2KPDPFF.js.map +0 -1
  105. package/dist/chunk-QT6EGMAJ.cjs.map +0 -1
  106. package/dist/chunk-ZPLG7QYF.js.map +0 -1
@@ -17,10 +17,10 @@ import '../chunk-76JDDMSP.js';
17
17
  import { formatCount } from '../chunk-OXF2IFXG.js';
18
18
  import { ShareControl } from '../chunk-K4BGOPGG.js';
19
19
  import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
20
- import { GridView } from '../chunk-ZPLG7QYF.js';
21
- export { GridView } from '../chunk-ZPLG7QYF.js';
20
+ import { GridView } from '../chunk-N5YEF3LC.js';
21
+ export { GridView } from '../chunk-N5YEF3LC.js';
22
22
  import '../chunk-SLSBJRWW.js';
23
- import { testIdOr } from '../chunk-7F6CBP3Z.js';
23
+ import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
24
24
  import '../chunk-VUNV25KB.js';
25
25
  import { cva } from 'class-variance-authority';
26
26
  import { cn, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, Tooltip, TooltipTrigger, TooltipContent, Button, Progress, Badge, RadioGroup, RadioGroupItem, Label, ScrollArea, Checkbox, Dialog, DialogContent, DialogTitle, DialogDescription, TooltipProvider, IconToggle, Textarea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuItem, DialogTrigger, Input, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, DialogHeader, CommandSeparator, getTagTypeIcon, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, Switch } from '@arbidocs/react/ui';
@@ -2619,82 +2619,92 @@ function TagPassagePanel({
2619
2619
  group.tags.map((tag) => {
2620
2620
  const hasNote2 = !!tag.note;
2621
2621
  const isEditing = editingNoteTagId === tag.id;
2622
- return /* @__PURE__ */ jsxs("div", { className: "border-b border-border last:border-b-0", children: [
2623
- /* @__PURE__ */ jsxs("div", { className: "flex items-center transition-colors hover:bg-muted", children: [
2624
- /* @__PURE__ */ jsxs(
2625
- "button",
2626
- {
2627
- onClick: () => onToggle(tag.id),
2628
- disabled: isBusy,
2629
- className: "flex flex-1 items-center gap-3 px-4 py-3 disabled:opacity-50 pointer-coarse:min-h-11",
2630
- children: [
2622
+ return /* @__PURE__ */ jsxs(
2623
+ "div",
2624
+ {
2625
+ className: "border-b border-border last:border-b-0",
2626
+ "data-testid": prefixedTestId(testIds?.row, tag.id, {
2627
+ testId: `chunk-tag-row-${tag.id}`
2628
+ }),
2629
+ children: [
2630
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center transition-colors hover:bg-muted", children: [
2631
+ /* @__PURE__ */ jsxs(
2632
+ "button",
2633
+ {
2634
+ onClick: () => onToggle(tag.id),
2635
+ disabled: isBusy,
2636
+ className: "flex flex-1 items-center gap-3 px-4 py-3 disabled:opacity-50 pointer-coarse:min-h-11",
2637
+ children: [
2638
+ /* @__PURE__ */ jsx(
2639
+ "div",
2640
+ {
2641
+ className: "flex size-5 shrink-0 items-center justify-center rounded border-2",
2642
+ style: {
2643
+ borderColor: tag.color,
2644
+ backgroundColor: tag.isApplied ? tag.color : "transparent"
2645
+ },
2646
+ children: tag.isApplied && /* @__PURE__ */ jsx(Check, { className: "size-3 text-white", strokeWidth: 3 })
2647
+ }
2648
+ ),
2649
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
2650
+ tag.badge,
2651
+ hasNote2 && !isEditing && /* @__PURE__ */ jsx(StickyNote, { className: "size-3.5 text-muted-foreground" })
2652
+ ] }),
2653
+ isBusy && /* @__PURE__ */ jsx(Loader2, { className: "size-4 shrink-0 animate-spin" })
2654
+ ]
2655
+ }
2656
+ ),
2657
+ tag.isApplied && onViewTagged && /* @__PURE__ */ jsx(
2658
+ "button",
2659
+ {
2660
+ onClick: () => onViewTagged(tag.id),
2661
+ className: "mr-3 shrink-0 rounded p-1 hover:bg-muted pointer-coarse:min-h-11 pointer-coarse:min-w-11",
2662
+ title: l.viewTagged,
2663
+ "data-testid": testIdOr(testIds?.viewTagged, {
2664
+ testId: "view-tagged-chunks-button"
2665
+ }),
2666
+ children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4 text-muted-foreground" })
2667
+ }
2668
+ )
2669
+ ] }),
2670
+ tag.isApplied && /* @__PURE__ */ jsx("div", { className: "px-4 pb-3", children: isEditing ? /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2671
+ /* @__PURE__ */ jsx(
2672
+ Textarea,
2673
+ {
2674
+ value: noteValue,
2675
+ onChange: (e) => onNoteChange(e.target.value),
2676
+ placeholder: l.notePlaceholder,
2677
+ className: "min-h-[60px] text-sm",
2678
+ autoFocus: true
2679
+ }
2680
+ ),
2681
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
2682
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onClick: onCancelNote, children: l.cancel }),
2631
2683
  /* @__PURE__ */ jsx(
2632
- "div",
2684
+ Button,
2633
2685
  {
2634
- className: "flex size-5 shrink-0 items-center justify-center rounded border-2",
2635
- style: {
2636
- borderColor: tag.color,
2637
- backgroundColor: tag.isApplied ? tag.color : "transparent"
2638
- },
2639
- children: tag.isApplied && /* @__PURE__ */ jsx(Check, { className: "size-3 text-white", strokeWidth: 3 })
2686
+ size: "sm",
2687
+ onClick: () => onSaveNote(tag.id),
2688
+ disabled: isBusy,
2689
+ children: l.save
2640
2690
  }
2641
- ),
2642
- /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
2643
- tag.badge,
2644
- hasNote2 && !isEditing && /* @__PURE__ */ jsx(StickyNote, { className: "size-3.5 text-muted-foreground" })
2645
- ] }),
2646
- isBusy && /* @__PURE__ */ jsx(Loader2, { className: "size-4 shrink-0 animate-spin" })
2647
- ]
2648
- }
2649
- ),
2650
- tag.isApplied && onViewTagged && /* @__PURE__ */ jsx(
2651
- "button",
2652
- {
2653
- onClick: () => onViewTagged(tag.id),
2654
- className: "mr-3 shrink-0 rounded p-1 hover:bg-muted pointer-coarse:min-h-11 pointer-coarse:min-w-11",
2655
- title: l.viewTagged,
2656
- "data-testid": testIdOr(testIds?.viewTagged, {
2657
- testId: "view-tagged-chunks-button"
2658
- }),
2659
- children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4 text-muted-foreground" })
2660
- }
2661
- )
2662
- ] }),
2663
- tag.isApplied && /* @__PURE__ */ jsx("div", { className: "px-4 pb-3", children: isEditing ? /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
2664
- /* @__PURE__ */ jsx(
2665
- Textarea,
2666
- {
2667
- value: noteValue,
2668
- onChange: (e) => onNoteChange(e.target.value),
2669
- placeholder: l.notePlaceholder,
2670
- className: "min-h-[60px] text-sm",
2671
- autoFocus: true
2672
- }
2673
- ),
2674
- /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
2675
- /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onClick: onCancelNote, children: l.cancel }),
2676
- /* @__PURE__ */ jsx(
2677
- Button,
2691
+ )
2692
+ ] })
2693
+ ] }) : /* @__PURE__ */ jsx(
2694
+ "button",
2678
2695
  {
2679
- size: "sm",
2680
- onClick: () => onSaveNote(tag.id),
2681
- disabled: isBusy,
2682
- children: l.save
2696
+ onClick: () => onStartNote(tag.id),
2697
+ className: cn(
2698
+ "w-full rounded-md bg-muted px-2 py-1.5 text-left text-sm pointer-coarse:min-h-11",
2699
+ hasNote2 ? "text-foreground" : "text-muted-foreground"
2700
+ ),
2701
+ children: tag.note || l.addNote
2683
2702
  }
2684
- )
2685
- ] })
2686
- ] }) : /* @__PURE__ */ jsx(
2687
- "button",
2688
- {
2689
- onClick: () => onStartNote(tag.id),
2690
- className: cn(
2691
- "w-full rounded-md bg-muted px-2 py-1.5 text-left text-sm pointer-coarse:min-h-11",
2692
- hasNote2 ? "text-foreground" : "text-muted-foreground"
2693
- ),
2694
- children: tag.note || l.addNote
2695
- }
2696
- ) })
2697
- ] }, tag.id);
2703
+ ) })
2704
+ ]
2705
+ },
2706
+ tag.id
2707
+ );
2698
2708
  })
2699
2709
  ] }, group.id)) }) }),
2700
2710
  /* @__PURE__ */ jsx("div", { className: "border-t border-border p-4", children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", className: "w-full", onClick: onCreate, children: l.createField }) })