@stacksjs/defaults 0.70.327 → 0.70.329
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.
|
@@ -587,7 +587,12 @@ async function main() {
|
|
|
587
587
|
|
|
588
588
|
else if (command === 'snapshot') {
|
|
589
589
|
const cdp = await openPage(session.port)
|
|
590
|
-
|
|
590
|
+
// Captured, not discarded: the `state.dispose()` at the end of this
|
|
591
|
+
// branch needs it. Without the binding that call resolved to stx's
|
|
592
|
+
// auto-imported `state` signal factory, which has no `dispose`, so
|
|
593
|
+
// `browse snapshot` threw on its last line and left the CDP listeners
|
|
594
|
+
// attached.
|
|
595
|
+
const state = await gotoAndInstrument(cdp, url, { cookies, settleMs, scheme })
|
|
591
596
|
const expr = `(() => {
|
|
592
597
|
const sel = (q) => Array.from(document.querySelectorAll(q));
|
|
593
598
|
const txt = (e) => (e.innerText || e.textContent || '').trim().slice(0, 80);
|
package/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.329",
|
|
6
6
|
"description": "The complete managed Stacks application scaffold, including runtime defaults, AI guidance, editor metadata, and npm-backed project support files.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -285,7 +285,13 @@ export const appearanceStore = defineStore('appearance', () => {
|
|
|
285
285
|
},
|
|
286
286
|
})
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
/*
|
|
289
|
+
* `defineStore` hands back the store itself, not a factory that makes one —
|
|
290
|
+
* which is why `useAppearance()` below returns `appearanceStore` directly and
|
|
291
|
+
* `appearanceStore.apply()` is a valid call. `ReturnType<>` therefore had
|
|
292
|
+
* nothing to unwrap and failed its own constraint.
|
|
293
|
+
*/
|
|
294
|
+
export type AppearanceSnapshot = typeof appearanceStore
|
|
289
295
|
|
|
290
296
|
/**
|
|
291
297
|
* Keep `system` live.
|