diff --git a/plugins/figma-sync/package.json b/plugins/figma-sync/package.json
index d42557d5f7..5270910f5b 100644
--- a/plugins/figma-sync/package.json
+++ b/plugins/figma-sync/package.json
@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "run-s watch",
- "watch": "run-p watch:ui watch:plugin",
+ "watch": "run-p 'watch:*'",
"watch:ui": "npm run build:ui -- --watch --mode=development",
"watch:plugin": "npm run build:plugin -- --watch --mode=development",
"build": "npm run build:plugin && npm run build:ui",
@@ -18,7 +18,7 @@
"@digdir/designsystemet-css": "workspace:^",
"@digdir/designsystemet-react": "workspace:^",
"@digdir/designsystemet-theme": "workspace:^",
- "npm-run-all": "^4.1.5",
+ "npm-run-all2": "^6.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.1"
diff --git a/plugins/figma-sync/src/common/types.ts b/plugins/figma-sync/src/common/types.ts
new file mode 100644
index 0000000000..b6bd570141
--- /dev/null
+++ b/plugins/figma-sync/src/common/types.ts
@@ -0,0 +1,9 @@
+export type JsonInput = {
+ theme: {
+ accent: object;
+ neutral: object;
+ brand1: object;
+ brand2: object;
+ brand3: object;
+ };
+};
diff --git a/plugins/figma-sync/src/plugin/plugin.ts b/plugins/figma-sync/src/plugin/plugin.ts
index a845b4b291..d9ad5b725a 100644
--- a/plugins/figma-sync/src/plugin/plugin.ts
+++ b/plugins/figma-sync/src/plugin/plugin.ts
@@ -1,7 +1,8 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
-figma.showUI(__html__, { width: 600, height: 570 });
+
+figma.showUI(__html__, { width: 600, height: 575 });
function hexToRgb(hex: string) {
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
@@ -20,12 +21,14 @@ function UpdateColor(
modeId: string,
variable: Variable,
) {
- const number = variable.name.split('/')[2];
+ const suffix = variable.name.split('/')[2];
if (variable.name.startsWith(`theme/${type}`)) {
for (const [key, value] of Object.entries(obj)) {
- if (key === number) {
+ if (key === suffix) {
const rgb = hexToRgb(value['value'] as string);
- variable.setValueForMode(modeId, rgb || { r: 0.2, g: 0.4, b: 0.6 });
+ if (rgb) {
+ variable.setValueForMode(modeId, rgb);
+ }
}
}
}
@@ -39,50 +42,32 @@ function getModeIndex(mode: string) {
}
}
-type OBJ = {
- theme: {
- accent: object;
- neutral: object;
- brand1: object;
- brand2: object;
- brand3: object;
- };
-};
-
figma.ui.onmessage = (msg: { type: string; text: string; mode: string }) => {
- // One way of distinguishing between different types of messages sent from
- // your HTML page is to use an object with a "type" property like this.
if (msg.type === 'update-variables') {
- const nodes: SceneNode[] = [];
- const obj: OBJ = JSON.parse(msg.text);
- const accent = obj['theme']['accent'];
- const neutral = obj['theme']['neutral'];
- const brand1 = obj['theme']['brand1'];
- const brand2 = obj['theme']['brand2'];
- const brand3 = obj['theme']['brand3'];
+ const obj = JSON.parse(msg.text);
+ const accent = obj['theme']['accent'] as object;
+ const neutral = obj['theme']['neutral'] as object;
+ const brand1 = obj['theme']['brand1'] as object;
+ const brand2 = obj['theme']['brand2'] as object;
+ const brand3 = obj['theme']['brand3'] as object;
- figma.variables
- .getVariableCollectionByIdAsync('VariableCollectionId:34811:5472')
- .then((collection) => {
- if (collection) {
+ figma.variables.getLocalVariableCollectionsAsync().then((collections) => {
+ for (const collection of collections) {
+ if (collection.name === 'Mode') {
figma.variables.getLocalVariablesAsync('COLOR').then((variables) => {
const modeId: string =
collection.modes[getModeIndex(msg.mode)].modeId;
- for (let i = 0; i < variables.length; i++) {
- UpdateColor('accent', accent, modeId, variables[i]);
- UpdateColor('neutral', neutral, modeId, variables[i]);
- UpdateColor('brand1', brand1, modeId, variables[i]);
- UpdateColor('brand2', brand2, modeId, variables[i]);
- UpdateColor('brand3', brand3, modeId, variables[i]);
+ for (const variable of variables) {
+ UpdateColor('accent', accent, modeId, variable);
+ UpdateColor('neutral', neutral, modeId, variable);
+ UpdateColor('brand1', brand1, modeId, variable);
+ UpdateColor('brand2', brand2, modeId, variable);
+ UpdateColor('brand3', brand3, modeId, variable);
}
});
- } else {
- console.error('Variable collection is null.');
}
- });
-
- figma.currentPage.selection = nodes;
- figma.viewport.scrollAndZoomIntoView(nodes);
+ }
+ });
}
};
diff --git a/plugins/figma-sync/src/ui/App.css b/plugins/figma-sync/src/ui/App.css
index d8bf5e7155..31dd0c65ce 100644
--- a/plugins/figma-sync/src/ui/App.css
+++ b/plugins/figma-sync/src/ui/App.css
@@ -37,6 +37,11 @@ body {
padding: 0 16px;
}
+.button {
+ position: absolute;
+ bottom: 65px;
+}
+
.link {
height: 52px;
display: flex;
diff --git a/plugins/figma-sync/src/ui/components/Footer/Footer.css b/plugins/figma-sync/src/ui/components/Footer/Footer.css
index 802bd40fe3..82fc26f57b 100644
--- a/plugins/figma-sync/src/ui/components/Footer/Footer.css
+++ b/plugins/figma-sync/src/ui/components/Footer/Footer.css
@@ -1,5 +1,7 @@
.footer {
position: absolute;
+ z-index: 10;
+ background-color: white;
bottom: 0;
left: 0;
right: 0;
diff --git a/plugins/figma-sync/src/ui/components/Toast/Toast.css b/plugins/figma-sync/src/ui/components/Toast/Toast.css
new file mode 100644
index 0000000000..ad193052a7
--- /dev/null
+++ b/plugins/figma-sync/src/ui/components/Toast/Toast.css
@@ -0,0 +1,24 @@
+.toast {
+ position: fixed;
+ z-index: 5;
+ bottom: -20px;
+ border-radius: 4px;
+ left: 16px;
+ right: 16px;
+ background-color: var(--ds-color-accent-surface-default);
+ box-shadow: var(--ds-shadow-xs);
+ height: 58px;
+ display: flex;
+ align-items: center;
+ padding: 0 16px;
+ gap: 12px;
+ transition: 0.4s all ease-out;
+}
+
+.toastActive {
+ bottom: 65px;
+}
+
+.toastClose {
+ bottom: -20px;
+}
diff --git a/plugins/figma-sync/src/ui/components/Toast/Toast.tsx b/plugins/figma-sync/src/ui/components/Toast/Toast.tsx
new file mode 100644
index 0000000000..94ad757597
--- /dev/null
+++ b/plugins/figma-sync/src/ui/components/Toast/Toast.tsx
@@ -0,0 +1,50 @@
+import { useEffect, useState } from 'react';
+import './Toast.css';
+import { Spinner } from '@digdir/designsystemet-react';
+import { CheckmarkIcon } from '@navikt/aksel-icons';
+import cl from 'clsx/lite';
+
+export const Toast = () => {
+ const [success, setSuccess] = useState(false);
+ const [open, setOpen] = useState(false);
+ const [close, setClose] = useState(false);
+
+ useEffect(() => {
+ setTimeout(() => {
+ setOpen(true);
+ }, 10);
+ setTimeout(() => {
+ setSuccess(true);
+ }, 6000);
+
+ setTimeout(() => {
+ setClose(true);
+ }, 7500);
+ }, []);
+
+ return (
+
+ {success && (
+ <>
+
+
+
{' '}
+ Oppdatering vellykket!
+ >
+ )}
+ {!success && (
+ <>
+
+ Oppdaterer variabler...
+ >
+ )}
+
+ );
+};
diff --git a/plugins/figma-sync/src/ui/pages/PageOne/PageOne.tsx b/plugins/figma-sync/src/ui/pages/PageOne/PageOne.tsx
index 7e36e874da..efbb89f229 100644
--- a/plugins/figma-sync/src/ui/pages/PageOne/PageOne.tsx
+++ b/plugins/figma-sync/src/ui/pages/PageOne/PageOne.tsx
@@ -8,26 +8,19 @@ import {
Link,
Spinner,
} from '@digdir/designsystemet-react';
-import React, { useEffect, useState } from 'react';
+import React, { useState } from 'react';
+
+import { Toast } from '@ui/components/Toast/Toast';
+
+import type { JsonInput } from '../../../common/types';
function PageOne() {
const [jsonText, setJsonText] = useState('');
const [mode, setMode] = useState('light');
const [errorText, setErrorText] = useState('');
const [isLoading, setIsLoading] = useState(false);
- const [buttonText, setButtonText] = useState('Oppdater variabler');
- useEffect(() => {
- window.onmessage = (event: {
- data: { pluginMessage: { type: string; message: string } };
- }) => {
- const { type, message } = event.data.pluginMessage;
- if (type === 'create-rectangles') {
- console.log(`Figma Says: ${message}`);
- }
- };
- }, []);
- const isValidJson = (str: string) => {
+ const isJsonValid = (str: string) => {
try {
JSON.parse(str);
} catch (e) {
@@ -36,33 +29,54 @@ function PageOne() {
return true;
};
+ const isJsonCorrect = (str: string) => {
+ try {
+ const obj = JSON.parse(str) as JsonInput;
+ if (
+ obj.theme.accent &&
+ obj.theme.neutral &&
+ obj.theme.brand1 &&
+ obj.theme.brand2 &&
+ obj.theme.brand3
+ ) {
+ return true;
+ }
+ } catch (e) {
+ return false;
+ }
+ return false;
+ };
+
const onSubmit = () => {
if (isLoading) {
return;
}
+
if (jsonText === '') {
setErrorText('Dette feltet er påkrevd.');
return;
}
- if (!isValidJson(jsonText)) {
+ if (!isJsonValid(jsonText) || !isJsonCorrect(jsonText)) {
setErrorText('Ugyldig JSON, prøv å kopier og lim inn på nytt.');
setJsonText('');
return;
}
- parent.postMessage(
- { pluginMessage: { type: 'update-variables', text: jsonText, mode } },
- '*',
- );
-
- setButtonText('Oppdaterer...');
setIsLoading(true);
+ setErrorText('');
+ setJsonText('');
+
+ setTimeout(() => {
+ parent.postMessage(
+ { pluginMessage: { type: 'update-variables', text: jsonText, mode } },
+ '*',
+ );
+ }, 400);
setTimeout(() => {
setIsLoading(false);
- setButtonText('Oppdater variabler');
- }, 6000);
+ }, 7900);
};
return (
@@ -115,16 +129,11 @@ function PageOne() {
+ {isLoading && }
);
diff --git a/plugins/figma-sync/tsconfig.json b/plugins/figma-sync/tsconfig.json
index 7abf6a13df..9ff44e4527 100644
--- a/plugins/figma-sync/tsconfig.json
+++ b/plugins/figma-sync/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "ES2022",
- "moduleResolution": "Node",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"useDefineForClassFields": true,
"skipLibCheck": true,
"esModuleInterop": true,
diff --git a/yarn.lock b/yarn.lock
index 42d8822f34..2ce54f03bb 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -7710,7 +7710,7 @@ __metadata:
languageName: node
linkType: hard
-"ansi-styles@npm:^6.1.0":
+"ansi-styles@npm:^6.1.0, ansi-styles@npm:^6.2.1":
version: 6.2.1
resolution: "ansi-styles@npm:6.2.1"
checksum: 10/70fdf883b704d17a5dfc9cde206e698c16bcd74e7f196ab821511651aee4f9f76c9514bdfa6ca3a27b5e49138b89cb222a28caf3afe4567570139577f991df32
@@ -7820,16 +7820,6 @@ __metadata:
languageName: node
linkType: hard
-"array-buffer-byte-length@npm:^1.0.1":
- version: 1.0.1
- resolution: "array-buffer-byte-length@npm:1.0.1"
- dependencies:
- call-bind: "npm:^1.0.5"
- is-array-buffer: "npm:^3.0.4"
- checksum: 10/53524e08f40867f6a9f35318fafe467c32e45e9c682ba67b11943e167344d2febc0f6977a17e699b05699e805c3e8f073d876f8bbf1b559ed494ad2cd0fae09e
- languageName: node
- linkType: hard
-
"array-differ@npm:^3.0.0":
version: 3.0.0
resolution: "array-differ@npm:3.0.0"
@@ -7936,22 +7926,6 @@ __metadata:
languageName: node
linkType: hard
-"arraybuffer.prototype.slice@npm:^1.0.3":
- version: 1.0.3
- resolution: "arraybuffer.prototype.slice@npm:1.0.3"
- dependencies:
- array-buffer-byte-length: "npm:^1.0.1"
- call-bind: "npm:^1.0.5"
- define-properties: "npm:^1.2.1"
- es-abstract: "npm:^1.22.3"
- es-errors: "npm:^1.2.1"
- get-intrinsic: "npm:^1.2.3"
- is-array-buffer: "npm:^3.0.4"
- is-shared-array-buffer: "npm:^1.0.2"
- checksum: 10/0221f16c1e3ec7b67da870ee0e1f12b825b5f9189835392b59a22990f715827561a4f4cd5330dc7507de272d8df821be6cd4b0cb569babf5ea4be70e365a2f3d
- languageName: node
- linkType: hard
-
"arrify@npm:^1.0.1":
version: 1.0.1
resolution: "arrify@npm:1.0.1"
@@ -8082,15 +8056,6 @@ __metadata:
languageName: node
linkType: hard
-"available-typed-arrays@npm:^1.0.7":
- version: 1.0.7
- resolution: "available-typed-arrays@npm:1.0.7"
- dependencies:
- possible-typed-array-names: "npm:^1.0.0"
- checksum: 10/6c9da3a66caddd83c875010a1ca8ef11eac02ba15fb592dc9418b2b5e7b77b645fa7729380a92d9835c2f05f2ca1b6251f39b993e0feb3f1517c74fa1af02cab
- languageName: node
- linkType: hard
-
"axe-core@npm:=4.7.0":
version: 4.7.0
resolution: "axe-core@npm:4.7.0"
@@ -8551,7 +8516,7 @@ __metadata:
languageName: node
linkType: hard
-"call-bind@npm:^1.0.6, call-bind@npm:^1.0.7":
+"call-bind@npm:^1.0.7":
version: 1.0.7
resolution: "call-bind@npm:1.0.7"
dependencies:
@@ -8668,7 +8633,7 @@ __metadata:
languageName: node
linkType: hard
-"chalk@npm:^2.4.1, chalk@npm:^2.4.2":
+"chalk@npm:^2.4.2":
version: 2.4.2
resolution: "chalk@npm:2.4.2"
dependencies:
@@ -9496,19 +9461,6 @@ __metadata:
languageName: node
linkType: hard
-"cross-spawn@npm:^6.0.5":
- version: 6.0.5
- resolution: "cross-spawn@npm:6.0.5"
- dependencies:
- nice-try: "npm:^1.0.4"
- path-key: "npm:^2.0.1"
- semver: "npm:^5.5.0"
- shebang-command: "npm:^1.2.0"
- which: "npm:^1.2.9"
- checksum: 10/f07e643b4875f26adffcd7f13bc68d9dff20cf395f8ed6f43a23f3ee24fc3a80a870a32b246fd074e514c8fd7da5f978ac6a7668346eec57aa87bac89c1ed3a1
- languageName: node
- linkType: hard
-
"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3":
version: 7.0.3
resolution: "cross-spawn@npm:7.0.3"
@@ -9912,39 +9864,6 @@ __metadata:
languageName: node
linkType: hard
-"data-view-buffer@npm:^1.0.1":
- version: 1.0.1
- resolution: "data-view-buffer@npm:1.0.1"
- dependencies:
- call-bind: "npm:^1.0.6"
- es-errors: "npm:^1.3.0"
- is-data-view: "npm:^1.0.1"
- checksum: 10/5919a39a18ee919573336158fd162fdf8ada1bc23a139f28543fd45fac48e0ea4a3ad3bfde91de124d4106e65c4a7525f6a84c20ba0797ec890a77a96d13a82a
- languageName: node
- linkType: hard
-
-"data-view-byte-length@npm:^1.0.1":
- version: 1.0.1
- resolution: "data-view-byte-length@npm:1.0.1"
- dependencies:
- call-bind: "npm:^1.0.7"
- es-errors: "npm:^1.3.0"
- is-data-view: "npm:^1.0.1"
- checksum: 10/f33c65e58d8d0432ad79761f2e8a579818d724b5dc6dc4e700489b762d963ab30873c0f1c37d8f2ed12ef51c706d1195f64422856d25f067457aeec50cc40aac
- languageName: node
- linkType: hard
-
-"data-view-byte-offset@npm:^1.0.0":
- version: 1.0.0
- resolution: "data-view-byte-offset@npm:1.0.0"
- dependencies:
- call-bind: "npm:^1.0.6"
- es-errors: "npm:^1.3.0"
- is-data-view: "npm:^1.0.1"
- checksum: 10/96f34f151bf02affb7b9f98762fb7aca1dd5f4553cb57b80bce750ca609c15d33ca659568ef1d422f7e35680736cbccb893a3d4b012760c758c1446bbdc4c6db
- languageName: node
- linkType: hard
-
"dateformat@npm:^3.0.3":
version: 3.0.3
resolution: "dateformat@npm:3.0.3"
@@ -10684,60 +10603,6 @@ __metadata:
languageName: node
linkType: hard
-"es-abstract@npm:^1.22.3, es-abstract@npm:^1.23.0, es-abstract@npm:^1.23.2":
- version: 1.23.3
- resolution: "es-abstract@npm:1.23.3"
- dependencies:
- array-buffer-byte-length: "npm:^1.0.1"
- arraybuffer.prototype.slice: "npm:^1.0.3"
- available-typed-arrays: "npm:^1.0.7"
- call-bind: "npm:^1.0.7"
- data-view-buffer: "npm:^1.0.1"
- data-view-byte-length: "npm:^1.0.1"
- data-view-byte-offset: "npm:^1.0.0"
- es-define-property: "npm:^1.0.0"
- es-errors: "npm:^1.3.0"
- es-object-atoms: "npm:^1.0.0"
- es-set-tostringtag: "npm:^2.0.3"
- es-to-primitive: "npm:^1.2.1"
- function.prototype.name: "npm:^1.1.6"
- get-intrinsic: "npm:^1.2.4"
- get-symbol-description: "npm:^1.0.2"
- globalthis: "npm:^1.0.3"
- gopd: "npm:^1.0.1"
- has-property-descriptors: "npm:^1.0.2"
- has-proto: "npm:^1.0.3"
- has-symbols: "npm:^1.0.3"
- hasown: "npm:^2.0.2"
- internal-slot: "npm:^1.0.7"
- is-array-buffer: "npm:^3.0.4"
- is-callable: "npm:^1.2.7"
- is-data-view: "npm:^1.0.1"
- is-negative-zero: "npm:^2.0.3"
- is-regex: "npm:^1.1.4"
- is-shared-array-buffer: "npm:^1.0.3"
- is-string: "npm:^1.0.7"
- is-typed-array: "npm:^1.1.13"
- is-weakref: "npm:^1.0.2"
- object-inspect: "npm:^1.13.1"
- object-keys: "npm:^1.1.1"
- object.assign: "npm:^4.1.5"
- regexp.prototype.flags: "npm:^1.5.2"
- safe-array-concat: "npm:^1.1.2"
- safe-regex-test: "npm:^1.0.3"
- string.prototype.trim: "npm:^1.2.9"
- string.prototype.trimend: "npm:^1.0.8"
- string.prototype.trimstart: "npm:^1.0.8"
- typed-array-buffer: "npm:^1.0.2"
- typed-array-byte-length: "npm:^1.0.1"
- typed-array-byte-offset: "npm:^1.0.2"
- typed-array-length: "npm:^1.0.6"
- unbox-primitive: "npm:^1.0.2"
- which-typed-array: "npm:^1.1.15"
- checksum: 10/2da795a6a1ac5fc2c452799a409acc2e3692e06dc6440440b076908617188899caa562154d77263e3053bcd9389a07baa978ab10ac3b46acc399bd0c77be04cb
- languageName: node
- linkType: hard
-
"es-define-property@npm:^1.0.0":
version: 1.0.0
resolution: "es-define-property@npm:1.0.0"
@@ -10747,7 +10612,7 @@ __metadata:
languageName: node
linkType: hard
-"es-errors@npm:^1.2.1, es-errors@npm:^1.3.0":
+"es-errors@npm:^1.3.0":
version: 1.3.0
resolution: "es-errors@npm:1.3.0"
checksum: 10/96e65d640156f91b707517e8cdc454dd7d47c32833aa3e85d79f24f9eb7ea85f39b63e36216ef0114996581969b59fe609a94e30316b08f5f4df1d44134cf8d5
@@ -10806,15 +10671,6 @@ __metadata:
languageName: node
linkType: hard
-"es-object-atoms@npm:^1.0.0":
- version: 1.0.0
- resolution: "es-object-atoms@npm:1.0.0"
- dependencies:
- es-errors: "npm:^1.3.0"
- checksum: 10/f8910cf477e53c0615f685c5c96210591841850871b81924fcf256bfbaa68c254457d994a4308c60d15b20805e7f61ce6abc669375e01a5349391a8c1767584f
- languageName: node
- linkType: hard
-
"es-set-tostringtag@npm:^2.0.1":
version: 2.0.2
resolution: "es-set-tostringtag@npm:2.0.2"
@@ -10826,17 +10682,6 @@ __metadata:
languageName: node
linkType: hard
-"es-set-tostringtag@npm:^2.0.3":
- version: 2.0.3
- resolution: "es-set-tostringtag@npm:2.0.3"
- dependencies:
- get-intrinsic: "npm:^1.2.4"
- has-tostringtag: "npm:^1.0.2"
- hasown: "npm:^2.0.1"
- checksum: 10/7227fa48a41c0ce83e0377b11130d324ac797390688135b8da5c28994c0165be8b252e15cd1de41e1325e5a5412511586960213e88f9ab4a5e7d028895db5129
- languageName: node
- linkType: hard
-
"es-shim-unscopables@npm:^1.0.0":
version: 1.0.0
resolution: "es-shim-unscopables@npm:1.0.0"
@@ -11712,7 +11557,7 @@ __metadata:
"@types/react": "npm:^18.0.28"
"@types/react-dom": "npm:^18.0.11"
"@vitejs/plugin-react": "npm:^4.2.1"
- npm-run-all: "npm:^4.1.5"
+ npm-run-all2: "npm:^6.2.0"
postcss: "npm:^8.4.21"
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
@@ -12167,7 +12012,7 @@ __metadata:
languageName: node
linkType: hard
-"get-intrinsic@npm:^1.2.3, get-intrinsic@npm:^1.2.4":
+"get-intrinsic@npm:^1.2.4":
version: 1.2.4
resolution: "get-intrinsic@npm:1.2.4"
dependencies:
@@ -12253,17 +12098,6 @@ __metadata:
languageName: node
linkType: hard
-"get-symbol-description@npm:^1.0.2":
- version: 1.0.2
- resolution: "get-symbol-description@npm:1.0.2"
- dependencies:
- call-bind: "npm:^1.0.5"
- es-errors: "npm:^1.3.0"
- get-intrinsic: "npm:^1.2.4"
- checksum: 10/e1cb53bc211f9dbe9691a4f97a46837a553c4e7caadd0488dc24ac694db8a390b93edd412b48dcdd0b4bbb4c595de1709effc75fc87c0839deedc6968f5bd973
- languageName: node
- linkType: hard
-
"get-tsconfig@npm:^4.5.0, get-tsconfig@npm:^4.7.2":
version: 4.7.2
resolution: "get-tsconfig@npm:4.7.2"
@@ -12698,13 +12532,6 @@ __metadata:
languageName: node
linkType: hard
-"has-proto@npm:^1.0.3":
- version: 1.0.3
- resolution: "has-proto@npm:1.0.3"
- checksum: 10/0b67c2c94e3bea37db3e412e3c41f79d59259875e636ba471e94c009cdfb1fa82bf045deeffafc7dbb9c148e36cae6b467055aaa5d9fad4316e11b41e3ba551a
- languageName: node
- linkType: hard
-
"has-symbols@npm:^1.0.1, has-symbols@npm:^1.0.2, has-symbols@npm:^1.0.3":
version: 1.0.3
resolution: "has-symbols@npm:1.0.3"
@@ -12721,15 +12548,6 @@ __metadata:
languageName: node
linkType: hard
-"has-tostringtag@npm:^1.0.2":
- version: 1.0.2
- resolution: "has-tostringtag@npm:1.0.2"
- dependencies:
- has-symbols: "npm:^1.0.3"
- checksum: 10/c74c5f5ceee3c8a5b8bc37719840dc3749f5b0306d818974141dda2471a1a2ca6c8e46b9d6ac222c5345df7a901c9b6f350b1e6d62763fec877e26609a401bfe
- languageName: node
- linkType: hard
-
"has-unicode@npm:2.0.1, has-unicode@npm:^2.0.1":
version: 2.0.1
resolution: "has-unicode@npm:2.0.1"
@@ -12755,15 +12573,6 @@ __metadata:
languageName: node
linkType: hard
-"hasown@npm:^2.0.1, hasown@npm:^2.0.2":
- version: 2.0.2
- resolution: "hasown@npm:2.0.2"
- dependencies:
- function-bind: "npm:^1.1.2"
- checksum: 10/7898a9c1788b2862cf0f9c345a6bec77ba4a0c0983c7f19d610c382343d4f98fa260686b225dfb1f88393a66679d2ec58ee310c1d6868c081eda7918f32cc70a
- languageName: node
- linkType: hard
-
"hast-util-heading-rank@npm:^3.0.0":
version: 3.0.0
resolution: "hast-util-heading-rank@npm:3.0.0"
@@ -13318,17 +13127,6 @@ __metadata:
languageName: node
linkType: hard
-"internal-slot@npm:^1.0.7":
- version: 1.0.7
- resolution: "internal-slot@npm:1.0.7"
- dependencies:
- es-errors: "npm:^1.3.0"
- hasown: "npm:^2.0.0"
- side-channel: "npm:^1.0.4"
- checksum: 10/3e66720508831153ecf37d13def9f6856f9f2960989ec8a0a0476c98f887fca9eff0163127466485cb825c900c2d6fc601aa9117b7783b90ffce23a71ea5d053
- languageName: node
- linkType: hard
-
"internmap@npm:1 - 2":
version: 2.0.3
resolution: "internmap@npm:2.0.3"
@@ -13421,16 +13219,6 @@ __metadata:
languageName: node
linkType: hard
-"is-array-buffer@npm:^3.0.4":
- version: 3.0.4
- resolution: "is-array-buffer@npm:3.0.4"
- dependencies:
- call-bind: "npm:^1.0.2"
- get-intrinsic: "npm:^1.2.1"
- checksum: 10/34a26213d981d58b30724ef37a1e0682f4040d580fa9ff58fdfdd3cefcb2287921718c63971c1c404951e7b747c50fdc7caf6e867e951353fa71b369c04c969b
- languageName: node
- linkType: hard
-
"is-arrayish@npm:^0.2.1":
version: 0.2.1
resolution: "is-arrayish@npm:0.2.1"
@@ -13518,15 +13306,6 @@ __metadata:
languageName: node
linkType: hard
-"is-data-view@npm:^1.0.1":
- version: 1.0.1
- resolution: "is-data-view@npm:1.0.1"
- dependencies:
- is-typed-array: "npm:^1.1.13"
- checksum: 10/4ba4562ac2b2ec005fefe48269d6bd0152785458cd253c746154ffb8a8ab506a29d0cfb3b74af87513843776a88e4981ae25c89457bf640a33748eab1a7216b5
- languageName: node
- linkType: hard
-
"is-date-object@npm:^1.0.1, is-date-object@npm:^1.0.5":
version: 1.0.5
resolution: "is-date-object@npm:1.0.5"
@@ -13680,13 +13459,6 @@ __metadata:
languageName: node
linkType: hard
-"is-negative-zero@npm:^2.0.3":
- version: 2.0.3
- resolution: "is-negative-zero@npm:2.0.3"
- checksum: 10/8fe5cffd8d4fb2ec7b49d657e1691889778d037494c6f40f4d1a524cadd658b4b53ad7b6b73a59bcb4b143ae9a3d15829af864b2c0f9d65ac1e678c4c80f17e5
- languageName: node
- linkType: hard
-
"is-number-object@npm:^1.0.4":
version: 1.0.7
resolution: "is-number-object@npm:1.0.7"
@@ -13798,15 +13570,6 @@ __metadata:
languageName: node
linkType: hard
-"is-shared-array-buffer@npm:^1.0.3":
- version: 1.0.3
- resolution: "is-shared-array-buffer@npm:1.0.3"
- dependencies:
- call-bind: "npm:^1.0.7"
- checksum: 10/bc5402900dc62b96ebb2548bf5b0a0bcfacc2db122236fe3ab3b3e3c884293a0d5eb777e73f059bcbf8dc8563bb65eae972fee0fb97e38a9ae27c8678f62bcfe
- languageName: node
- linkType: hard
-
"is-ssh@npm:^1.4.0":
version: 1.4.0
resolution: "is-ssh@npm:1.4.0"
@@ -13873,15 +13636,6 @@ __metadata:
languageName: node
linkType: hard
-"is-typed-array@npm:^1.1.13":
- version: 1.1.13
- resolution: "is-typed-array@npm:1.1.13"
- dependencies:
- which-typed-array: "npm:^1.1.14"
- checksum: 10/f850ba08286358b9a11aee6d93d371a45e3c59b5953549ee1c1a9a55ba5c1dd1bd9952488ae194ad8f32a9cf5e79c8fa5f0cc4d78c00720aa0bbcf238b38062d
- languageName: node
- linkType: hard
-
"is-unicode-supported@npm:^0.1.0":
version: 0.1.0
resolution: "is-unicode-supported@npm:0.1.0"
@@ -16896,13 +16650,6 @@ __metadata:
languageName: node
linkType: hard
-"nice-try@npm:^1.0.4":
- version: 1.0.5
- resolution: "nice-try@npm:1.0.5"
- checksum: 10/0b4af3b5bb5d86c289f7a026303d192a7eb4417231fe47245c460baeabae7277bcd8fd9c728fb6bd62c30b3e15cd6620373e2cf33353b095d8b403d3e8a15aff
- languageName: node
- linkType: hard
-
"no-case@npm:^3.0.4":
version: 3.0.4
resolution: "no-case@npm:3.0.4"
@@ -17260,24 +17007,23 @@ __metadata:
languageName: node
linkType: hard
-"npm-run-all@npm:^4.1.5":
- version: 4.1.5
- resolution: "npm-run-all@npm:4.1.5"
+"npm-run-all2@npm:^6.2.0":
+ version: 6.2.0
+ resolution: "npm-run-all2@npm:6.2.0"
dependencies:
- ansi-styles: "npm:^3.2.1"
- chalk: "npm:^2.4.1"
- cross-spawn: "npm:^6.0.5"
+ ansi-styles: "npm:^6.2.1"
+ cross-spawn: "npm:^7.0.3"
memorystream: "npm:^0.3.1"
- minimatch: "npm:^3.0.4"
- pidtree: "npm:^0.3.0"
- read-pkg: "npm:^3.0.0"
- shell-quote: "npm:^1.6.1"
- string.prototype.padend: "npm:^3.0.0"
+ minimatch: "npm:^9.0.0"
+ pidtree: "npm:^0.6.0"
+ read-package-json-fast: "npm:^3.0.2"
+ shell-quote: "npm:^1.7.3"
bin:
npm-run-all: bin/npm-run-all/index.js
+ npm-run-all2: bin/npm-run-all/index.js
run-p: bin/run-p/index.js
run-s: bin/run-s/index.js
- checksum: 10/46020e92813223d015f4178cce5a2338164be5f25b0c391e256c0e84ac082544986c220013f1be7f002dcac07b81c7ee0cb5c5c30b84fd6ebb6de96a8d713745
+ checksum: 10/917937b6280a4f7af168b784fba10f0c441d58d86ab5595c88e4aa4b9f69f7eaa0af62ddc8a12fed705debcfc5f77bf80bad48936a3384f3a0b527111b7ff4ec
languageName: node
linkType: hard
@@ -17461,18 +17207,6 @@ __metadata:
languageName: node
linkType: hard
-"object.assign@npm:^4.1.5":
- version: 4.1.5
- resolution: "object.assign@npm:4.1.5"
- dependencies:
- call-bind: "npm:^1.0.5"
- define-properties: "npm:^1.2.1"
- has-symbols: "npm:^1.0.3"
- object-keys: "npm:^1.1.1"
- checksum: 10/dbb22da4cda82e1658349ea62b80815f587b47131b3dd7a4ab7f84190ab31d206bbd8fe7e26ae3220c55b65725ac4529825f6142154211220302aa6b1518045d
- languageName: node
- linkType: hard
-
"object.entries@npm:^1.1.6, object.entries@npm:^1.1.7":
version: 1.1.7
resolution: "object.entries@npm:1.1.7"
@@ -17964,13 +17698,6 @@ __metadata:
languageName: node
linkType: hard
-"path-key@npm:^2.0.1":
- version: 2.0.1
- resolution: "path-key@npm:2.0.1"
- checksum: 10/6e654864e34386a2a8e6bf72cf664dcabb76574dd54013add770b374384d438aca95f4357bb26935b514a4e4c2c9b19e191f2200b282422a76ee038b9258c5e7
- languageName: node
- linkType: hard
-
"path-key@npm:^3.0.0, path-key@npm:^3.1.0":
version: 3.1.1
resolution: "path-key@npm:3.1.1"
@@ -18106,12 +17833,12 @@ __metadata:
languageName: node
linkType: hard
-"pidtree@npm:^0.3.0":
- version: 0.3.1
- resolution: "pidtree@npm:0.3.1"
+"pidtree@npm:^0.6.0":
+ version: 0.6.0
+ resolution: "pidtree@npm:0.6.0"
bin:
pidtree: bin/pidtree.js
- checksum: 10/eb85b841cd168151bfadb984f9514d67a884d6962d4a2d250d4e8acf85cf031d7dab080f7272fb2735f9033364e5058c73eeebbee3cf6fd829169a75d19f189a
+ checksum: 10/ea67fb3159e170fd069020e0108ba7712df9f0fd13c8db9b2286762856ddce414fb33932e08df4bfe36e91fe860b51852aee49a6f56eb4714b69634343add5df
languageName: node
linkType: hard
@@ -18204,13 +17931,6 @@ __metadata:
languageName: node
linkType: hard
-"possible-typed-array-names@npm:^1.0.0":
- version: 1.0.0
- resolution: "possible-typed-array-names@npm:1.0.0"
- checksum: 10/8ed3e96dfeea1c5880c1f4c9cb707e5fb26e8be22f14f82ef92df20fd2004e635c62ba47fbe8f2bb63bfd80dac1474be2fb39798da8c2feba2815435d1f749af
- languageName: node
- linkType: hard
-
"postcss-calc-ast-parser@npm:^0.1.4":
version: 0.1.4
resolution: "postcss-calc-ast-parser@npm:0.1.4"
@@ -19877,7 +19597,7 @@ __metadata:
languageName: node
linkType: hard
-"read-package-json-fast@npm:^3.0.0":
+"read-package-json-fast@npm:^3.0.0, read-package-json-fast@npm:^3.0.2":
version: 3.0.2
resolution: "read-package-json-fast@npm:3.0.2"
dependencies:
@@ -20155,18 +19875,6 @@ __metadata:
languageName: node
linkType: hard
-"regexp.prototype.flags@npm:^1.5.2":
- version: 1.5.2
- resolution: "regexp.prototype.flags@npm:1.5.2"
- dependencies:
- call-bind: "npm:^1.0.6"
- define-properties: "npm:^1.2.1"
- es-errors: "npm:^1.3.0"
- set-function-name: "npm:^2.0.1"
- checksum: 10/9fffc01da9c4e12670ff95bc5204364615fcc12d86fc30642765af908675678ebb0780883c874b2dbd184505fb52fa603d80073ecf69f461ce7f56b15d10be9c
- languageName: node
- linkType: hard
-
"regexpu-core@npm:^5.3.1":
version: 5.3.2
resolution: "regexpu-core@npm:5.3.2"
@@ -20885,18 +20593,6 @@ __metadata:
languageName: node
linkType: hard
-"safe-array-concat@npm:^1.1.2":
- version: 1.1.2
- resolution: "safe-array-concat@npm:1.1.2"
- dependencies:
- call-bind: "npm:^1.0.7"
- get-intrinsic: "npm:^1.2.4"
- has-symbols: "npm:^1.0.3"
- isarray: "npm:^2.0.5"
- checksum: 10/a54f8040d7cb696a1ee38d19cc71ab3cfb654b9b81bae00c6459618cfad8214ece7e6666592f9c925aafef43d0a20c5e6fbb3413a2b618e1ce9d516a2e6dcfc5
- languageName: node
- linkType: hard
-
"safe-buffer@npm:5.1.2, safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1":
version: 5.1.2
resolution: "safe-buffer@npm:5.1.2"
@@ -20929,17 +20625,6 @@ __metadata:
languageName: node
linkType: hard
-"safe-regex-test@npm:^1.0.3":
- version: 1.0.3
- resolution: "safe-regex-test@npm:1.0.3"
- dependencies:
- call-bind: "npm:^1.0.6"
- es-errors: "npm:^1.3.0"
- is-regex: "npm:^1.1.4"
- checksum: 10/b04de61114b10274d92e25b6de7ccb5de07f11ea15637ff636de4b5190c0f5cd8823fe586dde718504cf78055437d70fd8804976894df502fcf5a210c970afb3
- languageName: node
- linkType: hard
-
"safer-buffer@npm:>= 2.1.2 < 3, safer-buffer@npm:>= 2.1.2 < 3.0.0":
version: 2.1.2
resolution: "safer-buffer@npm:2.1.2"
@@ -21012,7 +20697,7 @@ __metadata:
languageName: node
linkType: hard
-"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.5.0, semver@npm:^5.6.0":
+"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.6.0":
version: 5.7.2
resolution: "semver@npm:5.7.2"
bin:
@@ -21161,15 +20846,6 @@ __metadata:
languageName: node
linkType: hard
-"shebang-command@npm:^1.2.0":
- version: 1.2.0
- resolution: "shebang-command@npm:1.2.0"
- dependencies:
- shebang-regex: "npm:^1.0.0"
- checksum: 10/9eed1750301e622961ba5d588af2212505e96770ec376a37ab678f965795e995ade7ed44910f5d3d3cb5e10165a1847f52d3348c64e146b8be922f7707958908
- languageName: node
- linkType: hard
-
"shebang-command@npm:^2.0.0":
version: 2.0.0
resolution: "shebang-command@npm:2.0.0"
@@ -21179,13 +20855,6 @@ __metadata:
languageName: node
linkType: hard
-"shebang-regex@npm:^1.0.0":
- version: 1.0.0
- resolution: "shebang-regex@npm:1.0.0"
- checksum: 10/404c5a752cd40f94591dfd9346da40a735a05139dac890ffc229afba610854d8799aaa52f87f7e0c94c5007f2c6af55bdcaeb584b56691926c5eaf41dc8f1372
- languageName: node
- linkType: hard
-
"shebang-regex@npm:^3.0.0":
version: 3.0.0
resolution: "shebang-regex@npm:3.0.0"
@@ -21193,7 +20862,7 @@ __metadata:
languageName: node
linkType: hard
-"shell-quote@npm:^1.6.1":
+"shell-quote@npm:^1.7.3":
version: 1.8.1
resolution: "shell-quote@npm:1.8.1"
checksum: 10/af19ab5a1ec30cb4b2f91fd6df49a7442d5c4825a2e269b3712eded10eedd7f9efeaab96d57829880733fc55bcdd8e9b1d8589b4befb06667c731d08145e274d
@@ -21672,18 +21341,6 @@ __metadata:
languageName: node
linkType: hard
-"string.prototype.padend@npm:^3.0.0":
- version: 3.1.6
- resolution: "string.prototype.padend@npm:3.1.6"
- dependencies:
- call-bind: "npm:^1.0.7"
- define-properties: "npm:^1.2.1"
- es-abstract: "npm:^1.23.2"
- es-object-atoms: "npm:^1.0.0"
- checksum: 10/52cebc58a0252ef45dd0fec3ee4e8655bcc8b6c07b4956c5965542316f5ab3a38ca8d1d06e9804979828fba9de61e59294fe23f64e5d413ac40963a4d4969c19
- languageName: node
- linkType: hard
-
"string.prototype.trim@npm:^1.2.8":
version: 1.2.8
resolution: "string.prototype.trim@npm:1.2.8"
@@ -21695,18 +21352,6 @@ __metadata:
languageName: node
linkType: hard
-"string.prototype.trim@npm:^1.2.9":
- version: 1.2.9
- resolution: "string.prototype.trim@npm:1.2.9"
- dependencies:
- call-bind: "npm:^1.0.7"
- define-properties: "npm:^1.2.1"
- es-abstract: "npm:^1.23.0"
- es-object-atoms: "npm:^1.0.0"
- checksum: 10/b2170903de6a2fb5a49bb8850052144e04b67329d49f1343cdc6a87cb24fb4e4b8ad00d3e273a399b8a3d8c32c89775d93a8f43cb42fbff303f25382079fb58a
- languageName: node
- linkType: hard
-
"string.prototype.trimend@npm:^1.0.7":
version: 1.0.7
resolution: "string.prototype.trimend@npm:1.0.7"
@@ -21718,17 +21363,6 @@ __metadata:
languageName: node
linkType: hard
-"string.prototype.trimend@npm:^1.0.8":
- version: 1.0.8
- resolution: "string.prototype.trimend@npm:1.0.8"
- dependencies:
- call-bind: "npm:^1.0.7"
- define-properties: "npm:^1.2.1"
- es-object-atoms: "npm:^1.0.0"
- checksum: 10/c2e862ae724f95771da9ea17c27559d4eeced9208b9c20f69bbfcd1b9bc92375adf8af63a103194dba17c4cc4a5cb08842d929f415ff9d89c062d44689c8761b
- languageName: node
- linkType: hard
-
"string.prototype.trimstart@npm:^1.0.7":
version: 1.0.7
resolution: "string.prototype.trimstart@npm:1.0.7"
@@ -21740,17 +21374,6 @@ __metadata:
languageName: node
linkType: hard
-"string.prototype.trimstart@npm:^1.0.8":
- version: 1.0.8
- resolution: "string.prototype.trimstart@npm:1.0.8"
- dependencies:
- call-bind: "npm:^1.0.7"
- define-properties: "npm:^1.2.1"
- es-object-atoms: "npm:^1.0.0"
- checksum: 10/160167dfbd68e6f7cb9f51a16074eebfce1571656fc31d40c3738ca9e30e35496f2c046fe57b6ad49f65f238a152be8c86fd9a2dd58682b5eba39dad995b3674
- languageName: node
- linkType: hard
-
"string_decoder@npm:^1.1.1, string_decoder@npm:^1.3.0":
version: 1.3.0
resolution: "string_decoder@npm:1.3.0"
@@ -22943,17 +22566,6 @@ __metadata:
languageName: node
linkType: hard
-"typed-array-buffer@npm:^1.0.2":
- version: 1.0.2
- resolution: "typed-array-buffer@npm:1.0.2"
- dependencies:
- call-bind: "npm:^1.0.7"
- es-errors: "npm:^1.3.0"
- is-typed-array: "npm:^1.1.13"
- checksum: 10/02ffc185d29c6df07968272b15d5319a1610817916ec8d4cd670ded5d1efe72901541ff2202fcc622730d8a549c76e198a2f74e312eabbfb712ed907d45cbb0b
- languageName: node
- linkType: hard
-
"typed-array-byte-length@npm:^1.0.0":
version: 1.0.0
resolution: "typed-array-byte-length@npm:1.0.0"
@@ -22966,19 +22578,6 @@ __metadata:
languageName: node
linkType: hard
-"typed-array-byte-length@npm:^1.0.1":
- version: 1.0.1
- resolution: "typed-array-byte-length@npm:1.0.1"
- dependencies:
- call-bind: "npm:^1.0.7"
- for-each: "npm:^0.3.3"
- gopd: "npm:^1.0.1"
- has-proto: "npm:^1.0.3"
- is-typed-array: "npm:^1.1.13"
- checksum: 10/e4a38329736fe6a73b52a09222d4a9e8de14caaa4ff6ad8e55217f6705b017d9815b7284c85065b3b8a7704e226ccff1372a72b78c2a5b6b71b7bf662308c903
- languageName: node
- linkType: hard
-
"typed-array-byte-offset@npm:^1.0.0":
version: 1.0.0
resolution: "typed-array-byte-offset@npm:1.0.0"
@@ -22992,20 +22591,6 @@ __metadata:
languageName: node
linkType: hard
-"typed-array-byte-offset@npm:^1.0.2":
- version: 1.0.2
- resolution: "typed-array-byte-offset@npm:1.0.2"
- dependencies:
- available-typed-arrays: "npm:^1.0.7"
- call-bind: "npm:^1.0.7"
- for-each: "npm:^0.3.3"
- gopd: "npm:^1.0.1"
- has-proto: "npm:^1.0.3"
- is-typed-array: "npm:^1.1.13"
- checksum: 10/ac26d720ebb2aacbc45e231347c359e6649f52e0cfe0e76e62005912f8030d68e4cb7b725b1754e8fdd48e433cb68df5a8620a3e420ad1457d666e8b29bf9150
- languageName: node
- linkType: hard
-
"typed-array-length@npm:^1.0.4":
version: 1.0.4
resolution: "typed-array-length@npm:1.0.4"
@@ -23017,20 +22602,6 @@ __metadata:
languageName: node
linkType: hard
-"typed-array-length@npm:^1.0.6":
- version: 1.0.6
- resolution: "typed-array-length@npm:1.0.6"
- dependencies:
- call-bind: "npm:^1.0.7"
- for-each: "npm:^0.3.3"
- gopd: "npm:^1.0.1"
- has-proto: "npm:^1.0.3"
- is-typed-array: "npm:^1.1.13"
- possible-typed-array-names: "npm:^1.0.0"
- checksum: 10/05e96cf4ff836743ebfc593d86133b8c30e83172cb5d16c56814d7bacfed57ce97e87ada9c4b2156d9aaa59f75cdef01c25bd9081c7826e0b869afbefc3e8c39
- languageName: node
- linkType: hard
-
"typedarray@npm:^0.0.6":
version: 0.0.6
resolution: "typedarray@npm:0.0.6"
@@ -24146,20 +23717,7 @@ __metadata:
languageName: node
linkType: hard
-"which-typed-array@npm:^1.1.14, which-typed-array@npm:^1.1.15":
- version: 1.1.15
- resolution: "which-typed-array@npm:1.1.15"
- dependencies:
- available-typed-arrays: "npm:^1.0.7"
- call-bind: "npm:^1.0.7"
- for-each: "npm:^0.3.3"
- gopd: "npm:^1.0.1"
- has-tostringtag: "npm:^1.0.2"
- checksum: 10/c3b6a99beadc971baa53c3ee5b749f2b9bdfa3b3b9a70650dd8511a48b61d877288b498d424712e9991d16019633086bd8b5923369460d93463c5825fa36c448
- languageName: node
- linkType: hard
-
-"which@npm:^1.2.9, which@npm:^1.3.1":
+"which@npm:^1.3.1":
version: 1.3.1
resolution: "which@npm:1.3.1"
dependencies: