@wf-financing/ui 4.5.1 → 4.6.0
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 +14 -0
- package/dist/index.es.js +3470 -3461
- package/index.ts +6 -0
- package/package.json +3 -3
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.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./dist/index.es.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"react-markdown": "^10.1.0",
|
|
39
39
|
"styled-components": "^6.1.19",
|
|
40
40
|
"@wf-financing/embedded-types": "1.1.0",
|
|
41
|
-
"@wf-financing/logger": "2.
|
|
42
|
-
"@wf-financing/ui-assets": "1.1.
|
|
41
|
+
"@wf-financing/logger": "2.2.0",
|
|
42
|
+
"@wf-financing/ui-assets": "1.1.1"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|