docblocks-react-ui 0.7.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # docblocks-react-ui
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4e4eb46: The headless whole-document import: `importDocument(doc, source, kind)`
8
+ (`kind: "markdown" | "html"`) fills a FRESH document (the empty root) from
9
+ a markdown or HTML payload — the consumer-side pre-attach write (the
10
+ content stands in the first full-state bootstrap the attach sends, so the
11
+ first wire sync persists it). The parsed blocks materialize over the paste
12
+ parsers' shared insertion in ONE `doc.transact` (one undo step, one wire
13
+ update). The indents stand the parser's absolute nesting (there is no caret
14
+ to re-base to) over the sequence's jump-rule clamp (the first block anchors
15
+ at indent 0; the rest are capped at the predecessor's +1 — the parser's
16
+ dropped-parent gap cannot roll back the import). An empty (or
17
+ whitespace-only) payload is a no-op (nothing is written, no transaction);
18
+ a non-fresh document (the root already has children) throws the typed
19
+ `ImportDocumentError`. The paste path is unchanged.
20
+
3
21
  ## 0.7.0
4
22
 
5
23
  ### Minor Changes
@@ -31338,4 +31338,4 @@ function Editor({ view = "page", formatPalette = FORMAT_PALETTE }) {
31338
31338
  });
31339
31339
  }
31340
31340
  //#endregion
31341
- export { SelectValue as $, useBlock as A, CardFooter as At, DEFAULT_EMBED_SANDBOX as B, AlertTitle as Bt, isBridgeError as C, PopoverTrigger as Ct, parseCellValue as D, CardAction as Dt, conditionMatches as E, Card as Et, useSelection as F, BareSelect as Ft, SelectContent as G, Eye as Gt, SegmentSelector as H, INLINE_CODE_CLASS as Ht, useSelectionView as I, Badge as It, SelectLabel as J, createMemoryBlobStore as Jt, SelectGroup as K, CodeXml as Kt, useText as L, badgeVariants as Lt, useMeta as M, CardTitle as Mt, usePresence as N, Button as Nt, TEXT_TYPES as O, CardContent as Ot, usePresenceSharing as P, buttonVariants as Pt, SelectTrigger as Q, EditorProvider as R, Alert as Rt, BridgeError as S, PopoverTitle as St, toBridgeError as T, Checkbox as Tt, ScrollArea as U, renderRuns as Ut, Skeleton as V, DocblocksI18nProvider as Vt, Select as W, Pen as Wt, SelectScrollUpButton as X, SelectScrollDownButton as Y, SelectSeparator as Z, BASELINE_CAPABILITIES as _, Popover as _t, SHAPE_FONT_STACKS as a, DropdownMenuItem as at, validateProtocolDescriptor as b, PopoverDescription as bt, textOf as c, DropdownMenuRadioGroup as ct, useDatabaseTable as d, DropdownMenuShortcut as dt, Label as et, cellValueEqual as f, DropdownMenuSub as ft, filterIsComplete as g, Separator as gt, emptyFilter as h, DropdownMenuTrigger as ht, SHAPE_FONT_OPTIONS as i, DropdownMenuGroup as it, useDoc as j, CardHeader as jt, columnAnnotation as k, CardDescription as kt, markToggleAction as l, DropdownMenuRadioItem as lt, FilterBuilder as m, DropdownMenuSubTrigger as mt, childrenSlot as n, DropdownMenuCheckboxItem as nt, TextBlock as o, DropdownMenuLabel as ot, newMutationContext as p, DropdownMenuSubContent as pt, SelectItem as q, BookOpen as qt, CodeHeader as r, DropdownMenuContent as rt, FORMAT_PALETTE as s, DropdownMenuPortal as st, Editor as t, DropdownMenu as tt, GridBody as u, DropdownMenuSeparator as ut, PROTOCOL_VERSION as v, PopoverAnchor as vt, isBridgeErrorCode as w, Input as wt, BRIDGE_ERROR_CODES as x, PopoverHeader as xt, isDatabaseBridge as y, PopoverContent as yt, useEditorContext as z, AlertDescription as zt };
31341
+ export { SelectScrollUpButton as $, parseCellValue as A, CardAction as At, useText as B, badgeVariants as Bt, validateProtocolDescriptor as C, PopoverDescription as Ct, isBridgeErrorCode as D, Input as Dt, isBridgeError as E, PopoverTrigger as Et, useMeta as F, CardTitle as Ft, SegmentSelector as G, INLINE_CODE_CLASS as Gt, useEditorContext as H, AlertDescription as Ht, usePresence as I, Button as It, SelectContent as J, Eye as Jt, ScrollArea as K, renderRuns as Kt, usePresenceSharing as L, buttonVariants as Lt, columnAnnotation as M, CardDescription as Mt, useBlock as N, CardFooter as Nt, toBridgeError as O, Checkbox as Ot, useDoc as P, CardHeader as Pt, SelectScrollDownButton as Q, useSelection as R, BareSelect as Rt, isDatabaseBridge as S, PopoverContent as St, BridgeError as T, PopoverTitle as Tt, DEFAULT_EMBED_SANDBOX as U, AlertTitle as Ut, EditorProvider as V, Alert as Vt, Skeleton as W, DocblocksI18nProvider as Wt, SelectItem as X, BookOpen as Xt, SelectGroup as Y, CodeXml as Yt, SelectLabel as Z, createMemoryBlobStore as Zt, FilterBuilder as _, DropdownMenuSubTrigger as _t, SHAPE_FONT_STACKS as a, DropdownMenuCheckboxItem as at, BASELINE_CAPABILITIES as b, Popover as bt, textOf as c, DropdownMenuItem as ct, insertNative as d, DropdownMenuRadioGroup as dt, SelectSeparator as et, mdToBlocks as f, DropdownMenuRadioItem as ft, newMutationContext as g, DropdownMenuSubContent as gt, cellValueEqual as h, DropdownMenuSub as ht, SHAPE_FONT_OPTIONS as i, DropdownMenu as it, TEXT_TYPES as j, CardContent as jt, conditionMatches as k, Card as kt, markToggleAction as l, DropdownMenuLabel as lt, useDatabaseTable as m, DropdownMenuShortcut as mt, childrenSlot as n, SelectValue as nt, TextBlock as o, DropdownMenuContent as ot, GridBody as p, DropdownMenuSeparator as pt, Select as q, Pen as qt, CodeHeader as r, Label as rt, FORMAT_PALETTE as s, DropdownMenuGroup as st, Editor as t, SelectTrigger as tt, htmlToBlocks as u, DropdownMenuPortal as ut, emptyFilter as v, DropdownMenuTrigger as vt, BRIDGE_ERROR_CODES as w, PopoverHeader as wt, PROTOCOL_VERSION as x, PopoverAnchor as xt, filterIsComplete as y, Separator as yt, useSelectionView as z, Badge as zt };
package/dist/index.d.mts CHANGED
@@ -259,6 +259,21 @@ declare function markToggleAction(doc: Doc, blockId: BlockId, from: number, to:
259
259
  * through the editor's `formatPalette` prop — a `string[]` of hex or var). */
260
260
  declare const FORMAT_PALETTE: readonly string[];
261
261
  //#endregion
262
+ //#region src/editing/import.d.ts
263
+ /** The import payload kind (the parser dispatch). */
264
+ type ImportKind = "markdown" | "html";
265
+ /** The document is not fresh: the import requires the empty root. */
266
+ declare class ImportDocumentError extends Error {
267
+ constructor(message: string);
268
+ }
269
+ /**
270
+ * Import a markdown / HTML payload into a fresh document (the empty root):
271
+ * the parsed blocks fill the root in one transaction (one undo step, one
272
+ * wire update). An empty (or whitespace-only) payload is a no-op. Throws
273
+ * `ImportDocumentError` when the root already has children.
274
+ */
275
+ declare function importDocument(doc: Doc, source: string, kind: ImportKind): void;
276
+ //#endregion
262
277
  //#region src/text/runs.d.ts
263
278
  /**
264
279
  * Render inline text runs with their marks (lenient reader contract:
@@ -322,7 +337,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
322
337
  //#endregion
323
338
  //#region src/shared/ui/Badge.d.ts
324
339
  declare const badgeVariants: (props?: ({
325
- variant?: "default" | "destructive" | "outline" | "secondary" | "custom" | null | undefined;
340
+ variant?: "default" | "destructive" | "custom" | "secondary" | "outline" | null | undefined;
326
341
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
327
342
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
328
343
  asChild?: boolean;
@@ -333,7 +348,7 @@ declare function BareSelect({ className, children, ...props }: React.ComponentPr
333
348
  //#endregion
334
349
  //#region src/shared/ui/Button.d.ts
335
350
  declare const buttonVariants: (props?: ({
336
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
351
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
337
352
  size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
338
353
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
339
354
  declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
@@ -467,4 +482,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
467
482
  //#region src/shared/ui/cn.d.ts
468
483
  declare function cn(...inputs: ClassValue[]): string;
469
484
  //#endregion
470
- export { type AccessLevel, Alert, AlertDescription, AlertTitle, 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, 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 Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
485
+ export { type AccessLevel, Alert, AlertDescription, AlertTitle, 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 Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, 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 SelectValue, A as useBlock, At as CardFooter, B as DEFAULT_EMBED_SANDBOX, Bt as AlertTitle, C as isBridgeError, Ct as PopoverTrigger, D as parseCellValue, Dt as CardAction, E as conditionMatches, Et as Card, F as useSelection, Ft as BareSelect, G as SelectContent, Gt as Eye, H as SegmentSelector, I as useSelectionView, It as Badge, J as SelectLabel, Jt as createMemoryBlobStore, K as SelectGroup, L as useText, Lt as badgeVariants, M as useMeta, Mt as CardTitle, N as usePresence, Nt as Button, O as TEXT_TYPES, Ot as CardContent, P as usePresenceSharing, Pt as buttonVariants, Q as SelectTrigger, R as EditorProvider, Rt as Alert, S as BridgeError, St as PopoverTitle, T as toBridgeError, Tt as Checkbox, U as ScrollArea, Ut as renderRuns, V as Skeleton, Vt as DocblocksI18nProvider, W as Select, Wt as Pen, X as SelectScrollUpButton, Y as SelectScrollDownButton, Z as SelectSeparator, _ as BASELINE_CAPABILITIES, _t as Popover, a as SHAPE_FONT_STACKS, at as DropdownMenuItem, b as validateProtocolDescriptor, bt as PopoverDescription, ct as DropdownMenuRadioGroup, d as useDatabaseTable, dt as DropdownMenuShortcut, et as Label, f as cellValueEqual, ft as DropdownMenuSub, g as filterIsComplete, gt as Separator, h as emptyFilter, ht as DropdownMenuTrigger, i as SHAPE_FONT_OPTIONS, it as DropdownMenuGroup, j as useDoc, jt as CardHeader, k as columnAnnotation, kt as CardDescription, l as markToggleAction, lt as DropdownMenuRadioItem, m as FilterBuilder, mt as DropdownMenuSubTrigger, nt as DropdownMenuCheckboxItem, ot as DropdownMenuLabel, p as newMutationContext, pt as DropdownMenuSubContent, q as SelectItem, qt as BookOpen, rt as DropdownMenuContent, s as FORMAT_PALETTE, st as DropdownMenuPortal, t as Editor, tt as DropdownMenu, u as GridBody, ut as DropdownMenuSeparator, v as PROTOCOL_VERSION, vt as PopoverAnchor, w as isBridgeErrorCode, wt as Input, x as BRIDGE_ERROR_CODES, xt as PopoverHeader, y as isDatabaseBridge, yt as PopoverContent, z as useEditorContext, zt as AlertDescription } from "./Editor-BM6-5TFS.mjs";
1
+ import { $ as SelectScrollUpButton, A as parseCellValue, At as CardAction, B as useText, Bt as badgeVariants, C as validateProtocolDescriptor, Ct as PopoverDescription, D as isBridgeErrorCode, Dt as Input, E as isBridgeError, Et as PopoverTrigger, F as useMeta, Ft as CardTitle, G as SegmentSelector, H as useEditorContext, Ht as AlertDescription, I as usePresence, It as Button, J as SelectContent, Jt as Eye, K as ScrollArea, Kt as renderRuns, L as usePresenceSharing, Lt as buttonVariants, M as columnAnnotation, Mt as CardDescription, N as useBlock, Nt as CardFooter, O as toBridgeError, Ot as Checkbox, P as useDoc, Pt as CardHeader, Q as SelectScrollDownButton, R as useSelection, Rt as BareSelect, S as isDatabaseBridge, St as PopoverContent, T as BridgeError, Tt as PopoverTitle, U as DEFAULT_EMBED_SANDBOX, Ut as AlertTitle, V as EditorProvider, Vt as Alert, W as Skeleton, Wt as DocblocksI18nProvider, X as SelectItem, Xt as BookOpen, Y as SelectGroup, Z as SelectLabel, Zt as createMemoryBlobStore, _ as FilterBuilder, _t as DropdownMenuSubTrigger, a as SHAPE_FONT_STACKS, at as DropdownMenuCheckboxItem, b as BASELINE_CAPABILITIES, bt as Popover, ct as DropdownMenuItem, d as insertNative, dt as DropdownMenuRadioGroup, et as SelectSeparator, f as mdToBlocks, ft as DropdownMenuRadioItem, g as newMutationContext, gt as DropdownMenuSubContent, h as cellValueEqual, ht as DropdownMenuSub, i as SHAPE_FONT_OPTIONS, it as DropdownMenu, j as TEXT_TYPES, jt as CardContent, k as conditionMatches, kt as Card, l as markToggleAction, lt as DropdownMenuLabel, m as useDatabaseTable, mt as DropdownMenuShortcut, nt as SelectValue, ot as DropdownMenuContent, p as GridBody, pt as DropdownMenuSeparator, q as Select, qt as Pen, rt as Label, s as FORMAT_PALETTE, st as DropdownMenuGroup, t as Editor, tt as SelectTrigger, u as htmlToBlocks, ut as DropdownMenuPortal, v as emptyFilter, vt as DropdownMenuTrigger, w as BRIDGE_ERROR_CODES, wt as PopoverHeader, x as PROTOCOL_VERSION, xt as PopoverAnchor, y as filterIsComplete, yt as Separator, z as useSelectionView, zt as Badge } from "./Editor-3Oh9KNyH.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 { jsx, jsxs } from "react/jsx-runtime";
@@ -712,6 +712,45 @@ function DocHeaderInner({ doc, view, onViewChange, accessLevel = "editor", mode
712
712
  });
713
713
  }
714
714
  //#endregion
715
+ //#region src/editing/import.ts
716
+ /** The document is not fresh: the import requires the empty root. */
717
+ var ImportDocumentError = class extends Error {
718
+ constructor(message) {
719
+ super(message);
720
+ this.name = "ImportDocumentError";
721
+ }
722
+ };
723
+ /**
724
+ * Import a markdown / HTML payload into a fresh document (the empty root):
725
+ * the parsed blocks fill the root in one transaction (one undo step, one
726
+ * wire update). An empty (or whitespace-only) payload is a no-op. Throws
727
+ * `ImportDocumentError` when the root already has children.
728
+ */
729
+ function importDocument(doc, source, kind) {
730
+ const rootId = doc.meta.id;
731
+ const existing = doc.getChildren(rootId);
732
+ if (existing.length > 0) throw new ImportDocumentError(`importDocument: the document is not fresh (the root has ${existing.length} children) — the import requires the empty root.`);
733
+ const parsed = kind === "markdown" ? mdToBlocks(source) : htmlToBlocks(source);
734
+ if (parsed.length === 0) return;
735
+ doc.transact(() => materializeImport(doc, parsed));
736
+ }
737
+ /**
738
+ * The materialization into the root: the blocks append in the parser's
739
+ * order (each after the previous), the indents absolute (the jump-rule
740
+ * clamp only — the insertion's `after` chain makes every landing a tail
741
+ * append, so no block is displaced).
742
+ */
743
+ function materializeImport(doc, parsed) {
744
+ const rootId = doc.meta.id;
745
+ let after;
746
+ let prevIndent = 0;
747
+ for (const block of parsed) {
748
+ const indent = after === void 0 ? 0 : Math.min(block.indent, prevIndent + 1);
749
+ after = insertNative(doc, block, rootId, after, indent);
750
+ prevIndent = indent;
751
+ }
752
+ }
753
+ //#endregion
715
754
  //#region src/fonts.ts
716
755
  /**
717
756
  * The package's font subsystem — the single place for the package's fonts.
@@ -756,4 +795,4 @@ const UI_FONT_STACK = "'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif
756
795
  */
757
796
  const MONO_FONT_STACK = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
758
797
  //#endregion
759
- export { Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, BridgeError, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DEFAULT_EMBED_SANDBOX, DatabaseTable, DocHeader, DocblocksI18nProvider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorProvider, FORMAT_PALETTE, FilterBuilder, Input, Label, MONO_FONT_STACK, PROTOCOL_VERSION, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, TEXT_TYPES, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UI_FONT_ID, UI_FONT_STACK, badgeVariants, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
798
+ export { Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, BridgeError, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DEFAULT_EMBED_SANDBOX, DatabaseTable, DocHeader, DocblocksI18nProvider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorProvider, FORMAT_PALETTE, FilterBuilder, ImportDocumentError, Input, Label, MONO_FONT_STACK, PROTOCOL_VERSION, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, TEXT_TYPES, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UI_FONT_ID, UI_FONT_STACK, 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 };
@@ -1,4 +1,4 @@
1
- import { Bt as AlertTitle, Gt as Eye, H as SegmentSelector, Ht as INLINE_CODE_CLASS, Kt as CodeXml, Rt as Alert, V as Skeleton, c as textOf, n as childrenSlot, o as TextBlock, r as CodeHeader, z as useEditorContext, zt as AlertDescription } from "../Editor-BM6-5TFS.mjs";
1
+ import { G as SegmentSelector, Gt as INLINE_CODE_CLASS, H as useEditorContext, Ht as AlertDescription, Jt as Eye, Ut as AlertTitle, Vt as Alert, W as Skeleton, Yt as CodeXml, c as textOf, n as childrenSlot, o as TextBlock, r as CodeHeader } from "../Editor-3Oh9KNyH.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 { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docblocks-react-ui",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",