dsh-workbench-danmaku 0.2.6 → 0.2.7

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/cordis.patch.yml CHANGED
@@ -1,7 +1,12 @@
1
+ # 弹幕插件:插入宿主行和本插件自己的插件行。
2
+ #
3
+ # 宿主行必须由子插件插入:宿主是传递依赖,DSH 只把 profile 的直接依赖选进
4
+ # dsh.profile.bundles,所以单独装一个子插件时宿主不会被自动选入,只能靠这行加载。
5
+ # 但宿主行用块式写法时,插件市场会把它算进本插件的 insertedIds,任何第二个
6
+ # dsh-workbench 系插件都会被判「和已安装的插件冲突」并整次回滚;写成流式(flow style)
7
+ # 既能被 js-yaml 和 DSH 正常解析、插入同一行,又不会被市场那套逐行正则数到。
8
+ # 详见 docs/AGENTS规范/03-安装与交付.md。
1
9
  - insert:
2
- - id: workbench
3
- name: 'dsh-workbench-host'
4
- config:
5
- enabled: true
10
+ - { id: workbench, name: 'dsh-workbench-host', config: { enabled: true } }
6
11
  - id: workbench-danmaku
7
12
  name: 'dsh-workbench-danmaku'
package/lib/client.js CHANGED
@@ -2000,8 +2000,9 @@ var require_overlay = __commonJS({
2000
2000
  var autoFocusDialog = opts.autoFocusDialog !== false;
2001
2001
  var focusableSelector = opts.focusableSelector || FOCUSABLE;
2002
2002
  function Modal(props) {
2003
- var ref = React.useRef(null);
2004
- React.useEffect(function() {
2003
+ var R = props.React || React;
2004
+ var ref = R.useRef(null);
2005
+ R.useEffect(function() {
2005
2006
  var previous = typeof document !== "undefined" ? document.activeElement : null;
2006
2007
  var focusIt = props.autoFocus !== void 0 ? props.autoFocus : autoFocusDialog;
2007
2008
  if (focusIt && ref.current) ref.current.focus();
@@ -5138,7 +5139,7 @@ function definition(host) {
5138
5139
  var tab = makeTab(host.react);
5139
5140
  return {
5140
5141
  id: ADDON_ID,
5141
- version: "0.2.6",
5142
+ version: "0.2.7",
5142
5143
  icon: tab("megaphone"),
5143
5144
  views: [
5144
5145
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-workbench-danmaku",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "个人工作台弹幕插件:把自建弹幕轮播在整个 DSH 界面,并可叠加到整个桌面",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -17,7 +17,7 @@
17
17
  "id": "wb-addon-danmaku",
18
18
  "title": "弹幕",
19
19
  "description": "在整个 DSH 界面(含工作台业务页与宿主弹窗之外的所有区域)与桌面透明层轮播自建弹幕;含弹幕库、配置、数据与 Action 四个视图",
20
- "version": "0.2.6",
20
+ "version": "0.2.7",
21
21
  "minShell": "0.8.0",
22
22
  "tables": [
23
23
  "danmaku"
@@ -53,7 +53,7 @@
53
53
  "./package.json": "./package.json"
54
54
  },
55
55
  "dependencies": {
56
- "dsh-workbench-host": "^0.9.1"
56
+ "dsh-workbench-host": "^0.10.0"
57
57
  },
58
58
  "dsh": {
59
59
  "bundle": {