docblocks-react-ui 0.17.0 → 0.18.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.
- package/CHANGELOG.md +99 -0
- package/README.md +187 -38
- package/dist/{Editor-CbHCJZ6R.mjs → Editor-DCzrR1FJ.mjs} +13395 -12345
- package/dist/{constants-D8PSgkwi.mjs → constants-D_3p65rk.mjs} +90 -11
- package/dist/index-G44JW36p.d.mts +236 -0
- package/dist/{index-C3vzW1Mv.d.mts → index-sNhMaFHp.d.mts} +26 -209
- package/dist/index.d.mts +119 -49
- package/dist/index.mjs +4 -4
- package/dist/mermaid/index.d.mts +1 -1
- package/dist/mermaid/index.mjs +210 -147
- package/dist/pdf/index.d.mts +1 -1
- package/dist/pdf/index.mjs +421 -362
- package/package.json +4 -2
- package/dist/index-YJcgf8Hh.d.mts +0 -39
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as BlockRendererMap, r as BlockRendererProps, t as BlockRenderer } from "./index-
|
|
2
|
-
import { $ as
|
|
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-sNhMaFHp.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,53 @@ 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
|
+
/** A docblocks hook ran outside its provider (the editor context / the
|
|
284
|
+
* block context is absent — the consumer's mount shape is broken). */
|
|
285
|
+
declare class HookMisuseError extends DocBlocksUiError {
|
|
286
|
+
constructor(message: string);
|
|
287
|
+
}
|
|
288
|
+
//#endregion
|
|
219
289
|
//#region src/hooks.d.ts
|
|
220
290
|
/** The headless document owned by the nearest EditorProvider. */
|
|
221
291
|
declare function useDoc(): Doc;
|
|
@@ -371,7 +441,7 @@ declare function AlertDescription({ className, ...props }: React$1.ComponentProp
|
|
|
371
441
|
//#endregion
|
|
372
442
|
//#region src/shared/ui/Badge.d.ts
|
|
373
443
|
declare const badgeVariants: (props?: ({
|
|
374
|
-
variant?: "default" | "destructive" | "
|
|
444
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "custom" | null | undefined;
|
|
375
445
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
376
446
|
declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
377
447
|
asChild?: boolean;
|
|
@@ -382,7 +452,7 @@ declare function BareSelect({ className, children, ...props }: React$1.Component
|
|
|
382
452
|
//#endregion
|
|
383
453
|
//#region src/shared/ui/Button.d.ts
|
|
384
454
|
declare const buttonVariants: (props?: ({
|
|
385
|
-
variant?: "link" | "default" | "destructive" | "
|
|
455
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
386
456
|
size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
|
|
387
457
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
388
458
|
declare function Button({ className, variant, size, asChild, type, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -518,4 +588,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
|
|
|
518
588
|
//#region src/shared/ui/cn.d.ts
|
|
519
589
|
declare function cn(...inputs: ClassValue[]): string;
|
|
520
590
|
//#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 };
|
|
591
|
+
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, HookMisuseError, 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 {
|
|
2
|
-
import { a as
|
|
1
|
+
import { C as UnknownSlashCommandError, S as UnhandledValueError, _ as CanvasPasteError, b as HookMisuseError, g as BlobNotFoundError, s as preventDefault, v as DocBlocksUiError, w as cn, x as PdfFetchError, y as EditorProviderError } from "./constants-D_3p65rk.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-DCzrR1FJ.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, HookMisuseError, 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 };
|
package/dist/mermaid/index.d.mts
CHANGED