addOnUISdk.instance.manifest
The manifest
object provides access to the manifest.json
file entries of the add-on.
Type
object
(specific type Record
)
Please see the Manifest Schema Reference for the whole list of properties and types that can be specified in the manifest.json
for your add-on.
Usage
Below is an example of using the manifest
object, along with the expected output.
Example
Output
Copied to your clipboardimport addOnUISdk from "https://new.express.adobe.com/static/add-on-sdk/sdk.js";addOnUISdk.ready.then(() => {console.log(JSON.stringify(addOnUISdk.instance.manifest));console.log("Name: " + manifest["name"]);console.log("Test ID " + manifest["testId"]);console.log("Version " + manifest["version"]);console.log("Manifest Version " + manifest["manifestVersion"]);for (const app of manifest["requirements"]["apps"]) {console.log("Requirements -> Apps " + JSON.stringify(app));}for (const entryPoint of manifest["entryPoints"]) {console.log("Entry Point Type " + entryPoint["type"]);console.log("Entry Point ID " + entryPoint["id"]);console.log("Entry Point main " + entryPoint["main"]);}});
Copied to your clipboard{"testId":"08f4469f-7999-458b-9ef9-b1bd043cbdca","name":"Add On Api Sampler","version":"1.0.0","manifestVersion":2,"requirements":{"apps":[{"name":"Express","apiVersion":1}]},"entryPoints":[{"type":"panel","id":"panel1","main":"https://localhost:5241/08f4469f-7999-458b-9ef9-b1bd043cbdca/index.html"}]}Name: Add On Api SamplerTest ID 08f4469f-7999-458b-9ef9-b1bd043cbdcaVersion 1.0.0Manifest Version 2Requirements -> Apps {"name":"Express","apiVersion":1}Entry Point Type panelEntry Point ID panel1Entry Point main https://localhost:5241/08f4469f-7999-458b-9ef9-b1bd043cbdca/index.html