@missing-elements/h5p-embed 0.6.0 → 0.6.2
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/package.json +3 -3
- package/site/embed.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@missing-elements/h5p-embed",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Self-hosted H5P embeds: writes the H5P embed page as a static site for a player domain of your own, then any site frames it with an iframe and one script line. No H5P server, no third-party service; optional allowlists for package hosts and embedding sites.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"cli"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"@missing-elements/h5p-runtime": "^0.2.3",
|
|
46
47
|
"@missing-elements/h5p-libraries": "^0.2.0",
|
|
47
|
-
"@missing-elements/h5p-offline-player": "^0.9.
|
|
48
|
-
"@missing-elements/h5p-runtime": "^0.2.1"
|
|
48
|
+
"@missing-elements/h5p-offline-player": "^0.9.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^26.6.4",
|
package/site/embed.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* statements are relayed to the parent only when `xapi=` names the parent's origin, and they are
|
|
16
16
|
* posted to that origin only. Once the content is up the page posts one `report` upward, and a
|
|
17
17
|
* load that fails posts its `error` (see `report` below): what an embedding page that checks a
|
|
18
|
-
* package
|
|
18
|
+
* package shows under its preview.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/** Where the element's `libraries="pack"` fetches the library pack from, for a site without its own copy. */
|
|
@@ -121,8 +121,8 @@ export function startEmbed({ librariesPack = null, packages = null, defaultLibra
|
|
|
121
121
|
* and to any parent, like the heights: the parent named the package, and the manifest's strings
|
|
122
122
|
* are the package's own to tell. A parent treats them as text. A load that fails before the
|
|
123
123
|
* content is up posts `{ context: 'h5p-offline-player', action: 'error', code, message }`
|
|
124
|
-
* instead, a refusal by this page included (`code: 'refused'`). The shapes are
|
|
125
|
-
*
|
|
124
|
+
* instead, a refusal by this page included (`code: 'refused'`). The shapes are an interface:
|
|
125
|
+
* a site that checks packages builds its preview from them, so they do not change.
|
|
126
126
|
*/
|
|
127
127
|
let startedAt = 0
|
|
128
128
|
|