@vc-shell/framework 1.0.295 → 1.0.296
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/azuread-QG2x1G6o.js +22 -0
- package/dist/external-provider-D18BzFJT.js +4 -0
- package/dist/external-provider.vue_vue_type_script_setup_true_lang-D_rZrOYs.js +34 -0
- package/dist/external-providers-Rh5Kicix.js +4 -0
- package/dist/framework.js +224 -81798
- package/dist/index-CDTR8gR7.js +81801 -0
- package/dist/index.css +1 -1
- package/dist/shared/components/sign-in/external-providers.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/sign-in/external-provider.vue +1 -9
- package/shared/components/sign-in/external-providers.vue +19 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-providers.vue.d.ts","sourceRoot":"","sources":["../../../../shared/components/sign-in/external-providers.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,KAAK;IACpB,SAAS,EAAE,0BAA0B,EAAE,CAAC;CACzC;;
|
|
1
|
+
{"version":3,"file":"external-providers.vue.d.ts","sourceRoot":"","sources":["../../../../shared/components/sign-in/external-providers.vue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,KAAK;IACpB,SAAS,EAAE,0BAA0B,EAAE,CAAC;CACzC;;AA+ED,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.296",
|
|
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.296",
|
|
65
|
+
"@vc-shell/config-generator": "^1.0.296",
|
|
66
|
+
"@vc-shell/ts-config": "^1.0.296",
|
|
67
67
|
"@vitejs/plugin-vue": "5.0.3",
|
|
68
68
|
"cypress-signalr-mock": "^1.5.0",
|
|
69
69
|
"sass": "^1.69.6",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
class="vc-external-provider"
|
|
5
5
|
@click="$emit('signIn')"
|
|
6
6
|
>
|
|
7
|
-
<div class="
|
|
7
|
+
<div class="tw-flex tw-flex-row tw-items-center tw-gap-2">
|
|
8
8
|
<VcImage
|
|
9
9
|
:src="logo"
|
|
10
10
|
class="vc-external-provider__icon"
|
|
@@ -28,11 +28,3 @@ export interface Emits {
|
|
|
28
28
|
defineEmits<Emits>();
|
|
29
29
|
defineProps<Props>();
|
|
30
30
|
</script>
|
|
31
|
-
|
|
32
|
-
<style lang="scss">
|
|
33
|
-
.vc-external-provider {
|
|
34
|
-
&__content {
|
|
35
|
-
@apply tw-flex tw-flex-row tw-items-center tw-gap-2;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="tw-flex tw-justify-center tw-mt-4 tw-flex-wrap tw-gap-2">
|
|
3
3
|
<component
|
|
4
4
|
:is="loadProviderComponent(provider.authenticationType!)"
|
|
5
5
|
v-for="provider in providers"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<script setup lang="ts">
|
|
15
15
|
import { defineProps, defineAsyncComponent } from "vue";
|
|
16
|
-
import type { Component } from "vue";
|
|
16
|
+
import type { Component, AsyncComponentLoader } from "vue";
|
|
17
17
|
import { ExternalSignInProviderInfo } from "../../../core/api/platform";
|
|
18
18
|
|
|
19
19
|
export interface Props {
|
|
@@ -22,18 +22,22 @@ export interface Props {
|
|
|
22
22
|
|
|
23
23
|
defineProps<Props>();
|
|
24
24
|
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
const components = import.meta.glob("./*.vue");
|
|
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
|
+
}
|
|
32
42
|
};
|
|
33
43
|
</script>
|
|
34
|
-
|
|
35
|
-
<style lang="scss">
|
|
36
|
-
.vc-external-providers {
|
|
37
|
-
@apply tw-flex tw-justify-center tw-mt-4 tw-flex-wrap tw-gap-2;
|
|
38
|
-
}
|
|
39
|
-
</style>
|