rune-lab 0.1.1 → 0.1.2
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/dist/components/ApiMonitor.svelte.d.ts +14 -3
- package/dist/components/Icon.svelte.d.ts +13 -8
- package/dist/components/RuneProvider.svelte +26 -2
- package/dist/components/RuneProvider.svelte.d.ts +16 -7
- package/dist/components/Toaster.svelte.d.ts +12 -16
- package/dist/features/command-palette/CommandPalette.svelte.d.ts +13 -5
- package/dist/features/config/AppSettingSelector.svelte +89 -36
- package/dist/features/config/AppSettingSelector.svelte.d.ts +13 -12
- package/dist/features/config/CurrencySelector.svelte +14 -9
- package/dist/features/config/CurrencySelector.svelte.d.ts +13 -7
- package/dist/features/config/LanguageSelector.svelte +16 -9
- package/dist/features/config/LanguageSelector.svelte.d.ts +13 -7
- package/dist/features/config/ThemeSelector.svelte +15 -10
- package/dist/features/config/ThemeSelector.svelte.d.ts +13 -7
- package/dist/features/detail-panels/DashboardPanel.svelte.d.ts +14 -3
- package/dist/features/detail-panels/ShortcutsPanel.svelte.d.ts +14 -3
- package/dist/features/detail-panels/ShowcasePanel.svelte.d.ts +14 -3
- package/dist/features/layout/smart/ConnectedNavigationPanel.svelte.d.ts +13 -9
- package/dist/features/layout/smart/ConnectedWorkspaceStrip.svelte.d.ts +13 -8
- package/dist/features/shortcuts/ShortcutPalette.svelte.d.ts +19 -6
- package/dist/layout/ContentArea.svelte.d.ts +13 -7
- package/dist/layout/DetailPanel.svelte.d.ts +13 -6
- package/dist/layout/NavigationPanel.svelte.d.ts +13 -13
- package/dist/layout/WorkspaceLayout.svelte.d.ts +14 -3
- package/dist/layout/WorkspaceStrip.svelte.d.ts +13 -10
- package/dist/paraglide/runtime.d.ts +2 -2
- package/dist/showcase/AppStateInspector.svelte.d.ts +14 -3
- package/dist/showcase/Showcase.svelte.d.ts +12 -16
- package/dist/showcase/ShowcaseCard.svelte.d.ts +13 -8
- package/dist/showcase/StoreDetailCard.svelte.d.ts +13 -18
- package/dist/showcase/tabs/Actions.svelte.d.ts +12 -16
- package/dist/showcase/tabs/DataInput.svelte.d.ts +14 -3
- package/dist/showcase/tabs/Display.svelte.d.ts +12 -16
- package/dist/showcase/tabs/Feedback.svelte.d.ts +14 -3
- package/dist/showcase/tabs/Navigation.svelte.d.ts +12 -16
- package/dist/showcase/tabs/Visual.svelte.d.ts +12 -16
- package/dist/state/language.svelte.d.ts +1 -0
- package/dist/state/language.svelte.js +4 -16
- package/package.json +8 -10
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type ShowcasePanelProps = typeof __propDef.props;
|
|
10
|
+
export type ShowcasePanelEvents = typeof __propDef.events;
|
|
11
|
+
export type ShowcasePanelSlots = typeof __propDef.slots;
|
|
12
|
+
export default class ShowcasePanel extends SvelteComponentTyped<ShowcasePanelProps, ShowcasePanelEvents, ShowcasePanelSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
type
|
|
10
|
-
export
|
|
9
|
+
export type ConnectedNavigationPanelProps = typeof __propDef.props;
|
|
10
|
+
export type ConnectedNavigationPanelEvents = typeof __propDef.events;
|
|
11
|
+
export type ConnectedNavigationPanelSlots = typeof __propDef.slots;
|
|
12
|
+
export default class ConnectedNavigationPanel extends SvelteComponentTyped<ConnectedNavigationPanelProps, ConnectedNavigationPanelEvents, ConnectedNavigationPanelSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
6
8
|
};
|
|
7
|
-
|
|
8
|
-
type
|
|
9
|
-
export
|
|
9
|
+
export type ConnectedWorkspaceStripProps = typeof __propDef.props;
|
|
10
|
+
export type ConnectedWorkspaceStripEvents = typeof __propDef.events;
|
|
11
|
+
export type ConnectedWorkspaceStripSlots = typeof __propDef.slots;
|
|
12
|
+
export default class ConnectedWorkspaceStrip extends SvelteComponentTyped<ConnectedWorkspaceStripProps, ConnectedWorkspaceStripEvents, ConnectedWorkspaceStripSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
open?: () => void;
|
|
5
|
+
close?: () => void;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export type ShortcutPaletteProps = typeof __propDef.props;
|
|
13
|
+
export type ShortcutPaletteEvents = typeof __propDef.events;
|
|
14
|
+
export type ShortcutPaletteSlots = typeof __propDef.slots;
|
|
15
|
+
export default class ShortcutPalette extends SvelteComponentTyped<ShortcutPaletteProps, ShortcutPaletteEvents, ShortcutPaletteSlots> {
|
|
16
|
+
get open(): () => void;
|
|
17
|
+
get close(): () => void;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
export
|
|
9
|
+
export type ContentAreaProps = typeof __propDef.props;
|
|
10
|
+
export type ContentAreaEvents = typeof __propDef.events;
|
|
11
|
+
export type ContentAreaSlots = typeof __propDef.slots;
|
|
12
|
+
export default class ContentArea extends SvelteComponentTyped<ContentAreaProps, ContentAreaEvents, ContentAreaSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
4
8
|
};
|
|
5
|
-
|
|
6
|
-
type
|
|
7
|
-
export
|
|
9
|
+
export type DetailPanelProps = typeof __propDef.props;
|
|
10
|
+
export type DetailPanelEvents = typeof __propDef.events;
|
|
11
|
+
export type DetailPanelSlots = typeof __propDef.slots;
|
|
12
|
+
export default class DetailPanel extends SvelteComponentTyped<DetailPanelProps, DetailPanelEvents, DetailPanelSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
collapsedIds?: Set<string>;
|
|
9
|
-
onSelect?: (item: NavigationItem) => void;
|
|
10
|
-
onToggle?: (id: string, isOpen: boolean) => void;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
11
8
|
};
|
|
12
|
-
|
|
13
|
-
type
|
|
14
|
-
export
|
|
9
|
+
export type NavigationPanelProps = typeof __propDef.props;
|
|
10
|
+
export type NavigationPanelEvents = typeof __propDef.events;
|
|
11
|
+
export type NavigationPanelSlots = typeof __propDef.slots;
|
|
12
|
+
export default class NavigationPanel extends SvelteComponentTyped<NavigationPanelProps, NavigationPanelEvents, NavigationPanelSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
1
2
|
import type { Snippet } from "svelte";
|
|
2
3
|
export interface WorkspaceLayoutProps {
|
|
3
4
|
/** Content for the far-left vertical strip */
|
|
@@ -20,6 +21,16 @@ export interface WorkspaceLayoutProps {
|
|
|
20
21
|
/** Controlled override for detail panel visibility */
|
|
21
22
|
detailOpen?: boolean;
|
|
22
23
|
}
|
|
23
|
-
declare const
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
declare const __propDef: {
|
|
25
|
+
props: Record<string, never>;
|
|
26
|
+
events: {
|
|
27
|
+
[evt: string]: CustomEvent<any>;
|
|
28
|
+
};
|
|
29
|
+
slots: {};
|
|
30
|
+
};
|
|
31
|
+
type WorkspaceLayoutProps_ = typeof __propDef.props;
|
|
32
|
+
export type WorkspaceLayoutEvents = typeof __propDef.events;
|
|
33
|
+
export type WorkspaceLayoutSlots = typeof __propDef.slots;
|
|
34
|
+
export default class WorkspaceLayout extends SvelteComponentTyped<WorkspaceLayoutProps_, WorkspaceLayoutEvents, WorkspaceLayoutSlots> {
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
type
|
|
11
|
-
export
|
|
9
|
+
export type WorkspaceStripProps = typeof __propDef.props;
|
|
10
|
+
export type WorkspaceStripEvents = typeof __propDef.events;
|
|
11
|
+
export type WorkspaceStripSlots = typeof __propDef.slots;
|
|
12
|
+
export default class WorkspaceStrip extends SvelteComponentTyped<WorkspaceStripProps, WorkspaceStripEvents, WorkspaceStripSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -614,12 +614,12 @@ export const customClientStrategies: Map<string, CustomClientStrategyHandler>;
|
|
|
614
614
|
export type ShouldRedirectServerInput = {
|
|
615
615
|
request: Request;
|
|
616
616
|
url?: string | URL | undefined;
|
|
617
|
-
locale?: "
|
|
617
|
+
locale?: "es" | "fr" | "it" | "pt" | "en" | "de" | "ru" | "hi" | "ar" | "zh" | "ja" | "ko" | "vi" | undefined;
|
|
618
618
|
};
|
|
619
619
|
export type ShouldRedirectClientInput = {
|
|
620
620
|
request?: undefined;
|
|
621
621
|
url?: string | URL | undefined;
|
|
622
|
-
locale?: "
|
|
622
|
+
locale?: "es" | "fr" | "it" | "pt" | "en" | "de" | "ru" | "hi" | "ar" | "zh" | "ja" | "ko" | "vi" | undefined;
|
|
623
623
|
};
|
|
624
624
|
export type ShouldRedirectInput = ShouldRedirectServerInput | ShouldRedirectClientInput;
|
|
625
625
|
export type ShouldRedirectResult = {
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type AppStateInspectorProps = typeof __propDef.props;
|
|
10
|
+
export type AppStateInspectorEvents = typeof __propDef.events;
|
|
11
|
+
export type AppStateInspectorSlots = typeof __propDef.slots;
|
|
12
|
+
export default class AppStateInspector extends SvelteComponentTyped<AppStateInspectorProps, AppStateInspectorEvents, AppStateInspectorSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
11
6
|
};
|
|
12
|
-
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type ShowcaseProps = typeof __propDef.props;
|
|
10
|
+
export type ShowcaseEvents = typeof __propDef.events;
|
|
11
|
+
export type ShowcaseSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Showcase extends SvelteComponentTyped<ShowcaseProps, ShowcaseEvents, ShowcaseSlots> {
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type Showcase = InstanceType<typeof Showcase>;
|
|
18
|
-
export default Showcase;
|
|
14
|
+
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
6
8
|
};
|
|
7
|
-
|
|
8
|
-
type
|
|
9
|
-
export
|
|
9
|
+
export type ShowcaseCardProps = typeof __propDef.props;
|
|
10
|
+
export type ShowcaseCardEvents = typeof __propDef.events;
|
|
11
|
+
export type ShowcaseCardSlots = typeof __propDef.slots;
|
|
12
|
+
export default class ShowcaseCard extends SvelteComponentTyped<ShowcaseCardProps, ShowcaseCardEvents, ShowcaseCardSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
label: string;
|
|
9
|
-
labelKey?: keyof typeof m;
|
|
10
|
-
icon: string;
|
|
11
|
-
color: string;
|
|
12
|
-
values: StoreValue[];
|
|
13
|
-
}
|
|
14
|
-
type $$ComponentProps = {
|
|
15
|
-
store: StoreDetail;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
16
8
|
};
|
|
17
|
-
|
|
18
|
-
type
|
|
19
|
-
export
|
|
9
|
+
export type StoreDetailCardProps = typeof __propDef.props;
|
|
10
|
+
export type StoreDetailCardEvents = typeof __propDef.events;
|
|
11
|
+
export type StoreDetailCardSlots = typeof __propDef.slots;
|
|
12
|
+
export default class StoreDetailCard extends SvelteComponentTyped<StoreDetailCardProps, StoreDetailCardEvents, StoreDetailCardSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
11
6
|
};
|
|
12
|
-
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type ActionsProps = typeof __propDef.props;
|
|
10
|
+
export type ActionsEvents = typeof __propDef.events;
|
|
11
|
+
export type ActionsSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Actions extends SvelteComponentTyped<ActionsProps, ActionsEvents, ActionsSlots> {
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type Actions = InstanceType<typeof Actions>;
|
|
18
|
-
export default Actions;
|
|
14
|
+
export {};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type DataInputProps = typeof __propDef.props;
|
|
10
|
+
export type DataInputEvents = typeof __propDef.events;
|
|
11
|
+
export type DataInputSlots = typeof __propDef.slots;
|
|
12
|
+
export default class DataInput extends SvelteComponentTyped<DataInputProps, DataInputEvents, DataInputSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
11
6
|
};
|
|
12
|
-
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type DisplayProps = typeof __propDef.props;
|
|
10
|
+
export type DisplayEvents = typeof __propDef.events;
|
|
11
|
+
export type DisplaySlots = typeof __propDef.slots;
|
|
12
|
+
export default class Display extends SvelteComponentTyped<DisplayProps, DisplayEvents, DisplaySlots> {
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type Display = InstanceType<typeof Display>;
|
|
18
|
-
export default Display;
|
|
14
|
+
export {};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type FeedbackProps = typeof __propDef.props;
|
|
10
|
+
export type FeedbackEvents = typeof __propDef.events;
|
|
11
|
+
export type FeedbackSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Feedback extends SvelteComponentTyped<FeedbackProps, FeedbackEvents, FeedbackSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
11
6
|
};
|
|
12
|
-
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type NavigationProps = typeof __propDef.props;
|
|
10
|
+
export type NavigationEvents = typeof __propDef.events;
|
|
11
|
+
export type NavigationSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Navigation extends SvelteComponentTyped<NavigationProps, NavigationEvents, NavigationSlots> {
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type Navigation = InstanceType<typeof Navigation>;
|
|
18
|
-
export default Navigation;
|
|
14
|
+
export {};
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
$$events?: Events;
|
|
7
|
-
$$slots?: Slots;
|
|
8
|
-
}): Exports & {
|
|
9
|
-
$set?: any;
|
|
10
|
-
$on?: any;
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
11
6
|
};
|
|
12
|
-
|
|
7
|
+
slots: {};
|
|
8
|
+
};
|
|
9
|
+
export type VisualProps = typeof __propDef.props;
|
|
10
|
+
export type VisualEvents = typeof __propDef.events;
|
|
11
|
+
export type VisualSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Visual extends SvelteComponentTyped<VisualProps, VisualEvents, VisualSlots> {
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
[evt: string]: CustomEvent<any>;
|
|
16
|
-
}, {}, {}, string>;
|
|
17
|
-
type Visual = InstanceType<typeof Visual>;
|
|
18
|
-
export default Visual;
|
|
14
|
+
export {};
|
|
@@ -51,6 +51,7 @@ import type { PersistenceDriver } from "../persistence/types";
|
|
|
51
51
|
export interface LanguageStoreOptions {
|
|
52
52
|
driver?: PersistenceDriver | (() => PersistenceDriver | undefined);
|
|
53
53
|
onLocaleChange?: (code: string) => void;
|
|
54
|
+
locales?: readonly string[];
|
|
54
55
|
}
|
|
55
56
|
export declare function createLanguageStore(options?: LanguageStoreOptions): {
|
|
56
57
|
current: string | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// client/sdk/state/src/config/language.svelte.ts
|
|
2
2
|
import { createConfigStore, } from "./createConfigStore.svelte";
|
|
3
|
-
import { setLocale } from "../paraglide/runtime.js";
|
|
4
3
|
import { getContext } from "svelte";
|
|
5
4
|
import { RUNE_LAB_CONTEXT } from "../context";
|
|
6
5
|
export const LANGUAGES = [
|
|
@@ -27,28 +26,17 @@ export function createLanguageStore(options) {
|
|
|
27
26
|
const driver = typeof options?.driver === "function"
|
|
28
27
|
? options.driver()
|
|
29
28
|
: options?.driver;
|
|
29
|
+
const items = options?.locales
|
|
30
|
+
? LANGUAGES.filter((l) => options.locales.includes(l.code))
|
|
31
|
+
: LANGUAGES;
|
|
30
32
|
const store = createConfigStore({
|
|
31
|
-
items
|
|
33
|
+
items,
|
|
32
34
|
storageKey: "language",
|
|
33
35
|
displayName: "Language",
|
|
34
36
|
idKey: "code",
|
|
35
37
|
icon: "🌍",
|
|
36
38
|
driver,
|
|
37
39
|
});
|
|
38
|
-
// Sync Paraglide locale with languageStore
|
|
39
|
-
if (typeof window !== "undefined") {
|
|
40
|
-
$effect.root(() => {
|
|
41
|
-
$effect(() => {
|
|
42
|
-
const currentCode = store.current;
|
|
43
|
-
if (options?.onLocaleChange) {
|
|
44
|
-
options.onLocaleChange(currentCode);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
setLocale(currentCode);
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
40
|
return store;
|
|
53
41
|
}
|
|
54
42
|
export function getLanguageStore() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rune-lab",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Rune Lab: Modern toolkit for Svelte 5 Runes applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,26 +48,24 @@
|
|
|
48
48
|
"prepare": "svelte-kit sync || echo ''",
|
|
49
49
|
"prepack": "bun run compile && bunx svelte-kit sync && bunx svelte-package && rm -f dist/paraglide/.gitignore dist/paraglide/.prettierignore && bunx publint"
|
|
50
50
|
},
|
|
51
|
-
"peerDependencies": {
|
|
52
|
-
"@sveltejs/kit": "^2.53.0",
|
|
53
|
-
"svelte": "^5.53.2"
|
|
54
|
-
},
|
|
55
51
|
"devDependencies": {
|
|
52
|
+
"@sveltejs/kit": "^2.53.2",
|
|
53
|
+
"svelte": "^5.53.5",
|
|
56
54
|
"@inlang/paraglide-js": "^2.12.0",
|
|
57
55
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
58
56
|
"@sveltejs/package": "^2.5.7",
|
|
59
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
57
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
60
58
|
"@tailwindcss/forms": "^0.5.11",
|
|
61
59
|
"@tailwindcss/typography": "^0.5.19",
|
|
62
|
-
"@tailwindcss/vite": "^4.2.
|
|
60
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
63
61
|
"@types/node": "^25.3.0",
|
|
64
62
|
"daisyui": "^5.5.19",
|
|
65
63
|
"esm-env": "^1.2.2",
|
|
66
|
-
"hotkeys-js": "^4.0.
|
|
64
|
+
"hotkeys-js": "^4.0.2",
|
|
67
65
|
"publint": "^0.3.17",
|
|
68
66
|
"svelte-check": "^4.4.3",
|
|
69
|
-
"tailwindcss": "^4.2.
|
|
67
|
+
"tailwindcss": "^4.2.1",
|
|
70
68
|
"typescript": "^5.9.3",
|
|
71
69
|
"vite": "^7.3.1"
|
|
72
70
|
}
|
|
73
|
-
}
|
|
71
|
+
}
|