Merge remote-tracking branch 'origin/main' into staging-2.19.x

This commit is contained in:
Andrey Antukh 2026-11-13 08:32:45 +01:00
commit a39dee6d79
16 changed files with 30 additions and 16 deletions

View File

@ -56,7 +56,7 @@ Penpot uses anonymous telemetries from the self-hosted instances to improve the
Consider sharing these anonymous telemetries enabling the corresponding flag:
```bash
PENPOT_FLAGS: [...] enable-telemetries
PENPOT_FLAGS: [...] enable-telemetry
```
## Registration and authentication

View File

@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build colors-to-tokens-plugin && pnpm run build:plugin",
"build": "pnpm run build:plugin && ng build colors-to-tokens-plugin",
"build:dev": "ng build colors-to-tokens-plugin --configuration development",
"build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=colors-to-tokens-plugin",
"watch": "node ../../tools/scripts/build-plugin.mjs --plugin=colors-to-tokens-plugin --watch",

View File

@ -72,7 +72,9 @@ export class AppComponent {
messages$ = fromEvent<MessageEvent<PluginMessageEvent>>(window, 'message');
initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
theme = toSignal(

View File

@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build contrast-plugin && pnpm run build:plugin",
"build": "pnpm run build:plugin && ng build contrast-plugin",
"build:dev": "ng build contrast-plugin --configuration development",
"build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=contrast-plugin",
"watch": "node ../../tools/scripts/build-plugin.mjs --plugin=contrast-plugin --watch",

View File

@ -115,7 +115,9 @@ export class AppComponent {
#messages$ = fromEvent<MessageEvent<PluginMessageEvent>>(window, 'message');
#initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
selection = toSignal(

View File

@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build icons-plugin && pnpm run build:plugin",
"build": "pnpm run build:plugin && ng build icons-plugin",
"build:dev": "ng build icons-plugin --configuration development",
"build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=icons-plugin",
"build:plugin:watch": "node ../../tools/scripts/build-plugin.mjs --plugin=icons-plugin --watch",

View File

@ -44,7 +44,9 @@ export class AppComponent {
);
public initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
public theme = toSignal(

View File

@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build lorem-ipsum-plugin && pnpm run build:plugin",
"build": "pnpm run build:plugin && ng build lorem-ipsum-plugin",
"build:dev": "ng build lorem-ipsum-plugin --configuration development",
"build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=lorem-ipsum-plugin",
"watch": "node ../../tools/scripts/build-plugin.mjs --plugin=lorem-ipsum-plugin --watch",

View File

@ -69,7 +69,9 @@ export class AppComponent {
messages$ = fromEvent<MessageEvent<PluginMessageEvent>>(window, 'message');
initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
theme = toSignal(

View File

@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build poc-state-plugin && pnpm run build:plugin",
"build": "pnpm run build:plugin && ng build poc-state-plugin",
"build:dev": "ng build poc-state-plugin --configuration development",
"build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=poc-state-plugin",
"watch": "node ../../tools/scripts/build-plugin.mjs --plugin=poc-state-plugin --watch",

View File

@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build poc-tokens-plugin && pnpm run build:plugin",
"build": "pnpm run build:plugin && ng build poc-tokens-plugin",
"build:dev": "ng build poc-tokens-plugin --configuration development",
"build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=poc-tokens-plugin",
"watch": "node ../../tools/scripts/build-plugin.mjs --plugin=poc-tokens-plugin --watch",

View File

@ -44,7 +44,9 @@ export class AppComponent {
);
public initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
public theme = toSignal(

View File

@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build rename-layers-plugin && pnpm run build:plugin",
"build": "pnpm run build:plugin && ng build rename-layers-plugin",
"build:dev": "ng build rename-layers-plugin --configuration development",
"build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=rename-layers-plugin",
"watch": "node ../../tools/scripts/build-plugin.mjs --plugin=rename-layers-plugin --watch",

View File

@ -38,7 +38,9 @@ export class AppComponent {
}
initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
theme = toSignal(

View File

@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "ng build table-plugin && pnpm run build:plugin",
"build": "pnpm run build:plugin && ng build table-plugin",
"build:dev": "ng build table-plugin --configuration development",
"build:plugin": "node ../../tools/scripts/build-plugin.mjs --plugin=table-plugin",
"watch": "node ../../tools/scripts/build-plugin.mjs --plugin=table-plugin --watch",

View File

@ -40,7 +40,9 @@ export class AppComponent {
messages$ = fromEvent<MessageEvent<PluginMessageEvent>>(window, 'message');
initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
theme = toSignal(