docblocks-react-ui 0.10.1 → 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.
@@ -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 { IsoInstant as $, DatabaseTableProps as A, BlobStore as At, BatchOp as B, PresenceCrypto as C, BridgeError as Ct, PresenceSharingMode as D, toBridgeError as Dt, PresenceSharing as E, isBridgeErrorCode as Et, DatabaseTableRow as F, CellMap as G, BridgeColumnAnnotation as H, UseDatabaseTable as I, DatabaseBridge as J, CellValueParse as K, emptyFilter as L, UseTableList as M, useDatabaseTable as N, useTableList as O, BlobMeta as Ot, DatabaseTablePhase as P, Id as Q, filterIsComplete as R, SyncEmbedResolver as S, BRIDGE_ERROR_CODES as St, PresencePeer as T, isBridgeError as Tt, BridgeTableDescription as U, BridgeColumn as V, BridgeValueInput as W, FilterConditionInput as X, DomainEvent as Y, FilterInput as Z, PdfPreviewProps as _, TableDescription as _t, AttributeTypePicker as a, ProtocolCapability as at, RenderAttributeProps as b, TableRef as bt, DocTags as c, QueryOperator as ct, EditorProviderProps as d, RowPage as dt, MutationContext as et, EmbedSandboxPolicy as f, RowWire as ft, PdfPreview as g, SubscriptionStatus as gt, MentionProvider as h, SubscriptionObserver as ht, AccessLevel as i, PageSnapshot as it, DatabaseTableView as j, createMemoryBlobStore as jt, DatabaseTable as k, BlobRef as kt, EditorContextValue as l, QuerySemantics as lt, MentionInteractions as m, SubscriptionHandle as mt, DEFAULT_EMBED_SANDBOX as n, OperationStatus as nt, AttributeTypePickerProps as o, ProtocolDescriptor as ot, MentionEntry as p, SortInput as pt, Column as q, EditorProvider as r, PageQuery as rt, DocTag as s, ProtocolLimits as st, useEditorContext as t, MutationReceipt as tt, EditorMode as u, Revision as ut, PresenceConfig as v, TableEnvelopeBase as vt, PresenceIdentity as w, BridgeErrorCode as wt, SelectionRef as x, TableSnapshot as xt, RenderAttribute as y, TableEvent as yt, FilterBuilder as z };
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 IsoInstant, A as DatabaseTableProps, At as BlobStore, B as BatchOp, C as PresenceCrypto, Ct as BridgeError, D as PresenceSharingMode, Dt as toBridgeError, E as PresenceSharing, Et as isBridgeErrorCode, F as DatabaseTableRow, G as CellMap, H as BridgeColumnAnnotation, I as UseDatabaseTable, J as DatabaseBridge, K as CellValueParse, L as emptyFilter, M as UseTableList, N as useDatabaseTable, O as useTableList, Ot as BlobMeta, P as DatabaseTablePhase, Q as Id, R as filterIsComplete, S as SyncEmbedResolver, St as BRIDGE_ERROR_CODES, T as PresencePeer, Tt as isBridgeError, U as BridgeTableDescription, V as BridgeColumn, W as BridgeValueInput, X as FilterConditionInput, Y as DomainEvent, Z as FilterInput, _ as PdfPreviewProps, _t as TableDescription, a as AttributeTypePicker, at as ProtocolCapability, b as RenderAttributeProps, bt as TableRef, c as DocTags, ct as QueryOperator, d as EditorProviderProps, dt as RowPage, et as MutationContext, f as EmbedSandboxPolicy, ft as RowWire, g as PdfPreview, gt as SubscriptionStatus, h as MentionProvider, ht as SubscriptionObserver, i as AccessLevel, it as PageSnapshot, j as DatabaseTableView, jt as createMemoryBlobStore, k as DatabaseTable, kt as BlobRef, l as EditorContextValue, lt as QuerySemantics, m as MentionInteractions, mt as SubscriptionHandle, n as DEFAULT_EMBED_SANDBOX, nt as OperationStatus, o as AttributeTypePickerProps, ot as ProtocolDescriptor, p as MentionEntry, pt as SortInput, q as Column, r as EditorProvider, rt as PageQuery, s as DocTag, st as ProtocolLimits, t as useEditorContext, tt as MutationReceipt, u as EditorMode, ut as Revision, v as PresenceConfig, vt as TableEnvelopeBase, w as PresenceIdentity, wt as BridgeErrorCode, x as SelectionRef, xt as TableSnapshot, y as RenderAttribute, yt as TableEvent, z as FilterBuilder } from "./index-DzYwo6Px.mjs";
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" | "custom" | "secondary" | "destructive" | "outline" | null | undefined;
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" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
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 DropdownMenuSubTrigger, $t as BookOpen, A as SelectItem, At as Card, B as DropdownMenu, Bt as useDoc, C as emptyFilter, Ct as isBridgeErrorCode, D as Select, Dt as TEXT_TYPES, E as ScrollArea, Et as parseCellValue, F as SelectTrigger, Ft as CardHeader, G as DropdownMenuLabel, Gt as useSelectionView, H as DropdownMenuContent, Ht as usePresence, I as SelectValue, It as CardTitle, J as DropdownMenuRadioItem, K as DropdownMenuPortal, Kt as useText, L as Label, Lt as Badge, M as SelectScrollDownButton, Mt as CardContent, N as SelectScrollUpButton, Nt as CardDescription, O as SelectContent, Ot as columnAnnotation, P as SelectSeparator, Pt as CardFooter, Q as DropdownMenuSubContent, R as InlineEditInput, Rt as badgeVariants, S as FilterBuilder, St as isBridgeError, T as SegmentSelector, Tt as conditionMatches, U as DropdownMenuGroup, Ut as usePresenceSharing, V as DropdownMenuCheckboxItem, Vt as useMeta, W as DropdownMenuItem, Wt as useSelection, X as DropdownMenuShortcut, Xt as Pen, Y as DropdownMenuSeparator, Yt as renderRuns, Z as DropdownMenuSub, Zt as Eye, _ as parseFrontmatter, _t as PROTOCOL_VERSION, at as PopoverDescription, b as cellValueEqual, bt as BRIDGE_ERROR_CODES, c as SHAPE_FONT_STACKS, ct as PopoverTrigger, dt as buttonVariants, en as createMemoryBlobStore, et as DropdownMenuTrigger, f as markToggleAction, ft as BareSelect, g as mapFrontmatter, gt as BASELINE_CAPABILITIES, h as mdToBlocks, ht as AlertTitle, i as DEFAULT_EMBED_SANDBOX, it as PopoverContent, j as SelectLabel, jt as CardAction, k as SelectGroup, kt as Skeleton, lt as Checkbox, m as insertNative, mt as AlertDescription, n as EditorProvider, nt as Popover, ot as PopoverHeader, p as htmlToBlocks, pt as Alert, q as DropdownMenuRadioGroup, qt as DocblocksI18nProvider, r as useEditorContext, rt as PopoverAnchor, s as SHAPE_FONT_OPTIONS, st as PopoverTitle, t as Editor, tt as Separator, u as FORMAT_PALETTE, ut as Button, v as GridBody, vt as isDatabaseBridge, w as filterIsComplete, wt as toBridgeError, x as newMutationContext, xt as BridgeError, y as useDatabaseTable, yt as validateProtocolDescriptor, z as Input, zt as useBlock } from "./Editor-DKO25suc.mjs";
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 };
@@ -1,4 +1,4 @@
1
- import { Jt as INLINE_CODE_CLASS, Qt as CodeXml, T as SegmentSelector, Zt as Eye, a as childrenSlot, d as textOf, ht as AlertTitle, kt as Skeleton, l as TextBlock, mt as AlertDescription, o as CodeHeader, pt as Alert, r as useEditorContext } from "../Editor-DKO25suc.mjs";
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";
@@ -1,4 +1,4 @@
1
- import { _ as PdfPreviewProps } from "../index-DzYwo6Px.mjs";
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
  }
@@ -789,6 +811,12 @@
789
811
  .w-72 {
790
812
  width: calc(var(--spacing) * 72);
791
813
  }
814
+ .w-110 {
815
+ width: calc(var(--spacing) * 110);
816
+ }
817
+ .w-140 {
818
+ width: calc(var(--spacing) * 140);
819
+ }
792
820
  .w-\[5ch\] {
793
821
  width: 5ch;
794
822
  }
@@ -1008,6 +1036,9 @@
1008
1036
  .auto-rows-min {
1009
1037
  grid-auto-rows: min-content;
1010
1038
  }
1039
+ .grid-cols-4 {
1040
+ grid-template-columns: repeat(4, minmax(0, 1fr));
1041
+ }
1011
1042
  .grid-cols-6 {
1012
1043
  grid-template-columns: repeat(6, minmax(0, 1fr));
1013
1044
  }
@@ -1157,6 +1188,10 @@
1157
1188
  .rounded-xs {
1158
1189
  border-radius: calc(var(--radius) - 6px);
1159
1190
  }
1191
+ .rounded-t-xl {
1192
+ border-top-left-radius: calc(var(--radius) + 4px);
1193
+ border-top-right-radius: calc(var(--radius) + 4px);
1194
+ }
1160
1195
  .rounded-l-\(--cell-radius\) {
1161
1196
  border-top-left-radius: var(--cell-radius);
1162
1197
  border-bottom-left-radius: var(--cell-radius);
@@ -1247,6 +1282,9 @@
1247
1282
  .border-muted {
1248
1283
  border-color: var(--muted);
1249
1284
  }
1285
+ .border-primary {
1286
+ border-color: var(--primary);
1287
+ }
1250
1288
  .border-ring {
1251
1289
  border-color: var(--ring);
1252
1290
  }
@@ -1349,9 +1387,21 @@
1349
1387
  .bg-accent {
1350
1388
  background-color: var(--accent);
1351
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
+ }
1352
1396
  .bg-background {
1353
1397
  background-color: var(--background);
1354
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
+ }
1355
1405
  .bg-border {
1356
1406
  background-color: var(--border);
1357
1407
  }
@@ -1790,6 +1840,9 @@
1790
1840
  .opacity-50 {
1791
1841
  opacity: 50%;
1792
1842
  }
1843
+ .opacity-60 {
1844
+ opacity: 60%;
1845
+ }
1793
1846
  .opacity-100 {
1794
1847
  opacity: 100%;
1795
1848
  }
@@ -1976,6 +2029,9 @@
1976
2029
  .\[--cell-size\:--spacing\(7\)\] {
1977
2030
  --cell-size: calc(var(--spacing) * 7);
1978
2031
  }
2032
+ .fade-out {
2033
+ --tw-exit-opacity: 0;
2034
+ }
1979
2035
  .running {
1980
2036
  animation-play-state: running;
1981
2037
  }
@@ -2223,6 +2279,9 @@
2223
2279
  }
2224
2280
  }
2225
2281
  @media (hover: hover) {
2282
+ .hover\:border-primary:hover {
2283
+ border-color: var(--primary);
2284
+ }
2226
2285
  .hover\:bg-\(--accent\):hover {
2227
2286
  background-color: var(--accent);
2228
2287
  }
@@ -2426,6 +2485,9 @@
2426
2485
  .disabled\:opacity-50:disabled {
2427
2486
  opacity: 50%;
2428
2487
  }
2488
+ .disabled\:opacity-60:disabled {
2489
+ opacity: 60%;
2490
+ }
2429
2491
  :where([data-slot="card-content"]) .in-data-\[slot\=card-content\]\:bg-transparent {
2430
2492
  background-color: transparent;
2431
2493
  }
@@ -4100,6 +4162,28 @@
4100
4162
  inset 0 -1px 0 var(--docblocks-database-pending-row-border-color);
4101
4163
  }
4102
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
+
4103
4187
  /* 5. The shape-text's self-hosted fonts (the woff2 in dist/fonts/; the
4104
4188
  * unicode-range keeps a file fetched only when the shape's text stands
4105
4189
  * in that font / subset). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docblocks-react-ui",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",