@arbidocs/blocks 0.5.154 → 0.5.155
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/ConnectedNativeDocxComparison-2DAQX5GX.cjs +2 -2
- package/dist/ConnectedStreamedWordArtifact-LTYB62VM.cjs +2 -2
- package/dist/{DocumentReviewCard-ILDLYZ5A.cjs → DocumentReviewCard-5AP55NGZ.cjs} +13 -14
- package/dist/DocumentReviewCard-5AP55NGZ.cjs.map +1 -0
- package/dist/{FilesViewerDialog-YLD5YFP2.cjs → FilesViewerDialog-SHWCE3UN.cjs} +12 -13
- package/dist/FilesViewerDialog-SHWCE3UN.cjs.map +1 -0
- package/dist/{WorkspaceTableView-V3N64LJG.cjs → WorkspaceTableView-S4IBYQVF.cjs} +3 -3
- package/dist/{WorkspaceTableView-V3N64LJG.cjs.map → WorkspaceTableView-S4IBYQVF.cjs.map} +1 -1
- package/dist/agents/index.cjs +163 -163
- package/dist/{chunk-I3XTTTPZ.cjs → chunk-2XOIULVN.cjs} +24 -24
- package/dist/{chunk-I3XTTTPZ.cjs.map → chunk-2XOIULVN.cjs.map} +1 -1
- package/dist/{chunk-ZW2ZFC3Q.cjs → chunk-3SGFIDID.cjs} +51 -51
- package/dist/{chunk-ZW2ZFC3Q.cjs.map → chunk-3SGFIDID.cjs.map} +1 -1
- package/dist/{chunk-CNBYM5Q7.cjs → chunk-4UDGCXUR.cjs} +5 -5
- package/dist/{chunk-CNBYM5Q7.cjs.map → chunk-4UDGCXUR.cjs.map} +1 -1
- package/dist/{chunk-T7BUGVSG.cjs → chunk-4XNP27N4.cjs} +36 -36
- package/dist/{chunk-T7BUGVSG.cjs.map → chunk-4XNP27N4.cjs.map} +1 -1
- package/dist/{chunk-YXY52OGU.cjs → chunk-6ZZWQ3OL.cjs} +4 -4
- package/dist/{chunk-YXY52OGU.cjs.map → chunk-6ZZWQ3OL.cjs.map} +1 -1
- package/dist/{chunk-FEAHTNTY.cjs → chunk-74RUAGVD.cjs} +91 -5
- package/dist/chunk-74RUAGVD.cjs.map +1 -0
- package/dist/{chunk-AURL2KT5.cjs → chunk-B5BGVPQ5.cjs} +4 -4
- package/dist/{chunk-AURL2KT5.cjs.map → chunk-B5BGVPQ5.cjs.map} +1 -1
- package/dist/{chunk-NRGLF4J4.cjs → chunk-JCFXS336.cjs} +466 -2
- package/dist/chunk-JCFXS336.cjs.map +1 -0
- package/dist/{chunk-6GKCGCMT.cjs → chunk-MAKCWF45.cjs} +4 -4
- package/dist/{chunk-6GKCGCMT.cjs.map → chunk-MAKCWF45.cjs.map} +1 -1
- package/dist/{chunk-O7U6KL2W.cjs → chunk-OZJENXU3.cjs} +4 -4
- package/dist/{chunk-O7U6KL2W.cjs.map → chunk-OZJENXU3.cjs.map} +1 -1
- package/dist/{chunk-GYI4UXX6.cjs → chunk-QEH375MU.cjs} +4 -4
- package/dist/{chunk-GYI4UXX6.cjs.map → chunk-QEH375MU.cjs.map} +1 -1
- package/dist/{chunk-OOANNOH4.cjs → chunk-Y2Z5UHHV.cjs} +9 -9
- package/dist/{chunk-OOANNOH4.cjs.map → chunk-Y2Z5UHHV.cjs.map} +1 -1
- package/dist/{chunk-BNDIMTWJ.cjs → chunk-ZCQXQIBA.cjs} +28 -28
- package/dist/{chunk-BNDIMTWJ.cjs.map → chunk-ZCQXQIBA.cjs.map} +1 -1
- package/dist/connect/docx.cjs +2 -2
- package/dist/connect/index.cjs +665 -715
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +10 -11
- package/dist/connection/export/ConnectedExportPanel.js +19 -78
- package/dist/connection/export/ConnectedExportPanel.js.map +2 -2
- package/dist/connection/export/transfer-targets.d.ts +66 -0
- package/dist/connection/export/transfer-targets.js +93 -0
- package/dist/connection/export/transfer-targets.js.map +7 -0
- package/dist/connection/export/transfer-text.js +5 -0
- package/dist/connection/export/transfer-text.js.map +2 -2
- package/dist/connection/pages/ConnectedPagesPage.d.ts +4 -1
- package/dist/connection/pages/ConnectedPagesPage.js +22 -2
- package/dist/connection/pages/ConnectedPagesPage.js.map +2 -2
- package/dist/connection/pages/PageTransferDialog.d.ts +38 -0
- package/dist/connection/pages/PageTransferDialog.js +219 -0
- package/dist/connection/pages/PageTransferDialog.js.map +7 -0
- package/dist/connection/pages/PageView.d.ts +6 -2
- package/dist/connection/pages/PageView.js +40 -15
- package/dist/connection/pages/PageView.js.map +2 -2
- package/dist/connection/pages/index.d.ts +1 -0
- package/dist/connection/pages/index.js +6 -0
- package/dist/connection/pages/index.js.map +2 -2
- package/dist/connection/pages/labels.d.ts +3 -1
- package/dist/connection/pages/labels.js +2 -0
- package/dist/connection/pages/labels.js.map +2 -2
- package/dist/embed/index.cjs +15 -16
- package/dist/files/index.cjs +249 -250
- package/dist/index.cjs +228 -228
- package/dist/pages/index.cjs +253 -25
- package/dist/pages/index.cjs.map +1 -1
- package/dist/settings/index.cjs +9 -9
- package/dist/shell/index.cjs +1 -1
- package/dist/workflow-canvas/index.cjs +22 -23
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/DocumentReviewCard-ILDLYZ5A.cjs.map +0 -1
- package/dist/FilesViewerDialog-YLD5YFP2.cjs.map +0 -1
- package/dist/chunk-FEAHTNTY.cjs.map +0 -1
- package/dist/chunk-NRGLF4J4.cjs.map +0 -1
- package/dist/chunk-T3Y3LZ4Y.cjs +0 -477
- package/dist/chunk-T3Y3LZ4Y.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/connection/pages/PageView.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * An open page: its header (back, title, \"Share with the workspace\", Edit, and the \"\u2026\" menu with\n * Delete) over its grid of blocks. Private by default; sharing is one step and one-way (asked\n * first): a shared page says so and stays shared, and only a workspace owner deletes it.\n */\nimport type { ReactNode } from 'react'\nimport {
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/**\n * An open page: its header (back, title, \"Share with the workspace\", Edit, and the \"\u2026\" menu with\n * Copy to workspace\u2026, Move to workspace\u2026 and Delete) over its grid of blocks. Private by default; sharing is one step and one-way (asked\n * first): a shared page says so and stays shared, and only a workspace owner deletes it.\n */\nimport type { ReactNode } from 'react'\nimport {\n ArrowLeft,\n ArrowRightLeft,\n Copy,\n MoreHorizontal,\n Pencil,\n Share2,\n Trash2,\n Users,\n} from 'lucide-react'\nimport type { SavedPage } from '@arbidocs/react'\nimport {\n Badge,\n Button,\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@arbidocs/react/ui'\nimport { PageHeader } from '../../components/PageHeader'\nimport type { PagesPageLabels } from './labels'\n\nexport interface PageViewProps {\n page: SavedPage\n l: PagesPageLabels\n canEdit: boolean\n canDelete: boolean\n /** May the viewer share it (their own private page, as an editor)? */\n canShare: boolean\n sharing: boolean\n onBack: () => void\n onEdit: () => void\n onShare: () => void\n onDelete: () => void\n /** \"Copy to workspace\u2026\": omitted, not offered (e.g. a dashboard from before pages). */\n onCopy?: () => void\n /** \"Move to workspace\u2026\": offered with `onCopy` only to whoever may delete the page here. */\n onMove?: () => void\n children?: ReactNode\n testId: string\n}\n\nexport function PageView({\n page,\n l,\n canEdit,\n canDelete,\n canShare,\n sharing,\n onBack,\n onEdit,\n onShare,\n onDelete,\n onCopy,\n onMove,\n children,\n testId,\n}: PageViewProps) {\n return (\n <div className=\"space-y-6\" data-testid={`${testId}-view`}>\n <PageHeader\n title={page.spec.title}\n description={page.spec.description}\n leading={\n <Button variant=\"ghost\" size=\"icon\" aria-label={l.back} onClick={onBack}>\n <ArrowLeft className=\"size-4\" />\n </Button>\n }\n actions={\n <div className=\"flex flex-wrap items-center gap-3\">\n {page.shared ? (\n <Badge variant=\"secondary\" className=\"gap-1\" data-testid={`${testId}-shared`}>\n <Users className=\"size-3.5\" /> {l.sharedBadge}\n </Badge>\n ) : (\n canShare && (\n <Button\n variant=\"outline\"\n onClick={onShare}\n disabled={sharing}\n data-testid={`${testId}-share`}\n >\n <Share2 className=\"size-4\" /> {l.share}\n </Button>\n )\n )}\n {canEdit && (\n <Button variant=\"outline\" onClick={onEdit} data-testid={`${testId}-edit`}>\n <Pencil className=\"size-4\" /> {l.edit}\n </Button>\n )}\n {(canDelete || onCopy) && (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n aria-label={l.more}\n data-testid={`${testId}-more`}\n >\n <MoreHorizontal className=\"size-4\" />\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n {onCopy && (\n <DropdownMenuItem onSelect={onCopy} data-testid={`${testId}-copy-to`}>\n <Copy className=\"size-4\" /> {l.copyToWorkspace}\n </DropdownMenuItem>\n )}\n {onCopy && onMove && canDelete && (\n <DropdownMenuItem onSelect={onMove} data-testid={`${testId}-move-to`}>\n <ArrowRightLeft className=\"size-4\" /> {l.moveToWorkspace}\n </DropdownMenuItem>\n )}\n {onCopy && canDelete && <DropdownMenuSeparator />}\n {canDelete && (\n <DropdownMenuItem\n onSelect={onDelete}\n className=\"text-destructive focus:text-destructive\"\n data-testid={`${testId}-delete`}\n >\n <Trash2 className=\"size-4\" /> {l.delete}\n </DropdownMenuItem>\n )}\n </DropdownMenuContent>\n </DropdownMenu>\n )}\n </div>\n }\n />\n {page.legacy && (\n <p className=\"text-sm text-muted-foreground\" data-testid={`${testId}-legacy-note`}>\n {l.legacy}\n </p>\n )}\n {children}\n </div>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAwEY,cAME,YANF;AAlEZ;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,kBAAkB;AAuBpB,SAAS,SAAS;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAkB;AAChB,SACE,qBAAC,SAAI,WAAU,aAAY,eAAa,GAAG,MAAM,SAC/C;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,OAAO,KAAK,KAAK;AAAA,QACjB,aAAa,KAAK,KAAK;AAAA,QACvB,SACE,oBAAC,UAAO,SAAQ,SAAQ,MAAK,QAAO,cAAY,EAAE,MAAM,SAAS,QAC/D,8BAAC,aAAU,WAAU,UAAS,GAChC;AAAA,QAEF,SACE,qBAAC,SAAI,WAAU,qCACZ;AAAA,eAAK,SACJ,qBAAC,SAAM,SAAQ,aAAY,WAAU,SAAQ,eAAa,GAAG,MAAM,WACjE;AAAA,gCAAC,SAAM,WAAU,YAAW;AAAA,YAAE;AAAA,YAAE,EAAE;AAAA,aACpC,IAEA,YACE;AAAA,YAAC;AAAA;AAAA,cACC,SAAQ;AAAA,cACR,SAAS;AAAA,cACT,UAAU;AAAA,cACV,eAAa,GAAG,MAAM;AAAA,cAEtB;AAAA,oCAAC,UAAO,WAAU,UAAS;AAAA,gBAAE;AAAA,gBAAE,EAAE;AAAA;AAAA;AAAA,UACnC;AAAA,UAGH,WACC,qBAAC,UAAO,SAAQ,WAAU,SAAS,QAAQ,eAAa,GAAG,MAAM,SAC/D;AAAA,gCAAC,UAAO,WAAU,UAAS;AAAA,YAAE;AAAA,YAAE,EAAE;AAAA,aACnC;AAAA,WAEA,aAAa,WACb,qBAAC,gBACC;AAAA,gCAAC,uBAAoB,SAAO,MAC1B;AAAA,cAAC;AAAA;AAAA,gBACC,SAAQ;AAAA,gBACR,MAAK;AAAA,gBACL,cAAY,EAAE;AAAA,gBACd,eAAa,GAAG,MAAM;AAAA,gBAEtB,8BAAC,kBAAe,WAAU,UAAS;AAAA;AAAA,YACrC,GACF;AAAA,YACA,qBAAC,uBAAoB,OAAM,OACxB;AAAA,wBACC,qBAAC,oBAAiB,UAAU,QAAQ,eAAa,GAAG,MAAM,YACxD;AAAA,oCAAC,QAAK,WAAU,UAAS;AAAA,gBAAE;AAAA,gBAAE,EAAE;AAAA,iBACjC;AAAA,cAED,UAAU,UAAU,aACnB,qBAAC,oBAAiB,UAAU,QAAQ,eAAa,GAAG,MAAM,YACxD;AAAA,oCAAC,kBAAe,WAAU,UAAS;AAAA,gBAAE;AAAA,gBAAE,EAAE;AAAA,iBAC3C;AAAA,cAED,UAAU,aAAa,oBAAC,yBAAsB;AAAA,cAC9C,aACC;AAAA,gBAAC;AAAA;AAAA,kBACC,UAAU;AAAA,kBACV,WAAU;AAAA,kBACV,eAAa,GAAG,MAAM;AAAA,kBAEtB;AAAA,wCAAC,UAAO,WAAU,UAAS;AAAA,oBAAE;AAAA,oBAAE,EAAE;AAAA;AAAA;AAAA,cACnC;AAAA,eAEJ;AAAA,aACF;AAAA,WAEJ;AAAA;AAAA,IAEJ;AAAA,IACC,KAAK,UACJ,oBAAC,OAAE,WAAU,iCAAgC,eAAa,GAAG,MAAM,gBAChE,YAAE,QACL;AAAA,IAED;AAAA,KACH;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ConnectedPagesPage, type ConnectedPagesPageProps } from './ConnectedPagesPage';
|
|
2
|
+
export { DEFAULT_PAGE_TRANSFER_LABELS, PageTransferDialog, type PageTransferDialogLabels, type PageTransferDialogProps, type PageTransferMode, } from './PageTransferDialog';
|
|
2
3
|
export { DEFAULT_PAGES_PAGE_LABELS, type PagesPageLabels } from './labels';
|
|
3
4
|
export { BlockEditor, DEFAULT_BLOCK_EDITOR_LABELS, type BlockEditorLabels, type BlockEditorProps, } from './BlockEditor';
|
|
4
5
|
export { PageBlockView, type PageBlockViewProps } from './PageBlockView';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { ConnectedPagesPage } from "./ConnectedPagesPage.js";
|
|
3
|
+
import {
|
|
4
|
+
DEFAULT_PAGE_TRANSFER_LABELS,
|
|
5
|
+
PageTransferDialog
|
|
6
|
+
} from "./PageTransferDialog.js";
|
|
3
7
|
import { DEFAULT_PAGES_PAGE_LABELS } from "./labels.js";
|
|
4
8
|
import {
|
|
5
9
|
BlockEditor,
|
|
@@ -61,6 +65,7 @@ export {
|
|
|
61
65
|
DEFAULT_EDITABLE_PAGE_GRID_LABELS,
|
|
62
66
|
DEFAULT_LIVE_BLOCK_EDITOR_LABELS,
|
|
63
67
|
DEFAULT_PAGES_PAGE_LABELS,
|
|
68
|
+
DEFAULT_PAGE_TRANSFER_LABELS,
|
|
64
69
|
DEFAULT_TABLE_VIEW_BLOCK_LABELS,
|
|
65
70
|
DEFAULT_VIEW_PICKER_LABELS,
|
|
66
71
|
DocumentBlockView,
|
|
@@ -76,6 +81,7 @@ export {
|
|
|
76
81
|
PageBlockView,
|
|
77
82
|
PageCell,
|
|
78
83
|
PageGrid,
|
|
84
|
+
PageTransferDialog,
|
|
79
85
|
SLOTS_ACROSS,
|
|
80
86
|
SLOT_COLUMNS,
|
|
81
87
|
SLOT_ROWS,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/connection/pages/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { ConnectedPagesPage, type ConnectedPagesPageProps } from './ConnectedPagesPage'\nexport { DEFAULT_PAGES_PAGE_LABELS, type PagesPageLabels } from './labels'\nexport {\n BlockEditor,\n DEFAULT_BLOCK_EDITOR_LABELS,\n type BlockEditorLabels,\n type BlockEditorProps,\n} from './BlockEditor'\nexport { PageBlockView, type PageBlockViewProps } from './PageBlockView'\nexport {\n DEFAULT_LIVE_BLOCK_EDITOR_LABELS,\n LiveBlockEditor,\n type LiveBlockEditorLabels,\n type LiveBlockEditorProps,\n} from './LiveBlockEditor'\nexport { PAGE_TEMPLATES, pageOfTemplate } from './page-templates'\nexport {\n DEFAULT_EDITABLE_PAGE_GRID_LABELS,\n EditablePageGrid,\n NO_DRAG,\n type EditablePageGridLabels,\n type EditablePageGridProps,\n} from './EditablePageGrid'\nexport {\n DEFAULT_BLOCK_SLOTS,\n MAX_BLOCK_SLOTS,\n SLOT_COLUMNS,\n SLOT_ROWS,\n SLOTS_ACROSS,\n appendBlock,\n compactLayout,\n defaultLayout,\n moveBlock,\n normalizeLayout,\n resizeBlock,\n snapLayout,\n stepMove,\n stepSize,\n type GridItem,\n} from './grid-layout'\nexport { PAGE_ROW_HEIGHT, PageCell, PageGrid, inReadingOrder, type PageGridProps } from './PageGrid'\nexport {\n DEFAULT_TABLE_VIEW_BLOCK_LABELS,\n TableViewBlock,\n type TableViewBlockLabels,\n type TableViewBlockProps,\n} from './TableViewBlock'\nexport {\n DEFAULT_VIEW_PICKER_LABELS,\n ViewPicker,\n type ViewPickerLabels,\n type ViewPickerProps,\n} from './ViewPicker'\nexport {\n DEFAULT_DOCUMENT_BLOCK_LABELS,\n DocumentBlockView,\n DocumentReadView,\n GalleryBlockView,\n type DocumentBlockLabels,\n type DocumentBlockViewProps,\n type DocumentReadViewProps,\n type GalleryBlockViewProps,\n} from './DocumentBlocks'\nexport {\n DEFAULT_DOCUMENTS_PICKER_LABELS,\n DocumentsPicker,\n type DocumentsPickerLabels,\n type DocumentsPickerProps,\n} from './DocumentsPicker'\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,0BAAwD;AACjE,SAAS,iCAAuD;AAChE;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,qBAA8C;AACvD;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,gBAAgB,sBAAsB;AAC/C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,iBAAiB,UAAU,UAAU,sBAA0C;AACxF;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;",
|
|
4
|
+
"sourcesContent": ["export { ConnectedPagesPage, type ConnectedPagesPageProps } from './ConnectedPagesPage'\nexport {\n DEFAULT_PAGE_TRANSFER_LABELS,\n PageTransferDialog,\n type PageTransferDialogLabels,\n type PageTransferDialogProps,\n type PageTransferMode,\n} from './PageTransferDialog'\nexport { DEFAULT_PAGES_PAGE_LABELS, type PagesPageLabels } from './labels'\nexport {\n BlockEditor,\n DEFAULT_BLOCK_EDITOR_LABELS,\n type BlockEditorLabels,\n type BlockEditorProps,\n} from './BlockEditor'\nexport { PageBlockView, type PageBlockViewProps } from './PageBlockView'\nexport {\n DEFAULT_LIVE_BLOCK_EDITOR_LABELS,\n LiveBlockEditor,\n type LiveBlockEditorLabels,\n type LiveBlockEditorProps,\n} from './LiveBlockEditor'\nexport { PAGE_TEMPLATES, pageOfTemplate } from './page-templates'\nexport {\n DEFAULT_EDITABLE_PAGE_GRID_LABELS,\n EditablePageGrid,\n NO_DRAG,\n type EditablePageGridLabels,\n type EditablePageGridProps,\n} from './EditablePageGrid'\nexport {\n DEFAULT_BLOCK_SLOTS,\n MAX_BLOCK_SLOTS,\n SLOT_COLUMNS,\n SLOT_ROWS,\n SLOTS_ACROSS,\n appendBlock,\n compactLayout,\n defaultLayout,\n moveBlock,\n normalizeLayout,\n resizeBlock,\n snapLayout,\n stepMove,\n stepSize,\n type GridItem,\n} from './grid-layout'\nexport { PAGE_ROW_HEIGHT, PageCell, PageGrid, inReadingOrder, type PageGridProps } from './PageGrid'\nexport {\n DEFAULT_TABLE_VIEW_BLOCK_LABELS,\n TableViewBlock,\n type TableViewBlockLabels,\n type TableViewBlockProps,\n} from './TableViewBlock'\nexport {\n DEFAULT_VIEW_PICKER_LABELS,\n ViewPicker,\n type ViewPickerLabels,\n type ViewPickerProps,\n} from './ViewPicker'\nexport {\n DEFAULT_DOCUMENT_BLOCK_LABELS,\n DocumentBlockView,\n DocumentReadView,\n GalleryBlockView,\n type DocumentBlockLabels,\n type DocumentBlockViewProps,\n type DocumentReadViewProps,\n type GalleryBlockViewProps,\n} from './DocumentBlocks'\nexport {\n DEFAULT_DOCUMENTS_PICKER_LABELS,\n DocumentsPicker,\n type DocumentsPickerLabels,\n type DocumentsPickerProps,\n} from './DocumentsPicker'\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,0BAAwD;AACjE;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP,SAAS,iCAAuD;AAChE;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,qBAA8C;AACvD;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,gBAAgB,sBAAsB;AAC/C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,iBAAiB,UAAU,UAAU,sBAA0C;AACxF;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAGK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -21,8 +21,10 @@ export interface PagesPageLabels {
|
|
|
21
21
|
blocks: (count: number) => string;
|
|
22
22
|
back: string;
|
|
23
23
|
edit: string;
|
|
24
|
-
/** The "…" menu of an open page (its rarer actions: delete). */
|
|
24
|
+
/** The "…" menu of an open page (its rarer actions: copy or move to a workspace, delete). */
|
|
25
25
|
more: string;
|
|
26
|
+
copyToWorkspace: string;
|
|
27
|
+
moveToWorkspace: string;
|
|
26
28
|
delete: string;
|
|
27
29
|
confirmDelete: (title: string) => string;
|
|
28
30
|
deleteFailed: string;
|
|
@@ -18,6 +18,8 @@ const DEFAULT_PAGES_PAGE_LABELS = {
|
|
|
18
18
|
back: "All pages",
|
|
19
19
|
edit: "Edit",
|
|
20
20
|
more: "More page actions",
|
|
21
|
+
copyToWorkspace: "Copy to workspace\u2026",
|
|
22
|
+
moveToWorkspace: "Move to workspace\u2026",
|
|
21
23
|
delete: "Delete",
|
|
22
24
|
confirmDelete: (title) => `Delete the page \u201C${title}\u201D? Its blocks go with it.`,
|
|
23
25
|
deleteFailed: "The page could not be deleted",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/connection/pages/labels.ts"],
|
|
4
|
-
"sourcesContent": ["import type { PageBlockKind } from '@arbidocs/react'\n\n/** The words of `ConnectedPagesPage` (a host passes its own through `labels`). */\nexport interface PagesPageLabels {\n title: string\n description: string\n /** The list's two parts: the viewer's own pages, and the workspace's shared ones. */\n mine: string\n shared: string\n newPage: string\n blank: string\n untitled: string\n empty: string\n emptyDescription: string\n /** Nothing in one part of the list. */\n noneMine: string\n noneShared: string\n loadError: string\n /** Offline with no pages cached. */\n offline: string\n retry: string\n blocks: (count: number) => string\n back: string\n edit: string\n /** The \"\u2026\" menu of an open page (its rarer actions: delete). */\n more: string\n delete: string\n confirmDelete: (title: string) => string\n deleteFailed: string\n /** Leaving the editor with changes not saved. */\n confirmDiscard: string\n save: string\n saving: string\n cancel: string\n pageTitle: string\n pageDescription: string\n addBlock: string\n kinds: Record<PageBlockKind, string>\n editBlock: string\n removeBlock: string\n noBlocks: string\n saved: string\n saveFailed: string\n /** The one-way share button of an open page, and what it asks first. */\n share: string\n confirmShare: (title: string) => string\n sharedBadge: string\n privateBadge: string\n sharedDone: string\n shareFailed: string\n /** A dashboard from before pages, not yet saved into a workspace. */\n legacy: string\n /** The figure of a new page made from a database (\"Chart this\"): its rows. */\n rows: string\n /** Saved pages that could not be opened (sealed under another key, or damaged). */\n unreadable: (count: number) => string\n deleteUnreadable: string\n confirmDeleteUnreadable: (count: number) => string\n}\n\nexport const DEFAULT_PAGES_PAGE_LABELS: PagesPageLabels = {\n title: 'Pages',\n description:\n 'Charts, figures, notes and tables from your documents, threads, tags, facts, workflows, AI usage and databases.',\n mine: 'Mine',\n shared: 'Shared',\n newPage: 'New page',\n blank: 'Blank page',\n untitled: 'Untitled page',\n empty: 'No pages yet',\n emptyDescription:\n 'Start from a template or a blank page, then add charts, figures, text and tables.',\n noneMine: 'You have no pages of your own here.',\n noneShared: 'No page is shared with this workspace yet.',\n loadError: 'The pages could not be loaded.',\n offline: 'You are offline. Your pages show when the connection is back.',\n retry: 'Try again',\n blocks: (count) => `${count} ${count === 1 ? 'block' : 'blocks'}`,\n back: 'All pages',\n edit: 'Edit',\n more: 'More page actions',\n delete: 'Delete',\n confirmDelete: (title) => `Delete the page \u201C${title}\u201D? Its blocks go with it.`,\n deleteFailed: 'The page could not be deleted',\n confirmDiscard: 'Discard the changes to this page?',\n save: 'Save',\n saving: 'Saving\u2026',\n cancel: 'Cancel',\n pageTitle: 'Name',\n pageDescription: 'Description',\n addBlock: 'Add a block',\n kinds: {\n chart: 'Chart',\n metric: 'Figure',\n text: 'Text',\n table: 'Table',\n document: 'Document',\n gallery: 'Gallery',\n list: 'Recent list',\n carousel: 'Carousel',\n agenda: 'Agenda',\n start: 'Start',\n },\n editBlock: 'Edit the block',\n removeBlock: 'Remove the block',\n noBlocks: 'No blocks yet. Add one to start.',\n saved: 'Page saved',\n saveFailed: 'The page could not be saved',\n share: 'Share with the workspace',\n confirmShare: (title) =>\n `Share \u201C${title}\u201D with the workspace? Every member will see it. Sharing cannot be undone: once shared, only a workspace owner can delete it.`,\n sharedBadge: 'Shared with the workspace',\n privateBadge: 'Private',\n sharedDone: 'The page is shared with the workspace',\n shareFailed: 'The page could not be shared',\n legacy: 'A dashboard from before pages: saving it puts it in this workspace.',\n rows: 'Rows',\n unreadable: (count) => `${count} saved ${count === 1 ? 'page' : 'pages'} could not be opened.`,\n deleteUnreadable: 'Delete',\n confirmDeleteUnreadable: (count) =>\n `Delete the ${count === 1 ? 'page' : `${count} pages`} that could not be opened?`,\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import type { PageBlockKind } from '@arbidocs/react'\n\n/** The words of `ConnectedPagesPage` (a host passes its own through `labels`). */\nexport interface PagesPageLabels {\n title: string\n description: string\n /** The list's two parts: the viewer's own pages, and the workspace's shared ones. */\n mine: string\n shared: string\n newPage: string\n blank: string\n untitled: string\n empty: string\n emptyDescription: string\n /** Nothing in one part of the list. */\n noneMine: string\n noneShared: string\n loadError: string\n /** Offline with no pages cached. */\n offline: string\n retry: string\n blocks: (count: number) => string\n back: string\n edit: string\n /** The \"\u2026\" menu of an open page (its rarer actions: copy or move to a workspace, delete). */\n more: string\n copyToWorkspace: string\n moveToWorkspace: string\n delete: string\n confirmDelete: (title: string) => string\n deleteFailed: string\n /** Leaving the editor with changes not saved. */\n confirmDiscard: string\n save: string\n saving: string\n cancel: string\n pageTitle: string\n pageDescription: string\n addBlock: string\n kinds: Record<PageBlockKind, string>\n editBlock: string\n removeBlock: string\n noBlocks: string\n saved: string\n saveFailed: string\n /** The one-way share button of an open page, and what it asks first. */\n share: string\n confirmShare: (title: string) => string\n sharedBadge: string\n privateBadge: string\n sharedDone: string\n shareFailed: string\n /** A dashboard from before pages, not yet saved into a workspace. */\n legacy: string\n /** The figure of a new page made from a database (\"Chart this\"): its rows. */\n rows: string\n /** Saved pages that could not be opened (sealed under another key, or damaged). */\n unreadable: (count: number) => string\n deleteUnreadable: string\n confirmDeleteUnreadable: (count: number) => string\n}\n\nexport const DEFAULT_PAGES_PAGE_LABELS: PagesPageLabels = {\n title: 'Pages',\n description:\n 'Charts, figures, notes and tables from your documents, threads, tags, facts, workflows, AI usage and databases.',\n mine: 'Mine',\n shared: 'Shared',\n newPage: 'New page',\n blank: 'Blank page',\n untitled: 'Untitled page',\n empty: 'No pages yet',\n emptyDescription:\n 'Start from a template or a blank page, then add charts, figures, text and tables.',\n noneMine: 'You have no pages of your own here.',\n noneShared: 'No page is shared with this workspace yet.',\n loadError: 'The pages could not be loaded.',\n offline: 'You are offline. Your pages show when the connection is back.',\n retry: 'Try again',\n blocks: (count) => `${count} ${count === 1 ? 'block' : 'blocks'}`,\n back: 'All pages',\n edit: 'Edit',\n more: 'More page actions',\n copyToWorkspace: 'Copy to workspace\u2026',\n moveToWorkspace: 'Move to workspace\u2026',\n delete: 'Delete',\n confirmDelete: (title) => `Delete the page \u201C${title}\u201D? Its blocks go with it.`,\n deleteFailed: 'The page could not be deleted',\n confirmDiscard: 'Discard the changes to this page?',\n save: 'Save',\n saving: 'Saving\u2026',\n cancel: 'Cancel',\n pageTitle: 'Name',\n pageDescription: 'Description',\n addBlock: 'Add a block',\n kinds: {\n chart: 'Chart',\n metric: 'Figure',\n text: 'Text',\n table: 'Table',\n document: 'Document',\n gallery: 'Gallery',\n list: 'Recent list',\n carousel: 'Carousel',\n agenda: 'Agenda',\n start: 'Start',\n },\n editBlock: 'Edit the block',\n removeBlock: 'Remove the block',\n noBlocks: 'No blocks yet. Add one to start.',\n saved: 'Page saved',\n saveFailed: 'The page could not be saved',\n share: 'Share with the workspace',\n confirmShare: (title) =>\n `Share \u201C${title}\u201D with the workspace? Every member will see it. Sharing cannot be undone: once shared, only a workspace owner can delete it.`,\n sharedBadge: 'Shared with the workspace',\n privateBadge: 'Private',\n sharedDone: 'The page is shared with the workspace',\n shareFailed: 'The page could not be shared',\n legacy: 'A dashboard from before pages: saving it puts it in this workspace.',\n rows: 'Rows',\n unreadable: (count) => `${count} saved ${count === 1 ? 'page' : 'pages'} could not be opened.`,\n deleteUnreadable: 'Delete',\n confirmDeleteUnreadable: (count) =>\n `Delete the ${count === 1 ? 'page' : `${count} pages`} that could not be opened?`,\n}\n"],
|
|
5
|
+
"mappings": ";AA8DO,MAAM,4BAA6C;AAAA,EACxD,OAAO;AAAA,EACP,aACE;AAAA,EACF,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AAAA,EACV,OAAO;AAAA,EACP,kBACE;AAAA,EACF,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ,CAAC,UAAU,GAAG,KAAK,IAAI,UAAU,IAAI,UAAU,QAAQ;AAAA,EAC/D,MAAM;AAAA,EACN,MAAM;AAAA,EACN,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,QAAQ;AAAA,EACR,eAAe,CAAC,UAAU,yBAAoB,KAAK;AAAA,EACnD,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,iBAAiB;AAAA,EACjB,UAAU;AAAA,EACV,OAAO;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,IACP,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,WAAW;AAAA,EACX,aAAa;AAAA,EACb,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,cAAc,CAAC,UACb,eAAU,KAAK;AAAA,EACjB,aAAa;AAAA,EACb,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,YAAY,CAAC,UAAU,GAAG,KAAK,UAAU,UAAU,IAAI,SAAS,OAAO;AAAA,EACvE,kBAAkB;AAAA,EAClB,yBAAyB,CAAC,UACxB,cAAc,UAAU,IAAI,SAAS,GAAG,KAAK,QAAQ;AACzD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/embed/index.cjs
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkY2Z5UHHV_cjs = require('../chunk-Y2Z5UHHV.cjs');
|
|
5
5
|
require('../chunk-6P4U63HO.cjs');
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-6ZZWQ3OL.cjs');
|
|
7
|
+
require('../chunk-MAKCWF45.cjs');
|
|
8
8
|
require('../chunk-TJY7XPDE.cjs');
|
|
9
9
|
require('../chunk-XNW62J54.cjs');
|
|
10
10
|
require('../chunk-7UPEFZCV.cjs');
|
|
11
11
|
require('../chunk-V27WLYTG.cjs');
|
|
12
12
|
require('../chunk-CYWOL2LS.cjs');
|
|
13
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-4XNP27N4.cjs');
|
|
14
14
|
require('../chunk-AHUEBRLX.cjs');
|
|
15
15
|
require('../chunk-HYUKPHCT.cjs');
|
|
16
|
-
require('../chunk-
|
|
16
|
+
require('../chunk-JWCVA4LC.cjs');
|
|
17
|
+
require('../chunk-JCFXS336.cjs');
|
|
17
18
|
require('../chunk-223D4727.cjs');
|
|
18
19
|
require('../chunk-SNUBQMIS.cjs');
|
|
19
|
-
require('../chunk-JWCVA4LC.cjs');
|
|
20
|
-
require('../chunk-T3Y3LZ4Y.cjs');
|
|
21
20
|
require('../chunk-5GBM7BQB.cjs');
|
|
22
21
|
require('../chunk-UD3LPATQ.cjs');
|
|
23
22
|
require('../chunk-QQMMCXBP.cjs');
|
|
@@ -29,8 +28,8 @@ require('../chunk-DYIZ7W4P.cjs');
|
|
|
29
28
|
require('../chunk-WQMR3O2D.cjs');
|
|
30
29
|
require('../chunk-NZNBJF3M.cjs');
|
|
31
30
|
require('../chunk-NWNVWO6L.cjs');
|
|
32
|
-
require('../chunk-SK6HQ46Q.cjs');
|
|
33
31
|
require('../chunk-WRTEKOQP.cjs');
|
|
32
|
+
require('../chunk-SK6HQ46Q.cjs');
|
|
34
33
|
require('../chunk-EKFA2OS3.cjs');
|
|
35
34
|
require('../chunk-WCT6FT2K.cjs');
|
|
36
35
|
require('../chunk-OEJQFPWO.cjs');
|
|
@@ -43,10 +42,10 @@ require('../chunk-S237ORM3.cjs');
|
|
|
43
42
|
require('../chunk-II2OEXHW.cjs');
|
|
44
43
|
require('../chunk-3YEXZX4H.cjs');
|
|
45
44
|
require('../chunk-4PA6VCCR.cjs');
|
|
46
|
-
require('../chunk-RL2HI6NP.cjs');
|
|
47
|
-
require('../chunk-6UZC4XVV.cjs');
|
|
48
45
|
require('../chunk-G3MRW4WB.cjs');
|
|
49
46
|
require('../chunk-AHDJXIUB.cjs');
|
|
47
|
+
require('../chunk-RL2HI6NP.cjs');
|
|
48
|
+
require('../chunk-6UZC4XVV.cjs');
|
|
50
49
|
require('../chunk-SLCH5JRI.cjs');
|
|
51
50
|
require('../chunk-DKY67DA6.cjs');
|
|
52
51
|
require('../chunk-YA6GXWC2.cjs');
|
|
@@ -90,27 +89,27 @@ require('../chunk-PLIF5CUV.cjs');
|
|
|
90
89
|
|
|
91
90
|
Object.defineProperty(exports, "ArbiChat", {
|
|
92
91
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkY2Z5UHHV_cjs.ArbiChat; }
|
|
94
93
|
});
|
|
95
94
|
Object.defineProperty(exports, "ConnectedCompactLogin", {
|
|
96
95
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkY2Z5UHHV_cjs.ConnectedCompactLogin; }
|
|
98
97
|
});
|
|
99
98
|
Object.defineProperty(exports, "ConnectedEmbeddedChat", {
|
|
100
99
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkY2Z5UHHV_cjs.ConnectedEmbeddedChat; }
|
|
102
101
|
});
|
|
103
102
|
Object.defineProperty(exports, "ConnectedLoginPage", {
|
|
104
103
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkY2Z5UHHV_cjs.ConnectedLoginPage; }
|
|
106
105
|
});
|
|
107
106
|
Object.defineProperty(exports, "EmbeddedChatPanel", {
|
|
108
107
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkY2Z5UHHV_cjs.EmbeddedChatPanel; }
|
|
110
109
|
});
|
|
111
110
|
Object.defineProperty(exports, "defaultHost", {
|
|
112
111
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkY2Z5UHHV_cjs.defaultHost; }
|
|
114
113
|
});
|
|
115
114
|
Object.defineProperty(exports, "useConnection", {
|
|
116
115
|
enumerable: true,
|