docblocks-react-ui 0.4.6 → 0.5.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 +67 -0
- package/README.md +57 -5
- package/dist/{Editor-DRvBv_X-.mjs → Editor-BBbAwxWT.mjs} +2398 -1483
- package/dist/{index-CZEO5s2i.d.mts → index-DtVBbaEs.d.mts} +4 -0
- package/dist/index.d.mts +32 -4
- package/dist/index.mjs +2 -2
- package/dist/mermaid/index.mjs +1 -1
- package/dist/pdf/index.d.mts +1 -1
- package/dist/styles.css +72 -6
- package/package.json +1 -1
|
@@ -644,6 +644,10 @@ interface UseDatabaseTable {
|
|
|
644
644
|
table: BridgeTableDescription | null;
|
|
645
645
|
/** The loaded rows in the row order. */
|
|
646
646
|
rows: DatabaseTableRow[];
|
|
647
|
+
/** The latest inserted row while it stays outside the filtered page. */
|
|
648
|
+
pendingRow: DatabaseTableRow | null;
|
|
649
|
+
/** Ends the inserted row's temporary visibility outside the filtered page. */
|
|
650
|
+
dismissPendingRow(rowId?: string): void;
|
|
647
651
|
/** The row's live revision (the CAS's stand — the draft session's open
|
|
648
652
|
* pin reads it at the session's open). */
|
|
649
653
|
revisionOf(rowId: string): Revision | undefined;
|
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 ProtocolLimits, A as filterIsComplete, B as DatabaseBridge, C as DatabaseTableView, Ct as BlobSubtype, D as DatabaseTableRow, E as DatabaseTablePhase, F as BridgeTableDescription, G as IsoInstant, H as FilterConditionInput, I as BridgeValueInput, J as OperationStatus, K as MutationContext, L as CellMap, M as BatchOp, N as BridgeColumn, O as UseDatabaseTable, P as BridgeColumnAnnotation, Q as ProtocolDescriptor, R as CellValueParse, S as DatabaseTableProps, St as BlobStore, T as useDatabaseTable, Tt as createMemoryBlobStore, U as FilterInput, V as DomainEvent, W as Id, X as PageSnapshot, Y as PageQuery, Z as ProtocolCapability, _ as PresencePeer, _t as isBridgeError, a as EditorContextValue, at as SortInput, b as useTableList, bt as BlobMeta, c as EmbedSandboxPolicy, ct as SubscriptionStatus, d as PdfPreview, dt as TableEvent, et as QueryOperator, f as PdfPreviewProps, ft as TableRef, g as PresenceIdentity, gt as BridgeErrorCode, h as PresenceCrypto, ht as BridgeError, i as AccessLevel, it as RowWire, j as FilterBuilder, k as emptyFilter, l as MentionEntry, lt as TableDescription, m as SyncEmbedResolver, mt as BRIDGE_ERROR_CODES, n as DEFAULT_EMBED_SANDBOX, nt as Revision, o as EditorMode, ot as SubscriptionHandle, p as PresenceConfig, pt as TableSnapshot, q as MutationReceipt, r as EditorProvider, rt as RowPage, s as EditorProviderProps, st as SubscriptionObserver, t as useEditorContext, tt as QuerySemantics, u as MentionProvider, ut as TableEnvelopeBase, v as PresenceSharing, vt as isBridgeErrorCode, w as UseTableList, wt as blobSubtypeOf, x as DatabaseTable, xt as BlobRef, y as PresenceSharingMode, yt as toBridgeError, z as Column } from "./index-
|
|
2
|
+
import { $ as ProtocolLimits, A as filterIsComplete, B as DatabaseBridge, C as DatabaseTableView, Ct as BlobSubtype, D as DatabaseTableRow, E as DatabaseTablePhase, F as BridgeTableDescription, G as IsoInstant, H as FilterConditionInput, I as BridgeValueInput, J as OperationStatus, K as MutationContext, L as CellMap, M as BatchOp, N as BridgeColumn, O as UseDatabaseTable, P as BridgeColumnAnnotation, Q as ProtocolDescriptor, R as CellValueParse, S as DatabaseTableProps, St as BlobStore, T as useDatabaseTable, Tt as createMemoryBlobStore, U as FilterInput, V as DomainEvent, W as Id, X as PageSnapshot, Y as PageQuery, Z as ProtocolCapability, _ as PresencePeer, _t as isBridgeError, a as EditorContextValue, at as SortInput, b as useTableList, bt as BlobMeta, c as EmbedSandboxPolicy, ct as SubscriptionStatus, d as PdfPreview, dt as TableEvent, et as QueryOperator, f as PdfPreviewProps, ft as TableRef, g as PresenceIdentity, gt as BridgeErrorCode, h as PresenceCrypto, ht as BridgeError, i as AccessLevel, it as RowWire, j as FilterBuilder, k as emptyFilter, l as MentionEntry, lt as TableDescription, m as SyncEmbedResolver, mt as BRIDGE_ERROR_CODES, n as DEFAULT_EMBED_SANDBOX, nt as Revision, o as EditorMode, ot as SubscriptionHandle, p as PresenceConfig, pt as TableSnapshot, q as MutationReceipt, r as EditorProvider, rt as RowPage, s as EditorProviderProps, st as SubscriptionObserver, t as useEditorContext, tt as QuerySemantics, u as MentionProvider, ut as TableEnvelopeBase, v as PresenceSharing, vt as isBridgeErrorCode, w as UseTableList, wt as blobSubtypeOf, x as DatabaseTable, xt as BlobRef, y as PresenceSharingMode, yt as toBridgeError, z as Column } from "./index-DtVBbaEs.mjs";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ComponentType, ReactNode } from "react";
|
|
5
5
|
import { Block, BlockId, BlockType, Doc, DocMeta, PresenceState, Selection, SelectionView, SyncEmbedRef, TextRun } from "docblocks-core";
|
|
@@ -7,6 +7,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
7
7
|
import { ClassValue } from "clsx";
|
|
8
8
|
import { DayPicker } from "react-day-picker";
|
|
9
9
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
10
|
+
import "i18next";
|
|
10
11
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
11
12
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
12
13
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
@@ -173,6 +174,33 @@ interface DocHeaderProps {
|
|
|
173
174
|
* is unchanged. */
|
|
174
175
|
declare function DocHeader(props: DocHeaderProps): import("react").JSX.Element;
|
|
175
176
|
//#endregion
|
|
177
|
+
//#region src/i18n/provider.d.ts
|
|
178
|
+
/** The provider's props (the optional controlled locale + the children's i18n scope). */
|
|
179
|
+
interface DocblocksI18nProviderProps {
|
|
180
|
+
/** The consumer's resolved locale (the SSR's parity: the server and the client pass the same value, so both renders take the same language from the first render — independent of the `<html lang>` attribute). */
|
|
181
|
+
locale?: string;
|
|
182
|
+
children: ReactNode;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* The docblocks' i18n scope: the package's own i18next instance over the
|
|
186
|
+
* subtree — the docblocks' `useTranslation` resolves against it and never
|
|
187
|
+
* conflicts with the consumer's global i18next singleton (the instance's
|
|
188
|
+
* isolation). The `EditorProvider` and the consumer-placed `DocHeader`
|
|
189
|
+
* both wrap over it.
|
|
190
|
+
*
|
|
191
|
+
* The optional `locale` prop is the controlled mode: the provider creates
|
|
192
|
+
* its own synchronously initialized instance over the normalized locale
|
|
193
|
+
* (one per provider, keyed by the normalized value — a locale change
|
|
194
|
+
* selects the new instance and re-renders the subtree). The controlled
|
|
195
|
+
* mode never mutates the legacy singleton and never calls
|
|
196
|
+
* `changeLanguage` on it, so the concurrent subtrees over different
|
|
197
|
+
* locales stay isolated. The provider without a locale inherits the
|
|
198
|
+
* outer's controlled instance when nested over one; outside a controlled
|
|
199
|
+
* provider it keeps the legacy behavior — the module-level instance
|
|
200
|
+
* driven by the `<html lang>` attribute and its runtime flip.
|
|
201
|
+
*/
|
|
202
|
+
declare function DocblocksI18nProvider({ locale, children }: DocblocksI18nProviderProps): import("react").JSX.Element;
|
|
203
|
+
//#endregion
|
|
176
204
|
//#region src/hooks.d.ts
|
|
177
205
|
/** The headless document owned by the nearest EditorProvider. */
|
|
178
206
|
declare function useDoc(): Doc;
|
|
@@ -294,7 +322,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
|
|
|
294
322
|
//#endregion
|
|
295
323
|
//#region src/shared/ui/Badge.d.ts
|
|
296
324
|
declare const badgeVariants: (props?: ({
|
|
297
|
-
variant?: "default" | "
|
|
325
|
+
variant?: "default" | "custom" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
298
326
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
299
327
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
300
328
|
asChild?: boolean;
|
|
@@ -305,7 +333,7 @@ declare function BareSelect({ className, children, ...props }: React.ComponentPr
|
|
|
305
333
|
//#endregion
|
|
306
334
|
//#region src/shared/ui/Button.d.ts
|
|
307
335
|
declare const buttonVariants: (props?: ({
|
|
308
|
-
variant?: "link" | "default" | "
|
|
336
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
309
337
|
size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
|
|
310
338
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
311
339
|
declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -439,4 +467,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
|
|
|
439
467
|
//#region src/shared/ui/cn.d.ts
|
|
440
468
|
declare function cn(...inputs: ClassValue[]): string;
|
|
441
469
|
//#endregion
|
|
442
|
-
export { type AccessLevel, Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlobSubtype, 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 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 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, blobSubtypeOf, 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 };
|
|
470
|
+
export { type AccessLevel, Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlobSubtype, 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 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, blobSubtypeOf, 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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as PopoverHeader, A as SelectTrigger, At as isBridgeErrorCode, B as DropdownMenuRadioGroup, Bt as useMeta, C as SelectContent, Ct as BASELINE_CAPABILITIES, D as SelectScrollDownButton, Dt as BRIDGE_ERROR_CODES, E as SelectLabel, Et as validateProtocolDescriptor, F as DropdownMenuContent, Ft as columnAnnotation, G as DropdownMenuSubContent, Gt as useText, H as DropdownMenuSeparator, Ht as usePresenceSharing, I as DropdownMenuGroup, It as ScrollArea, J as Separator, Jt as blobSubtypeOf, K as DropdownMenuSubTrigger, L as DropdownMenuItem, Lt as Input, M as Label, Mt as conditionMatches, N as DropdownMenu, Nt as parseCellValue, O as SelectScrollUpButton, Ot as BridgeError, P as DropdownMenuCheckboxItem, Pt as TEXT_TYPES, Q as PopoverDescription, R as DropdownMenuLabel, Rt as useBlock, S as Select, St as AlertTitle, T as SelectItem, Tt as isDatabaseBridge, U as DropdownMenuShortcut, Ut as useSelection, V as DropdownMenuRadioItem, Vt as usePresence, W as DropdownMenuSub, Wt as useSelectionView, X as PopoverAnchor, Y as Popover, Yt as createMemoryBlobStore, Z as PopoverContent, _ as FilterBuilder, _t as BareSelect, a as SHAPE_FONT_STACKS, at as CardAction, b as Skeleton, bt as Alert, ct as CardFooter, d as useEditorContext, dt as Pen, et as PopoverTitle, f as DEFAULT_EMBED_SANDBOX, ft as Eye, g as newMutationContext, gt as buttonVariants, h as cellValueEqual, ht as Button, i as SHAPE_FONT_OPTIONS, it as Card, j as SelectValue, jt as toBridgeError, k as SelectSeparator, kt as isBridgeError, l as markToggleAction, lt as CardHeader, m as useDatabaseTable, mt as BookOpen, nt as DocblocksI18nProvider, ot as CardContent, p as GridBody, q as DropdownMenuTrigger, qt as renderRuns, rt as Checkbox, s as FORMAT_PALETTE, st as CardDescription, t as Editor, tt as PopoverTrigger, u as EditorProvider, ut as CardTitle, v as emptyFilter, vt as Badge, w as SelectGroup, wt as PROTOCOL_VERSION, x as SegmentSelector, xt as AlertDescription, y as filterIsComplete, yt as badgeVariants, z as DropdownMenuPortal, zt as useDoc } from "./Editor-
|
|
1
|
+
import { $ as PopoverHeader, A as SelectTrigger, At as isBridgeErrorCode, B as DropdownMenuRadioGroup, Bt as useMeta, C as SelectContent, Ct as BASELINE_CAPABILITIES, D as SelectScrollDownButton, Dt as BRIDGE_ERROR_CODES, E as SelectLabel, Et as validateProtocolDescriptor, F as DropdownMenuContent, Ft as columnAnnotation, G as DropdownMenuSubContent, Gt as useText, H as DropdownMenuSeparator, Ht as usePresenceSharing, I as DropdownMenuGroup, It as ScrollArea, J as Separator, Jt as blobSubtypeOf, K as DropdownMenuSubTrigger, L as DropdownMenuItem, Lt as Input, M as Label, Mt as conditionMatches, N as DropdownMenu, Nt as parseCellValue, O as SelectScrollUpButton, Ot as BridgeError, P as DropdownMenuCheckboxItem, Pt as TEXT_TYPES, Q as PopoverDescription, R as DropdownMenuLabel, Rt as useBlock, S as Select, St as AlertTitle, T as SelectItem, Tt as isDatabaseBridge, U as DropdownMenuShortcut, Ut as useSelection, V as DropdownMenuRadioItem, Vt as usePresence, W as DropdownMenuSub, Wt as useSelectionView, X as PopoverAnchor, Y as Popover, Yt as createMemoryBlobStore, Z as PopoverContent, _ as FilterBuilder, _t as BareSelect, a as SHAPE_FONT_STACKS, at as CardAction, b as Skeleton, bt as Alert, ct as CardFooter, d as useEditorContext, dt as Pen, et as PopoverTitle, f as DEFAULT_EMBED_SANDBOX, ft as Eye, g as newMutationContext, gt as buttonVariants, h as cellValueEqual, ht as Button, i as SHAPE_FONT_OPTIONS, it as Card, j as SelectValue, jt as toBridgeError, k as SelectSeparator, kt as isBridgeError, l as markToggleAction, lt as CardHeader, m as useDatabaseTable, mt as BookOpen, nt as DocblocksI18nProvider, ot as CardContent, p as GridBody, q as DropdownMenuTrigger, qt as renderRuns, rt as Checkbox, s as FORMAT_PALETTE, st as CardDescription, t as Editor, tt as PopoverTrigger, u as EditorProvider, ut as CardTitle, v as emptyFilter, vt as Badge, w as SelectGroup, wt as PROTOCOL_VERSION, x as SegmentSelector, xt as AlertDescription, y as filterIsComplete, yt as badgeVariants, z as DropdownMenuPortal, zt as useDoc } from "./Editor-BBbAwxWT.mjs";
|
|
2
2
|
import { d as cn, l as preventDefault } from "./constants-BaAj3jDA.mjs";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -756,4 +756,4 @@ const UI_FONT_STACK = "'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif
|
|
|
756
756
|
*/
|
|
757
757
|
const MONO_FONT_STACK = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
758
758
|
//#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, 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, blobSubtypeOf, 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 };
|
|
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, blobSubtypeOf, 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 };
|
package/dist/mermaid/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kt as INLINE_CODE_CLASS, St as AlertTitle, b as Skeleton, bt as Alert, c as textOf, d as useEditorContext, ft as Eye, n as childrenSlot, o as TextBlock, pt as CodeXml, r as CodeHeader, x as SegmentSelector, xt as AlertDescription } from "../Editor-
|
|
1
|
+
import { Kt as INLINE_CODE_CLASS, St as AlertTitle, b as Skeleton, bt as Alert, c as textOf, d as useEditorContext, ft as Eye, n as childrenSlot, o as TextBlock, pt as CodeXml, r as CodeHeader, x as SegmentSelector, xt as AlertDescription } from "../Editor-BBbAwxWT.mjs";
|
|
2
2
|
import { r as TriangleAlert } from "../constants-BaAj3jDA.mjs";
|
|
3
3
|
import { t as LoaderCircle } from "../LoaderCircle-AGVFE4IP.mjs";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
package/dist/pdf/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as PdfPreviewProps } from "../index-
|
|
1
|
+
import { f as PdfPreviewProps } from "../index-DtVBbaEs.mjs";
|
|
2
2
|
//#region src/pdf/PdfFirstPage.d.ts
|
|
3
3
|
declare function PdfFirstPage({ id, url, name }: PdfPreviewProps): import("react").JSX.Element;
|
|
4
4
|
//#endregion
|
package/dist/styles.css
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
--color-gray-700: oklch(37.3% 0.034 259.733);
|
|
57
57
|
--color-white: #fff;
|
|
58
58
|
--spacing: 0.25rem;
|
|
59
|
+
--container-xl: 36rem;
|
|
59
60
|
--text-xs: 0.75rem;
|
|
60
61
|
--text-xs--line-height: calc(1 / 0.75);
|
|
61
62
|
--text-sm: 0.875rem;
|
|
@@ -297,6 +298,9 @@
|
|
|
297
298
|
.top-4 {
|
|
298
299
|
top: calc(var(--spacing) * 4);
|
|
299
300
|
}
|
|
301
|
+
.top-6 {
|
|
302
|
+
top: calc(var(--spacing) * 6);
|
|
303
|
+
}
|
|
300
304
|
.top-8 {
|
|
301
305
|
top: calc(var(--spacing) * 8);
|
|
302
306
|
}
|
|
@@ -333,12 +337,18 @@
|
|
|
333
337
|
.right-4 {
|
|
334
338
|
right: calc(var(--spacing) * 4);
|
|
335
339
|
}
|
|
340
|
+
.-bottom-2 {
|
|
341
|
+
bottom: calc(var(--spacing) * -2);
|
|
342
|
+
}
|
|
336
343
|
.bottom-0 {
|
|
337
344
|
bottom: 0px;
|
|
338
345
|
}
|
|
339
346
|
.bottom-4 {
|
|
340
347
|
bottom: calc(var(--spacing) * 4);
|
|
341
348
|
}
|
|
349
|
+
.-left-5 {
|
|
350
|
+
left: calc(var(--spacing) * -5);
|
|
351
|
+
}
|
|
342
352
|
.left-\(--docblocks-checkbox-left\) {
|
|
343
353
|
left: var(--docblocks-checkbox-left);
|
|
344
354
|
}
|
|
@@ -700,6 +710,9 @@
|
|
|
700
710
|
.min-h-40 {
|
|
701
711
|
min-height: calc(var(--spacing) * 40);
|
|
702
712
|
}
|
|
713
|
+
.min-h-\[1em\] {
|
|
714
|
+
min-height: 1em;
|
|
715
|
+
}
|
|
703
716
|
.w-\(--cell-size\) {
|
|
704
717
|
width: var(--cell-size);
|
|
705
718
|
}
|
|
@@ -721,6 +734,9 @@
|
|
|
721
734
|
.w-1\.5 {
|
|
722
735
|
width: calc(var(--spacing) * 1.5);
|
|
723
736
|
}
|
|
737
|
+
.w-5 {
|
|
738
|
+
width: calc(var(--spacing) * 5);
|
|
739
|
+
}
|
|
724
740
|
.w-7 {
|
|
725
741
|
width: calc(var(--spacing) * 7);
|
|
726
742
|
}
|
|
@@ -751,9 +767,6 @@
|
|
|
751
767
|
.w-72 {
|
|
752
768
|
width: calc(var(--spacing) * 72);
|
|
753
769
|
}
|
|
754
|
-
.w-96 {
|
|
755
|
-
width: calc(var(--spacing) * 96);
|
|
756
|
-
}
|
|
757
770
|
.w-\[5ch\] {
|
|
758
771
|
width: 5ch;
|
|
759
772
|
}
|
|
@@ -790,6 +803,9 @@
|
|
|
790
803
|
.max-w-full {
|
|
791
804
|
max-width: 100%;
|
|
792
805
|
}
|
|
806
|
+
.max-w-xl {
|
|
807
|
+
max-width: var(--container-xl);
|
|
808
|
+
}
|
|
793
809
|
.min-w-\(--cell-size\) {
|
|
794
810
|
min-width: var(--cell-size);
|
|
795
811
|
}
|
|
@@ -805,6 +821,12 @@
|
|
|
805
821
|
.min-w-32 {
|
|
806
822
|
min-width: calc(var(--spacing) * 32);
|
|
807
823
|
}
|
|
824
|
+
.min-w-35 {
|
|
825
|
+
min-width: calc(var(--spacing) * 35);
|
|
826
|
+
}
|
|
827
|
+
.min-w-110 {
|
|
828
|
+
min-width: calc(var(--spacing) * 110);
|
|
829
|
+
}
|
|
808
830
|
.min-w-full {
|
|
809
831
|
min-width: 100%;
|
|
810
832
|
}
|
|
@@ -1690,6 +1712,10 @@
|
|
|
1690
1712
|
.italic {
|
|
1691
1713
|
font-style: italic;
|
|
1692
1714
|
}
|
|
1715
|
+
.ordinal {
|
|
1716
|
+
--tw-ordinal: ordinal;
|
|
1717
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1718
|
+
}
|
|
1693
1719
|
.tabular-nums {
|
|
1694
1720
|
--tw-numeric-spacing: tabular-nums;
|
|
1695
1721
|
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
@@ -3578,10 +3604,18 @@
|
|
|
3578
3604
|
--docblocks-table-border-color: var(--border, rgba(175, 184, 193, 0.4));
|
|
3579
3605
|
--docblocks-table-border-width: 1px;
|
|
3580
3606
|
--docblocks-table-cell-padding: 4px 8px;
|
|
3607
|
+
/* The dragged row / column's cell (the drag preview's card): the
|
|
3608
|
+
elevated surface's background + the shadow — the card must read on
|
|
3609
|
+
every theme's background (the monochrome theme's card / the page's
|
|
3610
|
+
colors do not differ). */
|
|
3611
|
+
--docblocks-table-drag-background: var(--card, #ffffff);
|
|
3612
|
+
--docblocks-table-drag-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
3581
3613
|
/* The database grid's standard row height (the fixed row track: every
|
|
3582
3614
|
column type stands the one height — the cell's trigger / the input fit
|
|
3583
3615
|
the content box, the row never grows over its content). */
|
|
3584
3616
|
--docblocks-database-row-height: 32px;
|
|
3617
|
+
/* The locally inserted row that stays visible outside the active filter. */
|
|
3618
|
+
--docblocks-database-pending-row-border-color: #d97706;
|
|
3585
3619
|
|
|
3586
3620
|
/* Image. */
|
|
3587
3621
|
--docblocks-image-radius: 0;
|
|
@@ -3676,6 +3710,9 @@
|
|
|
3676
3710
|
--docblocks-code-token-variable: #ffa657;
|
|
3677
3711
|
--docblocks-divider-border-color: var(--border, rgba(110, 118, 129, 0.65));
|
|
3678
3712
|
--docblocks-table-border-color: var(--border, rgba(110, 118, 129, 0.65));
|
|
3713
|
+
--docblocks-table-drag-background: var(--card, #27272a);
|
|
3714
|
+
--docblocks-table-drag-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
|
|
3715
|
+
--docblocks-database-pending-row-border-color: #f59e0b;
|
|
3679
3716
|
--docblocks-selected-background: color-mix(in srgb, var(--accent, #388bfd) 15%, transparent);
|
|
3680
3717
|
|
|
3681
3718
|
--docblocks-canvas-background: color-mix(in srgb, var(--muted, #6e7681) 15%, transparent);
|
|
@@ -3717,9 +3754,14 @@
|
|
|
3717
3754
|
* the browser's default focus ring would stand the visible ring over the
|
|
3718
3755
|
* whole document after a drag's release. The ring is suppressed; the
|
|
3719
3756
|
* focus itself stays (the keyboard's scoping needs it), and the
|
|
3720
|
-
* individual controls keep their own focus styles.
|
|
3757
|
+
* individual controls keep their own focus styles. The page's container
|
|
3758
|
+
* stands the same stand over the shared editable's surface: the click's
|
|
3759
|
+
* seat and the re-seat's park land the focus in it (the nested inners
|
|
3760
|
+
* keep the focus over the engines that cannot move it into them), and
|
|
3761
|
+
* the default's auto ring would draw the frame over the whole column.
|
|
3721
3762
|
*/
|
|
3722
|
-
[data-slot="docblocks/editor"]:focus
|
|
3763
|
+
[data-slot="docblocks/editor"]:focus,
|
|
3764
|
+
[data-slot="docblocks/page"]:focus {
|
|
3723
3765
|
outline: none;
|
|
3724
3766
|
}
|
|
3725
3767
|
|
|
@@ -3797,7 +3839,8 @@
|
|
|
3797
3839
|
only while the block holds the caret (the pseudo-element content is not
|
|
3798
3840
|
text content — the input layer and the run rendering ignore it); the
|
|
3799
3841
|
attribute carries the provider's placeholder text. */
|
|
3800
|
-
[data-slot="docblocks/block-content"]:empty:focus::before
|
|
3842
|
+
[data-slot="docblocks/block-content"]:empty:focus::before,
|
|
3843
|
+
[data-slot="docblocks/block-content"]:empty[data-caret-inside]::before {
|
|
3801
3844
|
content: attr(data-placeholder);
|
|
3802
3845
|
color: var(--docblocks-placeholder-color);
|
|
3803
3846
|
pointer-events: none;
|
|
@@ -3954,6 +3997,29 @@
|
|
|
3954
3997
|
vertical-align: baseline;
|
|
3955
3998
|
}
|
|
3956
3999
|
|
|
4000
|
+
/* The flat grid has no row element: the pending row's outline is composed
|
|
4001
|
+
over its cells, with the outer vertical edges on the first and last track. */
|
|
4002
|
+
[data-slot="docblocks/database-cell"][data-filter-pending="true"],
|
|
4003
|
+
[data-slot="docblocks/database-row-menu"][data-filter-pending="true"] {
|
|
4004
|
+
box-shadow:
|
|
4005
|
+
inset 0 1px 0 var(--docblocks-database-pending-row-border-color),
|
|
4006
|
+
inset 0 -1px 0 var(--docblocks-database-pending-row-border-color);
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
[data-slot="docblocks/database-cell"][data-filter-pending="true"][data-col="0"] {
|
|
4010
|
+
box-shadow:
|
|
4011
|
+
inset 2px 0 0 var(--docblocks-database-pending-row-border-color),
|
|
4012
|
+
inset 0 1px 0 var(--docblocks-database-pending-row-border-color),
|
|
4013
|
+
inset 0 -1px 0 var(--docblocks-database-pending-row-border-color);
|
|
4014
|
+
}
|
|
4015
|
+
|
|
4016
|
+
[data-slot="docblocks/database-row-menu"][data-filter-pending="true"] {
|
|
4017
|
+
box-shadow:
|
|
4018
|
+
inset -2px 0 0 var(--docblocks-database-pending-row-border-color),
|
|
4019
|
+
inset 0 1px 0 var(--docblocks-database-pending-row-border-color),
|
|
4020
|
+
inset 0 -1px 0 var(--docblocks-database-pending-row-border-color);
|
|
4021
|
+
}
|
|
4022
|
+
|
|
3957
4023
|
/* 5. The shape-text's self-hosted fonts (the woff2 in dist/fonts/; the
|
|
3958
4024
|
* unicode-range keeps a file fetched only when the shape's text stands
|
|
3959
4025
|
* in that font / subset). */
|
package/package.json
CHANGED