@paged-media/plugin-sdk 0.2.30-canary.0 → 0.2.31-canary.0
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/dist/index.js +8 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -566,7 +566,12 @@ function createBundleHost(getEditor, manifest, options) {
|
|
|
566
566
|
"contribute.panel",
|
|
567
567
|
`contributes.panels[] must include "${c.id}"`
|
|
568
568
|
);
|
|
569
|
-
return store.add(
|
|
569
|
+
return store.add(
|
|
570
|
+
getEditor().registries.panels.register({
|
|
571
|
+
...c,
|
|
572
|
+
source: manifest.name
|
|
573
|
+
})
|
|
574
|
+
);
|
|
570
575
|
},
|
|
571
576
|
schemaPanel(c) {
|
|
572
577
|
assertNamespaced(c.id, "schemaPanel");
|
|
@@ -583,6 +588,8 @@ function createBundleHost(getEditor, manifest, options) {
|
|
|
583
588
|
defaultGroup: c.defaultGroup,
|
|
584
589
|
closable: c.closable,
|
|
585
590
|
movable: c.movable,
|
|
591
|
+
// Host-stamped provenance, same as `panel()` above.
|
|
592
|
+
source: manifest.name,
|
|
586
593
|
component: makeSchemaPanelComponent(
|
|
587
594
|
c,
|
|
588
595
|
bindings,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paged-media/plugin-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.31-canary.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@paged-media/plugin-api": "0.2.
|
|
14
|
+
"@paged-media/plugin-api": "0.2.31-canary.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"react": "^18.3.0"
|