@arbidocs/blocks 0.5.190 → 0.5.192
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/bin/arbidocs-mix-take.mjs +34 -0
- package/bin/arbidocs-record-take.mjs +77 -11
- package/bin/arbidocs-voice-take.mjs +32 -0
- package/dist/{ConnectedNativeDocxComparison-XE5NMZMY.cjs → ConnectedNativeDocxComparison-PPVXDQY3.cjs} +7 -7
- package/dist/{ConnectedNativeDocxComparison-XE5NMZMY.cjs.map → ConnectedNativeDocxComparison-PPVXDQY3.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-EY3YWYDD.cjs → ConnectedStreamedWordArtifact-GAACBGTY.cjs} +7 -7
- package/dist/{ConnectedStreamedWordArtifact-EY3YWYDD.cjs.map → ConnectedStreamedWordArtifact-GAACBGTY.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-RFE4THHR.cjs → DocumentReviewCard-Q3NKJLSM.cjs} +14 -14
- package/dist/{DocumentReviewCard-RFE4THHR.cjs.map → DocumentReviewCard-Q3NKJLSM.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-VO247UEI.cjs → FilesViewerDialog-4JWDTDO7.cjs} +11 -11
- package/dist/{FilesViewerDialog-VO247UEI.cjs.map → FilesViewerDialog-4JWDTDO7.cjs.map} +1 -1
- package/dist/agents/index.cjs +172 -172
- package/dist/{chunk-PGKCL6YA.cjs → chunk-33236Q7Y.cjs} +8 -8
- package/dist/{chunk-PGKCL6YA.cjs.map → chunk-33236Q7Y.cjs.map} +1 -1
- package/dist/{chunk-E7BSG5IS.cjs → chunk-633ZCYVN.cjs} +37 -37
- package/dist/{chunk-E7BSG5IS.cjs.map → chunk-633ZCYVN.cjs.map} +1 -1
- package/dist/{chunk-U4MJIYGD.cjs → chunk-65NQW4RR.cjs} +4 -4
- package/dist/{chunk-U4MJIYGD.cjs.map → chunk-65NQW4RR.cjs.map} +1 -1
- package/dist/{chunk-JAKLLNLL.cjs → chunk-AWQEN6WW.cjs} +9 -7
- package/dist/chunk-AWQEN6WW.cjs.map +1 -0
- package/dist/{chunk-GENUGV6V.cjs → chunk-AZUPMHZI.cjs} +4 -4
- package/dist/{chunk-GENUGV6V.cjs.map → chunk-AZUPMHZI.cjs.map} +1 -1
- package/dist/{chunk-72O4YH5M.cjs → chunk-EAH7LFJN.cjs} +5 -5
- package/dist/{chunk-72O4YH5M.cjs.map → chunk-EAH7LFJN.cjs.map} +1 -1
- package/dist/{chunk-UNT2VY3B.cjs → chunk-EFV52SZ6.cjs} +4 -4
- package/dist/{chunk-UNT2VY3B.cjs.map → chunk-EFV52SZ6.cjs.map} +1 -1
- package/dist/{chunk-IXSOSISW.cjs → chunk-ELN3YOXF.cjs} +28 -28
- package/dist/{chunk-IXSOSISW.cjs.map → chunk-ELN3YOXF.cjs.map} +1 -1
- package/dist/{chunk-NAEBNQTO.cjs → chunk-GLNL5AL5.cjs} +29 -29
- package/dist/{chunk-NAEBNQTO.cjs.map → chunk-GLNL5AL5.cjs.map} +1 -1
- package/dist/{chunk-HTH3XIFF.cjs → chunk-GZPNBSRE.cjs} +8 -8
- package/dist/{chunk-HTH3XIFF.cjs.map → chunk-GZPNBSRE.cjs.map} +1 -1
- package/dist/chunk-HME72RFP.cjs +145 -0
- package/dist/chunk-HME72RFP.cjs.map +1 -0
- package/dist/{chunk-GW5LTX66.cjs → chunk-J46Y2L26.cjs} +4 -4
- package/dist/{chunk-GW5LTX66.cjs.map → chunk-J46Y2L26.cjs.map} +1 -1
- package/dist/{chunk-LHWFSXM5.cjs → chunk-KD37PODE.cjs} +3 -3
- package/dist/{chunk-LHWFSXM5.cjs.map → chunk-KD37PODE.cjs.map} +1 -1
- package/dist/{chunk-VCCAG4GQ.cjs → chunk-KZH6HMJL.cjs} +4 -4
- package/dist/{chunk-VCCAG4GQ.cjs.map → chunk-KZH6HMJL.cjs.map} +1 -1
- package/dist/{chunk-AQYCL2IJ.cjs → chunk-QDIIOZBP.cjs} +5 -5
- package/dist/{chunk-AQYCL2IJ.cjs.map → chunk-QDIIOZBP.cjs.map} +1 -1
- package/dist/{chunk-USYCBTKK.cjs → chunk-R6HGMPF4.cjs} +41 -7
- package/dist/chunk-R6HGMPF4.cjs.map +1 -0
- package/dist/{chunk-QSVYI72E.cjs → chunk-RNQ3MDTR.cjs} +4 -4
- package/dist/{chunk-QSVYI72E.cjs.map → chunk-RNQ3MDTR.cjs.map} +1 -1
- package/dist/{chunk-HZ35LMO3.cjs → chunk-VJHDCYKE.cjs} +4 -4
- package/dist/{chunk-HZ35LMO3.cjs.map → chunk-VJHDCYKE.cjs.map} +1 -1
- package/dist/{chunk-3GWYFQSI.cjs → chunk-Z6M2CI63.cjs} +84 -79
- package/dist/chunk-Z6M2CI63.cjs.map +1 -0
- package/dist/collaboration/index.cjs +3 -3
- package/dist/collaboration/sharing/ShareControl.d.ts +10 -1
- package/dist/collaboration/sharing/ShareControl.js +64 -4
- package/dist/collaboration/sharing/ShareControl.js.map +2 -2
- package/dist/components/GridRowNavigator.d.ts +8 -1
- package/dist/components/GridRowNavigator.js +4 -2
- package/dist/components/GridRowNavigator.js.map +2 -2
- package/dist/connect/docx.cjs +10 -10
- package/dist/connect/index.cjs +816 -767
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +9 -9
- package/dist/connection/billing/ProjectDetail.d.ts +5 -1
- package/dist/connection/billing/ProjectDetail.js +82 -69
- package/dist/connection/billing/ProjectDetail.js.map +2 -2
- package/dist/connection/databases/ConnectedDatabasesPage.d.ts +7 -1
- package/dist/connection/databases/ConnectedDatabasesPage.js +18 -9
- package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
- package/dist/connection/databases/DatabaseWorkbench.d.ts +6 -1
- package/dist/connection/databases/DatabaseWorkbench.js +20 -15
- package/dist/connection/databases/DatabaseWorkbench.js.map +2 -2
- package/dist/connection/facts/factsSource.d.ts +2 -0
- package/dist/connection/facts/factsSource.js +10 -3
- package/dist/connection/facts/factsSource.js.map +2 -2
- package/dist/connection/files/page/ConnectedFilesPage.js +2 -1
- package/dist/connection/files/page/ConnectedFilesPage.js.map +2 -2
- package/dist/connection/projects/ConnectedProjectPage.d.ts +8 -1
- package/dist/connection/projects/ConnectedProjectPage.js +15 -1
- package/dist/connection/projects/ConnectedProjectPage.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +7 -0
- package/dist/connection/viewer/ConnectedDocumentViewer.js +28 -23
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/databases/DatabaseFilterMenu.d.ts +6 -1
- package/dist/databases/DatabaseFilterMenu.js +13 -4
- package/dist/databases/DatabaseFilterMenu.js.map +2 -2
- package/dist/databases/DatabaseToolbar.d.ts +11 -1
- package/dist/databases/DatabaseToolbar.js +26 -1
- package/dist/databases/DatabaseToolbar.js.map +2 -2
- package/dist/databases/index.cjs +70 -69
- package/dist/embed/index.cjs +13 -13
- package/dist/files/index.cjs +221 -221
- package/dist/index.cjs +242 -242
- package/dist/pages/index.cjs +21 -21
- package/dist/record/band.d.ts +95 -0
- package/dist/record/index.cjs +414 -13
- package/dist/record/index.cjs.map +1 -1
- package/dist/record/index.d.ts +35 -2
- package/dist/record/index.js +402 -15
- package/dist/record/index.js.map +1 -1
- package/dist/record/narration.d.ts +71 -0
- package/dist/shell/index.cjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +24 -24
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +11 -6
- package/record/SKILL.md +178 -26
- package/record/mix-take.py +320 -0
- package/record/recap-slide.mjs +118 -0
- package/record/voice-take.py +129 -0
- package/dist/chunk-3GWYFQSI.cjs.map +0 -1
- package/dist/chunk-JAKLLNLL.cjs.map +0 -1
- package/dist/chunk-USYCBTKK.cjs.map +0 -1
- package/dist/chunk-WCT6FT2K.cjs +0 -87
- package/dist/chunk-WCT6FT2K.cjs.map +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var chunkBLRPBEUG_cjs = require('../chunk-BLRPBEUG.cjs');
|
|
5
5
|
var chunkTNVCTYZI_cjs = require('../chunk-TNVCTYZI.cjs');
|
|
6
6
|
require('../chunk-7G2LJMUG.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkHME72RFP_cjs = require('../chunk-HME72RFP.cjs');
|
|
8
8
|
var chunkDKY67DA6_cjs = require('../chunk-DKY67DA6.cjs');
|
|
9
9
|
require('../chunk-ZVEW3JBT.cjs');
|
|
10
10
|
var chunkMOIZ2R5X_cjs = require('../chunk-MOIZ2R5X.cjs');
|
|
@@ -307,11 +307,11 @@ Object.defineProperty(exports, "validateContactForm", {
|
|
|
307
307
|
});
|
|
308
308
|
Object.defineProperty(exports, "DEFAULT_SHARE_CONTROL_LABELS", {
|
|
309
309
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkHME72RFP_cjs.DEFAULT_SHARE_CONTROL_LABELS; }
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "ShareControl", {
|
|
313
313
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkHME72RFP_cjs.ShareControl; }
|
|
315
315
|
});
|
|
316
316
|
Object.defineProperty(exports, "SHARING_IS_ONE_WAY", {
|
|
317
317
|
enumerable: true,
|
|
@@ -37,6 +37,15 @@ export interface ShareControlProps {
|
|
|
37
37
|
testId?: string;
|
|
38
38
|
/** Test id of the state pill. */
|
|
39
39
|
stateTestId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* One control instead of a button plus a pill (default false: both, as before). While private it
|
|
42
|
+
* is a single outline button that names the state ("Only me") with a share icon and shares with
|
|
43
|
+
* the workspace on click. Once shared it is a single quiet status chip ("Shared") that keeps the
|
|
44
|
+
* member card on hover and says sharing cannot be undone; it is not clickable unless `onShared`
|
|
45
|
+
* is given, and then it is a button that runs `onShared`. A partly shared selection keeps the
|
|
46
|
+
* button-plus-pill rendering. `testId` goes on the outer control, `stateTestId` on its label.
|
|
47
|
+
*/
|
|
48
|
+
merged?: boolean;
|
|
40
49
|
}
|
|
41
50
|
/**
|
|
42
51
|
* Share control: an outline (or ghost) "Share" button that shares with the workspace, with the
|
|
@@ -44,4 +53,4 @@ export interface ShareControlProps {
|
|
|
44
53
|
* Neutral tones only: sharing is a plain state, not an AI moment, so there is no accent or cyan
|
|
45
54
|
* switch that could read as "on" while its label reads "off".
|
|
46
55
|
*/
|
|
47
|
-
export declare function ShareControl({ state, onShare, onShared, disabled: disabledProp, disabledTooltip, tooltip, variant, compact, showState, className, labels, testId, stateTestId, }: ShareControlProps): import("react").JSX.Element;
|
|
56
|
+
export declare function ShareControl({ state, onShare, onShared, disabled: disabledProp, disabledTooltip, tooltip, variant, compact, showState, className, labels, testId, stateTestId, merged, }: ShareControlProps): import("react").JSX.Element;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Share2 } from "lucide-react";
|
|
3
|
+
import { Share2, Users } from "lucide-react";
|
|
4
4
|
import {
|
|
5
5
|
Button,
|
|
6
6
|
Tooltip,
|
|
7
7
|
TooltipContent,
|
|
8
8
|
TooltipTrigger,
|
|
9
9
|
cn,
|
|
10
|
-
SharingEntity
|
|
10
|
+
SharingEntity,
|
|
11
|
+
getSharingLabels,
|
|
12
|
+
getEntityLabel
|
|
11
13
|
} from "@arbidocs/react/ui";
|
|
12
|
-
import { sharedForGoodTooltip } from "./one-way.js";
|
|
14
|
+
import { SHARING_IS_ONE_WAY, sharedForGoodTooltip } from "./one-way.js";
|
|
13
15
|
const DEFAULT_SHARE_CONTROL_LABELS = {
|
|
14
16
|
share: "Share",
|
|
15
17
|
shared: "Shared",
|
|
@@ -29,13 +31,71 @@ function ShareControl({
|
|
|
29
31
|
className,
|
|
30
32
|
labels,
|
|
31
33
|
testId,
|
|
32
|
-
stateTestId
|
|
34
|
+
stateTestId,
|
|
35
|
+
merged = false
|
|
33
36
|
}) {
|
|
34
37
|
const l = { ...DEFAULT_SHARE_CONTROL_LABELS, ...labels };
|
|
35
38
|
const stateLabel = state === "shared" ? l.shared : state === "mixed" ? l.mixed : l.private;
|
|
36
39
|
const sharedForGood = state === "shared" && !onShared;
|
|
37
40
|
const disabled = disabledProp || sharedForGood;
|
|
38
41
|
const tooltipText = disabledProp ? disabledTooltip : sharedForGood ? sharedForGoodTooltip() : tooltip ?? l.share;
|
|
42
|
+
if (merged && state !== "mixed") {
|
|
43
|
+
const shared = state === "shared";
|
|
44
|
+
const sharing = getSharingLabels();
|
|
45
|
+
const mergedLabel = shared ? sharing.workspace : sharing.onlyMe;
|
|
46
|
+
const label = /* @__PURE__ */ jsx(
|
|
47
|
+
"span",
|
|
48
|
+
{
|
|
49
|
+
"data-slot": "share-state",
|
|
50
|
+
"data-state": state,
|
|
51
|
+
"data-testid": stateTestId,
|
|
52
|
+
className: cn(compact && "sr-only"),
|
|
53
|
+
children: mergedLabel
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
if (shared && !onShared) {
|
|
57
|
+
const chip = /* @__PURE__ */ jsx(
|
|
58
|
+
"span",
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "share-control",
|
|
61
|
+
"data-testid": testId,
|
|
62
|
+
className: cn("inline-flex shrink-0", className),
|
|
63
|
+
children: /* @__PURE__ */ jsx(SharingEntity, { shared: true, variant: compact ? "icon" : "full", "data-testid": stateTestId })
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
67
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, onFocusCapture: (e) => e.stopPropagation(), children: chip }),
|
|
68
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: disabledProp && disabledTooltip ? disabledTooltip : sharedForGoodTooltip() })
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
const mergedTooltip = disabledProp ? disabledTooltip : shared ? tooltip ?? l.shared : tooltip ?? `Share with the ${getEntityLabel("WORKSPACE").toLowerCase()}. ${SHARING_IS_ONE_WAY}.`;
|
|
72
|
+
const mergedButton = /* @__PURE__ */ jsxs(
|
|
73
|
+
Button,
|
|
74
|
+
{
|
|
75
|
+
type: "button",
|
|
76
|
+
variant,
|
|
77
|
+
size: compact ? "icon" : "sm",
|
|
78
|
+
disabled: disabledProp,
|
|
79
|
+
"aria-label": shared ? `${mergedLabel}, ${l.share}` : `${l.share}: ${mergedLabel}`,
|
|
80
|
+
"data-slot": "share-button",
|
|
81
|
+
"data-testid": testId,
|
|
82
|
+
onClick: (e) => {
|
|
83
|
+
e.stopPropagation();
|
|
84
|
+
if (shared) onShared?.();
|
|
85
|
+
else onShare();
|
|
86
|
+
},
|
|
87
|
+
className: cn("pointer-coarse:min-h-11 pointer-coarse:min-w-11", className),
|
|
88
|
+
children: [
|
|
89
|
+
shared ? /* @__PURE__ */ jsx(Users, { className: "size-4" }) : /* @__PURE__ */ jsx(Share2, { className: "size-4" }),
|
|
90
|
+
label
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
return mergedTooltip ? /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
95
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, onFocusCapture: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx("span", { "data-slot": "share-control", className: "inline-flex shrink-0", children: mergedButton }) }),
|
|
96
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: mergedTooltip })
|
|
97
|
+
] }) : /* @__PURE__ */ jsx("span", { "data-slot": "share-control", className: "inline-flex shrink-0", children: mergedButton });
|
|
98
|
+
}
|
|
39
99
|
const button = /* @__PURE__ */ jsxs(
|
|
40
100
|
Button,
|
|
41
101
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/collaboration/sharing/ShareControl.tsx"],
|
|
4
|
-
"sourcesContent": ["import { Share2 } from 'lucide-react'\nimport {\n Button,\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n cn,\n SharingEntity,\n} from '@arbidocs/react/ui'\nimport { testIdOr } from '../../chat/test-id'\nimport { sharedForGoodTooltip } from './one-way'\n\n/** Visibility of the selection: every item shared, none shared, or a mix. */\nexport type ShareState = 'shared' | 'private' | 'mixed'\n\n/** Every fixed string of the share control. Pass a partial `labels` to translate or reword. */\nexport interface ShareControlLabels {\n share: string\n shared: string\n private: string\n mixed: string\n}\n\nexport const DEFAULT_SHARE_CONTROL_LABELS: ShareControlLabels = {\n share: 'Share',\n shared: 'Shared',\n private: 'Private',\n mixed: 'Partly shared',\n}\n\nexport interface ShareControlProps {\n state: ShareState\n /**\n * Share with the workspace (the host asks first: sharing cannot be undone). There is no way back:\n * on a fully shared selection the button is off and says why, unless `onShared` is given.\n */\n onShare: () => void\n /**\n * What a click on an already shared item does instead (e.g. tell specific people about it).\n * Absent: the button is off, with the one-way tooltip.\n */\n onShared?: () => void\n disabled?: boolean\n /** Tooltip while disabled (why the user cannot change visibility). */\n disabledTooltip?: string\n /** What a click does in the current state (tooltip). Falls back to the label. */\n tooltip?: string\n /** `outline` for a header, `ghost` inside a floating bar. */\n variant?: 'outline' | 'ghost'\n /** Icon-only button (narrow headers); the accessible name stays \"Share\". */\n compact?: boolean\n /** Show the muted state pill (\"Shared\" / \"Private\") after the button. */\n showState?: boolean\n className?: string\n labels?: Partial<ShareControlLabels>\n /** Test id of the button (the app passes the current id). */\n testId?: string\n /** Test id of the state pill. */\n stateTestId?: string\n}\n\n/**\n * Share control: an outline (or ghost) \"Share\" button that shares with the workspace, with the\n * current state spelled out in a muted pill. Sharing is one-way, so it never takes a share back.\n * Neutral tones only: sharing is a plain state, not an AI moment, so there is no accent or cyan\n * switch that could read as \"on\" while its label reads \"off\".\n */\nexport function ShareControl({\n state,\n onShare,\n onShared,\n disabled: disabledProp = false,\n disabledTooltip,\n tooltip,\n variant = 'outline',\n compact = false,\n showState = true,\n className,\n labels,\n testId,\n stateTestId,\n}: ShareControlProps) {\n const l = { ...DEFAULT_SHARE_CONTROL_LABELS, ...labels }\n const stateLabel = state === 'shared' ? l.shared : state === 'mixed' ? l.mixed : l.private\n const sharedForGood = state === 'shared' && !onShared\n const disabled = disabledProp || sharedForGood\n const tooltipText = disabledProp\n ? disabledTooltip\n : sharedForGood\n ? sharedForGoodTooltip()\n : (tooltip ?? l.share)\n\n const button = (\n <Button\n type=\"button\"\n variant={variant}\n size={compact ? 'icon' : 'sm'}\n disabled={disabled}\n aria-label={l.share}\n aria-pressed={state === 'mixed' ? 'mixed' : state === 'shared'}\n data-slot=\"share-button\"\n data-testid={testId}\n onClick={(e) => {\n e.stopPropagation()\n if (state === 'shared') onShared?.()\n else onShare()\n }}\n className=\"pointer-coarse:min-h-11 pointer-coarse:min-w-11\"\n >\n <Share2 className=\"size-4\" />\n {!compact && <span>{l.share}</span>}\n </Button>\n )\n\n return (\n <div\n data-slot=\"share-control\"\n className={cn('inline-flex shrink-0 items-center gap-2', className)}\n >\n {tooltipText ? (\n <Tooltip>\n {/* A disabled button swallows pointer events, so the tooltip hangs off a wrapper. */}\n <TooltipTrigger asChild onFocusCapture={(e) => e.stopPropagation()}>\n <span className=\"inline-flex\">{button}</span>\n </TooltipTrigger>\n <TooltipContent>{tooltipText}</TooltipContent>\n </Tooltip>\n ) : (\n button\n )}\n {showState && state !== 'mixed' && (\n <SharingEntity shared={state === 'shared'} data-testid={stateTestId} />\n )}\n {showState && state === 'mixed' && (\n <span\n data-slot=\"share-state\"\n data-state={state}\n data-testid={stateTestId}\n className=\"inline-flex h-6 items-center rounded-full bg-muted px-2 text-xs font-medium text-muted-foreground\"\n >\n {stateLabel}\n </span>\n )}\n </div>\n )\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import { Share2, Users } from 'lucide-react'\nimport {\n Button,\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n cn,\n SharingEntity,\n getSharingLabels,\n getEntityLabel,\n} from '@arbidocs/react/ui'\nimport { testIdOr } from '../../chat/test-id'\nimport { SHARING_IS_ONE_WAY, sharedForGoodTooltip } from './one-way'\n\n/** Visibility of the selection: every item shared, none shared, or a mix. */\nexport type ShareState = 'shared' | 'private' | 'mixed'\n\n/** Every fixed string of the share control. Pass a partial `labels` to translate or reword. */\nexport interface ShareControlLabels {\n share: string\n shared: string\n private: string\n mixed: string\n}\n\nexport const DEFAULT_SHARE_CONTROL_LABELS: ShareControlLabels = {\n share: 'Share',\n shared: 'Shared',\n private: 'Private',\n mixed: 'Partly shared',\n}\n\nexport interface ShareControlProps {\n state: ShareState\n /**\n * Share with the workspace (the host asks first: sharing cannot be undone). There is no way back:\n * on a fully shared selection the button is off and says why, unless `onShared` is given.\n */\n onShare: () => void\n /**\n * What a click on an already shared item does instead (e.g. tell specific people about it).\n * Absent: the button is off, with the one-way tooltip.\n */\n onShared?: () => void\n disabled?: boolean\n /** Tooltip while disabled (why the user cannot change visibility). */\n disabledTooltip?: string\n /** What a click does in the current state (tooltip). Falls back to the label. */\n tooltip?: string\n /** `outline` for a header, `ghost` inside a floating bar. */\n variant?: 'outline' | 'ghost'\n /** Icon-only button (narrow headers); the accessible name stays \"Share\". */\n compact?: boolean\n /** Show the muted state pill (\"Shared\" / \"Private\") after the button. */\n showState?: boolean\n className?: string\n labels?: Partial<ShareControlLabels>\n /** Test id of the button (the app passes the current id). */\n testId?: string\n /** Test id of the state pill. */\n stateTestId?: string\n /**\n * One control instead of a button plus a pill (default false: both, as before). While private it\n * is a single outline button that names the state (\"Only me\") with a share icon and shares with\n * the workspace on click. Once shared it is a single quiet status chip (\"Shared\") that keeps the\n * member card on hover and says sharing cannot be undone; it is not clickable unless `onShared`\n * is given, and then it is a button that runs `onShared`. A partly shared selection keeps the\n * button-plus-pill rendering. `testId` goes on the outer control, `stateTestId` on its label.\n */\n merged?: boolean\n}\n\n/**\n * Share control: an outline (or ghost) \"Share\" button that shares with the workspace, with the\n * current state spelled out in a muted pill. Sharing is one-way, so it never takes a share back.\n * Neutral tones only: sharing is a plain state, not an AI moment, so there is no accent or cyan\n * switch that could read as \"on\" while its label reads \"off\".\n */\nexport function ShareControl({\n state,\n onShare,\n onShared,\n disabled: disabledProp = false,\n disabledTooltip,\n tooltip,\n variant = 'outline',\n compact = false,\n showState = true,\n className,\n labels,\n testId,\n stateTestId,\n merged = false,\n}: ShareControlProps) {\n const l = { ...DEFAULT_SHARE_CONTROL_LABELS, ...labels }\n const stateLabel = state === 'shared' ? l.shared : state === 'mixed' ? l.mixed : l.private\n const sharedForGood = state === 'shared' && !onShared\n const disabled = disabledProp || sharedForGood\n const tooltipText = disabledProp\n ? disabledTooltip\n : sharedForGood\n ? sharedForGoodTooltip()\n : (tooltip ?? l.share)\n\n if (merged && state !== 'mixed') {\n const shared = state === 'shared'\n const sharing = getSharingLabels()\n const mergedLabel = shared ? sharing.workspace : sharing.onlyMe\n const label = (\n <span\n data-slot=\"share-state\"\n data-state={state}\n data-testid={stateTestId}\n className={cn(compact && 'sr-only')}\n >\n {mergedLabel}\n </span>\n )\n if (shared && !onShared) {\n // Inert status: the member card stays (SharingEntity); the tooltip says why nothing happens.\n const chip = (\n <span\n data-slot=\"share-control\"\n data-testid={testId}\n className={cn('inline-flex shrink-0', className)}\n >\n <SharingEntity shared variant={compact ? 'icon' : 'full'} data-testid={stateTestId} />\n </span>\n )\n return (\n <Tooltip>\n <TooltipTrigger asChild onFocusCapture={(e) => e.stopPropagation()}>\n {chip}\n </TooltipTrigger>\n <TooltipContent>\n {disabledProp && disabledTooltip ? disabledTooltip : sharedForGoodTooltip()}\n </TooltipContent>\n </Tooltip>\n )\n }\n const mergedTooltip = disabledProp\n ? disabledTooltip\n : shared\n ? (tooltip ?? l.shared)\n : (tooltip ??\n `Share with the ${getEntityLabel('WORKSPACE').toLowerCase()}. ${SHARING_IS_ONE_WAY}.`)\n const mergedButton = (\n <Button\n type=\"button\"\n variant={variant}\n size={compact ? 'icon' : 'sm'}\n disabled={disabledProp}\n aria-label={shared ? `${mergedLabel}, ${l.share}` : `${l.share}: ${mergedLabel}`}\n data-slot=\"share-button\"\n data-testid={testId}\n onClick={(e) => {\n e.stopPropagation()\n if (shared) onShared?.()\n else onShare()\n }}\n className={cn('pointer-coarse:min-h-11 pointer-coarse:min-w-11', className)}\n >\n {shared ? <Users className=\"size-4\" /> : <Share2 className=\"size-4\" />}\n {label}\n </Button>\n )\n return mergedTooltip ? (\n <Tooltip>\n <TooltipTrigger asChild onFocusCapture={(e) => e.stopPropagation()}>\n <span data-slot=\"share-control\" className=\"inline-flex shrink-0\">\n {mergedButton}\n </span>\n </TooltipTrigger>\n <TooltipContent>{mergedTooltip}</TooltipContent>\n </Tooltip>\n ) : (\n <span data-slot=\"share-control\" className=\"inline-flex shrink-0\">\n {mergedButton}\n </span>\n )\n }\n\n const button = (\n <Button\n type=\"button\"\n variant={variant}\n size={compact ? 'icon' : 'sm'}\n disabled={disabled}\n aria-label={l.share}\n aria-pressed={state === 'mixed' ? 'mixed' : state === 'shared'}\n data-slot=\"share-button\"\n data-testid={testId}\n onClick={(e) => {\n e.stopPropagation()\n if (state === 'shared') onShared?.()\n else onShare()\n }}\n className=\"pointer-coarse:min-h-11 pointer-coarse:min-w-11\"\n >\n <Share2 className=\"size-4\" />\n {!compact && <span>{l.share}</span>}\n </Button>\n )\n\n return (\n <div\n data-slot=\"share-control\"\n className={cn('inline-flex shrink-0 items-center gap-2', className)}\n >\n {tooltipText ? (\n <Tooltip>\n {/* A disabled button swallows pointer events, so the tooltip hangs off a wrapper. */}\n <TooltipTrigger asChild onFocusCapture={(e) => e.stopPropagation()}>\n <span className=\"inline-flex\">{button}</span>\n </TooltipTrigger>\n <TooltipContent>{tooltipText}</TooltipContent>\n </Tooltip>\n ) : (\n button\n )}\n {showState && state !== 'mixed' && (\n <SharingEntity shared={state === 'shared'} data-testid={stateTestId} />\n )}\n {showState && state === 'mixed' && (\n <span\n data-slot=\"share-state\"\n data-state={state}\n data-testid={stateTestId}\n className=\"inline-flex h-6 items-center rounded-full bg-muted px-2 text-xs font-medium text-muted-foreground\"\n >\n {stateLabel}\n </span>\n )}\n </div>\n )\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -25,5 +25,12 @@ export interface GridRowNavigatorProps<T> {
|
|
|
25
25
|
testId: string;
|
|
26
26
|
/** Noun for the buttons' aria-labels ("Previous fact" / "Next document"). */
|
|
27
27
|
itemLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Keep a disabled "– / –" stepper on screen while the grid is not ready or
|
|
30
|
+
* has no rows, instead of rendering nothing. Hosts that style the toolbar
|
|
31
|
+
* around the stepper pass it so the control does not pop in once the grid
|
|
32
|
+
* loads. Default false: the stepper is hidden when there is nothing to step.
|
|
33
|
+
*/
|
|
34
|
+
keepWhenEmpty?: boolean;
|
|
28
35
|
}
|
|
29
|
-
export declare function GridRowNavigator<T>({ gridApi, selectedId, onSelect, testId, itemLabel, }: GridRowNavigatorProps<T>): import("react").JSX.Element;
|
|
36
|
+
export declare function GridRowNavigator<T>({ gridApi, selectedId, onSelect, testId, itemLabel, keepWhenEmpty, }: GridRowNavigatorProps<T>): import("react").JSX.Element;
|
|
@@ -8,7 +8,8 @@ function GridRowNavigator({
|
|
|
8
8
|
selectedId,
|
|
9
9
|
onSelect,
|
|
10
10
|
testId,
|
|
11
|
-
itemLabel = "row"
|
|
11
|
+
itemLabel = "row",
|
|
12
|
+
keepWhenEmpty = false
|
|
12
13
|
}) {
|
|
13
14
|
const [{ total, currentIndex }, setPosition] = useState({ total: 0, currentIndex: null });
|
|
14
15
|
const readPosition = useCallback(() => {
|
|
@@ -45,7 +46,8 @@ function GridRowNavigator({
|
|
|
45
46
|
currentIndex,
|
|
46
47
|
onGo: goTo,
|
|
47
48
|
testId,
|
|
48
|
-
itemLabel
|
|
49
|
+
itemLabel,
|
|
50
|
+
keepWhenEmpty
|
|
49
51
|
}
|
|
50
52
|
);
|
|
51
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/GridRowNavigator.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * GridRowNavigator\n *\n * A \u2039 n / N \u203A row navigator for an AG Grid table \u2014 the table twin of the one\n * the calendar and timeline blocks portal into the Facts toolbar, and the same\n * control on the Files table. It walks the rows in the ORDER THE TABLE SHOWS\n * THEM (after the grid's own sort and quick filters), scrolls each into view\n * and hands it to `onSelect` (Facts opens it in the composer, Files in the\n * viewer), so the row being stepped to is the one highlighted on screen.\n *\n * The position tracks `selectedId` (the fact open in the composer / the doc in\n * the viewer), falling back to \"\u2013 / N\" when nothing is open. It re-reads the\n * grid whenever its row model changes (sort, filter, data), so the counter\n * stays honest.\n */\n\nimport { useCallback, useEffect, useState } from 'react'\nimport type { GridApi } from 'ag-grid-community'\nimport { RowNavigatorControls } from './RowNavigatorControls'\n\nexport interface GridRowNavigatorProps<T> {\n /** The mounted grid's API, or null until the grid is ready. */\n gridApi: GridApi<T> | null\n /** The row currently open \u2014 where the counter points. */\n selectedId: string | null\n /** Open the row the user stepped to. */\n onSelect: (item: T) => void\n /** Prefix for every `data-testid` this control emits. */\n testId: string\n /** Noun for the buttons' aria-labels (\"Previous fact\" / \"Next document\"). */\n itemLabel?: string\n}\n\n/** Grid events after which the displayed row order or count may differ. */\nconst ROW_MODEL_EVENTS = ['modelUpdated', 'sortChanged', 'filterChanged', 'rowDataUpdated'] as const\n\nexport function GridRowNavigator<T>({\n gridApi,\n selectedId,\n onSelect,\n testId,\n itemLabel = 'row',\n}: GridRowNavigatorProps<T>) {\n const [{ total, currentIndex }, setPosition] = useState<{\n total: number\n currentIndex: number | null\n }>({ total: 0, currentIndex: null })\n\n const readPosition = useCallback(() => {\n if (!gridApi || gridApi.isDestroyed()) {\n setPosition({ total: 0, currentIndex: null })\n return\n }\n const total = gridApi.getDisplayedRowCount()\n const node = selectedId ? gridApi.getRowNode(selectedId) : undefined\n const index = node?.rowIndex\n // A selected row hidden by the grid's filter has no displayed index.\n setPosition({ total, currentIndex: typeof index === 'number' && index >= 0 ? index : null })\n }, [gridApi, selectedId])\n\n useEffect(() => {\n readPosition()\n if (!gridApi || gridApi.isDestroyed()) return\n for (const ev of ROW_MODEL_EVENTS) gridApi.addEventListener(ev, readPosition)\n return () => {\n if (gridApi.isDestroyed()) return\n for (const ev of ROW_MODEL_EVENTS) gridApi.removeEventListener(ev, readPosition)\n }\n }, [gridApi, readPosition])\n\n const goTo = (index: number) => {\n if (!gridApi || gridApi.isDestroyed()) return\n const clamped = Math.max(0, Math.min(total - 1, index))\n const node = gridApi.getDisplayedRowAtIndex(clamped)\n if (!node?.data) return\n gridApi.ensureIndexVisible(clamped, 'middle')\n onSelect(node.data)\n }\n\n return (\n <RowNavigatorControls\n total={total}\n currentIndex={currentIndex}\n onGo={goTo}\n testId={testId}\n itemLabel={itemLabel}\n />\n )\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/**\n * GridRowNavigator\n *\n * A \u2039 n / N \u203A row navigator for an AG Grid table \u2014 the table twin of the one\n * the calendar and timeline blocks portal into the Facts toolbar, and the same\n * control on the Files table. It walks the rows in the ORDER THE TABLE SHOWS\n * THEM (after the grid's own sort and quick filters), scrolls each into view\n * and hands it to `onSelect` (Facts opens it in the composer, Files in the\n * viewer), so the row being stepped to is the one highlighted on screen.\n *\n * The position tracks `selectedId` (the fact open in the composer / the doc in\n * the viewer), falling back to \"\u2013 / N\" when nothing is open. It re-reads the\n * grid whenever its row model changes (sort, filter, data), so the counter\n * stays honest.\n */\n\nimport { useCallback, useEffect, useState } from 'react'\nimport type { GridApi } from 'ag-grid-community'\nimport { RowNavigatorControls } from './RowNavigatorControls'\n\nexport interface GridRowNavigatorProps<T> {\n /** The mounted grid's API, or null until the grid is ready. */\n gridApi: GridApi<T> | null\n /** The row currently open \u2014 where the counter points. */\n selectedId: string | null\n /** Open the row the user stepped to. */\n onSelect: (item: T) => void\n /** Prefix for every `data-testid` this control emits. */\n testId: string\n /** Noun for the buttons' aria-labels (\"Previous fact\" / \"Next document\"). */\n itemLabel?: string\n /**\n * Keep a disabled \"\u2013 / \u2013\" stepper on screen while the grid is not ready or\n * has no rows, instead of rendering nothing. Hosts that style the toolbar\n * around the stepper pass it so the control does not pop in once the grid\n * loads. Default false: the stepper is hidden when there is nothing to step.\n */\n keepWhenEmpty?: boolean\n}\n\n/** Grid events after which the displayed row order or count may differ. */\nconst ROW_MODEL_EVENTS = ['modelUpdated', 'sortChanged', 'filterChanged', 'rowDataUpdated'] as const\n\nexport function GridRowNavigator<T>({\n gridApi,\n selectedId,\n onSelect,\n testId,\n itemLabel = 'row',\n keepWhenEmpty = false,\n}: GridRowNavigatorProps<T>) {\n const [{ total, currentIndex }, setPosition] = useState<{\n total: number\n currentIndex: number | null\n }>({ total: 0, currentIndex: null })\n\n const readPosition = useCallback(() => {\n if (!gridApi || gridApi.isDestroyed()) {\n setPosition({ total: 0, currentIndex: null })\n return\n }\n const total = gridApi.getDisplayedRowCount()\n const node = selectedId ? gridApi.getRowNode(selectedId) : undefined\n const index = node?.rowIndex\n // A selected row hidden by the grid's filter has no displayed index.\n setPosition({ total, currentIndex: typeof index === 'number' && index >= 0 ? index : null })\n }, [gridApi, selectedId])\n\n useEffect(() => {\n readPosition()\n if (!gridApi || gridApi.isDestroyed()) return\n for (const ev of ROW_MODEL_EVENTS) gridApi.addEventListener(ev, readPosition)\n return () => {\n if (gridApi.isDestroyed()) return\n for (const ev of ROW_MODEL_EVENTS) gridApi.removeEventListener(ev, readPosition)\n }\n }, [gridApi, readPosition])\n\n const goTo = (index: number) => {\n if (!gridApi || gridApi.isDestroyed()) return\n const clamped = Math.max(0, Math.min(total - 1, index))\n const node = gridApi.getDisplayedRowAtIndex(clamped)\n if (!node?.data) return\n gridApi.ensureIndexVisible(clamped, 'middle')\n onSelect(node.data)\n }\n\n return (\n <RowNavigatorControls\n total={total}\n currentIndex={currentIndex}\n onGo={goTo}\n testId={testId}\n itemLabel={itemLabel}\n keepWhenEmpty={keepWhenEmpty}\n />\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAwFI;AAxEJ,SAAS,aAAa,WAAW,gBAAgB;AAEjD,SAAS,4BAA4B;AAuBrC,MAAM,mBAAmB,CAAC,gBAAgB,eAAe,iBAAiB,gBAAgB;AAEnF,SAAS,iBAAoB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,gBAAgB;AAClB,GAA6B;AAC3B,QAAM,CAAC,EAAE,OAAO,aAAa,GAAG,WAAW,IAAI,SAG5C,EAAE,OAAO,GAAG,cAAc,KAAK,CAAC;AAEnC,QAAM,eAAe,YAAY,MAAM;AACrC,QAAI,CAAC,WAAW,QAAQ,YAAY,GAAG;AACrC,kBAAY,EAAE,OAAO,GAAG,cAAc,KAAK,CAAC;AAC5C;AAAA,IACF;AACA,UAAMA,SAAQ,QAAQ,qBAAqB;AAC3C,UAAM,OAAO,aAAa,QAAQ,WAAW,UAAU,IAAI;AAC3D,UAAM,QAAQ,MAAM;AAEpB,gBAAY,EAAE,OAAAA,QAAO,cAAc,OAAO,UAAU,YAAY,SAAS,IAAI,QAAQ,KAAK,CAAC;AAAA,EAC7F,GAAG,CAAC,SAAS,UAAU,CAAC;AAExB,YAAU,MAAM;AACd,iBAAa;AACb,QAAI,CAAC,WAAW,QAAQ,YAAY,EAAG;AACvC,eAAW,MAAM,iBAAkB,SAAQ,iBAAiB,IAAI,YAAY;AAC5E,WAAO,MAAM;AACX,UAAI,QAAQ,YAAY,EAAG;AAC3B,iBAAW,MAAM,iBAAkB,SAAQ,oBAAoB,IAAI,YAAY;AAAA,IACjF;AAAA,EACF,GAAG,CAAC,SAAS,YAAY,CAAC;AAE1B,QAAM,OAAO,CAAC,UAAkB;AAC9B,QAAI,CAAC,WAAW,QAAQ,YAAY,EAAG;AACvC,UAAM,UAAU,KAAK,IAAI,GAAG,KAAK,IAAI,QAAQ,GAAG,KAAK,CAAC;AACtD,UAAM,OAAO,QAAQ,uBAAuB,OAAO;AACnD,QAAI,CAAC,MAAM,KAAM;AACjB,YAAQ,mBAAmB,SAAS,QAAQ;AAC5C,aAAS,KAAK,IAAI;AAAA,EACpB;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,MAAM;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA;AAAA,EACF;AAEJ;",
|
|
6
6
|
"names": ["total"]
|
|
7
7
|
}
|
package/dist/connect/docx.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkJ46Y2L26_cjs = require('../chunk-J46Y2L26.cjs');
|
|
5
|
+
var chunkKZH6HMJL_cjs = require('../chunk-KZH6HMJL.cjs');
|
|
6
6
|
require('../chunk-ZON25DCD.cjs');
|
|
7
7
|
require('../chunk-TBDQGSFI.cjs');
|
|
8
8
|
require('../chunk-HGQGXY5Q.cjs');
|
|
9
9
|
require('../chunk-GA5ZO4YA.cjs');
|
|
10
10
|
require('../chunk-VG5XNE4H.cjs');
|
|
11
11
|
require('../chunk-4XKROAMO.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkVJHDCYKE_cjs = require('../chunk-VJHDCYKE.cjs');
|
|
13
13
|
require('../chunk-4ONPEVTP.cjs');
|
|
14
14
|
require('../chunk-V3KLUWQQ.cjs');
|
|
15
15
|
require('../chunk-7NJKDJVO.cjs');
|
|
@@ -20,13 +20,12 @@ require('../chunk-UKOYN2WD.cjs');
|
|
|
20
20
|
require('../chunk-RC25WMVB.cjs');
|
|
21
21
|
require('../chunk-HQ6SK34T.cjs');
|
|
22
22
|
require('../chunk-75BNMCUX.cjs');
|
|
23
|
-
require('../chunk-
|
|
23
|
+
require('../chunk-KD37PODE.cjs');
|
|
24
24
|
require('../chunk-3YEXZX4H.cjs');
|
|
25
25
|
require('../chunk-4PA6VCCR.cjs');
|
|
26
26
|
require('../chunk-5FSULBPE.cjs');
|
|
27
27
|
require('../chunk-AHDJXIUB.cjs');
|
|
28
28
|
require('../chunk-S3GVFAFB.cjs');
|
|
29
|
-
require('../chunk-6UZC4XVV.cjs');
|
|
30
29
|
require('../chunk-IXCWZ4HC.cjs');
|
|
31
30
|
require('../chunk-Y3GJBLAI.cjs');
|
|
32
31
|
require('../chunk-SQCCQU3K.cjs');
|
|
@@ -34,6 +33,7 @@ require('../chunk-UDSHVNU3.cjs');
|
|
|
34
33
|
require('../chunk-DKY67DA6.cjs');
|
|
35
34
|
require('../chunk-ZQQVXRYZ.cjs');
|
|
36
35
|
require('../chunk-IPSHAMO2.cjs');
|
|
36
|
+
require('../chunk-6UZC4XVV.cjs');
|
|
37
37
|
require('../chunk-ZVEW3JBT.cjs');
|
|
38
38
|
require('../chunk-VZOOGA47.cjs');
|
|
39
39
|
require('../chunk-GD5OYIOV.cjs');
|
|
@@ -50,25 +50,25 @@ require('../chunk-PLIF5CUV.cjs');
|
|
|
50
50
|
var react = require('react');
|
|
51
51
|
|
|
52
52
|
function useConnectedMailWordEditor() {
|
|
53
|
-
const adapter =
|
|
53
|
+
const adapter = chunkVJHDCYKE_cjs.useConnectedNativeDocxAdapter();
|
|
54
54
|
return react.useMemo(() => ({ adapter }), [adapter]);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
Object.defineProperty(exports, "ConnectedStreamedWordArtifact", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkJ46Y2L26_cjs.ConnectedStreamedWordArtifact; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "ConnectedNativeDocxComparison", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkKZH6HMJL_cjs.ConnectedNativeDocxComparison; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "ConnectedNativeDocxEditor", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkVJHDCYKE_cjs.ConnectedNativeDocxEditor; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "useConnectedNativeDocxAdapter", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkVJHDCYKE_cjs.useConnectedNativeDocxAdapter; }
|
|
72
72
|
});
|
|
73
73
|
exports.useConnectedMailWordEditor = useConnectedMailWordEditor;
|
|
74
74
|
//# sourceMappingURL=docx.cjs.map
|