@grapecity-software/dsh-spreadjs-editor 0.1.2 → 0.1.4

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +22 -134
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release Notes / 版本记录
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### 中文
6
+
7
+ - 移除安装期 `prepare` 钩子。npm 包继续以预构建方式分发,发布打包改用 `prepack`,用户安装时不会执行任何脚本。
8
+ - 打包校验新增检查:禁止 `preinstall`、`install`、`postinstall`、`prepare` 等安装期钩子。
9
+
10
+ ### English
11
+
12
+ - Remove the `prepare` install hook. The npm package stays prebuilt; release packing now uses `prepack`, so no script runs during user installation.
13
+ - Add a package check that rejects `preinstall`, `install`, `postinstall`, or `prepare` hooks.
14
+
15
+ ## 0.1.3
16
+
17
+ - 精简安装、配置和版本说明,方便查阅。
18
+ - Simplify installation, configuration, and release documentation.
19
+
3
20
  ## 0.1.2
4
21
 
5
22
  ### 中文
package/README.md CHANGED
@@ -17,9 +17,8 @@ A DeepSeek Harness Web UI plugin that opens, views, and edits Excel / SpreadJS f
17
17
  ### 功能
18
18
 
19
19
  - 支持 `.xlsx`、`.xlsm`、`.csv`、`.sjs`、`.ssjson` 文件。
20
- - 基于 GrapeCity 官方 SpreadJS 和 SpreadJS Designer,提供完整的表格编辑能力。
21
- - 与 ui-all 文件树集成,打开文件后立即进入编辑界面,不需要单独的编辑器页面。
22
- - Designer 界面自动跟随系统 light/dark 偏好。
20
+ - 从文件树打开工作簿,使用 SpreadJS Designer 编辑表格。
21
+ - 编辑器跟随系统切换浅色和深色主题。
23
22
 
24
23
  ### 内置版本与文件兼容性
25
24
 
@@ -28,15 +27,13 @@ A DeepSeek Harness Web UI plugin that opens, views, and edits Excel / SpreadJS f
28
27
  | SpreadJS | 19.1.4 |
29
28
  | SpreadJS Designer | 19.1.4 |
30
29
 
31
- 编辑器底部状态栏右侧显示实际打包的 SpreadJS 版本号。保存或导出由该版本执行,不保证保留源文件的旧版格式兼容性;尤其是 `.sjs`、`.ssjson`,低版本 SpreadJS 可能无法打开高版本保存的文件。Excel 文件中的功能也可能因目标软件或版本不同而变化。
32
-
33
- 请先备份原文件或另存副本,再用目标版本验证打开结果,确认后再替换原文件。本插件不会自动备份、降级文件格式或保证无损往返转换。
30
+ 编辑器底部显示 SpreadJS 版本号。低版本 SpreadJS 可能无法打开本版本保存的 `.sjs` 或 `.ssjson` 文件;与旧版系统交换文件时,建议保留原文件并确认兼容性。
34
31
 
35
32
  ### 安装
36
33
 
37
- 要求 DSH `>=0.1.2-rc.1`,并已安装提供 `dsh-better-sidebar` 的 `@linxin666/dsh-web-all`(ui-all)。不再需要 `dsh-plugin-web-editors`。
34
+ 需要 DSH `>=0.1.2-rc.1`,并已安装 `@linxin666/dsh-web-all`(ui-all)。
38
35
 
39
- npm 包自带预构建的 SpreadJS 和 Designer 客户端,无需放行安装脚本或本地编译。安装插件并启动:
36
+ 插件内置 SpreadJS 和 Designer,无需编译。使用已安装的 DSH CLI 安装并启动:
40
37
 
41
38
  ```sh
42
39
  dsh plugin --profile web add @grapecity-software/dsh-spreadjs-editor
@@ -45,36 +42,18 @@ dsh --profile web
45
42
 
46
43
  启动后,在 Web UI 右侧文件树中打开 `.xlsx`、`.xlsm`、`.csv`、`.sjs` 或 `.ssjson` 文件即可。
47
44
 
48
- 安装直接使用包内的客户端文件,不会运行构建脚本。
49
-
50
- 如果使用 npx 运行 DSH,使用同样的命令:
45
+ 也可以通过 npx 安装并启动:
51
46
 
52
47
  ```sh
53
48
  npx --yes @deepseek-ai/dsh@latest plugin --profile web add @grapecity-software/dsh-spreadjs-editor
54
49
  npx --yes @deepseek-ai/dsh@latest --profile web
55
50
  ```
56
51
 
57
- DeepSeek Harness CLI 是 `@deepseek-ai/dsh`,不要使用同名 npm 包 `dsh`。
58
-
59
- 从旧版本升级后,不再需要本插件的 `onlyBuiltDependencies` 放行项。
60
-
61
- ### 常见问题
62
-
63
- **我已经有 ui-all,还需要额外安装什么吗?**
64
-
65
- 不需要。ui-all 自带 `dsh-better-sidebar`,本插件会直接注册到它。
66
-
67
- **安装完还需要手动构建吗?**
68
-
69
- 不需要。发布包已包含构建产物,只有从源码开发时才需要构建。
70
-
71
- **SpreadJS 会跟随每次安装自动升级吗?**
72
-
73
- 不会自动跨版本升级。所有 GrapeCity 官方包在 `package.json` 中锁定为同一版本;维护者会在发布新版时统一同步。
52
+ 旧版本用户请参阅[升级说明](CHANGELOG.md)。
74
53
 
75
54
  ### 配置
76
55
 
77
- 正式部署时,在 profile 的 `cordis.patch.yml` 中配置 license key:
56
+ 如已获得许可证,在 web profile 的 `cordis.patch.yml` 中添加以下配置:
78
57
 
79
58
  | Key | 默认值 | 说明 |
80
59
  | --- | --- | --- |
@@ -88,48 +67,13 @@ DeepSeek Harness CLI 是 `@deepseek-ai/dsh`,不要使用同名 npm 包 `dsh`
88
67
  designerLicenseKey: 'YOUR_DESIGNER_KEY'
89
68
  ```
90
69
 
91
- 现有 `licenseKey` 配置仍用于 SpreadJS,不会再赋给 Designer。配置从服务端下发到浏览器,用于客户端激活;修改后请重启 DSH 并刷新网页。
92
-
93
- ### 支持的文件
94
-
95
- | 文件 | 说明 |
96
- | --- | --- |
97
- | `.xlsx` / `.xlsm` | Excel 工作簿 |
98
- | `.csv` | CSV 文本 |
99
- | `.sjs` | SpreadJS 原生工作簿格式 |
100
- | `.ssjson` | SpreadJS JSON 工作簿 |
101
-
102
- ### 从源码安装
103
-
104
- 如果你需要从源码运行或参与开发:
105
-
106
- ```sh
107
- git clone https://github.com/GrapeCityXA/dsh-plugin-spreadjs-editor.git
108
-
109
- cd dsh-plugin-spreadjs-editor
110
- npm install
111
- npm run build
112
-
113
- dsh plugin --profile web add ../dsh-plugin-spreadjs-editor
114
- ```
70
+ 修改后重启 DSH 并刷新网页。
115
71
 
116
72
  ### 许可
117
73
 
118
- 插件代码免费提供,采用 MIT 许可证。预构建包包含的 SpreadJS 和 Designer 属于葡萄城商业产品,不适用插件的 MIT 许可证;未配置授权时可在相应试用条款下体验带水印的界面,不代表免费商业授权。
119
-
120
- 可将 DSH 与插件部署为 SaaS 服务,表格仍在浏览器端运行。部署者应根据服务场景获取适用的 SpreadJS 和 Designer 授权,分别配置许可证。身份认证、租户与文件隔离由宿主服务负责,本插件不提供这些能力。
74
+ 插件代码免费提供,采用 [MIT 许可证](LICENSE)。内置的 SpreadJS 和 Designer 是葡萄城商业产品,未配置许可证时可按其试用条款体验;插件免费不包含这两个产品的商业授权。
121
75
 
122
- ### 维护者
123
-
124
- 每次发布前更新 `CHANGELOG.md` 中对应版本的变更、兼容性和升级说明。当前版本尚未发布时,继续归并到同一版本条目;实际发布后再填写发布日期。
125
-
126
- 发布前执行 `npm run prepublishOnly`。该检查包含类型检查、单元测试、构建、smoke 测试,以及在临时目录离线安装 tarball,验证预构建客户端注册和许可证配置接口。它不代替浏览器中实际打开、编辑和保存工作簿的验证。
127
-
128
- 发布新版前,统一把所有 GrapeCity 依赖同步到最新版本:
129
-
130
- ```sh
131
- npm run grapecity:update -- --latest
132
- ```
76
+ 如用于正式部署或 SaaS 服务,请根据使用场景获取适用的 SpreadJS 和 Designer 授权。
133
77
 
134
78
  ---
135
79
 
@@ -138,9 +82,8 @@ npm run grapecity:update -- --latest
138
82
  ### Features
139
83
 
140
84
  - Opens `.xlsx`, `.xlsm`, `.csv`, `.sjs`, and `.ssjson` files.
141
- - Built on GrapeCity's official SpreadJS and SpreadJS Designer for full spreadsheet editing.
142
- - Integrated with the ui-all file tree: open a file and start editing immediately, with no separate editor page.
143
- - The Designer follows the OS light/dark preference.
85
+ - Open workbooks from the file tree and edit them with SpreadJS Designer.
86
+ - Follows the system's light or dark theme.
144
87
 
145
88
  ### Bundled Versions and File Compatibility
146
89
 
@@ -149,15 +92,13 @@ npm run grapecity:update -- --latest
149
92
  | SpreadJS | 19.1.4 |
150
93
  | SpreadJS Designer | 19.1.4 |
151
94
 
152
- The bottom-right status bar displays the bundled SpreadJS version. Saving and exporting use those versions and do not guarantee compatibility with the original file's older format. In particular, older SpreadJS versions may not open `.sjs` or `.ssjson` files saved by newer versions. Excel features can also vary across target applications and versions.
153
-
154
- Keep a backup or save a copy, and verify it in the target version before replacing the original. This plugin does not automatically back up files, downgrade formats, or guarantee lossless round trips.
95
+ The editor status bar shows the SpreadJS version. Older SpreadJS versions may not open `.sjs` or `.ssjson` files saved by this version. When exchanging files with older systems, keep the original files and check compatibility.
155
96
 
156
97
  ### Installation
157
98
 
158
- Requires DSH `>=0.1.2-rc.1` and `@linxin666/dsh-web-all` (ui-all), which provides `dsh-better-sidebar`. The former `dsh-plugin-web-editors` prerequisite is no longer needed.
99
+ Requires DSH `>=0.1.2-rc.1` with `@linxin666/dsh-web-all` (ui-all) installed.
159
100
 
160
- The npm package includes prebuilt SpreadJS and Designer client code. No install-script allow-list or local compilation is required. Install the plugin and start DSH:
101
+ The plugin includes SpreadJS and Designer, with no build step required. With the DSH CLI installed:
161
102
 
162
103
  ```sh
163
104
  dsh plugin --profile web add @grapecity-software/dsh-spreadjs-editor
@@ -166,36 +107,18 @@ dsh --profile web
166
107
 
167
108
  After startup, open `.xlsx`, `.xlsm`, `.csv`, `.sjs`, or `.ssjson` from the right-side file tree.
168
109
 
169
- Installation uses the packaged client files without running a build script.
170
-
171
- If you run DSH through npx, use the same commands:
110
+ Alternatively, install and start through npx:
172
111
 
173
112
  ```sh
174
113
  npx --yes @deepseek-ai/dsh@latest plugin --profile web add @grapecity-software/dsh-spreadjs-editor
175
114
  npx --yes @deepseek-ai/dsh@latest --profile web
176
115
  ```
177
116
 
178
- Use `@deepseek-ai/dsh`; the unrelated npm package `dsh` is not the DeepSeek Harness CLI.
179
-
180
- After upgrading, this plugin no longer needs an `onlyBuiltDependencies` allow-list entry.
181
-
182
- ### FAQ
183
-
184
- **I already have ui-all. Do I need to install anything else?**
185
-
186
- No. ui-all bundles `dsh-better-sidebar`, and this plugin registers directly with it.
187
-
188
- **Do I need to build manually after installation?**
189
-
190
- No. The package includes built artifacts. Building is only required when developing from source.
191
-
192
- **Will SpreadJS upgrade automatically with every install?**
193
-
194
- No. All GrapeCity packages are pinned to the same version in `package.json`; maintainers sync them together before a new release.
117
+ For upgrades, see the [release notes](CHANGELOG.md).
195
118
 
196
119
  ### Configuration
197
120
 
198
- For production use, set the license key in the profile's `cordis.patch.yml`:
121
+ If you have licenses, add the following to the web profile's `cordis.patch.yml`:
199
122
 
200
123
  | Key | Default | Description |
201
124
  | --- | --- | --- |
@@ -209,45 +132,10 @@ For production use, set the license key in the profile's `cordis.patch.yml`:
209
132
  designerLicenseKey: 'YOUR_DESIGNER_KEY'
210
133
  ```
211
134
 
212
- Existing `licenseKey` settings continue to configure SpreadJS and are no longer assigned to Designer. The server delivers these keys to the browser for client activation. Restart DSH and refresh the page after changing them.
213
-
214
- ### Supported files
215
-
216
- | File | Description |
217
- | --- | --- |
218
- | `.xlsx` / `.xlsm` | Excel workbook |
219
- | `.csv` | CSV text |
220
- | `.sjs` | SpreadJS native workbook format |
221
- | `.ssjson` | SpreadJS JSON workbook |
222
-
223
- ### Install from source
224
-
225
- To run from source or contribute:
226
-
227
- ```sh
228
- git clone https://github.com/GrapeCityXA/dsh-plugin-spreadjs-editor.git
229
-
230
- cd dsh-plugin-spreadjs-editor
231
- npm install
232
- npm run build
233
-
234
- dsh plugin --profile web add ../dsh-plugin-spreadjs-editor
235
- ```
135
+ Restart DSH and refresh the browser after changing the configuration.
236
136
 
237
137
  ### License
238
138
 
239
- The plugin code is free and MIT-licensed. Bundled SpreadJS and Designer are GrapeCity commercial products and are not covered by the plugin's MIT license. Without keys, users can try the watermarked interface under the applicable evaluation terms; this does not grant free commercial usage.
240
-
241
- DSH and the plugin can be hosted as a SaaS service, with spreadsheets still running in the browser. Operators should obtain licenses appropriate to their deployment and configure SpreadJS and Designer keys separately. Authentication, tenant isolation, and file isolation are responsibilities of the host service.
139
+ The plugin code is free under the [MIT license](LICENSE). Bundled SpreadJS and Designer are GrapeCity commercial products available for evaluation under their trial terms without license keys. The free plugin does not include commercial licenses for these products.
242
140
 
243
- ### Maintainers
244
-
245
- Before each release, update its `CHANGELOG.md` entry with changes, compatibility requirements, and upgrade notes. Keep changes under the same version while it is unpublished; add the release date only after publishing.
246
-
247
- Run `npm run prepublishOnly` before releasing. It checks types, unit tests, builds, smoke tests, and a fresh offline tarball installation with client registration and license-config checks. It does not replace opening, editing, and saving workbooks in a real browser.
248
-
249
- Before a new release, sync all GrapeCity dependencies to the latest version:
250
-
251
- ```sh
252
- npm run grapecity:update -- --latest
253
- ```
141
+ For production or SaaS deployments, obtain SpreadJS and Designer licenses appropriate to your use.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapecity-software/dsh-spreadjs-editor",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "DeepSeek Harness Web UI plugin: SpreadJS viewer registered through dsh-better-sidebar (ui-all).",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -33,7 +33,7 @@
33
33
  "scripts": {
34
34
  "build": "node scripts/build.mjs && node scripts/copy-notices.mjs",
35
35
  "grapecity:update": "node scripts/update-grapecity.mjs",
36
- "prepare": "npm run build",
36
+ "prepack": "npm run build",
37
37
  "prepublishOnly": "npm run typecheck && npm test && npm run build && node scripts/smoke-client.mjs && node scripts/smoke-node.mjs && npm run verify:package",
38
38
  "rebuild": "node scripts/build.mjs",
39
39
  "test": "vitest run",