@pie-framework/pie-fixed-player-static 1.0.0-351df72.10 → 1.0.0-351df72.11

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @pie-framework/pie-fixed-player-static
2
2
 
3
- Version: 1.0.0-351df72.10
3
+ Version: 1.0.0-351df72.11
4
4
 
5
5
  Pre-bundled PIE fixed player with static element versions for production use.
6
6
 
@@ -17,7 +17,7 @@ in Pieoneer, use `pie-inline-player` instead.
17
17
  ## Installation
18
18
 
19
19
  ```bash
20
- npm install @pie-framework/pie-fixed-player-static@1.0.0-351df72.10
20
+ npm install @pie-framework/pie-fixed-player-static@1.0.0-351df72.11
21
21
  ```
22
22
 
23
23
  ## Usage
package/dist/index.js CHANGED
@@ -23,6 +23,19 @@
23
23
  }
24
24
  }
25
25
 
26
+
27
+ // Initialize global debug flag from URL params (checked early before any imports)
28
+ // Can also be set via: <script>window.PIE_DEBUG = true;</script> before importing this module
29
+ if (typeof window !== 'undefined' && typeof window.PIE_DEBUG === 'undefined') {
30
+ try {
31
+ const params = new URLSearchParams(window.location?.search || '');
32
+ const urlFlag = params.get('pie_debug') || params.get('PIE_DEBUG') || params.get('debug');
33
+ if (urlFlag != null) {
34
+ window.PIE_DEBUG = urlFlag === '' || String(urlFlag).toLowerCase() === 'true' || urlFlag === '1';
35
+ }
36
+ } catch {}
37
+ }
38
+
26
39
  // 3. NOW load PIE element bundles (IIFE) - these execute immediately
27
40
  // The IIFE must find math-rendering globals already set (which they now are)
28
41
  await import('./pie-elements-bundle-351df72.js');
@@ -30,7 +43,11 @@
30
43
  // 4. Load pie-fixed-player custom element
31
44
  await import('./pie-fixed-player.js');
32
45
 
33
- // 5. Confirm ready (debug logging)
46
+ // 5. Mark load completion (performance tracking)
47
+ if (typeof window !== 'undefined' && typeof window.performance !== 'undefined') {
48
+ window.performance.mark('PIE-Fixed-Player-Load-Complete');
49
+ }
50
+ // Confirm ready (debug logging)
34
51
  if (typeof window !== 'undefined' && window.PIE_DEBUG) {
35
52
  console.debug('[pie-fixed-player-static] Package loaded. PIE elements available via window.pie');
36
53
  }