@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.
@@ -39,7 +39,7 @@ export declare class ScriptLoader {
39
39
  #private;
40
40
  constructor(logger: Logger);
41
41
  /**
42
- * Loads multiple script assets sequentially, with CDN scripts loaded before non-CDN scripts.
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
- * - Partitions assets into CDN (HTTP/HTTPS) and non-CDN (relative) arrays in a single pass
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
- * - Appends all script elements to the DOM synchronously so the browser
55
- * can download them in parallel
56
- * - Execution order is preserved by the spec: type="module" scripts
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', 'app.js', 'config.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,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;