@vc-shell/framework 1.0.324 → 1.0.325
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 +9 -0
- package/dist/{clike-DxjBFHnq.js → clike-l4mx49Q1.js} +19 -17
- package/dist/framework.js +17 -17
- package/dist/{groovy-CdgvOO23.js → groovy-DZeT_VM-.js} +1 -1
- package/dist/{index-vBvkMASN.js → index-BKqFq5mX.js} +1 -1
- package/dist/{index-CPYqDzaH.js → index-BKzeUFPb.js} +1 -1
- package/dist/{index-DO1cRnjY.js → index-BM7iUMDu.js} +1 -1
- package/dist/{index-Bgz9JztI.js → index-BiDeSpjv.js} +1 -1
- package/dist/{index-kFRaLmem.js → index-Bu6fI607.js} +1 -1
- package/dist/{index-jmDrgliY.js → index-Bz-zRdCV.js} +1 -1
- package/dist/{index-xw0bYDp6.js → index-C1c8feYO.js} +10 -10
- package/dist/{index-CM0LuO7L.js → index-CBq1KSct.js} +5 -5
- package/dist/{index-BaImQrMe.js → index-CavGHmUf.js} +5 -5
- package/dist/{index-BdWiIKgo.js → index-Cf5CmM-j.js} +15834 -15769
- package/dist/{index-BNwYTehR.js → index-Ch0ndjpr.js} +1 -1
- package/dist/{index-Bvgpw5Qo.js → index-DF-5CtWQ.js} +1 -1
- package/dist/{index-Dly8Mno7.js → index-DN5pWedV.js} +1 -1
- package/dist/{index-BGaxKbp7.js → index-DSm1YV7E.js} +3 -3
- package/dist/{index-jFvS8LTt.js → index-D_m4gXQ4.js} +1 -1
- package/dist/{index-BekPWdT9.js → index-O1JiBMIB.js} +1 -1
- package/dist/{index-CEZRb4kJ.js → index-Ytfe5W1Z.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/shared/components/sign-in/external-provider.vue.d.ts +3 -2
- package/dist/shared/components/sign-in/external-provider.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
- package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/index.d.ts +8 -8
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/index.d.ts +8 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/shared/components/sign-in/external-provider.vue +22 -4
- package/shared/components/sign-in/external-providers.vue +8 -24
- package/shared/components/sign-in/useExternalProvider.ts +2 -2
- package/dist/azuread-Bg158N88.js +0 -22
- package/dist/external-provider-kkhJ5la8.js +0 -4
- package/dist/external-provider.vue_vue_type_script_setup_true_lang-W0dfYjBn.js +0 -34
- package/dist/external-providers-Dsrytoru.js +0 -4
- package/dist/shared/components/sign-in/azuread.vue.d.ts +0 -17
- package/dist/shared/components/sign-in/azuread.vue.d.ts.map +0 -1
- package/shared/components/sign-in/azuread.vue +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.325",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/dompurify": "^3.0.5",
|
|
62
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
63
|
-
"@vc-shell/config-generator": "^1.0.
|
|
64
|
-
"@vc-shell/ts-config": "^1.0.
|
|
62
|
+
"@vc-shell/api-client-generator": "^1.0.325",
|
|
63
|
+
"@vc-shell/config-generator": "^1.0.325",
|
|
64
|
+
"@vc-shell/ts-config": "^1.0.325",
|
|
65
65
|
"@vitejs/plugin-vue": "5.0.3",
|
|
66
66
|
"cypress-signalr-mock": "^1.5.0",
|
|
67
67
|
"sass": "^1.69.6",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
>
|
|
7
7
|
<div class="tw-flex tw-flex-row tw-items-center tw-gap-2">
|
|
8
8
|
<VcImage
|
|
9
|
-
:src="
|
|
9
|
+
:src="processedLogo"
|
|
10
10
|
class="vc-external-provider__icon"
|
|
11
11
|
size="xxs"
|
|
12
12
|
/>{{ displayName }}
|
|
@@ -16,15 +16,33 @@
|
|
|
16
16
|
|
|
17
17
|
<script lang="ts" setup>
|
|
18
18
|
import { VcButton, VcImage } from "./../../../ui/components";
|
|
19
|
+
import { computed } from "vue";
|
|
20
|
+
|
|
19
21
|
export interface Props {
|
|
20
|
-
logo: string;
|
|
21
|
-
displayName: string;
|
|
22
|
+
logo: string | undefined;
|
|
23
|
+
displayName: string | undefined;
|
|
24
|
+
authenticationType: string | undefined;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
export interface Emits {
|
|
25
28
|
(event: "signIn"): void;
|
|
26
29
|
}
|
|
27
30
|
|
|
31
|
+
const props = defineProps<Props>();
|
|
28
32
|
defineEmits<Emits>();
|
|
29
|
-
|
|
33
|
+
|
|
34
|
+
const processedLogo = computed(() => {
|
|
35
|
+
if (props.logo && !props.logo.startsWith("data:image") && !props.logo.startsWith("http")) {
|
|
36
|
+
return new URL(props.logo, window.location.origin).toString();
|
|
37
|
+
}
|
|
38
|
+
return props.logo;
|
|
39
|
+
});
|
|
30
40
|
</script>
|
|
41
|
+
|
|
42
|
+
<style lang="scss">
|
|
43
|
+
.vc-external-provider {
|
|
44
|
+
&__icon {
|
|
45
|
+
@apply tw-flex-shrink-0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</style>
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tw-flex tw-justify-center tw-mt-4 tw-flex-wrap tw-gap-2">
|
|
3
|
-
<
|
|
4
|
-
:is="loadProviderComponent(provider.authenticationType!)"
|
|
3
|
+
<ExternalProvider
|
|
5
4
|
v-for="provider in providers"
|
|
6
|
-
:key="provider"
|
|
7
|
-
:logo="
|
|
5
|
+
:key="provider.authenticationType"
|
|
6
|
+
:logo="provider.logoUrl"
|
|
8
7
|
:display-name="provider.displayName"
|
|
9
8
|
:authentication-type="provider.authenticationType"
|
|
9
|
+
@sign-in="signIn(provider.authenticationType)"
|
|
10
10
|
/>
|
|
11
11
|
</div>
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script setup lang="ts">
|
|
15
|
-
import { defineProps
|
|
16
|
-
import type { Component, AsyncComponentLoader } from "vue";
|
|
15
|
+
import { defineProps } from "vue";
|
|
17
16
|
import { ExternalSignInProviderInfo } from "../../../core/api/platform";
|
|
17
|
+
import { useExternalProvider } from "./useExternalProvider";
|
|
18
|
+
import { default as ExternalProvider } from "./external-provider.vue";
|
|
18
19
|
|
|
19
20
|
export interface Props {
|
|
20
21
|
providers: ExternalSignInProviderInfo[];
|
|
@@ -22,22 +23,5 @@ export interface Props {
|
|
|
22
23
|
|
|
23
24
|
defineProps<Props>();
|
|
24
25
|
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const loadProviderComponent = (providerName: string): Component | null => {
|
|
28
|
-
const componentPath = `./${providerName.toLowerCase()}.vue`;
|
|
29
|
-
const loader: AsyncComponentLoader = components[componentPath];
|
|
30
|
-
|
|
31
|
-
if (loader !== undefined) {
|
|
32
|
-
return defineAsyncComponent({
|
|
33
|
-
loader,
|
|
34
|
-
onError(error) {
|
|
35
|
-
console.error(`Failed to load ${providerName} provider component`, error);
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
} else {
|
|
39
|
-
console.error(`Component for provider "${providerName}" not found at path "${componentPath}"`);
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
26
|
+
const { signIn } = useExternalProvider();
|
|
43
27
|
</script>
|
|
@@ -4,7 +4,7 @@ import { ExternalSignInClient, ExternalSignInProviderInfo } from "../../../core/
|
|
|
4
4
|
|
|
5
5
|
export interface IUseExternalProvider {
|
|
6
6
|
storage: Ref<{ providerType?: string | undefined }>;
|
|
7
|
-
signIn: (authenticationType
|
|
7
|
+
signIn: (authenticationType?: string) => void;
|
|
8
8
|
signOut: (authenticationType: string) => void;
|
|
9
9
|
getProviders: () => Promise<ExternalSignInProviderInfo[] | undefined>;
|
|
10
10
|
}
|
|
@@ -28,7 +28,7 @@ export const useExternalProvider = (): IUseExternalProvider => {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
|
-
async function externalSignIn(authenticationType
|
|
31
|
+
async function externalSignIn(authenticationType?: string) {
|
|
32
32
|
try {
|
|
33
33
|
const origin = window.location.origin;
|
|
34
34
|
const finalReturnUrl = window.location.pathname ?? getReturnUrlValue() ?? "/";
|
package/dist/azuread-Bg158N88.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, openBlock as i, createBlock as r, unref as t } from "vue";
|
|
2
|
-
import { _ as p } from "./external-provider.vue_vue_type_script_setup_true_lang-W0dfYjBn.js";
|
|
3
|
-
import { u as s } from "./index-BdWiIKgo.js";
|
|
4
|
-
const g = /* @__PURE__ */ a({
|
|
5
|
-
__name: "azuread",
|
|
6
|
-
props: {
|
|
7
|
-
logo: {},
|
|
8
|
-
displayName: {},
|
|
9
|
-
authenticationType: {}
|
|
10
|
-
},
|
|
11
|
-
setup(l) {
|
|
12
|
-
const { signIn: e } = s();
|
|
13
|
-
return (o, n) => (i(), r(p, {
|
|
14
|
-
logo: o.logo,
|
|
15
|
-
"display-name": o.displayName,
|
|
16
|
-
onSignIn: n[0] || (n[0] = (m) => t(e)(o.authenticationType, "/signin-oidc"))
|
|
17
|
-
}, null, 8, ["logo", "display-name"]));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
g as default
|
|
22
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as s, createBlock as n, unref as o, withCtx as i, createElementVNode as a, createVNode as l, createTextVNode as p, toDisplayString as c } from "vue";
|
|
2
|
-
import { _ as m, a as _ } from "./index-BdWiIKgo.js";
|
|
3
|
-
import "vee-validate";
|
|
4
|
-
import "vue-router";
|
|
5
|
-
const d = { class: "tw-flex tw-flex-row tw-items-center tw-gap-2" }, N = /* @__PURE__ */ r({
|
|
6
|
-
__name: "external-provider",
|
|
7
|
-
props: {
|
|
8
|
-
logo: {},
|
|
9
|
-
displayName: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["signIn"],
|
|
12
|
-
setup(f) {
|
|
13
|
-
return (e, t) => (s(), n(o(m), {
|
|
14
|
-
outline: "",
|
|
15
|
-
class: "vc-external-provider",
|
|
16
|
-
onClick: t[0] || (t[0] = (x) => e.$emit("signIn"))
|
|
17
|
-
}, {
|
|
18
|
-
default: i(() => [
|
|
19
|
-
a("div", d, [
|
|
20
|
-
l(o(_), {
|
|
21
|
-
src: e.logo,
|
|
22
|
-
class: "vc-external-provider__icon",
|
|
23
|
-
size: "xxs"
|
|
24
|
-
}, null, 8, ["src"]),
|
|
25
|
-
p(c(e.displayName), 1)
|
|
26
|
-
])
|
|
27
|
-
]),
|
|
28
|
-
_: 1
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
N as _
|
|
34
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface Props {
|
|
2
|
-
logo: string;
|
|
3
|
-
displayName: string;
|
|
4
|
-
authenticationType: string;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
-
export default _default;
|
|
8
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
-
} : {
|
|
13
|
-
type: import('vue').PropType<T[K]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=azuread.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azuread.vue.d.ts","sourceRoot":"","sources":["../../../../shared/components/sign-in/azuread.vue.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;;AA6DD,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ExternalProvider
|
|
3
|
-
:logo="logo"
|
|
4
|
-
:display-name="displayName"
|
|
5
|
-
@sign-in="signIn(authenticationType, '/signin-oidc')"
|
|
6
|
-
/>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script lang="ts" setup>
|
|
10
|
-
import { default as ExternalProvider } from "./external-provider.vue";
|
|
11
|
-
import { useExternalProvider } from "./useExternalProvider";
|
|
12
|
-
|
|
13
|
-
export interface Props {
|
|
14
|
-
logo: string;
|
|
15
|
-
displayName: string;
|
|
16
|
-
authenticationType: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
defineProps<Props>();
|
|
20
|
-
|
|
21
|
-
const { signIn } = useExternalProvider();
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style lang="scss" scoped></style>
|