docblocks-react-ui 0.17.0 → 0.18.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/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
- import { n as BlockRendererMap, r as BlockRendererProps, t as BlockRenderer } from "./index-YJcgf8Hh.mjs";
2
- import { $ as MutationReceipt, A as UseTableList, At as AttributeTypePicker, B as BridgeColumnAnnotation, C as PresencePeer, Ct as isBridgeError, D as DatabaseTable, Dt as BlobRef, E as useTableList, Et as BlobMeta, F as emptyFilter, G as Column, H as BridgeValueInput, I as filterIsComplete, J as FilterConditionInput, K as DatabaseBridge, L as FilterBuilder, M as DatabaseTablePhase, Mt as RenderAttribute, N as DatabaseTableRow, Nt as RenderAttributeProps, O as DatabaseTableProps, Ot as BlobStore, P as UseDatabaseTable, Q as MutationContext, R as BatchOp, S as PresenceIdentity, St as BridgeErrorCode, T as PresenceSharingMode, Tt as toBridgeError, U as CellMap, V as BridgeTableDescription, W as CellValueParse, X as Id, Y as FilterInput, Z as IsoInstant, _ as EditorMode, _t as TableEvent, a as EditorContextValue, at as ProtocolLimits, b as MentionProvider, bt as BRIDGE_ERROR_CODES, c as SelectionRef, ct as Revision, d as PdfPreviewProps, dt as SortInput, et as OperationStatus, f as CoverPresetSets, ft as SubscriptionHandle, g as AccessLevel, gt as TableEnvelopeBase, h as DocTags, ht as TableDescription, i as EditorProviderProps, it as ProtocolDescriptor, j as useDatabaseTable, jt as AttributeTypePickerProps, k as DatabaseTableView, kt as createMemoryBlobStore, l as PresenceConfig, lt as RowPage, m as DocTag, mt as SubscriptionStatus, n as DEFAULT_EMBED_SANDBOX, nt as PageSnapshot, o as EmbedSandboxPolicy, ot as QueryOperator, p as DocDescription, pt as SubscriptionObserver, q as DomainEvent, r as EditorProvider, rt as ProtocolCapability, s as SyncEmbedResolver, st as QuerySemantics, t as useEditorContext, tt as PageQuery, u as PdfPreview, ut as RowWire, v as MentionEntry, vt as TableRef, w as PresenceSharing, wt as isBridgeErrorCode, x as PresenceCrypto, xt as BridgeError, y as MentionInteractions, yt as TableSnapshot, z as BridgeColumn } from "./index-C3vzW1Mv.mjs";
1
+ import { a as PresenceCrypto, c as PresenceSharing, l as PresenceSharingMode, n as BlockRendererMap, o as PresenceIdentity, r as BlockRendererProps, s as PresencePeer, t as BlockRenderer } from "./index-G44JW36p.mjs";
2
+ import { $ as Column, A as emptyFilter, B as DomainEvent, C as DatabaseTableProps, Ct as BlobStore, D as DatabaseTablePhase, Dt as RenderAttribute, E as useDatabaseTable, Et as AttributeTypePickerProps, F as BridgeColumn, G as ProtocolDescriptor, H as MutationReceipt, I as BridgeColumnAnnotation, J as SubscriptionObserver, K as ProtocolLimits, L as BridgeTableDescription, M as FilterBuilder, N as BatchOp, O as DatabaseTableRow, Ot as RenderAttributeProps, P as DatabaseBridge, Q as CellMap, R as BridgeValueInput, S as DatabaseTable, St as BlobRef, T as UseTableList, Tt as AttributeTypePicker, U as OperationStatus, V as MutationContext, W as ProtocolCapability, X as TableEnvelopeBase, Y as SubscriptionStatus, Z as TableEvent, _ as EditorMode, _t as BridgeErrorCode, a as EditorContextValue, at as PageSnapshot, b as MentionProvider, bt as toBridgeError, c as SelectionRef, ct as Revision, d as PdfPreviewProps, dt as SortInput, et as FilterConditionInput, f as CoverPresetSets, ft as TableDescription, g as AccessLevel, gt as BridgeError, h as DocTags, ht as BRIDGE_ERROR_CODES, i as EditorProviderProps, it as PageQuery, j as filterIsComplete, k as UseDatabaseTable, l as PresenceConfig, lt as RowPage, m as DocTag, mt as TableSnapshot, n as DEFAULT_EMBED_SANDBOX, nt as Id, o as EmbedSandboxPolicy, ot as QueryOperator, p as DocDescription, pt as TableRef, q as SubscriptionHandle, r as EditorProvider, rt as IsoInstant, s as SyncEmbedResolver, st as QuerySemantics, t as useEditorContext, tt as FilterInput, u as PdfPreview, ut as RowWire, v as MentionEntry, vt as isBridgeError, w as DatabaseTableView, wt as createMemoryBlobStore, x as useTableList, xt as BlobMeta, y as MentionInteractions, yt as isBridgeErrorCode, z as CellValueParse } from "./index-DLLPjOP5.mjs";
3
3
  import * as React$1 from "react";
4
- import { ComponentType, ReactNode } from "react";
5
- import { AttributeType, Block, BlockId, BlockType, Doc, DocMeta, MentionKind, MentionMark, PresenceState, Selection, SelectionView, SyncEmbedRef, TextRun, TypedAttributeValue } from "docblocks-core";
6
- import "i18next";
4
+ import { Component, ComponentType, ErrorInfo, ReactNode } from "react";
7
5
  import { VariantProps } from "class-variance-authority";
8
6
  import { ClassValue } from "clsx";
7
+ import { AttributeType, Block, BlockId, BlockType, Doc, DocMeta, MentionKind, MentionMark, PresenceState, Selection, SelectionView, SyncEmbedRef, TextRun, TypedAttributeValue } from "docblocks-core";
8
+ import "i18next";
9
9
  import { DayPicker } from "react-day-picker";
10
10
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
11
11
  import * as PopoverPrimitive from "@radix-ui/react-popover";
@@ -14,6 +14,47 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
14
14
  import * as SelectPrimitive from "@radix-ui/react-select";
15
15
  import * as TabsPrimitive from "@radix-ui/react-tabs";
16
16
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
17
+ //#region src/canvas/text-fonts.d.ts
18
+ /**
19
+ * The shape text's font options: the
20
+ * self-hosted set (the package ships the woff2 in fonts/ + the
21
+ * @font-face in the assembled stylesheet's section 5) — each with a
22
+ * Cyrillic-capable fallback in the stack (a file / family missing on
23
+ * the consumer's side degrades to the fallback, not to invisible).
24
+ *
25
+ * The weight coverage per family follows the family's available weights
26
+ * (PT Sans stands 700 over the 600, Lora / PT Serif stand 400 over the
27
+ * 300 — the browser's font matching picks the nearest stand).
28
+ */
29
+ declare const SHAPE_FONT_OPTIONS: readonly [{
30
+ readonly id: "Inter";
31
+ readonly label: "Inter";
32
+ readonly stack: "'Inter', 'Open Sans', Arial, sans-serif";
33
+ }, {
34
+ readonly id: "Open Sans";
35
+ readonly label: "Open Sans";
36
+ readonly stack: "'Open Sans', Arial, sans-serif";
37
+ }, {
38
+ readonly id: "PT Sans";
39
+ readonly label: "PT Sans";
40
+ readonly stack: "'PT Sans', 'Open Sans', Arial, sans-serif";
41
+ }, {
42
+ readonly id: "Lora";
43
+ readonly label: "Lora";
44
+ readonly stack: "'Lora', Georgia, 'Times New Roman', serif";
45
+ }, {
46
+ readonly id: "PT Serif";
47
+ readonly label: "PT Serif";
48
+ readonly stack: "'PT Serif', Georgia, 'Times New Roman', serif";
49
+ }, {
50
+ readonly id: "JetBrains Mono";
51
+ readonly label: "JetBrains Mono";
52
+ readonly stack: "'JetBrains Mono', 'Courier New', monospace";
53
+ }];
54
+ /** The name → the stack map (the absent / an unrecognized name falls to
55
+ * the raw name — a consumer's own loaded font is addressable by name). */
56
+ declare const SHAPE_FONT_STACKS: Record<string, string>;
57
+ //#endregion
17
58
  //#region src/Editor.d.ts
18
59
  /**
19
60
  * The document's view mode: the page flow (the root's children in reading
@@ -49,6 +90,29 @@ interface EditorProps {
49
90
  */
50
91
  declare function Editor({ view, formatPalette }: EditorProps): import("react").JSX.Element;
51
92
  //#endregion
93
+ //#region src/EditorErrorBoundary.d.ts
94
+ interface EditorErrorBoundaryProps {
95
+ children: ReactNode;
96
+ /** The consumer's replacement for the built-in note. */
97
+ fallback?: (props: {
98
+ error: unknown;
99
+ retry: () => void;
100
+ }) => ReactNode;
101
+ /** The reset key: a change re-renders the failed content. */
102
+ resetKey?: unknown;
103
+ }
104
+ interface EditorErrorBoundaryState {
105
+ error: unknown;
106
+ failed: boolean;
107
+ }
108
+ declare class EditorErrorBoundary extends Component<EditorErrorBoundaryProps, EditorErrorBoundaryState> {
109
+ state: EditorErrorBoundaryState;
110
+ static getDerivedStateFromError(error: unknown): EditorErrorBoundaryState;
111
+ componentDidUpdate(prev: EditorErrorBoundaryProps): void;
112
+ componentDidCatch(error: unknown, info: ErrorInfo): void;
113
+ render(): ReactNode;
114
+ }
115
+ //#endregion
52
116
  //#region src/database/bridge/annotation.d.ts
53
117
  /** The standard PostgreSQL type names per operator / input group. The contract
54
118
  * is type-agnostic — this is the package's DEFAULT catalog; a non-standard
@@ -109,47 +173,6 @@ declare function cellValueEqual(current: unknown, next: unknown): boolean;
109
173
  * convergence is the rebaseline (the next snapshot / the envelope). */
110
174
  declare function newMutationContext(): MutationContext;
111
175
  //#endregion
112
- //#region src/canvas/text-fonts.d.ts
113
- /**
114
- * The shape text's font options: the
115
- * self-hosted set (the package ships the woff2 in fonts/ + the
116
- * @font-face in the assembled stylesheet's section 5) — each with a
117
- * Cyrillic-capable fallback in the stack (a file / family missing on
118
- * the consumer's side degrades to the fallback, not to invisible).
119
- *
120
- * The weight coverage per family follows the family's available weights
121
- * (PT Sans stands 700 over the 600, Lora / PT Serif stand 400 over the
122
- * 300 — the browser's font matching picks the nearest stand).
123
- */
124
- declare const SHAPE_FONT_OPTIONS: readonly [{
125
- readonly id: "Inter";
126
- readonly label: "Inter";
127
- readonly stack: "'Inter', 'Open Sans', Arial, sans-serif";
128
- }, {
129
- readonly id: "Open Sans";
130
- readonly label: "Open Sans";
131
- readonly stack: "'Open Sans', Arial, sans-serif";
132
- }, {
133
- readonly id: "PT Sans";
134
- readonly label: "PT Sans";
135
- readonly stack: "'PT Sans', 'Open Sans', Arial, sans-serif";
136
- }, {
137
- readonly id: "Lora";
138
- readonly label: "Lora";
139
- readonly stack: "'Lora', Georgia, 'Times New Roman', serif";
140
- }, {
141
- readonly id: "PT Serif";
142
- readonly label: "PT Serif";
143
- readonly stack: "'PT Serif', Georgia, 'Times New Roman', serif";
144
- }, {
145
- readonly id: "JetBrains Mono";
146
- readonly label: "JetBrains Mono";
147
- readonly stack: "'JetBrains Mono', 'Courier New', monospace";
148
- }];
149
- /** The name → the stack map (the absent / an unrecognized name falls to
150
- * the raw name — a consumer's own loaded font is addressable by name). */
151
- declare const SHAPE_FONT_STACKS: Record<string, string>;
152
- //#endregion
153
176
  //#region src/DocHeaderAvatar.d.ts
154
177
  /** The content replacement's context: the standing avatar (`null` — none)
155
178
  * and the interaction's stand (`false` over the read-only modes — the
@@ -216,6 +239,48 @@ interface DocblocksI18nProviderProps {
216
239
  */
217
240
  declare function DocblocksI18nProvider({ locale, children }: DocblocksI18nProviderProps): import("react").JSX.Element;
218
241
  //#endregion
242
+ //#region src/shared/errors.d.ts
243
+ /**
244
+ * Typed react-ui errors.
245
+ *
246
+ * Mirrors docblocks-core's typed command errors: a failed prop contract,
247
+ * a failed blob-store lookup, or a failed fetch throws a named class
248
+ * (never a raw Error), so a consumer can catch by class and the error's
249
+ * identity survives the React boundary.
250
+ */
251
+ /** Base class for all docblocks-react-ui errors. */
252
+ declare class DocBlocksUiError extends Error {
253
+ constructor(message: string);
254
+ }
255
+ /** The EditorProvider's prop contract was violated: a mount-immutable prop
256
+ * (the `doc` instance, the `rootBlockId`) changed, or a required prop is
257
+ * absent. */
258
+ declare class EditorProviderError extends DocBlocksUiError {
259
+ constructor(message: string);
260
+ }
261
+ /** The blob store has no stored object for the file id. */
262
+ declare class BlobNotFoundError extends DocBlocksUiError {
263
+ constructor(message: string);
264
+ }
265
+ /** The PDF bytes could not be fetched (a non-ok HTTP response). */
266
+ declare class PdfFetchError extends DocBlocksUiError {
267
+ constructor(message: string);
268
+ }
269
+ /** The canvas paste's internal invariant was violated: a non-shape canvas
270
+ * item reached the item insert (the connectors are handled in a
271
+ * follow-up pass). */
272
+ declare class CanvasPasteError extends DocBlocksUiError {
273
+ constructor(message: string);
274
+ }
275
+ /** The slash command's block type is outside the known registry set. */
276
+ declare class UnknownSlashCommandError extends DocBlocksUiError {
277
+ constructor(message: string);
278
+ }
279
+ /** The exhaustiveness backstop: a value escaped a closed union's types. */
280
+ declare class UnhandledValueError extends DocBlocksUiError {
281
+ constructor(message: string);
282
+ }
283
+ //#endregion
219
284
  //#region src/hooks.d.ts
220
285
  /** The headless document owned by the nearest EditorProvider. */
221
286
  declare function useDoc(): Doc;
@@ -371,7 +436,7 @@ declare function AlertDescription({ className, ...props }: React$1.ComponentProp
371
436
  //#endregion
372
437
  //#region src/shared/ui/Badge.d.ts
373
438
  declare const badgeVariants: (props?: ({
374
- variant?: "default" | "destructive" | "custom" | "secondary" | "outline" | null | undefined;
439
+ variant?: "default" | "custom" | "secondary" | "destructive" | "outline" | null | undefined;
375
440
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
376
441
  declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
377
442
  asChild?: boolean;
@@ -382,7 +447,7 @@ declare function BareSelect({ className, children, ...props }: React$1.Component
382
447
  //#endregion
383
448
  //#region src/shared/ui/Button.d.ts
384
449
  declare const buttonVariants: (props?: ({
385
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
450
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
386
451
  size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
387
452
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
388
453
  declare function Button({ className, variant, size, asChild, type, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
@@ -518,4 +583,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
518
583
  //#region src/shared/ui/cn.d.ts
519
584
  declare function cn(...inputs: ClassValue[]): string;
520
585
  //#endregion
521
- 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 DocHeaderAvatarContentContext, 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 };
586
+ export { type AccessLevel, Alert, AlertDescription, AlertTitle, type AttributeType, type AttributeTypePicker, type AttributeTypePickerProps, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, BlobNotFoundError, type BlobRef, type BlobStore, type BlockRenderer, type BlockRendererMap, type BlockRendererProps, type BridgeColumn, type BridgeColumnAnnotation, BridgeError, type BridgeErrorCode, type BridgeTableDescription, type BridgeValueInput, Button, CanvasPasteError, 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, DocBlocksUiError, type DocDescription, DocHeader, type DocHeaderAvatarContentContext, 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, EditorErrorBoundary, type EditorErrorBoundaryProps, type EditorMode, EditorProvider, EditorProviderError, 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, PdfFetchError, 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, UnhandledValueError, UnknownSlashCommandError, 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,9 +1,9 @@
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-CbHCJZ6R.mjs";
2
- import { a as preventDefault, s as cn } from "./constants-D8PSgkwi.mjs";
1
+ import { C as cn, S as UnknownSlashCommandError, _ as CanvasPasteError, b as PdfFetchError, g as BlobNotFoundError, s as preventDefault, v as DocBlocksUiError, x as UnhandledValueError, y as EditorProviderError } from "./constants-DWJbJpt5.mjs";
2
+ import { $ as DropdownMenuShortcut, $t as DocblocksI18nProvider, A as Select, B as Label, Bt as CardFooter, C as cellValueEqual, Ct as isBridgeError, D as filterIsComplete, Dt as parseCellValue, E as emptyFilter, Et as conditionMatches, F as SelectScrollDownButton, Ft as Skeleton, G as DropdownMenuContent, Gt as useBlock, H as Input, Ht as CardTitle, I as SelectScrollUpButton, It as Card, J as DropdownMenuLabel, Jt as usePresence, K as DropdownMenuGroup, Kt as useDoc, L as SelectSeparator, Lt as CardAction, M as SelectGroup, Mt as Eye, N as SelectItem, O as SegmentSelector, Ot as TEXT_TYPES, P as SelectLabel, Pt as BookOpen, Q as DropdownMenuSeparator, Qt as useText, R as SelectTrigger, Rt as CardContent, S as useDatabaseTable, St as BridgeError, T as FilterBuilder, Tt as toBridgeError, U as DropdownMenu, Ut as Badge, V as InlineEditInput, Vt as CardHeader, W as DropdownMenuCheckboxItem, Wt as badgeVariants, X as DropdownMenuRadioGroup, Xt as useSelection, Y as DropdownMenuPortal, Yt as usePresenceSharing, Z as DropdownMenuRadioItem, Zt as useSelectionView, _ as mapFrontmatter, _t as BASELINE_CAPABILITIES, a as DEFAULT_EMBED_SANDBOX, at as Popover, b as renderRuns, bt as validateProtocolDescriptor, c as SHAPE_FONT_OPTIONS, ct as PopoverDescription, d as FORMAT_PALETTE, dt as PopoverTrigger, en as createMemoryBlobStore, et as DropdownMenuSub, ft as Checkbox, g as parseFrontmatter, gt as AlertTitle, h as mdToBlocks, ht as AlertDescription, i as useEditorContext, it as Separator, j as SelectContent, jt as Pen, k as ScrollArea, kt as columnAnnotation, l as SHAPE_FONT_STACKS, lt as PopoverHeader, m as insertNative, mt as Alert, n as useCoverAverageColor, nn as Button, nt as DropdownMenuSubTrigger, ot as PopoverAnchor, p as htmlToBlocks, pt as BareSelect, q as DropdownMenuItem, qt as useMeta, r as EditorProvider, rn as buttonVariants, rt as DropdownMenuTrigger, st as PopoverContent, t as Editor, tn as EditorErrorBoundary, tt as DropdownMenuSubContent, ut as PopoverTitle, v as markToggleAction, vt as PROTOCOL_VERSION, w as newMutationContext, wt as isBridgeErrorCode, x as GridBody, xt as BRIDGE_ERROR_CODES, yt as isDatabaseBridge, z as SelectValue, zt as CardDescription } from "./Editor-DQg2tfne.mjs";
3
3
  import { useCallback, useEffect, useRef, useState } from "react";
4
4
  import { useTranslation } from "react-i18next";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { cva } from "class-variance-authority";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import * as TabsPrimitive from "@radix-ui/react-tabs";
8
8
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
9
9
  //#region src/shared/ui/icons/Network.tsx
@@ -822,4 +822,4 @@ const UI_FONT_STACK = "'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif
822
822
  */
823
823
  const MONO_FONT_STACK = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
824
824
  //#endregion
825
- 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, useCoverAverageColor, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
825
+ export { Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, BlobNotFoundError, BridgeError, Button, CanvasPasteError, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DEFAULT_EMBED_SANDBOX, DatabaseTable, DocBlocksUiError, DocHeader, DocblocksI18nProvider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorErrorBoundary, EditorProvider, EditorProviderError, FORMAT_PALETTE, FilterBuilder, ImportDocumentError, Input, Label, MONO_FONT_STACK, PROTOCOL_VERSION, PdfFetchError, 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, UnhandledValueError, UnknownSlashCommandError, 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 };
@@ -1,4 +1,4 @@
1
- import { r as BlockRendererProps } from "../index-YJcgf8Hh.mjs";
1
+ import { r as BlockRendererProps } from "../index-G44JW36p.mjs";
2
2
  //#region src/mermaid/MermaidCodeRenderer.d.ts
3
3
  /**
4
4
  * A BlockRenderer for the `code` type. The registry dispatches by type: