@vc-shell/framework 1.0.300 → 1.0.302
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/CHANGELOG.md +8 -0
- package/dist/{azuread-36Jpmrhw.js → azuread-Dzi20Xrf.js} +2 -2
- package/dist/{external-provider-C8gSyvJw.js → external-provider-ClU86S_R.js} +1 -1
- package/dist/{external-provider.vue_vue_type_script_setup_true_lang-i8UevzqR.js → external-provider.vue_vue_type_script_setup_true_lang-BI9iYCrd.js} +1 -1
- package/dist/external-providers-VcEUSa0J.js +4 -0
- package/dist/framework.js +1 -1
- package/dist/{index-brymheD-.js → index-BnhH2X-G.js} +1356 -1351
- package/dist/index.css +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/sign-in/useExternalProvider.ts +29 -22
- package/shared/components/theme-selector/theme-selector.vue +7 -0
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +1 -1
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +1 -1
- package/dist/external-providers-B0oU_R3n.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExternalProvider.d.ts","sourceRoot":"","sources":["../../../../shared/components/sign-in/useExternalProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAwB,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE9F,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,GAAG,CAAC;QAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC,CAAC;IACpD,MAAM,EAAE,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,CAAC,kBAAkB,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,YAAY,EAAE,MAAM,OAAO,CAAC,0BAA0B,EAAE,GAAG,SAAS,CAAC,CAAC;CACvE;AAID,eAAO,MAAM,mBAAmB,QAAO,
|
|
1
|
+
{"version":3,"file":"useExternalProvider.d.ts","sourceRoot":"","sources":["../../../../shared/components/sign-in/useExternalProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAwB,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE9F,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,GAAG,CAAC;QAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC,CAAC;IACpD,MAAM,EAAE,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,CAAC,kBAAkB,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,YAAY,EAAE,MAAM,OAAO,CAAC,0BAA0B,EAAE,GAAG,SAAS,CAAC,CAAC;CACvE;AAID,eAAO,MAAM,mBAAmB,QAAO,oBAuFtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-selector.vue.d.ts","sourceRoot":"","sources":["../../../../shared/components/theme-selector/theme-selector.vue.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"theme-selector.vue.d.ts","sourceRoot":"","sources":["../../../../shared/components/theme-selector/theme-selector.vue.ts"],"names":[],"mappings":";AAsJA,wBAKG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.302",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/dompurify": "^3.0.5",
|
|
63
63
|
"@types/quill": "^2.0.14",
|
|
64
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
65
|
-
"@vc-shell/config-generator": "^1.0.
|
|
66
|
-
"@vc-shell/ts-config": "^1.0.
|
|
64
|
+
"@vc-shell/api-client-generator": "^1.0.302",
|
|
65
|
+
"@vc-shell/config-generator": "^1.0.302",
|
|
66
|
+
"@vc-shell/ts-config": "^1.0.302",
|
|
67
67
|
"@vitejs/plugin-vue": "5.0.3",
|
|
68
68
|
"cypress-signalr-mock": "^1.5.0",
|
|
69
69
|
"sass": "^1.69.6",
|
|
@@ -29,44 +29,51 @@ export const useExternalProvider = (): IUseExternalProvider => {
|
|
|
29
29
|
|
|
30
30
|
async function externalSignIn(authenticationType: string, oidcUrl: string) {
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
const
|
|
32
|
+
const origin = window.location.origin;
|
|
33
|
+
const finalReturnUrl = window.location.pathname ?? getReturnUrlValue() ?? "/";
|
|
34
|
+
|
|
35
|
+
if (!authenticationType) {
|
|
36
|
+
throw new Error("The parameter 'authenticationType' cannot be null or undefined.");
|
|
37
|
+
}
|
|
34
38
|
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
// const oidcUrlObject = new URL(oidcUrl, origin);
|
|
40
|
+
// const callbackUrl = new URL("/auth/callback", origin);
|
|
41
|
+
const url = new URL("/externalsignin", origin);
|
|
38
42
|
|
|
39
|
-
|
|
43
|
+
// Set query parameters
|
|
44
|
+
// callbackUrl.searchParams.set("returnUrl", finalReturnUrl);
|
|
45
|
+
url.searchParams.set("authenticationType", authenticationType);
|
|
46
|
+
// url.searchParams.set("callbackUrl", callbackUrl.href);
|
|
47
|
+
url.searchParams.set("returnUrl", finalReturnUrl);
|
|
40
48
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (authenticationType !== undefined)
|
|
44
|
-
url_ += "authenticationType=" + encodeURIComponent("" + authenticationType) + "&";
|
|
45
|
-
if (returnUrl !== undefined) url_ += "returnUrl=" + encodeURIComponent("" + returnUrl) + "&";
|
|
46
|
-
}
|
|
47
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
49
|
+
// Store sign-in data
|
|
50
|
+
externalSignInStorage.value = { providerType: authenticationType };
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
console.log("url", url);
|
|
53
|
+
// Redirect to the constructed URL
|
|
54
|
+
window.location.assign(url);
|
|
50
55
|
} catch (e) {
|
|
51
56
|
console.error(e);
|
|
52
|
-
|
|
53
57
|
throw e;
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
async function externalSignOut(authenticationType: string): Promise<void> {
|
|
58
62
|
try {
|
|
59
|
-
|
|
63
|
+
const origin = window.location.origin;
|
|
64
|
+
const returnUrl = window.location.pathname ?? "/";
|
|
60
65
|
|
|
61
|
-
|
|
62
|
-
url_ += "authenticationType=" + encodeURIComponent("" + authenticationType) + "&";
|
|
63
|
-
if (window.location.pathname !== undefined)
|
|
64
|
-
url_ += "returnUrl=" + encodeURIComponent("" + window.location.pathname) + "&";
|
|
66
|
+
const url = new URL("/externalsignin/signout", origin);
|
|
65
67
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
// Set query parameters
|
|
69
|
+
url.searchParams.set("authenticationType", authenticationType);
|
|
70
|
+
url.searchParams.set("returnUrl", returnUrl);
|
|
68
71
|
|
|
72
|
+
// Clear sign-in data
|
|
69
73
|
externalSignInStorage.value = {};
|
|
74
|
+
|
|
75
|
+
// Redirect to the sign-out URL
|
|
76
|
+
window.location.assign(url);
|
|
70
77
|
} catch (e) {
|
|
71
78
|
console.error(e);
|
|
72
79
|
throw e;
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
<div
|
|
16
16
|
v-if="opened"
|
|
17
17
|
class="vc-theme-selector__dropdown"
|
|
18
|
+
:class="{
|
|
19
|
+
'vc-theme-selector__dropdown--mobile': $isMobile.value,
|
|
20
|
+
}"
|
|
18
21
|
>
|
|
19
22
|
<div
|
|
20
23
|
v-for="(theme, i) in themes"
|
|
@@ -74,6 +77,10 @@ const themeText = computed(() => {
|
|
|
74
77
|
.vc-theme-selector {
|
|
75
78
|
&__dropdown {
|
|
76
79
|
@apply tw-bg-[color:var(--theme-selector-bg-color)] tw-min-w-20 tw-max-w-max;
|
|
80
|
+
|
|
81
|
+
&--mobile {
|
|
82
|
+
@apply tw-min-w-full tw-max-w-full;
|
|
83
|
+
}
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
&__item {
|
|
@@ -86,7 +86,7 @@ watch(isOutside, (outside) => {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
&__content {
|
|
89
|
-
@apply tw-absolute tw-z-[
|
|
89
|
+
@apply tw-absolute tw-z-[1001] tw-bg-[color:var(--tooltip-background-color)] tw-border tw-border-solid tw-border-[color:var(--tooltip-border-color)] tw-shadow-lg tw-rounded tw-text-[color:var(--tooltip-text-color)] tw-font-normal tw-py-1 tw-px-2;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
</style>
|
|
@@ -131,7 +131,7 @@ watchDebounced(
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.vc-app-bar {
|
|
134
|
-
@apply tw-relative tw-flex tw-items-center tw-justify-between tw-px-4
|
|
134
|
+
@apply tw-relative tw-flex tw-items-center tw-justify-between tw-px-4;
|
|
135
135
|
height: var(--app-bar-height);
|
|
136
136
|
background-color: var(--app-bar-background-color);
|
|
137
137
|
box-shadow: var(--app-bar-shadow);
|
|
@@ -175,7 +175,7 @@ defineExpose({
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.vc-app-menu {
|
|
178
|
-
@apply tw-relative tw-w-[var(--app-menu-width)] tw-pt-6 -tw-mr-2 [transition:width_300ms_cubic-bezier(0.2,0,0,1)_0s];
|
|
178
|
+
@apply tw-relative tw-w-[var(--app-menu-width)] tw-pt-6 -tw-mr-2 [transition:width_300ms_cubic-bezier(0.2,0,0,1)_0s] tw-z-[1001];
|
|
179
179
|
|
|
180
180
|
&.vc-app-menu--mobile {
|
|
181
181
|
@apply tw-hidden tw-h-full tw-w-full #{!important};
|