docblocks-react-ui 0.9.1 → 0.10.1

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.
@@ -1062,17 +1062,53 @@ interface MentionInteractions {
1062
1062
  */
1063
1063
  renderEmptyState?: (query: string) => ReactNode | null;
1064
1064
  }
1065
- /** The props a tag-editor component receives (the `tagEditor` provider prop): the live tag list, the replacement commit, and the read-only stand. */
1066
- interface TagEditorProps {
1067
- /** The current tags (the `tags` preset attribute; `[]` when absent). */
1068
- tags: readonly string[];
1069
- /** Replaces the whole list (one `setAttribute` commit). */
1070
- onTagsChange: (tags: string[]) => void;
1071
- /** The read-only stand (the view / published's modes): display-only. */
1072
- readOnly: boolean;
1065
+ /**
1066
+ * A consumer-owned tag entry (the consumer's tag catalog): the stable id
1067
+ * (the removal / the event's identity) + the display label (the default
1068
+ * chip's text). The consumer's own type may extend it (the extra fields
1069
+ * stay opaque to the package).
1070
+ */
1071
+ interface DocTag {
1072
+ id: string;
1073
+ label: string;
1074
+ }
1075
+ /**
1076
+ * The consumer-owned tags contract (the `docTags` provider prop): the tags
1077
+ * are NEVER document data — the consumer's store is the source (the
1078
+ * document never stores or syncs them), and the panel displays the passed
1079
+ * list and reports the user's tag actions over the callbacks (the full
1080
+ * event surface — over the consumer-owned data there are no document
1081
+ * events: no wire, no undo). The panel's add affordance hands the
1082
+ * creation's flow to the consumer (its own picker over the tag catalog,
1083
+ * the creation's flow — the package opens nothing). Without the prop the
1084
+ * row stands the `notSet`'s display-only stand (the legacy's stored
1085
+ * `attributes.tags` data stands inert — the consumer's migration's read
1086
+ * over `doc.meta.attributes`).
1087
+ */
1088
+ interface DocTags {
1089
+ /** The document's tags (the consumer's store's read; `[]` = none). */
1090
+ tags: readonly DocTag[];
1091
+ /**
1092
+ * The add affordance's click (the panel's "+ tag"'s trigger): the
1093
+ * consumer opens its own creation's UI and updates the passed list over
1094
+ * its own state. Without it the add affordance stands absent.
1095
+ */
1096
+ onTagAdd?: () => void;
1097
+ /**
1098
+ * The chip's removal (the chip's `x`'s click): the consumer removes the
1099
+ * tag over its own store and passes the updated list back over `tags`.
1100
+ * Without it the chip stands without a removal affordance.
1101
+ */
1102
+ onTagRemove?: (tag: DocTag) => void;
1103
+ /**
1104
+ * The chip's click (the chip's body — the removal's `x` does not fire
1105
+ * this): the native `MouseEvent`; the package opens nothing and
1106
+ * preventDefaults nothing (the navigation's stand — the tag's page — is
1107
+ * the consumer's). Stands over the read-only modes too (the observing
1108
+ * gesture's parity).
1109
+ */
1110
+ onTagClick?: (tag: DocTag, event: MouseEvent) => void;
1073
1111
  }
1074
- /** The consumer's replacement of the default tags editor (the `tagEditor` provider prop). */
1075
- type TagEditor = ComponentType<TagEditorProps>;
1076
1112
  /** The props an attribute-value renderer receives (the `renderAttribute` provider prop). */
1077
1113
  interface RenderAttributeProps {
1078
1114
  /** The attribute's key (the preset key or the custom key). */
@@ -1160,12 +1196,12 @@ interface EditorContextValue {
1160
1196
  mentionInteractions: MentionInteractions | null;
1161
1197
  /** The attribute keys hidden from the document-attributes panel (the preset and the system keys); an empty list stands the full panel. */
1162
1198
  hiddenAttributes: readonly string[];
1163
- /** The consumer's tags editor (the `tagEditor` prop); null stands the default chip input. */
1164
- tagEditor: TagEditor | null;
1165
1199
  /** The consumer's per-key attribute-value renderer (the `renderAttribute` prop); null stands the built-in editors. */
1166
1200
  renderAttribute: RenderAttribute | null;
1167
1201
  /** The consumer's attribute type picker (the `attributeTypePicker` prop); null stands the built-in picker. */
1168
1202
  attributeTypePicker: AttributeTypePicker | null;
1203
+ /** The consumer's tags contract (the `docTags` prop); null stands the display-only stand (the `notSet` over the row). */
1204
+ docTags: DocTags | null;
1169
1205
  /** The effective embed sandbox policy (the consumer's, or the safe default) — always present. */
1170
1206
  embedSandbox: EmbedSandboxPolicy;
1171
1207
  /** The entry-list root: the document root by default, a subtree block otherwise. */
@@ -1305,24 +1341,31 @@ interface EditorProviderProps {
1305
1341
  */
1306
1342
  hiddenAttributes?: readonly string[];
1307
1343
  /**
1308
- * Optional replacement of the default tags editor (the `tags` preset
1309
- * row of the document-attributes panel). The component receives the
1310
- * live tag list, the replacement commit (one `setAttribute`), and the
1311
- * read-only stand. Like `tagEditor`'s siblings, the value is read per
1312
- * render into the provider context: pass a stable reference (the
1313
- * component is module-level).
1344
+ * Optional consumer-owned tags contract (the document-attributes panel's
1345
+ * `tags` row): the tags are never document data (the consumer's store is
1346
+ * the source — the document never stores or syncs them). The panel
1347
+ * displays the passed list and reports the user's tag actions: the add
1348
+ * affordance's click (`onTagAdd` — the consumer's own creation's UI: the
1349
+ * tag's picker over its catalog, the creation's flow), the chip's
1350
+ * removal (`onTagRemove`), and the chip's click (`onTagClick` — the
1351
+ * native event, the package opens nothing). Like the other
1352
+ * customization values, the value is read per render into the provider
1353
+ * context: pass a stable reference (a memoized object). A nested
1354
+ * provider that supplies none inherits the enclosing one.
1314
1355
  */
1315
- tagEditor?: TagEditor;
1356
+ docTags?: DocTags;
1316
1357
  /**
1317
1358
  * Optional per-key replacement of the document-attributes panel's value
1318
- * zone (a preset key — `description` / `tags` / `createdBy` / `cover` /
1319
- * `status` / `publishedAt` — or a custom key). The renderer receives the
1359
+ * zone (a preset key — `description` / `createdBy` / `cover` /
1360
+ * `status` / `publishedAt` — or a custom key; the `tags` row is the
1361
+ * consumer-owned stand over the `docTags`'s prop and stands out of
1362
+ * this renderer's reach). The renderer receives the
1320
1363
  * key, the current value, the commit / removal entries, and the
1321
1364
  * read-only stand; `null` (or the absent stand) selects the built-in
1322
1365
  * editor for that key. The row's label (the key's display name) is the
1323
- * panel's — the consumer renders the value only. Like `tagEditor`, the
1324
- * value is read per render into the provider context: pass a stable
1325
- * reference.
1366
+ * panel's — the consumer renders the value only. Like the other
1367
+ * customization values, the value is read per render into the provider
1368
+ * context: pass a stable reference.
1326
1369
  */
1327
1370
  renderAttribute?: RenderAttribute;
1328
1371
  /**
@@ -1330,9 +1373,9 @@ interface EditorProviderProps {
1330
1373
  * (the document-attributes panel's "add attribute" stand). The component
1331
1374
  * receives the selected type and the pick's commit; the type's vocabulary
1332
1375
  * is the shared `ATTRIBUTE_TYPES` enum (the consumer's picker stands its
1333
- * own design over it). Like `tagEditor`, the value is read per render
1334
- * into the provider context: pass a stable reference (the component is
1335
- * module-level).
1376
+ * own design over it). Like the other customization values, the value is
1377
+ * read per render into the provider context: pass a stable reference (the
1378
+ * component is module-level).
1336
1379
  */
1337
1380
  attributeTypePicker?: AttributeTypePicker;
1338
1381
  /**
@@ -1411,4 +1454,4 @@ declare const DEFAULT_EMBED_SANDBOX = "allow-scripts allow-same-origin allow-for
1411
1454
  /** Read the per-instance editor context; throws outside an EditorProvider. */
1412
1455
  declare function useEditorContext(): EditorContextValue;
1413
1456
  //#endregion
1414
- export { IsoInstant as $, DatabaseTableProps as A, BlobStore as At, BatchOp as B, PresenceCrypto as C, BridgeError as Ct, PresenceSharingMode as D, toBridgeError as Dt, PresenceSharing as E, isBridgeErrorCode as Et, DatabaseTableRow as F, CellMap as G, BridgeColumnAnnotation as H, UseDatabaseTable as I, DatabaseBridge as J, CellValueParse as K, emptyFilter as L, UseTableList as M, useDatabaseTable as N, useTableList as O, BlobMeta as Ot, DatabaseTablePhase as P, Id as Q, filterIsComplete as R, TagEditorProps as S, BRIDGE_ERROR_CODES as St, PresencePeer as T, isBridgeError as Tt, BridgeTableDescription as U, BridgeColumn as V, BridgeValueInput as W, FilterConditionInput as X, DomainEvent as Y, FilterInput as Z, RenderAttribute as _, TableDescription as _t, AttributeTypePicker as a, ProtocolCapability as at, SyncEmbedResolver as b, TableRef as bt, EditorMode as c, QueryOperator as ct, MentionEntry as d, RowPage as dt, MutationContext as et, MentionInteractions as f, RowWire as ft, PresenceConfig as g, SubscriptionStatus as gt, PdfPreviewProps as h, SubscriptionObserver as ht, AccessLevel as i, PageSnapshot as it, DatabaseTableView as j, createMemoryBlobStore as jt, DatabaseTable as k, BlobRef as kt, EditorProviderProps as l, QuerySemantics as lt, PdfPreview as m, SubscriptionHandle as mt, DEFAULT_EMBED_SANDBOX as n, OperationStatus as nt, AttributeTypePickerProps as o, ProtocolDescriptor as ot, MentionProvider as p, SortInput as pt, Column as q, EditorProvider as r, PageQuery as rt, EditorContextValue as s, ProtocolLimits as st, useEditorContext as t, MutationReceipt as tt, EmbedSandboxPolicy as u, Revision as ut, RenderAttributeProps as v, TableEnvelopeBase as vt, PresenceIdentity as w, BridgeErrorCode as wt, TagEditor as x, TableSnapshot as xt, SelectionRef as y, TableEvent as yt, FilterBuilder as z };
1457
+ export { IsoInstant as $, DatabaseTableProps as A, BlobStore as At, BatchOp as B, PresenceCrypto as C, BridgeError as Ct, PresenceSharingMode as D, toBridgeError as Dt, PresenceSharing as E, isBridgeErrorCode as Et, DatabaseTableRow as F, CellMap as G, BridgeColumnAnnotation as H, UseDatabaseTable as I, DatabaseBridge as J, CellValueParse as K, emptyFilter as L, UseTableList as M, useDatabaseTable as N, useTableList as O, BlobMeta as Ot, DatabaseTablePhase as P, Id as Q, filterIsComplete as R, SyncEmbedResolver as S, BRIDGE_ERROR_CODES as St, PresencePeer as T, isBridgeError as Tt, BridgeTableDescription as U, BridgeColumn as V, BridgeValueInput as W, FilterConditionInput as X, DomainEvent as Y, FilterInput as Z, PdfPreviewProps as _, TableDescription as _t, AttributeTypePicker as a, ProtocolCapability as at, RenderAttributeProps as b, TableRef as bt, DocTags as c, QueryOperator as ct, EditorProviderProps as d, RowPage as dt, MutationContext as et, EmbedSandboxPolicy as f, RowWire as ft, PdfPreview as g, SubscriptionStatus as gt, MentionProvider as h, SubscriptionObserver as ht, AccessLevel as i, PageSnapshot as it, DatabaseTableView as j, createMemoryBlobStore as jt, DatabaseTable as k, BlobRef as kt, EditorContextValue as l, QuerySemantics as lt, MentionInteractions as m, SubscriptionHandle as mt, DEFAULT_EMBED_SANDBOX as n, OperationStatus as nt, AttributeTypePickerProps as o, ProtocolDescriptor as ot, MentionEntry as p, SortInput as pt, Column as q, EditorProvider as r, PageQuery as rt, DocTag as s, ProtocolLimits as st, useEditorContext as t, MutationReceipt as tt, EditorMode as u, Revision as ut, PresenceConfig as v, TableEnvelopeBase as vt, PresenceIdentity as w, BridgeErrorCode as wt, SelectionRef as x, TableSnapshot as xt, RenderAttribute as y, TableEvent as yt, FilterBuilder 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 IsoInstant, A as DatabaseTableProps, At as BlobStore, B as BatchOp, C as PresenceCrypto, Ct as BridgeError, D as PresenceSharingMode, Dt as toBridgeError, E as PresenceSharing, Et as isBridgeErrorCode, F as DatabaseTableRow, G as CellMap, H as BridgeColumnAnnotation, I as UseDatabaseTable, J as DatabaseBridge, K as CellValueParse, L as emptyFilter, M as UseTableList, N as useDatabaseTable, O as useTableList, Ot as BlobMeta, P as DatabaseTablePhase, Q as Id, R as filterIsComplete, S as TagEditorProps, St as BRIDGE_ERROR_CODES, T as PresencePeer, Tt as isBridgeError, U as BridgeTableDescription, V as BridgeColumn, W as BridgeValueInput, X as FilterConditionInput, Y as DomainEvent, Z as FilterInput, _ as RenderAttribute, _t as TableDescription, a as AttributeTypePicker, at as ProtocolCapability, b as SyncEmbedResolver, bt as TableRef, c as EditorMode, ct as QueryOperator, d as MentionEntry, dt as RowPage, et as MutationContext, f as MentionInteractions, ft as RowWire, g as PresenceConfig, gt as SubscriptionStatus, h as PdfPreviewProps, ht as SubscriptionObserver, i as AccessLevel, it as PageSnapshot, j as DatabaseTableView, jt as createMemoryBlobStore, k as DatabaseTable, kt as BlobRef, l as EditorProviderProps, lt as QuerySemantics, m as PdfPreview, mt as SubscriptionHandle, n as DEFAULT_EMBED_SANDBOX, nt as OperationStatus, o as AttributeTypePickerProps, ot as ProtocolDescriptor, p as MentionProvider, pt as SortInput, q as Column, r as EditorProvider, rt as PageQuery, s as EditorContextValue, st as ProtocolLimits, t as useEditorContext, tt as MutationReceipt, u as EmbedSandboxPolicy, ut as Revision, v as RenderAttributeProps, vt as TableEnvelopeBase, w as PresenceIdentity, wt as BridgeErrorCode, x as TagEditor, xt as TableSnapshot, y as SelectionRef, yt as TableEvent, z as FilterBuilder } from "./index-DmC2uQ2K.mjs";
2
+ import { $ as IsoInstant, A as DatabaseTableProps, At as BlobStore, B as BatchOp, C as PresenceCrypto, Ct as BridgeError, D as PresenceSharingMode, Dt as toBridgeError, E as PresenceSharing, Et as isBridgeErrorCode, F as DatabaseTableRow, G as CellMap, H as BridgeColumnAnnotation, I as UseDatabaseTable, J as DatabaseBridge, K as CellValueParse, L as emptyFilter, M as UseTableList, N as useDatabaseTable, O as useTableList, Ot as BlobMeta, P as DatabaseTablePhase, Q as Id, R as filterIsComplete, S as SyncEmbedResolver, St as BRIDGE_ERROR_CODES, T as PresencePeer, Tt as isBridgeError, U as BridgeTableDescription, V as BridgeColumn, W as BridgeValueInput, X as FilterConditionInput, Y as DomainEvent, Z as FilterInput, _ as PdfPreviewProps, _t as TableDescription, a as AttributeTypePicker, at as ProtocolCapability, b as RenderAttributeProps, bt as TableRef, c as DocTags, ct as QueryOperator, d as EditorProviderProps, dt as RowPage, et as MutationContext, f as EmbedSandboxPolicy, ft as RowWire, g as PdfPreview, gt as SubscriptionStatus, h as MentionProvider, ht as SubscriptionObserver, i as AccessLevel, it as PageSnapshot, j as DatabaseTableView, jt as createMemoryBlobStore, k as DatabaseTable, kt as BlobRef, l as EditorContextValue, lt as QuerySemantics, m as MentionInteractions, mt as SubscriptionHandle, n as DEFAULT_EMBED_SANDBOX, nt as OperationStatus, o as AttributeTypePickerProps, ot as ProtocolDescriptor, p as MentionEntry, pt as SortInput, q as Column, r as EditorProvider, rt as PageQuery, s as DocTag, st as ProtocolLimits, t as useEditorContext, tt as MutationReceipt, u as EditorMode, ut as Revision, v as PresenceConfig, vt as TableEnvelopeBase, w as PresenceIdentity, wt as BridgeErrorCode, x as SelectionRef, xt as TableSnapshot, y as RenderAttribute, yt as TableEvent, z as FilterBuilder } from "./index-DzYwo6Px.mjs";
3
3
  import * as React 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";
@@ -344,7 +344,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
344
344
  //#endregion
345
345
  //#region src/shared/ui/Badge.d.ts
346
346
  declare const badgeVariants: (props?: ({
347
- variant?: "default" | "destructive" | "outline" | "secondary" | "custom" | null | undefined;
347
+ variant?: "default" | "custom" | "secondary" | "destructive" | "outline" | null | undefined;
348
348
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
349
349
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
350
350
  asChild?: boolean;
@@ -355,7 +355,7 @@ declare function BareSelect({ className, children, ...props }: React.ComponentPr
355
355
  //#endregion
356
356
  //#region src/shared/ui/Button.d.ts
357
357
  declare const buttonVariants: (props?: ({
358
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
358
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
359
359
  size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
360
360
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
361
361
  declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
@@ -491,4 +491,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
491
491
  //#region src/shared/ui/cn.d.ts
492
492
  declare function cn(...inputs: ClassValue[]): string;
493
493
  //#endregion
494
- 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, DEFAULT_EMBED_SANDBOX, type DatabaseBridge, DatabaseTable, type DatabaseTablePhase, type DatabaseTableProps, type DatabaseTableRow, type DatabaseTableView, DocHeader, 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, type TagEditor, type TagEditorProps, 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, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
494
+ 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, 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, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as DropdownMenuTrigger, $t as BookOpen, A as SelectItem, At as Card, B as DropdownMenuCheckboxItem, Bt as useDoc, C as emptyFilter, Ct as isBridgeErrorCode, D as Select, Dt as TEXT_TYPES, E as ScrollArea, Et as parseCellValue, F as SelectTrigger, Ft as CardHeader, G as DropdownMenuPortal, Gt as useSelectionView, H as DropdownMenuGroup, Ht as usePresence, I as SelectValue, It as CardTitle, J as DropdownMenuSeparator, K as DropdownMenuRadioGroup, Kt as useText, L as Label, Lt as Badge, M as SelectScrollDownButton, Mt as CardContent, N as SelectScrollUpButton, Nt as CardDescription, O as SelectContent, Ot as columnAnnotation, P as SelectSeparator, Pt as CardFooter, Q as DropdownMenuSubTrigger, R as InlineEditInput, Rt as badgeVariants, S as FilterBuilder, St as isBridgeError, T as SegmentSelector, Tt as conditionMatches, U as DropdownMenuItem, Ut as usePresenceSharing, V as DropdownMenuContent, Vt as useMeta, W as DropdownMenuLabel, Wt as useSelection, X as DropdownMenuSub, Xt as Pen, Y as DropdownMenuShortcut, Yt as renderRuns, Z as DropdownMenuSubContent, Zt as Eye, _ as parseFrontmatter, _t as PROTOCOL_VERSION, at as PopoverHeader, b as cellValueEqual, bt as BRIDGE_ERROR_CODES, c as SHAPE_FONT_STACKS, ct as Input, dt as buttonVariants, en as createMemoryBlobStore, et as Separator, f as markToggleAction, ft as BareSelect, g as mapFrontmatter, gt as BASELINE_CAPABILITIES, h as mdToBlocks, ht as AlertTitle, i as DEFAULT_EMBED_SANDBOX, it as PopoverDescription, j as SelectLabel, jt as CardAction, k as SelectGroup, kt as Skeleton, lt as Checkbox, m as insertNative, mt as AlertDescription, n as EditorProvider, nt as PopoverAnchor, ot as PopoverTitle, p as htmlToBlocks, pt as Alert, q as DropdownMenuRadioItem, qt as DocblocksI18nProvider, r as useEditorContext, rt as PopoverContent, s as SHAPE_FONT_OPTIONS, st as PopoverTrigger, t as Editor, tt as Popover, u as FORMAT_PALETTE, ut as Button, v as GridBody, vt as isDatabaseBridge, w as filterIsComplete, wt as toBridgeError, x as newMutationContext, xt as BridgeError, y as useDatabaseTable, yt as validateProtocolDescriptor, z as DropdownMenu, zt as useBlock } from "./Editor-DEHzA7Mt.mjs";
1
+ import { $ as DropdownMenuSubTrigger, $t as BookOpen, A as SelectItem, At as Card, B as DropdownMenu, Bt as useDoc, C as emptyFilter, Ct as isBridgeErrorCode, D as Select, Dt as TEXT_TYPES, E as ScrollArea, Et as parseCellValue, F as SelectTrigger, Ft as CardHeader, G as DropdownMenuLabel, Gt as useSelectionView, H as DropdownMenuContent, Ht as usePresence, I as SelectValue, It as CardTitle, J as DropdownMenuRadioItem, K as DropdownMenuPortal, Kt as useText, L as Label, Lt as Badge, M as SelectScrollDownButton, Mt as CardContent, N as SelectScrollUpButton, Nt as CardDescription, O as SelectContent, Ot as columnAnnotation, P as SelectSeparator, Pt as CardFooter, Q as DropdownMenuSubContent, R as InlineEditInput, Rt as badgeVariants, S as FilterBuilder, St as isBridgeError, T as SegmentSelector, Tt as conditionMatches, U as DropdownMenuGroup, Ut as usePresenceSharing, V as DropdownMenuCheckboxItem, Vt as useMeta, W as DropdownMenuItem, Wt as useSelection, X as DropdownMenuShortcut, Xt as Pen, Y as DropdownMenuSeparator, Yt as renderRuns, Z as DropdownMenuSub, Zt as Eye, _ as parseFrontmatter, _t as PROTOCOL_VERSION, at as PopoverDescription, b as cellValueEqual, bt as BRIDGE_ERROR_CODES, c as SHAPE_FONT_STACKS, ct as PopoverTrigger, dt as buttonVariants, en as createMemoryBlobStore, et as DropdownMenuTrigger, f as markToggleAction, ft as BareSelect, g as mapFrontmatter, gt as BASELINE_CAPABILITIES, h as mdToBlocks, ht as AlertTitle, i as DEFAULT_EMBED_SANDBOX, it as PopoverContent, j as SelectLabel, jt as CardAction, k as SelectGroup, kt as Skeleton, lt as Checkbox, m as insertNative, mt as AlertDescription, n as EditorProvider, nt as Popover, ot as PopoverHeader, p as htmlToBlocks, pt as Alert, q as DropdownMenuRadioGroup, qt as DocblocksI18nProvider, r as useEditorContext, rt as PopoverAnchor, s as SHAPE_FONT_OPTIONS, st as PopoverTitle, t as Editor, tt as Separator, u as FORMAT_PALETTE, ut as Button, v as GridBody, vt as isDatabaseBridge, w as filterIsComplete, wt as toBridgeError, x as newMutationContext, xt as BridgeError, y as useDatabaseTable, yt as validateProtocolDescriptor, z as Input, zt as useBlock } from "./Editor-DKO25suc.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";
@@ -1,4 +1,4 @@
1
- import { Jt as INLINE_CODE_CLASS, Qt as CodeXml, T as SegmentSelector, Zt as Eye, a as childrenSlot, d as textOf, ht as AlertTitle, kt as Skeleton, l as TextBlock, mt as AlertDescription, o as CodeHeader, pt as Alert, r as useEditorContext } from "../Editor-DEHzA7Mt.mjs";
1
+ import { Jt as INLINE_CODE_CLASS, Qt as CodeXml, T as SegmentSelector, Zt as Eye, a as childrenSlot, d as textOf, ht as AlertTitle, kt as Skeleton, l as TextBlock, mt as AlertDescription, o as CodeHeader, pt as Alert, r as useEditorContext } from "../Editor-DKO25suc.mjs";
2
2
  import { f as LoaderCircle, l as TriangleAlert } from "../constants-D8PSgkwi.mjs";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import { useTranslation } from "react-i18next";
@@ -1,4 +1,4 @@
1
- import { h as PdfPreviewProps } from "../index-DmC2uQ2K.mjs";
1
+ import { _ as PdfPreviewProps } from "../index-DzYwo6Px.mjs";
2
2
  //#region src/pdf/PdfFirstPage.d.ts
3
3
  declare function PdfFirstPage({ id, blockType, url, name }: PdfPreviewProps): import("react").JSX.Element;
4
4
  //#endregion
package/dist/styles.css CHANGED
@@ -723,9 +723,6 @@
723
723
  .min-h-6 {
724
724
  min-height: calc(var(--spacing) * 6);
725
725
  }
726
- .min-h-11 {
727
- min-height: calc(var(--spacing) * 11);
728
- }
729
726
  .min-h-16 {
730
727
  min-height: calc(var(--spacing) * 16);
731
728
  }
@@ -762,9 +759,6 @@
762
759
  .w-7 {
763
760
  width: calc(var(--spacing) * 7);
764
761
  }
765
- .w-8 {
766
- width: calc(var(--spacing) * 8);
767
- }
768
762
  .w-10 {
769
763
  width: calc(var(--spacing) * 10);
770
764
  }
@@ -774,6 +768,9 @@
774
768
  .w-28 {
775
769
  width: calc(var(--spacing) * 28);
776
770
  }
771
+ .w-32 {
772
+ width: calc(var(--spacing) * 32);
773
+ }
777
774
  .w-40 {
778
775
  width: calc(var(--spacing) * 40);
779
776
  }
@@ -843,9 +840,6 @@
843
840
  .min-w-10 {
844
841
  min-width: calc(var(--spacing) * 10);
845
842
  }
846
- .min-w-24 {
847
- min-width: calc(var(--spacing) * 24);
848
- }
849
843
  .min-w-32 {
850
844
  min-width: calc(var(--spacing) * 32);
851
845
  }
@@ -1014,9 +1008,6 @@
1014
1008
  .auto-rows-min {
1015
1009
  grid-auto-rows: min-content;
1016
1010
  }
1017
- .grid-cols-3 {
1018
- grid-template-columns: repeat(3, minmax(0, 1fr));
1019
- }
1020
1011
  .grid-cols-6 {
1021
1012
  grid-template-columns: repeat(6, minmax(0, 1fr));
1022
1013
  }
@@ -1701,9 +1692,6 @@
1701
1692
  .text-\(--docblocks-link-color\) {
1702
1693
  color: var(--docblocks-link-color);
1703
1694
  }
1704
- .text-\(--docblocks-muted-foreground\) {
1705
- color: var(--docblocks-muted-foreground);
1706
- }
1707
1695
  .text-\(--docblocks-muted-text-color\) {
1708
1696
  color: var(--docblocks-muted-text-color);
1709
1697
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docblocks-react-ui",
3
- "version": "0.9.1",
3
+ "version": "0.10.1",
4
4
  "description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",