Hi,
I cannot get multiple panels working in InDesign. Same code works fine in Photoshop.
Consider this example
index.js
const { entrypoints } = require("uxp");
entrypoints.setup({
panels: {
test1: {
show: () => {
console.log('show test1')
},
create: () => {
console.log('create test1')
},
},
test2: {
show: () => {
console.log('show test2')
},
create: () => {
console.log('create test2')
},
}
}
})
index.html
<!DOCTYPE html>
<html>
<head>
<script src="index.js"></script>
</head>
<body>
</body>
</html>
manifest.json
{
"id": "sadsad",
"name": "FOO",
"version": "0.0.3",
"main": "index.html",
"entrypoints": [
{
"description": "asasee wefa",
"type": "panel",
"id": "test1",
"label":"test panel 1"
},
{
"description": "adsadsa asd as ",
"type": "panel",
"id": "test2",
"label":"test panel 2"
}
]
}
Shows this in the console:
create test1
show test1
create test1
show test1
Seems to me like a bug in the InDesign UXP implementation or am I doing something wrong here?
InDesign version 19.4
UXP Developer tool 2.0.1