@thunderid/vue 0.7.0 → 0.8.1
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/cjs/index.cjs
CHANGED
|
@@ -2941,6 +2941,14 @@ const LOGO_CSS = `
|
|
|
2941
2941
|
height: auto;
|
|
2942
2942
|
object-fit: contain;
|
|
2943
2943
|
}
|
|
2944
|
+
|
|
2945
|
+
.thunderid-logo__emoji {
|
|
2946
|
+
display: flex;
|
|
2947
|
+
align-items: center;
|
|
2948
|
+
justify-content: center;
|
|
2949
|
+
line-height: 1;
|
|
2950
|
+
font-size: 1.75em;
|
|
2951
|
+
}
|
|
2944
2952
|
`;
|
|
2945
2953
|
var Logo_css_default = LOGO_CSS;
|
|
2946
2954
|
|
|
@@ -4842,11 +4850,18 @@ const Logo = (0, vue.defineComponent)({
|
|
|
4842
4850
|
},
|
|
4843
4851
|
setup(props, { attrs }) {
|
|
4844
4852
|
return () => {
|
|
4845
|
-
const
|
|
4853
|
+
const resolvedLogo = props.src ? (0, __thunderid_browser.resolveLogoUri)(props.src, props.alt) : void 0;
|
|
4854
|
+
const img = resolvedLogo?.kind === "emoji" ? (0, vue.h)("span", {
|
|
4855
|
+
"aria-label": props.alt,
|
|
4856
|
+
class: (0, __thunderid_browser.withVendorCSSClassPrefix)("logo__emoji"),
|
|
4857
|
+
height: props.height,
|
|
4858
|
+
role: "img",
|
|
4859
|
+
width: props.width
|
|
4860
|
+
}, [resolvedLogo.glyph]) : (0, vue.h)("img", {
|
|
4846
4861
|
alt: props.alt,
|
|
4847
4862
|
class: (0, __thunderid_browser.withVendorCSSClassPrefix)("logo__image"),
|
|
4848
4863
|
height: props.height,
|
|
4849
|
-
src:
|
|
4864
|
+
src: resolvedLogo?.imgSrc,
|
|
4850
4865
|
width: props.width
|
|
4851
4866
|
});
|
|
4852
4867
|
if (props.href) return (0, vue.h)("a", {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
* Elements:
|
|
24
24
|
* __image
|
|
25
25
|
*/
|
|
26
|
-
declare const LOGO_CSS = "\n/* ============================================================\n Logo\n ============================================================ */\n\n.thunderid-logo {\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n transition: opacity var(--thunder-transition-fast);\n}\n\n.thunderid-logo:hover {\n opacity: 0.85;\n}\n\n.thunderid-logo__image {\n display: block;\n max-height: 100%;\n width: auto;\n height: auto;\n object-fit: contain;\n}\n";
|
|
26
|
+
declare const LOGO_CSS = "\n/* ============================================================\n Logo\n ============================================================ */\n\n.thunderid-logo {\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n transition: opacity var(--thunder-transition-fast);\n}\n\n.thunderid-logo:hover {\n opacity: 0.85;\n}\n\n.thunderid-logo__image {\n display: block;\n max-height: 100%;\n width: auto;\n height: auto;\n object-fit: contain;\n}\n\n.thunderid-logo__emoji {\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n font-size: 1.75em;\n}\n";
|
|
27
27
|
export default LOGO_CSS;
|
|
28
28
|
//# sourceMappingURL=Logo.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.css.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Logo/Logo.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"Logo.css.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Logo/Logo.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,QAAA,MAAM,QAAQ,6mBA+Bb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Logo/Logo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,SAAS,EAAoD,MAAM,KAAK,CAAC;AAUtF,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Logo/Logo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,SAAS,EAAoD,MAAM,KAAK,CAAC;AAUtF,QAAA,MAAM,IAAI,EAAE,SAwDV,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, TranslationBundleConstants, arrayBufferToBase64url, base64urlToArrayBuffer, createClassObserver, createClassObserver as createClassObserver$1, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createPackageComponentLogger, createPackageLogger, createTheme, deepMerge, detectThemeMode, detectThemeMode as detectThemeMode$1, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, extractEmojiFromUri, extractUserClaimsFromIdToken, generateFlattenedUserProfile, get, getActiveTheme, getDefaultI18nBundles, getFlowMeta, getUsersMe, getVendorPrefix, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, http, isEmojiUri, isEmpty, navigate, navigate as navigate$1, normalizeTranslations, resolveFlowTemplateLiterals, updateMeProfile, withVendorCSSClassPrefix } from "@thunderid/browser";
|
|
1
|
+
import { DEFAULT_THEME, EmbeddedFlowActionVariant, EmbeddedFlowComponentType, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowEventType, EmbeddedFlowEventType as EmbeddedFlowEventType$1, EmbeddedFlowResponseType, EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowStatus, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowType, EmbeddedSignInFlowType as EmbeddedSignInFlowType$1, EmbeddedSignUpFlowStatus, EmbeddedSignUpFlowStatus as EmbeddedSignUpFlowStatus$1, EmbeddedSignUpFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, TranslationBundleConstants, arrayBufferToBase64url, base64urlToArrayBuffer, createClassObserver, createClassObserver as createClassObserver$1, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createPackageComponentLogger, createPackageLogger, createTheme, deepMerge, detectThemeMode, detectThemeMode as detectThemeMode$1, executeEmbeddedSignInFlow, executeEmbeddedSignUpFlow, extractEmojiFromUri, extractUserClaimsFromIdToken, generateFlattenedUserProfile, get, getActiveTheme, getDefaultI18nBundles, getFlowMeta, getUsersMe, getVendorPrefix, handleWebAuthnAuthentication, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, http, isEmojiUri, isEmpty, navigate, navigate as navigate$1, normalizeTranslations, resolveFlowTemplateLiterals, resolveLogoUri, updateMeProfile, withVendorCSSClassPrefix } from "@thunderid/browser";
|
|
2
2
|
import { Fragment, computed, defineComponent, h, inject, nextTick, onBeforeUnmount, onMounted, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, watch } from "vue";
|
|
3
3
|
import DOMPurify from "dompurify";
|
|
4
4
|
|
|
@@ -2915,6 +2915,14 @@ const LOGO_CSS = `
|
|
|
2915
2915
|
height: auto;
|
|
2916
2916
|
object-fit: contain;
|
|
2917
2917
|
}
|
|
2918
|
+
|
|
2919
|
+
.thunderid-logo__emoji {
|
|
2920
|
+
display: flex;
|
|
2921
|
+
align-items: center;
|
|
2922
|
+
justify-content: center;
|
|
2923
|
+
line-height: 1;
|
|
2924
|
+
font-size: 1.75em;
|
|
2925
|
+
}
|
|
2918
2926
|
`;
|
|
2919
2927
|
var Logo_css_default = LOGO_CSS;
|
|
2920
2928
|
|
|
@@ -4816,11 +4824,18 @@ const Logo = defineComponent({
|
|
|
4816
4824
|
},
|
|
4817
4825
|
setup(props, { attrs }) {
|
|
4818
4826
|
return () => {
|
|
4819
|
-
const
|
|
4827
|
+
const resolvedLogo = props.src ? resolveLogoUri(props.src, props.alt) : void 0;
|
|
4828
|
+
const img = resolvedLogo?.kind === "emoji" ? h("span", {
|
|
4829
|
+
"aria-label": props.alt,
|
|
4830
|
+
class: withVendorCSSClassPrefix("logo__emoji"),
|
|
4831
|
+
height: props.height,
|
|
4832
|
+
role: "img",
|
|
4833
|
+
width: props.width
|
|
4834
|
+
}, [resolvedLogo.glyph]) : h("img", {
|
|
4820
4835
|
alt: props.alt,
|
|
4821
4836
|
class: withVendorCSSClassPrefix("logo__image"),
|
|
4822
4837
|
height: props.height,
|
|
4823
|
-
src:
|
|
4838
|
+
src: resolvedLogo?.imgSrc,
|
|
4824
4839
|
width: props.width
|
|
4825
4840
|
});
|
|
4826
4841
|
if (props.href) return h("a", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thunderid/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Vue SDK for ThunderID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"thunderid",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"dompurify": "3.4.11",
|
|
60
60
|
"tslib": "2.8.1",
|
|
61
|
-
"@thunderid/browser": "^0.
|
|
61
|
+
"@thunderid/browser": "^0.8.1"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|