@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.
- package/dist/{NativeDocxEditor-UAZUKZ77.js → NativeDocxEditor-4PY4YZYC.js} +3 -3
- package/dist/{NativeDocxEditor-UAZUKZ77.js.map → NativeDocxEditor-4PY4YZYC.js.map} +1 -1
- package/dist/{NativeDocxEditor-YX7B7OFH.cjs → NativeDocxEditor-WODZAURG.cjs} +7 -7
- package/dist/{NativeDocxEditor-YX7B7OFH.cjs.map → NativeDocxEditor-WODZAURG.cjs.map} +1 -1
- package/dist/agents/index.cjs +207 -207
- package/dist/agents/index.js +2 -2
- package/dist/chat/index.cjs +124 -124
- package/dist/chat/index.js +2 -2
- package/dist/{chunk-QT6EGMAJ.cjs → chunk-2NIL2ASF.cjs} +38 -294
- package/dist/chunk-2NIL2ASF.cjs.map +1 -0
- package/dist/{chunk-TTXK62YI.cjs → chunk-54WBIVHV.cjs} +5 -5
- package/dist/{chunk-TTXK62YI.cjs.map → chunk-54WBIVHV.cjs.map} +1 -1
- package/dist/{chunk-IXALYQT7.cjs → chunk-C2CWWEHO.cjs} +2 -2
- package/dist/chunk-C2CWWEHO.cjs.map +1 -0
- package/dist/{chunk-XQKGYGCJ.js → chunk-DQCYCEDR.js} +3 -3
- package/dist/{chunk-XQKGYGCJ.js.map → chunk-DQCYCEDR.js.map} +1 -1
- package/dist/{chunk-ZYSY4L5L.cjs → chunk-ELDUWTRR.cjs} +4 -4
- package/dist/{chunk-ZYSY4L5L.cjs.map → chunk-ELDUWTRR.cjs.map} +1 -1
- package/dist/{chunk-3Y6NQIDE.js → chunk-FQX6N5G6.js} +5 -4
- package/dist/chunk-FQX6N5G6.js.map +1 -0
- package/dist/{chunk-LLFW2T6S.cjs → chunk-GBYY3PIC.cjs} +9 -8
- package/dist/chunk-GBYY3PIC.cjs.map +1 -0
- package/dist/{chunk-A2MN2ZLX.js → chunk-GKDWQLVU.js} +13 -274
- package/dist/chunk-GKDWQLVU.js.map +1 -0
- package/dist/{chunk-24ND4S6Y.cjs → chunk-I4XQCE6U.cjs} +5 -5
- package/dist/{chunk-24ND4S6Y.cjs.map → chunk-I4XQCE6U.cjs.map} +1 -1
- package/dist/{chunk-P2KPDPFF.js → chunk-IXTQYFIF.js} +23 -15
- package/dist/chunk-IXTQYFIF.js.map +1 -0
- package/dist/{chunk-JQVPGMLU.js → chunk-JB32KYAH.js} +3 -3
- package/dist/{chunk-JQVPGMLU.js.map → chunk-JB32KYAH.js.map} +1 -1
- package/dist/{chunk-PBS5MFIY.cjs → chunk-JK45LSIH.cjs} +3 -3
- package/dist/{chunk-PBS5MFIY.cjs.map → chunk-JK45LSIH.cjs.map} +1 -1
- package/dist/{chunk-ZPLG7QYF.js → chunk-N5YEF3LC.js} +2 -2
- package/dist/chunk-N5YEF3LC.js.map +1 -0
- package/dist/{chunk-EWSEQEPL.js → chunk-NUTLXVPX.js} +3 -2
- package/dist/chunk-NUTLXVPX.js.map +1 -0
- package/dist/{chunk-MP6FK43E.cjs → chunk-PDRYGPZB.cjs} +3 -2
- package/dist/chunk-PDRYGPZB.cjs.map +1 -0
- package/dist/{chunk-EGDWNEAG.js → chunk-PEHLUB52.js} +3 -3
- package/dist/{chunk-EGDWNEAG.js.map → chunk-PEHLUB52.js.map} +1 -1
- package/dist/{chunk-XMBYDLZQ.cjs → chunk-QKWQMOHN.cjs} +4 -4
- package/dist/{chunk-XMBYDLZQ.cjs.map → chunk-QKWQMOHN.cjs.map} +1 -1
- package/dist/{chunk-DTBSGG36.cjs → chunk-U6MPHCEB.cjs} +24 -16
- package/dist/chunk-U6MPHCEB.cjs.map +1 -0
- package/dist/{chunk-XQDM6T6C.js → chunk-UABPHZWZ.js} +3 -3
- package/dist/{chunk-XQDM6T6C.js.map → chunk-UABPHZWZ.js.map} +1 -1
- package/dist/{chunk-S7RHJI5Q.js → chunk-ZSV2NQQP.js} +3 -3
- package/dist/{chunk-S7RHJI5Q.js.map → chunk-ZSV2NQQP.js.map} +1 -1
- package/dist/citations/index.cjs +10 -10
- package/dist/citations/index.js +1 -1
- package/dist/collaboration/index.cjs +16 -16
- package/dist/collaboration/index.js +2 -2
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +4 -4
- package/dist/connect/index.cjs +37 -37
- package/dist/connect/index.js +8 -8
- package/dist/databases/index.cjs +2 -2
- package/dist/databases/index.js +1 -1
- package/dist/docx/definitions/fragment.d.ts +2 -6
- package/dist/docx/definitions/port.d.ts +2 -57
- package/dist/docx/index.cjs +46 -46
- package/dist/docx/index.js +3 -3
- package/dist/docx/references/commands.d.ts +3 -31
- package/dist/docx/references/numbering.d.ts +3 -47
- package/dist/facts/index.cjs +2 -2
- package/dist/facts/index.js +1 -1
- package/dist/files/GridView.d.ts +4 -1
- package/dist/files/TagPassagePanel.d.ts +2 -0
- package/dist/files/index.cjs +84 -74
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +84 -74
- package/dist/files/index.js.map +1 -1
- package/dist/index.cjs +422 -422
- package/dist/index.js +7 -7
- package/dist/settings/FirmPool.d.ts +45 -0
- package/dist/settings/index.cjs +97 -0
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.js +95 -1
- package/dist/settings/index.js.map +1 -1
- package/dist/studio/index.cjs +3 -3
- package/dist/studio/index.js +2 -2
- package/dist/workflow-canvas/index.cjs +9 -9
- package/dist/workflow-canvas/index.js +2 -2
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.js +1 -1
- package/dist/workspaces/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +356 -0
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +235 -0
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +235 -0
- package/node_modules/@arbidocs/coedit/dist/commands.js +338 -0
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -0
- package/node_modules/@arbidocs/coedit/package.json +6 -1
- package/package.json +4 -4
- package/dist/chunk-3Y6NQIDE.js.map +0 -1
- package/dist/chunk-A2MN2ZLX.js.map +0 -1
- package/dist/chunk-DTBSGG36.cjs.map +0 -1
- package/dist/chunk-EWSEQEPL.js.map +0 -1
- package/dist/chunk-IXALYQT7.cjs.map +0 -1
- package/dist/chunk-LLFW2T6S.cjs.map +0 -1
- package/dist/chunk-MP6FK43E.cjs.map +0 -1
- package/dist/chunk-P2KPDPFF.js.map +0 -1
- package/dist/chunk-QT6EGMAJ.cjs.map +0 -1
- package/dist/chunk-ZPLG7QYF.js.map +0 -1
package/dist/files/index.js
CHANGED
|
@@ -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-
|
|
21
|
-
export { GridView } from '../chunk-
|
|
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(
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
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
|
-
|
|
2684
|
+
Button,
|
|
2633
2685
|
{
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
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
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
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
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
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
|
-
|
|
2687
|
-
|
|
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 }) })
|