@marianmeres/stuic 3.42.0 → 3.43.0

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.
@@ -145,4 +145,4 @@ export type TourInstance = ReturnType<typeof createTour>;
145
145
  * <button use:tourStep={[tour, 'save-btn']}>Save</button>
146
146
  * ```
147
147
  */
148
- export declare function tourStep(el: HTMLElement, args: [TourInstance, string]): void;
148
+ export declare function tourStep(el: HTMLElement, args: [TourInstance | null | undefined, string]): void;
@@ -224,6 +224,8 @@ export function createTour(options) {
224
224
  */
225
225
  export function tourStep(el, args) {
226
226
  const [tour, id] = args;
227
+ if (!tour)
228
+ return;
227
229
  tour._register(id, el);
228
230
  spotlight(el, () => {
229
231
  const isActive = tour._isCurrentStep(id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "3.42.0",
3
+ "version": "3.43.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -42,21 +42,21 @@
42
42
  "@eslint/js": "^9.39.3",
43
43
  "@marianmeres/random-human-readable": "^1.6.1",
44
44
  "@sveltejs/adapter-auto": "^4.0.0",
45
- "@sveltejs/kit": "^2.53.3",
45
+ "@sveltejs/kit": "^2.53.4",
46
46
  "@sveltejs/package": "^2.5.7",
47
47
  "@sveltejs/vite-plugin-svelte": "^6.2.4",
48
48
  "@tailwindcss/cli": "^4.2.1",
49
49
  "@tailwindcss/forms": "^0.5.11",
50
50
  "@tailwindcss/typography": "^0.5.19",
51
51
  "@tailwindcss/vite": "^4.2.1",
52
- "@types/node": "^25.3.2",
52
+ "@types/node": "^25.3.3",
53
53
  "dotenv": "^16.6.1",
54
54
  "eslint": "^9.39.3",
55
55
  "globals": "^16.5.0",
56
56
  "prettier": "^3.8.1",
57
- "prettier-plugin-svelte": "^3.5.0",
58
- "publint": "^0.3.17",
59
- "svelte": "^5.53.5",
57
+ "prettier-plugin-svelte": "^3.5.1",
58
+ "publint": "^0.3.18",
59
+ "svelte": "^5.53.7",
60
60
  "svelte-check": "^4.4.4",
61
61
  "tailwindcss": "^4.2.1",
62
62
  "tsx": "^4.21.0",