feat(skins): complete visual component CRUD authoring

This commit is contained in:
illusia committed 2026-10-10 15:53:51 +08:00
1 parent 3fd8e76a98
commit f2e5695bb6
30 files changed
+1858 -511

No files matched your search

+8
View File
@@ -213,6 +213,14 @@ test("skin plugin rejects undeclared permissions, arbitrary paths, and executabl
const externalSvgPaint = validDocument();
externalSvgPaint.components[0].root.children![0].attributes = { fill: "url(https://example.invalid/payload.svg#paint)" };
errorCode(() => parseSkinPluginDocument(externalSvgPaint), "SKIN_PLUGIN_ATTRIBUTE_INVALID");
const skinOwnedPopover = validDocument();
skinOwnedPopover.components[0].root.children![0].attributes = { popover: "manual" };
errorCode(() => parseSkinPluginDocument(skinOwnedPopover), "SKIN_PLUGIN_ATTRIBUTE_INVALID");
const skinOwnedPopoverTrigger = validDocument();
skinOwnedPopoverTrigger.components[0].root.children![0].attributes = { popovertarget: "host-editor" };
errorCode(() => parseSkinPluginDocument(skinOwnedPopoverTrigger), "SKIN_PLUGIN_ATTRIBUTE_INVALID");
});
test("skin plugin restricts repeated fields to the selected collection", () => {