@picked/svelte 0.0.1-next.2 → 0.0.1

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.
@@ -1,6 +1,5 @@
1
1
  <script lang="ts">
2
2
  import { writable } from 'svelte/store'
3
- import { supportsWindow } from '@picked/client'
4
3
  import { getExperience } from '../hooks'
5
4
  import { setStepRouter, type Step } from './context'
6
5
 
@@ -15,7 +14,7 @@
15
14
  const registerStep = (step: Step) => {
16
15
  // todo: getIsSSR context
17
16
 
18
- if (!supportsWindow()) {
17
+ if (typeof window === 'undefined') {
19
18
  // In SSR we should set the activeStep immediately if it is a match.
20
19
  // If there are more Routes being registered after a match is found,
21
20
  // we just skip them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picked/svelte",
3
- "version": "0.0.1-next.2",
3
+ "version": "0.0.1",
4
4
  "dependencies": {
5
5
  "d3": "^7.9.0"
6
6
  },
@@ -70,7 +70,7 @@
70
70
  ],
71
71
  "module": "./dist/index.js",
72
72
  "peerDependencies": {
73
- "@picked/client": "0.0.1-next.2",
73
+ "@picked/client": "0.0.1",
74
74
  "effector": "^23.3.0",
75
75
  "svelte": "^5.34.3"
76
76
  },