docblocks-react-ui 0.8.3 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { n as BlockRendererMap } from "./index-YJcgf8Hh.mjs";
2
2
  import { ComponentType, ReactNode } from "react";
3
- import { Block, BlockContent, BlockId, BlockType, CanvasTextAttrs, Change, ConnectorAttrs, DatabaseFilterPayload, Doc, DocMeta, Geometry, MentionMark, PresenceSelection, PresenceState, Selection, SelectionView, ShapeAttrs, SyncEmbedRef, SyncProvider } from "docblocks-core";
3
+ import { AttributeType, Block, BlockContent, BlockId, BlockType, CanvasTextAttrs, Change, ConnectorAttrs, DatabaseFilterPayload, Doc, DocAttributeValue, DocMeta, Geometry, MentionKind, MentionMark, PresenceSelection, PresenceState, Selection, SelectionView, ShapeAttrs, SyncEmbedRef, SyncProvider } from "docblocks-core";
4
4
  import { StoreApi } from "zustand/vanilla";
5
5
  //#region src/blob-store.d.ts
6
6
  /**
@@ -956,6 +956,15 @@ interface EditorState {
956
956
  * re-renders the other blocks.
957
957
  */
958
958
  fileUpload: FileUploadStand | null;
959
+ /**
960
+ * The per-change stamp: bumped whenever `applyChange` writes the store
961
+ * (a `blocks` / `rootChildren` / `meta` change). The live `lastUpdatedAt`
962
+ * display's re-render source — the Yjs-only `meta.updatedAt` moves on
963
+ * every local transaction and is not part of the `meta` slice (the
964
+ * slice is replaced only over the `metaChanged`). A separate slice so
965
+ * only the stamp's subscribers re-render over the changes.
966
+ */
967
+ changeStamp: number;
959
968
  }
960
969
  /** Internal write functions, called by the EditorProvider subscriptions. */
961
970
  interface EditorActions {
@@ -1015,13 +1024,22 @@ interface MentionProvider {
1015
1024
  searchUsers(query: string): Promise<MentionEntry[]>;
1016
1025
  /** The documents matching the query (the `doc` mention kind). */
1017
1026
  searchDocs(query: string): Promise<MentionEntry[]>;
1027
+ /**
1028
+ * The chip's live label over the target's id (the synchronous read — the
1029
+ * consumer's cache over the catalog / the doc's meta). The chip's text
1030
+ * stands this label where it resolves (the rename's live stand), and the
1031
+ * insertion-time label (the run's text) otherwise; `null` / the absent
1032
+ * stand the insertion-time label (the removed's target's display is the
1033
+ * consumer's own fallback over this hook).
1034
+ */
1035
+ resolveLabel?(kind: MentionKind, id: string): string | null;
1018
1036
  }
1019
1037
  /**
1020
1038
  * The mention interactions: the consumer's hover card (the design + the
1021
1039
  * data — the package stands the position and the lifecycle only, over a
1022
1040
  * plain portaled host) and the chip's click (the consumer decides what
1023
1041
  * opens). The target stands the document's `mention` mark (the core's
1024
- * `MentionMark`: the kind, the stable id, and the label snapshot) — the
1042
+ * `MentionMark`: the kind + the stable id) — the consumer resolves the
1025
1043
  * consumer resolves the current data over the id (the catalog, the URL).
1026
1044
  * Optional over the provider: without it the chip stands as before (no
1027
1045
  * card, the click is the browser's stand).
@@ -1035,7 +1053,50 @@ interface MentionInteractions {
1035
1053
  * keeps the caret in place (the atomic chip's default stand moves it).
1036
1054
  * The package stands no default behavior and opens nothing. */
1037
1055
  onClick?: (mention: MentionMark, event: MouseEvent) => void;
1056
+ /**
1057
+ * The picker's empty state (the no-matches stand over the active query;
1058
+ * the query is blank when only the `@` stands). The consumer's own
1059
+ * content (the "start typing"'s phrase over the blank query — the
1060
+ * package's i18n's stand is not overridable); `null` stands the built-in
1061
+ * `common.noMatches` (the default).
1062
+ */
1063
+ renderEmptyState?: (query: string) => ReactNode | null;
1064
+ }
1065
+ /** The props a tag-editor component receives (the `tagEditor` provider prop): the live tag list, the replacement commit, and the read-only stand. */
1066
+ interface TagEditorProps {
1067
+ /** The current tags (the `tags` preset attribute; `[]` when absent). */
1068
+ tags: readonly string[];
1069
+ /** Replaces the whole list (one `setAttribute` commit). */
1070
+ onTagsChange: (tags: string[]) => void;
1071
+ /** The read-only stand (the view / published's modes): display-only. */
1072
+ readOnly: boolean;
1073
+ }
1074
+ /** The consumer's replacement of the default tags editor (the `tagEditor` provider prop). */
1075
+ type TagEditor = ComponentType<TagEditorProps>;
1076
+ /** The props an attribute-value renderer receives (the `renderAttribute` provider prop). */
1077
+ interface RenderAttributeProps {
1078
+ /** The attribute's key (the preset key or the custom key). */
1079
+ key: string;
1080
+ /** The attribute's current value (`undefined` when unset). */
1081
+ value: DocAttributeValue | undefined;
1082
+ /** The write commit (one `setAttribute`). */
1083
+ onChange: (value: DocAttributeValue) => void;
1084
+ /** The removal commit (one `removeAttribute`). */
1085
+ onRemove: () => void;
1086
+ /** The read-only stand (the view / published's modes): display-only. */
1087
+ readOnly: boolean;
1088
+ }
1089
+ /** The consumer's per-key attribute-value renderer (the `renderAttribute` provider prop): the value zone of a named row (a preset or a custom key); `null` / the absent stand the built-in editor. */
1090
+ type RenderAttribute = (props: RenderAttributeProps) => ReactNode;
1091
+ /** The props an attribute type-picker receives (the `attributeTypePicker` provider prop). */
1092
+ interface AttributeTypePickerProps {
1093
+ /** The selected type (the panel's pick — the default `"string"` over the add's popover). */
1094
+ value: AttributeType;
1095
+ /** Commits the type pick (the built-in picker's enum is `ATTRIBUTE_TYPES`). */
1096
+ onChange: (type: AttributeType) => void;
1038
1097
  }
1098
+ /** The consumer's replacement of the default type picker (the `attributeTypePicker` provider prop): the custom-attribute's add popover's type selection. The built-in's enum (`ATTRIBUTE_TYPES`) is the shared vocabulary. */
1099
+ type AttributeTypePicker = ComponentType<AttributeTypePickerProps>;
1039
1100
  /** The per-instance selection view; null before the mount effect ran and after unmount. */
1040
1101
  interface SelectionRef {
1041
1102
  view: SelectionView | null;
@@ -1097,6 +1158,14 @@ interface EditorContextValue {
1097
1158
  mentionProvider: MentionProvider | null;
1098
1159
  /** The consumer's mention interactions (the hover card + the click); null when none was supplied (the chip stands inert). */
1099
1160
  mentionInteractions: MentionInteractions | null;
1161
+ /** The attribute keys hidden from the document-attributes panel (the preset and the system keys); an empty list stands the full panel. */
1162
+ hiddenAttributes: readonly string[];
1163
+ /** The consumer's tags editor (the `tagEditor` prop); null stands the default chip input. */
1164
+ tagEditor: TagEditor | null;
1165
+ /** The consumer's per-key attribute-value renderer (the `renderAttribute` prop); null stands the built-in editors. */
1166
+ renderAttribute: RenderAttribute | null;
1167
+ /** The consumer's attribute type picker (the `attributeTypePicker` prop); null stands the built-in picker. */
1168
+ attributeTypePicker: AttributeTypePicker | null;
1100
1169
  /** The effective embed sandbox policy (the consumer's, or the safe default) — always present. */
1101
1170
  embedSandbox: EmbedSandboxPolicy;
1102
1171
  /** The entry-list root: the document root by default, a subtree block otherwise. */
@@ -1215,15 +1284,57 @@ interface EditorProviderProps {
1215
1284
  mentionProvider?: MentionProvider;
1216
1285
  /**
1217
1286
  * Optional mention interactions: the hover card's content
1218
- * (`renderCard`) and the chip's click's delivery (`onClick`). The
1219
- * package stands the card's position + lifecycle only (the portaled
1220
- * host, the hover's delay/grace, the Escape's close, the anchor's
1221
- * removal's close) — the design and the data are the consumer's, the
1222
- * click's stand is the consumer's. Like `mentionProvider`, the value is
1223
- * read per render into the provider context: pass a stable reference.
1224
- * A nested provider that supplies none inherits the enclosing one.
1287
+ * (`renderCard`), the chip's click's delivery (`onClick`), and the
1288
+ * picker's empty state (`renderEmptyState` — the no-matches' content
1289
+ * over the active query). The package stands the card's position +
1290
+ * lifecycle only (the portaled host, the hover's delay/grace, the
1291
+ * Escape's close, the anchor's removal's close) — the design and the
1292
+ * data are the consumer's, the click's stand is the consumer's. Like
1293
+ * `mentionProvider`, the value is read per render into the provider
1294
+ * context: pass a stable reference. A nested provider that supplies
1295
+ * none inherits the enclosing one.
1225
1296
  */
1226
1297
  mentionInteractions?: MentionInteractions;
1298
+ /**
1299
+ * Optional attribute keys to hide from the document-attributes panel
1300
+ * (the page column's above-the-first-block stand): the preset keys
1301
+ * (`description` / `tags` / `createdBy` / `cover` / `status` /
1302
+ * `publishedAt`), the custom keys, and the system rows (`id` /
1303
+ * `createdAt` / `updatedAt`). Consumer session state — never document
1304
+ * data. Like the other customization values, pass a stable reference.
1305
+ */
1306
+ hiddenAttributes?: readonly string[];
1307
+ /**
1308
+ * Optional replacement of the default tags editor (the `tags` preset
1309
+ * row of the document-attributes panel). The component receives the
1310
+ * live tag list, the replacement commit (one `setAttribute`), and the
1311
+ * read-only stand. Like `tagEditor`'s siblings, the value is read per
1312
+ * render into the provider context: pass a stable reference (the
1313
+ * component is module-level).
1314
+ */
1315
+ tagEditor?: TagEditor;
1316
+ /**
1317
+ * Optional per-key replacement of the document-attributes panel's value
1318
+ * zone (a preset key — `description` / `tags` / `createdBy` / `cover` /
1319
+ * `status` / `publishedAt` — or a custom key). The renderer receives the
1320
+ * key, the current value, the commit / removal entries, and the
1321
+ * read-only stand; `null` (or the absent stand) selects the built-in
1322
+ * editor for that key. The row's label (the key's display name) is the
1323
+ * panel's — the consumer renders the value only. Like `tagEditor`, the
1324
+ * value is read per render into the provider context: pass a stable
1325
+ * reference.
1326
+ */
1327
+ renderAttribute?: RenderAttribute;
1328
+ /**
1329
+ * Optional replacement of the custom-attribute add flow's type picker
1330
+ * (the document-attributes panel's "add attribute" stand). The component
1331
+ * receives the selected type and the pick's commit; the type's vocabulary
1332
+ * is the shared `ATTRIBUTE_TYPES` enum (the consumer's picker stands its
1333
+ * own design over it). Like `tagEditor`, the value is read per render
1334
+ * into the provider context: pass a stable reference (the component is
1335
+ * module-level).
1336
+ */
1337
+ attributeTypePicker?: AttributeTypePicker;
1227
1338
  /**
1228
1339
  * Optional embed sandbox policy: the iframe's `sandbox` value for a given
1229
1340
  * embed src; `null` stands no sandbox (a fully trusted embed). Without it
@@ -1300,4 +1411,4 @@ declare const DEFAULT_EMBED_SANDBOX = "allow-scripts allow-same-origin allow-for
1300
1411
  /** Read the per-instance editor context; throws outside an EditorProvider. */
1301
1412
  declare function useEditorContext(): EditorContextValue;
1302
1413
  //#endregion
1303
- export { ProtocolDescriptor as $, emptyFilter as A, Column as B, DatabaseTableProps as C, BlobStore as Ct, DatabaseTablePhase as D, useDatabaseTable as E, BridgeColumnAnnotation as F, Id as G, DomainEvent as H, BridgeTableDescription as I, MutationReceipt as J, IsoInstant as K, BridgeValueInput as L, FilterBuilder as M, BatchOp as N, DatabaseTableRow as O, BridgeColumn as P, ProtocolCapability as Q, CellMap as R, DatabaseTable as S, BlobRef as St, UseTableList as T, FilterConditionInput as U, DatabaseBridge as V, FilterInput as W, PageQuery as X, OperationStatus as Y, PageSnapshot as Z, PresenceIdentity as _, BridgeErrorCode as _t, EditorContextValue as a, RowWire as at, PresenceSharingMode as b, toBridgeError as bt, EmbedSandboxPolicy as c, SubscriptionObserver as ct, MentionProvider as d, TableEnvelopeBase as dt, ProtocolLimits as et, PdfPreview as f, TableEvent as ft, PresenceCrypto as g, BridgeError as gt, SyncEmbedResolver as h, BRIDGE_ERROR_CODES as ht, AccessLevel as i, RowPage as it, filterIsComplete as j, UseDatabaseTable as k, MentionEntry as l, SubscriptionStatus as lt, PresenceConfig as m, TableSnapshot as mt, DEFAULT_EMBED_SANDBOX as n, QuerySemantics as nt, EditorMode as o, SortInput as ot, PdfPreviewProps as p, TableRef as pt, MutationContext as q, EditorProvider as r, Revision as rt, EditorProviderProps as s, SubscriptionHandle as st, useEditorContext as t, QueryOperator as tt, MentionInteractions as u, TableDescription as ut, PresencePeer as v, isBridgeError as vt, DatabaseTableView as w, createMemoryBlobStore as wt, useTableList as x, BlobMeta as xt, PresenceSharing as y, isBridgeErrorCode as yt, CellValueParse as z };
1414
+ 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, TagEditorProps 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, RenderAttribute as _, TableDescription as _t, AttributeTypePicker as a, ProtocolCapability as at, SyncEmbedResolver as b, TableRef as bt, EditorMode as c, QueryOperator as ct, MentionEntry as d, RowPage as dt, MutationContext as et, MentionInteractions as f, RowWire as ft, PresenceConfig as g, SubscriptionStatus as gt, PdfPreviewProps as h, SubscriptionObserver as ht, AccessLevel as i, PageSnapshot as it, DatabaseTableView as j, createMemoryBlobStore as jt, DatabaseTable as k, BlobRef as kt, EditorProviderProps as l, QuerySemantics as lt, PdfPreview as m, SubscriptionHandle as mt, DEFAULT_EMBED_SANDBOX as n, OperationStatus as nt, AttributeTypePickerProps as o, ProtocolDescriptor as ot, MentionProvider as p, SortInput as pt, Column as q, EditorProvider as r, PageQuery as rt, EditorContextValue as s, ProtocolLimits as st, useEditorContext as t, MutationReceipt as tt, EmbedSandboxPolicy as u, Revision as ut, RenderAttributeProps as v, TableEnvelopeBase as vt, PresenceIdentity as w, BridgeErrorCode as wt, TagEditor as x, TableSnapshot as xt, SelectionRef as y, TableEvent as yt, FilterBuilder as z };
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { n as BlockRendererMap, r as BlockRendererProps, t as BlockRenderer } from "./index-YJcgf8Hh.mjs";
2
- import { $ as ProtocolDescriptor, A as emptyFilter, B as Column, C as DatabaseTableProps, Ct as BlobStore, D as DatabaseTablePhase, E as useDatabaseTable, F as BridgeColumnAnnotation, G as Id, H as DomainEvent, I as BridgeTableDescription, J as MutationReceipt, K as IsoInstant, L as BridgeValueInput, M as FilterBuilder, N as BatchOp, O as DatabaseTableRow, P as BridgeColumn, Q as ProtocolCapability, R as CellMap, S as DatabaseTable, St as BlobRef, T as UseTableList, U as FilterConditionInput, V as DatabaseBridge, W as FilterInput, X as PageQuery, Y as OperationStatus, Z as PageSnapshot, _ as PresenceIdentity, _t as BridgeErrorCode, a as EditorContextValue, at as RowWire, b as PresenceSharingMode, bt as toBridgeError, c as EmbedSandboxPolicy, ct as SubscriptionObserver, d as MentionProvider, dt as TableEnvelopeBase, et as ProtocolLimits, f as PdfPreview, ft as TableEvent, g as PresenceCrypto, gt as BridgeError, h as SyncEmbedResolver, ht as BRIDGE_ERROR_CODES, i as AccessLevel, it as RowPage, j as filterIsComplete, k as UseDatabaseTable, l as MentionEntry, lt as SubscriptionStatus, m as PresenceConfig, mt as TableSnapshot, n as DEFAULT_EMBED_SANDBOX, nt as QuerySemantics, o as EditorMode, ot as SortInput, p as PdfPreviewProps, pt as TableRef, q as MutationContext, r as EditorProvider, rt as Revision, s as EditorProviderProps, st as SubscriptionHandle, t as useEditorContext, tt as QueryOperator, u as MentionInteractions, ut as TableDescription, v as PresencePeer, vt as isBridgeError, w as DatabaseTableView, wt as createMemoryBlobStore, x as useTableList, xt as BlobMeta, y as PresenceSharing, yt as isBridgeErrorCode, z as CellValueParse } from "./index-B72m5FmT.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 TagEditorProps, 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 RenderAttribute, _t as TableDescription, a as AttributeTypePicker, at as ProtocolCapability, b as SyncEmbedResolver, bt as TableRef, c as EditorMode, ct as QueryOperator, d as MentionEntry, dt as RowPage, et as MutationContext, f as MentionInteractions, ft as RowWire, g as PresenceConfig, gt as SubscriptionStatus, h as PdfPreviewProps, ht as SubscriptionObserver, i as AccessLevel, it as PageSnapshot, j as DatabaseTableView, jt as createMemoryBlobStore, k as DatabaseTable, kt as BlobRef, l as EditorProviderProps, lt as QuerySemantics, m as PdfPreview, mt as SubscriptionHandle, n as DEFAULT_EMBED_SANDBOX, nt as OperationStatus, o as AttributeTypePickerProps, ot as ProtocolDescriptor, p as MentionProvider, pt as SortInput, q as Column, r as EditorProvider, rt as PageQuery, s as EditorContextValue, st as ProtocolLimits, t as useEditorContext, tt as MutationReceipt, u as EmbedSandboxPolicy, ut as Revision, v as RenderAttributeProps, vt as TableEnvelopeBase, w as PresenceIdentity, wt as BridgeErrorCode, x as TagEditor, xt as TableSnapshot, y as SelectionRef, yt as TableEvent, z as FilterBuilder } from "./index-DmC2uQ2K.mjs";
3
3
  import * as React from "react";
4
4
  import { ComponentType, ReactNode } from "react";
5
- import { Block, BlockId, BlockType, Doc, DocMeta, MentionMark, PresenceState, Selection, SelectionView, SyncEmbedRef, TextRun } from "docblocks-core";
5
+ import { AttributeType, Block, BlockId, BlockType, Doc, DocMeta, MentionKind, MentionMark, PresenceState, Selection, SelectionView, SyncEmbedRef, TextRun, TypedAttributeValue } from "docblocks-core";
6
6
  import "i18next";
7
7
  import { VariantProps } from "class-variance-authority";
8
8
  import { ClassValue } from "clsx";
@@ -274,14 +274,21 @@ declare class ImportDocumentError extends Error {
274
274
  */
275
275
  declare function importDocument(doc: Doc, source: string, kind: ImportKind): void;
276
276
  //#endregion
277
+ //#region src/text/runs-dom.d.ts
278
+ /** A mention chip's label resolver (the consumer's live label over the target's id). */
279
+ type MentionLabelResolver = (kind: MentionKind, id: string) => string | null;
280
+ //#endregion
277
281
  //#region src/text/runs.d.ts
278
282
  /**
279
283
  * Render inline text runs with their marks (lenient reader contract:
280
284
  * unknown marks are ignored and the text is kept). The link's href is
281
285
  * gated over the public contract (the remote input is not validated —
282
- * an unsafe scheme stands the plain text, never the raw <a>).
286
+ * an unsafe scheme stands the plain text, never the raw <a>). The mention
287
+ * chip's label stands the given resolver's live label (the consumer's
288
+ * `MentionProvider`'s `resolveLabel`) over the target's id, the
289
+ * insertion-time label (the run's text) otherwise.
283
290
  */
284
- declare function renderRuns(runs: TextRun[]): ReactNode;
291
+ declare function renderRuns(runs: TextRun[], resolveMentionLabel?: MentionLabelResolver): ReactNode;
285
292
  //#endregion
286
293
  //#region src/fonts.d.ts
287
294
  /**
@@ -337,7 +344,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
337
344
  //#endregion
338
345
  //#region src/shared/ui/Badge.d.ts
339
346
  declare const badgeVariants: (props?: ({
340
- variant?: "default" | "custom" | "secondary" | "destructive" | "outline" | null | undefined;
347
+ variant?: "default" | "destructive" | "outline" | "secondary" | "custom" | null | undefined;
341
348
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
342
349
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
343
350
  asChild?: boolean;
@@ -348,7 +355,7 @@ declare function BareSelect({ className, children, ...props }: React.ComponentPr
348
355
  //#endregion
349
356
  //#region src/shared/ui/Button.d.ts
350
357
  declare const buttonVariants: (props?: ({
351
- variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
358
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
352
359
  size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
353
360
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
354
361
  declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
@@ -394,15 +401,17 @@ declare function DropdownMenuSubContent({ className, ...props }: React.Component
394
401
  //#region src/shared/ui/Input.d.ts
395
402
  declare const inputVariants: (props?: ({
396
403
  size?: "default" | "sm" | null | undefined;
404
+ variant?: "default" | "inline" | null | undefined;
397
405
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
398
406
  /**
399
407
  * The input's props: the native input props minus the native `size`
400
408
  * attribute (the number) — it would collide with the size variant
401
409
  * (`number & "sm" | "default"` collapses to `undefined`); the variant
402
- * takes the name.
410
+ * takes the name. The `variant` axis stands the look (the framed's
411
+ * field / the row's flat field) — it is not a native attribute either.
403
412
  */
404
413
  type InputProps = Omit<React.ComponentProps<"input">, "size"> & VariantProps<typeof inputVariants>;
405
- declare function Input({ className, size, type, ...props }: InputProps): React.JSX.Element;
414
+ declare function Input({ className, size, variant, type, ...props }: InputProps): React.JSX.Element;
406
415
  //#endregion
407
416
  //#region src/shared/ui/Label.d.ts
408
417
  declare function Label({ className, ...props }: React.ComponentProps<"label">): React.JSX.Element;
@@ -482,4 +491,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
482
491
  //#region src/shared/ui/cn.d.ts
483
492
  declare function cn(...inputs: ClassValue[]): string;
484
493
  //#endregion
485
- export { type AccessLevel, Alert, AlertDescription, AlertTitle, 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, 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 Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, 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 };
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, 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, type TagEditor, type TagEditorProps, 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 };
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { $ as SelectScrollUpButton, A as parseCellValue, At as CardAction, B as useText, Bt as badgeVariants, C as validateProtocolDescriptor, Ct as PopoverDescription, D as isBridgeErrorCode, Dt as Input, E as isBridgeError, Et as PopoverTrigger, F as useMeta, Ft as CardTitle, G as SegmentSelector, H as useEditorContext, Ht as AlertDescription, I as usePresence, It as Button, J as SelectContent, Jt as Eye, K as ScrollArea, Kt as renderRuns, L as usePresenceSharing, Lt as buttonVariants, M as columnAnnotation, Mt as CardDescription, N as useBlock, Nt as CardFooter, O as toBridgeError, Ot as Checkbox, P as useDoc, Pt as CardHeader, Q as SelectScrollDownButton, R as useSelection, Rt as BareSelect, S as isDatabaseBridge, St as PopoverContent, T as BridgeError, Tt as PopoverTitle, U as DEFAULT_EMBED_SANDBOX, Ut as AlertTitle, V as EditorProvider, Vt as Alert, W as Skeleton, Wt as DocblocksI18nProvider, X as SelectItem, Xt as BookOpen, Y as SelectGroup, Z as SelectLabel, Zt as createMemoryBlobStore, _ as FilterBuilder, _t as DropdownMenuSubTrigger, a as SHAPE_FONT_STACKS, at as DropdownMenuCheckboxItem, b as BASELINE_CAPABILITIES, bt as Popover, ct as DropdownMenuItem, d as insertNative, dt as DropdownMenuRadioGroup, et as SelectSeparator, f as mdToBlocks, ft as DropdownMenuRadioItem, g as newMutationContext, gt as DropdownMenuSubContent, h as cellValueEqual, ht as DropdownMenuSub, i as SHAPE_FONT_OPTIONS, it as DropdownMenu, j as TEXT_TYPES, jt as CardContent, k as conditionMatches, kt as Card, l as markToggleAction, lt as DropdownMenuLabel, m as useDatabaseTable, mt as DropdownMenuShortcut, nt as SelectValue, ot as DropdownMenuContent, p as GridBody, pt as DropdownMenuSeparator, q as Select, qt as Pen, rt as Label, s as FORMAT_PALETTE, st as DropdownMenuGroup, t as Editor, tt as SelectTrigger, u as htmlToBlocks, ut as DropdownMenuPortal, v as emptyFilter, vt as DropdownMenuTrigger, w as BRIDGE_ERROR_CODES, wt as PopoverHeader, x as PROTOCOL_VERSION, xt as PopoverAnchor, y as filterIsComplete, yt as Separator, z as useSelectionView, zt as Badge } from "./Editor-PO0xG3XK.mjs";
1
+ import { $ as DropdownMenuTrigger, $t as BookOpen, A as SelectItem, At as Card, B as DropdownMenuCheckboxItem, 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 DropdownMenuPortal, Gt as useSelectionView, H as DropdownMenuGroup, Ht as usePresence, I as SelectValue, It as CardTitle, J as DropdownMenuSeparator, K as DropdownMenuRadioGroup, 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 DropdownMenuSubTrigger, R as InlineEditInput, Rt as badgeVariants, S as FilterBuilder, St as isBridgeError, T as SegmentSelector, Tt as conditionMatches, U as DropdownMenuItem, Ut as usePresenceSharing, V as DropdownMenuContent, Vt as useMeta, W as DropdownMenuLabel, Wt as useSelection, X as DropdownMenuSub, Xt as Pen, Y as DropdownMenuShortcut, Yt as renderRuns, Z as DropdownMenuSubContent, Zt as Eye, _ as parseFrontmatter, _t as PROTOCOL_VERSION, at as PopoverHeader, b as cellValueEqual, bt as BRIDGE_ERROR_CODES, c as SHAPE_FONT_STACKS, ct as Input, dt as buttonVariants, en as createMemoryBlobStore, et as Separator, 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 PopoverDescription, 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 PopoverAnchor, ot as PopoverTitle, p as htmlToBlocks, pt as Alert, q as DropdownMenuRadioItem, qt as DocblocksI18nProvider, r as useEditorContext, rt as PopoverContent, s as SHAPE_FONT_OPTIONS, st as PopoverTrigger, t as Editor, tt as Popover, 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 DropdownMenu, zt as useBlock } from "./Editor-DEHzA7Mt.mjs";
2
2
  import { a as preventDefault, s as cn } from "./constants-D8PSgkwi.mjs";
3
3
  import { useCallback, useEffect, useRef, useState } from "react";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { useTranslation } from "react-i18next";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { cva } from "class-variance-authority";
7
7
  import * as TabsPrimitive from "@radix-ui/react-tabs";
8
8
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
@@ -510,41 +510,6 @@ function useTableList(bridge) {
510
510
  * it renders in the consumer's chrome, outside the editor root where the
511
511
  * `--docblocks-*` tokens are not mapped.
512
512
  */
513
- /** The inline edit's input: the focus with the caret seated at the end (no select-all) on mount, the commit on the blur / the Enter (one write), the Escape cancels without a write. */
514
- function InlineEditInput({ initial, ariaLabel, slot, className, onCommit, onCancel }) {
515
- const inputRef = useRef(null);
516
- const committedRef = useRef(false);
517
- useEffect(() => {
518
- const input = inputRef.current;
519
- if (input === null) return;
520
- input.focus();
521
- input.setSelectionRange(input.value.length, input.value.length);
522
- }, []);
523
- const commit = (value) => {
524
- if (committedRef.current) return;
525
- committedRef.current = true;
526
- onCommit(value);
527
- };
528
- const onInputBlur = (event) => commit(event.target.value);
529
- const onInputKeyDown = (event) => {
530
- if (event.key === "Enter") {
531
- event.preventDefault();
532
- commit(event.currentTarget.value);
533
- } else if (event.key === "Escape") {
534
- committedRef.current = true;
535
- onCancel();
536
- }
537
- };
538
- return /* @__PURE__ */ jsx(Input, {
539
- ref: inputRef,
540
- "data-slot": slot,
541
- "aria-label": ariaLabel,
542
- defaultValue: initial,
543
- className,
544
- onBlur: onInputBlur,
545
- onKeyDown: onInputKeyDown
546
- });
547
- }
548
513
  /** The header's i18n scope: the package's instance stands the provider's seat
549
514
  * over the panel (the consumer places the header outside the editor — the
550
515
  * editor's own scope never reaches it). A consumer-wrapped subtree stands
@@ -730,9 +695,24 @@ function importDocument(doc, source, kind) {
730
695
  const rootId = doc.meta.id;
731
696
  const existing = doc.getChildren(rootId);
732
697
  if (existing.length > 0) throw new ImportDocumentError(`importDocument: the document is not fresh (the root has ${existing.length} children) — the import requires the empty root.`);
733
- const parsed = kind === "markdown" ? mdToBlocks(source) : htmlToBlocks(source);
734
- if (parsed.length === 0) return;
735
- doc.transact(() => materializeImport(doc, parsed));
698
+ let meta = null;
699
+ let payload = source;
700
+ if (kind === "markdown") {
701
+ const frontmatter = parseFrontmatter(source);
702
+ if (frontmatter !== null) {
703
+ meta = mapFrontmatter(frontmatter.entries);
704
+ payload = frontmatter.body;
705
+ }
706
+ }
707
+ const parsed = kind === "markdown" ? mdToBlocks(payload) : htmlToBlocks(source);
708
+ if (parsed.length === 0 && meta === null) return;
709
+ doc.transact(() => {
710
+ if (meta !== null) {
711
+ if (meta.title !== void 0) doc.setTitle(meta.title);
712
+ for (const [key, value] of Object.entries(meta.attributes)) doc.setAttribute(key, value);
713
+ }
714
+ if (parsed.length > 0) materializeImport(doc, parsed);
715
+ });
736
716
  }
737
717
  /**
738
718
  * The materialization into the root: the blocks append in the parser's
@@ -1,8 +1,8 @@
1
- import { G as SegmentSelector, Gt as INLINE_CODE_CLASS, H as useEditorContext, Ht as AlertDescription, Jt as Eye, Ut as AlertTitle, Vt as Alert, W as Skeleton, Yt as CodeXml, c as textOf, n as childrenSlot, o as TextBlock, r as CodeHeader } from "../Editor-PO0xG3XK.mjs";
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-DEHzA7Mt.mjs";
2
2
  import { f as LoaderCircle, l as TriangleAlert } from "../constants-D8PSgkwi.mjs";
3
3
  import { useEffect, useRef, useState } from "react";
4
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
4
  import { useTranslation } from "react-i18next";
5
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  import mermaid from "mermaid";
7
7
  //#region src/mermaid/mermaid-config.ts
8
8
  /** The mermaid renderer's config stand (the v1 security + behavior stand —
@@ -1,4 +1,4 @@
1
- import { p as PdfPreviewProps } from "../index-B72m5FmT.mjs";
1
+ import { h as PdfPreviewProps } from "../index-DmC2uQ2K.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
@@ -1,7 +1,7 @@
1
1
  import { c as X, d as Minus, f as LoaderCircle, i as isSafeDownloadHref, l as TriangleAlert, m as ChevronLeft, p as ChevronRight, r as clamp, s as cn, t as isEmbeddablePdfUrl, u as Plus } from "../constants-D8PSgkwi.mjs";
2
2
  import { useCallback, useEffect, useRef, useState } from "react";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import { useTranslation } from "react-i18next";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { createPortal } from "react-dom";
6
6
  import { GlobalWorkerOptions, RenderingCancelledException, getDocument } from "pdfjs-dist";
7
7
  //#region src/shared/ui/icons/Maximize.tsx
package/dist/styles.css CHANGED
@@ -457,9 +457,15 @@
457
457
  .mt-\(--docblocks-block-spacing\) {
458
458
  margin-top: var(--docblocks-block-spacing);
459
459
  }
460
+ .mt-0\.5 {
461
+ margin-top: calc(var(--spacing) * 0.5);
462
+ }
460
463
  .mt-1 {
461
464
  margin-top: var(--spacing);
462
465
  }
466
+ .mt-1\.5 {
467
+ margin-top: calc(var(--spacing) * 1.5);
468
+ }
463
469
  .mt-2 {
464
470
  margin-top: calc(var(--spacing) * 2);
465
471
  }
@@ -478,6 +484,15 @@
478
484
  .mb-2 {
479
485
  margin-bottom: calc(var(--spacing) * 2);
480
486
  }
487
+ .mb-4 {
488
+ margin-bottom: calc(var(--spacing) * 4);
489
+ }
490
+ .-ml-1 {
491
+ margin-left: calc(var(--spacing) * -1);
492
+ }
493
+ .-ml-1\.5 {
494
+ margin-left: calc(var(--spacing) * -1.5);
495
+ }
481
496
  .ml-0\.5 {
482
497
  margin-left: calc(var(--spacing) * 0.5);
483
498
  }
@@ -599,6 +614,10 @@
599
614
  width: calc(var(--spacing) * 9);
600
615
  height: calc(var(--spacing) * 9);
601
616
  }
617
+ .size-10 {
618
+ width: calc(var(--spacing) * 10);
619
+ height: calc(var(--spacing) * 10);
620
+ }
602
621
  .size-12 {
603
622
  width: calc(var(--spacing) * 12);
604
623
  height: calc(var(--spacing) * 12);
@@ -704,6 +723,9 @@
704
723
  .min-h-6 {
705
724
  min-height: calc(var(--spacing) * 6);
706
725
  }
726
+ .min-h-11 {
727
+ min-height: calc(var(--spacing) * 11);
728
+ }
707
729
  .min-h-16 {
708
730
  min-height: calc(var(--spacing) * 16);
709
731
  }
@@ -749,6 +771,9 @@
749
771
  .w-16 {
750
772
  width: calc(var(--spacing) * 16);
751
773
  }
774
+ .w-28 {
775
+ width: calc(var(--spacing) * 28);
776
+ }
752
777
  .w-40 {
753
778
  width: calc(var(--spacing) * 40);
754
779
  }
@@ -818,12 +843,18 @@
818
843
  .min-w-10 {
819
844
  min-width: calc(var(--spacing) * 10);
820
845
  }
846
+ .min-w-24 {
847
+ min-width: calc(var(--spacing) * 24);
848
+ }
821
849
  .min-w-32 {
822
850
  min-width: calc(var(--spacing) * 32);
823
851
  }
824
852
  .min-w-35 {
825
853
  min-width: calc(var(--spacing) * 35);
826
854
  }
855
+ .min-w-72 {
856
+ min-width: calc(var(--spacing) * 72);
857
+ }
827
858
  .min-w-110 {
828
859
  min-width: calc(var(--spacing) * 110);
829
860
  }
@@ -878,6 +909,9 @@
878
909
  --tw-translate-y: calc(-50% - 2px);
879
910
  translate: var(--tw-translate-x) var(--tw-translate-y);
880
911
  }
912
+ .-rotate-90 {
913
+ rotate: calc(90deg * -1);
914
+ }
881
915
  .rotate-45 {
882
916
  rotate: 45deg;
883
917
  }
@@ -1219,6 +1253,9 @@
1219
1253
  .border-input {
1220
1254
  border-color: var(--input);
1221
1255
  }
1256
+ .border-muted {
1257
+ border-color: var(--muted);
1258
+ }
1222
1259
  .border-ring {
1223
1260
  border-color: var(--ring);
1224
1261
  }
@@ -1375,6 +1412,9 @@
1375
1412
  .stroke-\(--docblocks-canvas-selected-stroke\) {
1376
1413
  stroke: var(--docblocks-canvas-selected-stroke);
1377
1414
  }
1415
+ .object-cover {
1416
+ object-fit: cover;
1417
+ }
1378
1418
  .p-\(--docblocks-block-spacing\) {
1379
1419
  padding: var(--docblocks-block-spacing);
1380
1420
  }
@@ -1489,6 +1529,9 @@
1489
1529
  .py-6 {
1490
1530
  padding-block: calc(var(--spacing) * 6);
1491
1531
  }
1532
+ .pt-1\.5 {
1533
+ padding-top: calc(var(--spacing) * 1.5);
1534
+ }
1492
1535
  .pt-2 {
1493
1536
  padding-top: calc(var(--spacing) * 2);
1494
1537
  }
@@ -1522,6 +1565,12 @@
1522
1565
  .pl-\(--docblocks-nested-indent\) {
1523
1566
  padding-left: var(--docblocks-nested-indent);
1524
1567
  }
1568
+ .pl-1 {
1569
+ padding-left: var(--spacing);
1570
+ }
1571
+ .pl-1\.5 {
1572
+ padding-left: calc(var(--spacing) * 1.5);
1573
+ }
1525
1574
  .pl-2 {
1526
1575
  padding-left: calc(var(--spacing) * 2);
1527
1576
  }
@@ -1631,6 +1680,9 @@
1631
1680
  .text-balance {
1632
1681
  text-wrap: balance;
1633
1682
  }
1683
+ .break-all {
1684
+ word-break: break-all;
1685
+ }
1634
1686
  .text-ellipsis {
1635
1687
  text-overflow: ellipsis;
1636
1688
  }
@@ -1870,6 +1922,11 @@
1870
1922
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1871
1923
  transition-duration: var(--tw-duration, var(--default-transition-duration));
1872
1924
  }
1925
+ .transition-transform {
1926
+ transition-property: transform, translate, scale, rotate;
1927
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1928
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
1929
+ }
1873
1930
  .transition-none {
1874
1931
  transition-property: none;
1875
1932
  }
@@ -2096,6 +2153,12 @@
2096
2153
  color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
2097
2154
  }
2098
2155
  }
2156
+ .placeholder\:text-muted-foreground\/70::placeholder {
2157
+ color: var(--muted-foreground);
2158
+ @supports (color: color-mix(in lab, red, red)) {
2159
+ color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
2160
+ }
2161
+ }
2099
2162
  .after\:absolute::after {
2100
2163
  content: var(--tw-content);
2101
2164
  position: absolute;
@@ -2192,6 +2255,14 @@
2192
2255
  .hover\:bg-muted:hover {
2193
2256
  background-color: var(--muted);
2194
2257
  }
2258
+ .hover\:bg-muted\/50:hover {
2259
+ background-color: var(--muted);
2260
+ }
2261
+ @supports (color: color-mix(in lab, red, red)) {
2262
+ .hover\:bg-muted\/50:hover {
2263
+ background-color: color-mix(in oklab, var(--muted) 50%, transparent);
2264
+ }
2265
+ }
2195
2266
  .hover\:bg-primary\/90:hover {
2196
2267
  background-color: var(--primary);
2197
2268
  }
@@ -2712,6 +2783,14 @@
2712
2783
  .dark\:hover\:bg-muted:is(.dark *):hover {
2713
2784
  background-color: var(--muted);
2714
2785
  }
2786
+ .dark\:hover\:bg-muted\/50:is(.dark *):hover {
2787
+ background-color: var(--muted);
2788
+ }
2789
+ @supports (color: color-mix(in lab, red, red)) {
2790
+ .dark\:hover\:bg-muted\/50:is(.dark *):hover {
2791
+ background-color: color-mix(in oklab, var(--muted) 50%, transparent);
2792
+ }
2793
+ }
2715
2794
  .dark\:hover\:bg-transparent:is(.dark *):hover {
2716
2795
  background-color: transparent;
2717
2796
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docblocks-react-ui",
3
- "version": "0.8.3",
3
+ "version": "0.9.1",
4
4
  "description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "peerDependencies": {
37
- "docblocks-core": "^0.3.0",
37
+ "docblocks-core": "^0.4.0",
38
38
  "framer-motion": "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
39
39
  "mermaid": "^12.0.0",
40
40
  "pdfjs-dist": "^6.0.0",