docblocks-react-ui 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/README.md +33 -4
- package/dist/{Editor-DRvBv_X-.mjs → Editor-CTSlILEm.mjs} +1520 -1016
- package/dist/index.d.mts +31 -3
- package/dist/index.mjs +2 -2
- package/dist/mermaid/index.mjs +1 -1
- package/dist/styles.css +20 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
7
7
|
import { ClassValue } from "clsx";
|
|
8
8
|
import { DayPicker } from "react-day-picker";
|
|
9
9
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
10
|
+
import "i18next";
|
|
10
11
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
11
12
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
12
13
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
@@ -173,6 +174,33 @@ interface DocHeaderProps {
|
|
|
173
174
|
* is unchanged. */
|
|
174
175
|
declare function DocHeader(props: DocHeaderProps): import("react").JSX.Element;
|
|
175
176
|
//#endregion
|
|
177
|
+
//#region src/i18n/provider.d.ts
|
|
178
|
+
/** The provider's props (the optional controlled locale + the children's i18n scope). */
|
|
179
|
+
interface DocblocksI18nProviderProps {
|
|
180
|
+
/** The consumer's resolved locale (the SSR's parity: the server and the client pass the same value, so both renders take the same language from the first render — independent of the `<html lang>` attribute). */
|
|
181
|
+
locale?: string;
|
|
182
|
+
children: ReactNode;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* The docblocks' i18n scope: the package's own i18next instance over the
|
|
186
|
+
* subtree — the docblocks' `useTranslation` resolves against it and never
|
|
187
|
+
* conflicts with the consumer's global i18next singleton (the instance's
|
|
188
|
+
* isolation). The `EditorProvider` and the consumer-placed `DocHeader`
|
|
189
|
+
* both wrap over it.
|
|
190
|
+
*
|
|
191
|
+
* The optional `locale` prop is the controlled mode: the provider creates
|
|
192
|
+
* its own synchronously initialized instance over the normalized locale
|
|
193
|
+
* (one per provider, keyed by the normalized value — a locale change
|
|
194
|
+
* selects the new instance and re-renders the subtree). The controlled
|
|
195
|
+
* mode never mutates the legacy singleton and never calls
|
|
196
|
+
* `changeLanguage` on it, so the concurrent subtrees over different
|
|
197
|
+
* locales stay isolated. The provider without a locale inherits the
|
|
198
|
+
* outer's controlled instance when nested over one; outside a controlled
|
|
199
|
+
* provider it keeps the legacy behavior — the module-level instance
|
|
200
|
+
* driven by the `<html lang>` attribute and its runtime flip.
|
|
201
|
+
*/
|
|
202
|
+
declare function DocblocksI18nProvider({ locale, children }: DocblocksI18nProviderProps): import("react").JSX.Element;
|
|
203
|
+
//#endregion
|
|
176
204
|
//#region src/hooks.d.ts
|
|
177
205
|
/** The headless document owned by the nearest EditorProvider. */
|
|
178
206
|
declare function useDoc(): Doc;
|
|
@@ -294,7 +322,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
|
|
|
294
322
|
//#endregion
|
|
295
323
|
//#region src/shared/ui/Badge.d.ts
|
|
296
324
|
declare const badgeVariants: (props?: ({
|
|
297
|
-
variant?: "default" | "destructive" | "
|
|
325
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "custom" | null | undefined;
|
|
298
326
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
299
327
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
300
328
|
asChild?: boolean;
|
|
@@ -305,7 +333,7 @@ declare function BareSelect({ className, children, ...props }: React.ComponentPr
|
|
|
305
333
|
//#endregion
|
|
306
334
|
//#region src/shared/ui/Button.d.ts
|
|
307
335
|
declare const buttonVariants: (props?: ({
|
|
308
|
-
variant?: "link" | "default" | "destructive" | "
|
|
336
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
309
337
|
size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
|
|
310
338
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
311
339
|
declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -439,4 +467,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
|
|
|
439
467
|
//#region src/shared/ui/cn.d.ts
|
|
440
468
|
declare function cn(...inputs: ClassValue[]): string;
|
|
441
469
|
//#endregion
|
|
442
|
-
export { type AccessLevel, Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlobSubtype, type BlockRenderer, type BlockRendererMap, type BlockRendererProps, type BridgeColumn, type BridgeColumnAnnotation, BridgeError, type BridgeErrorCode, type BridgeTableDescription, type BridgeValueInput, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CellMap, type CellValueParse, Checkbox, type Column, DEFAULT_EMBED_SANDBOX, type DatabaseBridge, DatabaseTable, type DatabaseTablePhase, type DatabaseTableProps, type DatabaseTableRow, type DatabaseTableView, DocHeader, type DomainEvent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, type EditorContextValue, type EditorMode, EditorProvider, type EditorProviderProps, type EditorView, type EmbedSandboxPolicy, FORMAT_PALETTE, FilterBuilder, type FilterConditionInput, type FilterInput, type FormatMark, type Id, Input, type IsoInstant, Label, MONO_FONT_STACK, type MentionEntry, type MentionProvider, type MutationContext, type MutationReceipt, type OperationStatus, PROTOCOL_VERSION, type PageQuery, type PageSnapshot, type PdfPreview, type PdfPreviewProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type PresenceConfig, type PresenceCrypto, type PresenceIdentity, type PresencePeer, type PresenceSharing, type PresenceSharingMode, type ProtocolCapability, type ProtocolDescriptor, type ProtocolLimits, type QueryOperator, type QuerySemantics, type Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, blobSubtypeOf, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
|
|
470
|
+
export { type AccessLevel, Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, type BatchOp, type BlobMeta, type BlobRef, type BlobStore, type BlobSubtype, type BlockRenderer, type BlockRendererMap, type BlockRendererProps, type BridgeColumn, type BridgeColumnAnnotation, BridgeError, type BridgeErrorCode, type BridgeTableDescription, type BridgeValueInput, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CellMap, type CellValueParse, Checkbox, type Column, DEFAULT_EMBED_SANDBOX, type DatabaseBridge, DatabaseTable, type DatabaseTablePhase, type DatabaseTableProps, type DatabaseTableRow, type DatabaseTableView, DocHeader, DocblocksI18nProvider, type DocblocksI18nProviderProps, type DomainEvent, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, type EditorContextValue, type EditorMode, EditorProvider, type EditorProviderProps, type EditorView, type EmbedSandboxPolicy, FORMAT_PALETTE, FilterBuilder, type FilterConditionInput, type FilterInput, type FormatMark, type Id, Input, type IsoInstant, Label, MONO_FONT_STACK, type MentionEntry, type MentionProvider, type MutationContext, type MutationReceipt, type OperationStatus, PROTOCOL_VERSION, type PageQuery, type PageSnapshot, type PdfPreview, type PdfPreviewProps, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, type PresenceConfig, type PresenceCrypto, type PresenceIdentity, type PresencePeer, type PresenceSharing, type PresenceSharingMode, type ProtocolCapability, type ProtocolDescriptor, type ProtocolLimits, type QueryOperator, type QuerySemantics, type Revision, type RowPage, type RowWire, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, type SortInput, type SubscriptionHandle, type SubscriptionObserver, type SubscriptionStatus, type SyncEmbedRef, type SyncEmbedResolver, TEXT_TYPES, type TableDescription, type TableEnvelopeBase, type TableEvent, type TableRef, type TableSnapshot, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UI_FONT_ID, UI_FONT_STACK, type UseDatabaseTable, type UseTableList, badgeVariants, blobSubtypeOf, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as PopoverHeader, A as SelectTrigger, At as isBridgeErrorCode, B as DropdownMenuRadioGroup, Bt as useMeta, C as SelectContent, Ct as BASELINE_CAPABILITIES, D as SelectScrollDownButton, Dt as BRIDGE_ERROR_CODES, E as SelectLabel, Et as validateProtocolDescriptor, F as DropdownMenuContent, Ft as columnAnnotation, G as DropdownMenuSubContent, Gt as useText, H as DropdownMenuSeparator, Ht as usePresenceSharing, I as DropdownMenuGroup, It as ScrollArea, J as Separator, Jt as blobSubtypeOf, K as DropdownMenuSubTrigger, L as DropdownMenuItem, Lt as Input, M as Label, Mt as conditionMatches, N as DropdownMenu, Nt as parseCellValue, O as SelectScrollUpButton, Ot as BridgeError, P as DropdownMenuCheckboxItem, Pt as TEXT_TYPES, Q as PopoverDescription, R as DropdownMenuLabel, Rt as useBlock, S as Select, St as AlertTitle, T as SelectItem, Tt as isDatabaseBridge, U as DropdownMenuShortcut, Ut as useSelection, V as DropdownMenuRadioItem, Vt as usePresence, W as DropdownMenuSub, Wt as useSelectionView, X as PopoverAnchor, Y as Popover, Yt as createMemoryBlobStore, Z as PopoverContent, _ as FilterBuilder, _t as BareSelect, a as SHAPE_FONT_STACKS, at as CardAction, b as Skeleton, bt as Alert, ct as CardFooter, d as useEditorContext, dt as Pen, et as PopoverTitle, f as DEFAULT_EMBED_SANDBOX, ft as Eye, g as newMutationContext, gt as buttonVariants, h as cellValueEqual, ht as Button, i as SHAPE_FONT_OPTIONS, it as Card, j as SelectValue, jt as toBridgeError, k as SelectSeparator, kt as isBridgeError, l as markToggleAction, lt as CardHeader, m as useDatabaseTable, mt as BookOpen, nt as DocblocksI18nProvider, ot as CardContent, p as GridBody, q as DropdownMenuTrigger, qt as renderRuns, rt as Checkbox, s as FORMAT_PALETTE, st as CardDescription, t as Editor, tt as PopoverTrigger, u as EditorProvider, ut as CardTitle, v as emptyFilter, vt as Badge, w as SelectGroup, wt as PROTOCOL_VERSION, x as SegmentSelector, xt as AlertDescription, y as filterIsComplete, yt as badgeVariants, z as DropdownMenuPortal, zt as useDoc } from "./Editor-
|
|
1
|
+
import { $ as PopoverHeader, A as SelectTrigger, At as isBridgeErrorCode, B as DropdownMenuRadioGroup, Bt as useMeta, C as SelectContent, Ct as BASELINE_CAPABILITIES, D as SelectScrollDownButton, Dt as BRIDGE_ERROR_CODES, E as SelectLabel, Et as validateProtocolDescriptor, F as DropdownMenuContent, Ft as columnAnnotation, G as DropdownMenuSubContent, Gt as useText, H as DropdownMenuSeparator, Ht as usePresenceSharing, I as DropdownMenuGroup, It as ScrollArea, J as Separator, Jt as blobSubtypeOf, K as DropdownMenuSubTrigger, L as DropdownMenuItem, Lt as Input, M as Label, Mt as conditionMatches, N as DropdownMenu, Nt as parseCellValue, O as SelectScrollUpButton, Ot as BridgeError, P as DropdownMenuCheckboxItem, Pt as TEXT_TYPES, Q as PopoverDescription, R as DropdownMenuLabel, Rt as useBlock, S as Select, St as AlertTitle, T as SelectItem, Tt as isDatabaseBridge, U as DropdownMenuShortcut, Ut as useSelection, V as DropdownMenuRadioItem, Vt as usePresence, W as DropdownMenuSub, Wt as useSelectionView, X as PopoverAnchor, Y as Popover, Yt as createMemoryBlobStore, Z as PopoverContent, _ as FilterBuilder, _t as BareSelect, a as SHAPE_FONT_STACKS, at as CardAction, b as Skeleton, bt as Alert, ct as CardFooter, d as useEditorContext, dt as Pen, et as PopoverTitle, f as DEFAULT_EMBED_SANDBOX, ft as Eye, g as newMutationContext, gt as buttonVariants, h as cellValueEqual, ht as Button, i as SHAPE_FONT_OPTIONS, it as Card, j as SelectValue, jt as toBridgeError, k as SelectSeparator, kt as isBridgeError, l as markToggleAction, lt as CardHeader, m as useDatabaseTable, mt as BookOpen, nt as DocblocksI18nProvider, ot as CardContent, p as GridBody, q as DropdownMenuTrigger, qt as renderRuns, rt as Checkbox, s as FORMAT_PALETTE, st as CardDescription, t as Editor, tt as PopoverTrigger, u as EditorProvider, ut as CardTitle, v as emptyFilter, vt as Badge, w as SelectGroup, wt as PROTOCOL_VERSION, x as SegmentSelector, xt as AlertDescription, y as filterIsComplete, yt as badgeVariants, z as DropdownMenuPortal, zt as useDoc } from "./Editor-CTSlILEm.mjs";
|
|
2
2
|
import { d as cn, l as preventDefault } from "./constants-BaAj3jDA.mjs";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -756,4 +756,4 @@ const UI_FONT_STACK = "'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif
|
|
|
756
756
|
*/
|
|
757
757
|
const MONO_FONT_STACK = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
758
758
|
//#endregion
|
|
759
|
-
export { Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, BridgeError, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DEFAULT_EMBED_SANDBOX, DatabaseTable, DocHeader, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorProvider, FORMAT_PALETTE, FilterBuilder, Input, Label, MONO_FONT_STACK, PROTOCOL_VERSION, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, TEXT_TYPES, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UI_FONT_ID, UI_FONT_STACK, badgeVariants, blobSubtypeOf, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
|
|
759
|
+
export { Alert, AlertDescription, AlertTitle, BASELINE_CAPABILITIES, BRIDGE_ERROR_CODES, Badge, BareSelect, BridgeError, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, DEFAULT_EMBED_SANDBOX, DatabaseTable, DocHeader, DocblocksI18nProvider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorProvider, FORMAT_PALETTE, FilterBuilder, Input, Label, MONO_FONT_STACK, PROTOCOL_VERSION, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, SHAPE_FONT_OPTIONS, SHAPE_FONT_STACKS, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Skeleton, TEXT_TYPES, Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UI_FONT_ID, UI_FONT_STACK, badgeVariants, blobSubtypeOf, buttonVariants, cellValueEqual, cn, columnAnnotation, conditionMatches, createMemoryBlobStore, emptyFilter, filterIsComplete, isBridgeError, isBridgeErrorCode, isDatabaseBridge, markToggleAction, newMutationContext, parseCellValue, renderRuns, toBridgeError, useBlock, useDatabaseTable, useDoc, useEditorContext, useMeta, usePresence, usePresenceSharing, useSelection, useSelectionView, useTableList, useText, validateProtocolDescriptor };
|
package/dist/mermaid/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kt as INLINE_CODE_CLASS, St as AlertTitle, b as Skeleton, bt as Alert, c as textOf, d as useEditorContext, ft as Eye, n as childrenSlot, o as TextBlock, pt as CodeXml, r as CodeHeader, x as SegmentSelector, xt as AlertDescription } from "../Editor-
|
|
1
|
+
import { Kt as INLINE_CODE_CLASS, St as AlertTitle, b as Skeleton, bt as Alert, c as textOf, d as useEditorContext, ft as Eye, n as childrenSlot, o as TextBlock, pt as CodeXml, r as CodeHeader, x as SegmentSelector, xt as AlertDescription } from "../Editor-CTSlILEm.mjs";
|
|
2
2
|
import { r as TriangleAlert } from "../constants-BaAj3jDA.mjs";
|
|
3
3
|
import { t as LoaderCircle } from "../LoaderCircle-AGVFE4IP.mjs";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
package/dist/styles.css
CHANGED
|
@@ -700,6 +700,9 @@
|
|
|
700
700
|
.min-h-40 {
|
|
701
701
|
min-height: calc(var(--spacing) * 40);
|
|
702
702
|
}
|
|
703
|
+
.min-h-\[1em\] {
|
|
704
|
+
min-height: 1em;
|
|
705
|
+
}
|
|
703
706
|
.w-\(--cell-size\) {
|
|
704
707
|
width: var(--cell-size);
|
|
705
708
|
}
|
|
@@ -3578,6 +3581,12 @@
|
|
|
3578
3581
|
--docblocks-table-border-color: var(--border, rgba(175, 184, 193, 0.4));
|
|
3579
3582
|
--docblocks-table-border-width: 1px;
|
|
3580
3583
|
--docblocks-table-cell-padding: 4px 8px;
|
|
3584
|
+
/* The dragged row / column's cell (the drag preview's card): the
|
|
3585
|
+
elevated surface's background + the shadow — the card must read on
|
|
3586
|
+
every theme's background (the monochrome theme's card / the page's
|
|
3587
|
+
colors do not differ). */
|
|
3588
|
+
--docblocks-table-drag-background: var(--card, #ffffff);
|
|
3589
|
+
--docblocks-table-drag-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
3581
3590
|
/* The database grid's standard row height (the fixed row track: every
|
|
3582
3591
|
column type stands the one height — the cell's trigger / the input fit
|
|
3583
3592
|
the content box, the row never grows over its content). */
|
|
@@ -3676,6 +3685,8 @@
|
|
|
3676
3685
|
--docblocks-code-token-variable: #ffa657;
|
|
3677
3686
|
--docblocks-divider-border-color: var(--border, rgba(110, 118, 129, 0.65));
|
|
3678
3687
|
--docblocks-table-border-color: var(--border, rgba(110, 118, 129, 0.65));
|
|
3688
|
+
--docblocks-table-drag-background: var(--card, #27272a);
|
|
3689
|
+
--docblocks-table-drag-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
|
|
3679
3690
|
--docblocks-selected-background: color-mix(in srgb, var(--accent, #388bfd) 15%, transparent);
|
|
3680
3691
|
|
|
3681
3692
|
--docblocks-canvas-background: color-mix(in srgb, var(--muted, #6e7681) 15%, transparent);
|
|
@@ -3717,9 +3728,14 @@
|
|
|
3717
3728
|
* the browser's default focus ring would stand the visible ring over the
|
|
3718
3729
|
* whole document after a drag's release. The ring is suppressed; the
|
|
3719
3730
|
* focus itself stays (the keyboard's scoping needs it), and the
|
|
3720
|
-
* individual controls keep their own focus styles.
|
|
3731
|
+
* individual controls keep their own focus styles. The page's container
|
|
3732
|
+
* stands the same stand over the shared editable's surface: the click's
|
|
3733
|
+
* seat and the re-seat's park land the focus in it (the nested inners
|
|
3734
|
+
* keep the focus over the engines that cannot move it into them), and
|
|
3735
|
+
* the default's auto ring would draw the frame over the whole column.
|
|
3721
3736
|
*/
|
|
3722
|
-
[data-slot="docblocks/editor"]:focus
|
|
3737
|
+
[data-slot="docblocks/editor"]:focus,
|
|
3738
|
+
[data-slot="docblocks/page"]:focus {
|
|
3723
3739
|
outline: none;
|
|
3724
3740
|
}
|
|
3725
3741
|
|
|
@@ -3797,7 +3813,8 @@
|
|
|
3797
3813
|
only while the block holds the caret (the pseudo-element content is not
|
|
3798
3814
|
text content — the input layer and the run rendering ignore it); the
|
|
3799
3815
|
attribute carries the provider's placeholder text. */
|
|
3800
|
-
[data-slot="docblocks/block-content"]:empty:focus::before
|
|
3816
|
+
[data-slot="docblocks/block-content"]:empty:focus::before,
|
|
3817
|
+
[data-slot="docblocks/block-content"]:empty[data-caret-inside]::before {
|
|
3801
3818
|
content: attr(data-placeholder);
|
|
3802
3819
|
color: var(--docblocks-placeholder-color);
|
|
3803
3820
|
pointer-events: none;
|
package/package.json
CHANGED