@deepseek-ai/dsh-client-ui-primitives 0.2.0-rc.2 → 0.2.1-alpha.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.
@@ -0,0 +1,23 @@
1
+ /** Multi-line inline editor for short saved-on-Enter drafts such as queued messages and goals. */
2
+ /**
3
+ * Render an autofocused textarea that grows with its text up to six lines, then scrolls.
4
+ * A textarea rather than an input: HTML strips newlines from single-line input values.
5
+ * Enter saves, Shift+Enter breaks the line, Enter during IME composition does nothing,
6
+ * and Escape cancels.
7
+ * @param props.value - current draft text.
8
+ * @param props.label - localized accessible name.
9
+ * @param props.onChange - receives the edited text.
10
+ * @param props.onSave - called for a plain Enter.
11
+ * @param props.onCancel - called for Escape.
12
+ * @param props.className - extra class for the editor's placement.
13
+ * @returns the textarea.
14
+ */
15
+ export declare function InlineEditor({ value, label, onChange, onSave, onCancel, className }: {
16
+ value: string;
17
+ label: string;
18
+ onChange: (value: string) => void;
19
+ onSave: () => void;
20
+ onCancel: () => void;
21
+ className?: string;
22
+ }): import("react").JSX.Element;
23
+ //# sourceMappingURL=InlineEditor.d.ts.map
@@ -21,6 +21,7 @@ export { SegmentedControl } from './SegmentedControl.tsx';
21
21
  export type { SegmentedControlOption } from './SegmentedControl.tsx';
22
22
  export { Checkbox } from './Checkbox.tsx';
23
23
  export { Input } from './Input.tsx';
24
+ export { InlineEditor } from './InlineEditor.tsx';
24
25
  export { Menu, MenuItemButton } from './Menu.tsx';
25
26
  export { MenuSurface } from './MenuSurface.tsx';
26
27
  export type { MenuSurfaceProps } from './MenuSurface.tsx';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-ui-primitives",
3
3
  "description": "Pure React atoms for the dsh web UI: controls, icons, markdown, and JSON inspectors (zero cordis)",
4
- "version": "0.2.0-rc.2",
4
+ "version": "0.2.1-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -47,10 +47,10 @@
47
47
  "micromark-extension-gfm": "^3.0.0",
48
48
  "micromark-util-sanitize-uri": "^2.0.1",
49
49
  "simple-icons": "16.31.0",
50
- "@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
51
- "@deepseek-ai/cordis": "~4.0.4",
52
- "@deepseek-ai/dsh-util-code-language": "0.2.0-rc.2",
53
- "@deepseek-ai/dsh-util-workspace-path": "0.2.0-rc.2"
50
+ "@deepseek-ai/dsh-client-store": "0.2.1-alpha.1",
51
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
52
+ "@deepseek-ai/dsh-util-code-language": "0.2.1-alpha.1",
53
+ "@deepseek-ai/dsh-util-workspace-path": "0.2.1-alpha.1"
54
54
  },
55
55
  "files": [
56
56
  "lib/index.js",
@@ -58,6 +58,6 @@
58
58
  "lib/types/**/*.d.ts"
59
59
  ],
60
60
  "peerDependencies": {
61
- "@deepseek-ai/cordis": "~4.0.4"
61
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1"
62
62
  }
63
63
  }