rune-lab 0.0.19 → 0.0.21
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/README.md +28 -6
- package/dist/actions/portal.js +6 -1
- package/dist/components/Icon.svelte +13 -2
- package/dist/components/RuneProvider.svelte +81 -0
- package/dist/components/RuneProvider.svelte.d.ts +9 -0
- package/dist/composables/usePersistence.d.ts +2 -0
- package/dist/composables/usePersistence.js +5 -0
- package/dist/composables/useRuneLab.d.ts +17 -0
- package/dist/composables/useRuneLab.js +19 -0
- package/dist/config.d.ts +4 -85
- package/dist/config.js +6 -32
- package/dist/context.d.ts +12 -0
- package/dist/context.js +13 -0
- package/dist/devtools/API_Monitor.svelte +5 -2
- package/dist/devtools/Toaster.svelte +14 -12
- package/dist/devtools/createConfigStore.svelte.d.ts +11 -1
- package/dist/devtools/createConfigStore.svelte.js +13 -11
- package/dist/features/command-palette/CommandPalette.svelte +12 -4
- package/dist/features/config/components/AppSettingSelector.svelte +85 -3
- package/dist/features/config/components/AppSettingSelector.svelte.d.ts +2 -0
- package/dist/features/config/components/CurrencySelector.svelte +27 -9
- package/dist/features/config/components/CurrencySelector.svelte.d.ts +3 -1
- package/dist/features/config/components/LanguageSelector.svelte +21 -6
- package/dist/features/config/components/LanguageSelector.svelte.d.ts +3 -1
- package/dist/features/config/components/ThemeSelector.svelte +23 -8
- package/dist/features/config/components/ThemeSelector.svelte.d.ts +3 -1
- package/dist/features/detail-panels/DashboardPanel.svelte +34 -17
- package/dist/features/detail-panels/ShortcutsPanel.svelte +185 -88
- package/dist/features/detail-panels/ShowcasePanel.svelte +20 -6
- package/dist/features/layout/smart/ConnectedNavigationPanel.svelte +30 -0
- package/dist/features/layout/smart/ConnectedNavigationPanel.svelte.d.ts +10 -0
- package/dist/features/layout/smart/ConnectedWorkspaceStrip.svelte +23 -0
- package/dist/features/layout/smart/ConnectedWorkspaceStrip.svelte.d.ts +9 -0
- package/dist/features/shortcuts/ShortcutPalette.svelte +14 -6
- package/dist/index.d.ts +14 -2
- package/dist/index.js +19 -8
- package/dist/layout/NavigationPanel.svelte +97 -121
- package/dist/layout/NavigationPanel.svelte.d.ts +5 -1
- package/dist/layout/WorkspaceLayout.svelte +109 -30
- package/dist/layout/WorkspaceLayout.svelte.d.ts +2 -2
- package/dist/layout/WorkspaceStrip.svelte +17 -12
- package/dist/layout/WorkspaceStrip.svelte.d.ts +3 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/paraglide/runtime.d.ts +43 -2
- package/dist/paraglide/runtime.js +143 -23
- package/dist/paraglide/server.js +37 -14
- package/dist/persistence/drivers.d.ts +10 -0
- package/dist/persistence/drivers.js +71 -0
- package/dist/persistence/types.d.ts +17 -0
- package/dist/persistence/types.js +2 -0
- package/dist/showcase/AppStateInspector.svelte +26 -11
- package/dist/showcase/Showcase.svelte +4 -1
- package/dist/state/api.svelte.d.ts +3 -3
- package/dist/state/api.svelte.js +9 -2
- package/dist/state/app.svelte.d.ts +3 -3
- package/dist/state/app.svelte.js +14 -4
- package/dist/state/commands.svelte.d.ts +21 -4
- package/dist/state/commands.svelte.js +22 -94
- package/dist/state/currency.svelte.d.ts +4 -1
- package/dist/state/currency.svelte.js +16 -8
- package/dist/state/index.d.ts +9 -9
- package/dist/state/index.js +10 -9
- package/dist/state/language.svelte.d.ts +4 -1
- package/dist/state/language.svelte.js +27 -8
- package/dist/state/layout.svelte.d.ts +10 -3
- package/dist/state/layout.svelte.js +56 -14
- package/dist/state/shortcuts.svelte.d.ts +56 -6
- package/dist/state/shortcuts.svelte.js +21 -69
- package/dist/state/theme.svelte.d.ts +4 -1
- package/dist/state/theme.svelte.js +16 -8
- package/dist/state/toast.svelte.d.ts +3 -3
- package/dist/state/toast.svelte.js +9 -2
- package/package.json +9 -9
- package/dist/features/command-palette/commands.svelte.d.ts +0 -8
- package/dist/features/command-palette/commands.svelte.js +0 -5
- package/dist/features/config/stores/api.svelte.d.ts +0 -13
- package/dist/features/config/stores/api.svelte.js +0 -5
- package/dist/features/config/stores/app.svelte.d.ts +0 -13
- package/dist/features/config/stores/app.svelte.js +0 -5
- package/dist/features/config/stores/currency.svelte.d.ts +0 -8
- package/dist/features/config/stores/currency.svelte.js +0 -5
- package/dist/features/config/stores/language.svelte.d.ts +0 -8
- package/dist/features/config/stores/language.svelte.js +0 -5
- package/dist/features/config/stores/theme.svelte.d.ts +0 -8
- package/dist/features/config/stores/theme.svelte.js +0 -5
- package/dist/features/config/stores/toast.svelte.d.ts +0 -9
- package/dist/features/config/stores/toast.svelte.js +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// src/lib/state/shortcuts.svelte.ts
|
|
2
1
|
import hotkeys from "hotkeys-js";
|
|
3
|
-
import { untrack } from "svelte";
|
|
2
|
+
import { getContext, untrack } from "svelte";
|
|
3
|
+
import { RUNE_LAB_CONTEXT } from "../context";
|
|
4
4
|
/**
|
|
5
|
-
* Built-in layout shortcuts
|
|
5
|
+
* Built-in layout shortcuts
|
|
6
6
|
*/
|
|
7
7
|
export const LAYOUT_SHORTCUTS = {
|
|
8
8
|
TOGGLE_NAV: {
|
|
@@ -19,69 +19,16 @@ export const LAYOUT_SHORTCUTS = {
|
|
|
19
19
|
category: "Layout",
|
|
20
20
|
scope: "global",
|
|
21
21
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
label: "Jump to Workspace 2",
|
|
33
|
-
category: "Navigation",
|
|
34
|
-
scope: "global",
|
|
35
|
-
},
|
|
36
|
-
WORKSPACE_3: {
|
|
37
|
-
id: "rl:layout:workspace-3",
|
|
38
|
-
keys: "ctrl+3",
|
|
39
|
-
label: "Jump to Workspace 3",
|
|
40
|
-
category: "Navigation",
|
|
41
|
-
scope: "global",
|
|
42
|
-
},
|
|
43
|
-
WORKSPACE_4: {
|
|
44
|
-
id: "rl:layout:workspace-4",
|
|
45
|
-
keys: "ctrl+4",
|
|
46
|
-
label: "Jump to Workspace 4",
|
|
47
|
-
category: "Navigation",
|
|
48
|
-
scope: "global",
|
|
49
|
-
},
|
|
50
|
-
WORKSPACE_5: {
|
|
51
|
-
id: "rl:layout:workspace-5",
|
|
52
|
-
keys: "ctrl+5",
|
|
53
|
-
label: "Jump to Workspace 5",
|
|
54
|
-
category: "Navigation",
|
|
55
|
-
scope: "global",
|
|
56
|
-
},
|
|
57
|
-
WORKSPACE_6: {
|
|
58
|
-
id: "rl:layout:workspace-6",
|
|
59
|
-
keys: "ctrl+6",
|
|
60
|
-
label: "Jump to Workspace 6",
|
|
61
|
-
category: "Navigation",
|
|
62
|
-
scope: "global",
|
|
63
|
-
},
|
|
64
|
-
WORKSPACE_7: {
|
|
65
|
-
id: "rl:layout:workspace-7",
|
|
66
|
-
keys: "ctrl+7",
|
|
67
|
-
label: "Jump to Workspace 7",
|
|
68
|
-
category: "Navigation",
|
|
69
|
-
scope: "global",
|
|
70
|
-
},
|
|
71
|
-
WORKSPACE_8: {
|
|
72
|
-
id: "rl:layout:workspace-8",
|
|
73
|
-
keys: "ctrl+8",
|
|
74
|
-
label: "Jump to Workspace 8",
|
|
75
|
-
category: "Navigation",
|
|
76
|
-
scope: "global",
|
|
77
|
-
},
|
|
78
|
-
WORKSPACE_9: {
|
|
79
|
-
id: "rl:layout:workspace-9",
|
|
80
|
-
keys: "ctrl+9",
|
|
81
|
-
label: "Jump to Workspace 9",
|
|
82
|
-
category: "Navigation",
|
|
83
|
-
scope: "global",
|
|
84
|
-
},
|
|
22
|
+
...Object.fromEntries(Array.from({ length: 9 }, (_, i) => [
|
|
23
|
+
`WORKSPACE_${i + 1}`,
|
|
24
|
+
{
|
|
25
|
+
id: `rl:layout:workspace-${i + 1}`,
|
|
26
|
+
keys: `ctrl+${i + 1}`,
|
|
27
|
+
label: `Jump to Workspace ${i + 1}`,
|
|
28
|
+
category: "Navigation",
|
|
29
|
+
scope: "global",
|
|
30
|
+
},
|
|
31
|
+
])),
|
|
85
32
|
OPEN_SHORTCUTS: {
|
|
86
33
|
id: "rl:shortcuts:open",
|
|
87
34
|
keys: "ctrl+/",
|
|
@@ -118,7 +65,7 @@ export const LAYOUT_SHORTCUTS = {
|
|
|
118
65
|
scope: "panel:navigation",
|
|
119
66
|
},
|
|
120
67
|
};
|
|
121
|
-
class ShortcutStore {
|
|
68
|
+
export class ShortcutStore {
|
|
122
69
|
/** All registered shortcuts */
|
|
123
70
|
entries = $state([]);
|
|
124
71
|
/** Whether the shortcut palette is currently visible */
|
|
@@ -217,7 +164,7 @@ class ShortcutStore {
|
|
|
217
164
|
* Svelte Action to listen for shortcuts registered in shortcutStore.
|
|
218
165
|
* Applied to the root element of the layout.
|
|
219
166
|
*/
|
|
220
|
-
export function shortcutListener(node) {
|
|
167
|
+
export function shortcutListener(node, shortcutStore) {
|
|
221
168
|
// Use $effect to reactively sync shortcuts
|
|
222
169
|
const cleanup = $effect.root(() => {
|
|
223
170
|
$effect(() => {
|
|
@@ -276,4 +223,9 @@ export function shortcutListener(node) {
|
|
|
276
223
|
},
|
|
277
224
|
};
|
|
278
225
|
}
|
|
279
|
-
export
|
|
226
|
+
export function createShortcutStore() {
|
|
227
|
+
return new ShortcutStore();
|
|
228
|
+
}
|
|
229
|
+
export function getShortcutStore() {
|
|
230
|
+
return getContext(RUNE_LAB_CONTEXT.shortcut);
|
|
231
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { type ConfigStore } from "../devtools/createConfigStore.svelte";
|
|
1
2
|
export interface Theme {
|
|
2
3
|
name: string;
|
|
3
4
|
icon: string;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
+
import type { PersistenceDriver } from "../persistence/types";
|
|
7
|
+
export declare function createThemeStore(driver?: PersistenceDriver | (() => PersistenceDriver | undefined)): {
|
|
6
8
|
current: string;
|
|
7
9
|
available: Theme[];
|
|
8
10
|
set(id: string): void;
|
|
9
11
|
get(id: string): Theme | undefined;
|
|
10
12
|
getProp<K extends keyof Theme>(prop: K, id?: string | undefined): Theme[K] | undefined;
|
|
11
13
|
};
|
|
14
|
+
export declare function getThemeStore(): ConfigStore<Theme>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// client/packages/ui/src/state/theme-config.svelte.ts
|
|
2
|
-
import { createConfigStore } from "../devtools/createConfigStore.svelte";
|
|
2
|
+
import { createConfigStore, } from "../devtools/createConfigStore.svelte";
|
|
3
|
+
import { getContext } from "svelte";
|
|
4
|
+
import { RUNE_LAB_CONTEXT } from "../context";
|
|
3
5
|
import themeOrder from "daisyui/functions/themeOrder.js"; // has its own .d.ts
|
|
4
6
|
// Icon map for known themes - unknown ones fall back to 🎨
|
|
5
7
|
const THEME_ICONS = {
|
|
@@ -44,13 +46,19 @@ const THEMES = themeOrder.map((name) => ({
|
|
|
44
46
|
name,
|
|
45
47
|
icon: THEME_ICONS[name] ?? "🎨",
|
|
46
48
|
}));
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
export function createThemeStore(driver) {
|
|
50
|
+
return createConfigStore({
|
|
51
|
+
items: THEMES,
|
|
52
|
+
storageKey: "theme",
|
|
53
|
+
displayName: "Theme",
|
|
54
|
+
idKey: "name",
|
|
55
|
+
icon: "🎨",
|
|
56
|
+
driver: typeof driver === "function" ? driver() : driver,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export function getThemeStore() {
|
|
60
|
+
return getContext(RUNE_LAB_CONTEXT.theme);
|
|
61
|
+
}
|
|
54
62
|
// Usage:
|
|
55
63
|
// themeStore.set("dark")
|
|
56
64
|
// themeStore.get("dark")
|
|
@@ -8,7 +8,7 @@ export interface Toast {
|
|
|
8
8
|
type: ToastType;
|
|
9
9
|
duration?: number;
|
|
10
10
|
}
|
|
11
|
-
declare class ToastStore {
|
|
11
|
+
export declare class ToastStore {
|
|
12
12
|
toasts: Toast[];
|
|
13
13
|
/**
|
|
14
14
|
* Add a new toast
|
|
@@ -23,5 +23,5 @@ declare class ToastStore {
|
|
|
23
23
|
warn(msg: string): void;
|
|
24
24
|
info(msg: string): void;
|
|
25
25
|
}
|
|
26
|
-
export declare
|
|
27
|
-
export
|
|
26
|
+
export declare function createToastStore(): ToastStore;
|
|
27
|
+
export declare function getToastStore(): ToastStore;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { getContext } from "svelte";
|
|
2
|
+
import { RUNE_LAB_CONTEXT } from "../context";
|
|
3
|
+
export class ToastStore {
|
|
2
4
|
toasts = $state([]);
|
|
3
5
|
/**
|
|
4
6
|
* Add a new toast
|
|
@@ -33,4 +35,9 @@ class ToastStore {
|
|
|
33
35
|
this.send(msg, "info");
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
export
|
|
38
|
+
export function createToastStore() {
|
|
39
|
+
return new ToastStore();
|
|
40
|
+
}
|
|
41
|
+
export function getToastStore() {
|
|
42
|
+
return getContext(RUNE_LAB_CONTEXT.toast);
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rune-lab",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "Rune Lab: Modern toolkit for Svelte 5 Runes applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
"prepack": "bun run compile && bunx svelte-kit sync && bunx svelte-package && rm -f dist/paraglide/.gitignore dist/paraglide/.prettierignore && bunx publint"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@sveltejs/kit": "^2.
|
|
49
|
-
"svelte": "^5.
|
|
48
|
+
"@sveltejs/kit": "^2.52.2",
|
|
49
|
+
"svelte": "^5.53.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@inlang/paraglide-js": "^2.
|
|
52
|
+
"@inlang/paraglide-js": "^2.12.0",
|
|
53
53
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
54
54
|
"@sveltejs/package": "^2.5.7",
|
|
55
55
|
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
|
56
56
|
"@tailwindcss/forms": "^0.5.11",
|
|
57
57
|
"@tailwindcss/typography": "^0.5.19",
|
|
58
|
-
"@tailwindcss/vite": "^4.
|
|
59
|
-
"@types/node": "^25.
|
|
58
|
+
"@tailwindcss/vite": "^4.2.0",
|
|
59
|
+
"@types/node": "^25.3.0",
|
|
60
60
|
"daisyui": "^5.5.18",
|
|
61
61
|
"esm-env": "^1.2.2",
|
|
62
62
|
"hotkeys-js": "^4.0.0",
|
|
63
63
|
"publint": "^0.3.17",
|
|
64
|
-
"svelte-check": "^4.4.
|
|
65
|
-
"tailwindcss": "^4.
|
|
64
|
+
"svelte-check": "^4.4.1",
|
|
65
|
+
"tailwindcss": "^4.2.0",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"vite": "^7.3.1"
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { Command } from "../../state/commands.svelte";
|
|
2
|
-
export declare const commandStore: {
|
|
3
|
-
commands: import("../../state/commands.svelte").Command[];
|
|
4
|
-
register(command: import("../../state/commands.svelte").Command): void;
|
|
5
|
-
unregister(id: string): void;
|
|
6
|
-
search(query: string, parentId?: string): import("../../state/commands.svelte").Command[];
|
|
7
|
-
"__#private@#findById"(id: string, list: import("../../state/commands.svelte").Command[]): import("../../state/commands.svelte").Command | undefined;
|
|
8
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { commandStore as _commandStore } from "../../state/commands.svelte";
|
|
2
|
-
if (import.meta.env?.DEV) {
|
|
3
|
-
console.warn('[DEPRECATED] Import from "$lib/features/command-palette/commands.svelte" is deprecated. Use "$lib/state/commands.svelte" instead.');
|
|
4
|
-
}
|
|
5
|
-
export const commandStore = _commandStore;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const apiStore: {
|
|
2
|
-
url: string;
|
|
3
|
-
version: string;
|
|
4
|
-
connectionState: import("../../../state/api.svelte").ConnectionState;
|
|
5
|
-
isConnected: boolean;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
get URL(): string;
|
|
8
|
-
get VERSION(): string;
|
|
9
|
-
get IS_CONNECTED(): boolean;
|
|
10
|
-
get IS_LOADING(): boolean;
|
|
11
|
-
reconnect(): Promise<void>;
|
|
12
|
-
init(url: string, version?: string): void;
|
|
13
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { apiStore as _apiStore } from "../../../state/api.svelte";
|
|
2
|
-
if (import.meta.env?.DEV) {
|
|
3
|
-
console.warn('[DEPRECATED] Import from "$lib/features/config/stores/api.svelte" is deprecated. Use "$lib/state/api.svelte" instead.');
|
|
4
|
-
}
|
|
5
|
-
export const apiStore = _apiStore;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type { AppData } from "../../../state/app.svelte";
|
|
2
|
-
export declare const appStore: {
|
|
3
|
-
name: string;
|
|
4
|
-
version: string;
|
|
5
|
-
description: string;
|
|
6
|
-
author: string;
|
|
7
|
-
repository: string;
|
|
8
|
-
license: string;
|
|
9
|
-
homepage: string;
|
|
10
|
-
"__#private@#initialized": boolean;
|
|
11
|
-
init(data: Partial<import("../../../state/app.svelte").AppData>): void;
|
|
12
|
-
get info(): import("../../../state/app.svelte").AppData;
|
|
13
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { appStore as _appStore } from "../../../state/app.svelte";
|
|
2
|
-
if (import.meta.env?.DEV) {
|
|
3
|
-
console.warn('[DEPRECATED] Import from "$lib/features/config/stores/app.svelte" is deprecated. Use "$lib/state/app.svelte" instead.');
|
|
4
|
-
}
|
|
5
|
-
export const appStore = _appStore;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { Currency } from "../../../state/currency.svelte";
|
|
2
|
-
export declare const currencyStore: {
|
|
3
|
-
current: string | number;
|
|
4
|
-
available: import("../../../state/currency.svelte").Currency[];
|
|
5
|
-
set(id: string | number): void;
|
|
6
|
-
get(id: string | number): import("../../../state/currency.svelte").Currency | undefined;
|
|
7
|
-
getProp<K extends keyof import("../../../state/currency.svelte").Currency>(prop: K, id?: string | number | undefined): import("../../../state/currency.svelte").Currency[K] | undefined;
|
|
8
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { currencyStore as _currencyStore } from "../../../state/currency.svelte";
|
|
2
|
-
if (import.meta.env?.DEV) {
|
|
3
|
-
console.warn('[DEPRECATED] Import from "$lib/features/config/stores/currency.svelte" is deprecated. Use "$lib/state/currency.svelte" instead.');
|
|
4
|
-
}
|
|
5
|
-
export const currencyStore = _currencyStore;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { Language } from "../../../state/language.svelte";
|
|
2
|
-
export declare const languageStore: {
|
|
3
|
-
current: string | undefined;
|
|
4
|
-
available: import("../../../state/language.svelte").Language[];
|
|
5
|
-
set(id: string | undefined): void;
|
|
6
|
-
get(id: string | undefined): import("../../../state/language.svelte").Language | undefined;
|
|
7
|
-
getProp<K extends keyof import("../../../state/language.svelte").Language>(prop: K, id?: string | undefined): import("../../../state/language.svelte").Language[K] | undefined;
|
|
8
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { languageStore as _languageStore } from "../../../state/language.svelte";
|
|
2
|
-
if (import.meta.env?.DEV) {
|
|
3
|
-
console.warn('[DEPRECATED] Import from "$lib/features/config/stores/language.svelte" is deprecated. Use "$lib/state/language.svelte" instead.');
|
|
4
|
-
}
|
|
5
|
-
export const languageStore = _languageStore;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { Theme } from "../../../state/theme.svelte";
|
|
2
|
-
export declare const themeStore: {
|
|
3
|
-
current: string;
|
|
4
|
-
available: import("../../../state/theme.svelte").Theme[];
|
|
5
|
-
set(id: string): void;
|
|
6
|
-
get(id: string): import("../../../state/theme.svelte").Theme | undefined;
|
|
7
|
-
getProp<K extends keyof import("../../../state/theme.svelte").Theme>(prop: K, id?: string | undefined): import("../../../state/theme.svelte").Theme[K] | undefined;
|
|
8
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { themeStore as _themeStore } from "../../../state/theme.svelte";
|
|
2
|
-
if (import.meta.env?.DEV) {
|
|
3
|
-
console.warn('[DEPRECATED] Import from "$lib/features/config/stores/theme.svelte" is deprecated. Use "$lib/state/theme.svelte" instead.');
|
|
4
|
-
}
|
|
5
|
-
export const themeStore = _themeStore;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const toastStore: {
|
|
2
|
-
toasts: import("../../../state/toast.svelte").Toast[];
|
|
3
|
-
send(message: string, type?: import("../../../state/toast.svelte").ToastType, duration?: number): void;
|
|
4
|
-
dismiss(id: string): void;
|
|
5
|
-
success(msg: string): void;
|
|
6
|
-
error(msg: string): void;
|
|
7
|
-
warn(msg: string): void;
|
|
8
|
-
info(msg: string): void;
|
|
9
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { toastStore as _toastStore } from "../../../state/toast.svelte";
|
|
2
|
-
if (import.meta.env?.DEV) {
|
|
3
|
-
console.warn('[DEPRECATED] Import from "$lib/features/config/stores/toast.svelte" is deprecated. Use "$lib/state/toast.svelte" instead.');
|
|
4
|
-
}
|
|
5
|
-
export const toastStore = _toastStore;
|