@stacksjs/defaults 0.75.100 → 0.75.102

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.
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.100",
5
+ "version": "0.75.102",
6
6
  "description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.100",
5
+ "version": "0.75.102",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -55,8 +55,8 @@
55
55
  "dependencies": {
56
56
  "@iconify-json/f7": "^1.2.2",
57
57
  "@iconify-json/hugeicons": "^1.2.35",
58
- "@stacksjs/mobile": "^0.75.100",
59
- "@stacksjs/sanitizer": "^0.2.406",
58
+ "@stacksjs/mobile": "^0.75.102",
59
+ "@stacksjs/sanitizer": "^0.2.414",
60
60
  "@xterm/addon-fit": "^0.11.0",
61
61
  "@xterm/xterm": "^6.0.0",
62
62
  "ts-qr-codes": "^0.1.8"
@@ -139,10 +139,11 @@ onDestroy(() => {
139
139
  })
140
140
 
141
141
  // The router moved to another screen while this one's sheet was up.
142
- useEventListener('stx:navigate', (event: CustomEvent<{ url?: string }>) => {
142
+ useEventListener('stx:navigate', (event: Event) => {
143
143
  if (!open()) return
144
+ const url = (event as CustomEvent<{ url?: string }>).detail?.url
144
145
  const location = root()?.ownerDocument.defaultView?.location
145
- const to = event.detail?.url ? new URL(event.detail.url, location?.href).pathname : currentPath()
146
+ const to = url ? new URL(url, location?.href).pathname : currentPath()
146
147
  if (to !== openedOn) close()
147
148
  })
148
149