dsh-remote-plugin 0.6.19 → 0.6.21

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.
Binary file
package/client.js CHANGED
@@ -10,7 +10,14 @@ window.__ModuleLoader__.load({
10
10
  var exports = module.exports
11
11
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' })
12
12
  var React = require('react')
13
- var runtime = require('@deepseek-ai/dsh-client-runtime/client')
13
+ // DSH 0.1.2-alpha.1 将 defineStore 从已删除的 client-runtime 迁入
14
+ // client-store 平台种子;0.1.1-rc.2 及更早版本仍只提供旧模块。
15
+ var storeRuntime
16
+ try {
17
+ storeRuntime = require('@deepseek-ai/dsh-client-store')
18
+ } catch (_) {
19
+ storeRuntime = require('@deepseek-ai/dsh-client-runtime/client')
20
+ }
14
21
 
15
22
  var DRAWER_STYLE = {
16
23
  position: 'fixed', top: 12, right: 12, bottom: 12, zIndex: 2147483000,
@@ -146,7 +153,7 @@ window.__ModuleLoader__.load({
146
153
 
147
154
  var inject = ['slots']
148
155
  function apply(ctx) {
149
- var store = runtime.defineStore({
156
+ var store = storeRuntime.defineStore({
150
157
  init: function () { return { open: false } },
151
158
  actions: {
152
159
  toggle: function (d) { d.open = !d.open },