docblocks-react-ui 0.10.0 → 0.11.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 +101 -0
- package/README.md +26 -3
- package/dist/{Editor-BZjfHAO5.mjs → Editor-g5aY0giB.mjs} +980 -300
- package/dist/{index-DzYwo6Px.d.mts → index-DPLVe3Mf.d.mts} +38 -1
- package/dist/index.d.mts +85 -73
- 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 +86 -11
- package/package.json +1 -1
|
@@ -1109,6 +1109,22 @@ interface DocTags {
|
|
|
1109
1109
|
*/
|
|
1110
1110
|
onTagClick?: (tag: DocTag, event: MouseEvent) => void;
|
|
1111
1111
|
}
|
|
1112
|
+
/**
|
|
1113
|
+
* The consumer's cover preset gallery (the `coverPresets` provider prop):
|
|
1114
|
+
* the ready-made cover's file ids (the consumer's own blob store's ids) per
|
|
1115
|
+
* placement mode. The upload modal renders the current mode's ids over
|
|
1116
|
+
* the preset's grid (the 4-column's scrollable's stand); a pick commits
|
|
1117
|
+
* the id over the mode WITHOUT an upload (the consumer's catalog's curation's
|
|
1118
|
+
* stand — the upload's gate is never run over a preset), and the thumbnails
|
|
1119
|
+
* resolve over the store's `get` (the bytes' transfer's stand). Without the
|
|
1120
|
+
* prop (or over an absent / empty set) the grid stands absent.
|
|
1121
|
+
*/
|
|
1122
|
+
interface CoverPresetSets {
|
|
1123
|
+
/** The tile mode's preset's file ids; `[]` / the absent stands no grid over the tile's stand. */
|
|
1124
|
+
tile?: readonly string[];
|
|
1125
|
+
/** The centering mode's preset's file ids; `[]` / the absent stands no grid over the centering's stand. */
|
|
1126
|
+
center?: readonly string[];
|
|
1127
|
+
}
|
|
1112
1128
|
/** The props an attribute-value renderer receives (the `renderAttribute` provider prop). */
|
|
1113
1129
|
interface RenderAttributeProps {
|
|
1114
1130
|
/** The attribute's key (the preset key or the custom key). */
|
|
@@ -1202,6 +1218,8 @@ interface EditorContextValue {
|
|
|
1202
1218
|
attributeTypePicker: AttributeTypePicker | null;
|
|
1203
1219
|
/** The consumer's tags contract (the `docTags` prop); null stands the display-only stand (the `notSet` over the row). */
|
|
1204
1220
|
docTags: DocTags | null;
|
|
1221
|
+
/** The consumer's cover preset gallery (the `coverPresets` prop); null stands the built-in's stand (the preset's grid stands absent). */
|
|
1222
|
+
coverPresets: CoverPresetSets | null;
|
|
1205
1223
|
/** The effective embed sandbox policy (the consumer's, or the safe default) — always present. */
|
|
1206
1224
|
embedSandbox: EmbedSandboxPolicy;
|
|
1207
1225
|
/** The entry-list root: the document root by default, a subtree block otherwise. */
|
|
@@ -1354,6 +1372,25 @@ interface EditorProviderProps {
|
|
|
1354
1372
|
* provider that supplies none inherits the enclosing one.
|
|
1355
1373
|
*/
|
|
1356
1374
|
docTags?: DocTags;
|
|
1375
|
+
/**
|
|
1376
|
+
* Optional cover preset gallery (the document-attributes panel's cover row,
|
|
1377
|
+
* the upload modal's stand): the consumer's ready-made cover's file ids
|
|
1378
|
+
* (the consumer's blob store's ids — the same ids the store's `get`
|
|
1379
|
+
* resolves) per placement mode: the `tile`'s set and the `center`'s set
|
|
1380
|
+
* (each optional — a mode without a set stands no grid over it). The
|
|
1381
|
+
* modal renders the current mode's set over the preset's grid (the
|
|
1382
|
+
* 4-column's scrollable's stand; the mode's switch stands the set's switch
|
|
1383
|
+
* over the same grid's stand), and a pick commits the id over the mode
|
|
1384
|
+
* without an upload (the consumer's catalog's curation's stand — the
|
|
1385
|
+
* upload's gate is never run over a preset). The thumbnails resolve over
|
|
1386
|
+
* the store's `get`. Without the prop the grid stands absent (the modal
|
|
1387
|
+
* keeps the enlarged's base's stand).
|
|
1388
|
+
*
|
|
1389
|
+
* Like the other customization values, the value is read per render into
|
|
1390
|
+
* the provider context: pass a stable reference (a memoized object). A
|
|
1391
|
+
* nested provider that supplies none inherits the enclosing one.
|
|
1392
|
+
*/
|
|
1393
|
+
coverPresets?: CoverPresetSets;
|
|
1357
1394
|
/**
|
|
1358
1395
|
* Optional per-key replacement of the document-attributes panel's value
|
|
1359
1396
|
* zone (a preset key — `description` / `createdBy` / `cover` /
|
|
@@ -1454,4 +1491,4 @@ declare const DEFAULT_EMBED_SANDBOX = "allow-scripts allow-same-origin allow-for
|
|
|
1454
1491
|
/** Read the per-instance editor context; throws outside an EditorProvider. */
|
|
1455
1492
|
declare function useEditorContext(): EditorContextValue;
|
|
1456
1493
|
//#endregion
|
|
1457
|
-
export {
|
|
1494
|
+
export { Id as $, DatabaseTable as A, BlobRef as At, FilterBuilder as B, SyncEmbedResolver as C, BRIDGE_ERROR_CODES as Ct, PresenceSharing as D, isBridgeErrorCode as Dt, PresencePeer as E, isBridgeError as Et, DatabaseTablePhase as F, BridgeValueInput as G, BridgeColumn as H, DatabaseTableRow as I, Column as J, CellMap as K, UseDatabaseTable as L, DatabaseTableView as M, createMemoryBlobStore as Mt, UseTableList as N, PresenceSharingMode as O, toBridgeError as Ot, useDatabaseTable as P, FilterInput as Q, emptyFilter as R, SelectionRef as S, TableSnapshot as St, PresenceIdentity as T, BridgeErrorCode as Tt, BridgeColumnAnnotation as U, BatchOp as V, BridgeTableDescription as W, DomainEvent as X, DatabaseBridge as Y, FilterConditionInput as Z, PdfPreview as _, SubscriptionStatus as _t, AttributeTypePicker as a, PageSnapshot as at, RenderAttribute as b, TableEvent as bt, DocTag as c, ProtocolLimits as ct, EditorMode as d, Revision as dt, IsoInstant as et, EditorProviderProps as f, RowPage as ft, MentionProvider as g, SubscriptionObserver as gt, MentionInteractions as h, SubscriptionHandle as ht, AccessLevel as i, PageQuery as it, DatabaseTableProps as j, BlobStore as jt, useTableList as k, BlobMeta as kt, DocTags as l, QueryOperator as lt, MentionEntry as m, SortInput as mt, DEFAULT_EMBED_SANDBOX as n, MutationReceipt as nt, AttributeTypePickerProps as o, ProtocolCapability as ot, EmbedSandboxPolicy as p, RowWire as pt, CellValueParse as q, EditorProvider as r, OperationStatus as rt, CoverPresetSets as s, ProtocolDescriptor as st, useEditorContext as t, MutationContext as tt, EditorContextValue as u, QuerySemantics as ut, PdfPreviewProps as v, TableDescription as vt, PresenceCrypto as w, BridgeError as wt, RenderAttributeProps as x, TableRef as xt, PresenceConfig as y, TableEnvelopeBase as yt, filterIsComplete as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as BlockRendererMap, r as BlockRendererProps, t as BlockRenderer } from "./index-YJcgf8Hh.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
import * as React from "react";
|
|
2
|
+
import { $ as Id, A as DatabaseTable, At as BlobRef, B as FilterBuilder, C as SyncEmbedResolver, Ct as BRIDGE_ERROR_CODES, D as PresenceSharing, Dt as isBridgeErrorCode, E as PresencePeer, Et as isBridgeError, F as DatabaseTablePhase, G as BridgeValueInput, H as BridgeColumn, I as DatabaseTableRow, J as Column, K as CellMap, L as UseDatabaseTable, M as DatabaseTableView, Mt as createMemoryBlobStore, N as UseTableList, O as PresenceSharingMode, Ot as toBridgeError, P as useDatabaseTable, Q as FilterInput, R as emptyFilter, S as SelectionRef, St as TableSnapshot, T as PresenceIdentity, Tt as BridgeErrorCode, U as BridgeColumnAnnotation, V as BatchOp, W as BridgeTableDescription, X as DomainEvent, Y as DatabaseBridge, Z as FilterConditionInput, _ as PdfPreview, _t as SubscriptionStatus, a as AttributeTypePicker, at as PageSnapshot, b as RenderAttribute, bt as TableEvent, c as DocTag, ct as ProtocolLimits, d as EditorMode, dt as Revision, et as IsoInstant, f as EditorProviderProps, ft as RowPage, g as MentionProvider, gt as SubscriptionObserver, h as MentionInteractions, ht as SubscriptionHandle, i as AccessLevel, it as PageQuery, j as DatabaseTableProps, jt as BlobStore, k as useTableList, kt as BlobMeta, l as DocTags, lt as QueryOperator, m as MentionEntry, mt as SortInput, n as DEFAULT_EMBED_SANDBOX, nt as MutationReceipt, o as AttributeTypePickerProps, ot as ProtocolCapability, p as EmbedSandboxPolicy, pt as RowWire, q as CellValueParse, r as EditorProvider, rt as OperationStatus, s as CoverPresetSets, st as ProtocolDescriptor, t as useEditorContext, tt as MutationContext, u as EditorContextValue, ut as QuerySemantics, v as PdfPreviewProps, vt as TableDescription, w as PresenceCrypto, wt as BridgeError, x as RenderAttributeProps, xt as TableRef, y as PresenceConfig, yt as TableEnvelopeBase, z as filterIsComplete } from "./index-DPLVe3Mf.mjs";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import { ComponentType, ReactNode } from "react";
|
|
5
5
|
import { AttributeType, Block, BlockId, BlockType, Doc, DocMeta, MentionKind, MentionMark, PresenceState, Selection, SelectionView, SyncEmbedRef, TextRun, TypedAttributeValue } from "docblocks-core";
|
|
6
6
|
import "i18next";
|
|
@@ -259,6 +259,18 @@ declare function markToggleAction(doc: Doc, blockId: BlockId, from: number, to:
|
|
|
259
259
|
* through the editor's `formatPalette` prop — a `string[]` of hex or var). */
|
|
260
260
|
declare const FORMAT_PALETTE: readonly string[];
|
|
261
261
|
//#endregion
|
|
262
|
+
//#region src/attributes/cover-tint.d.ts
|
|
263
|
+
/**
|
|
264
|
+
* The stored cover's average color (the frame's tint's / the consumer's
|
|
265
|
+
* glow's data's source): the cover's blob resolved over the editor's blob
|
|
266
|
+
* store, and the alpha-weighted average read from it — the `rgb(...)`'s
|
|
267
|
+
* string or `null` over the absent's id / the unresolved's / the
|
|
268
|
+
* undecodable's stand. The blob's identity's cache stands the
|
|
269
|
+
* re-resolution's no re-compute (the store's change's new blob stands the
|
|
270
|
+
* fresh entry).
|
|
271
|
+
*/
|
|
272
|
+
declare function useCoverAverageColor(): string | null;
|
|
273
|
+
//#endregion
|
|
262
274
|
//#region src/editing/import.d.ts
|
|
263
275
|
/** The import payload kind (the parser dispatch). */
|
|
264
276
|
type ImportKind = "markdown" | "html";
|
|
@@ -338,65 +350,65 @@ declare const MONO_FONT_STACK = "ui-monospace, SFMono-Regular, Menlo, Consolas,
|
|
|
338
350
|
declare const alertVariants: (props?: ({
|
|
339
351
|
variant?: "default" | "destructive" | null | undefined;
|
|
340
352
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
341
|
-
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
|
|
342
|
-
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
343
|
-
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
353
|
+
declare function Alert({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React$1.JSX.Element;
|
|
354
|
+
declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
355
|
+
declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
344
356
|
//#endregion
|
|
345
357
|
//#region src/shared/ui/Badge.d.ts
|
|
346
358
|
declare const badgeVariants: (props?: ({
|
|
347
|
-
variant?: "default" | "
|
|
359
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "custom" | null | undefined;
|
|
348
360
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
349
|
-
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
361
|
+
declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
350
362
|
asChild?: boolean;
|
|
351
|
-
}): React.JSX.Element;
|
|
363
|
+
}): React$1.JSX.Element;
|
|
352
364
|
//#endregion
|
|
353
365
|
//#region src/shared/ui/BareSelect.d.ts
|
|
354
|
-
declare function BareSelect({ className, children, ...props }: React.ComponentProps<"select">): React.JSX.Element;
|
|
366
|
+
declare function BareSelect({ className, children, ...props }: React$1.ComponentProps<"select">): React$1.JSX.Element;
|
|
355
367
|
//#endregion
|
|
356
368
|
//#region src/shared/ui/Button.d.ts
|
|
357
369
|
declare const buttonVariants: (props?: ({
|
|
358
|
-
variant?: "link" | "default" | "
|
|
370
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
359
371
|
size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
|
|
360
372
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
361
|
-
declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
373
|
+
declare function Button({ className, variant, size, asChild, type, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
362
374
|
asChild?: boolean;
|
|
363
|
-
}): React.JSX.Element;
|
|
375
|
+
}): React$1.JSX.Element;
|
|
364
376
|
//#endregion
|
|
365
377
|
//#region src/shared/ui/Card.d.ts
|
|
366
|
-
declare function Card({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
367
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
368
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
369
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
370
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
371
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
372
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
378
|
+
declare function Card({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
379
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
380
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
381
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
382
|
+
declare function CardAction({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
383
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
384
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
373
385
|
//#endregion
|
|
374
386
|
//#region src/shared/ui/Checkbox.d.ts
|
|
375
|
-
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
|
|
387
|
+
declare function Checkbox({ className, ...props }: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): React$1.JSX.Element;
|
|
376
388
|
//#endregion
|
|
377
389
|
//#region src/shared/ui/DropdownMenu.d.ts
|
|
378
|
-
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
|
|
379
|
-
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
|
|
380
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
|
|
381
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
|
|
382
|
-
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
|
|
383
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
390
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): React$1.JSX.Element;
|
|
391
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React$1.JSX.Element;
|
|
392
|
+
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React$1.JSX.Element;
|
|
393
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): React$1.JSX.Element;
|
|
394
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): React$1.JSX.Element;
|
|
395
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
384
396
|
inset?: boolean;
|
|
385
397
|
variant?: "default" | "destructive";
|
|
386
|
-
}): React.JSX.Element;
|
|
387
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
|
|
388
|
-
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
|
|
389
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React.JSX.Element;
|
|
390
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
398
|
+
}): React$1.JSX.Element;
|
|
399
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React$1.JSX.Element;
|
|
400
|
+
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React$1.JSX.Element;
|
|
401
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React$1.JSX.Element;
|
|
402
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
391
403
|
inset?: boolean;
|
|
392
|
-
}): React.JSX.Element;
|
|
393
|
-
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
394
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
395
|
-
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
|
|
396
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
404
|
+
}): React$1.JSX.Element;
|
|
405
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React$1.JSX.Element;
|
|
406
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
407
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React$1.JSX.Element;
|
|
408
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
397
409
|
inset?: boolean;
|
|
398
|
-
}): React.JSX.Element;
|
|
399
|
-
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
|
|
410
|
+
}): React$1.JSX.Element;
|
|
411
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React$1.JSX.Element;
|
|
400
412
|
//#endregion
|
|
401
413
|
//#region src/shared/ui/Input.d.ts
|
|
402
414
|
declare const inputVariants: (props?: ({
|
|
@@ -410,40 +422,40 @@ declare const inputVariants: (props?: ({
|
|
|
410
422
|
* takes the name. The `variant` axis stands the look (the framed's
|
|
411
423
|
* field / the row's flat field) — it is not a native attribute either.
|
|
412
424
|
*/
|
|
413
|
-
type InputProps = Omit<React.ComponentProps<"input">, "size"> & VariantProps<typeof inputVariants>;
|
|
414
|
-
declare function Input({ className, size, variant, type, ...props }: InputProps): React.JSX.Element;
|
|
425
|
+
type InputProps = Omit<React$1.ComponentProps<"input">, "size"> & VariantProps<typeof inputVariants>;
|
|
426
|
+
declare function Input({ className, size, variant, type, ...props }: InputProps): React$1.JSX.Element;
|
|
415
427
|
//#endregion
|
|
416
428
|
//#region src/shared/ui/Label.d.ts
|
|
417
|
-
declare function Label({ className, ...props }: React.ComponentProps<"label">): React.JSX.Element;
|
|
429
|
+
declare function Label({ className, ...props }: React$1.ComponentProps<"label">): React$1.JSX.Element;
|
|
418
430
|
//#endregion
|
|
419
431
|
//#region src/shared/ui/Popover.d.ts
|
|
420
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
|
|
421
|
-
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
|
|
422
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
|
|
423
|
-
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
|
|
424
|
-
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
425
|
-
declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): React.JSX.Element;
|
|
426
|
-
declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
|
|
432
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): React$1.JSX.Element;
|
|
433
|
+
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): React$1.JSX.Element;
|
|
434
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): React$1.JSX.Element;
|
|
435
|
+
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): React$1.JSX.Element;
|
|
436
|
+
declare function PopoverHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
437
|
+
declare function PopoverTitle({ className, ...props }: React$1.ComponentProps<"h2">): React$1.JSX.Element;
|
|
438
|
+
declare function PopoverDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
427
439
|
//#endregion
|
|
428
440
|
//#region src/shared/ui/Separator.d.ts
|
|
429
|
-
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): React.JSX.Element;
|
|
441
|
+
declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): React$1.JSX.Element;
|
|
430
442
|
//#endregion
|
|
431
443
|
//#region src/shared/ui/Select.d.ts
|
|
432
|
-
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
|
|
433
|
-
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
|
|
434
|
-
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
|
|
435
|
-
declare function SelectTrigger({ className, size, bare, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
444
|
+
declare function Select({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Root>): React$1.JSX.Element;
|
|
445
|
+
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Group>): React$1.JSX.Element;
|
|
446
|
+
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Value>): React$1.JSX.Element;
|
|
447
|
+
declare function SelectTrigger({ className, size, bare, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
436
448
|
size?: "sm" | "default";
|
|
437
449
|
/** The iconless trigger (the flat cell stand — the chevron is
|
|
438
450
|
* hidden; the value / the placeholder stand alone). */
|
|
439
451
|
bare?: boolean;
|
|
440
|
-
}): React.JSX.Element;
|
|
441
|
-
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
|
|
442
|
-
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
|
|
443
|
-
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.JSX.Element;
|
|
444
|
-
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
|
|
445
|
-
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
|
|
446
|
-
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
|
|
452
|
+
}): React$1.JSX.Element;
|
|
453
|
+
declare function SelectContent({ className, children, position, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Content>): React$1.JSX.Element;
|
|
454
|
+
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Label>): React$1.JSX.Element;
|
|
455
|
+
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Item>): React$1.JSX.Element;
|
|
456
|
+
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Separator>): React$1.JSX.Element;
|
|
457
|
+
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React$1.JSX.Element;
|
|
458
|
+
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React$1.JSX.Element;
|
|
447
459
|
//#endregion
|
|
448
460
|
//#region src/shared/ui/ScrollArea.d.ts
|
|
449
461
|
/**
|
|
@@ -457,12 +469,12 @@ declare function SelectScrollDownButton({ className, ...props }: React.Component
|
|
|
457
469
|
* holds a DOM handle of the scroll element (the slash menu's active-item
|
|
458
470
|
* auto-scroll queries through it).
|
|
459
471
|
*/
|
|
460
|
-
declare function ScrollArea({ className, ref, ...props }: React.ComponentProps<"div"> & {
|
|
461
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
462
|
-
}): React.JSX.Element;
|
|
472
|
+
declare function ScrollArea({ className, ref, ...props }: React$1.ComponentProps<"div"> & {
|
|
473
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
474
|
+
}): React$1.JSX.Element;
|
|
463
475
|
//#endregion
|
|
464
476
|
//#region src/shared/ui/Skeleton.d.ts
|
|
465
|
-
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
477
|
+
declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
466
478
|
//#endregion
|
|
467
479
|
//#region src/shared/ui/Tabs.d.ts
|
|
468
480
|
/**
|
|
@@ -474,21 +486,21 @@ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">):
|
|
|
474
486
|
* Radix `data-state="active"` attribute, styled through the
|
|
475
487
|
* `data-[state=active]:` classes.
|
|
476
488
|
*/
|
|
477
|
-
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
|
|
489
|
+
declare function Tabs({ className, orientation, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root>): React$1.JSX.Element;
|
|
478
490
|
declare const tabsListVariants: (props?: ({
|
|
479
491
|
variant?: "line" | "default" | null | undefined;
|
|
480
492
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
481
|
-
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React.JSX.Element;
|
|
482
|
-
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
|
|
483
|
-
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
|
|
493
|
+
declare function TabsList({ className, variant, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React$1.JSX.Element;
|
|
494
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): React$1.JSX.Element;
|
|
495
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): React$1.JSX.Element;
|
|
484
496
|
//#endregion
|
|
485
497
|
//#region src/shared/ui/Tooltip.d.ts
|
|
486
|
-
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
487
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
488
|
-
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
489
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
498
|
+
declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): React$1.JSX.Element;
|
|
499
|
+
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): React$1.JSX.Element;
|
|
500
|
+
declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): React$1.JSX.Element;
|
|
501
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Content>): React$1.JSX.Element;
|
|
490
502
|
//#endregion
|
|
491
503
|
//#region src/shared/ui/cn.d.ts
|
|
492
504
|
declare function cn(...inputs: ClassValue[]): string;
|
|
493
505
|
//#endregion
|
|
494
|
-
export { type AccessLevel, Alert, AlertDescription, AlertTitle, type AttributeType, type AttributeTypePicker, type AttributeTypePickerProps, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlockRenderer, type BlockRendererMap, type BlockRendererProps, type BridgeColumn, type BridgeColumnAnnotation, BridgeError, type BridgeErrorCode, type BridgeTableDescription, type BridgeValueInput, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CellMap, type CellValueParse, Checkbox, type Column, DEFAULT_EMBED_SANDBOX, type DatabaseBridge, DatabaseTable, type DatabaseTablePhase, type DatabaseTableProps, type DatabaseTableRow, type DatabaseTableView, DocHeader, type DocTag, type DocTags, DocblocksI18nProvider, type DocblocksI18nProviderProps, type DomainEvent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, type EditorContextValue, type EditorMode, EditorProvider, type EditorProviderProps, type EditorView, type EmbedSandboxPolicy, FORMAT_PALETTE, FilterBuilder, type FilterConditionInput, type FilterInput, type FormatMark, type Id, ImportDocumentError, Input, type IsoInstant, Label, MONO_FONT_STACK, type MentionEntry, type MentionInteractions, type MentionMark, type MentionProvider, type MutationContext, type MutationReceipt, type OperationStatus, PROTOCOL_VERSION, type PageQuery, type PageSnapshot, type PdfPreview, type PdfPreviewProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type PresenceConfig, type PresenceCrypto, type PresenceIdentity, type PresencePeer, type PresenceSharing, type PresenceSharingMode, type ProtocolCapability, type ProtocolDescriptor, type ProtocolLimits, type QueryOperator, type QuerySemantics, type RenderAttribute, type RenderAttributeProps, type Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionRef, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TypedAttributeValue, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, importDocument, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
|
|
506
|
+
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, DocHeader, type DocTag, type DocTags, DocblocksI18nProvider, type DocblocksI18nProviderProps, type DomainEvent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, type EditorContextValue, type EditorMode, EditorProvider, type EditorProviderProps, type EditorView, type EmbedSandboxPolicy, FORMAT_PALETTE, FilterBuilder, type FilterConditionInput, type FilterInput, type FormatMark, type Id, ImportDocumentError, Input, type IsoInstant, Label, MONO_FONT_STACK, type MentionEntry, type MentionInteractions, type MentionMark, type MentionProvider, type MutationContext, type MutationReceipt, type OperationStatus, PROTOCOL_VERSION, type PageQuery, type PageSnapshot, type PdfPreview, type PdfPreviewProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type PresenceConfig, type PresenceCrypto, type PresenceIdentity, type PresencePeer, type PresenceSharing, type PresenceSharingMode, type ProtocolCapability, type ProtocolDescriptor, type ProtocolLimits, type QueryOperator, type QuerySemantics, type RenderAttribute, type RenderAttributeProps, type Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type SelectionRef, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TypedAttributeValue, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, importDocument, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useCoverAverageColor, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as DropdownMenuSubContent, 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 Eye, 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, Zt as Pen, _ 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, en as BookOpen, 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, 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 createMemoryBlobStore, 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-g5aY0giB.mjs";
|
|
2
2
|
import { a as preventDefault, s as cn } from "./constants-D8PSgkwi.mjs";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
@@ -775,4 +775,4 @@ const UI_FONT_STACK = "'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif
|
|
|
775
775
|
*/
|
|
776
776
|
const MONO_FONT_STACK = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
777
777
|
//#endregion
|
|
778
|
-
export { Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, BridgeError, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DEFAULT_EMBED_SANDBOX, DatabaseTable, DocHeader, DocblocksI18nProvider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorProvider, FORMAT_PALETTE, FilterBuilder, ImportDocumentError, Input, Label, MONO_FONT_STACK, PROTOCOL_VERSION, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, TEXT_TYPES, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UI_FONT_ID, UI_FONT_STACK, badgeVariants, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, importDocument, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
|
|
778
|
+
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 };
|
package/dist/mermaid/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as CodeXml, At as Skeleton, E as SegmentSelector, Qt as Eye, Yt as INLINE_CODE_CLASS, f as textOf, gt as AlertTitle, ht as AlertDescription, i as useEditorContext, mt as Alert, o as childrenSlot, s as CodeHeader, u as TextBlock } from "../Editor-g5aY0giB.mjs";
|
|
2
2
|
import { f as LoaderCircle, l as TriangleAlert } from "../constants-D8PSgkwi.mjs";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
package/dist/pdf/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as PdfPreviewProps } from "../index-DPLVe3Mf.mjs";
|
|
2
2
|
//#region src/pdf/PdfFirstPage.d.ts
|
|
3
3
|
declare function PdfFirstPage({ id, blockType, url, name }: PdfPreviewProps): import("react").JSX.Element;
|
|
4
4
|
//#endregion
|
package/dist/styles.css
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
--font-mono: var(--font-mono);
|
|
55
55
|
--color-gray-300: oklch(87.2% 0.01 258.338);
|
|
56
56
|
--color-gray-700: oklch(37.3% 0.034 259.733);
|
|
57
|
+
--color-black: #000;
|
|
57
58
|
--color-white: #fff;
|
|
58
59
|
--spacing: 0.25rem;
|
|
59
60
|
--container-xl: 36rem;
|
|
@@ -454,6 +455,9 @@
|
|
|
454
455
|
.my-1 {
|
|
455
456
|
margin-block: var(--spacing);
|
|
456
457
|
}
|
|
458
|
+
.-mt-6 {
|
|
459
|
+
margin-top: calc(var(--spacing) * -6);
|
|
460
|
+
}
|
|
457
461
|
.mt-\(--docblocks-block-spacing\) {
|
|
458
462
|
margin-top: var(--docblocks-block-spacing);
|
|
459
463
|
}
|
|
@@ -469,6 +473,9 @@
|
|
|
469
473
|
.mt-2 {
|
|
470
474
|
margin-top: calc(var(--spacing) * 2);
|
|
471
475
|
}
|
|
476
|
+
.mt-3 {
|
|
477
|
+
margin-top: calc(var(--spacing) * 3);
|
|
478
|
+
}
|
|
472
479
|
.mr-0\.5 {
|
|
473
480
|
margin-right: calc(var(--spacing) * 0.5);
|
|
474
481
|
}
|
|
@@ -481,9 +488,15 @@
|
|
|
481
488
|
.mb-1 {
|
|
482
489
|
margin-bottom: var(--spacing);
|
|
483
490
|
}
|
|
491
|
+
.mb-1\.5 {
|
|
492
|
+
margin-bottom: calc(var(--spacing) * 1.5);
|
|
493
|
+
}
|
|
484
494
|
.mb-2 {
|
|
485
495
|
margin-bottom: calc(var(--spacing) * 2);
|
|
486
496
|
}
|
|
497
|
+
.mb-3 {
|
|
498
|
+
margin-bottom: calc(var(--spacing) * 3);
|
|
499
|
+
}
|
|
487
500
|
.mb-4 {
|
|
488
501
|
margin-bottom: calc(var(--spacing) * 4);
|
|
489
502
|
}
|
|
@@ -672,9 +685,15 @@
|
|
|
672
685
|
.h-10 {
|
|
673
686
|
height: calc(var(--spacing) * 10);
|
|
674
687
|
}
|
|
688
|
+
.h-18 {
|
|
689
|
+
height: calc(var(--spacing) * 18);
|
|
690
|
+
}
|
|
675
691
|
.h-24 {
|
|
676
692
|
height: calc(var(--spacing) * 24);
|
|
677
693
|
}
|
|
694
|
+
.h-36 {
|
|
695
|
+
height: calc(var(--spacing) * 36);
|
|
696
|
+
}
|
|
678
697
|
.h-48 {
|
|
679
698
|
height: calc(var(--spacing) * 48);
|
|
680
699
|
}
|
|
@@ -708,6 +727,9 @@
|
|
|
708
727
|
.max-h-48 {
|
|
709
728
|
max-height: calc(var(--spacing) * 48);
|
|
710
729
|
}
|
|
730
|
+
.max-h-58 {
|
|
731
|
+
max-height: calc(var(--spacing) * 58);
|
|
732
|
+
}
|
|
711
733
|
.max-h-64 {
|
|
712
734
|
max-height: calc(var(--spacing) * 64);
|
|
713
735
|
}
|
|
@@ -723,9 +745,6 @@
|
|
|
723
745
|
.min-h-6 {
|
|
724
746
|
min-height: calc(var(--spacing) * 6);
|
|
725
747
|
}
|
|
726
|
-
.min-h-11 {
|
|
727
|
-
min-height: calc(var(--spacing) * 11);
|
|
728
|
-
}
|
|
729
748
|
.min-h-16 {
|
|
730
749
|
min-height: calc(var(--spacing) * 16);
|
|
731
750
|
}
|
|
@@ -762,9 +781,6 @@
|
|
|
762
781
|
.w-7 {
|
|
763
782
|
width: calc(var(--spacing) * 7);
|
|
764
783
|
}
|
|
765
|
-
.w-8 {
|
|
766
|
-
width: calc(var(--spacing) * 8);
|
|
767
|
-
}
|
|
768
784
|
.w-10 {
|
|
769
785
|
width: calc(var(--spacing) * 10);
|
|
770
786
|
}
|
|
@@ -774,6 +790,9 @@
|
|
|
774
790
|
.w-28 {
|
|
775
791
|
width: calc(var(--spacing) * 28);
|
|
776
792
|
}
|
|
793
|
+
.w-32 {
|
|
794
|
+
width: calc(var(--spacing) * 32);
|
|
795
|
+
}
|
|
777
796
|
.w-40 {
|
|
778
797
|
width: calc(var(--spacing) * 40);
|
|
779
798
|
}
|
|
@@ -792,6 +811,12 @@
|
|
|
792
811
|
.w-72 {
|
|
793
812
|
width: calc(var(--spacing) * 72);
|
|
794
813
|
}
|
|
814
|
+
.w-110 {
|
|
815
|
+
width: calc(var(--spacing) * 110);
|
|
816
|
+
}
|
|
817
|
+
.w-140 {
|
|
818
|
+
width: calc(var(--spacing) * 140);
|
|
819
|
+
}
|
|
795
820
|
.w-\[5ch\] {
|
|
796
821
|
width: 5ch;
|
|
797
822
|
}
|
|
@@ -1011,8 +1036,8 @@
|
|
|
1011
1036
|
.auto-rows-min {
|
|
1012
1037
|
grid-auto-rows: min-content;
|
|
1013
1038
|
}
|
|
1014
|
-
.grid-cols-
|
|
1015
|
-
grid-template-columns: repeat(
|
|
1039
|
+
.grid-cols-4 {
|
|
1040
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1016
1041
|
}
|
|
1017
1042
|
.grid-cols-6 {
|
|
1018
1043
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
@@ -1163,6 +1188,10 @@
|
|
|
1163
1188
|
.rounded-xs {
|
|
1164
1189
|
border-radius: calc(var(--radius) - 6px);
|
|
1165
1190
|
}
|
|
1191
|
+
.rounded-t-xl {
|
|
1192
|
+
border-top-left-radius: calc(var(--radius) + 4px);
|
|
1193
|
+
border-top-right-radius: calc(var(--radius) + 4px);
|
|
1194
|
+
}
|
|
1166
1195
|
.rounded-l-\(--cell-radius\) {
|
|
1167
1196
|
border-top-left-radius: var(--cell-radius);
|
|
1168
1197
|
border-bottom-left-radius: var(--cell-radius);
|
|
@@ -1253,6 +1282,9 @@
|
|
|
1253
1282
|
.border-muted {
|
|
1254
1283
|
border-color: var(--muted);
|
|
1255
1284
|
}
|
|
1285
|
+
.border-primary {
|
|
1286
|
+
border-color: var(--primary);
|
|
1287
|
+
}
|
|
1256
1288
|
.border-ring {
|
|
1257
1289
|
border-color: var(--ring);
|
|
1258
1290
|
}
|
|
@@ -1355,9 +1387,21 @@
|
|
|
1355
1387
|
.bg-accent {
|
|
1356
1388
|
background-color: var(--accent);
|
|
1357
1389
|
}
|
|
1390
|
+
.bg-accent\/50 {
|
|
1391
|
+
background-color: var(--accent);
|
|
1392
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1393
|
+
background-color: color-mix(in oklab, var(--accent) 50%, transparent);
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1358
1396
|
.bg-background {
|
|
1359
1397
|
background-color: var(--background);
|
|
1360
1398
|
}
|
|
1399
|
+
.bg-black\/40 {
|
|
1400
|
+
background-color: color-mix(in srgb, #000 40%, transparent);
|
|
1401
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1402
|
+
background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1361
1405
|
.bg-border {
|
|
1362
1406
|
background-color: var(--border);
|
|
1363
1407
|
}
|
|
@@ -1698,9 +1742,6 @@
|
|
|
1698
1742
|
.text-\(--docblocks-link-color\) {
|
|
1699
1743
|
color: var(--docblocks-link-color);
|
|
1700
1744
|
}
|
|
1701
|
-
.text-\(--docblocks-muted-foreground\) {
|
|
1702
|
-
color: var(--docblocks-muted-foreground);
|
|
1703
|
-
}
|
|
1704
1745
|
.text-\(--docblocks-muted-text-color\) {
|
|
1705
1746
|
color: var(--docblocks-muted-text-color);
|
|
1706
1747
|
}
|
|
@@ -1799,6 +1840,9 @@
|
|
|
1799
1840
|
.opacity-50 {
|
|
1800
1841
|
opacity: 50%;
|
|
1801
1842
|
}
|
|
1843
|
+
.opacity-60 {
|
|
1844
|
+
opacity: 60%;
|
|
1845
|
+
}
|
|
1802
1846
|
.opacity-100 {
|
|
1803
1847
|
opacity: 100%;
|
|
1804
1848
|
}
|
|
@@ -1985,6 +2029,9 @@
|
|
|
1985
2029
|
.\[--cell-size\:--spacing\(7\)\] {
|
|
1986
2030
|
--cell-size: calc(var(--spacing) * 7);
|
|
1987
2031
|
}
|
|
2032
|
+
.fade-out {
|
|
2033
|
+
--tw-exit-opacity: 0;
|
|
2034
|
+
}
|
|
1988
2035
|
.running {
|
|
1989
2036
|
animation-play-state: running;
|
|
1990
2037
|
}
|
|
@@ -2232,6 +2279,9 @@
|
|
|
2232
2279
|
}
|
|
2233
2280
|
}
|
|
2234
2281
|
@media (hover: hover) {
|
|
2282
|
+
.hover\:border-primary:hover {
|
|
2283
|
+
border-color: var(--primary);
|
|
2284
|
+
}
|
|
2235
2285
|
.hover\:bg-\(--accent\):hover {
|
|
2236
2286
|
background-color: var(--accent);
|
|
2237
2287
|
}
|
|
@@ -2435,6 +2485,9 @@
|
|
|
2435
2485
|
.disabled\:opacity-50:disabled {
|
|
2436
2486
|
opacity: 50%;
|
|
2437
2487
|
}
|
|
2488
|
+
.disabled\:opacity-60:disabled {
|
|
2489
|
+
opacity: 60%;
|
|
2490
|
+
}
|
|
2438
2491
|
:where([data-slot="card-content"]) .in-data-\[slot\=card-content\]\:bg-transparent {
|
|
2439
2492
|
background-color: transparent;
|
|
2440
2493
|
}
|
|
@@ -4109,6 +4162,28 @@
|
|
|
4109
4162
|
inset 0 -1px 0 var(--docblocks-database-pending-row-border-color);
|
|
4110
4163
|
}
|
|
4111
4164
|
|
|
4165
|
+
/*
|
|
4166
|
+
* The cover banner's dark-theme's stand: the image dims slightly (a bright
|
|
4167
|
+
* cover over the dark's card stands a glare). The filter darkens the
|
|
4168
|
+
* rendered pixels only — the banner's transparent background keeps the
|
|
4169
|
+
* card's color underneath, so the dim never shifts the fade's edges.
|
|
4170
|
+
*/
|
|
4171
|
+
:is(.dark [data-slot="docblocks/editor"], [data-slot="docblocks/editor"].dark) [data-slot="docblocks/cover-banner"] {
|
|
4172
|
+
filter: brightness(0.85);
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
/*
|
|
4176
|
+
* The cover's frame's tint: the card's border stands the cover's average
|
|
4177
|
+
* color's mix over the theme's border token (the 25% share keeps the tint
|
|
4178
|
+
* subtle — the light's token mixes pale, the dark's token mixes the
|
|
4179
|
+
* gray's stand over the same average). The average's color stands on the
|
|
4180
|
+
* card's element itself (the border's element) as the inline variable,
|
|
4181
|
+
* so the theme's flip re-mixes over the same value without a re-read.
|
|
4182
|
+
*/
|
|
4183
|
+
[data-slot="card"][data-cover-tint] {
|
|
4184
|
+
border-color: color-mix(in srgb, var(--docblocks-cover-tint-color) 25%, var(--border));
|
|
4185
|
+
}
|
|
4186
|
+
|
|
4112
4187
|
/* 5. The shape-text's self-hosted fonts (the woff2 in dist/fonts/; the
|
|
4113
4188
|
* unicode-range keeps a file fetched only when the shape's text stands
|
|
4114
4189
|
* in that font / subset). */
|