@elliemae/pui-app-sdk 2.5.0 → 2.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/dist/cjs/api/auth/index.js +1 -1
- package/dist/cjs/utils/auth/index.js +2 -0
- package/dist/cjs/utils/helpers.js +2 -0
- package/dist/cjs/utils/micro-frontend/host.js +2 -2
- package/dist/cjs/utils/url.js +2 -0
- package/dist/cjs/view/micro-app/resources/manifest.js +2 -0
- package/dist/cjs/view/micro-app/resources/script.js +2 -0
- package/dist/cjs/view/micro-app/resources/style.js +2 -0
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +2 -0
- package/dist/cjs/view/useQuery/index.js +1 -1
- package/dist/es/api/auth/index.js +1 -1
- package/dist/es/utils/auth/index.js +1 -0
- package/dist/es/utils/helpers.js +1 -0
- package/dist/es/utils/micro-frontend/host.js +2 -2
- package/dist/es/utils/url.js +1 -0
- package/dist/es/view/micro-app/resources/manifest.js +1 -0
- package/dist/es/view/micro-app/resources/script.js +1 -0
- package/dist/es/view/micro-app/resources/style.js +1 -0
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/es/view/useQuery/index.js +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/emuiAppSdk.73f2b187826be98ec18f.js +5 -0
- package/dist/public/js/{emuiAppSdk.203ccce3acf05df35300.js.LICENSE.txt → emuiAppSdk.73f2b187826be98ec18f.js.LICENSE.txt} +0 -0
- package/dist/public/js/emuiAppSdk.73f2b187826be98ec18f.js.gz +0 -0
- package/dist/public/js/emuiAppSdk.73f2b187826be98ec18f.js.map +1 -0
- package/dist/types/utils/micro-frontend/host.d.ts +2 -2
- package/package.json +16 -16
- package/dist/public/js/emuiAppSdk.203ccce3acf05df35300.js +0 -5
- package/dist/public/js/emuiAppSdk.203ccce3acf05df35300.js.gz +0 -0
- package/dist/public/js/emuiAppSdk.203ccce3acf05df35300.js.map +0 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.introspectToken = exports.revokeToken = exports.getToken = void 0;
|
|
7
7
|
|
|
8
|
-
require("core-js/modules/web.url.js");
|
|
8
|
+
require("core-js/modules/web.url-search-params.js");
|
|
9
9
|
|
|
10
10
|
var _httpClient = require("../../communication/http-client");
|
|
11
11
|
|
|
@@ -7,6 +7,8 @@ exports.login = exports.authorize = exports.endSession = exports.navigateToLogin
|
|
|
7
7
|
|
|
8
8
|
require("core-js/modules/web.url.js");
|
|
9
9
|
|
|
10
|
+
require("core-js/modules/web.url-search-params.js");
|
|
11
|
+
|
|
10
12
|
require("core-js/modules/es.string.replace.js");
|
|
11
13
|
|
|
12
14
|
var _history = require("../history");
|
|
@@ -7,6 +7,8 @@ exports.convertRelativeToAbsoluteUrl = exports.isCIBuild = exports.isProd = void
|
|
|
7
7
|
|
|
8
8
|
require("core-js/modules/web.url.js");
|
|
9
9
|
|
|
10
|
+
require("core-js/modules/web.url-search-params.js");
|
|
11
|
+
|
|
10
12
|
const isProd = () => process.env.NODE_ENV === 'production';
|
|
11
13
|
|
|
12
14
|
exports.isProd = isProd;
|
|
@@ -168,11 +168,11 @@ class CMicroAppHost {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
onResizeEvent(eventHandler) {
|
|
171
|
-
return (0, _pubsubJs.subscribe)(_constants.HOST_WINDOW_RESIZED, eventHandler);
|
|
171
|
+
return (0, _pubsubJs.subscribe)(_constants.HOST_WINDOW_RESIZED, (msg, data) => eventHandler(data));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
onBreakpointChangeEvent(eventHandler) {
|
|
175
|
-
return (0, _pubsubJs.subscribe)(_constants.HOST_WINDOW_BREAKPOINT_CHANGED, eventHandler);
|
|
175
|
+
return (0, _pubsubJs.subscribe)(_constants.HOST_WINDOW_BREAKPOINT_CHANGED, (msg, data) => eventHandler(data));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
setSystemVersion(version = 'latest') {
|
package/dist/cjs/utils/url.js
CHANGED
|
@@ -9,6 +9,8 @@ require("core-js/modules/es.string.replace.js");
|
|
|
9
9
|
|
|
10
10
|
require("core-js/modules/web.url.js");
|
|
11
11
|
|
|
12
|
+
require("core-js/modules/web.url-search-params.js");
|
|
13
|
+
|
|
12
14
|
var _httpClient = require("../../../communication/http-client");
|
|
13
15
|
|
|
14
16
|
var _url = require("../../../utils/url");
|
|
@@ -7,6 +7,8 @@ exports.removePrefetchLinks = exports.removeDynamicImportedScripts = exports.rem
|
|
|
7
7
|
|
|
8
8
|
require("core-js/modules/web.url.js");
|
|
9
9
|
|
|
10
|
+
require("core-js/modules/web.url-search-params.js");
|
|
11
|
+
|
|
10
12
|
var _url = require("../../../utils/url");
|
|
11
13
|
|
|
12
14
|
const APP_SCRIPT_ID_PREFIX = 'emui-script-';
|
|
@@ -7,6 +7,8 @@ exports.removeDynamicImportedStyles = exports.removeStyleFromDOM = exports.addSt
|
|
|
7
7
|
|
|
8
8
|
require("core-js/modules/web.url.js");
|
|
9
9
|
|
|
10
|
+
require("core-js/modules/web.url-search-params.js");
|
|
11
|
+
|
|
10
12
|
var _url = require("../../../utils/url");
|
|
11
13
|
|
|
12
14
|
const APP_STYLE_ID_PREFIX = 'emui-style-';
|
package/dist/es/utils/helpers.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "core-js/modules/web.url.js";
|
|
2
|
+
import "core-js/modules/web.url-search-params.js";
|
|
2
3
|
export const isProd = () => process.env.NODE_ENV === 'production';
|
|
3
4
|
export const isCIBuild = () => process.env.CI === 'true';
|
|
4
5
|
const PROTOCOL = new RegExp('^(?:[a-z]+:)?//', 'i');
|
|
@@ -150,11 +150,11 @@ export class CMicroAppHost {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
onResizeEvent(eventHandler) {
|
|
153
|
-
return subscribe(HOST_WINDOW_RESIZED, eventHandler);
|
|
153
|
+
return subscribe(HOST_WINDOW_RESIZED, (msg, data) => eventHandler(data));
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
onBreakpointChangeEvent(eventHandler) {
|
|
157
|
-
return subscribe(HOST_WINDOW_BREAKPOINT_CHANGED, eventHandler);
|
|
157
|
+
return subscribe(HOST_WINDOW_BREAKPOINT_CHANGED, (msg, data) => eventHandler(data));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
setSystemVersion(version = 'latest') {
|
package/dist/es/utils/url.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "core-js/modules/es.string.replace.js";
|
|
2
2
|
import "core-js/modules/web.url.js";
|
|
3
|
+
import "core-js/modules/web.url-search-params.js";
|
|
3
4
|
import { getHTTPClient } from "../../../communication/http-client";
|
|
4
5
|
import { removeDoubleSlash } from "../../../utils/url";
|
|
5
6
|
import { getLogger } from "../../../utils/micro-frontend";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "core-js/modules/web.url.js";
|
|
2
|
+
import "core-js/modules/web.url-search-params.js";
|
|
2
3
|
import { removeDoubleSlash } from "../../../utils/url";
|
|
3
4
|
export const APP_SCRIPT_ID_PREFIX = 'emui-script-';
|
|
4
5
|
const HEAD_SCRIPTS = new RegExp('/(?:emuiDiagnostics|global|global-prod|emuiUserMonitoring)(?:..*)?.js', 'i'); // const isDeferEligible = (scriptSrc: string) => !HEAD_SCRIPTS.test(scriptSrc);
|
package/dist/public/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>emuiAppSdk</title><script defer="defer" src="/js/emuiAppSdk.
|
|
1
|
+
<!doctype html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>emuiAppSdk</title><script defer="defer" src="/js/emuiAppSdk.73f2b187826be98ec18f.js"></script></head><p>This library emuiAppSdk exposes the following properties</p><ul id="libraryAttributes"></ul><script lang="javascript">window.onload = () => {
|
|
2
2
|
const attribNode = document.getElementById('libraryAttributes');
|
|
3
3
|
if (attribNode) {
|
|
4
4
|
attribNode.innerHTML = Object.keys(window['emuiAppSdk'] || {}).reduce((value, attribute) => value += `<li>${attribute}</li>`, '');
|