OptionaladdAddons can be added to other content types by
Optionalcontent?: { types?: { text?: { regex?: string } }[] }Optionaleditor?: { machineNames: string[] }Contains cases in which the library should be added to the editor.
This is an extension to the H5P library metadata structure made by h5p-nodejs-library. That way addons can specify to which editors they should be added in general. The PHP implementation hard-codes this list into the server, which we want to avoid here.
A list of machine names in which the addon should be added.
Optionalplayer?: { machineNames: string[] }Contains cases in which the library should be added to the player.
This is an extension to the H5P library metadata structure made by h5p-nodejs-library. That way addons can specify to which editors they should be added in general. The PHP implementation hard-codes this list into the server, which we want to avoid here.
A list of machine names in which the addon should be added.
OptionalauthorOptionalcoreThe core API required to run the library.
OptionaldescriptionOptionaldropOptionaldynamicOptionaleditorOptionalembedOptionalfullscreenOptionalhOptionallicenseThe name used to identify the library (e.g. H5P.Example)
The major version of the library (e.g. 1)
OptionalmetadataThe minor version of the library (e.g. 0)
OptionalpreloadedOptionalpreloadedOptionalpreloadedOptionalrequiredOptionalstateOptionalw
This interface represents the structure of library.json files.