@wf-financing/ui 4.5.2 → 4.6.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/CHANGELOG.md +15 -0
- package/dist/index.es.js +3 -2
- package/index.ts +6 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @wf-financing/ui
|
|
2
2
|
|
|
3
|
+
## 4.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @wf-financing/embedded-types@1.1.1
|
|
9
|
+
- @wf-financing/logger@2.2.1
|
|
10
|
+
- @wf-financing/ui-assets@1.1.2
|
|
11
|
+
|
|
12
|
+
## 4.6.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- Wait for an event from the loaded script before initializing the SDK
|
|
17
|
+
|
|
3
18
|
## 4.5.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.es.js
CHANGED
|
@@ -23993,7 +23993,7 @@ const i8 = "https://static.wayflyer.com/flyui-assets/styles/flyui-b0050fc0.css",
|
|
|
23993
23993
|
rootName: "bannerRoot",
|
|
23994
23994
|
rootElement: "div",
|
|
23995
23995
|
rootElementId: "banner-root"
|
|
23996
|
-
}, u8 = [s8, a8, l8], dS = "wayflyer-headless-sdk", c8 = "https://embedded-finance-frontend.vercel.app/npm/@wf-financing/headless@3", yv = "4.
|
|
23996
|
+
}, u8 = [s8, a8, l8], dS = "wayflyer-headless-sdk", c8 = "https://embedded-finance-frontend.vercel.app/npm/@wf-financing/headless@3", yv = "4.6.1", d8 = (e) => u8.reduce((t, n) => {
|
|
23997
23997
|
const { rootElement: r, rootElementId: o, rootName: a } = n;
|
|
23998
23998
|
let l = e.getElementById(o);
|
|
23999
23999
|
return l || (l = document.createElement(r), l.id = o, e.appendChild(l)), {
|
|
@@ -34085,6 +34085,7 @@ class rU {
|
|
|
34085
34085
|
}
|
|
34086
34086
|
}
|
|
34087
34087
|
const iU = () => {
|
|
34088
|
-
|
|
34088
|
+
const e = "UI_SDK_READY_EVENT";
|
|
34089
|
+
window.WayflyerUiSdk = rU, window.dispatchEvent(new CustomEvent(e));
|
|
34089
34090
|
};
|
|
34090
34091
|
iU();
|
package/index.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { WayflyerUiSdk } from './sdk';
|
|
2
2
|
|
|
3
3
|
const addUiSdkToWindow = () => {
|
|
4
|
+
const UI_SDK_READY_EVENT = 'UI_SDK_READY_EVENT';
|
|
5
|
+
|
|
4
6
|
window.WayflyerUiSdk = WayflyerUiSdk;
|
|
7
|
+
/**
|
|
8
|
+
* Trigger event handler in entry point that notifies it that the SDK is ready to use. See packages/ui-sdk-entry/utils/loadUiSdkScript.ts
|
|
9
|
+
*/
|
|
10
|
+
window.dispatchEvent(new CustomEvent(UI_SDK_READY_EVENT));
|
|
5
11
|
};
|
|
6
12
|
|
|
7
13
|
addUiSdkToWindow();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wf-financing/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./dist/index.es.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"react-intl": "^6.2.5",
|
|
38
38
|
"react-markdown": "^10.1.0",
|
|
39
39
|
"styled-components": "^6.1.19",
|
|
40
|
-
"@wf-financing/embedded-types": "1.1.
|
|
41
|
-
"@wf-financing/logger": "2.2.
|
|
42
|
-
"@wf-financing/ui-assets": "1.1.
|
|
40
|
+
"@wf-financing/embedded-types": "1.1.1",
|
|
41
|
+
"@wf-financing/logger": "2.2.1",
|
|
42
|
+
"@wf-financing/ui-assets": "1.1.2"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|