@pie-framework/pie-fixed-player-static 1.0.0-24d9476.1 → 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 +5 -2
- package/dist/index.js +27 -6
- package/dist/pie-elements-bundle-351df72.js +218 -0
- package/dist/pie-fixed-player.js +2063 -1362
- package/package.json +14 -10
- package/dist/pie-elements-bundle-24d9476.js +0 -92
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @pie-framework/pie-fixed-player-static
|
|
2
2
|
|
|
3
|
-
Version: 1.0.0-
|
|
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
|
|
|
@@ -9,12 +9,15 @@ in Pieoneer, use `pie-inline-player` instead.
|
|
|
9
9
|
|
|
10
10
|
## Included Elements
|
|
11
11
|
|
|
12
|
+
- @pie-element/drag-in-the-blank@8.1.0
|
|
13
|
+
- @pie-element/hotspot@9.1.0
|
|
14
|
+
- @pie-element/image-cloze-association@8.1.0
|
|
12
15
|
- @pie-element/multiple-choice@11.1.0
|
|
13
16
|
|
|
14
17
|
## Installation
|
|
15
18
|
|
|
16
19
|
```bash
|
|
17
|
-
npm install @pie-framework/pie-fixed-player-static@1.0.0-
|
|
20
|
+
npm install @pie-framework/pie-fixed-player-static@1.0.0-351df72.11
|
|
18
21
|
```
|
|
19
22
|
|
|
20
23
|
## Usage
|
package/dist/index.js
CHANGED
|
@@ -16,19 +16,40 @@
|
|
|
16
16
|
// - _dll_pie_lib__math_rendering: SystemJS/DLL key used by IIFE bundles
|
|
17
17
|
window['@pie-lib/math-rendering'] = mathRenderingModule._dll_pie_lib__math_rendering;
|
|
18
18
|
window['_dll_pie_lib__math_rendering'] = mathRenderingModule._dll_pie_lib__math_rendering;
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
// Debug logging (only if window.PIE_DEBUG is true)
|
|
21
|
+
if (window.PIE_DEBUG) {
|
|
22
|
+
console.debug('[pie-fixed-player-static] Math rendering initialized (both globals set)');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
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 {}
|
|
20
37
|
}
|
|
21
38
|
|
|
22
39
|
// 3. NOW load PIE element bundles (IIFE) - these execute immediately
|
|
23
40
|
// The IIFE must find math-rendering globals already set (which they now are)
|
|
24
|
-
await import('./pie-elements-bundle-
|
|
41
|
+
await import('./pie-elements-bundle-351df72.js');
|
|
25
42
|
|
|
26
43
|
// 4. Load pie-fixed-player custom element
|
|
27
44
|
await import('./pie-fixed-player.js');
|
|
28
|
-
|
|
29
|
-
// 5.
|
|
30
|
-
if (typeof window !== 'undefined') {
|
|
31
|
-
|
|
45
|
+
|
|
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)
|
|
51
|
+
if (typeof window !== 'undefined' && window.PIE_DEBUG) {
|
|
52
|
+
console.debug('[pie-fixed-player-static] Package loaded. PIE elements available via window.pie');
|
|
32
53
|
}
|
|
33
54
|
} catch (error) {
|
|
34
55
|
console.error('[pie-fixed-player-static] Failed to initialize:', error);
|