@arbidocs/blocks 0.5.154 → 0.5.156
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 → ConnectedNativeDocxComparison-G3AIBKSN.cjs} +8 -8
- package/dist/{ConnectedNativeDocxComparison-2DAQX5GX.cjs.map → ConnectedNativeDocxComparison-G3AIBKSN.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-LTYB62VM.cjs → ConnectedStreamedWordArtifact-ISNLUTAT.cjs} +8 -8
- package/dist/{ConnectedStreamedWordArtifact-LTYB62VM.cjs.map → ConnectedStreamedWordArtifact-ISNLUTAT.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-ILDLYZ5A.cjs → DocumentReviewCard-7ZH575KX.cjs} +14 -15
- package/dist/DocumentReviewCard-7ZH575KX.cjs.map +1 -0
- package/dist/{FilesViewerDialog-YLD5YFP2.cjs → FilesViewerDialog-6RWJSZZV.cjs} +14 -15
- package/dist/FilesViewerDialog-6RWJSZZV.cjs.map +1 -0
- package/dist/{WorkspaceTableView-V3N64LJG.cjs → WorkspaceTableView-NMERZJZZ.cjs} +5 -5
- package/dist/{WorkspaceTableView-V3N64LJG.cjs.map → WorkspaceTableView-NMERZJZZ.cjs.map} +1 -1
- package/dist/agents/index.cjs +173 -173
- package/dist/{chunk-NRGLF4J4.cjs → chunk-44M4FI2N.cjs} +472 -8
- package/dist/chunk-44M4FI2N.cjs.map +1 -0
- package/dist/{chunk-KWWGUQJV.cjs → chunk-4I4IYVC6.cjs} +7 -7
- package/dist/{chunk-KWWGUQJV.cjs.map → chunk-4I4IYVC6.cjs.map} +1 -1
- package/dist/{chunk-BTQ7IAOH.cjs → chunk-B2L3XNZH.cjs} +4 -4
- package/dist/{chunk-BTQ7IAOH.cjs.map → chunk-B2L3XNZH.cjs.map} +1 -1
- package/dist/{chunk-T7BUGVSG.cjs → chunk-BNHFDXJI.cjs} +36 -36
- package/dist/{chunk-T7BUGVSG.cjs.map → chunk-BNHFDXJI.cjs.map} +1 -1
- package/dist/{chunk-BNDIMTWJ.cjs → chunk-DCD4OHDF.cjs} +28 -28
- package/dist/{chunk-BNDIMTWJ.cjs.map → chunk-DCD4OHDF.cjs.map} +1 -1
- package/dist/{chunk-YXY52OGU.cjs → chunk-FNBUFKHE.cjs} +4 -4
- package/dist/{chunk-YXY52OGU.cjs.map → chunk-FNBUFKHE.cjs.map} +1 -1
- package/dist/{chunk-AURL2KT5.cjs → chunk-HGD4B7GO.cjs} +4 -4
- package/dist/{chunk-AURL2KT5.cjs.map → chunk-HGD4B7GO.cjs.map} +1 -1
- package/dist/{chunk-CNBYM5Q7.cjs → chunk-HJHDKS4V.cjs} +5 -5
- package/dist/{chunk-CNBYM5Q7.cjs.map → chunk-HJHDKS4V.cjs.map} +1 -1
- package/dist/{chunk-ZW2ZFC3Q.cjs → chunk-HLUZMXEZ.cjs} +56 -56
- package/dist/{chunk-ZW2ZFC3Q.cjs.map → chunk-HLUZMXEZ.cjs.map} +1 -1
- package/dist/{chunk-BZVK7JW5.cjs → chunk-K7GBHLLY.cjs} +4 -4
- package/dist/{chunk-BZVK7JW5.cjs.map → chunk-K7GBHLLY.cjs.map} +1 -1
- package/dist/{chunk-6GKCGCMT.cjs → chunk-M24FBUAP.cjs} +4 -4
- package/dist/{chunk-6GKCGCMT.cjs.map → chunk-M24FBUAP.cjs.map} +1 -1
- package/dist/{chunk-GYI4UXX6.cjs → chunk-PD47L6KS.cjs} +4 -4
- package/dist/{chunk-GYI4UXX6.cjs.map → chunk-PD47L6KS.cjs.map} +1 -1
- package/dist/{chunk-OOANNOH4.cjs → chunk-PTT5MZ7O.cjs} +9 -9
- package/dist/{chunk-OOANNOH4.cjs.map → chunk-PTT5MZ7O.cjs.map} +1 -1
- package/dist/{chunk-TSAZWUPZ.cjs → chunk-Q7G2W5VQ.cjs} +4 -4
- package/dist/{chunk-TSAZWUPZ.cjs.map → chunk-Q7G2W5VQ.cjs.map} +1 -1
- package/dist/{chunk-RL2HI6NP.cjs → chunk-S3GVFAFB.cjs} +3 -3
- package/dist/{chunk-RL2HI6NP.cjs.map → chunk-S3GVFAFB.cjs.map} +1 -1
- package/dist/{chunk-O7U6KL2W.cjs → chunk-U6JUIJTP.cjs} +10 -10
- package/dist/{chunk-O7U6KL2W.cjs.map → chunk-U6JUIJTP.cjs.map} +1 -1
- package/dist/{chunk-I3XTTTPZ.cjs → chunk-V4B2GSC6.cjs} +29 -29
- package/dist/{chunk-I3XTTTPZ.cjs.map → chunk-V4B2GSC6.cjs.map} +1 -1
- package/dist/{chunk-TN3UP3CI.cjs → chunk-YHXJWYOF.cjs} +6 -6
- package/dist/{chunk-TN3UP3CI.cjs.map → chunk-YHXJWYOF.cjs.map} +1 -1
- package/dist/{chunk-FEAHTNTY.cjs → chunk-YO7GDNEW.cjs} +91 -5
- package/dist/chunk-YO7GDNEW.cjs.map +1 -0
- package/dist/connect/docx.cjs +11 -11
- package/dist/connect/index.cjs +722 -769
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +12 -13
- 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/files/page/ConnectedFilesPage.js +16 -13
- package/dist/connection/files/page/ConnectedFilesPage.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/DocumentBlocks.js +1 -1
- package/dist/connection/pages/DocumentBlocks.js.map +2 -2
- package/dist/connection/pages/EditablePageGrid.js +44 -13
- package/dist/connection/pages/EditablePageGrid.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/connection/storage/ConnectedWorkspaceTrash.d.ts +5 -4
- package/dist/connection/storage/ConnectedWorkspaceTrash.js +1 -1
- package/dist/connection/storage/ConnectedWorkspaceTrash.js.map +2 -2
- package/dist/embed/index.cjs +15 -16
- package/dist/facts/index.cjs +43 -43
- package/dist/files/FilesPage.d.ts +4 -1
- package/dist/files/FilesPage.js +1 -1
- package/dist/files/FilesPage.js.map +2 -2
- package/dist/files/SelectionBar.js +1 -1
- package/dist/files/SelectionBar.js.map +2 -2
- package/dist/files/index.cjs +253 -254
- package/dist/index.cjs +238 -238
- package/dist/pages/index.cjs +291 -38
- package/dist/pages/index.cjs.map +1 -1
- package/dist/settings/index.cjs +9 -9
- package/dist/shell/index.cjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +25 -26
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/blocks.css +18 -0
- 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/storage/ConnectedWorkspaceTrash.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * ConnectedWorkspaceTrash: one workspace's Recently deleted, as RLS lets the viewer see it.\n *\n * Everyone sees only the deleted documents they could see live (shared ones and their own) and may restore\n * or delete their own. A workspace manager (the project's owner, or the workspace's owner) may restore or\n * delete any listed document and Empty trash for the whole workspace; other members' private deleted\n * documents are never listed to them, only counted, and go only when they tick the opt-in. Anyone else's\n * Empty trash removes just their own deleted documents.\n *\n * Delete permanently and Empty trash look done at once: the dialog closes and the documents leave the list\n * before the server answers (the button shows Emptying\u2026 meanwhile); if it refuses, they come back.\n */\n\nimport { useState } from 'react'\nimport { Loader2, Lock, RotateCcw, Trash2 } from 'lucide-react'\nimport { Button, Checkbox, formatFriendlyDate } from '@arbidocs/react/ui'\nimport { ConfirmDialog } from '../../provider/dialogs'\nimport {\n useHideFromWorkspaceTrash,\n useInvalidateStorage,\n useStorageActions,\n useWorkspaceTrash,\n type DeletedDocument,\n} from '@arbidocs/react'\nimport { useBlocksEnvironment } from '../../provider/environment'\nimport { formatBytes, RECENTLY_DELETED_NOTE } from './storage-labels'\n\ntype Pending = { kind: 'purge'; doc: DeletedDocument } | { kind: 'empty' }\n\nexport interface ConnectedWorkspaceTrashProps {\n workspaceExtId: string\n /** Shown above the list (e.g. the workspace's name on the project's Storage). */\n title?: string\n testId?: string\n}\n\nexport function ConnectedWorkspaceTrash({\n workspaceExtId,\n title,\n testId = 'workspace-trash',\n}: ConnectedWorkspaceTrashProps) {\n const trash = useWorkspaceTrash(workspaceExtId)\n const invalidate = useInvalidateStorage()\n const hide = useHideFromWorkspaceTrash()\n const { purgeDeletedDocuments, restoreDocuments } = useStorageActions()\n const { notify } = useBlocksEnvironment()\n const [pending, setPending] = useState<Pending | null>(null)\n const [includeOthers, setIncludeOthers] = useState(false)\n const [busy, setBusy] = useState(false)\n // Delete permanently / Empty trash on its way (the dialog has closed, the documents are off the list).\n const [removing, setRemoving] = useState<Pending['kind'] | null>(null)\n\n const page = trash.data\n const items = page?.items ?? []\n const manager = page?.can_manage ?? false\n const others = page?.others_private\n const othersCount = others?.count ?? 0\n // What Empty trash removes without the opt-in: everything listed for a manager, the viewer's own otherwise.\n // Documents being restored are on their way back, not in the trash any more.\n const removable = items.filter((d) => !d.restoring)\n const emptiable = manager ? removable : removable.filter((d) => d.mine)\n const emptiableBytes = emptiable.reduce((sum, d) => sum + d.bytes, 0)\n\n // The refetch after an action is not waited for: the action's own answer is what the viewer waits on.\n const run = async (action: () => Promise<string>, failure: string, undo?: () => void) => {\n setBusy(true)\n try {\n notify(await action(), 'success')\n void invalidate()\n } catch (error) {\n undo?.()\n notify(error instanceof Error ? error.message : failure, 'error')\n } finally {\n setBusy(false)\n setRemoving(null)\n setPending(null)\n setIncludeOthers(false)\n }\n }\n\n const restore = (doc: DeletedDocument) =>\n run(async () => {\n await restoreDocuments(workspaceExtId, [doc.external_id])\n return 'Restoring. It reappears in the workspace when its files are back.'\n }, 'Could not restore')\n\n const confirm = () => {\n if (!pending) return\n // Off the list and the dialog closed now; back on the list if the server refuses.\n const withOthers = pending.kind === 'empty' && manager && includeOthers\n const undo = hide(\n workspaceExtId,\n pending.kind === 'purge' ? [pending.doc.external_id] : emptiable.map((d) => d.external_id),\n withOthers\n )\n setRemoving(pending.kind)\n setPending(null)\n if (pending.kind === 'purge') {\n void run(\n async () => {\n await purgeDeletedDocuments(workspaceExtId, { externalIds: [pending.doc.external_id] })\n return `Deleted permanently \u00B7 ${formatBytes(pending.doc.bytes)} freed`\n },\n 'Could not delete permanently',\n undo\n )\n return\n }\n const freed = emptiableBytes + (withOthers ? (others?.bytes ?? 0) : 0)\n void run(\n async () => {\n const removed = await purgeDeletedDocuments(workspaceExtId, {\n includeOthersPrivate: withOthers,\n })\n return `Trash emptied \u00B7 ${removed.length} ${removed.length === 1 ? 'item' : 'items'} \u00B7 ${formatBytes(freed)} freed`\n },\n 'Could not empty the trash',\n undo\n )\n }\n\n const nothingToEmpty = emptiable.length === 0 && !(manager && othersCount > 0)\n\n return (\n <section className=\"space-y-2\" data-testid={testId}>\n <div className=\"flex flex-wrap items-center justify-between gap-3\">\n <div className=\"min-w-0\">\n {title && <h4 className=\"truncate text-sm font-medium text-foreground\">{title}</h4>}\n <p className=\"text-xs text-muted-foreground\">\n {manager\n ? RECENTLY_DELETED_NOTE\n : `${RECENTLY_DELETED_NOTE} You can remove your own deleted items.`}\n </p>\n </div>\n <Button\n size=\"sm\"\n variant=\"outline\"\n disabled={busy || trash.isLoading || nothingToEmpty}\n onClick={() => setPending({ kind: 'empty' })}\n data-testid={`${testId}-empty`}\n >\n {removing === 'empty' ? (\n <>\n <Loader2 className=\"mr-1.5 size-4 animate-spin\" aria-hidden=\"true\" />\n Emptying\u2026\n </>\n ) : (\n <>\n <Trash2 className=\"mr-1.5 size-4\" />\n {manager ? 'Empty trash' : 'Empty my trash'}\n </>\n )}\n </Button>\n </div>\n\n {trash.isLoading ? (\n <p className=\"text-sm text-muted-foreground\">Loading\u2026</p>\n ) : trash.isError ? (\n <p className=\"text-sm text-muted-foreground\" data-testid={`${testId}-error`}>\n {trash.error instanceof Error ? trash.error.message : 'Could not load Recently deleted'}\n </p>\n ) : (\n <ul className=\"divide-y divide-border rounded-md border border-border\">\n {items.length === 0 && (\n <li\n className=\"px-3 py-3 text-sm text-muted-foreground\"\n data-testid={`${testId}-empty-state`}\n >\n Nothing in Recently deleted\n </li>\n )}\n {items.map((doc) => (\n <li\n key={doc.external_id}\n className=\"flex items-center justify-between gap-3 px-3 py-2 text-sm\"\n data-testid={`${testId}-row-${doc.external_id}`}\n >\n <span className=\"min-w-0 truncate\">\n <span className=\"font-medium text-foreground\">{doc.file_name || 'Untitled'}</span>\n <span className=\"text-muted-foreground\">\n {' '}\n \u00B7 deleted {formatFriendlyDate(doc.deleted_at)} \u00B7 {formatBytes(doc.bytes)}\n </span>\n </span>\n {doc.restoring ? (\n <span\n className=\"inline-flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground\"\n data-testid={`${testId}-restoring-${doc.external_id}`}\n >\n <Loader2 className=\"size-4 animate-spin\" aria-hidden=\"true\" />\n Restoring\u2026\n </span>\n ) : (\n <span className=\"flex shrink-0 gap-1\">\n {doc.can_restore && (\n <Button\n size=\"sm\"\n variant=\"ghost\"\n disabled={busy}\n onClick={() => void restore(doc)}\n data-testid={`${testId}-restore-${doc.external_id}`}\n >\n <RotateCcw className=\"mr-1.5 size-4\" />\n Restore\n </Button>\n )}\n {doc.can_delete && (\n <Button\n size=\"sm\"\n variant=\"ghost\"\n disabled={busy}\n onClick={() => setPending({ kind: 'purge', doc })}\n data-testid={`${testId}-delete-${doc.external_id}`}\n >\n Delete permanently\n </Button>\n )}\n </span>\n )}\n </li>\n ))}\n {manager && othersCount > 0 && (\n <li\n className=\"flex items-center gap-2 px-3 py-2 text-sm text-muted-foreground\"\n data-testid={`${testId}-others-private`}\n >\n <Lock className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n {othersCount} private {othersCount === 1 ? 'item' : 'items'} of other members \u00B7{' '}\n {formatBytes(others?.bytes ?? 0)}\n </li>\n )}\n </ul>\n )}\n\n <ConfirmDialog\n isOpen={pending !== null}\n onClose={() => {\n setPending(null)\n setIncludeOthers(false)\n }}\n onConfirm={confirm}\n isLoading={busy}\n title={pending?.kind === 'purge' ? 'Delete permanently?' : 'Empty trash?'}\n description={\n pending?.kind === 'purge'\n ? `${pending.doc.file_name || 'It'} is removed for good now and stops using storage. This cannot be undone.`\n : manager\n ? `${emptiable.length} deleted ${emptiable.length === 1 ? 'item' : 'items'} you can see (${formatBytes(emptiableBytes)}) ${emptiable.length === 1 ? 'is' : 'are'} removed for good now and stop using storage. This cannot be undone.`\n : `Your ${emptiable.length} deleted ${emptiable.length === 1 ? 'item' : 'items'} in this workspace (${formatBytes(emptiableBytes)}) ${emptiable.length === 1 ? 'is' : 'are'} removed for good now. This cannot be undone.`\n }\n confirmText={pending?.kind === 'purge' ? 'Delete permanently' : 'Empty'}\n testId={`${testId}-confirm`}\n >\n {pending?.kind === 'empty' && manager && othersCount > 0 && (\n <label\n className=\"flex items-start gap-2 text-sm text-foreground\"\n data-testid={`${testId}-include-others`}\n >\n <Checkbox\n checked={includeOthers}\n onCheckedChange={(checked) => setIncludeOthers(checked === true)}\n aria-label=\"Also delete other members' private items\"\n />\n <span>\n Also delete {othersCount} private {othersCount === 1 ? 'item' : 'items'} of other\n members ({formatBytes(others?.bytes ?? 0)})\n <span className=\"block text-xs text-muted-foreground\">\n {\n \"You can't see these. Left alone, their owners can still restore them until they're removed automatically.\"\n }\n </span>\n </span>\n </label>\n )}\n </ConfirmDialog>\n </section>\n )\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/**\n * ConnectedWorkspaceTrash: one workspace's Recently deleted, as RLS lets the viewer see it.\n *\n * Everyone sees only the deleted documents they could see live (shared ones and their own) and may restore\n * or delete their own private ones (sharing is one-way: a shared document is the workspace's, even its\n * creator's). A workspace manager may restore or delete any listed document and Empty trash for the whole\n * workspace; other members' private deleted documents are never listed to them, only counted, and go only\n * when they tick the opt-in. Anyone else's Empty trash removes just their own private deleted documents.\n * What each viewer may do is the server's `can_restore` / `can_delete`.\n *\n * Delete permanently and Empty trash look done at once: the dialog closes and the documents leave the list\n * before the server answers (the button shows Emptying\u2026 meanwhile); if it refuses, they come back.\n */\n\nimport { useState } from 'react'\nimport { Loader2, Lock, RotateCcw, Trash2 } from 'lucide-react'\nimport { Button, Checkbox, formatFriendlyDate } from '@arbidocs/react/ui'\nimport { ConfirmDialog } from '../../provider/dialogs'\nimport {\n useHideFromWorkspaceTrash,\n useInvalidateStorage,\n useStorageActions,\n useWorkspaceTrash,\n type DeletedDocument,\n} from '@arbidocs/react'\nimport { useBlocksEnvironment } from '../../provider/environment'\nimport { formatBytes, RECENTLY_DELETED_NOTE } from './storage-labels'\n\ntype Pending = { kind: 'purge'; doc: DeletedDocument } | { kind: 'empty' }\n\nexport interface ConnectedWorkspaceTrashProps {\n workspaceExtId: string\n /** Shown above the list (e.g. the workspace's name on the project's Storage). */\n title?: string\n testId?: string\n}\n\nexport function ConnectedWorkspaceTrash({\n workspaceExtId,\n title,\n testId = 'workspace-trash',\n}: ConnectedWorkspaceTrashProps) {\n const trash = useWorkspaceTrash(workspaceExtId)\n const invalidate = useInvalidateStorage()\n const hide = useHideFromWorkspaceTrash()\n const { purgeDeletedDocuments, restoreDocuments } = useStorageActions()\n const { notify } = useBlocksEnvironment()\n const [pending, setPending] = useState<Pending | null>(null)\n const [includeOthers, setIncludeOthers] = useState(false)\n const [busy, setBusy] = useState(false)\n // Delete permanently / Empty trash on its way (the dialog has closed, the documents are off the list).\n const [removing, setRemoving] = useState<Pending['kind'] | null>(null)\n\n const page = trash.data\n const items = page?.items ?? []\n const manager = page?.can_manage ?? false\n const others = page?.others_private\n const othersCount = others?.count ?? 0\n // What Empty trash removes without the opt-in: everything listed for a manager, otherwise what the viewer\n // may delete: their own private documents (a shared one is the workspace's, even their own).\n // Documents being restored are on their way back, not in the trash any more.\n const removable = items.filter((d) => !d.restoring)\n const emptiable = manager ? removable : removable.filter((d) => d.can_delete)\n const emptiableBytes = emptiable.reduce((sum, d) => sum + d.bytes, 0)\n\n // The refetch after an action is not waited for: the action's own answer is what the viewer waits on.\n const run = async (action: () => Promise<string>, failure: string, undo?: () => void) => {\n setBusy(true)\n try {\n notify(await action(), 'success')\n void invalidate()\n } catch (error) {\n undo?.()\n notify(error instanceof Error ? error.message : failure, 'error')\n } finally {\n setBusy(false)\n setRemoving(null)\n setPending(null)\n setIncludeOthers(false)\n }\n }\n\n const restore = (doc: DeletedDocument) =>\n run(async () => {\n await restoreDocuments(workspaceExtId, [doc.external_id])\n return 'Restoring. It reappears in the workspace when its files are back.'\n }, 'Could not restore')\n\n const confirm = () => {\n if (!pending) return\n // Off the list and the dialog closed now; back on the list if the server refuses.\n const withOthers = pending.kind === 'empty' && manager && includeOthers\n const undo = hide(\n workspaceExtId,\n pending.kind === 'purge' ? [pending.doc.external_id] : emptiable.map((d) => d.external_id),\n withOthers\n )\n setRemoving(pending.kind)\n setPending(null)\n if (pending.kind === 'purge') {\n void run(\n async () => {\n await purgeDeletedDocuments(workspaceExtId, { externalIds: [pending.doc.external_id] })\n return `Deleted permanently \u00B7 ${formatBytes(pending.doc.bytes)} freed`\n },\n 'Could not delete permanently',\n undo\n )\n return\n }\n const freed = emptiableBytes + (withOthers ? (others?.bytes ?? 0) : 0)\n void run(\n async () => {\n const removed = await purgeDeletedDocuments(workspaceExtId, {\n includeOthersPrivate: withOthers,\n })\n return `Trash emptied \u00B7 ${removed.length} ${removed.length === 1 ? 'item' : 'items'} \u00B7 ${formatBytes(freed)} freed`\n },\n 'Could not empty the trash',\n undo\n )\n }\n\n const nothingToEmpty = emptiable.length === 0 && !(manager && othersCount > 0)\n\n return (\n <section className=\"space-y-2\" data-testid={testId}>\n <div className=\"flex flex-wrap items-center justify-between gap-3\">\n <div className=\"min-w-0\">\n {title && <h4 className=\"truncate text-sm font-medium text-foreground\">{title}</h4>}\n <p className=\"text-xs text-muted-foreground\">\n {manager\n ? RECENTLY_DELETED_NOTE\n : `${RECENTLY_DELETED_NOTE} You can remove your own deleted items.`}\n </p>\n </div>\n <Button\n size=\"sm\"\n variant=\"outline\"\n disabled={busy || trash.isLoading || nothingToEmpty}\n onClick={() => setPending({ kind: 'empty' })}\n data-testid={`${testId}-empty`}\n >\n {removing === 'empty' ? (\n <>\n <Loader2 className=\"mr-1.5 size-4 animate-spin\" aria-hidden=\"true\" />\n Emptying\u2026\n </>\n ) : (\n <>\n <Trash2 className=\"mr-1.5 size-4\" />\n {manager ? 'Empty trash' : 'Empty my trash'}\n </>\n )}\n </Button>\n </div>\n\n {trash.isLoading ? (\n <p className=\"text-sm text-muted-foreground\">Loading\u2026</p>\n ) : trash.isError ? (\n <p className=\"text-sm text-muted-foreground\" data-testid={`${testId}-error`}>\n {trash.error instanceof Error ? trash.error.message : 'Could not load Recently deleted'}\n </p>\n ) : (\n <ul className=\"divide-y divide-border rounded-md border border-border\">\n {items.length === 0 && (\n <li\n className=\"px-3 py-3 text-sm text-muted-foreground\"\n data-testid={`${testId}-empty-state`}\n >\n Nothing in Recently deleted\n </li>\n )}\n {items.map((doc) => (\n <li\n key={doc.external_id}\n className=\"flex items-center justify-between gap-3 px-3 py-2 text-sm\"\n data-testid={`${testId}-row-${doc.external_id}`}\n >\n <span className=\"min-w-0 truncate\">\n <span className=\"font-medium text-foreground\">{doc.file_name || 'Untitled'}</span>\n <span className=\"text-muted-foreground\">\n {' '}\n \u00B7 deleted {formatFriendlyDate(doc.deleted_at)} \u00B7 {formatBytes(doc.bytes)}\n </span>\n </span>\n {doc.restoring ? (\n <span\n className=\"inline-flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground\"\n data-testid={`${testId}-restoring-${doc.external_id}`}\n >\n <Loader2 className=\"size-4 animate-spin\" aria-hidden=\"true\" />\n Restoring\u2026\n </span>\n ) : (\n <span className=\"flex shrink-0 gap-1\">\n {doc.can_restore && (\n <Button\n size=\"sm\"\n variant=\"ghost\"\n disabled={busy}\n onClick={() => void restore(doc)}\n data-testid={`${testId}-restore-${doc.external_id}`}\n >\n <RotateCcw className=\"mr-1.5 size-4\" />\n Restore\n </Button>\n )}\n {doc.can_delete && (\n <Button\n size=\"sm\"\n variant=\"ghost\"\n disabled={busy}\n onClick={() => setPending({ kind: 'purge', doc })}\n data-testid={`${testId}-delete-${doc.external_id}`}\n >\n Delete permanently\n </Button>\n )}\n </span>\n )}\n </li>\n ))}\n {manager && othersCount > 0 && (\n <li\n className=\"flex items-center gap-2 px-3 py-2 text-sm text-muted-foreground\"\n data-testid={`${testId}-others-private`}\n >\n <Lock className=\"size-4 shrink-0\" aria-hidden=\"true\" />\n {othersCount} private {othersCount === 1 ? 'item' : 'items'} of other members \u00B7{' '}\n {formatBytes(others?.bytes ?? 0)}\n </li>\n )}\n </ul>\n )}\n\n <ConfirmDialog\n isOpen={pending !== null}\n onClose={() => {\n setPending(null)\n setIncludeOthers(false)\n }}\n onConfirm={confirm}\n isLoading={busy}\n title={pending?.kind === 'purge' ? 'Delete permanently?' : 'Empty trash?'}\n description={\n pending?.kind === 'purge'\n ? `${pending.doc.file_name || 'It'} is removed for good now and stops using storage. This cannot be undone.`\n : manager\n ? `${emptiable.length} deleted ${emptiable.length === 1 ? 'item' : 'items'} you can see (${formatBytes(emptiableBytes)}) ${emptiable.length === 1 ? 'is' : 'are'} removed for good now and stop using storage. This cannot be undone.`\n : `Your ${emptiable.length} deleted ${emptiable.length === 1 ? 'item' : 'items'} in this workspace (${formatBytes(emptiableBytes)}) ${emptiable.length === 1 ? 'is' : 'are'} removed for good now. This cannot be undone.`\n }\n confirmText={pending?.kind === 'purge' ? 'Delete permanently' : 'Empty'}\n testId={`${testId}-confirm`}\n >\n {pending?.kind === 'empty' && manager && othersCount > 0 && (\n <label\n className=\"flex items-start gap-2 text-sm text-foreground\"\n data-testid={`${testId}-include-others`}\n >\n <Checkbox\n checked={includeOthers}\n onCheckedChange={(checked) => setIncludeOthers(checked === true)}\n aria-label=\"Also delete other members' private items\"\n />\n <span>\n Also delete {othersCount} private {othersCount === 1 ? 'item' : 'items'} of other\n members ({formatBytes(others?.bytes ?? 0)})\n <span className=\"block text-xs text-muted-foreground\">\n {\n \"You can't see these. Left alone, their owners can still restore them until they're removed automatically.\"\n }\n </span>\n </span>\n </label>\n )}\n </ConfirmDialog>\n </section>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAgIQ,SAgBI,UAfQ,KADZ;AAlHR,SAAS,gBAAgB;AACzB,SAAS,SAAS,MAAM,WAAW,cAAc;AACjD,SAAS,QAAQ,UAAU,0BAA0B;AACrD,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,4BAA4B;AACrC,SAAS,aAAa,6BAA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AAU,MAAM,YAAY,UAAU,WAAW,IAAI,SAAS,OAAO,iBAAiB,YAAY,cAAc,CAAC,KAAK,UAAU,WAAW,IAAI,OAAO,KAAK,yEAC9J,QAAQ,UAAU,MAAM,YAAY,UAAU,WAAW,IAAI,SAAS,OAAO,uBAAuB,YAAY,cAAc,CAAC,KAAK,UAAU,WAAW,IAAI,OAAO,KAAK;AAAA,QAEjL,aAAa,SAAS,SAAS,UAAU,uBAAuB;AAAA,QAChE,QAAQ,GAAG,MAAM;AAAA,QAEhB,mBAAS,SAAS,WAAW,WAAW,cAAc,KACrD;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YACV,eAAa,GAAG,MAAM;AAAA,YAEtB;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAS;AAAA,kBACT,iBAAiB,CAAC,YAAY,iBAAiB,YAAY,IAAI;AAAA,kBAC/D,cAAW;AAAA;AAAA,cACb;AAAA,cACA,qBAAC,UAAK;AAAA;AAAA,gBACS;AAAA,gBAAY;AAAA,gBAAU,gBAAgB,IAAI,SAAS;AAAA,gBAAQ;AAAA,gBAC9D,YAAY,QAAQ,SAAS,CAAC;AAAA,gBAAE;AAAA,gBAC1C,oBAAC,UAAK,WAAU,uCAEZ,uHAEJ;AAAA,iBACF;AAAA;AAAA;AAAA,QACF;AAAA;AAAA,IAEJ;AAAA,KACF;AAEJ;",
|
|
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 chunkPTT5MZ7O_cjs = require('../chunk-PTT5MZ7O.cjs');
|
|
5
5
|
require('../chunk-6P4U63HO.cjs');
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-FNBUFKHE.cjs');
|
|
7
|
+
require('../chunk-M24FBUAP.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-BNHFDXJI.cjs');
|
|
14
14
|
require('../chunk-AHUEBRLX.cjs');
|
|
15
15
|
require('../chunk-HYUKPHCT.cjs');
|
|
16
|
-
require('../chunk-
|
|
16
|
+
require('../chunk-JWCVA4LC.cjs');
|
|
17
|
+
require('../chunk-44M4FI2N.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-S3GVFAFB.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 chunkPTT5MZ7O_cjs.ArbiChat; }
|
|
94
93
|
});
|
|
95
94
|
Object.defineProperty(exports, "ConnectedCompactLogin", {
|
|
96
95
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedCompactLogin; }
|
|
98
97
|
});
|
|
99
98
|
Object.defineProperty(exports, "ConnectedEmbeddedChat", {
|
|
100
99
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedEmbeddedChat; }
|
|
102
101
|
});
|
|
103
102
|
Object.defineProperty(exports, "ConnectedLoginPage", {
|
|
104
103
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedLoginPage; }
|
|
106
105
|
});
|
|
107
106
|
Object.defineProperty(exports, "EmbeddedChatPanel", {
|
|
108
107
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkPTT5MZ7O_cjs.EmbeddedChatPanel; }
|
|
110
109
|
});
|
|
111
110
|
Object.defineProperty(exports, "defaultHost", {
|
|
112
111
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkPTT5MZ7O_cjs.defaultHost; }
|
|
114
113
|
});
|
|
115
114
|
Object.defineProperty(exports, "useConnection", {
|
|
116
115
|
enumerable: true,
|
package/dist/facts/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkYHXJWYOF_cjs = require('../chunk-YHXJWYOF.cjs');
|
|
5
5
|
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
|
|
6
6
|
var chunkDDWLMYRO_cjs = require('../chunk-DDWLMYRO.cjs');
|
|
7
7
|
require('../chunk-SNUBQMIS.cjs');
|
|
8
8
|
require('../chunk-6XKQAQWF.cjs');
|
|
9
9
|
require('../chunk-ADMNU2CR.cjs');
|
|
10
10
|
var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
|
|
11
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-S3GVFAFB.cjs');
|
|
12
12
|
require('../chunk-6UZC4XVV.cjs');
|
|
13
13
|
require('../chunk-QUMUAJ2P.cjs');
|
|
14
14
|
require('../chunk-SJSGSHIT.cjs');
|
|
@@ -42,167 +42,167 @@ function toFactRows(records) {
|
|
|
42
42
|
|
|
43
43
|
Object.defineProperty(exports, "DEFAULT_FACTS_BULK_BAR_LABELS", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACTS_BULK_BAR_LABELS; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "DEFAULT_FACTS_EMPTY_STATE_LABELS", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACTS_EMPTY_STATE_LABELS; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "DEFAULT_FACTS_FIELDS_BUTTON_LABELS", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACTS_FIELDS_BUTTON_LABELS; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "DEFAULT_FACTS_TOOLBAR_LABELS", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACTS_TOOLBAR_LABELS; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "DEFAULT_FACTS_VIEW_TOGGLE_LABELS", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACTS_VIEW_TOGGLE_LABELS; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "DEFAULT_FACT_COLUMN_LABELS", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_COLUMN_LABELS; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "DEFAULT_FACT_COLUMN_ORDER", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_COLUMN_ORDER; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "DEFAULT_FACT_COMPOSER_LABELS", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_COMPOSER_LABELS; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "DEFAULT_FACT_DATE_INPUT_LABELS", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_DATE_INPUT_LABELS; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "DEFAULT_FACT_LABELS_CELL_LABELS", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_LABELS_CELL_LABELS; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "DEFAULT_FACT_ROW_ACTIONS_LABELS", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_ROW_ACTIONS_LABELS; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "DEFAULT_FACT_SEARCH_BAR_LABELS", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_SEARCH_BAR_LABELS; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "DEFAULT_FACT_SEARCH_RESULT_LABELS", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_SEARCH_RESULT_LABELS; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "DEFAULT_FACT_SOURCES_ROW_LABELS", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_SOURCES_ROW_LABELS; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "DEFAULT_FACT_SOURCE_GROUP_LABELS", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_SOURCE_GROUP_LABELS; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "DEFAULT_FACT_TIMELINE_LABELS", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkYHXJWYOF_cjs.DEFAULT_FACT_TIMELINE_LABELS; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "FactComposer", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkYHXJWYOF_cjs.FactComposer; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "FactDateInput", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkYHXJWYOF_cjs.FactDateInput; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "FactFieldRow", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkYHXJWYOF_cjs.FactFieldRow; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "FactLabelsCell", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkYHXJWYOF_cjs.FactLabelsCell; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "FactRowActions", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkYHXJWYOF_cjs.FactRowActions; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "FactSearchBar", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkYHXJWYOF_cjs.FactSearchBar; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "FactSearchNoMatches", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkYHXJWYOF_cjs.FactSearchNoMatches; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "FactSearchPending", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkYHXJWYOF_cjs.FactSearchPending; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "FactSearchResult", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkYHXJWYOF_cjs.FactSearchResult; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "FactSearchTotals", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkYHXJWYOF_cjs.FactSearchTotals; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "FactSourceGroup", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkYHXJWYOF_cjs.FactSourceGroup; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "FactSourcesRow", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkYHXJWYOF_cjs.FactSourcesRow; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "FactsBulkBar", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsBulkBar; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "FactsCalendar", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsCalendar; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "FactsEmptyState", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsEmptyState; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "FactsFieldsButton", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsFieldsButton; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "FactsGanttPane", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsGanttPane; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "FactsLoadError", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsLoadError; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "FactsLoading", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsLoading; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "FactsToolbar", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsToolbar; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "FactsViewToggle", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkYHXJWYOF_cjs.FactsViewToggle; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "ISO_DATE_FILTER_PARAMS", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkYHXJWYOF_cjs.ISO_DATE_FILTER_PARAMS; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "createFactColumns", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkYHXJWYOF_cjs.createFactColumns; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "enableFactTableColumnResize", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkYHXJWYOF_cjs.enableFactTableColumnResize; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "sourceDocCount", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkYHXJWYOF_cjs.sourceDocCount; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "EMPTY_FACT_DATE_FIELDS", {
|
|
208
208
|
enumerable: true,
|
|
@@ -8,7 +8,10 @@ export interface FilesPageProps extends ComponentProps<'div'> {
|
|
|
8
8
|
/**
|
|
9
9
|
* Files page column. `h-full` fills the bounded page scroll zone (not 100vh), so when a tip bar
|
|
10
10
|
* shrinks the shell this column shrinks with it and the sticky selection bar stays pinned to the
|
|
11
|
-
* visible bottom.
|
|
11
|
+
* visible bottom. In a modal the column keeps its own height and the modal's body scrolls it: it
|
|
12
|
+
* must not clip (no `overflow-hidden`), or its sticky footer and selection bar would stick to the
|
|
13
|
+
* column instead of the body, and on a short screen (a phone held sideways) they sat below the
|
|
14
|
+
* dialog's edge, out of reach.
|
|
12
15
|
*/
|
|
13
16
|
export declare function FilesPage({ isModal, testId, className, ...props }: FilesPageProps): import("react").JSX.Element;
|
|
14
17
|
/**
|
package/dist/files/FilesPage.js
CHANGED
|
@@ -7,7 +7,7 @@ function FilesPage({ isModal, testId, className, ...props }) {
|
|
|
7
7
|
"div",
|
|
8
8
|
{
|
|
9
9
|
"data-slot": "files-page",
|
|
10
|
-
className: cn("flex flex-col", isModal
|
|
10
|
+
className: cn("flex flex-col", !isModal && "h-full min-h-0", className),
|
|
11
11
|
...props,
|
|
12
12
|
"data-testid": testIdOr(testId, { testId: "documents-page" })
|
|
13
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/files/FilesPage.tsx"],
|
|
4
|
-
"sourcesContent": ["import type { ComponentProps } from 'react'\nimport { cn } from '@arbidocs/react/ui'\nimport { testIdOr } from '../chat/test-id'\n\nexport interface FilesPageProps extends ComponentProps<'div'> {\n /** Inside a modal the page keeps its own height instead of filling the page scroll zone. */\n isModal?: boolean\n /** Overrides the root test id (default `documents-page`). */\n testId?: string\n}\n\n/**\n * Files page column. `h-full` fills the bounded page scroll zone (not 100vh), so when a tip bar\n * shrinks the shell this column shrinks with it and the sticky selection bar stays pinned to the\n * visible bottom.\n */\nexport function FilesPage({ isModal, testId, className, ...props }: FilesPageProps) {\n return (\n <div\n data-slot=\"files-page\"\n className={cn('flex flex-col', isModal
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["import type { ComponentProps } from 'react'\nimport { cn } from '@arbidocs/react/ui'\nimport { testIdOr } from '../chat/test-id'\n\nexport interface FilesPageProps extends ComponentProps<'div'> {\n /** Inside a modal the page keeps its own height instead of filling the page scroll zone. */\n isModal?: boolean\n /** Overrides the root test id (default `documents-page`). */\n testId?: string\n}\n\n/**\n * Files page column. `h-full` fills the bounded page scroll zone (not 100vh), so when a tip bar\n * shrinks the shell this column shrinks with it and the sticky selection bar stays pinned to the\n * visible bottom. In a modal the column keeps its own height and the modal's body scrolls it: it\n * must not clip (no `overflow-hidden`), or its sticky footer and selection bar would stick to the\n * column instead of the body, and on a short screen (a phone held sideways) they sat below the\n * dialog's edge, out of reach.\n */\nexport function FilesPage({ isModal, testId, className, ...props }: FilesPageProps) {\n return (\n <div\n data-slot=\"files-page\"\n className={cn('flex flex-col', !isModal && 'h-full min-h-0', className)}\n {...props}\n data-testid={testIdOr(testId, { testId: 'documents-page' })}\n />\n )\n}\n\n/**\n * Sticky region on top: the title row (title, view switch, Add) and the calm filter row. 16px\n * gutters are owned by the shared TabHeader and the content toolbar.\n */\nexport function FilesPageHeader({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"files-page-header\"\n className={cn('sticky top-0 z-10 flex flex-col bg-background', className)}\n {...props}\n />\n )\n}\n\n/** The scrolling content area (grid, gallery, review, smart search). */\nexport function FilesPageMain({ className, ...props }: ComponentProps<'main'>) {\n return (\n <main\n data-slot=\"files-page-main\"\n className={cn('min-h-0 flex-1 overflow-hidden bg-background px-4 sm:px-6', className)}\n {...props}\n />\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAqBI;AApBJ,SAAS,UAAU;AACnB,SAAS,gBAAgB;AAiBlB,SAAS,UAAU,EAAE,SAAS,QAAQ,WAAW,GAAG,MAAM,GAAmB;AAClF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,iBAAiB,CAAC,WAAW,kBAAkB,SAAS;AAAA,MACrE,GAAG;AAAA,MACJ,eAAa,SAAS,QAAQ,EAAE,QAAQ,iBAAiB,CAAC;AAAA;AAAA,EAC5D;AAEJ;AAMO,SAAS,gBAAgB,EAAE,WAAW,GAAG,MAAM,GAA0B;AAC9E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,iDAAiD,SAAS;AAAA,MACvE,GAAG;AAAA;AAAA,EACN;AAEJ;AAGO,SAAS,cAAc,EAAE,WAAW,GAAG,MAAM,GAA2B;AAC7E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,6DAA6D,SAAS;AAAA,MACnF,GAAG;AAAA;AAAA,EACN;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -137,7 +137,7 @@ function SelectionBarInner({
|
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
ref: actionsRef,
|
|
140
|
-
className: "flex min-w-0 flex-1 items-center gap-2 overflow-x-auto overscroll-x-contain [scrollbar-width:none]",
|
|
140
|
+
className: "flex min-w-0 flex-1 items-center gap-2 overflow-x-auto overscroll-x-contain [scrollbar-width:none] pointer-coarse:min-h-11",
|
|
141
141
|
children: [
|
|
142
142
|
status && /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-2", children: status }),
|
|
143
143
|
/* @__PURE__ */ jsxs(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/files/SelectionBar.tsx"],
|
|
4
|
-
"sourcesContent": ["import { useLayoutEffect, useRef, useState } from 'react'\nimport type { ReactNode } from 'react'\nimport type { LucideIcon } from 'lucide-react'\nimport { BookOpen, X } from 'lucide-react'\nimport { Button, Tooltip, TooltipContent, TooltipTrigger, cn } from '@arbidocs/react/ui'\nimport { testIdOr } from '../chat/test-id'\nimport { observeResize } from '../lib/observe-resize'\n\nexport interface SelectionBarActionItem {\n id: string\n icon: LucideIcon\n label: string\n onClick: () => void\n disabled?: boolean\n variant?: 'default' | 'outline' | 'destructive' | 'ghost' | 'secondary'\n /** Tooltip text; falls back to `label`. */\n tooltip?: string\n testId?: string\n className?: string\n}\n\n/** Container width below which the bar is \"narrow\" (phones): only the essentials stay inline. */\nconst NARROW_BELOW_PX = 480\n\n/** Every fixed string of the selection bar. Pass a partial `labels` to translate or reword. */\nexport interface SelectionBarLabels {\n selected: string\n clearSelection: string\n review: string\n selectionActions: string\n}\n\nexport const DEFAULT_SELECTION_BAR_LABELS: SelectionBarLabels = {\n selected: 'selected',\n clearSelection: 'Clear selection',\n review: 'Review',\n selectionActions: 'Selection actions',\n}\n\nexport interface SelectionBarTestIds {\n toolbar: string\n count: string\n clear: string\n review: string\n}\n\nexport interface SelectionBarProps {\n /** Number of selected rows. The bar renders only while this is > 0 (or `status` is set). */\n count: number\n onClear: () => void\n /** Primary-in-bar \"Review\" shortcut (tonal, not the view's filled primary). */\n onReview?: () => void\n /** Actions as data. Rendered icon-only automatically when the bar is narrow. */\n actions?: SelectionBarActionItem[]\n /**\n * Free-form actions; a function receives `isCompact` (icon-only) and `isNarrow` (a phone-width\n * container: fold secondary actions into an overflow menu). Rendered after `actions`.\n */\n children?: ReactNode | ((isCompact: boolean, isNarrow: boolean) => ReactNode)\n /** Always-legible content before the actions (e.g. a running budget); never dimmed. */\n status?: ReactNode\n /** Singular noun shown after the count; wins over `labels.selected`. */\n selectedLabel?: string\n labels?: Partial<SelectionBarLabels>\n /** Overrides for the control test ids (defaults keep the current ids). */\n testIds?: Partial<SelectionBarTestIds>\n className?: string\n}\n\n/**\n * SelectionBar: the floating bar that appears while rows are selected.\n *\n * Stays on ONE row: when the actions overflow it flips to compact mode (icon-only actions and a\n * count-only badge) instead of wrapping. Sticky zero-height anchor, so showing/hiding it never\n * reflows the content beneath. Every control is always visible (nothing hover-only) and 44px on\n * coarse pointers.\n */\nexport function SelectionBar(props: SelectionBarProps) {\n if (props.count === 0 && !props.status) return null\n return <SelectionBarInner {...props} />\n}\n\nfunction SelectionBarInner({\n count,\n onClear,\n onReview,\n actions,\n children,\n status,\n selectedLabel,\n labels,\n testIds,\n className,\n}: SelectionBarProps) {\n const l = { ...DEFAULT_SELECTION_BAR_LABELS, ...labels }\n const hasSelection = count > 0\n const rootRef = useRef<HTMLDivElement>(null)\n const actionsRef = useRef<HTMLDivElement>(null)\n const [isCompact, setIsCompact] = useState(false)\n const [isNarrow, setIsNarrow] = useState(false)\n // Root width at which the labelled actions last overflowed. Compared against the (stable) root\n // width, never the actions' own width, which changes when we collapse labels and would oscillate.\n const overflowRootWidthRef = useRef(Number.POSITIVE_INFINITY)\n\n const measureRef = useRef<() => void>(() => {})\n measureRef.current = () => {\n const root = rootRef.current\n const el = actionsRef.current\n if (!root || !el) return\n // The bar is content-sized, so judge narrowness by the space it is given (its anchor).\n const available = root.parentElement?.clientWidth ?? 0\n setIsNarrow(available > 0 && available < NARROW_BELOW_PX)\n if (!isCompact) {\n if (el.scrollWidth > el.clientWidth + 1) {\n overflowRootWidthRef.current = root.clientWidth\n setIsCompact(true)\n }\n } else if (root.clientWidth > overflowRootWidthRef.current + 64) {\n setIsCompact(false)\n }\n }\n\n useLayoutEffect(() => {\n measureRef.current()\n const root = rootRef.current\n if (!root) return\n return observeResize(root, () => measureRef.current())\n }, [])\n // The bar is capped by its anchor, so its own size does not change when the actions overflow, and\n // the actions' text widens once the web font loads. Re-measure after every render and whenever\n // an action changes size. The measurement only sets state on a change, so this cannot loop.\n useLayoutEffect(() => {\n measureRef.current()\n const inner = actionsRef.current\n if (!inner || typeof ResizeObserver === 'undefined') return\n const observer = new ResizeObserver(() => measureRef.current())\n inner.querySelectorAll('button').forEach((button) => observer.observe(button))\n return () => observer.disconnect()\n })\n useLayoutEffect(() => {\n let isCancelled = false\n void document.fonts?.ready.then(() => {\n if (!isCancelled) measureRef.current()\n })\n return () => {\n isCancelled = true\n }\n }, [])\n\n return (\n <div\n data-slot=\"selection-bar\"\n className={cn('pointer-events-none sticky bottom-0 z-30 h-0', className)}\n >\n <div className=\"absolute inset-x-0 bottom-4 flex justify-center px-3\">\n <div\n ref={rootRef}\n role=\"toolbar\"\n aria-label={l.selectionActions}\n data-testid={testIdOr(testIds?.toolbar, { testId: 'bulk-actions-toolbar' })}\n data-narrow={isNarrow || undefined}\n className=\"pointer-events-auto flex min-h-12 max-w-full items-center rounded-lg border border-border bg-popover px-2 py-1.5 shadow-xl\"\n >\n <div className=\"flex min-w-0 flex-1 items-center gap-2 px-1\">\n <div\n data-testid={testIdOr(testIds?.count, { testId: 'bulk-selected-count' })}\n aria-live=\"polite\"\n className={cn(\n 'flex shrink-0 items-center rounded-full bg-accent text-sm font-semibold tabular-nums text-accent-foreground',\n isCompact ? 'gap-1 px-2.5 py-1' : 'gap-2 px-3 py-1'\n )}\n >\n <span>\n {count}\n {!isCompact && ` ${selectedLabel ?? l.selected}`}\n </span>\n {hasSelection && (\n <button\n type=\"button\"\n onClick={onClear}\n aria-label={l.clearSelection}\n data-testid={testIdOr(testIds?.clear, { testId: 'bulk-clear-selection-button' })}\n className=\"rounded-full p-0.5 transition-colors hover:bg-foreground/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:p-[15px]\"\n >\n <X className=\"size-3.5\" />\n </button>\n )}\n </div>\n\n {onReview && (\n <button\n type=\"button\"\n onClick={onReview}\n aria-label={isNarrow ? l.review : undefined}\n data-testid={testIdOr(testIds?.review, { testId: 'bulk-review-button' })}\n className=\"flex h-8 shrink-0 items-center gap-1.5 rounded-md bg-accent px-2.5 text-sm font-medium text-accent-foreground transition-colors hover:bg-accent/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:h-11\"\n >\n <BookOpen className=\"size-3.5\" />\n {!isNarrow && l.review}\n </button>\n )}\n\n <div className=\"h-6 w-px shrink-0 bg-border\" />\n\n <div\n ref={actionsRef}\n className=\"flex min-w-0 flex-1 items-center gap-2 overflow-x-auto overscroll-x-contain [scrollbar-width:none]\"\n >\n {status && <div className=\"flex shrink-0 items-center gap-2\">{status}</div>}\n <div\n className={cn(\n 'flex min-w-0 items-center gap-2',\n !hasSelection && 'pointer-events-none opacity-40'\n )}\n >\n {actions?.map((a) => (\n <SelectionBarAction key={a.id} {...a} isCompact={isCompact} />\n ))}\n {typeof children === 'function' ? children(isCompact, isNarrow) : children}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n )\n}\n\nexport interface SelectionBarActionProps extends Omit<SelectionBarActionItem, 'id'> {\n /** Icon-only (the bar passes this when narrow). */\n isCompact?: boolean\n}\n\n/** One action button in the bar: icon + label, icon-only when compact, always with a tooltip. */\nexport function SelectionBarAction({\n icon: Icon,\n label,\n onClick,\n disabled = false,\n variant = 'ghost',\n tooltip,\n testId,\n className,\n isCompact = false,\n}: SelectionBarActionProps) {\n return (\n <Tooltip>\n <TooltipTrigger asChild>\n <Button\n variant={variant}\n size=\"sm\"\n onClick={onClick}\n disabled={disabled}\n aria-label={isCompact ? label : undefined}\n data-testid={testId}\n className={cn(\n 'h-8 shrink-0 gap-1.5 whitespace-nowrap px-2 disabled:opacity-50 pointer-coarse:h-11',\n className\n )}\n >\n <Icon className=\"size-4\" />\n {!isCompact && <span className=\"text-sm\">{label}</span>}\n </Button>\n </TooltipTrigger>\n <TooltipContent>\n <p>{tooltip ?? label}</p>\n </TooltipContent>\n </Tooltip>\n )\n}\n"],
|
|
5
|
-
"mappings": ";AA+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sB;AAAA,gBACpC;AAAA,gBAEA;AAAA,uCAAC,UACE;AAAA;AAAA,oBACA,CAAC,aAAa,IAAI,iBAAiB,EAAE,QAAQ;AAAA,qBAChD;AAAA,kBACC,gBACC;AAAA,oBAAC;AAAA;AAAA,sBACC,MAAK;AAAA,sBACL,SAAS;AAAA,sBACT,cAAY,EAAE;AAAA,sBACd,eAAa,SAAS,SAAS,OAAO,EAAE,QAAQ,8BAA8B,CAAC;AAAA,sBAC/E,WAAU;AAAA,sBAEV,8BAAC,KAAE,WAAU,YAAW;AAAA;AAAA,kBAC1B;AAAA;AAAA;AAAA,YAEJ;AAAA,YAEC,YACC;AAAA,cAAC;AAAA;AAAA,gBACC,MAAK;AAAA,gBACL,SAAS;AAAA,gBACT,cAAY,WAAW,EAAE,SAAS;AAAA,gBAClC,eAAa,SAAS,SAAS,QAAQ,EAAE,QAAQ,qBAAqB,CAAC;AAAA,gBACvE,WAAU;AAAA,gBAEV;AAAA,sCAAC,YAAS,WAAU,YAAW;AAAA,kBAC9B,CAAC,YAAY,EAAE;AAAA;AAAA;AAAA,YAClB;AAAA,YAGF,oBAAC,SAAI,WAAU,+BAA8B;AAAA,
|
|
4
|
+
"sourcesContent": ["import { useLayoutEffect, useRef, useState } from 'react'\nimport type { ReactNode } from 'react'\nimport type { LucideIcon } from 'lucide-react'\nimport { BookOpen, X } from 'lucide-react'\nimport { Button, Tooltip, TooltipContent, TooltipTrigger, cn } from '@arbidocs/react/ui'\nimport { testIdOr } from '../chat/test-id'\nimport { observeResize } from '../lib/observe-resize'\n\nexport interface SelectionBarActionItem {\n id: string\n icon: LucideIcon\n label: string\n onClick: () => void\n disabled?: boolean\n variant?: 'default' | 'outline' | 'destructive' | 'ghost' | 'secondary'\n /** Tooltip text; falls back to `label`. */\n tooltip?: string\n testId?: string\n className?: string\n}\n\n/** Container width below which the bar is \"narrow\" (phones): only the essentials stay inline. */\nconst NARROW_BELOW_PX = 480\n\n/** Every fixed string of the selection bar. Pass a partial `labels` to translate or reword. */\nexport interface SelectionBarLabels {\n selected: string\n clearSelection: string\n review: string\n selectionActions: string\n}\n\nexport const DEFAULT_SELECTION_BAR_LABELS: SelectionBarLabels = {\n selected: 'selected',\n clearSelection: 'Clear selection',\n review: 'Review',\n selectionActions: 'Selection actions',\n}\n\nexport interface SelectionBarTestIds {\n toolbar: string\n count: string\n clear: string\n review: string\n}\n\nexport interface SelectionBarProps {\n /** Number of selected rows. The bar renders only while this is > 0 (or `status` is set). */\n count: number\n onClear: () => void\n /** Primary-in-bar \"Review\" shortcut (tonal, not the view's filled primary). */\n onReview?: () => void\n /** Actions as data. Rendered icon-only automatically when the bar is narrow. */\n actions?: SelectionBarActionItem[]\n /**\n * Free-form actions; a function receives `isCompact` (icon-only) and `isNarrow` (a phone-width\n * container: fold secondary actions into an overflow menu). Rendered after `actions`.\n */\n children?: ReactNode | ((isCompact: boolean, isNarrow: boolean) => ReactNode)\n /** Always-legible content before the actions (e.g. a running budget); never dimmed. */\n status?: ReactNode\n /** Singular noun shown after the count; wins over `labels.selected`. */\n selectedLabel?: string\n labels?: Partial<SelectionBarLabels>\n /** Overrides for the control test ids (defaults keep the current ids). */\n testIds?: Partial<SelectionBarTestIds>\n className?: string\n}\n\n/**\n * SelectionBar: the floating bar that appears while rows are selected.\n *\n * Stays on ONE row: when the actions overflow it flips to compact mode (icon-only actions and a\n * count-only badge) instead of wrapping. Sticky zero-height anchor, so showing/hiding it never\n * reflows the content beneath. Every control is always visible (nothing hover-only) and 44px on\n * coarse pointers.\n */\nexport function SelectionBar(props: SelectionBarProps) {\n if (props.count === 0 && !props.status) return null\n return <SelectionBarInner {...props} />\n}\n\nfunction SelectionBarInner({\n count,\n onClear,\n onReview,\n actions,\n children,\n status,\n selectedLabel,\n labels,\n testIds,\n className,\n}: SelectionBarProps) {\n const l = { ...DEFAULT_SELECTION_BAR_LABELS, ...labels }\n const hasSelection = count > 0\n const rootRef = useRef<HTMLDivElement>(null)\n const actionsRef = useRef<HTMLDivElement>(null)\n const [isCompact, setIsCompact] = useState(false)\n const [isNarrow, setIsNarrow] = useState(false)\n // Root width at which the labelled actions last overflowed. Compared against the (stable) root\n // width, never the actions' own width, which changes when we collapse labels and would oscillate.\n const overflowRootWidthRef = useRef(Number.POSITIVE_INFINITY)\n\n const measureRef = useRef<() => void>(() => {})\n measureRef.current = () => {\n const root = rootRef.current\n const el = actionsRef.current\n if (!root || !el) return\n // The bar is content-sized, so judge narrowness by the space it is given (its anchor).\n const available = root.parentElement?.clientWidth ?? 0\n setIsNarrow(available > 0 && available < NARROW_BELOW_PX)\n if (!isCompact) {\n if (el.scrollWidth > el.clientWidth + 1) {\n overflowRootWidthRef.current = root.clientWidth\n setIsCompact(true)\n }\n } else if (root.clientWidth > overflowRootWidthRef.current + 64) {\n setIsCompact(false)\n }\n }\n\n useLayoutEffect(() => {\n measureRef.current()\n const root = rootRef.current\n if (!root) return\n return observeResize(root, () => measureRef.current())\n }, [])\n // The bar is capped by its anchor, so its own size does not change when the actions overflow, and\n // the actions' text widens once the web font loads. Re-measure after every render and whenever\n // an action changes size. The measurement only sets state on a change, so this cannot loop.\n useLayoutEffect(() => {\n measureRef.current()\n const inner = actionsRef.current\n if (!inner || typeof ResizeObserver === 'undefined') return\n const observer = new ResizeObserver(() => measureRef.current())\n inner.querySelectorAll('button').forEach((button) => observer.observe(button))\n return () => observer.disconnect()\n })\n useLayoutEffect(() => {\n let isCancelled = false\n void document.fonts?.ready.then(() => {\n if (!isCancelled) measureRef.current()\n })\n return () => {\n isCancelled = true\n }\n }, [])\n\n return (\n <div\n data-slot=\"selection-bar\"\n className={cn('pointer-events-none sticky bottom-0 z-30 h-0', className)}\n >\n <div className=\"absolute inset-x-0 bottom-4 flex justify-center px-3\">\n <div\n ref={rootRef}\n role=\"toolbar\"\n aria-label={l.selectionActions}\n data-testid={testIdOr(testIds?.toolbar, { testId: 'bulk-actions-toolbar' })}\n data-narrow={isNarrow || undefined}\n className=\"pointer-events-auto flex min-h-12 max-w-full items-center rounded-lg border border-border bg-popover px-2 py-1.5 shadow-xl\"\n >\n <div className=\"flex min-w-0 flex-1 items-center gap-2 px-1\">\n <div\n data-testid={testIdOr(testIds?.count, { testId: 'bulk-selected-count' })}\n aria-live=\"polite\"\n className={cn(\n 'flex shrink-0 items-center rounded-full bg-accent text-sm font-semibold tabular-nums text-accent-foreground',\n isCompact ? 'gap-1 px-2.5 py-1' : 'gap-2 px-3 py-1'\n )}\n >\n <span>\n {count}\n {!isCompact && ` ${selectedLabel ?? l.selected}`}\n </span>\n {hasSelection && (\n <button\n type=\"button\"\n onClick={onClear}\n aria-label={l.clearSelection}\n data-testid={testIdOr(testIds?.clear, { testId: 'bulk-clear-selection-button' })}\n className=\"rounded-full p-0.5 transition-colors hover:bg-foreground/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:p-[15px]\"\n >\n <X className=\"size-3.5\" />\n </button>\n )}\n </div>\n\n {onReview && (\n <button\n type=\"button\"\n onClick={onReview}\n aria-label={isNarrow ? l.review : undefined}\n data-testid={testIdOr(testIds?.review, { testId: 'bulk-review-button' })}\n className=\"flex h-8 shrink-0 items-center gap-1.5 rounded-md bg-accent px-2.5 text-sm font-medium text-accent-foreground transition-colors hover:bg-accent/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:h-11\"\n >\n <BookOpen className=\"size-3.5\" />\n {!isNarrow && l.review}\n </button>\n )}\n\n <div className=\"h-6 w-px shrink-0 bg-border\" />\n\n {/* A horizontal scroller clips vertically too: on coarse pointers it is 44px tall, so the\n centred 44px touch hit areas of its pills (the sharing pill) are not cut. */}\n <div\n ref={actionsRef}\n className=\"flex min-w-0 flex-1 items-center gap-2 overflow-x-auto overscroll-x-contain [scrollbar-width:none] pointer-coarse:min-h-11\"\n >\n {status && <div className=\"flex shrink-0 items-center gap-2\">{status}</div>}\n <div\n className={cn(\n 'flex min-w-0 items-center gap-2',\n !hasSelection && 'pointer-events-none opacity-40'\n )}\n >\n {actions?.map((a) => (\n <SelectionBarAction key={a.id} {...a} isCompact={isCompact} />\n ))}\n {typeof children === 'function' ? children(isCompact, isNarrow) : children}\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n )\n}\n\nexport interface SelectionBarActionProps extends Omit<SelectionBarActionItem, 'id'> {\n /** Icon-only (the bar passes this when narrow). */\n isCompact?: boolean\n}\n\n/** One action button in the bar: icon + label, icon-only when compact, always with a tooltip. */\nexport function SelectionBarAction({\n icon: Icon,\n label,\n onClick,\n disabled = false,\n variant = 'ghost',\n tooltip,\n testId,\n className,\n isCompact = false,\n}: SelectionBarActionProps) {\n return (\n <Tooltip>\n <TooltipTrigger asChild>\n <Button\n variant={variant}\n size=\"sm\"\n onClick={onClick}\n disabled={disabled}\n aria-label={isCompact ? label : undefined}\n data-testid={testId}\n className={cn(\n 'h-8 shrink-0 gap-1.5 whitespace-nowrap px-2 disabled:opacity-50 pointer-coarse:h-11',\n className\n )}\n >\n <Icon className=\"size-4\" />\n {!isCompact && <span className=\"text-sm\">{label}</span>}\n </Button>\n </TooltipTrigger>\n <TooltipContent>\n <p>{tooltip ?? label}</p>\n </TooltipContent>\n </Tooltip>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AA+ES,cA6FK,YA7FL;AA/ET,SAAS,iBAAiB,QAAQ,gBAAgB;AAGlD,SAAS,UAAU,SAAS;AAC5B,SAAS,QAAQ,SAAS,gBAAgB,gBAAgB,UAAU;AACpE,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAgB9B,MAAM,kBAAkB;AAUjB,MAAM,+BAAmD;AAAA,EAC9D,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,kBAAkB;AACpB;AAwCO,SAAS,aAAa,OAA0B;AACrD,MAAI,MAAM,UAAU,KAAK,CAAC,MAAM,OAAQ,QAAO;AAC/C,SAAO,oBAAC,qBAAmB,GAAG,OAAO;AACvC;AAEA,SAAS,kBAAkB;AAAA,EACzB;AAAA,EACA;AAAA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