dsh-better-sidebar-left 0.2.4 → 0.3.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/src/components.js CHANGED
@@ -24,7 +24,7 @@
24
24
  export const PLUGIN_ID = 'dsh-better-sidebar-left'
25
25
 
26
26
  /** Keep in sync with package.json and src/sidebar.js. */
27
- export const PLUGIN_VERSION = '0.2.4'
27
+ export const PLUGIN_VERSION = '0.3.0'
28
28
 
29
29
  /**
30
30
  * The five components, in the order the user meets them in the sidebar.
@@ -189,6 +189,23 @@ export const COMPONENTS = [
189
189
  prefixes: ['data-dshdc-rule', 'data-dshdc-turn', 'data-dshdc-toggle', 'data-dshdc-badge', 'data-dshdc-collapsed', 'data-dsh-sidebar-declutter'],
190
190
  },
191
191
  },
192
+ {
193
+ id: 'dsh-settings-launcher',
194
+ package: 'dsh-settings-launcher',
195
+ suffix: 'launcher',
196
+ feature: 'launcher',
197
+ kind: 'maintenance',
198
+ repo: 'https://github.com/DDDMUC/dsh-settings-launcher',
199
+ title: { zh: '账号入口', en: 'Account entry' },
200
+ pitch: {
201
+ zh: '侧栏账号入口的两个独立开关:悬浮自动展开原版菜单、点击直达设置;两个都关就是官方原样。',
202
+ en: 'Two independent switches for the sidebar account entry: auto-expand the stock menu on hover, and go straight to Settings on click. Both off is the stock behaviour.',
203
+ },
204
+ slots: [{ name: 'plugins.row.config', key: 'dsh-settings-launcher#settings-launcher' }],
205
+ routes: [],
206
+ hostInject: [],
207
+ dom: { allocated: 'dsd', prefixes: ['data-dsd-style', 'data-dsd-cards', 'dsd-'] },
208
+ },
192
209
  ]
193
210
 
194
211
  /** Component ids, in manifest order. */
@@ -244,6 +261,7 @@ export const INTEROP = {
244
261
  { component: 'dsh-declutter', exportPath: '__settings.SettingsCard', label: { zh: '收纳与整理', en: 'Declutter' } },
245
262
  { component: 'dsh-delete-session', exportPath: '__settings.SettingsCard', label: { zh: '删除会话', en: 'Delete a session' } },
246
263
  { component: 'dsh-session-relocate', exportPath: '__settings.ChildrenSetting', label: { zh: '连同子对话', en: 'Include child conversations' } },
264
+ { component: 'dsh-settings-launcher', exportPath: '__settings.SwitchCard', label: { zh: '账号入口', en: 'Account entry' } },
247
265
  ],
248
266
  /** This plugin's own registrations: one row config seat, nothing else. */
249
267
  pluginSlots: [{ name: 'plugins.row.config', key: PLUGIN_ID + '#' + PLUGIN_ID }],
@@ -1,6 +1,6 @@
1
1
  // dsh-delete-session host half (dsh-delete-session.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
2
2
  //
3
- // Source: ../dsh-better-sidebar-left-src/components/dsh-delete-session/src/index.js (v0.5.1, sha256 c7a9942cc816b3f6)
3
+ // Source: ../dsh-better-sidebar-left-src/components/dsh-delete-session/src/index.js (v0.5.3, sha256 c7a9942cc816b3f6)
4
4
  // Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
5
5
  //
6
6
  // src/shell.js mounts the copy named after the component, which is why this
@@ -0,0 +1,9 @@
1
+ // dsh-settings-launcher host half (dsh-settings-launcher.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
2
+ //
3
+ // Source: ../dsh-better-sidebar-left-src/components/dsh-settings-launcher/src/index.js (v0.0.2, sha256 5aeab291ba2a47d9)
4
+ // Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
5
+ //
6
+ // src/shell.js mounts the copy named after the component, which is why this
7
+ // package installs with no runtime dependency on the component package.
8
+ /** Host half of the bundle; the Client module owns the UI. */
9
+ export function apply() {}
@@ -1,7 +1,8 @@
1
1
  {
2
- "dsh-delete-session": "0.5.1",
2
+ "dsh-delete-session": "0.5.3",
3
3
  "dsh-session-relocate": "0.3.1",
4
4
  "dsh-session-rename-dblclick": "0.3.0",
5
5
  "dsh-session-counts": "0.0.3",
6
- "dsh-declutter": "0.2.4"
6
+ "dsh-declutter": "0.2.4",
7
+ "dsh-settings-launcher": "0.0.2"
7
8
  }