@wf-financing/ui 1.3.0 → 1.3.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/CHANGELOG.md +12 -0
- package/dist/index.es.js +8 -4
- package/package.json +1 -1
- package/src/config/fontParameters.ts +3 -3
- package/src/main.tsx +5 -1
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -94963,13 +94963,13 @@ const Fhe = (e, t) => {
|
|
|
94963
94963
|
rootElementId: "banner-root"
|
|
94964
94964
|
}, Eit = [wit, Iit, Sit], _it = {
|
|
94965
94965
|
fontFamily: "DM Sans",
|
|
94966
|
-
fontUrl: "https://
|
|
94966
|
+
fontUrl: "https://app.wayflyer.com/flyui-assets/fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf"
|
|
94967
94967
|
}, Ait = {
|
|
94968
94968
|
fontFamily: "Source Sans Pro",
|
|
94969
|
-
fontUrl: "https://
|
|
94969
|
+
fontUrl: "https://app.wayflyer.com/flyui-assets/fonts/source-sans/SourceSans3-VariableFont_wght.ttf"
|
|
94970
94970
|
}, kit = {
|
|
94971
94971
|
fontFamily: "Merrion Sans",
|
|
94972
|
-
fontUrl: "https://
|
|
94972
|
+
fontUrl: "https://app.wayflyer.com/flyui-assets/fonts/merrion-sans/Merrion_Sans-Medium.woff2"
|
|
94973
94973
|
}, Tit = {
|
|
94974
94974
|
dmSansParams: _it,
|
|
94975
94975
|
sourceSansParams: Ait,
|
|
@@ -95295,7 +95295,11 @@ const sQ = async (e, t, n, r, i) => {
|
|
|
95295
95295
|
const a = document.getElementById(e);
|
|
95296
95296
|
if (!a) throw new Error(`Target element with id "${e}" not found.`);
|
|
95297
95297
|
const o = a.shadowRoot ?? a.attachShadow({ mode: "open" });
|
|
95298
|
-
|
|
95298
|
+
try {
|
|
95299
|
+
await Dit(o, t);
|
|
95300
|
+
} catch (p) {
|
|
95301
|
+
console.error(p);
|
|
95302
|
+
}
|
|
95299
95303
|
const { styledComponentsStyleRoot: l, portalRoot: c, bannerRoot: d } = Rit(o);
|
|
95300
95304
|
dx || (dx = zbe.createRoot(d));
|
|
95301
95305
|
const h = () => {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const dmSansParams = {
|
|
2
2
|
fontFamily: 'DM Sans',
|
|
3
|
-
fontUrl: 'https://
|
|
3
|
+
fontUrl: 'https://app.wayflyer.com/flyui-assets/fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf',
|
|
4
4
|
};
|
|
5
5
|
const sourceSansParams = {
|
|
6
6
|
fontFamily: 'Source Sans Pro',
|
|
7
|
-
fontUrl: 'https://
|
|
7
|
+
fontUrl: 'https://app.wayflyer.com/flyui-assets/fonts/source-sans/SourceSans3-VariableFont_wght.ttf',
|
|
8
8
|
};
|
|
9
9
|
const merrionSansParams = {
|
|
10
10
|
fontFamily: 'Merrion Sans',
|
|
11
|
-
fontUrl: 'https://
|
|
11
|
+
fontUrl: 'https://app.wayflyer.com/flyui-assets/fonts/merrion-sans/Merrion_Sans-Medium.woff2',
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export const FONT_PARAMS = {
|
package/src/main.tsx
CHANGED
|
@@ -20,7 +20,11 @@ export const mountToTarget = async (
|
|
|
20
20
|
|
|
21
21
|
const shadow = hostEl.shadowRoot ?? hostEl.attachShadow({ mode: 'open' });
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
try {
|
|
24
|
+
await applyFont(shadow, partnerDesignId);
|
|
25
|
+
} catch (error) {
|
|
26
|
+
console.error(error);
|
|
27
|
+
}
|
|
24
28
|
|
|
25
29
|
const { styledComponentsStyleRoot, portalRoot, bannerRoot } = createRoots(shadow);
|
|
26
30
|
|