@seekbuddy/dsh-ui 0.0.0-stage → 0.2.0-beta.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.
- package/CHANGELOG.md +83 -0
- package/LICENSE +22 -0
- package/README.md +175 -2
- package/README.zh.md +176 -0
- package/THIRD_PARTY_NOTICES.md +42 -0
- package/UPSTREAM.md +59 -0
- package/dist/blocks.js +1617 -0
- package/dist/chunks/chunk-23KOEBWJ.js +104 -0
- package/dist/chunks/chunk-6SGSJ5KW.js +57 -0
- package/dist/chunks/chunk-7NH2UOZO.js +155 -0
- package/dist/chunks/chunk-7SKW4S35.js +66 -0
- package/dist/chunks/chunk-B3EEK7A2.js +408 -0
- package/dist/chunks/chunk-CEBTQO6W.js +24 -0
- package/dist/chunks/chunk-ENKPNYOB.js +26 -0
- package/dist/chunks/chunk-EWAZFWLW.js +27 -0
- package/dist/chunks/chunk-F352IICS.js +57 -0
- package/dist/chunks/chunk-FFJ6TCCF.js +31 -0
- package/dist/chunks/chunk-FZXK4LTI.js +129 -0
- package/dist/chunks/chunk-JA3XDLIA.js +1115 -0
- package/dist/chunks/chunk-L7XALG4J.js +36 -0
- package/dist/chunks/chunk-OCAQFVT3.js +3172 -0
- package/dist/chunks/chunk-RAXDA2PT.js +202 -0
- package/dist/chunks/chunk-RNVSCTW7.js +24 -0
- package/dist/chunks/chunk-RZOP2PFC.js +152 -0
- package/dist/chunks/chunk-SN6RSUWC.js +61 -0
- package/dist/chunks/chunk-SNVSQWCU.js +22 -0
- package/dist/chunks/chunk-SO3DCAWG.js +170 -0
- package/dist/chunks/chunk-UAEFKTV3.js +144 -0
- package/dist/chunks/chunk-UGEORMLD.js +89 -0
- package/dist/chunks/chunk-W6FLI3AK.js +112 -0
- package/dist/chunks/chunk-WX46TSKP.js +328 -0
- package/dist/chunks/chunk-XL33IPCV.js +261 -0
- package/dist/chunks/chunk-XW4L4ZGL.js +967 -0
- package/dist/chunks/chunk-YOBY6PSL.js +850 -0
- package/dist/chunks/chunk-ZA47FP7C.js +7 -0
- package/dist/icons.js +859 -0
- package/dist/index.js +1675 -0
- package/dist/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/katex.css +1 -0
- package/dist/katex.css.d.ts +2 -0
- package/dist/markdown.js +225 -0
- package/dist/meta.json +7575 -0
- package/dist/root-inputs.json +86 -0
- package/dist/seekbuddy-card.js +7 -0
- package/dist/seekbuddy-empty.js +8 -0
- package/dist/seekbuddy-internal/DangerButton.js +7 -0
- package/dist/seekbuddy-internal/Mark.js +7 -0
- package/dist/seekbuddy-internal/Message.js +10 -0
- package/dist/seekbuddy-internal/Pagination.js +9 -0
- package/dist/seekbuddy-internal/StatusBadge.js +7 -0
- package/dist/seekbuddy-internal/SubtleButton.js +7 -0
- package/dist/seekbuddy-internal/Switch.js +7 -0
- package/dist/seekbuddy-internal/Upload.js +7 -0
- package/dist/seekbuddy-internal/date/Calendar.js +8 -0
- package/dist/seekbuddy-internal/date/DatePicker.js +9 -0
- package/dist/seekbuddy-internal/date/DateRangePicker.js +9 -0
- package/dist/seekbuddy-internal/date/TimePicker.js +8 -0
- package/dist/seekbuddy-internal/date/fields.js +16 -0
- package/dist/seekbuddy-internal/qr/QrCode.js +7 -0
- package/dist/seekbuddy-spinner.js +7 -0
- package/dist/seekbuddy-tabs.js +7 -0
- package/dist/seekbuddy-timeline.js +8 -0
- package/dist/seekbuddy.js +89 -0
- package/dist/theme-bootstrap.js +13 -0
- package/dist/theme.js +37 -0
- package/dist/tokens.css +974 -0
- package/dist/tokens.css.d.ts +2 -0
- package/dist/types/AnimatedRows.d.ts +45 -0
- package/dist/types/Button.d.ts +18 -0
- package/dist/types/Checkbox.d.ts +19 -0
- package/dist/types/CodeFileIcon.d.ts +11 -0
- package/dist/types/CodeToolbar.d.ts +29 -0
- package/dist/types/CommandText.d.ts +15 -0
- package/dist/types/ConfigField.d.ts +32 -0
- package/dist/types/ConnectionIndicator.d.ts +25 -0
- package/dist/types/DetailDocument.d.ts +77 -0
- package/dist/types/DiffBlock.d.ts +51 -0
- package/dist/types/DisclosureRow.d.ts +37 -0
- package/dist/types/DraggableImage.d.ts +18 -0
- package/dist/types/FileTypeIcon.d.ts +42 -0
- package/dist/types/FoldToggle.d.ts +19 -0
- package/dist/types/HoverCard.d.ts +44 -0
- package/dist/types/HoverCardGroup.d.ts +24 -0
- package/dist/types/ImageLightbox.d.ts +29 -0
- package/dist/types/ImagePreview.d.ts +11 -0
- package/dist/types/InlineEditor.d.ts +22 -0
- package/dist/types/Input.d.ts +11 -0
- package/dist/types/JsonTree.d.ts +58 -0
- package/dist/types/LinkIcon.d.ts +33 -0
- package/dist/types/Menu.d.ts +163 -0
- package/dist/types/MenuGroup.d.ts +21 -0
- package/dist/types/MenuSurface.d.ts +24 -0
- package/dist/types/Modal.d.ts +43 -0
- package/dist/types/PermissionIcon.d.ts +50 -0
- package/dist/types/Pill.d.ts +12 -0
- package/dist/types/QuotePreview.d.ts +23 -0
- package/dist/types/ReadBlock.d.ts +47 -0
- package/dist/types/ReferenceIcon.d.ts +20 -0
- package/dist/types/RiskConfirmation.d.ts +19 -0
- package/dist/types/SearchBlock.d.ts +71 -0
- package/dist/types/SegmentedControl.d.ts +34 -0
- package/dist/types/SegmentedTabs.d.ts +27 -0
- package/dist/types/ShortcutKeys.d.ts +10 -0
- package/dist/types/SiteGlyph.d.ts +24 -0
- package/dist/types/StateDot.d.ts +19 -0
- package/dist/types/Switch.d.ts +19 -0
- package/dist/types/Tag.d.ts +31 -0
- package/dist/types/TerminalBlock.d.ts +85 -0
- package/dist/types/TextShimmer.d.ts +22 -0
- package/dist/types/Toast.d.ts +48 -0
- package/dist/types/Tooltip.d.ts +69 -0
- package/dist/types/UserMessageBubble.d.ts +10 -0
- package/dist/types/WebBlock.d.ts +60 -0
- package/dist/types/ZoomControls.d.ts +26 -0
- package/dist/types/ansi.d.ts +16 -0
- package/dist/types/blocks.d.ts +21 -0
- package/dist/types/clipboard.d.ts +8 -0
- package/dist/types/code-file-icon-artwork.d.ts +53 -0
- package/dist/types/code-file-types.d.ts +29 -0
- package/dist/types/code-highlighting.d.ts +11 -0
- package/dist/types/css-modules.d.ts +6 -0
- package/dist/types/darwin-desktop.d.ts +8 -0
- package/dist/types/document-zoom.d.ts +16 -0
- package/dist/types/file-drag-actions.d.ts +36 -0
- package/dist/types/file-size.d.ts +7 -0
- package/dist/types/focus.d.ts +15 -0
- package/dist/types/guide-artwork.d.ts +14 -0
- package/dist/types/head-tail-cap.d.ts +22 -0
- package/dist/types/icons/artwork.d.ts +421 -0
- package/dist/types/icons/index.d.ts +397 -0
- package/dist/types/icons/props.d.ts +8 -0
- package/dist/types/icons/shared-artwork.d.ts +36 -0
- package/dist/types/icons.d.ts +6 -0
- package/dist/types/image-drag.d.ts +16 -0
- package/dist/types/index.d.ts +71 -0
- package/dist/types/input-modality.d.ts +18 -0
- package/dist/types/keyboard-composition.d.ts +10 -0
- package/dist/types/markdown/CodeBlock.d.ts +34 -0
- package/dist/types/markdown/JsonBlock.d.ts +7 -0
- package/dist/types/markdown/MarkdownDelegate.d.ts +68 -0
- package/dist/types/markdown/MarkdownText.d.ts +54 -0
- package/dist/types/markdown/cjkFriendlyStrong.d.ts +8 -0
- package/dist/types/markdown/file-link.d.ts +22 -0
- package/dist/types/markdown/highlight.d.ts +169 -0
- package/dist/types/markdown/incremental.d.ts +79 -0
- package/dist/types/markdown/katex.d.ts +18 -0
- package/dist/types/markdown/local-image-syntax.d.ts +9 -0
- package/dist/types/markdown/mathCompatibility.d.ts +10 -0
- package/dist/types/markdown/parse.d.ts +24 -0
- package/dist/types/markdown/plain-text.d.ts +21 -0
- package/dist/types/markdown/quote-text.d.ts +7 -0
- package/dist/types/markdown/render.d.ts +145 -0
- package/dist/types/markdown/useViewportHighlighting.d.ts +10 -0
- package/dist/types/markdown/windows-path-destinations.d.ts +10 -0
- package/dist/types/markdown.d.ts +12 -0
- package/dist/types/overlay-top-margin.d.ts +14 -0
- package/dist/types/plugin-artwork.d.ts +16 -0
- package/dist/types/pointer-grace.d.ts +21 -0
- package/dist/types/rank-by-name.d.ts +21 -0
- package/dist/types/relative-time.d.ts +22 -0
- package/dist/types/seekbuddy/Card.d.ts +28 -0
- package/dist/types/seekbuddy/DangerButton.d.ts +31 -0
- package/dist/types/seekbuddy/Empty.d.ts +34 -0
- package/dist/types/seekbuddy/Mark.d.ts +27 -0
- package/dist/types/seekbuddy/Message.d.ts +52 -0
- package/dist/types/seekbuddy/Pagination.d.ts +66 -0
- package/dist/types/seekbuddy/Spinner.d.ts +20 -0
- package/dist/types/seekbuddy/StatusBadge.d.ts +33 -0
- package/dist/types/seekbuddy/SubtleButton.d.ts +30 -0
- package/dist/types/seekbuddy/Switch.d.ts +36 -0
- package/dist/types/seekbuddy/Tabs.d.ts +49 -0
- package/dist/types/seekbuddy/Timeline.d.ts +42 -0
- package/dist/types/seekbuddy/Upload.d.ts +101 -0
- package/dist/types/seekbuddy/date/Calendar.d.ts +94 -0
- package/dist/types/seekbuddy/date/DatePicker.d.ts +29 -0
- package/dist/types/seekbuddy/date/DateRangePicker.d.ts +41 -0
- package/dist/types/seekbuddy/date/TimePicker.d.ts +35 -0
- package/dist/types/seekbuddy/date/date.d.ts +79 -0
- package/dist/types/seekbuddy/date/fields.d.ts +45 -0
- package/dist/types/seekbuddy/index.d.ts +49 -0
- package/dist/types/seekbuddy/qr/QrCode.d.ts +37 -0
- package/dist/types/seekbuddy/qr/qr.d.ts +38 -0
- package/dist/types/theme-bootstrap.d.ts +3 -0
- package/dist/types/theme-core.d.ts +14 -0
- package/dist/types/theme.d.ts +4 -0
- package/dist/types/tooltip-placement.d.ts +34 -0
- package/dist/types/use-clipboard-copy.d.ts +13 -0
- package/dist/types/useAnchoredMaxHeight.d.ts +13 -0
- package/dist/types/useAnchoredPosition.d.ts +35 -0
- package/dist/types/useDismissOnOutsidePointer.d.ts +10 -0
- package/dist/types/useModalLayer.d.ts +26 -0
- package/dist/types/useRowDragPreview.d.ts +19 -0
- package/dist/types/user-text.d.ts +31 -0
- package/package.json +151 -4
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Synchronous placement for body-portaled panels with a viewport fixed-position containing block. */
|
|
2
|
+
import { type CSSProperties, type RefObject } from 'react';
|
|
3
|
+
/** Inputs for {@link useAnchoredPosition}. */
|
|
4
|
+
export interface AnchoredPositionOptions {
|
|
5
|
+
/** Whether the panel is mounted and should track its anchor. */
|
|
6
|
+
open: boolean;
|
|
7
|
+
/** Element whose viewport rect anchors the panel. */
|
|
8
|
+
anchorRef: RefObject<HTMLElement | null>;
|
|
9
|
+
/** Body-portaled, fixed-position panel; its ancestors must not establish a containing block. */
|
|
10
|
+
panelRef: RefObject<HTMLElement | null>;
|
|
11
|
+
/** Preferred anchor edge; right-side panels align their top edges. */
|
|
12
|
+
side?: 'top' | 'bottom' | 'right';
|
|
13
|
+
/** Horizontal alignment for panels above or below the anchor. */
|
|
14
|
+
align?: 'start' | 'end';
|
|
15
|
+
/** Distance from the preferred anchor edge, in CSS pixels. */
|
|
16
|
+
gap: number;
|
|
17
|
+
/** Minimum viewport inset; desktop frame clearance can increase the top inset. */
|
|
18
|
+
margin: number;
|
|
19
|
+
/** Reserve desktop frame clearance in addition to the margin; false keeps only the viewport margin. Defaults to true. */
|
|
20
|
+
frameClearance?: boolean;
|
|
21
|
+
/** Host-supplied client rect; null hides the panel until the anchor is available. */
|
|
22
|
+
getAnchorRect?: () => DOMRect | null;
|
|
23
|
+
/** Re-measure a committed content change before paint. */
|
|
24
|
+
layoutKey?: string | number;
|
|
25
|
+
/** Minimum panel width follows the anchor, bounded by the visible viewport. */
|
|
26
|
+
minWidthFromAnchor?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Keep a fixed panel aligned and constrained to the visible viewport.
|
|
30
|
+
* Panel CSS consumes `--dsh-anchored-max-width` and `--dsh-anchored-max-height` for size limits.
|
|
31
|
+
* The hook owns those inline variables and optional min-width while open, restoring them on cleanup.
|
|
32
|
+
* @param options - Open state, element refs, placement, and optional host rect or content change key.
|
|
33
|
+
* @returns Fixed left/top coordinates, or null while closed or awaiting an anchor; the first measurement completes before paint.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useAnchoredPosition(options: AnchoredPositionOptions): CSSProperties | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Close an open popover when a pointerdown lands outside its root element.
|
|
4
|
+
* @param root - element containing both the trigger and the open surface.
|
|
5
|
+
* @param open - whether the surface is showing; false detaches the listener.
|
|
6
|
+
* @param setOpen - state setter invoked with false on an outside pointerdown.
|
|
7
|
+
* @param portal - surface portaled outside the root (a `document.body` dialog)
|
|
8
|
+
* that also counts as inside; omit when the root contains the whole popover.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDismissOnOutsidePointer(root: RefObject<HTMLElement | null>, open: boolean, setOpen: (open: boolean) => void, portal?: RefObject<HTMLElement | null>): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
/** Dialog and menu elements whose document order determines foreground shortcut ownership. */
|
|
3
|
+
export declare const modalSelector = "[role=\"dialog\"][aria-modal=\"true\"], [role=\"menu\"]";
|
|
4
|
+
/**
|
|
5
|
+
* Request closure of the foreground registered modal using its current onClose callback.
|
|
6
|
+
* A newer menu or unregistered dialog blocks dismissal of the modal behind it.
|
|
7
|
+
* @param document - product document whose modal owns the close command.
|
|
8
|
+
*/
|
|
9
|
+
export declare function closeTopModal(document: Document): void;
|
|
10
|
+
/**
|
|
11
|
+
* Whether an anchor belongs behind the current modal and must yield keyboard input.
|
|
12
|
+
* @param anchor - local control owning the input handler.
|
|
13
|
+
* @returns true when another modal owns the foreground.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isBehindModal(anchor: HTMLElement | null): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Give only the top modal Escape and Tab ownership, then restore its previous focus.
|
|
18
|
+
* Automatic entry and return focus omit outlines; keyboard traversal retains its indicators.
|
|
19
|
+
* Controls mounted with the dialog use data-modal-autofocus for initial focus;
|
|
20
|
+
* React autoFocus runs before this layer can capture the invoking control.
|
|
21
|
+
* Local menus handle their Escape during capture before this bubble listener.
|
|
22
|
+
* @param dialog - mounted dialog element.
|
|
23
|
+
* @param open - whether this layer is active.
|
|
24
|
+
* @param onClose - top-layer Escape or application close action.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useModalLayer(dialog: RefObject<HTMLElement | null>, open: boolean, onClose: () => void): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DragEvent } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Own a row's inert drag preview until drag end, replacement, or unmount.
|
|
4
|
+
* The offscreen copy keeps WebKit snapshots separate from overlapping panels.
|
|
5
|
+
* The wrapper copies only explicitly requested computed custom properties.
|
|
6
|
+
* Its cloned slot DOM remains in document.body for that lifetime; query live rows
|
|
7
|
+
* within their list to exclude duplicate text and element IDs.
|
|
8
|
+
* @param className - preview background matching the row's surface; WebKit fills
|
|
9
|
+
* transparent snapshot pixels white, including rounded corners.
|
|
10
|
+
* @param inheritedProperties - custom-property names whose computed values the preview needs.
|
|
11
|
+
* Omit to copy none. Keep the list reference stable; replacing it clears the active preview.
|
|
12
|
+
* @returns preview callbacks; cleanup reports whether this row started a drag,
|
|
13
|
+
* even when its preview failed or the row became non-draggable before drag end.
|
|
14
|
+
* Start accepts the source row when a child handle owns the drag event.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useRowDragPreview(className: string, inheritedProperties?: readonly `--${string}`[]): {
|
|
17
|
+
start: (event: DragEvent<HTMLElement>, row?: HTMLElement) => void;
|
|
18
|
+
clear: () => boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Inline text and reference presentation; business rules supply resolved JSON data and actions. */
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
|
+
import { type ReferenceIconKind } from './ReferenceIcon.js';
|
|
5
|
+
/** Plain text follows the wrapping and typography of its host. */
|
|
6
|
+
export interface UserTextRunProps {
|
|
7
|
+
readonly text: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Render an uninterpreted inline text run.
|
|
11
|
+
* @param props - text retained verbatim from the caller's document.
|
|
12
|
+
* @returns one inline run without Markdown or reference recognition.
|
|
13
|
+
*/
|
|
14
|
+
export declare function UserTextRun({ text }: UserTextRunProps): ReactNode;
|
|
15
|
+
/** Presentation selected by a reference renderer, independent of its matching grammar. */
|
|
16
|
+
export interface ReferenceChipProps {
|
|
17
|
+
readonly appearance: ReferenceIconKind | 'skill' | 'command';
|
|
18
|
+
/** Explicit object-menu gesture bindings; absent for display-only references. */
|
|
19
|
+
readonly contextMenuProps?: Pick<HTMLAttributes<HTMLElement>, 'onContextMenu' | 'onKeyDown' | 'tabIndex'>;
|
|
20
|
+
readonly label: string;
|
|
21
|
+
readonly title: string;
|
|
22
|
+
/** Absent for display-only references and previews. */
|
|
23
|
+
readonly onActivate?: () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Render a reference label or its explicitly supplied activation action.
|
|
27
|
+
* Text selection and repeated pointer clicks do not activate the reference.
|
|
28
|
+
* @param props - resolved visual fields and optional action from the owning renderer.
|
|
29
|
+
* @returns an inline label, or a keyboard-accessible button when activation is supplied.
|
|
30
|
+
*/
|
|
31
|
+
export declare function ReferenceChip({ appearance, label, title, onActivate, contextMenuProps, }: ReferenceChipProps): ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,153 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seekbuddy/dsh-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0-beta.1",
|
|
4
|
+
"description": "Unofficial React components in the DeepSeek Harness (DSH) web UI design system: the DSH primitives plus the components DSH does not provide (cards, tabs, pagination, messages, upload, date/time pickers), on the same --dsw-* tokens. Not affiliated with or endorsed by DeepSeek.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"dsh",
|
|
7
|
+
"deepseek-harness",
|
|
8
|
+
"react",
|
|
9
|
+
"ui",
|
|
10
|
+
"design-system",
|
|
11
|
+
"tokens"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/seekbuddy/dsh-ui#readme",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/seekbuddy/dsh-ui.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/seekbuddy/dsh-ui/issues"
|
|
20
|
+
},
|
|
21
|
+
"author": "SeekBuddy",
|
|
22
|
+
"type": "module",
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
|
+
"types": "./dist/types/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/types/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./blocks": {
|
|
32
|
+
"types": "./dist/types/blocks.d.ts",
|
|
33
|
+
"import": "./dist/blocks.js"
|
|
34
|
+
},
|
|
35
|
+
"./markdown": {
|
|
36
|
+
"types": "./dist/types/markdown.d.ts",
|
|
37
|
+
"import": "./dist/markdown.js"
|
|
38
|
+
},
|
|
39
|
+
"./icons": {
|
|
40
|
+
"types": "./dist/types/icons.d.ts",
|
|
41
|
+
"import": "./dist/icons.js"
|
|
42
|
+
},
|
|
43
|
+
"./theme": {
|
|
44
|
+
"types": "./dist/types/theme.d.ts",
|
|
45
|
+
"import": "./dist/theme.js"
|
|
46
|
+
},
|
|
47
|
+
"./theme/bootstrap": {
|
|
48
|
+
"types": "./dist/types/theme-bootstrap.d.ts",
|
|
49
|
+
"import": "./dist/theme-bootstrap.js"
|
|
50
|
+
},
|
|
51
|
+
"./seekbuddy": {
|
|
52
|
+
"types": "./dist/types/seekbuddy/index.d.ts",
|
|
53
|
+
"import": "./dist/seekbuddy.js"
|
|
54
|
+
},
|
|
55
|
+
"./seekbuddy/card": {
|
|
56
|
+
"types": "./dist/types/seekbuddy/Card.d.ts",
|
|
57
|
+
"import": "./dist/seekbuddy-card.js"
|
|
58
|
+
},
|
|
59
|
+
"./seekbuddy/empty": {
|
|
60
|
+
"types": "./dist/types/seekbuddy/Empty.d.ts",
|
|
61
|
+
"import": "./dist/seekbuddy-empty.js"
|
|
62
|
+
},
|
|
63
|
+
"./seekbuddy/spinner": {
|
|
64
|
+
"types": "./dist/types/seekbuddy/Spinner.d.ts",
|
|
65
|
+
"import": "./dist/seekbuddy-spinner.js"
|
|
66
|
+
},
|
|
67
|
+
"./seekbuddy/tabs": {
|
|
68
|
+
"types": "./dist/types/seekbuddy/Tabs.d.ts",
|
|
69
|
+
"import": "./dist/seekbuddy-tabs.js"
|
|
70
|
+
},
|
|
71
|
+
"./seekbuddy/timeline": {
|
|
72
|
+
"types": "./dist/types/seekbuddy/Timeline.d.ts",
|
|
73
|
+
"import": "./dist/seekbuddy-timeline.js"
|
|
74
|
+
},
|
|
75
|
+
"./tokens.css": {
|
|
76
|
+
"types": "./dist/tokens.css.d.ts",
|
|
77
|
+
"default": "./dist/tokens.css"
|
|
78
|
+
},
|
|
79
|
+
"./katex.css": {
|
|
80
|
+
"types": "./dist/katex.css.d.ts",
|
|
81
|
+
"default": "./dist/katex.css"
|
|
82
|
+
},
|
|
83
|
+
"./package.json": "./package.json"
|
|
84
|
+
},
|
|
85
|
+
"files": [
|
|
86
|
+
"dist",
|
|
87
|
+
"LICENSE",
|
|
88
|
+
"README.md",
|
|
89
|
+
"THIRD_PARTY_NOTICES.md",
|
|
90
|
+
"UPSTREAM.md",
|
|
91
|
+
"CHANGELOG.md"
|
|
92
|
+
],
|
|
93
|
+
"sideEffects": [
|
|
94
|
+
"**/*.css",
|
|
95
|
+
"**/*.mjs"
|
|
96
|
+
],
|
|
97
|
+
"license": "MIT",
|
|
98
|
+
"scripts": {
|
|
99
|
+
"build": "node build/build.mjs",
|
|
100
|
+
"typecheck": "tsc --noEmit",
|
|
101
|
+
"test": "npm run test:unit",
|
|
102
|
+
"test:unit": "node scripts/run-unit-tests.mjs",
|
|
103
|
+
"test:package": "node scripts/test-package.mjs",
|
|
104
|
+
"test:react18": "node scripts/test-fixture.mjs react18",
|
|
105
|
+
"test:next16": "node scripts/test-fixture.mjs next16",
|
|
106
|
+
"verify": "npm run typecheck && npm run test:docs && npm run test:unit && npm run build && npm run test:package && npm run test:react18 && npm run test:next16",
|
|
107
|
+
"prepack": "npm run build",
|
|
108
|
+
"test:docs": "node scripts/check-doc-pairs.mjs && node scripts/check-doc-examples.mjs"
|
|
109
|
+
},
|
|
110
|
+
"peerDependencies": {
|
|
111
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
112
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
113
|
+
},
|
|
114
|
+
"dependencies": {
|
|
115
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.2-rc.1",
|
|
116
|
+
"@shikijs/langs": "^4.3.1",
|
|
117
|
+
"@types/mdast": "^4.0.4",
|
|
118
|
+
"anser": "^2.3.5",
|
|
119
|
+
"clsx": "^2.0.0",
|
|
120
|
+
"diff": "^9.0.0",
|
|
121
|
+
"katex": "^0.16.47",
|
|
122
|
+
"mdast-util-from-markdown": "^2.0.3",
|
|
123
|
+
"mdast-util-gfm": "^3.1.0",
|
|
124
|
+
"mdast-util-math": "^3.0.0",
|
|
125
|
+
"micromark-core-commonmark": "^2.0.3",
|
|
126
|
+
"micromark-extension-gfm": "^3.0.0",
|
|
127
|
+
"micromark-extension-math": "^3.1.0",
|
|
128
|
+
"micromark-factory-space": "^2.0.1",
|
|
129
|
+
"micromark-util-character": "^2.1.1",
|
|
130
|
+
"micromark-util-classify-character": "^2.0.1",
|
|
131
|
+
"micromark-util-sanitize-uri": "^2.0.1",
|
|
132
|
+
"micromark-util-symbol": "^2.0.1",
|
|
133
|
+
"micromark-util-types": "^2.0.2",
|
|
134
|
+
"shiki": "^4.3.1",
|
|
135
|
+
"simple-icons": "16.31.0"
|
|
136
|
+
},
|
|
137
|
+
"devDependencies": {
|
|
138
|
+
"@types/node": "^24",
|
|
139
|
+
"@types/react": "~18.3.1",
|
|
140
|
+
"@types/react-dom": "~18.3.1",
|
|
141
|
+
"esbuild": "^0.25.0",
|
|
142
|
+
"lightningcss": "^1.32.0",
|
|
143
|
+
"react": "^18.2.0",
|
|
144
|
+
"react-dom": "^18.2.0",
|
|
145
|
+
"typescript": "^7.0.2"
|
|
146
|
+
},
|
|
147
|
+
"allowScripts": {
|
|
148
|
+
"esbuild@0.25.12": true
|
|
149
|
+
},
|
|
150
|
+
"publishConfig": {
|
|
151
|
+
"access": "public"
|
|
152
|
+
}
|
|
153
|
+
}
|