@forgerock/login-widget 2.0.0 → 2.2.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.
- package/README.md +170 -11
- package/dist/core/journey/journey.interfaces.d.ts +3 -0
- package/dist/core/locale.store.d.ts +3 -0
- package/dist/core/oauth/oauth.store.d.ts +8 -3
- package/dist/core/oidc/oidc.store.d.ts +16 -3
- package/dist/core/style.store.d.ts +166 -6
- package/dist/index.d.ts +42 -22
- package/dist/index.js +14524 -12305
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +5 -1
- package/dist/signals-sdk-DbtqPU1J.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types.d.ts +24 -8
- package/dist/widget.config.d.ts +36 -0
- package/dist/widget.css +1 -1
- package/dist/widget.iife.js +80 -62
- package/dist/widget.iife.js.map +1 -1
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,46 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
import './main.css';
|
|
3
2
|
export declare const configure: (options: import("./interfaces").WidgetConfigOptions) => Promise<void>;
|
|
4
3
|
export declare const journey: (options?: import("./interfaces").JourneyOptions) => {
|
|
5
4
|
change: (changeOptions: import("./interfaces").JourneyOptionsChange) => Promise<unknown>;
|
|
6
5
|
start: (startOptions?: import("./interfaces").JourneyOptionsStart) => Promise<unknown>;
|
|
7
|
-
subscribe:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
subscribe: {
|
|
7
|
+
(this: void, run: import("svelte/store").Subscriber<{
|
|
8
|
+
journey: import("./core/journey/journey.interfaces").JourneyStoreValue;
|
|
9
|
+
oauth: import("./core/oauth/oauth.store").OAuthTokenStoreValue;
|
|
10
|
+
user: import("./core/user/user.store").UserStoreValue;
|
|
11
|
+
}>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
12
|
+
(this: void, run: import("svelte/store").Subscriber<{
|
|
13
|
+
journey: import("./core/journey/journey.interfaces").JourneyStoreValue;
|
|
14
|
+
oauth: import("./core/oauth/oauth.store").OAuthTokenStoreValue;
|
|
15
|
+
user: import("./core/user/user.store").UserStoreValue;
|
|
16
|
+
}>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
17
|
+
};
|
|
12
18
|
};
|
|
13
19
|
export declare const component: () => {
|
|
14
20
|
close: (args?: {
|
|
15
21
|
reason: "auto" | "external" | "user";
|
|
16
22
|
}) => void;
|
|
17
23
|
open: () => void;
|
|
18
|
-
subscribe:
|
|
24
|
+
subscribe: {
|
|
25
|
+
(this: void, run: import("svelte/store").Subscriber<Pick<import("./core/component.store").ComponentStoreValue, "open" | "lastAction" | "error" | "mounted" | "reason">>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
26
|
+
(this: void, run: import("svelte/store").Subscriber<Pick<import("./core/component.store").ComponentStoreValue, "open" | "lastAction" | "error" | "mounted" | "reason">>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
27
|
+
};
|
|
19
28
|
};
|
|
20
29
|
export declare const user: {
|
|
21
30
|
info(): {
|
|
22
31
|
get: () => Promise<import("./core/user/user.store").UserStoreValue>;
|
|
23
|
-
subscribe:
|
|
32
|
+
subscribe: {
|
|
33
|
+
(this: void, run: import("svelte/store").Subscriber<import("./core/user/user.store").UserStoreValue>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
34
|
+
(this: void, run: import("svelte/store").Subscriber<import("./core/user/user.store").UserStoreValue>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
35
|
+
};
|
|
24
36
|
};
|
|
25
37
|
logout(): Promise<void>;
|
|
26
38
|
tokens(): {
|
|
27
39
|
get: (options?: import("@forgerock/oidc-client").GetTokensOptions) => Promise<import("./core/oauth/oauth.store").OAuthTokenStoreValue>;
|
|
28
|
-
subscribe:
|
|
40
|
+
subscribe: {
|
|
41
|
+
(this: void, run: import("svelte/store").Subscriber<import("./core/oauth/oauth.store").OAuthTokenStoreValue>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
42
|
+
(this: void, run: import("svelte/store").Subscriber<import("./core/oauth/oauth.store").OAuthTokenStoreValue>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
43
|
+
};
|
|
29
44
|
};
|
|
30
45
|
};
|
|
31
46
|
export declare const protect: {
|
|
@@ -42,18 +57,23 @@ export declare const protect: {
|
|
|
42
57
|
error: string;
|
|
43
58
|
};
|
|
44
59
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
60
|
+
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> {
|
|
61
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
62
|
+
$$bindings?: Bindings;
|
|
63
|
+
} & Exports;
|
|
64
|
+
(internal: unknown, props: Props & {
|
|
65
|
+
$$events?: Events;
|
|
66
|
+
$$slots?: Slots;
|
|
67
|
+
}): Exports & {
|
|
68
|
+
$set?: any;
|
|
69
|
+
$on?: any;
|
|
48
70
|
};
|
|
49
|
-
|
|
50
|
-
[evt: string]: CustomEvent<any>;
|
|
51
|
-
};
|
|
52
|
-
slots: {};
|
|
53
|
-
};
|
|
54
|
-
export type IndexProps = typeof __propDef.props;
|
|
55
|
-
export type IndexEvents = typeof __propDef.events;
|
|
56
|
-
export type IndexSlots = typeof __propDef.slots;
|
|
57
|
-
export default class Index extends SvelteComponentTyped<IndexProps, IndexEvents, IndexSlots> {
|
|
71
|
+
z_$$bindings?: Bindings;
|
|
58
72
|
}
|
|
59
|
-
|
|
73
|
+
declare const Index: $$__sveltets_2_IsomorphicComponent<{
|
|
74
|
+
type?: "modal" | "inline";
|
|
75
|
+
}, {
|
|
76
|
+
[evt: string]: CustomEvent<any>;
|
|
77
|
+
}, {}, {}, string>;
|
|
78
|
+
type Index = InstanceType<typeof Index>;
|
|
79
|
+
export default Index;
|