@pie-players/pie-preloaded-player 0.3.72-963a099.2 → 0.3.72-afb2f1e.1
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 +12 -13
- package/dist/index.js +8 -9
- package/dist/pie-elements-bundle-afb2f1e.js +2946 -0
- package/package.json +12 -14
- package/dist/pie-elements-bundle-963a099.js +0 -1995
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @pie-players/pie-preloaded-player
|
|
2
2
|
|
|
3
|
-
Version: `0.3.72-
|
|
3
|
+
Version: `0.3.72-afb2f1e.1`
|
|
4
4
|
|
|
5
5
|
Pre-bundled PIE item-player package with static element versions for production use.
|
|
6
6
|
|
|
@@ -10,25 +10,24 @@ Pre-bundled PIE item-player package with static element versions for production
|
|
|
10
10
|
|
|
11
11
|
| Package | Version |
|
|
12
12
|
| --- | --- |
|
|
13
|
-
| `@pie-element/categorize` | `
|
|
14
|
-
| `@pie-element/drag-in-the-blank` | `
|
|
15
|
-
| `@pie-element/
|
|
16
|
-
| `@pie-element/
|
|
17
|
-
| `@pie-element/
|
|
18
|
-
| `@pie-element/multiple-choice` | `
|
|
19
|
-
| `@pie-element/passage` | `5.3.3` |
|
|
13
|
+
| `@pie-element/categorize` | `13.2.3` |
|
|
14
|
+
| `@pie-element/drag-in-the-blank` | `10.2.4` |
|
|
15
|
+
| `@pie-element/hotspot` | `11.3.3` |
|
|
16
|
+
| `@pie-element/image-cloze-association` | `10.3.2` |
|
|
17
|
+
| `@pie-element/mc-populated-blank` | `0.3.0-next.9` |
|
|
18
|
+
| `@pie-element/multiple-choice` | `13.4.3` |
|
|
20
19
|
|
|
21
20
|
## Package metadata
|
|
22
21
|
|
|
23
|
-
- Version: `0.3.72-
|
|
24
|
-
- Bundle hash: `
|
|
22
|
+
- Version: `0.3.72-afb2f1e.1`
|
|
23
|
+
- Bundle hash: `afb2f1e`
|
|
25
24
|
- Loader version: `0.3.72`
|
|
26
|
-
- Iteration: `
|
|
25
|
+
- Iteration: `1`
|
|
27
26
|
|
|
28
27
|
## Installation
|
|
29
28
|
|
|
30
29
|
```bash
|
|
31
|
-
npm install @pie-players/pie-preloaded-player@0.3.72-
|
|
30
|
+
npm install @pie-players/pie-preloaded-player@0.3.72-afb2f1e.1
|
|
32
31
|
```
|
|
33
32
|
|
|
34
33
|
## Usage
|
|
@@ -40,7 +39,7 @@ npm install @pie-players/pie-preloaded-player@0.3.72-963a099.2
|
|
|
40
39
|
|
|
41
40
|
<pie-item-player
|
|
42
41
|
strategy="preloaded"
|
|
43
|
-
config='{"elements":{"pie-element-categorize":"@pie-element/categorize@
|
|
42
|
+
config='{"elements":{"pie-element-categorize":"@pie-element/categorize@13.2.3"},"models":[{"id":"1","element":"pie-element-categorize"}],"markup":"<pie-element-categorize id=\"1\"></pie-element-categorize>"}'
|
|
44
43
|
env='{"mode":"gather","role":"student"}'
|
|
45
44
|
session='{"id":"session-1","data":[]}'
|
|
46
45
|
></pie-item-player>
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Auto-generated entry point for pie-preloaded-player
|
|
2
2
|
await (async function initializePieItemPlayerStatic() {
|
|
3
3
|
const preloadedElements = {
|
|
4
|
-
"@pie-element/categorize": "@pie-element/categorize@
|
|
5
|
-
"@pie-element/drag-in-the-blank": "@pie-element/drag-in-the-blank@
|
|
6
|
-
"@pie-element/hotspot": "@pie-element/hotspot@
|
|
7
|
-
"@pie-element/image-cloze-association": "@pie-element/image-cloze-association@
|
|
8
|
-
"@pie-element/multiple-choice": "@pie-element/multiple-choice@
|
|
9
|
-
"@pie-element/
|
|
10
|
-
"@pie-element/ebsr": "@pie-element/ebsr@12.3.3"
|
|
4
|
+
"@pie-element/categorize": "@pie-element/categorize@13.2.3",
|
|
5
|
+
"@pie-element/drag-in-the-blank": "@pie-element/drag-in-the-blank@10.2.4",
|
|
6
|
+
"@pie-element/hotspot": "@pie-element/hotspot@11.3.3",
|
|
7
|
+
"@pie-element/image-cloze-association": "@pie-element/image-cloze-association@10.3.2",
|
|
8
|
+
"@pie-element/multiple-choice": "@pie-element/multiple-choice@13.4.3",
|
|
9
|
+
"@pie-element/mc-populated-blank": "@pie-element/mc-populated-blank@0.3.0-next.9"
|
|
11
10
|
};
|
|
12
11
|
if (typeof window !== 'undefined') {
|
|
13
12
|
const existing = window.PIE_PRELOADED_ELEMENTS || {};
|
|
@@ -56,7 +55,7 @@ await (async function initializePieItemPlayerStatic() {
|
|
|
56
55
|
throw new Error('[pie-preloaded-player] window.pie.default missing after bundle load');
|
|
57
56
|
}
|
|
58
57
|
const registry = window.PIE_REGISTRY ?? (window.PIE_REGISTRY = {});
|
|
59
|
-
for (const [packageName, tagName] of [["@pie-element/categorize","pie-element-categorize--version-
|
|
58
|
+
for (const [packageName, tagName] of [["@pie-element/categorize","pie-element-categorize--version-13-2-3"],["@pie-element/drag-in-the-blank","drag-in-the-blank--version-10-2-4"],["@pie-element/hotspot","hotspot--version-11-3-3"],["@pie-element/image-cloze-association","image-cloze-association--version-10-3-2"],["@pie-element/multiple-choice","pie-element-multiple-choice--version-13-4-3"],["@pie-element/mc-populated-blank","mc-populated-blank--version-0-3-0-next-9"]]) {
|
|
60
59
|
const elementData = pieModule[packageName];
|
|
61
60
|
if (!elementData || !elementData.Element) {
|
|
62
61
|
throw new Error('[pie-preloaded-player] No element class found in bundle for ' + packageName);
|
|
@@ -87,7 +86,7 @@ await (async function initializePieItemPlayerStatic() {
|
|
|
87
86
|
window['@pie-lib/math-rendering'] = mathRenderingModule._dll_pie_lib__math_rendering;
|
|
88
87
|
window['_dll_pie_lib__math_rendering'] = mathRenderingModule._dll_pie_lib__math_rendering;
|
|
89
88
|
}
|
|
90
|
-
await importWithRetry('./pie-elements-bundle-
|
|
89
|
+
await importWithRetry('./pie-elements-bundle-afb2f1e.js', 4, 200);
|
|
91
90
|
registerPreloadedElements();
|
|
92
91
|
await importWithRetry('./pie-item-player.js', 4, 200);
|
|
93
92
|
announceLoadState('PIE-Fixed-Player-Load-Complete');
|