@rooode/dsh-plugin-preview 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/lib/client.js +18 -4
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -8,9 +8,8 @@
8
8
  * without popping up Windows Notepad.
9
9
  */
10
10
 
11
- window.__ModuleLoader__.load({
12
- id: "@deepseek-ai/dsh-client-ui-preview",
13
- factory: (require) => {
11
+ (function() {
12
+ function previewFactory(require) {
14
13
  var module = { exports: {} };
15
14
  var exports = module.exports;
16
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
@@ -2197,4 +2196,19 @@ window.__ModuleLoader__.load({
2197
2196
 
2198
2197
  return module.exports;
2199
2198
  }
2200
- });
2199
+
2200
+ if (typeof window !== 'undefined' && window.__ModuleLoader__) {
2201
+ const ids = [
2202
+ '@rooode/dsh-plugin-preview',
2203
+ '@deepseek-ai/dsh-client-ui-preview'
2204
+ ];
2205
+ for (const id of ids) {
2206
+ try {
2207
+ window.__ModuleLoader__.load({
2208
+ id: id,
2209
+ factory: previewFactory
2210
+ });
2211
+ } catch (e) {}
2212
+ }
2213
+ }
2214
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rooode/dsh-plugin-preview",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "DeepSeek Harness Markdown 文档右侧预览插件 (参考 WorkBuddy FileTabs 实现,支持多标签、GFM 渲染、TOC 大纲、源码分栏)",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",