docblocks-react-ui 0.11.0 → 0.13.0

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.
@@ -0,0 +1,24 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ //#region src/shared/ui/icons/Maximize.tsx
3
+ function Maximize(props) {
4
+ return /* @__PURE__ */ jsxs("svg", {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: 24,
7
+ height: 24,
8
+ viewBox: "0 0 24 24",
9
+ fill: "none",
10
+ stroke: "currentColor",
11
+ strokeWidth: 2,
12
+ strokeLinecap: "round",
13
+ strokeLinejoin: "round",
14
+ ...props,
15
+ children: [
16
+ /* @__PURE__ */ jsx("path", { d: "M8 3H5a2 2 0 0 0-2 2v3" }),
17
+ /* @__PURE__ */ jsx("path", { d: "M21 8V5a2 2 0 0 0-2-2h-3" }),
18
+ /* @__PURE__ */ jsx("path", { d: "M3 16v3a2 2 0 0 0 2 2h3" }),
19
+ /* @__PURE__ */ jsx("path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" })
20
+ ]
21
+ });
22
+ }
23
+ //#endregion
24
+ export { Maximize as t };
@@ -846,7 +846,7 @@ interface PresenceIdentity {
846
846
  name?: string;
847
847
  }
848
848
  //#endregion
849
- //#region src/canvas/clipboard.d.ts
849
+ //#region src/canvas/clipboard/models.d.ts
850
850
  /** The one copied canvas item (the deep data; the ids stand the originals). */
851
851
  type ClipboardItem = {
852
852
  type: "shape";
@@ -965,6 +965,18 @@ interface EditorState {
965
965
  * only the stamp's subscribers re-render over the changes.
966
966
  */
967
967
  changeStamp: number;
968
+ /**
969
+ * The canvas-chrome stamp: bumped only when a block's CHROME fields
970
+ * (the `type`, the `geometry`, the `attrs`, the `children` — the
971
+ * figures' boxes, the port dots' data, the connectors' line attrs, the
972
+ * surface's structure) change or a block is added / removed — never
973
+ * on a content-only change of an unchanged shape (a keystroke in a
974
+ * figure's text). The canvas chrome's components key their memos on
975
+ * the stamp (an O(1) read — the per-surface JSON digest stood the
976
+ * O(siblings) stand per line per store notification). A separate slice
977
+ * so only the chrome's subscribers re-render over the changes.
978
+ */
979
+ chromeStamp: number;
968
980
  }
969
981
  /** Internal write functions, called by the EditorProvider subscriptions. */
970
982
  interface EditorActions {
@@ -1109,6 +1121,33 @@ interface DocTags {
1109
1121
  */
1110
1122
  onTagClick?: (tag: DocTag, event: MouseEvent) => void;
1111
1123
  }
1124
+ /**
1125
+ * The consumer-owned description contract (the `docDescription` provider
1126
+ * prop): the description is NEVER document data — the consumer's store is
1127
+ * the source (the document never stores or syncs it), and the panel's
1128
+ * `description` row displays the passed value and reports the user's edit
1129
+ * over `onEdit` (over the consumer-owned data there are no document events:
1130
+ * no wire, no undo). The inline editor's commit passes the entered string
1131
+ * verbatim — the empty string stands the removal's stand (the consumer
1132
+ * clears its store over the callback). Without the prop the row keeps the
1133
+ * built-in stand (the value over the doc's `attributes.description`
1134
+ * record); the legacy's stored `attributes.description` data stands inert
1135
+ * over the prop's presence (the consumer's migration's read over
1136
+ * `doc.meta.attributes`).
1137
+ */
1138
+ interface DocDescription {
1139
+ /** The document's description (the consumer's store's read; `null` = none). */
1140
+ value: string | null;
1141
+ /**
1142
+ * The edit's commit (the panel's inline editor's Enter / blur — the
1143
+ * entered string verbatim; the empty string stands the removal's stand):
1144
+ * the consumer persists the value over its own store and passes the
1145
+ * updated stand back over `value`. Without it the row stands
1146
+ * display-only (the edit's and the removal's affordances stand absent,
1147
+ * over the edit mode too).
1148
+ */
1149
+ onEdit?: (value: string) => void;
1150
+ }
1112
1151
  /**
1113
1152
  * The consumer's cover preset gallery (the `coverPresets` provider prop):
1114
1153
  * the ready-made cover's file ids (the consumer's own blob store's ids) per
@@ -1186,7 +1225,7 @@ interface PresenceConfig {
1186
1225
  }
1187
1226
  /** The consumer's user access level: the available document modes. "viewer" is locked to the published's view (the current state is never rendered); "editor" (the default) may edit and view. Session state — not document data, never on the wire. */
1188
1227
  type AccessLevel = "viewer" | "editor";
1189
- /** The document's mode (consumer-controlled view state, like the page/canvas `view`): "edit" (the default) is the live document editable; "view" is the live document read-only (the current state, still syncing); "published" is the `publishedDoc`'s snapshot read-only (static). */
1228
+ /** The document's mode (consumer-controlled view state, like the page/canvas `view`): "edit" (the default) is the live document editable; "view" is the live document read-only (the current state, still syncing) with its text selectable and copyable; "published" is the `publishedDoc`'s snapshot read-only (static) with no selection and no copy. */
1190
1229
  type EditorMode = "edit" | "view" | "published";
1191
1230
  /** Per-instance editor context: the store, the doc, the selection handle, and the customization values. */
1192
1231
  interface EditorContextValue {
@@ -1218,6 +1257,8 @@ interface EditorContextValue {
1218
1257
  attributeTypePicker: AttributeTypePicker | null;
1219
1258
  /** The consumer's tags contract (the `docTags` prop); null stands the display-only stand (the `notSet` over the row). */
1220
1259
  docTags: DocTags | null;
1260
+ /** The consumer's description contract (the `docDescription` prop); null stands the built-in stand (the value over the doc's record). */
1261
+ docDescription: DocDescription | null;
1221
1262
  /** The consumer's cover preset gallery (the `coverPresets` prop); null stands the built-in's stand (the preset's grid stands absent). */
1222
1263
  coverPresets: CoverPresetSets | null;
1223
1264
  /** The effective embed sandbox policy (the consumer's, or the safe default) — always present. */
@@ -1372,6 +1413,24 @@ interface EditorProviderProps {
1372
1413
  * provider that supplies none inherits the enclosing one.
1373
1414
  */
1374
1415
  docTags?: DocTags;
1416
+ /**
1417
+ * Optional consumer-owned description contract (the document-attributes
1418
+ * panel's `description` row): the description is never document data
1419
+ * (the consumer's store is the source — the document never stores or
1420
+ * syncs it). The panel displays the passed value and reports the user's
1421
+ * edit over the `onEdit` callback (the panel's inline editor's commit —
1422
+ * the entered string verbatim; the empty string stands the removal's
1423
+ * stand — the consumer clears its store over the callback; the row's
1424
+ * removal's affordance stands over the non-empty's value and commits the
1425
+ * empty string's stand; without it the row stands display-only, over the
1426
+ * edit mode too). Over the prop's
1427
+ * presence the row stands out of the `renderAttribute`'s reach (the
1428
+ * consumer's value is the source). Like the other customization values,
1429
+ * the value is read per render into the provider context: pass a stable
1430
+ * reference (a memoized object). A nested provider that supplies none
1431
+ * inherits the enclosing one.
1432
+ */
1433
+ docDescription?: DocDescription;
1375
1434
  /**
1376
1435
  * Optional cover preset gallery (the document-attributes panel's cover row,
1377
1436
  * the upload modal's stand): the consumer's ready-made cover's file ids
@@ -1396,7 +1455,9 @@ interface EditorProviderProps {
1396
1455
  * zone (a preset key — `description` / `createdBy` / `cover` /
1397
1456
  * `status` / `publishedAt` — or a custom key; the `tags` row is the
1398
1457
  * consumer-owned stand over the `docTags`'s prop and stands out of
1399
- * this renderer's reach). The renderer receives the
1458
+ * this renderer's reach; the `description` row stands out of it over
1459
+ * the `docDescription`'s prop's presence — the consumer's value is the
1460
+ * source over the stand). The renderer receives the
1400
1461
  * key, the current value, the commit / removal entries, and the
1401
1462
  * read-only stand; `null` (or the absent stand) selects the built-in
1402
1463
  * editor for that key. The row's label (the key's display name) is the
@@ -1491,4 +1552,4 @@ declare const DEFAULT_EMBED_SANDBOX = "allow-scripts allow-same-origin allow-for
1491
1552
  /** Read the per-instance editor context; throws outside an EditorProvider. */
1492
1553
  declare function useEditorContext(): EditorContextValue;
1493
1554
  //#endregion
1494
- export { Id as $, DatabaseTable as A, BlobRef as At, FilterBuilder as B, SyncEmbedResolver as C, BRIDGE_ERROR_CODES as Ct, PresenceSharing as D, isBridgeErrorCode as Dt, PresencePeer as E, isBridgeError as Et, DatabaseTablePhase as F, BridgeValueInput as G, BridgeColumn as H, DatabaseTableRow as I, Column as J, CellMap as K, UseDatabaseTable as L, DatabaseTableView as M, createMemoryBlobStore as Mt, UseTableList as N, PresenceSharingMode as O, toBridgeError as Ot, useDatabaseTable as P, FilterInput as Q, emptyFilter as R, SelectionRef as S, TableSnapshot as St, PresenceIdentity as T, BridgeErrorCode as Tt, BridgeColumnAnnotation as U, BatchOp as V, BridgeTableDescription as W, DomainEvent as X, DatabaseBridge as Y, FilterConditionInput as Z, PdfPreview as _, SubscriptionStatus as _t, AttributeTypePicker as a, PageSnapshot as at, RenderAttribute as b, TableEvent as bt, DocTag as c, ProtocolLimits as ct, EditorMode as d, Revision as dt, IsoInstant as et, EditorProviderProps as f, RowPage as ft, MentionProvider as g, SubscriptionObserver as gt, MentionInteractions as h, SubscriptionHandle as ht, AccessLevel as i, PageQuery as it, DatabaseTableProps as j, BlobStore as jt, useTableList as k, BlobMeta as kt, DocTags as l, QueryOperator as lt, MentionEntry as m, SortInput as mt, DEFAULT_EMBED_SANDBOX as n, MutationReceipt as nt, AttributeTypePickerProps as o, ProtocolCapability as ot, EmbedSandboxPolicy as p, RowWire as pt, CellValueParse as q, EditorProvider as r, OperationStatus as rt, CoverPresetSets as s, ProtocolDescriptor as st, useEditorContext as t, MutationContext as tt, EditorContextValue as u, QuerySemantics as ut, PdfPreviewProps as v, TableDescription as vt, PresenceCrypto as w, BridgeError as wt, RenderAttributeProps as x, TableRef as xt, PresenceConfig as y, TableEnvelopeBase as yt, filterIsComplete as z };
1555
+ export { FilterInput as $, useTableList as A, BlobMeta as At, filterIsComplete as B, SelectionRef as C, TableSnapshot as Ct, PresencePeer as D, isBridgeError as Dt, PresenceIdentity as E, BridgeErrorCode as Et, useDatabaseTable as F, BridgeTableDescription as G, BatchOp as H, DatabaseTablePhase as I, CellValueParse as J, BridgeValueInput as K, DatabaseTableRow as L, DatabaseTableProps as M, BlobStore as Mt, DatabaseTableView as N, createMemoryBlobStore as Nt, PresenceSharing as O, isBridgeErrorCode as Ot, UseTableList as P, FilterConditionInput as Q, UseDatabaseTable as R, RenderAttributeProps as S, TableRef as St, PresenceCrypto as T, BridgeError as Tt, BridgeColumn as U, FilterBuilder as V, BridgeColumnAnnotation as W, DatabaseBridge as X, Column as Y, DomainEvent as Z, MentionProvider as _, SubscriptionObserver as _t, AttributeTypePicker as a, PageQuery as at, PresenceConfig as b, TableEnvelopeBase as bt, DocDescription as c, ProtocolDescriptor as ct, EditorContextValue as d, QuerySemantics as dt, Id as et, EditorMode as f, Revision as ft, MentionInteractions as g, SubscriptionHandle as gt, MentionEntry as h, SortInput as ht, AccessLevel as i, OperationStatus as it, DatabaseTable as j, BlobRef as jt, PresenceSharingMode as k, toBridgeError as kt, DocTag as l, ProtocolLimits as lt, EmbedSandboxPolicy as m, RowWire as mt, DEFAULT_EMBED_SANDBOX as n, MutationContext as nt, AttributeTypePickerProps as o, PageSnapshot as ot, EditorProviderProps as p, RowPage as pt, CellMap as q, EditorProvider as r, MutationReceipt as rt, CoverPresetSets as s, ProtocolCapability as st, useEditorContext as t, IsoInstant as tt, DocTags as u, QueryOperator as ut, PdfPreview as v, SubscriptionStatus as vt, SyncEmbedResolver as w, BRIDGE_ERROR_CODES as wt, RenderAttribute as x, TableEvent as xt, PdfPreviewProps as y, TableDescription as yt, emptyFilter as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as BlockRendererMap, r as BlockRendererProps, t as BlockRenderer } from "./index-YJcgf8Hh.mjs";
2
- import { $ as Id, A as DatabaseTable, At as BlobRef, B as FilterBuilder, C as SyncEmbedResolver, Ct as BRIDGE_ERROR_CODES, D as PresenceSharing, Dt as isBridgeErrorCode, E as PresencePeer, Et as isBridgeError, F as DatabaseTablePhase, G as BridgeValueInput, H as BridgeColumn, I as DatabaseTableRow, J as Column, K as CellMap, L as UseDatabaseTable, M as DatabaseTableView, Mt as createMemoryBlobStore, N as UseTableList, O as PresenceSharingMode, Ot as toBridgeError, P as useDatabaseTable, Q as FilterInput, R as emptyFilter, S as SelectionRef, St as TableSnapshot, T as PresenceIdentity, Tt as BridgeErrorCode, U as BridgeColumnAnnotation, V as BatchOp, W as BridgeTableDescription, X as DomainEvent, Y as DatabaseBridge, Z as FilterConditionInput, _ as PdfPreview, _t as SubscriptionStatus, a as AttributeTypePicker, at as PageSnapshot, b as RenderAttribute, bt as TableEvent, c as DocTag, ct as ProtocolLimits, d as EditorMode, dt as Revision, et as IsoInstant, f as EditorProviderProps, ft as RowPage, g as MentionProvider, gt as SubscriptionObserver, h as MentionInteractions, ht as SubscriptionHandle, i as AccessLevel, it as PageQuery, j as DatabaseTableProps, jt as BlobStore, k as useTableList, kt as BlobMeta, l as DocTags, lt as QueryOperator, m as MentionEntry, mt as SortInput, n as DEFAULT_EMBED_SANDBOX, nt as MutationReceipt, o as AttributeTypePickerProps, ot as ProtocolCapability, p as EmbedSandboxPolicy, pt as RowWire, q as CellValueParse, r as EditorProvider, rt as OperationStatus, s as CoverPresetSets, st as ProtocolDescriptor, t as useEditorContext, tt as MutationContext, u as EditorContextValue, ut as QuerySemantics, v as PdfPreviewProps, vt as TableDescription, w as PresenceCrypto, wt as BridgeError, x as RenderAttributeProps, xt as TableRef, y as PresenceConfig, yt as TableEnvelopeBase, z as filterIsComplete } from "./index-DPLVe3Mf.mjs";
2
+ import { $ as FilterInput, A as useTableList, At as BlobMeta, B as filterIsComplete, C as SelectionRef, Ct as TableSnapshot, D as PresencePeer, Dt as isBridgeError, E as PresenceIdentity, Et as BridgeErrorCode, F as useDatabaseTable, G as BridgeTableDescription, H as BatchOp, I as DatabaseTablePhase, J as CellValueParse, K as BridgeValueInput, L as DatabaseTableRow, M as DatabaseTableProps, Mt as BlobStore, N as DatabaseTableView, Nt as createMemoryBlobStore, O as PresenceSharing, Ot as isBridgeErrorCode, P as UseTableList, Q as FilterConditionInput, R as UseDatabaseTable, S as RenderAttributeProps, St as TableRef, T as PresenceCrypto, Tt as BridgeError, U as BridgeColumn, V as FilterBuilder, W as BridgeColumnAnnotation, X as DatabaseBridge, Y as Column, Z as DomainEvent, _ as MentionProvider, _t as SubscriptionObserver, a as AttributeTypePicker, at as PageQuery, b as PresenceConfig, bt as TableEnvelopeBase, c as DocDescription, ct as ProtocolDescriptor, d as EditorContextValue, dt as QuerySemantics, et as Id, f as EditorMode, ft as Revision, g as MentionInteractions, gt as SubscriptionHandle, h as MentionEntry, ht as SortInput, i as AccessLevel, it as OperationStatus, j as DatabaseTable, jt as BlobRef, k as PresenceSharingMode, kt as toBridgeError, l as DocTag, lt as ProtocolLimits, m as EmbedSandboxPolicy, mt as RowWire, n as DEFAULT_EMBED_SANDBOX, nt as MutationContext, o as AttributeTypePickerProps, ot as PageSnapshot, p as EditorProviderProps, pt as RowPage, q as CellMap, r as EditorProvider, rt as MutationReceipt, s as CoverPresetSets, st as ProtocolCapability, t as useEditorContext, tt as IsoInstant, u as DocTags, ut as QueryOperator, v as PdfPreview, vt as SubscriptionStatus, w as SyncEmbedResolver, wt as BRIDGE_ERROR_CODES, x as RenderAttribute, xt as TableEvent, y as PdfPreviewProps, yt as TableDescription, z as emptyFilter } from "./index-BA6ZzJK8.mjs";
3
3
  import * as React$1 from "react";
4
4
  import { ComponentType, ReactNode } from "react";
5
5
  import { AttributeType, Block, BlockId, BlockType, Doc, DocMeta, MentionKind, MentionMark, PresenceState, Selection, SelectionView, SyncEmbedRef, TextRun, TypedAttributeValue } from "docblocks-core";
@@ -356,7 +356,7 @@ declare function AlertDescription({ className, ...props }: React$1.ComponentProp
356
356
  //#endregion
357
357
  //#region src/shared/ui/Badge.d.ts
358
358
  declare const badgeVariants: (props?: ({
359
- variant?: "default" | "destructive" | "outline" | "secondary" | "custom" | null | undefined;
359
+ variant?: "default" | "destructive" | "custom" | "secondary" | "outline" | null | undefined;
360
360
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
361
361
  declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
362
362
  asChild?: boolean;
@@ -367,7 +367,7 @@ declare function BareSelect({ className, children, ...props }: React$1.Component
367
367
  //#endregion
368
368
  //#region src/shared/ui/Button.d.ts
369
369
  declare const buttonVariants: (props?: ({
370
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
370
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
371
371
  size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
372
372
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
373
373
  declare function Button({ className, variant, size, asChild, type, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
@@ -503,4 +503,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
503
503
  //#region src/shared/ui/cn.d.ts
504
504
  declare function cn(...inputs: ClassValue[]): string;
505
505
  //#endregion
506
- export { type AccessLevel, Alert, AlertDescription, AlertTitle, type AttributeType, type AttributeTypePicker, type AttributeTypePickerProps, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlockRenderer, type BlockRendererMap, type BlockRendererProps, type BridgeColumn, type BridgeColumnAnnotation, BridgeError, type BridgeErrorCode, type BridgeTableDescription, type BridgeValueInput, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CellMap, type CellValueParse, Checkbox, type Column, type CoverPresetSets, DEFAULT_EMBED_SANDBOX, type DatabaseBridge, DatabaseTable, type DatabaseTablePhase, type DatabaseTableProps, type DatabaseTableRow, type DatabaseTableView, DocHeader, type DocTag, type DocTags, DocblocksI18nProvider, type DocblocksI18nProviderProps, type DomainEvent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, type EditorContextValue, type EditorMode, EditorProvider, type EditorProviderProps, type EditorView, type EmbedSandboxPolicy, FORMAT_PALETTE, FilterBuilder, type FilterConditionInput, type FilterInput, type FormatMark, type Id, ImportDocumentError, Input, type IsoInstant, Label, MONO_FONT_STACK, type MentionEntry, type MentionInteractions, type MentionMark, type MentionProvider, type MutationContext, type MutationReceipt, type OperationStatus, PROTOCOL_VERSION, type PageQuery, type PageSnapshot, type PdfPreview, type PdfPreviewProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type PresenceConfig, type PresenceCrypto, type PresenceIdentity, type PresencePeer, type PresenceSharing, type PresenceSharingMode, type ProtocolCapability, type ProtocolDescriptor, type ProtocolLimits, type QueryOperator, type QuerySemantics, type RenderAttribute, type RenderAttributeProps, type Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionRef, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TypedAttributeValue, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, importDocument, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useCoverAverageColor, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
506
+ export { type AccessLevel, Alert, AlertDescription, AlertTitle, type AttributeType, type AttributeTypePicker, type AttributeTypePickerProps, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlockRenderer, type BlockRendererMap, type BlockRendererProps, type BridgeColumn, type BridgeColumnAnnotation, BridgeError, type BridgeErrorCode, type BridgeTableDescription, type BridgeValueInput, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CellMap, type CellValueParse, Checkbox, type Column, type CoverPresetSets, DEFAULT_EMBED_SANDBOX, type DatabaseBridge, DatabaseTable, type DatabaseTablePhase, type DatabaseTableProps, type DatabaseTableRow, type DatabaseTableView, type DocDescription, DocHeader, type DocTag, type DocTags, DocblocksI18nProvider, type DocblocksI18nProviderProps, type DomainEvent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, type EditorContextValue, type EditorMode, EditorProvider, type EditorProviderProps, type EditorView, type EmbedSandboxPolicy, FORMAT_PALETTE, FilterBuilder, type FilterConditionInput, type FilterInput, type FormatMark, type Id, ImportDocumentError, Input, type IsoInstant, Label, MONO_FONT_STACK, type MentionEntry, type MentionInteractions, type MentionMark, type MentionProvider, type MutationContext, type MutationReceipt, type OperationStatus, PROTOCOL_VERSION, type PageQuery, type PageSnapshot, type PdfPreview, type PdfPreviewProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type PresenceConfig, type PresenceCrypto, type PresenceIdentity, type PresencePeer, type PresenceSharing, type PresenceSharingMode, type ProtocolCapability, type ProtocolDescriptor, type ProtocolLimits, type QueryOperator, type QuerySemantics, type RenderAttribute, type RenderAttributeProps, type Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionRef, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TypedAttributeValue, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, importDocument, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useCoverAverageColor, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as DropdownMenuSubContent, A as SelectGroup, At as Skeleton, B as Input, Bt as useBlock, C as FilterBuilder, Ct as isBridgeError, D as ScrollArea, Dt as parseCellValue, E as SegmentSelector, Et as conditionMatches, F as SelectSeparator, Ft as CardFooter, G as DropdownMenuItem, Gt as useSelection, H as DropdownMenuCheckboxItem, Ht as useMeta, I as SelectTrigger, It as CardHeader, J as DropdownMenuRadioGroup, Jt as DocblocksI18nProvider, K as DropdownMenuLabel, Kt as useSelectionView, L as SelectValue, Lt as CardTitle, M as SelectLabel, Mt as CardAction, N as SelectScrollDownButton, Nt as CardContent, O as Select, Ot as TEXT_TYPES, P as SelectScrollUpButton, Pt as CardDescription, Q as DropdownMenuSub, Qt as Eye, R as Label, Rt as Badge, S as newMutationContext, St as BridgeError, T as filterIsComplete, Tt as toBridgeError, U as DropdownMenuContent, Ut as usePresence, V as DropdownMenu, Vt as useDoc, W as DropdownMenuGroup, Wt as usePresenceSharing, X as DropdownMenuSeparator, Xt as renderRuns, Y as DropdownMenuRadioItem, Z as DropdownMenuShortcut, Zt as Pen, _ as mapFrontmatter, _t as BASELINE_CAPABILITIES, a as DEFAULT_EMBED_SANDBOX, at as PopoverContent, b as useDatabaseTable, bt as validateProtocolDescriptor, c as SHAPE_FONT_OPTIONS, ct as PopoverTitle, d as FORMAT_PALETTE, dt as Button, en as BookOpen, et as DropdownMenuSubTrigger, ft as buttonVariants, g as mdToBlocks, gt as AlertTitle, h as insertNative, ht as AlertDescription, i as useEditorContext, it as PopoverAnchor, j as SelectItem, jt as Card, k as SelectContent, kt as columnAnnotation, l as SHAPE_FONT_STACKS, lt as PopoverTrigger, m as htmlToBlocks, mt as Alert, n as useCoverAverageColor, nt as Separator, ot as PopoverDescription, p as markToggleAction, pt as BareSelect, q as DropdownMenuPortal, qt as useText, r as EditorProvider, rt as Popover, st as PopoverHeader, t as Editor, tn as createMemoryBlobStore, tt as DropdownMenuTrigger, ut as Checkbox, v as parseFrontmatter, vt as PROTOCOL_VERSION, w as emptyFilter, wt as isBridgeErrorCode, x as cellValueEqual, xt as BRIDGE_ERROR_CODES, y as GridBody, yt as isDatabaseBridge, z as InlineEditInput, zt as badgeVariants } from "./Editor-g5aY0giB.mjs";
1
+ import { $ as DropdownMenuSubContent, $t as Eye, A as SelectGroup, At as Skeleton, B as Input, Bt as useBlock, C as FilterBuilder, Ct as isBridgeError, D as ScrollArea, Dt as parseCellValue, E as SegmentSelector, Et as conditionMatches, F as SelectSeparator, Ft as CardFooter, G as DropdownMenuItem, Gt as useSelection, H as DropdownMenuCheckboxItem, Ht as useMeta, I as SelectTrigger, It as CardHeader, J as DropdownMenuRadioGroup, Jt as DocblocksI18nProvider, K as DropdownMenuLabel, Kt as useSelectionView, L as SelectValue, Lt as CardTitle, M as SelectLabel, Mt as CardAction, N as SelectScrollDownButton, Nt as CardContent, O as Select, Ot as TEXT_TYPES, P as SelectScrollUpButton, Pt as CardDescription, Q as DropdownMenuSub, Qt as Pen, R as Label, Rt as Badge, S as newMutationContext, St as BridgeError, T as filterIsComplete, Tt as toBridgeError, U as DropdownMenuContent, Ut as usePresence, V as DropdownMenu, Vt as useDoc, W as DropdownMenuGroup, Wt as usePresenceSharing, X as DropdownMenuSeparator, Xt as renderRuns, Y as DropdownMenuRadioItem, Z as DropdownMenuShortcut, _ as mapFrontmatter, _t as BASELINE_CAPABILITIES, a as DEFAULT_EMBED_SANDBOX, at as PopoverContent, b as useDatabaseTable, bt as validateProtocolDescriptor, c as SHAPE_FONT_OPTIONS, ct as PopoverTitle, d as FORMAT_PALETTE, dt as Button, et as DropdownMenuSubTrigger, ft as buttonVariants, g as mdToBlocks, gt as AlertTitle, h as insertNative, ht as AlertDescription, i as useEditorContext, it as PopoverAnchor, j as SelectItem, jt as Card, k as SelectContent, kt as columnAnnotation, l as SHAPE_FONT_STACKS, lt as PopoverTrigger, m as htmlToBlocks, mt as Alert, n as useCoverAverageColor, nn as createMemoryBlobStore, nt as Separator, ot as PopoverDescription, p as markToggleAction, pt as BareSelect, q as DropdownMenuPortal, qt as useText, r as EditorProvider, rt as Popover, st as PopoverHeader, t as Editor, tn as BookOpen, tt as DropdownMenuTrigger, ut as Checkbox, v as parseFrontmatter, vt as PROTOCOL_VERSION, w as emptyFilter, wt as isBridgeErrorCode, x as cellValueEqual, xt as BRIDGE_ERROR_CODES, y as GridBody, yt as isDatabaseBridge, z as InlineEditInput, zt as badgeVariants } from "./Editor-dcSgC9ho.mjs";
2
2
  import { a as preventDefault, s as cn } from "./constants-D8PSgkwi.mjs";
3
3
  import { useCallback, useEffect, useRef, useState } from "react";
4
4
  import { useTranslation } from "react-i18next";