Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"@codemirror/state": "6.7.6",
"@codemirror/view": "6.44.2",
"@lezer/highlight": "1.2.5",
"@missing-elements/h5p-author": "1.3.0",
"@missing-elements/h5p-author": "1.4.0",
"@missing-elements/h5p-libraries": "1.1.2",
"@missing-elements/h5p-mcp-app": "0.2.2",
"@missing-elements/h5p-offline-player": "1.7.3",
"@missing-elements/h5p-runtime": "1.0.2",
"@missing-elements/h5p-mcp-app": "0.3.0",
"@missing-elements/h5p-offline-player": "2.0.0",
"@missing-elements/h5p-runtime": "1.0.3",
"@missing-elements/pdfjs-viewer": "4.6.1",
"@zip.js/zip.js": "2.25.1"
}
Expand Down
106 changes: 50 additions & 56 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/h5p/build/build-page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import '@missing-elements/h5p-offline-player'
import { buildPackage, openPack, SourceError } from '@missing-elements/h5p-author/browser'
import { pack as installPack } from '@missing-elements/h5p-libraries/install'
import { pack } from '@missing-elements/h5p-libraries'
import { runtime } from '@missing-elements/h5p-runtime'
import { baseName, compactSource, forTheChat, fragmentFromSource, kindOf, linksSource, matchFiles, namedFiles, packageName, parseSource, sized, sourceFromFragment, typesNamed, type Problem, type TypeFile } from './build-source'
import type { SourceEditor } from './editor'
Expand Down Expand Up @@ -71,6 +72,9 @@ const sampleSourceResult = $('sample-source-result')

player.runtime = runtime
sample.runtime = runtime
// Untrusted, as every package plays, with its libraries from this page's own copy of the pack.
player.pack = pack
sample.pack = pack

/**
* The sample a visitor with no source is shown, and its source: `sample.json` beside this file,
Expand Down