dsh-fish-ui 0.5.0 → 0.6.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/dist/index.js CHANGED
@@ -1,20 +1,44 @@
1
- import Schema from '@deepseek-ai/schemastery';
1
+ import Schema from "@deepseek-ai/schemastery";
2
2
  const flags = [
3
- 'hero', 'field', 'wave', 'ripple', 'thinkingSphere', 'thinkingLabel',
4
- 'glass', 'effortBadge', 'sidebarDots', 'sidebarRail', 'bold', 'focusRing', 'diff',
5
- 'reading', 'code', 'fishFont', 'fishGlow', 'fishMotion', 'fishCode',
6
- 'catppuccin', 'aurora', 'cursor', 'textMotion', 'hostIcons',
3
+ "hero",
4
+ "field",
5
+ "wave",
6
+ "ripple",
7
+ "thinkingSphere",
8
+ "thinkingLabel",
9
+ "glass",
10
+ "effortBadge",
11
+ "sidebarDots",
12
+ "sidebarRail",
13
+ "bold",
14
+ "focusRing",
15
+ "diff",
16
+ "reading",
17
+ "code",
18
+ "fishFont",
19
+ "fishGlow",
20
+ "fishMotion",
21
+ "fishCode",
22
+ "catppuccin",
23
+ "aurora",
24
+ "cursor",
25
+ "textMotion",
26
+ "hostIcons"
7
27
  ];
8
- export const Config = Schema.object({
9
- ...Object.fromEntries(flags.map(key => [key, Schema.boolean().default(true).volatile()])),
10
- scene: Schema.union(['atlas', 'aurora', 'orbit', 'dunes', 'rain', 'lotus']).default('atlas').volatile(),
11
- sceneMotion: Schema.union(['still', 'calm', 'flow']).default('calm').volatile(),
12
- iconStyle: Schema.union(['line', 'duotone']).default('duotone').volatile(),
13
- accentColor: Schema.string().pattern(/^#[0-9a-f]{6}$/i).default('#4D6BFE').volatile(),
14
- settingsMigrated: Schema.boolean().default(false).volatile().hidden(),
28
+ const Config = Schema.object({
29
+ ...Object.fromEntries(flags.map((key) => [key, Schema.boolean().default(true).volatile()])),
30
+ scene: Schema.union(["atlas", "aurora", "orbit", "dunes", "rain", "lotus"]).default("atlas").volatile(),
31
+ sceneMotion: Schema.union(["still", "calm", "flow"]).default("calm").volatile(),
32
+ iconStyle: Schema.union(["line", "duotone"]).default("duotone").volatile(),
33
+ accentColor: Schema.string().pattern(/^#[0-9a-f]{6}$/i).default("#4D6BFE").volatile(),
34
+ settingsMigrated: Schema.boolean().default(false).volatile().hidden()
15
35
  });
16
- export function apply(ctx) {
17
- ctx.inject(['settings'], scope => {
18
- scope.effect(() => scope.settings.configure({ auto: false }, ctx.fiber), 'dsh-fish-ui: preferences');
19
- });
36
+ function apply(ctx) {
37
+ ctx.inject(["settings"], (scope) => {
38
+ scope.effect(() => scope.settings.configure({ auto: false }, ctx.fiber), "dsh-fish-ui: preferences");
39
+ });
20
40
  }
41
+ export {
42
+ Config,
43
+ apply
44
+ };
package/icon.png CHANGED
Binary file
package/icon.svg CHANGED
@@ -1,17 +1,46 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 128 128">
2
+ <title>Deep Fish UI</title>
2
3
  <defs>
3
- <linearGradient id="ocean" x1=".1" y1="0" x2=".85" y2="1">
4
- <stop stop-color="#718DFF"/><stop offset=".48" stop-color="#4D6BFE"/><stop offset="1" stop-color="#243EAA"/>
4
+ <linearGradient id="abyss" x1="0" y1="0" x2="1" y2="1">
5
+ <stop stop-color="#172040"/>
6
+ <stop offset=".58" stop-color="#101632"/>
7
+ <stop offset="1" stop-color="#0B1029"/>
5
8
  </linearGradient>
6
- <linearGradient id="pearl" x1=".85" y1=".2" x2=".2" y2=".9">
7
- <stop stop-color="#FFFFFF"/><stop offset="1" stop-color="#D3EDFF"/>
9
+ <linearGradient id="cobalt" x1=".1" y1="0" x2=".9" y2=".9">
10
+ <stop stop-color="#7189FF"/>
11
+ <stop offset=".43" stop-color="#4D6BFE"/>
12
+ <stop offset="1" stop-color="#405BE8"/>
13
+ </linearGradient>
14
+ <linearGradient id="pearl" x1="0" y1="1" x2="1" y2="0">
15
+ <stop stop-color="#FFE5C0"/>
16
+ <stop offset="1" stop-color="#FFFAEC"/>
8
17
  </linearGradient>
9
18
  </defs>
10
- <rect width="64" height="64" rx="16" fill="url(#ocean)"/>
11
- <rect x=".5" y=".5" width="63" height="63" rx="15.5" fill="none" stroke="#BFD4FF" stroke-opacity=".42"/>
12
- <path d="M27 28Q28 18 40 12L38 23ZM31 39Q29 45 32 50Q40 43 40 33Z" fill="#9DD7FF"/>
13
- <path d="M18 36C25 25 39 16 54 17C52 32 39 43 21 43C16 47 11 49 6 49C9 44 12 40 15 38C11 34 9 29 10 24C15 26 18 31 18 36Z" fill="url(#pearl)"/>
14
- <path d="M23 39C31 37 36 33 40 29" fill="none" stroke="#6EA4F9" stroke-width="1.8" stroke-linecap="round"/>
15
- <circle cx="46.3" cy="23.4" r="1.8" fill="#243EAA"/>
16
- <path d="M11 53Q18 52 24 48" fill="none" stroke="#9DD7FF" stroke-width="1.7" stroke-linecap="round"/>
19
+ <rect width="128" height="128" rx="28" fill="url(#abyss)"/>
20
+ <rect x=".5" y=".5" width="127" height="127" rx="27.5"
21
+ fill="none" stroke="#A9B7EB" stroke-opacity=".17"/>
22
+ <g transform="translate(0 -1.4)">
23
+ <path fill="url(#cobalt)" fill-rule="evenodd" d="
24
+ M116 43.4
25
+ C107.5 38.3 96.3 36.2 86.4 37.1
26
+ C73.9 30.4 63.3 29.2 53.8 33.5
27
+ C62.1 35.8 64.2 40.1 59.7 48.2
28
+ C66.2 43.5 72.7 40.3 81.1 38.4
29
+ C66.2 43.9 50.4 57.3 39.3 74.3
30
+ C41.7 64.8 36.5 61.1 30.3 57.4
31
+ C21.4 52.3 14.7 46.8 12.4 37.2
32
+ C10.8 50.5 14.6 60.7 21.8 67.9
33
+ C28.4 74.4 29.4 79.4 26.8 87.2
34
+ C24.3 94.8 20 100.1 15.1 103.1
35
+ C27.4 98.2 33.7 91 43.2 80.8
36
+ C62.3 60.6 74.3 54.1 88.7 55.4
37
+ C100.5 56.5 110.2 52.4 116 43.4 Z
38
+ M106.1 45 A2.45 2.45 0 1 0 101.2 45 A2.45 2.45 0 1 0 106.1 45 Z"/>
39
+ <path fill="url(#pearl)" d="
40
+ M48.8 82.3
41
+ C63.4 69.6 73.1 62.6 86.7 60.2
42
+ C100.3 57.9 107.8 54.5 112.8 49
43
+ C105.7 62.4 94.3 70.1 77.9 73.7
44
+ C65.3 76.3 56.6 77.1 48.8 82.3 Z"/>
45
+ </g>
17
46
  </svg>
package/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "Deep Fish UI",
4
- "description": "Six animated scenes, a dot-matrix whale-girl and two icon styles. Use DeepSeek blue or choose your own accent independently of the backdrop."
4
+ "description": "Choose a session model and reasoning level in the composer. Six illustrated scenes respond when the first word of a reply arrives."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "Deep Fish UI",
4
- "description": "点阵鲸鱼娘、六套动态场景和两种图标风格。界面默认使用 DeepSeek 蓝,也可单独选择强调色。"
4
+ "description": "在输入框里切换当前会话的模型与推理强度。六套插画背景会在回复首字出现时各自播放一次动效。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dsh-fish-ui",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
- "description": "Six illustrated scenes, DeepSeek blue or custom accents, and outline or duotone icons for DeepSeek Harness.",
5
+ "description": "Live model and reasoning controls, six illustrated conversation scenes and first-reply motion for DeepSeek Harness.",
6
6
  "license": "MIT",
7
7
  "author": "Guocheng Song",
8
8
  "repository": {
@@ -61,10 +61,11 @@
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.3.0",
63
63
  "@types/react-dom": "^19.3.0",
64
+ "esbuild": "^0.28.2",
64
65
  "typescript": "~5.9.3"
65
66
  },
66
67
  "scripts": {
67
- "build": "tsc -p tsconfig.json",
68
+ "build": "npm run check && esbuild src/index.ts --platform=node --packages=external --format=esm --target=node22 --outfile=dist/index.js && esbuild src/client.ts --bundle --format=iife --target=es2022 --loader:.svg=dataurl --loader:.webp=dataurl --loader:.jpg=dataurl --loader:.png=dataurl --outfile=dist/client.js",
68
69
  "check": "tsc -p tsconfig.json --noEmit",
69
70
  "prepack": "npm run build"
70
71
  }