dsh-width-tiers 1.0.9 → 2.0.0

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/lib/index.js CHANGED
@@ -1,20 +1,19 @@
1
+ // src/index.ts
1
2
  /**
2
- * @module dsh-width-tiers
3
- *
4
- * Server-side entry of the dsh-width-tiers plugin: a minimal no-op cordis
5
- * plugin. Its only job is to exist as a loader entry so the client-modules
6
- * scanner discovers the browser bundle declared in package.json
7
- * (`dsh.client` + `exports["./client"]`) and serves it at
8
- * `/plugins/dsh-width-tiers/client.js` in the Web boot manifest.
9
- *
10
- * All functionality lives in the browser bundle (lib/client.js).
11
- */
12
-
3
+ * @module dsh-width-tiers
4
+ *
5
+ * Server-side entry of the dsh-width-tiers plugin: a minimal no-op Cordis
6
+ * plugin. Its only job is to exist as a loader entry so the client-modules
7
+ * scanner discovers the browser bundle declared in package.json
8
+ * (`dsh.client` + `exports["./client"]`) and serves it at
9
+ * `/plugins/dsh-width-tiers/client.js` in the Web boot manifest.
10
+ *
11
+ * All functionality lives in the browser bundle (`src/client`).
12
+ */
13
13
  /** Stable cordis plugin name. */
14
- export const name = "dsh-width-tiers";
15
-
14
+ const name = "dsh-width-tiers";
16
15
  /** Services required before this plugin mounts (none server-side). */
17
- export const inject = [];
18
-
16
+ const inject = [];
19
17
  /** No-op host-side apply. */
20
- export function apply() {}
18
+ function apply() {}
19
+ export { apply, inject, name };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-width-tiers",
3
- "version": "1.0.9",
4
- "description": "DSH Web client plugin: chat content width tiers (standard / medium / wide / ultra / full / custom) with a floating picker button. Drives the app's native width axis on DSH 0.1.7+ (0.2.1-rc.2 width axis checked), so the built-in drag handles keep working. UI copy follows the app language (zh / en).",
3
+ "version": "2.0.0",
4
+ "description": "DSH Web client plugin: chat content width tiers (standard / medium / wide / ultra / full / custom) with a floating picker button. Mounts into the app's shell.overlay slot on DSH 0.2.x and drives the native width axis, so the built-in drag handles keep working. UI copy follows the app language (zh / en).",
5
5
  "license": "MIT",
6
6
  "author": "aaronlei",
7
7
  "publishConfig": {
@@ -29,6 +29,7 @@
29
29
  "platform": "web",
30
30
  "inject": [
31
31
  "@deepseek-ai/dsh-client-ui-layout",
32
+ "@deepseek-ai/dsh-client-ui-slots",
32
33
  "@deepseek-ai/dsh-client-locale"
33
34
  ]
34
35
  }
@@ -49,9 +50,28 @@
49
50
  "url": "git+https://github.com/aaronlei/dsh-width-tiers.git"
50
51
  },
51
52
  "scripts": {
52
- "test": "node test.cjs"
53
+ "build": "tsdown",
54
+ "watch": "tsdown --watch",
55
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit && tsc -p tsconfig.test.json --noEmit",
56
+ "test": "vitest run",
57
+ "test:watch": "vitest",
58
+ "verify:client": "node scripts/verify-client.mjs",
59
+ "prepack": "tsdown"
53
60
  },
54
61
  "engines": {
55
62
  "node": ">=18"
63
+ },
64
+ "devDependencies": {
65
+ "@testing-library/dom": "^10.4.2",
66
+ "@testing-library/react": "^16.3.3",
67
+ "@types/node": "26.6.5",
68
+ "@types/react": "18.3.27",
69
+ "@types/react-dom": "18.3.7",
70
+ "jsdom": "^30.1.3",
71
+ "react": "18.3.1",
72
+ "react-dom": "18.3.1",
73
+ "tsdown": "0.23.1",
74
+ "typescript": "7.0.2",
75
+ "vitest": "^5.0.5"
56
76
  }
57
77
  }