@pristy/pristy-libvue 2.16.4 → 2.17.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/{ActivityHistory-xzPcANBj.js → ActivityHistory-BdWRS5sV.js} +2 -2
- package/dist/{ActivityHistory-xzPcANBj.js.map → ActivityHistory-BdWRS5sV.js.map} +1 -1
- package/dist/{BookmarksComponent-BqEC4Gga.js → BookmarksComponent-DemvcE10.js} +2 -2
- package/dist/{BookmarksComponent-BqEC4Gga.js.map → BookmarksComponent-DemvcE10.js.map} +1 -1
- package/dist/{ChartWrapper-DhucHEU4.js → ChartWrapper-BtwzmpkS.js} +2 -2
- package/dist/{ChartWrapper-DhucHEU4.js.map → ChartWrapper-BtwzmpkS.js.map} +1 -1
- package/dist/{DisplayFileInDashboardComponent-CSPAb_VI.js → DisplayFileInDashboardComponent-BHWDFOUi.js} +2 -2
- package/dist/{DisplayFileInDashboardComponent-CSPAb_VI.js.map → DisplayFileInDashboardComponent-BHWDFOUi.js.map} +1 -1
- package/dist/{ExternalApps-B7kTbQpU.js → ExternalApps-CAijJytf.js} +2 -2
- package/dist/{ExternalApps-B7kTbQpU.js.map → ExternalApps-CAijJytf.js.map} +1 -1
- package/dist/{FavoriteList--1f1GGAH.js → FavoriteList-CRzvTs8t.js} +2 -2
- package/dist/{FavoriteList--1f1GGAH.js.map → FavoriteList-CRzvTs8t.js.map} +1 -1
- package/dist/{MarkdownComponent-6zA1QrYC.js → MarkdownComponent-DOlPc8op.js} +2 -2
- package/dist/{MarkdownComponent-6zA1QrYC.js.map → MarkdownComponent-DOlPc8op.js.map} +1 -1
- package/dist/{SearchInput-DzExnLWr.js → SearchInput-BVvFmb7_.js} +2 -2
- package/dist/{SearchInput-DzExnLWr.js.map → SearchInput-BVvFmb7_.js.map} +1 -1
- package/dist/{UnknownBlockType-49mDl7CJ.js → UnknownBlockType-DwEstLka.js} +2 -2
- package/dist/{UnknownBlockType-49mDl7CJ.js.map → UnknownBlockType-DwEstLka.js.map} +1 -1
- package/dist/{index-BJIXYrMg.js → index-CnpqKWu6.js} +6653 -6316
- package/dist/index-CnpqKWu6.js.map +1 -0
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +130 -129
- package/dist/pristy-libvue.umd.js +21 -21
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/src/components/auth/OidcCallback.vue.d.ts +4 -0
- package/dist/src/components/auth/OidcCallback.vue.d.ts.map +1 -0
- package/dist/src/components/layouts/AppLayout.vue.d.ts +3 -3
- package/dist/src/components/layouts/AppSidebar.vue.d.ts +3 -3
- package/dist/src/components/layouts/AppSubmenu.vue.d.ts +7 -3
- package/dist/src/components/layouts/AppSubmenu.vue.d.ts.map +1 -1
- package/dist/src/components/layouts/AppTopbar.vue.d.ts.map +1 -1
- package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts +14 -10
- package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts.map +1 -1
- package/dist/src/components/search/AdvancedViewPanel.vue.d.ts +14 -10
- package/dist/src/components/search/AdvancedViewPanel.vue.d.ts.map +1 -1
- package/dist/src/components/search/SaveViewPopup.vue.d.ts +7 -5
- package/dist/src/components/search/SaveViewPopup.vue.d.ts.map +1 -1
- package/dist/src/composables/useAuth.d.ts.map +1 -1
- package/dist/src/i18n/index.d.ts +10 -0
- package/dist/src/i18n/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/plugins/KeycloakPlugin.d.ts +1 -1
- package/dist/src/plugins/KeycloakPlugin.d.ts.map +1 -1
- package/dist/src/services/WorkflowService.d.ts +13 -11
- package/dist/src/services/WorkflowService.d.ts.map +1 -1
- package/dist/src/services/auth/KeycloakAuthProvider.d.ts +44 -0
- package/dist/src/services/auth/KeycloakAuthProvider.d.ts.map +1 -0
- package/dist/src/services/auth/OidcAuthProvider.d.ts +38 -0
- package/dist/src/services/auth/OidcAuthProvider.d.ts.map +1 -0
- package/dist/src/services/auth/__tests__/FakeAuthProvider.d.ts +32 -0
- package/dist/src/services/auth/__tests__/FakeAuthProvider.d.ts.map +1 -0
- package/dist/src/services/auth/authProvider.d.ts +57 -0
- package/dist/src/services/auth/authProvider.d.ts.map +1 -0
- package/dist/src/services/auth/buildOidcSettings.d.ts +29 -0
- package/dist/src/services/auth/buildOidcSettings.d.ts.map +1 -0
- package/dist/src/stores/config.d.ts +21 -0
- package/dist/src/stores/config.d.ts.map +1 -1
- package/dist/src/stores/user.d.ts +51 -24
- package/dist/src/stores/user.d.ts.map +1 -1
- package/package.json +20 -23
- package/dist/index-BJIXYrMg.js.map +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=OidcCallback.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OidcCallback.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/auth/OidcCallback.vue"],"names":[],"mappings":";AAgCA;"}
|
|
@@ -472,10 +472,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
472
472
|
default: () => any[];
|
|
473
473
|
};
|
|
474
474
|
}>, {
|
|
475
|
-
expandedSections: Ref<
|
|
475
|
+
expandedSections: Ref<{}, {}>;
|
|
476
476
|
isSlimMode: ComputedRef<boolean>;
|
|
477
|
-
isExpanded: (
|
|
478
|
-
toggleSection: (
|
|
477
|
+
isExpanded: (item: any) => boolean;
|
|
478
|
+
toggleSection: (item: any) => void;
|
|
479
479
|
isActive: (item: any) => boolean;
|
|
480
480
|
hasActiveChild: (section: any) => boolean;
|
|
481
481
|
isActiveSection: (item: any) => boolean;
|
|
@@ -116,10 +116,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
116
116
|
default: () => any[];
|
|
117
117
|
};
|
|
118
118
|
}>, {
|
|
119
|
-
expandedSections: Ref<
|
|
119
|
+
expandedSections: Ref<{}, {}>;
|
|
120
120
|
isSlimMode: ComputedRef<boolean>;
|
|
121
|
-
isExpanded: (
|
|
122
|
-
toggleSection: (
|
|
121
|
+
isExpanded: (item: any) => boolean;
|
|
122
|
+
toggleSection: (item: any) => void;
|
|
123
123
|
isActive: (item: any) => boolean;
|
|
124
124
|
hasActiveChild: (section: any) => boolean;
|
|
125
125
|
isActiveSection: (item: any) => boolean;
|
|
@@ -11,16 +11,18 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
11
11
|
* - target: Link target (defaults to '_self' for external URLs)
|
|
12
12
|
* - badge: Optional badge text
|
|
13
13
|
* - items: Array of sub-items (same structure)
|
|
14
|
+
* - defaultExpanded: Open the section until the user collapses it himself
|
|
15
|
+
* - separator: Render a horizontal rule instead of a menu entry
|
|
14
16
|
*/
|
|
15
17
|
items: {
|
|
16
18
|
type: ArrayConstructor;
|
|
17
19
|
default: () => any[];
|
|
18
20
|
};
|
|
19
21
|
}>, {
|
|
20
|
-
expandedSections: Ref<
|
|
22
|
+
expandedSections: Ref<{}, {}>;
|
|
21
23
|
isSlimMode: ComputedRef<boolean>;
|
|
22
|
-
isExpanded: (
|
|
23
|
-
toggleSection: (
|
|
24
|
+
isExpanded: (item: any) => boolean;
|
|
25
|
+
toggleSection: (item: any) => void;
|
|
24
26
|
isActive: (item: any) => boolean;
|
|
25
27
|
hasActiveChild: (section: any) => boolean;
|
|
26
28
|
isActiveSection: (item: any) => boolean;
|
|
@@ -37,6 +39,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
37
39
|
* - target: Link target (defaults to '_self' for external URLs)
|
|
38
40
|
* - badge: Optional badge text
|
|
39
41
|
* - items: Array of sub-items (same structure)
|
|
42
|
+
* - defaultExpanded: Open the section until the user collapses it himself
|
|
43
|
+
* - separator: Render a horizontal rule instead of a menu entry
|
|
40
44
|
*/
|
|
41
45
|
items: {
|
|
42
46
|
type: ArrayConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSubmenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppSubmenu.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AppSubmenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppSubmenu.vue"],"names":[],"mappings":";AAqJA;;IA8kBI;;;;;;;;;;;;;OAaG;;;;;;;;;;;;;;;IAbH;;;;;;;;;;;;;OAaG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppTopbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppTopbar.vue"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AppTopbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/AppTopbar.vue"],"names":[],"mappings":";;;AAiJA;;IAqiBI;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;;;;;;IA7GH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;;OAGG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG"}
|
|
@@ -363,12 +363,14 @@ declare const _default: DefineComponent<{}, {}, {
|
|
|
363
363
|
logout: () => Promise<axios.AxiosResponse<any>>;
|
|
364
364
|
validateSession: () => Promise<{
|
|
365
365
|
id: string;
|
|
366
|
-
}>;
|
|
367
|
-
connectKeycloak: () => Promise<void>;
|
|
368
|
-
|
|
366
|
+
} | undefined>;
|
|
367
|
+
connectKeycloak: (returnTo?: string) => Promise<void>;
|
|
368
|
+
completeLogin: () => Promise<string>;
|
|
369
|
+
accountConsoleUrl: (section: string) => string | null;
|
|
370
|
+
keycloakReady: (provider: any) => Promise<{
|
|
369
371
|
id: string;
|
|
370
|
-
}>;
|
|
371
|
-
getAlfTicket: () => Promise<{
|
|
372
|
+
} | undefined>;
|
|
373
|
+
getAlfTicket: (isRetry?: boolean) => Promise<{
|
|
372
374
|
id: string;
|
|
373
375
|
} | undefined>;
|
|
374
376
|
getPerson: () => Promise<Person>;
|
|
@@ -605,12 +607,14 @@ declare const _default: DefineComponent<{}, {}, {
|
|
|
605
607
|
logout: () => Promise<axios.AxiosResponse<any>>;
|
|
606
608
|
validateSession: () => Promise<{
|
|
607
609
|
id: string;
|
|
608
|
-
}>;
|
|
609
|
-
connectKeycloak: () => Promise<void>;
|
|
610
|
-
|
|
610
|
+
} | undefined>;
|
|
611
|
+
connectKeycloak: (returnTo?: string) => Promise<void>;
|
|
612
|
+
completeLogin: () => Promise<string>;
|
|
613
|
+
accountConsoleUrl: (section: string) => string | null;
|
|
614
|
+
keycloakReady: (provider: any) => Promise<{
|
|
611
615
|
id: string;
|
|
612
|
-
}>;
|
|
613
|
-
getAlfTicket: () => Promise<{
|
|
616
|
+
} | undefined>;
|
|
617
|
+
getAlfTicket: (isRetry?: boolean) => Promise<{
|
|
614
618
|
id: string;
|
|
615
619
|
} | undefined>;
|
|
616
620
|
getPerson: () => Promise<Person>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedSearchPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/AdvancedSearchPanel.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0NA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAseA,
|
|
1
|
+
{"version":3,"file":"AdvancedSearchPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/AdvancedSearchPanel.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0NA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAseA,KAxX4B,CAwX5B,aAxX0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwX1C,KA7OG;;2BA6OH,KA1MgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA0MhB,KAxX4B,CAwX5B,aAxX0C"}
|
|
@@ -484,12 +484,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
484
484
|
logout: () => Promise<axios.AxiosResponse<any>>;
|
|
485
485
|
validateSession: () => Promise<{
|
|
486
486
|
id: string;
|
|
487
|
-
}>;
|
|
488
|
-
connectKeycloak: () => Promise<void>;
|
|
489
|
-
|
|
487
|
+
} | undefined>;
|
|
488
|
+
connectKeycloak: (returnTo?: string) => Promise<void>;
|
|
489
|
+
completeLogin: () => Promise<string>;
|
|
490
|
+
accountConsoleUrl: (section: string) => string | null;
|
|
491
|
+
keycloakReady: (provider: any) => Promise<{
|
|
490
492
|
id: string;
|
|
491
|
-
}>;
|
|
492
|
-
getAlfTicket: () => Promise<{
|
|
493
|
+
} | undefined>;
|
|
494
|
+
getAlfTicket: (isRetry?: boolean) => Promise<{
|
|
493
495
|
id: string;
|
|
494
496
|
} | undefined>;
|
|
495
497
|
getPerson: () => Promise<Person>;
|
|
@@ -736,12 +738,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
736
738
|
logout: () => Promise<axios.AxiosResponse<any>>;
|
|
737
739
|
validateSession: () => Promise<{
|
|
738
740
|
id: string;
|
|
739
|
-
}>;
|
|
740
|
-
connectKeycloak: () => Promise<void>;
|
|
741
|
-
|
|
741
|
+
} | undefined>;
|
|
742
|
+
connectKeycloak: (returnTo?: string) => Promise<void>;
|
|
743
|
+
completeLogin: () => Promise<string>;
|
|
744
|
+
accountConsoleUrl: (section: string) => string | null;
|
|
745
|
+
keycloakReady: (provider: any) => Promise<{
|
|
742
746
|
id: string;
|
|
743
|
-
}>;
|
|
744
|
-
getAlfTicket: () => Promise<{
|
|
747
|
+
} | undefined>;
|
|
748
|
+
getAlfTicket: (isRetry?: boolean) => Promise<{
|
|
745
749
|
id: string;
|
|
746
750
|
} | undefined>;
|
|
747
751
|
getPerson: () => Promise<Person>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedViewPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/AdvancedViewPanel.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4cA;;;;;;;;;;IAqnCI;;;OAGG;;;;;IAKH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyUH;;OAEG;;IAMH;;;;;OAKG;wCAFQ,MAAM,kBACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA/YrB,
|
|
1
|
+
{"version":3,"file":"AdvancedViewPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/AdvancedViewPanel.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4cA;;;;;;;;;;IAqnCI;;;OAGG;;;;;IAKH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyUH;;OAEG;;IAMH;;;;;OAKG;wCAFQ,MAAM,kBACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA/YrB,KAn9Bc,CAm9Bd,aAl9BW;;;;;;;;;;;;;;;;;;;IAqnCP;;;;OAIG;;IAUH;;;;OAIG;;;;;;;;;;;IAtIH;;;OAGG;;;;;IAKH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA1DP,KAn9Bc,CAm9Bd,aAl9BW"}
|
|
@@ -50,12 +50,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
50
50
|
logout: () => Promise<axios.AxiosResponse<any>>;
|
|
51
51
|
validateSession: () => Promise<{
|
|
52
52
|
id: string;
|
|
53
|
-
}>;
|
|
54
|
-
connectKeycloak: () => Promise<void>;
|
|
55
|
-
|
|
53
|
+
} | undefined>;
|
|
54
|
+
connectKeycloak: (returnTo?: string) => Promise<void>;
|
|
55
|
+
completeLogin: () => Promise<string>;
|
|
56
|
+
accountConsoleUrl: (section: string) => string | null;
|
|
57
|
+
keycloakReady: (provider: any) => Promise<{
|
|
56
58
|
id: string;
|
|
57
|
-
}>;
|
|
58
|
-
getAlfTicket: () => Promise<{
|
|
59
|
+
} | undefined>;
|
|
60
|
+
getAlfTicket: (isRetry?: boolean) => Promise<{
|
|
59
61
|
id: string;
|
|
60
62
|
} | undefined>;
|
|
61
63
|
getPerson: () => Promise<Person>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveViewPopup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/SaveViewPopup.vue"],"names":[],"mappings":";;;;;;;;;;;;;;AAgKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA4TA,
|
|
1
|
+
{"version":3,"file":"SaveViewPopup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/search/SaveViewPopup.vue"],"names":[],"mappings":";;;;;;;;;;;;;;AAgKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA4TA,KA7MkC,CA6MlC,aA5MI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../src/composables/useAuth.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../src/composables/useAuth.js"],"names":[],"mappings":"AAqBA;;EAkBC"}
|
package/dist/src/i18n/index.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import { I18n } from 'vue-i18n';
|
|
|
2
2
|
export default i18n;
|
|
3
3
|
declare const i18n: I18n<{
|
|
4
4
|
en: {
|
|
5
|
+
auth: {
|
|
6
|
+
signInProgress: string;
|
|
7
|
+
callbackError: string;
|
|
8
|
+
retrySignIn: string;
|
|
9
|
+
};
|
|
5
10
|
pagination: {
|
|
6
11
|
rowsPerPage: string;
|
|
7
12
|
};
|
|
@@ -1893,6 +1898,11 @@ declare const i18n: I18n<{
|
|
|
1893
1898
|
};
|
|
1894
1899
|
};
|
|
1895
1900
|
fr: {
|
|
1901
|
+
auth: {
|
|
1902
|
+
signInProgress: string;
|
|
1903
|
+
callbackError: string;
|
|
1904
|
+
retrySignIn: string;
|
|
1905
|
+
};
|
|
1896
1906
|
pagination: {
|
|
1897
1907
|
rowsPerPage: string;
|
|
1898
1908
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.js"],"names":[],"mappings":";;AAsBA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.js"],"names":[],"mappings":";;AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAOG"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ export { useFilingPlanStore } from '../stores/filingPlan.js';
|
|
|
141
141
|
export { default as LoginPage } from '../pages/LoginPage.vue';
|
|
142
142
|
export { default as NotFoundPages } from '../pages/NotFoundPages.vue';
|
|
143
143
|
export { default as ErrorPage } from '../pages/ErrorPage.vue';
|
|
144
|
+
export { default as OidcCallback } from '../components/auth/OidcCallback.vue';
|
|
144
145
|
export { useClassificationPlan } from '../composables/useClassificationPlan.js';
|
|
145
146
|
export { useDragDrop } from '../composables/useDragDrop.js';
|
|
146
147
|
export { useGridValidation } from '../composables/useGridValidation.js';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgHE,iCA4EC;;yBA3KsB,sCAAsC;uBACxC,6BAA6B;+BAFrB,gDAAgD;4BAGnD,wCAAwC;yBAC3C,+BAA+B;+BACzB,gDAAgD;+BAChD,gDAAgD;8BACjD,+CAA+C;6BAChD,8CAA8C;4BAC/C,6CAA6C;oCACrC,qDAAqD;4BAC7D,6CAA6C;+BAC1C,gDAAgD;yBACtD,0CAA0C;iCAClC,kDAAkD;wBAC3D,qCAAqC;wBACrC,qCAAqC;wBACrC,qCAAqC;yBACpC,0CAA0C;2BAOxC,4CAA4C;8BACzC,+CAA+C;2BAClD,4CAA4C;yBAC9C,0CAA0C;2BACxC,iCAAiC;4BARhC,kCAAkC;uBASvC,mCAAmC;uBACnC,kCAAkC;+BAC1B,2CAA2C;yBAGjD,+BAA+B;6BAD3B,mCAAmC;yBADvC,+BAA+B;kCAItB,+CAA+C;4BACrD,yCAAyC;6BACxC,0CAA0C;4BAC3C,yCAAyC;yBAC5C,sCAAsC;8BACjC,2CAA2C;8BAC3C,2CAA2C;gCACzC,6CAA6C;8BAC/C,2CAA2C;wBACjD,qCAAqC;6BAChC,0CAA0C;oCACnC,iDAAiD;0BAC3D,uCAAuC;6BACpC,0CAA0C;8BACzC,6CAA6C;6BAC9C,mCAAmC;6BACnC,mCAAmC;wBACxC,qCAAqC;0BAOnC,0CAA0C;0BAC1C,0CAA0C;iCACnC,6CAA6C;qBACzD,iCAAiC;+BATvB,4CAA4C;gCApC3C,4CAA4C;kCAC1C,8CAA8C;2BAErD,uCAAuC;4BACtC,wCAAwC;0BAC1C,sCAAsC;kCAY9B,8CAA8C;2BAoBrD,iCAAiC;sBA8BtC,oCAAoC;uBACnC,qCAAqC;sBACtC,oCAAoC;uBACnC,qCAAqC;sBACtC,oCAAoC;4BAC9B,0CAA0C;kCACpC,gDAAgD;sBAnC5D,iCAAiC;wBAC/B,mCAAmC;sBACrC,iCAAiC;yBAC9B,oCAAoC;+BAO9B,+CAA+C;4BAClD,mDAAmD;+BAChD,+CAA+C;iCAC7C,wDAAwD;6BAC5D,mCAAmC;wCAGxB,6DAA6D;mCAClE,wDAAwD;qCACtD,0DAA0D;oCAC3D,yDAAyD;uBACtE,4CAA4C;sBAC7C,2CAA2C;4BACrC,iDAAiD;4BACjD,iDAAiD;2BAClD,gDAAgD;+BAC5C,oDAAoD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeycloakPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/KeycloakPlugin.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"KeycloakPlugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/KeycloakPlugin.js"],"names":[],"mappings":";;IAwCE,+CAuCC"}
|
|
@@ -6,25 +6,27 @@ export default _default;
|
|
|
6
6
|
* in the Alfresco ECM platform using REST API calls.
|
|
7
7
|
*/
|
|
8
8
|
declare class WorkflowService {
|
|
9
|
-
createProcess(opts: any): Promise< AxiosResponse<any, any, {}>>;
|
|
9
|
+
createProcess(opts: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
10
10
|
getProcesses(): Promise<any>;
|
|
11
11
|
getProcess(processId: any): Promise<any>;
|
|
12
12
|
getFinishedProcesses(): Promise<any>;
|
|
13
|
-
addProcessItems(processId: any, opts: any): Promise< AxiosResponse<any, any, {}>>;
|
|
13
|
+
addProcessItems(processId: any, opts: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
14
14
|
getProcessItems(processId: any): Promise<any>;
|
|
15
|
-
getProcessVariables(processId: any): Promise< AxiosResponse<any, any, {}>>;
|
|
15
|
+
getProcessVariables(processId: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
16
16
|
getProcessDefinition(processDefinitionId: any): Promise<any>;
|
|
17
|
-
cancelWorkflow(processId: any): Promise< AxiosResponse<any, any, {}>>;
|
|
18
|
-
openProcessDiagram(processDefinitionId: any): Promise< AxiosResponse<any, any, {}>>;
|
|
19
|
-
getProcessHistoryTasks(processId: any): Promise< AxiosResponse<any, any, {}>>;
|
|
17
|
+
cancelWorkflow(processId: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
18
|
+
openProcessDiagram(processDefinitionId: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
19
|
+
getProcessHistoryTasks(processId: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
20
20
|
listTasks(): Promise<any[]>;
|
|
21
21
|
listFinishedTasks(): Promise<any[]>;
|
|
22
22
|
getTask(taskId: any): Promise<any>;
|
|
23
|
-
endTask(taskId: any): Promise< AxiosResponse<any,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
endTask(taskId: any): Promise< AxiosResponse<any, {
|
|
24
|
+
state: string;
|
|
25
|
+
}, {}, any>>;
|
|
26
|
+
getTaskVariables(taskId: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
27
|
+
postTaskVariables(taskId: any, variables: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
28
|
+
updateTaskVariables(taskId: any, variables: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
29
|
+
getTaskItem(taskId: any): Promise< AxiosResponse<any, any, {}, any>>;
|
|
28
30
|
getSeverityFromPriotity(priority: any): "danger" | "success" | "info" | "warning";
|
|
29
31
|
formatDate(value: any): string;
|
|
30
32
|
formatDateWithHour(dateString: any): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowService.d.ts","sourceRoot":"","sources":["../../../src/services/WorkflowService.js"],"names":[],"mappings":";;;AAwBA;;;GAGG;AACH;IAEE
|
|
1
|
+
{"version":3,"file":"WorkflowService.d.ts","sourceRoot":"","sources":["../../../src/services/WorkflowService.js"],"names":[],"mappings":";;;AAwBA;;;GAGG;AACH;IAEE,oFAaC;IAED,6BAkBC;IAED,yCAkBC;IAED,qCAkBC;IAED,sGAaC;IAED,8CAkBC;IAED,+FAeC;IAED,6DAkBC;IACD,0FAeC;IACD,wGAgBC;IAED,kGAeC;IAGD,4BAwBC;IACD,oCAsBC;IAED,mCAkBC;IAED;;iBAiBC;IAED,yFAeC;IAED,0GAaC;IAED,4GAcC;IAED,oFAeC;IAGD,kFAWC;IAED,+BAIC;IAED,4CA4BC;IAED,oCAOC;IAED,+BAkBC;IAED,8CAUC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { default as Keycloak } from 'keycloak-js';
|
|
2
|
+
/**
|
|
3
|
+
* AuthProvider backed by keycloak-js. Reproduces the behaviour Pristy shipped
|
|
4
|
+
* before the migration, including the 10 s `updateToken` poll, so enabling the
|
|
5
|
+
* façade changes nothing in production. Deleted once every instance runs on
|
|
6
|
+
* `OIDC_CLIENT=oidc-client-ts`.
|
|
7
|
+
*/
|
|
8
|
+
export class KeycloakAuthProvider {
|
|
9
|
+
/**
|
|
10
|
+
* @param {Object} config the ConfigStore
|
|
11
|
+
* @param {Object} init merged legacy keycloak-js options
|
|
12
|
+
*/
|
|
13
|
+
constructor(config: any, init: any);
|
|
14
|
+
initOptions: any;
|
|
15
|
+
usernameClaim: any;
|
|
16
|
+
accountUrls: any;
|
|
17
|
+
keycloak: Keycloak;
|
|
18
|
+
renewInterval: number;
|
|
19
|
+
tokenRenewedCallbacks: any[];
|
|
20
|
+
sessionLostCallbacks: any[];
|
|
21
|
+
init(): Promise<void>;
|
|
22
|
+
isAuthenticated(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* keycloak-js returns to `location.href`, so `returnTo` cannot be honoured
|
|
25
|
+
* here. Kept in the signature for contract parity with OidcAuthProvider.
|
|
26
|
+
* @param {string} [returnTo] ignored
|
|
27
|
+
*/
|
|
28
|
+
login(returnTo?: string): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* keycloak-js consumes the redirect inside `init()`, so there is nothing left
|
|
31
|
+
* to complete. Returns the site root for contract parity.
|
|
32
|
+
* @returns {Promise<string>}
|
|
33
|
+
*/
|
|
34
|
+
completeLogin(): Promise<string>;
|
|
35
|
+
logout(): Promise<void>;
|
|
36
|
+
getAccessToken(): string;
|
|
37
|
+
getUsername(): any;
|
|
38
|
+
getAccountConsoleUrl(section: any): any;
|
|
39
|
+
onTokenRenewed(callback: any): void;
|
|
40
|
+
onSessionLost(callback: any): void;
|
|
41
|
+
notifyTokenRenewed(): void;
|
|
42
|
+
notifySessionLost(): void;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=KeycloakAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeycloakAuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/services/auth/KeycloakAuthProvider.js"],"names":[],"mappings":"AAyBA;;;;;GAKG;AACH;IACE;;;OAGG;IACH,oCAQC;IAPC,iBAAuB;IACvB,mBAAuE;IACvE,iBAAiD;IACjD,mBAAkC;IAClC,sBAAyB;IACzB,6BAA+B;IAC/B,4BAA8B;IAGhC,sBA2BC;IAED,2BAEC;IAED;;;;OAIG;IAEH,iBAHW,MAAM,iBAKhB;IAED;;;;OAIG;IACH,iBAFa,OAAO,CAAC,MAAM,CAAC,CAI3B;IAED,wBAEC;IAED,yBAEC;IAED,mBAEC;IAED,wCAUC;IAED,oCAEC;IAED,mCAEC;IAED,2BAIC;IAED,0BAIC;CACF;qBA5HoB,aAAa"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { User, UserManager } from 'oidc-client-ts';
|
|
2
|
+
/**
|
|
3
|
+
* AuthProvider backed by oidc-client-ts. Authorization code + PKCE for every
|
|
4
|
+
* OP, with renewal driven by `automaticSilentRenew` events rather than the
|
|
5
|
+
* hand-rolled pollers this replaces.
|
|
6
|
+
*/
|
|
7
|
+
export class OidcAuthProvider {
|
|
8
|
+
/**
|
|
9
|
+
* @param {Object} config the ConfigStore
|
|
10
|
+
* @param {Object} init merged legacy keycloak-js options
|
|
11
|
+
*/
|
|
12
|
+
constructor(config: any, init: any);
|
|
13
|
+
settings: any;
|
|
14
|
+
usernameClaim: any;
|
|
15
|
+
accountUrls: any;
|
|
16
|
+
user: User;
|
|
17
|
+
tokenRenewedCallbacks: any[];
|
|
18
|
+
sessionLostCallbacks: any[];
|
|
19
|
+
userManager: UserManager;
|
|
20
|
+
init(): Promise<void>;
|
|
21
|
+
isAuthenticated(): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @param {string} [returnTo] in-app path to come back to; defaults to the
|
|
24
|
+
* current location so a refresh mid-session lands where the user was
|
|
25
|
+
*/
|
|
26
|
+
login(returnTo?: string): Promise<void>;
|
|
27
|
+
/** @returns {Promise<string>} the in-app path to navigate to */
|
|
28
|
+
completeLogin(): Promise<string>;
|
|
29
|
+
logout(): Promise<void>;
|
|
30
|
+
getAccessToken(): string;
|
|
31
|
+
getUsername(): unknown;
|
|
32
|
+
getAccountConsoleUrl(section: any): any;
|
|
33
|
+
onTokenRenewed(callback: any): void;
|
|
34
|
+
onSessionLost(callback: any): void;
|
|
35
|
+
notifyTokenRenewed(): void;
|
|
36
|
+
notifySessionLost(): void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=OidcAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OidcAuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/services/auth/OidcAuthProvider.js"],"names":[],"mappings":"AA6BA;;;;GAIG;AACH;IACE;;;OAGG;IACH,oCAoCC;IAnCC,cAGE;IACF,mBAAuE;IACvE,iBAAiD;IACjD,oCAAgB;IAChB,6BAA+B;IAC/B,4BAA8B;IAE9B,yBAGE;IAwBJ,sBAEC;IAED,2BAEC;IAED;;;OAGG;IACH,iBAHW,MAAM,iBAOhB;IAED,gEAAgE;IAChE,iBADc,OAAO,CAAC,MAAM,CAAC,CAK5B;IAED,wBAEC;IAED,yBAEC;IAED,uBAEC;IAED,wCAUC;IAED,oCAEC;IAED,mCAEC;IAED,2BAIC;IAED,0BAIC;CACF;4BAhIiD,gBAAgB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In-memory AuthProvider used by store and component tests. Records calls and
|
|
3
|
+
* lets a test fire the provider events synchronously.
|
|
4
|
+
*/
|
|
5
|
+
export class FakeAuthProvider {
|
|
6
|
+
constructor(overrides?: {});
|
|
7
|
+
authenticated: any;
|
|
8
|
+
accessToken: any;
|
|
9
|
+
username: any;
|
|
10
|
+
accountUrls: any;
|
|
11
|
+
returnTo: any;
|
|
12
|
+
completeLoginError: any;
|
|
13
|
+
initCalls: number;
|
|
14
|
+
loginCalls: any[];
|
|
15
|
+
logoutCalls: number;
|
|
16
|
+
completeLoginCalls: number;
|
|
17
|
+
tokenRenewedCallbacks: any[];
|
|
18
|
+
sessionLostCallbacks: any[];
|
|
19
|
+
init(): Promise<void>;
|
|
20
|
+
isAuthenticated(): any;
|
|
21
|
+
login(returnTo: any): Promise<void>;
|
|
22
|
+
completeLogin(): Promise<any>;
|
|
23
|
+
logout(): Promise<void>;
|
|
24
|
+
getAccessToken(): any;
|
|
25
|
+
getUsername(): any;
|
|
26
|
+
getAccountConsoleUrl(section: any): any;
|
|
27
|
+
onTokenRenewed(callback: any): void;
|
|
28
|
+
onSessionLost(callback: any): void;
|
|
29
|
+
emitTokenRenewed(): void;
|
|
30
|
+
emitSessionLost(): void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=FakeAuthProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FakeAuthProvider.d.ts","sourceRoot":"","sources":["../../../../../src/services/auth/__tests__/FakeAuthProvider.js"],"names":[],"mappings":"AAiBA;;;GAGG;AACH;IACE,4BAcC;IAbC,mBAAoD;IACpD,iBAA+D;IAC/D,cAA4C;IAC5C,iBAA8C;IAC9C,cAAyC;IACzC,wBAA8D;IAE9D,kBAAkB;IAClB,kBAAoB;IACpB,oBAAoB;IACpB,2BAA2B;IAC3B,6BAA+B;IAC/B,4BAA8B;IAGhC,sBAEC;IAED,uBAEC;IAED,oCAEC;IAED,8BAMC;IAED,wBAEC;IAED,sBAEC;IAED,mBAEC;IAED,wCAEC;IAED,oCAEC;IAED,mCAEC;IAED,yBAIC;IAED,wBAIC;CACF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select the implementation. The default stays keycloak-js until an instance has
|
|
3
|
+
* been validated on oidc-client-ts, so installing the façade changes nothing in
|
|
4
|
+
* production. Any unrecognised value falls back to keycloak-js on purpose: a
|
|
5
|
+
* configuration typo must not switch a production instance.
|
|
6
|
+
*
|
|
7
|
+
* @param {Object} config the ConfigStore
|
|
8
|
+
* @param {Object} init merged legacy keycloak-js options
|
|
9
|
+
* @returns {AuthProvider}
|
|
10
|
+
*/
|
|
11
|
+
export function createAuthProvider(config: any, init: any): AuthProvider;
|
|
12
|
+
/**
|
|
13
|
+
* @param {AuthProvider} provider
|
|
14
|
+
* @param {Promise<void>} [ready] resolves once `init()` has settled
|
|
15
|
+
*/
|
|
16
|
+
export function setAuthProvider(provider: AuthProvider, ready?: Promise<void>): void;
|
|
17
|
+
/** @returns {AuthProvider|null} */
|
|
18
|
+
export function getAuthProvider(): AuthProvider | null;
|
|
19
|
+
/** @returns {Promise<void>} */
|
|
20
|
+
export function whenAuthReady(): Promise<void>;
|
|
21
|
+
/** Test helper: forget the installed provider. */
|
|
22
|
+
export function resetAuthProvider(): void;
|
|
23
|
+
/**
|
|
24
|
+
* The authentication façade. Implementations must never be stored in Pinia
|
|
25
|
+
* state: Pinia makes state deeply reactive, and proxying a class that owns
|
|
26
|
+
* timers and event subscriptions breaks object identity and leaks listeners.
|
|
27
|
+
* That is why the instance lives in this module instead.
|
|
28
|
+
*/
|
|
29
|
+
export type AuthProvider = {
|
|
30
|
+
/**
|
|
31
|
+
* restore a session from storage
|
|
32
|
+
*/
|
|
33
|
+
init: () => Promise<void>;
|
|
34
|
+
isAuthenticated: () => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* redirects to the IdP
|
|
37
|
+
*/
|
|
38
|
+
login: (returnTo?: string) => Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* consumes the IdP redirect and
|
|
41
|
+
* returns the in-app path to navigate to
|
|
42
|
+
*/
|
|
43
|
+
completeLogin: () => Promise<string>;
|
|
44
|
+
logout: () => Promise<void>;
|
|
45
|
+
getAccessToken: () => string | null;
|
|
46
|
+
getUsername: () => string | null;
|
|
47
|
+
getAccountConsoleUrl: (section: string) => string | null;
|
|
48
|
+
/**
|
|
49
|
+
* appends a subscriber
|
|
50
|
+
*/
|
|
51
|
+
onTokenRenewed: (cb: () => void) => void;
|
|
52
|
+
/**
|
|
53
|
+
* appends a subscriber
|
|
54
|
+
*/
|
|
55
|
+
onSessionLost: (cb: () => void) => void;
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=authProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authProvider.d.ts","sourceRoot":"","sources":["../../../../src/services/auth/authProvider.js"],"names":[],"mappings":"AA2CA;;;;;;;;;GASG;AACH,4DAFa,YAAY,CAOxB;AAED;;;GAGG;AACH,0CAHW,YAAY,UACZ,OAAO,CAAC,IAAI,CAAC,QAKvB;AAED,mCAAmC;AACnC,mCADc,YAAY,GAAC,IAAI,CAG9B;AAED,+BAA+B;AAC/B,iCADc,OAAO,CAAC,IAAI,CAAC,CAG1B;AAED,kDAAkD;AAClD,0CAGC;;;;;;;;;;;UAxDa,MAAM,OAAO,CAAC,IAAI,CAAC;qBACnB,MAAM,OAAO;;;;WACb,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;;;;;mBACpC,MAAM,OAAO,CAAC,MAAM,CAAC;YAErB,MAAM,OAAO,CAAC,IAAI,CAAC;oBACnB,MAAM,MAAM,GAAC,IAAI;iBACjB,MAAM,MAAM,GAAC,IAAI;0BACjB,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAC,IAAI;;;;oBAChC,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,IAAI;;;;mBACxB,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,IAAI"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translate the legacy keycloak-js configuration into oidc-client-ts settings.
|
|
3
|
+
*
|
|
4
|
+
* This function is the whole backward-compatibility layer of the migration:
|
|
5
|
+
* every configuration shape that exists in a deployed `env-config.json` must
|
|
6
|
+
* keep working here. It is deliberately pure — no globals, no I/O — so it can
|
|
7
|
+
* be table-tested, following the same rule as `collabProtocol.js`.
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} init merged legacy options, i.e.
|
|
10
|
+
* `{ ...config.oidc.init, ...config.OIDC_CUSTOM }`
|
|
11
|
+
* @param {Object} env
|
|
12
|
+
* @param {string} env.baseUrl the application base path, e.g. "/espaces/"
|
|
13
|
+
* @param {string} env.origin `window.location.origin`
|
|
14
|
+
* @returns {Object} settings accepted by `UserManager`
|
|
15
|
+
*/
|
|
16
|
+
export function buildOidcSettings(init: any, { baseUrl, origin }: {
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
origin: string;
|
|
19
|
+
}): any;
|
|
20
|
+
/**
|
|
21
|
+
* Normalise a `ConfigStore.BASE_URL` value into a root-relative path with a
|
|
22
|
+
* trailing slash, defaulting to "/" when missing. Exported so callers that
|
|
23
|
+
* build URLs under the same base (e.g. `OidcCallback.retry()`) stay in sync
|
|
24
|
+
* with the redirect URIs computed here.
|
|
25
|
+
* @param {string} [baseUrl]
|
|
26
|
+
* @returns {string}
|
|
27
|
+
*/
|
|
28
|
+
export function normaliseBase(baseUrl?: string): string;
|
|
29
|
+
//# sourceMappingURL=buildOidcSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildOidcSettings.d.ts","sourceRoot":"","sources":["../../../../src/services/auth/buildOidcSettings.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;GAcG;AACH,kEAJG;IAAoB,OAAO,EAAnB,MAAM;IACM,MAAM,EAAlB,MAAM;CACd,OA4CF;AAoBD;;;;;;;GAOG;AACH,wCAHW,MAAM,GACJ,MAAM,CAKlB"}
|
|
@@ -38,6 +38,9 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
|
|
|
38
38
|
OIDC_PROVIDER: string;
|
|
39
39
|
OIDC_CUSTOM: {};
|
|
40
40
|
OIDC_RESPONSE_TYPE: string;
|
|
41
|
+
OIDC_CLIENT: string;
|
|
42
|
+
OIDC_USERNAME_CLAIM: string;
|
|
43
|
+
OIDC_ACCOUNT_URLS: {};
|
|
41
44
|
OPEN_PDF_WITH_COLLABORA: boolean;
|
|
42
45
|
primeConfig: {
|
|
43
46
|
ripple: boolean;
|
|
@@ -135,6 +138,9 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
|
|
|
135
138
|
OIDC_PROVIDER: string;
|
|
136
139
|
OIDC_CUSTOM: {};
|
|
137
140
|
OIDC_RESPONSE_TYPE: string;
|
|
141
|
+
OIDC_CLIENT: string;
|
|
142
|
+
OIDC_USERNAME_CLAIM: string;
|
|
143
|
+
OIDC_ACCOUNT_URLS: {};
|
|
138
144
|
OPEN_PDF_WITH_COLLABORA: boolean;
|
|
139
145
|
primeConfig: {
|
|
140
146
|
ripple: boolean;
|
|
@@ -231,6 +237,9 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
|
|
|
231
237
|
OIDC_PROVIDER: string;
|
|
232
238
|
OIDC_CUSTOM: {};
|
|
233
239
|
OIDC_RESPONSE_TYPE: string;
|
|
240
|
+
OIDC_CLIENT: string;
|
|
241
|
+
OIDC_USERNAME_CLAIM: string;
|
|
242
|
+
OIDC_ACCOUNT_URLS: {};
|
|
234
243
|
OPEN_PDF_WITH_COLLABORA: boolean;
|
|
235
244
|
primeConfig: {
|
|
236
245
|
ripple: boolean;
|
|
@@ -297,6 +306,18 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
|
|
|
297
306
|
} | {
|
|
298
307
|
init?: undefined;
|
|
299
308
|
};
|
|
309
|
+
/**
|
|
310
|
+
* True when authentication is delegated to an OpenID Connect provider.
|
|
311
|
+
*
|
|
312
|
+
* Applications must branch on this rather than enumerating `AUTH` values:
|
|
313
|
+
* the mode list belongs here, once per library, instead of being duplicated
|
|
314
|
+
* in every application router. Omitting a mode in one of those copies is how
|
|
315
|
+
* `azuread` silently stopped redirecting to the IdP.
|
|
316
|
+
*
|
|
317
|
+
* @param {Object} state
|
|
318
|
+
* @returns {boolean}
|
|
319
|
+
*/
|
|
320
|
+
isOidcAuth: (state: any) => boolean;
|
|
300
321
|
}, {
|
|
301
322
|
setInstanceName(name: any): void;
|
|
302
323
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/stores/config.js"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmMI;;;;;;;;;;OAUG;gCADU,OAAO;;;IASpB;;OAEG;;IAkBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GAiC1B"}
|