@elliemae/pui-app-bridge 2.28.1 → 2.28.3
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/loaders/script.js +54 -32
- package/dist/cjs/utils/webpack-public-path.js +32 -0
- package/dist/esm/loaders/script.js +57 -32
- package/dist/esm/utils/webpack-public-path.js +12 -0
- package/dist/public/e2e-host.html +1 -1
- package/dist/public/e2e-index.html +1 -1
- package/dist/public/frame.html +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/{emuiAppBridge.867faf89adac3f81299e.js → emuiAppBridge.13be9368ba5f8a719808.js} +7 -7
- package/dist/public/js/emuiAppBridge.13be9368ba5f8a719808.js.br +0 -0
- package/dist/public/js/emuiAppBridge.13be9368ba5f8a719808.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.13be9368ba5f8a719808.js.map +1 -0
- package/dist/types/lib/loaders/script.d.ts +6 -8
- package/dist/types/lib/tests/utils/webpack-public-path.test.d.ts +1 -0
- package/dist/types/lib/utils/webpack-public-path.d.ts +6 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +6 -6
- package/dist/umd/index.js.br +0 -0
- package/dist/umd/index.js.gz +0 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/public/js/emuiAppBridge.867faf89adac3f81299e.js.br +0 -0
- package/dist/public/js/emuiAppBridge.867faf89adac3f81299e.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.867faf89adac3f81299e.js.map +0 -1
|
@@ -39,7 +39,7 @@ export declare class ScriptLoader {
|
|
|
39
39
|
#private;
|
|
40
40
|
constructor(logger: Logger);
|
|
41
41
|
/**
|
|
42
|
-
* Loads multiple script assets
|
|
42
|
+
* Loads multiple script assets in manifest order, like HTML module script tags.
|
|
43
43
|
* @param assets - Array of script URLs (either full HTTP/HTTPS URLs or relative paths)
|
|
44
44
|
* @param options - Configuration options for loading the scripts
|
|
45
45
|
* @param options.name - The name of the application (used for generating script IDs)
|
|
@@ -49,17 +49,15 @@ export declare class ScriptLoader {
|
|
|
49
49
|
* @returns A promise that resolves with an array of script element IDs when all scripts are loaded
|
|
50
50
|
* @remarks
|
|
51
51
|
* This method:
|
|
52
|
-
* -
|
|
52
|
+
* - Preserves manifest order (CDN and local scripts stay in their original sequence)
|
|
53
53
|
* - Creates modulepreload links for all assets for performance optimization
|
|
54
|
-
* -
|
|
55
|
-
*
|
|
56
|
-
* -
|
|
57
|
-
* execute in document order; dynamic async=false scripts execute in
|
|
58
|
-
* insertion order
|
|
54
|
+
* - Inserts script tags synchronously in batches so the browser can fetch in parallel
|
|
55
|
+
* - Relies on module script execution order (document order) within each batch
|
|
56
|
+
* - Waits for global.js before inserting dependent bundles, then syncs webpack public path
|
|
59
57
|
* @example
|
|
60
58
|
* ```typescript
|
|
61
59
|
* const scriptIds = await scriptLoader.load(
|
|
62
|
-
* ['https://cdn.example.com/lib.js', '
|
|
60
|
+
* ['https://cdn.example.com/lib.js', 'global.js', 'runtime~app.js'],
|
|
63
61
|
* {
|
|
64
62
|
* name: 'myApp',
|
|
65
63
|
* hostUrl: 'https://example.com',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {Window | null | undefined} [targetWindow] - Guest document defaultView whose webpack runtime should be synced.
|
|
3
|
+
*/
|
|
4
|
+
export declare const syncWebpackPublicPathFromAssetPath: (targetWindow?: Window | null) => void;
|
|
5
|
+
/** Matches guest global.js / global-prod.js URLs. */
|
|
6
|
+
export declare const GLOBAL_SCRIPT_PATTERN: RegExp;
|