@goodandready/dsh-subscriptions 0.7.19 → 0.7.20
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/lib/client.js +11 -11
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -4118,6 +4118,16 @@ h('div', { className: 'dsub-row' },
|
|
|
4118
4118
|
const id = setInterval(pull, 60 * 1000)
|
|
4119
4119
|
return () => { alive = false; clearInterval(id) }
|
|
4120
4120
|
}, [])
|
|
4121
|
+
React.useEffect(() => {
|
|
4122
|
+
if (!open) return undefined
|
|
4123
|
+
const onDoc = (e) => {
|
|
4124
|
+
if (popRef.current && !popRef.current.contains(e.target) && !(e.target.closest && e.target.closest('.dsub-qw'))) setOpen(false)
|
|
4125
|
+
}
|
|
4126
|
+
const onKey = (e) => { if (e.key === 'Escape') setOpen(false) }
|
|
4127
|
+
document.addEventListener('pointerdown', onDoc)
|
|
4128
|
+
document.addEventListener('keydown', onKey)
|
|
4129
|
+
return () => { document.removeEventListener('pointerdown', onDoc); document.removeEventListener('keydown', onKey) }
|
|
4130
|
+
}, [open])
|
|
4121
4131
|
if (state.mode === 'off' || !state.active || state.remaining == null) return null
|
|
4122
4132
|
const docked = state.mode !== 'floating'
|
|
4123
4133
|
const tone = state.remaining <= 10 ? ' dsub-qwFull' : (state.remaining <= 30 ? ' dsub-qwWarn' : '')
|
|
@@ -4132,16 +4142,6 @@ h('div', { className: 'dsub-row' },
|
|
|
4132
4142
|
if (layout && typeof layout.selectPanel === 'function') layout.selectPanel('plugins')
|
|
4133
4143
|
} catch { /* bestEffort */ }
|
|
4134
4144
|
}
|
|
4135
|
-
React.useEffect(() => {
|
|
4136
|
-
if (!open) return undefined
|
|
4137
|
-
const onDoc = (e) => {
|
|
4138
|
-
if (popRef.current && !popRef.current.contains(e.target) && !(e.target.closest && e.target.closest('.dsub-qw'))) setOpen(false)
|
|
4139
|
-
}
|
|
4140
|
-
const onKey = (e) => { if (e.key === 'Escape') setOpen(false) }
|
|
4141
|
-
document.addEventListener('pointerdown', onDoc)
|
|
4142
|
-
document.addEventListener('keydown', onKey)
|
|
4143
|
-
return () => { document.removeEventListener('pointerdown', onDoc); document.removeEventListener('keydown', onKey) }
|
|
4144
|
-
}, [open])
|
|
4145
4145
|
const onPointerDown = (e) => {
|
|
4146
4146
|
if (docked) return
|
|
4147
4147
|
drag.current = { x: e.clientX, y: e.clientY, right: pos.right, bottom: pos.bottom, moved: false }
|
|
@@ -4358,4 +4358,4 @@ h('div', { className: 'dsub-row' },
|
|
|
4358
4358
|
}
|
|
4359
4359
|
return module.exports
|
|
4360
4360
|
},
|
|
4361
|
-
})
|
|
4361
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-subscriptions",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.20",
|
|
4
4
|
"description": "Use ChatGPT Codex, Claude, Grok, Antigravity, Kimi, GLM, Cursor, Kiro, Copilot, Qwen, ERNIE, Spark, JetBrains, Perplexity, Replit, and Cody subscriptions as DeepSeek Harness LLM providers via OAuth.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|