dsh-delete-session 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,7 @@
1
- # dsh-delete-session bundle patch: inserts the plugin row into the profile
2
- # roster. The node half serves the /dsh-delete-session/* JSON routes; the
3
- # browser half (exports "./client") injects the sidebar session-row menu item
4
- # and the confirmation dialog.
5
- - insert:
6
- - id: dsh-delete-session
7
- name: 'dsh-delete-session'
1
+ # dsh-delete-session bundle patch: inserts the plugin row into the profile
2
+ # roster. The node half serves the /dsh-delete-session/* JSON routes; the
3
+ # browser half (exports "./client") injects the sidebar session-row menu item
4
+ # and the confirmation dialog.
5
+ - insert:
6
+ - id: dsh-delete-session
7
+ name: 'dsh-delete-session'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-delete-session",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Delete sessions from the DSH Web sidebar: adds a Delete action to the session row menu with a risk-consent dialog, sends the session log, workspace accounting and live session state to the system trash (or removes them outright), and, when opted in, quarantines the files the conversation produced.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/client.js CHANGED
@@ -776,6 +776,16 @@ window.__ModuleLoader__.load({
776
776
  // exclusion rule silently hid the bar together with its Cancel button.
777
777
  'body.dsdel-selecting [data-slot="sidebar.footer.action"] > [data-dsh-plugin]{display:none}',
778
778
  'body.dsdel-selecting [data-slot="sidebar.footer.action"] > [class*="_entryRow"]{display:none}',
779
+ // A third shape: entries with no wrapper at all. The slot outlet is
780
+ // `display:contents` and the component is its direct child, so a bare
781
+ // <button> registration (dsh-sidebar-declutter's 收起面板列表) carries
782
+ // neither `data-dsh-plugin` nor an `_entryRow`, and the two rules above
783
+ // missed it. `> button` reaches exactly that shape.
784
+ //
785
+ // The `:not([role="toolbar"])` guard is not decoration: this plugin's own
786
+ // bar announces itself with role="toolbar", so an unguarded `> button`
787
+ // would hide the bar itself if its root ever became a <button>.
788
+ 'body.dsdel-selecting [data-slot="sidebar.footer.action"] > button:not([role="toolbar"]){display:none}',
779
789
  '.dsdel-drop{border:1px dashed var(--dsw-alias-border-l2,rgba(128,128,128,.4));border-radius:8px;color:var(--dsw-alias-label-secondary,inherit)}',
780
790
  '.dsdel-drop-over{border-color:var(--dsw-alias-state-error-primary,#e5484d);border-style:solid;background:rgba(229,72,77,.10);color:var(--dsw-alias-state-error-primary,#e5484d)}',
781
791
  '.dsdel-drop-icon{display:inline-flex;flex:0 0 auto;align-items:center}',