sparkdesign 0.4.4 → 0.4.6
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/README.md +74 -22
- package/cli/dist/commands/add.js +22 -12
- package/cli/dist/commands/diff.js +8 -4
- package/cli/dist/commands/init.js +84 -9
- package/cli/dist/commands/list.js +8 -4
- package/cli/dist/index.js +9 -6
- package/cli/dist/utils/config.js +16 -8
- package/cli/dist/utils/package-manager.js +75 -0
- package/cli/dist/utils/registry.js +8 -4
- package/cli/dist/utils/tokens.js +33 -25
- package/cli/dist/utils/transform.js +9 -5
- package/cli/dist/utils/tsconfig.js +182 -0
- package/cli/registry/AGENTS.md +18 -0
- package/cli/registry/__tests__/chat/thinking-indicator.test.tsx +2 -2
- package/cli/registry/chat/chat-input/chat-input-folder-selector.tsx +1 -1
- package/cli/registry/chat/chat-input/folder-permission-dialog.tsx +2 -2
- package/cli/registry/chat/image-generating.tsx +1 -1
- package/cli/registry/chat/response/context.tsx +1 -1
- package/cli/registry/chat/thinking-indicator.tsx +1 -1
- package/cli/registry/tokens/index.css +8 -5
- package/cli/registry/tokens/theme-base.css +235 -0
- package/{dist/tokens/themes/dark-qoder.css → cli/registry/tokens/themes/dark-mint.css} +1 -1
- package/cli/registry/tokens/themes/dark-parchment.css +104 -103
- package/{dist/tokens/themes/light-qoder.css → cli/registry/tokens/themes/light-mint.css} +1 -1
- package/cli/registry/tokens/themes/light-parchment.css +103 -102
- package/dist/registry/basic/alert-dialog.d.ts +7 -5
- package/dist/registry/basic/avatar.d.ts +7 -5
- package/dist/registry/basic/collapse.d.ts +7 -5
- package/dist/registry/basic/collapsible-card.d.ts +7 -6
- package/dist/registry/basic/collapsible.d.ts +7 -5
- package/dist/registry/basic/dropdown-menu.d.ts +7 -5
- package/dist/registry/basic/icons-inline.d.ts +7 -5
- package/dist/registry/basic/kbd.d.ts +7 -5
- package/dist/registry/basic/pagination.d.ts +7 -5
- package/dist/registry/basic/progress.d.ts +7 -5
- package/dist/registry/basic/radio-group.d.ts +7 -5
- package/dist/registry/basic/resizable.d.ts +7 -5
- package/dist/registry/basic/select.d.ts +7 -5
- package/dist/registry/basic/slider.d.ts +7 -5
- package/dist/registry/basic/sonner.d.ts +7 -5
- package/dist/registry/basic/switch.d.ts +7 -5
- package/dist/registry/basic/tabs.d.ts +7 -5
- package/dist/registry/basic/tag.d.ts +7 -5
- package/dist/registry/basic/theme-from-document.d.ts +7 -5
- package/dist/registry/basic/tooltip.d.ts +7 -5
- package/dist/registry/basic/typography.d.ts +7 -5
- package/dist/registry/chat/ask-user-part.d.ts +9 -3
- package/dist/registry/chat/browser-action-part.d.ts +9 -3
- package/dist/registry/chat/chat-input/compound.d.ts +7 -5
- package/dist/registry/chat/chat-input/context.d.ts +7 -5
- package/dist/registry/chat/chat-input/index.d.ts +7 -5
- package/dist/registry/chat/chat-input/types.d.ts +9 -3
- package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +9 -3
- package/dist/registry/chat/code-block-part.d.ts +9 -3
- package/dist/registry/chat/file-attachment.d.ts +7 -5
- package/dist/registry/chat/file-review-part.d.ts +9 -4
- package/dist/registry/chat/generated-images-grid.d.ts +9 -3
- package/dist/registry/chat/generation-status-bar.d.ts +8 -4
- package/dist/registry/chat/hint-banner.d.ts +9 -3
- package/dist/registry/chat/mermaid-part.d.ts +9 -3
- package/dist/registry/chat/plan-part.d.ts +9 -3
- package/dist/registry/chat/reasoning-step/index.d.ts +8 -6
- package/dist/registry/chat/reasoning-step/types.d.ts +9 -3
- package/dist/registry/chat/related-prompts.d.ts +9 -3
- package/dist/registry/chat/response/index.d.ts +8 -6
- package/dist/registry/chat/response/types.d.ts +9 -3
- package/dist/registry/chat/task-part.d.ts +9 -3
- package/dist/registry/chat/terminal-code-block-part.d.ts +9 -3
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +9 -3
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +9 -3
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +9 -3
- package/dist/registry/chat/user-question/types.d.ts +8 -5
- package/dist/registry/lib/file-icon-maps.d.ts +7 -7
- package/dist/registry/lib/utils.d.ts +8 -6
- package/dist/spark-design.cjs.js +6 -6
- package/dist/spark-design.es.js +10 -10
- package/dist/sparkdesign.css +2 -0
- package/dist/src/components/basic/AlertDialog/index.d.ts +7 -5
- package/dist/src/components/basic/Avatar/index.d.ts +9 -3
- package/dist/src/components/basic/Button/index.d.ts +9 -3
- package/dist/src/components/basic/Collapse/index.d.ts +7 -4
- package/dist/src/components/basic/Collapsible/index.d.ts +9 -4
- package/dist/src/components/basic/CollapsibleCard/index.d.ts +9 -3
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +7 -7
- package/dist/src/components/basic/DropdownMenu/index.d.ts +7 -5
- package/dist/src/components/basic/EllipsisText/index.d.ts +7 -15
- package/dist/src/components/basic/IconButton/index.d.ts +9 -3
- package/dist/src/components/basic/Kbd/index.d.ts +9 -3
- package/dist/src/components/basic/OptionList/index.d.ts +9 -3
- package/dist/src/components/basic/Pagination/index.d.ts +9 -3
- package/dist/src/components/basic/Progress/index.d.ts +9 -3
- package/dist/src/components/basic/RadioGroup/index.d.ts +9 -3
- package/dist/src/components/basic/Resizable/index.d.ts +9 -3
- package/dist/src/components/basic/Scrollbar/index.d.ts +9 -3
- package/dist/src/components/basic/Select/index.d.ts +7 -4
- package/dist/src/components/basic/ShimmeringText/index.d.ts +9 -3
- package/dist/src/components/basic/Skeleton/index.d.ts +9 -3
- package/dist/src/components/basic/Slider/index.d.ts +9 -3
- package/dist/src/components/basic/Spinner/index.d.ts +9 -3
- package/dist/src/components/basic/Switch/index.d.ts +8 -5
- package/dist/src/components/basic/Table/index.d.ts +9 -3
- package/dist/src/components/basic/Tabs/index.d.ts +9 -3
- package/dist/src/components/basic/Tag/index.d.ts +7 -4
- package/dist/src/components/basic/Toggle/index.d.ts +9 -3
- package/dist/src/components/basic/Tooltip/index.d.ts +7 -4
- package/dist/src/components/basic/Typography/index.d.ts +9 -3
- package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +9 -3
- package/dist/src/components/chat/GenerationStatusBar/index.d.ts +9 -3
- package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -1
- package/dist/src/components/chat/Markdown/index.d.ts +9 -3
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +9 -3
- package/dist/src/components/chat/Response/index.d.ts +8 -6
- package/dist/src/components/chat/UserMessage/index.d.ts +9 -3
- package/dist/src/components/index.d.ts +7 -9
- package/dist/src/icons/context.d.ts +7 -6
- package/dist/src/icons/types.d.ts +7 -5
- package/dist/src/lib/ThemeStyleContext.d.ts +9 -9
- package/dist/src/lib/file-icon.d.ts +7 -6
- package/dist/src/lib/i18n.d.ts +7 -6
- package/dist/src/lib/index.d.ts +9 -3
- package/dist/src/lib/utils.d.ts +7 -5
- package/dist/theme-base.css +7 -8
- package/dist/theme.css +2 -2
- package/dist/themes/{dark-qoder.css → dark-mint.css} +1 -1
- package/dist/themes/{light-qoder.css → light-mint.css} +1 -1
- package/dist/tokens/AGENTS.md +47 -0
- package/dist/tokens/index.css +10 -19
- package/dist/tokens/theme-base.css +7 -8
- package/dist/tokens/theme.css +2 -2
- package/dist/tokens/themes/dark-mint.css +133 -0
- package/dist/tokens/themes/light-mint.css +132 -0
- package/package.json +11 -5
- package/cli/registry/tokens/themes/dark-qoder.css +0 -132
- package/cli/registry/tokens/themes/light-qoder.css +0 -131
- package/dist/qoder-design.css +0 -2
- package/dist/tokens/CLAUDE.md +0 -305
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/basic/tooltip.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
7
|
* [PROTOCOL]:
|
|
7
|
-
* 1.
|
|
8
|
-
* 2.
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import * as React from 'react';
|
|
11
13
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/basic/typography.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
7
|
* [PROTOCOL]:
|
|
7
|
-
* 1.
|
|
8
|
-
* 2.
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import * as React from 'react';
|
|
11
13
|
export type TypographyH1Props = React.ComponentProps<'h1'>;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/ask-user-part.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
export interface AskUserPartProps {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/browser-action-part.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import { type ReactNode } from 'react';
|
|
7
13
|
export type BrowserActionStatus = 'normal' | 'failed' | 'skipped';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/chat-input/compound.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
7
|
* [PROTOCOL]:
|
|
7
|
-
* 1.
|
|
8
|
-
* 2.
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import React from 'react';
|
|
11
13
|
import type { ReactNode } from 'react';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/chat-input/context.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
7
|
* [PROTOCOL]:
|
|
7
|
-
* 1.
|
|
8
|
-
* 2.
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import React from 'react';
|
|
11
13
|
import type { ReactNode } from 'react';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/chat-input/index.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
7
|
* [PROTOCOL]:
|
|
7
|
-
* 1.
|
|
8
|
-
* 2.
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import React from 'react';
|
|
11
13
|
import { ChatInputRootProvider } from './context';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/chat-input/types.ts — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { TextareaHTMLAttributes, ReactNode } from 'react';
|
|
7
13
|
export type InputPropsWithWebkitDirectory = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Output: void; Inputs: (textareaRef, value, maxRows)
|
|
3
|
+
* [FROM]: react
|
|
4
|
+
* [TO]: CLI `add` copy target; canonical implementation in `src/components`
|
|
5
|
+
* [HERE]: registry/chat/chat-input
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when behavior changes
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when needed
|
|
10
|
+
* 3. Follow repository conventions for tokens and exports
|
|
5
11
|
*/
|
|
6
12
|
import { type RefObject } from 'react';
|
|
7
13
|
export declare function useAutoResizeTextarea(textareaRef: RefObject<HTMLTextAreaElement | null>, value: string, maxRows: number): void;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/code-block-part.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import { type ReactNode } from 'react';
|
|
7
13
|
export type CodeBlockDiffType = 'add' | 'remove';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/file-attachment.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
7
|
* [PROTOCOL]:
|
|
7
|
-
*
|
|
8
|
-
*
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
11
13
|
export interface FileAttachmentProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
5
|
-
*
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/file-review-part.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
6
11
|
*/
|
|
7
12
|
import { type ReactNode } from 'react';
|
|
8
13
|
export interface FileReviewFile {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/generated-images-grid.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
export interface GeneratedImagesGridProps {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/generation-status-bar.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
|
-
* [PROTOCOL]:
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
7
11
|
*/
|
|
8
12
|
import type { ReactNode } from 'react';
|
|
9
13
|
export interface GenerationStatusBarProps {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/hint-banner.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
export interface HintBannerProps {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Output: (JSX.Element); Inputs: (MermaidPartProps) - content (Mermaid source); optional headerIcon; falls back to inline SVG when omitted
|
|
3
|
+
* [FROM]: react; rel:../basic/collapsible-card; rel:../basic/button; rel:../basic/icons-inline; rel:../basic/scrollbar; rel:../lib/use-mermaid-render
|
|
4
|
+
* [TO]: CLI `add` copy target; canonical implementation in `src/components`
|
|
5
|
+
* [HERE]: registry/chat - Ported from QodeChatPanel; tokenized; dynamic mermaid import with fallback when the dependency is missing
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when behavior changes
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when needed
|
|
10
|
+
* 3. Follow repository conventions for tokens and exports
|
|
5
11
|
*/
|
|
6
12
|
import { type ReactNode } from 'react';
|
|
7
13
|
export interface MermaidPartProps {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/plan-part.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
export interface PlanPartProps {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/reasoning-step/index.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import { useReasoningStepContext } from './context';
|
|
11
13
|
import type { ReasoningStepProps, ReasoningStepCompound, ReasoningStepDetail, ReasoningStepStatus } from './types';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/reasoning-step/types.ts — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
export type ReasoningStepDetail = {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/related-prompts.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
export interface RelatedPromptItem {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/response/index.tsx — Spark Design source; keep aligned with the main library.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import type { HTMLAttributes } from 'react';
|
|
11
13
|
import { useResponseContext, DEMO_ROUNDS, DEMO_FINAL_MD } from './context';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/response/types.ts — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
7
13
|
import type { ReasoningStepDetail } from '../reasoning-step';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/task-part.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
export type TaskStatus = 'completed' | 'uncompleted' | 'skipped' | 'cancelled';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/terminal-code-block-part.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
export interface TerminalCodeBlockPartProps {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/user-question/UserQuestionCard.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|
7
13
|
import type { UserQuestionItem, UserQuestionLabels } from './types';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/user-question/UserQuestionFooter.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
import type { UserQuestionLabels } from './types';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/chat/user-question/UserQuestionHeader.tsx — Spark Design source; keep aligned with the main library.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
5
11
|
*/
|
|
6
12
|
import type { ReactNode } from 'react';
|
|
7
13
|
import type { UserQuestionItem } from './types';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Output: exports UserQuestion types and constants; Inputs: none (type-only module)
|
|
3
|
+
* [FROM]: react
|
|
4
|
+
* [TO]: CLI `add` copy target; canonical implementation in `src/components`
|
|
5
|
+
* [HERE]: registry/chat/user-question - single source for types
|
|
5
6
|
*
|
|
6
|
-
|
|
7
|
-
* 1.
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
8
11
|
*/
|
|
9
12
|
import type { ReactNode } from 'react';
|
|
10
13
|
/** 单个问题的选项 */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
5
|
-
*
|
|
6
|
-
* SETI_CHAR_MAP 与 QodeChatPanel 一致(qoder-seti.woff 使用 E054=js、E059=json 等)。
|
|
2
|
+
* [WHO]: Public exports from this file (see implementation below).
|
|
3
|
+
* [FROM]: See the import block immediately after this header.
|
|
4
|
+
* [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
|
|
5
|
+
* [HERE]: registry/lib/file-icon-maps.ts — Spark Design source; keep aligned with the main library.
|
|
7
6
|
*
|
|
8
7
|
* [PROTOCOL]:
|
|
9
|
-
* 1.
|
|
10
|
-
* 2.
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
11
11
|
*/
|
|
12
12
|
export declare const SETI_CHAR_MAP: Record<string, string>;
|
|
13
13
|
export declare const SETI_COLOR_MAP: Record<string, string>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* [
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
2
|
+
* [WHO]: Output: (string) - merged class names; Inputs: (ClassValue[])
|
|
3
|
+
* [FROM]: clsx; tailwind-merge
|
|
4
|
+
* [TO]: CLI `add` copy target; canonical implementation in `src/components`
|
|
5
|
+
* [HERE]: registry/lib/utils - registry helpers; safe to edit after CLI copy
|
|
5
6
|
*
|
|
6
|
-
|
|
7
|
-
* 1.
|
|
8
|
-
* 2.
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
9
11
|
*/
|
|
10
12
|
import { type ClassValue } from 'clsx';
|
|
11
13
|
export declare function cn(...inputs: ClassValue[]): string;
|