From d7634845549102e549ff79bfb28d9e61c8533f8e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 16 Mar 2026 10:15:49 +0100 Subject: [PATCH 1/3] :paperclip: Enable render-wasm feature by default --- common/src/app/common/flags.cljc | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/app/common/flags.cljc b/common/src/app/common/flags.cljc index 96b6764616..23ef653592 100644 --- a/common/src/app/common/flags.cljc +++ b/common/src/app/common/flags.cljc @@ -189,6 +189,7 @@ :enable-token-shadow :enable-inspect-styles :enable-feature-fdata-objects-map + :enable-feature-render-wasm ;; Temporary deactivated #_:enable-token-import-from-library]) From 5e519c6b4b5f25322f9631191f45152960cbe9de Mon Sep 17 00:00:00 2001 From: "Dr. Dominik Jain" Date: Mon, 16 Mar 2026 10:38:25 +0100 Subject: [PATCH 2/3] :sparkles: Account for changed interfaces of addToken and addSet (#8614) Resolves #8613 --- mcp/packages/server/data/initial_instructions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mcp/packages/server/data/initial_instructions.md b/mcp/packages/server/data/initial_instructions.md index 0dfa15d6c9..c212bb408b 100644 --- a/mcp/packages/server/data/initial_instructions.md +++ b/mcp/packages/server/data/initial_instructions.md @@ -312,18 +312,18 @@ Design tokens are reusable design values (colors, dimensions, typography, etc.) The token library: `penpot.library.local.tokens` (type: `TokenCatalog`) * `sets: TokenSet[]` - Token collections (order matters for precedence) * `themes: TokenTheme[]` - Presets that activate specific sets - * `addSet(name: string): TokenSet` - Create new set + * `addSet({name: string}): TokenSet` - Create new set * `addTheme(group: string, name: string): TokenTheme` - Create new theme `TokenSet` contains tokens with unique names: * `active: boolean` - Only active sets affect shapes; use `set.toggleActive()` to change: `if (!set.active) set.toggleActive();` * `tokens: Token[]` - All tokens in set - * `addToken(type: TokenType, name: string, value: TokenValueString): Token` - Creates a token, adding it to the set. + * `addToken({type: TokenType, name: string, value: TokenValueString}): Token` - Creates a token, adding it to the set. - `TokenType`: "color" | "dimension" | "spacing" | "typography" | "shadow" | "opacity" | "borderRadius" | "borderWidth" | "fontWeights" | "fontSizes" | "fontFamilies" | "letterSpacing" | "textDecoration" | "textCase" - `value`: depends on the type of token (inspect `Token` and related types) - Examples: - const token = set.addToken("color", "color.primary", "#0066FF"); // direct value - const token2 = set.addToken("color", "color.accent", "{color.primary}"); // reference to another token + const token = set.addToken({type: "color", name: "color.primary", value: "#0066FF"}); // direct value + const token2 = set.addToken({type: "color", name: "color.accent", value: "{color.primary}"}); // reference to another token `Token`: union type encompassing various token types, with common properties: * `name: string` - Token name (typically structured, e.g. "color.base.white") From 3bf145a749702311b0f39a89ce931a6ae5b9592d Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 16 Mar 2026 15:27:22 +0100 Subject: [PATCH 3/3] :sparkles: Disable wasm-render on frontend tests (temporarily) --- frontend/test/frontend_tests/runner.cljs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/test/frontend_tests/runner.cljs b/frontend/test/frontend_tests/runner.cljs index fe5f5efdac..cc899c9ac8 100644 --- a/frontend/test/frontend_tests/runner.cljs +++ b/frontend/test/frontend_tests/runner.cljs @@ -30,6 +30,10 @@ (.exit js/process 0) (.exit js/process 1))) +;; FIXME: workaround, wasn is temporarily disabled for unit tests +(set! app.main.features/global-enabled-features + (disj app.main.features/global-enabled-features "render-wasm/v1")) + (defn init [] (t/run-tests