inertiax-svelte 10.3.2 → 10.3.3
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/Deferred.svelte +1 -1
- package/dist/components/Deferred.svelte.d.ts +29 -19
- package/dist/components/Frame.svelte +2 -2
- package/dist/components/Frame.svelte.d.ts +34 -25
- package/dist/components/Link.svelte +1 -1
- package/dist/components/Link.svelte.d.ts +62 -53
- package/dist/components/Render.svelte +2 -2
- package/dist/components/Render.svelte.d.ts +21 -19
- package/dist/components/WhenVisible.svelte +1 -1
- package/dist/components/WhenVisible.svelte.d.ts +33 -23
- package/dist/createInertiaApp.js +1 -1
- package/dist/index.js +0 -1
- package/dist/usePoll.js +0 -1
- package/dist/usePrefetch.d.ts +1 -0
- package/dist/usePrefetch.js +0 -1
- package/dist/useRemember.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
5
11
|
};
|
|
6
|
-
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
};
|
|
9
|
-
slots: {
|
|
10
|
-
default: {};
|
|
11
|
-
fallback: {};
|
|
12
|
-
};
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type DeferredProps = typeof __propDef.props;
|
|
17
|
-
export type DeferredEvents = typeof __propDef.events;
|
|
18
|
-
export type DeferredSlots = typeof __propDef.slots;
|
|
19
|
-
export default class Deferred extends SvelteComponent<DeferredProps, DeferredEvents, DeferredSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
20
13
|
}
|
|
21
|
-
|
|
14
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
15
|
+
default: any;
|
|
16
|
+
} ? Props extends Record<string, never> ? any : {
|
|
17
|
+
children?: any;
|
|
18
|
+
} : {});
|
|
19
|
+
declare const Deferred: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
+
data: string | string[];
|
|
21
|
+
}, {
|
|
22
|
+
default: {};
|
|
23
|
+
fallback: {};
|
|
24
|
+
}>, {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
}, {
|
|
27
|
+
default: {};
|
|
28
|
+
fallback: {};
|
|
29
|
+
}, {}, string>;
|
|
30
|
+
type Deferred = InstanceType<typeof Deferred>;
|
|
31
|
+
export default Deferred;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<script context="module">import { shouldIntercept } from "inertiax-core";
|
|
1
|
+
<script context="module" lang="ts">import { shouldIntercept } from "inertiax-core";
|
|
2
2
|
import { BROWSER } from "esm-env";
|
|
3
3
|
let topResolveComponent = null;
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<script>import { Router } from "inertiax-core";
|
|
6
|
+
<script lang="ts">import { Router } from "inertiax-core";
|
|
7
7
|
import Render, { h } from "./Render.svelte";
|
|
8
8
|
import { onDestroy, setContext } from "svelte";
|
|
9
9
|
import { writable } from "svelte/store";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { ComponentResolver, ResolvedComponent } from '../types';
|
|
3
2
|
import { type Page } from 'inertiax-core';
|
|
4
3
|
export interface InertiaFrameProps {
|
|
@@ -7,29 +6,39 @@ export interface InertiaFrameProps {
|
|
|
7
6
|
resolveComponent: ComponentResolver;
|
|
8
7
|
name?: string;
|
|
9
8
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
10
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
11
|
+
$$bindings?: Bindings;
|
|
12
|
+
} & Exports;
|
|
13
|
+
(internal: unknown, props: Props & {
|
|
14
|
+
$$events?: Events;
|
|
15
|
+
$$slots?: Slots;
|
|
16
|
+
}): Exports & {
|
|
17
|
+
$set?: any;
|
|
18
|
+
$on?: any;
|
|
20
19
|
};
|
|
21
|
-
|
|
22
|
-
[evt: string]: CustomEvent<any>;
|
|
23
|
-
};
|
|
24
|
-
slots: {
|
|
25
|
-
default: {};
|
|
26
|
-
};
|
|
27
|
-
exports?: undefined;
|
|
28
|
-
bindings?: undefined;
|
|
29
|
-
};
|
|
30
|
-
export type FrameProps = typeof __propDef.props;
|
|
31
|
-
export type FrameEvents = typeof __propDef.events;
|
|
32
|
-
export type FrameSlots = typeof __propDef.slots;
|
|
33
|
-
export default class Frame extends SvelteComponent<FrameProps, FrameEvents, FrameSlots> {
|
|
20
|
+
z_$$bindings?: Bindings;
|
|
34
21
|
}
|
|
35
|
-
|
|
22
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
23
|
+
default: any;
|
|
24
|
+
} ? Props extends Record<string, never> ? any : {
|
|
25
|
+
children?: any;
|
|
26
|
+
} : {});
|
|
27
|
+
declare const Frame: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
initialComponent: InertiaFrameProps['initialComponent'];
|
|
30
|
+
initialPage: InertiaFrameProps['initialPage'];
|
|
31
|
+
resolveComponent?: ComponentResolver | undefined;
|
|
32
|
+
name?: InertiaFrameProps['name'];
|
|
33
|
+
renderLayout?: boolean | undefined;
|
|
34
|
+
src: any;
|
|
35
|
+
onclick?: (() => void) | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
default: {};
|
|
38
|
+
}>, {
|
|
39
|
+
[evt: string]: CustomEvent<any>;
|
|
40
|
+
}, {
|
|
41
|
+
default: {};
|
|
42
|
+
}, {}, string>;
|
|
43
|
+
type Frame = InstanceType<typeof Frame>;
|
|
44
|
+
export default Frame;
|
|
@@ -1,56 +1,65 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { CacheForOption, FormDataConvertible, LinkPrefetchOption, Method, PreserveStateOption } from 'inertiax-core';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
replace?: boolean | undefined;
|
|
14
|
-
preserveScroll?: PreserveStateOption | undefined;
|
|
15
|
-
preserveState?: (PreserveStateOption | null) | undefined;
|
|
16
|
-
only?: string[] | undefined;
|
|
17
|
-
except?: string[] | undefined;
|
|
18
|
-
headers?: Record<string, string> | undefined;
|
|
19
|
-
queryStringArrayFormat?: "brackets" | "indices" | undefined;
|
|
20
|
-
async?: boolean | undefined;
|
|
21
|
-
prefetch?: (boolean | LinkPrefetchOption | LinkPrefetchOption[]) | undefined;
|
|
22
|
-
cacheFor?: (CacheForOption | CacheForOption[]) | undefined;
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
23
12
|
};
|
|
24
|
-
|
|
25
|
-
focus: FocusEvent;
|
|
26
|
-
blur: FocusEvent;
|
|
27
|
-
click: MouseEvent;
|
|
28
|
-
dblclick: MouseEvent;
|
|
29
|
-
mousedown: MouseEvent;
|
|
30
|
-
mousemove: MouseEvent;
|
|
31
|
-
mouseout: MouseEvent;
|
|
32
|
-
mouseover: MouseEvent;
|
|
33
|
-
mouseup: MouseEvent;
|
|
34
|
-
'cancel-token': MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | AnimationEvent | InputEvent | CompositionEvent | ClipboardEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
35
|
-
before: MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | AnimationEvent | InputEvent | CompositionEvent | ClipboardEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
36
|
-
start: MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | AnimationEvent | InputEvent | CompositionEvent | ClipboardEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
37
|
-
progress: ProgressEvent<EventTarget>;
|
|
38
|
-
finish: MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | AnimationEvent | InputEvent | CompositionEvent | ClipboardEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
39
|
-
cancel: Event;
|
|
40
|
-
success: MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | AnimationEvent | InputEvent | CompositionEvent | ClipboardEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
41
|
-
error: ErrorEvent;
|
|
42
|
-
} & {
|
|
43
|
-
[evt: string]: CustomEvent<any>;
|
|
44
|
-
};
|
|
45
|
-
slots: {
|
|
46
|
-
default: {};
|
|
47
|
-
};
|
|
48
|
-
exports?: undefined;
|
|
49
|
-
bindings?: undefined;
|
|
50
|
-
};
|
|
51
|
-
export type LinkProps = typeof __propDef.props;
|
|
52
|
-
export type LinkEvents = typeof __propDef.events;
|
|
53
|
-
export type LinkSlots = typeof __propDef.slots;
|
|
54
|
-
export default class Link extends SvelteComponent<LinkProps, LinkEvents, LinkSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
55
14
|
}
|
|
56
|
-
|
|
15
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
16
|
+
default: any;
|
|
17
|
+
} ? Props extends Record<string, never> ? any : {
|
|
18
|
+
children?: any;
|
|
19
|
+
} : {});
|
|
20
|
+
declare const Link: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
href?: string | {
|
|
23
|
+
url: string;
|
|
24
|
+
method: Method;
|
|
25
|
+
} | undefined;
|
|
26
|
+
as?: keyof HTMLElementTagNameMap | undefined;
|
|
27
|
+
data?: Record<string, FormDataConvertible> | undefined;
|
|
28
|
+
method?: Method | undefined;
|
|
29
|
+
replace?: boolean | undefined;
|
|
30
|
+
preserveScroll?: PreserveStateOption | undefined;
|
|
31
|
+
preserveState?: PreserveStateOption | null | undefined;
|
|
32
|
+
only?: string[] | undefined;
|
|
33
|
+
except?: string[] | undefined;
|
|
34
|
+
headers?: Record<string, string> | undefined;
|
|
35
|
+
queryStringArrayFormat?: "brackets" | "indices" | undefined;
|
|
36
|
+
async?: boolean | undefined;
|
|
37
|
+
prefetch?: boolean | LinkPrefetchOption | LinkPrefetchOption[] | undefined;
|
|
38
|
+
cacheFor?: CacheForOption | CacheForOption[] | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
default: {};
|
|
41
|
+
}>, {
|
|
42
|
+
focus: FocusEvent;
|
|
43
|
+
blur: FocusEvent;
|
|
44
|
+
click: MouseEvent;
|
|
45
|
+
dblclick: MouseEvent;
|
|
46
|
+
mousedown: MouseEvent;
|
|
47
|
+
mousemove: MouseEvent;
|
|
48
|
+
mouseout: MouseEvent;
|
|
49
|
+
mouseover: MouseEvent;
|
|
50
|
+
mouseup: MouseEvent;
|
|
51
|
+
'cancel-token': MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | ClipboardEvent | AnimationEvent | InputEvent | CompositionEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
52
|
+
before: MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | ClipboardEvent | AnimationEvent | InputEvent | CompositionEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
53
|
+
start: MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | ClipboardEvent | AnimationEvent | InputEvent | CompositionEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
54
|
+
progress: ProgressEvent<EventTarget>;
|
|
55
|
+
finish: MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | ClipboardEvent | AnimationEvent | InputEvent | CompositionEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
56
|
+
cancel: Event;
|
|
57
|
+
success: MouseEvent | UIEvent | Event | FocusEvent | ProgressEvent<EventTarget> | ClipboardEvent | AnimationEvent | InputEvent | CompositionEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent;
|
|
58
|
+
error: ErrorEvent;
|
|
59
|
+
} & {
|
|
60
|
+
[evt: string]: CustomEvent<any>;
|
|
61
|
+
}, {
|
|
62
|
+
default: {};
|
|
63
|
+
}, {}, string>;
|
|
64
|
+
type Link = InstanceType<typeof Link>;
|
|
65
|
+
export default Link;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script context="module">export const h = (component, propsOrChildren, childrenOrKey, key = null) => {
|
|
1
|
+
<script context="module" lang="ts">export const h = (component, propsOrChildren, childrenOrKey, key = null) => {
|
|
2
2
|
const hasProps = typeof propsOrChildren === "object" && propsOrChildren !== null && !Array.isArray(propsOrChildren);
|
|
3
3
|
return {
|
|
4
4
|
component,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
};
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<script>export let component;
|
|
12
|
+
<script lang="ts">export let component;
|
|
13
13
|
export let props = {};
|
|
14
14
|
export let children = [];
|
|
15
15
|
export let key = null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { PageProps } from 'inertiax-core';
|
|
3
2
|
import type { ComponentType } from 'svelte';
|
|
4
3
|
export type RenderProps = {
|
|
@@ -12,23 +11,26 @@ export type RenderFunction = {
|
|
|
12
11
|
(component: ComponentType, children?: RenderProps[], key?: number | null): RenderProps;
|
|
13
12
|
};
|
|
14
13
|
export declare const h: RenderFunction;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: Props & {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
21
24
|
};
|
|
22
|
-
|
|
23
|
-
[evt: string]: CustomEvent<any>;
|
|
24
|
-
};
|
|
25
|
-
slots: {};
|
|
26
|
-
exports?: {} | undefined;
|
|
27
|
-
bindings?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
type RenderProps_ = typeof __propDef.props;
|
|
30
|
-
export type RenderEvents = typeof __propDef.events;
|
|
31
|
-
export type RenderSlots = typeof __propDef.slots;
|
|
32
|
-
export default class Render extends SvelteComponent<RenderProps_, RenderEvents, RenderSlots> {
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
33
26
|
}
|
|
34
|
-
|
|
27
|
+
declare const Render: $$__sveltets_2_IsomorphicComponent<{
|
|
28
|
+
component: ComponentType;
|
|
29
|
+
props?: PageProps | undefined;
|
|
30
|
+
children?: RenderProps[] | undefined;
|
|
31
|
+
key?: number | null | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
[evt: string]: CustomEvent<any>;
|
|
34
|
+
}, {}, {}, string>;
|
|
35
|
+
type Render = InstanceType<typeof Render>;
|
|
36
|
+
export default Render;
|
|
@@ -1,26 +1,36 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import { type ReloadOptions } from 'inertiax-core';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
10
12
|
};
|
|
11
|
-
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {
|
|
15
|
-
default: {};
|
|
16
|
-
fallback: {};
|
|
17
|
-
};
|
|
18
|
-
exports?: {} | undefined;
|
|
19
|
-
bindings?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
export type WhenVisibleProps = typeof __propDef.props;
|
|
22
|
-
export type WhenVisibleEvents = typeof __propDef.events;
|
|
23
|
-
export type WhenVisibleSlots = typeof __propDef.slots;
|
|
24
|
-
export default class WhenVisible extends SvelteComponent<WhenVisibleProps, WhenVisibleEvents, WhenVisibleSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
25
14
|
}
|
|
26
|
-
|
|
15
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
16
|
+
default: any;
|
|
17
|
+
} ? Props extends Record<string, never> ? any : {
|
|
18
|
+
children?: any;
|
|
19
|
+
} : {});
|
|
20
|
+
declare const WhenVisible: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
21
|
+
data?: string | string[] | undefined;
|
|
22
|
+
params?: ReloadOptions<import("inertiax-core").RequestPayload> | undefined;
|
|
23
|
+
buffer?: number | undefined;
|
|
24
|
+
as?: keyof HTMLElementTagNameMap | undefined;
|
|
25
|
+
always?: boolean | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
default: {};
|
|
28
|
+
fallback: {};
|
|
29
|
+
}>, {
|
|
30
|
+
[evt: string]: CustomEvent<any>;
|
|
31
|
+
}, {
|
|
32
|
+
default: {};
|
|
33
|
+
fallback: {};
|
|
34
|
+
}, {}, string>;
|
|
35
|
+
type WhenVisible = InstanceType<typeof WhenVisible>;
|
|
36
|
+
export default WhenVisible;
|
package/dist/createInertiaApp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Router, setupProgress } from 'inertiax-core';
|
|
2
2
|
import escape from 'html-escape';
|
|
3
|
-
import Frame
|
|
3
|
+
import Frame from './components/Frame.svelte';
|
|
4
4
|
export default async function createInertiaApp({ id = 'app', resolve, setup, progress = {}, page, }) {
|
|
5
5
|
const isServer = typeof window === 'undefined';
|
|
6
6
|
const el = isServer ? null : document.getElementById(id);
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ export { default as Link } from './components/Link.svelte';
|
|
|
4
4
|
export { default as WhenVisible } from './components/WhenVisible.svelte';
|
|
5
5
|
export { default as createInertiaApp } from './createInertiaApp';
|
|
6
6
|
export { default as inertia } from './link';
|
|
7
|
-
export {} from './types';
|
|
8
7
|
export { default as useForm } from './useForm';
|
|
9
8
|
export { default as usePoll } from './usePoll';
|
|
10
9
|
export { default as usePrefetch } from './usePrefetch';
|
package/dist/usePoll.js
CHANGED
package/dist/usePrefetch.d.ts
CHANGED
package/dist/usePrefetch.js
CHANGED
package/dist/useRemember.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inertiax-svelte",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Svelte adapter for Inertia X",
|
|
6
6
|
"contributors": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"svelte": "^5.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"inertiax-core": "^10.2.
|
|
47
|
+
"inertiax-core": "^10.2.2",
|
|
48
48
|
"es-toolkit": "^1.39.5",
|
|
49
49
|
"html-escape": "^2.0.0"
|
|
50
50
|
},
|