@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @wf-financing/ui
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix dynamic font loading
8
+
9
+ ## 1.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Disable dynamic fonts loading
14
+
3
15
  ## 1.3.0
4
16
 
5
17
  ### Minor Changes
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://static.wayflyer.com/flyui-assets/fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf"
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://static.wayflyer.com/flyui-assets/fonts/source-sans/SourceSans3-VariableFont_wght.ttf"
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://static.wayflyer.com/flyui-assets/fonts/merrion-sans/Merrion_Sans-Medium.woff2"
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
- await Dit(o, t);
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@wf-financing/ui",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/index.es.js",
@@ -1,14 +1,14 @@
1
1
  const dmSansParams = {
2
2
  fontFamily: 'DM Sans',
3
- fontUrl: 'https://static.wayflyer.com/flyui-assets/fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf',
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://static.wayflyer.com/flyui-assets/fonts/source-sans/SourceSans3-VariableFont_wght.ttf',
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://static.wayflyer.com/flyui-assets/fonts/merrion-sans/Merrion_Sans-Medium.woff2',
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
- await applyFont(shadow, partnerDesignId);
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