From 1211fe99fc76b0fa0e43dbc27f0d62e762b6eb2f Mon Sep 17 00:00:00 2001 From: origami-z <5257855+origami-z@users.noreply.github.com> Date: Fri, 1 Nov 2024 17:19:52 +0000 Subject: [PATCH] Add more examples --- figma.config.json | 1 + package.json | 2 +- packages/core/figma-src/Avatar.figma.tsx | 56 ++++ packages/core/figma-src/Banner.figma.tsx | 63 +++++ packages/core/figma-src/Button.figma.tsx | 3 +- packages/core/figma-src/Card.figma.tsx | 23 ++ packages/core/figma-src/Divider.figma.tsx | 31 +++ packages/core/figma-src/Tooltip.figma.tsx | 23 +- yarn.lock | 325 ++++++++++++---------- 9 files changed, 356 insertions(+), 171 deletions(-) create mode 100644 packages/core/figma-src/Avatar.figma.tsx create mode 100644 packages/core/figma-src/Banner.figma.tsx create mode 100644 packages/core/figma-src/Card.figma.tsx create mode 100644 packages/core/figma-src/Divider.figma.tsx diff --git a/figma.config.json b/figma.config.json index 219222f1ab..d85662362a 100644 --- a/figma.config.json +++ b/figma.config.json @@ -5,6 +5,7 @@ "packages/core/figma-src/**/*.{tsx,jsx}", "packages/icons/src/**/*.{tsx,jsx}" ], + "exclude": ["**/__tests__/*.{tsx,jsx}"], "importPaths": { "packages/core/src/*": "@salt-ds/core", "packages/icons/*": "@salt-ds/icons" diff --git a/package.json b/package.json index dd91091b0e..535c4d5f19 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@changesets/cli": "^2.27.7", "@cypress/code-coverage": "^3.12.35", "@faker-js/faker": "^8.0.0", - "@figma/code-connect": "^1.2.0", + "@figma/code-connect": "^1.2.1", "@fontsource/open-sans": "^4.5.13", "@fontsource/pt-mono": "^5.0.12", "@mswjs/data": "^0.16.1", diff --git a/packages/core/figma-src/Avatar.figma.tsx b/packages/core/figma-src/Avatar.figma.tsx new file mode 100644 index 0000000000..76767fa2e6 --- /dev/null +++ b/packages/core/figma-src/Avatar.figma.tsx @@ -0,0 +1,56 @@ +import figma from "@figma/code-connect"; +import { Avatar } from "../src/avatar/Avatar"; + +// Icon - https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?m=auto&node-id=24377-78056 +figma.connect( + Avatar, + "https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?node-id=24377-78056", + { + props: { + size: figma.enum("Size", { + "1x": 1, + "2x": 2, + "3x": 3, + "4x": 4, + }), + }, + example: (props) => , + }, +); + +// Initials +figma.connect( + Avatar, + "https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?node-id=24377%3A78140", + { + props: { + size: figma.enum("Size", { + "1x": 1, + "2x": 2, + "3x": 3, + "4x": 4, + }), + // initialsValue: figma.string("Initials value"), // initialsValue in code is generated automatically + }, + example: (props) => , + }, +); + +// Image - https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?m=auto&node-id=5688-71628 +figma.connect( + Avatar, + "https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?node-id=5688-71628", + { + props: { + size: figma.enum("Size", { + "1x": 1, + "2x": 2, + "3x": 3, + "4x": 4, + }), + }, + example: (props) => ( + + ), + }, +); diff --git a/packages/core/figma-src/Banner.figma.tsx b/packages/core/figma-src/Banner.figma.tsx new file mode 100644 index 0000000000..bb982366ac --- /dev/null +++ b/packages/core/figma-src/Banner.figma.tsx @@ -0,0 +1,63 @@ +import figma from "@figma/code-connect"; +import { CloseIcon } from "@salt-ds/icons"; +import { Banner } from "../src/banner/Banner"; +import { + BannerActions, + BannerContent, + Button, + StackLayout, + Text, +} from "../src/index"; + +// Warning https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?m=auto&node-id=7997-78021 + +// Success Banner +figma.connect( + Banner, + "https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?node-id=7997%3A78070", + { + props: { + // inlineContent: figma.instance("🔁 Inline content"), // Icon next to the close button + title: figma.boolean("👁️ Title", { + true: ( + + {figma.string("✏️ Title")} + + ), + false: undefined, + }), + // inlineSwap: figma.boolean("👁️ Inline swap"), + contentArea: figma.boolean("👁️ Content area", { + true: figma.instance("🔁 Banner content"), + false: undefined, + }), + description: figma.string("✏️ Description"), + closeButton: figma.boolean("👁️ Close button", { + true: ( + + + + ), + false: undefined, + }), + variant: figma.enum("Variant", { + Primary: "primary", + Secondary: "secondary", + }), + }, + example: (props) => ( + + + + {props.title} + {props.description} + {props.contentArea} + + + {props.closeButton} + + ), + }, +); diff --git a/packages/core/figma-src/Button.figma.tsx b/packages/core/figma-src/Button.figma.tsx index e03f4afce9..84883fd07c 100644 --- a/packages/core/figma-src/Button.figma.tsx +++ b/packages/core/figma-src/Button.figma.tsx @@ -1,6 +1,5 @@ -import React from "react"; -import { Button } from "../src/button/Button"; import figma from "@figma/code-connect"; +import { Button } from "../src/button/Button"; // Neutral - 5594:10494 figma.connect( diff --git a/packages/core/figma-src/Card.figma.tsx b/packages/core/figma-src/Card.figma.tsx new file mode 100644 index 0000000000..eee42cce0f --- /dev/null +++ b/packages/core/figma-src/Card.figma.tsx @@ -0,0 +1,23 @@ +import figma from "@figma/code-connect"; +import { InteractableCard } from "../src/interactable-card/"; + +// Tertiary Interactable Card/Accent Left +figma.connect( + InteractableCard, + "https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?node-id=44325%3A4200", + { + props: { + // customContent: figma.boolean("Custom content"), + // contentArea: figma.boolean("Content area"), + state: figma.enum("State", { + Disabled: true, + }), + content: figma.children("*"), + }, + example: (props) => ( + + {props.content} + + ), + }, +); diff --git a/packages/core/figma-src/Divider.figma.tsx b/packages/core/figma-src/Divider.figma.tsx new file mode 100644 index 0000000000..fafe04ce0f --- /dev/null +++ b/packages/core/figma-src/Divider.figma.tsx @@ -0,0 +1,31 @@ +import { Divider } from "../src/divider/Divider" +import figma from "@figma/code-connect" + +/** + * -- This file was auto-generated by Code Connect -- + * `props` includes a mapping from your code props to Figma properties. + * You should check this is correct, and update the `example` function + * to return the code example you'd like to see in Figma + */ + +figma.connect( + Divider, + "https://www.figma.com/design/ChsbbO7pLomT4F5H6tQyLP/Salt-(Next)-Components-%26-Patterns?node-id=28468%3A15200", + { + props: { + // These props were automatically mapped based on your linked code: + orientation: figma.enum("Orientation", { + Horizontal: "horizontal", + Vertical: "vertical", + }), + variant: figma.enum("Variant", { + Primary: "primary", + Secondary: "secondary", + Tertiary: "tertiary", + }), + }, + example: (props) => ( + + ), + }, +) diff --git a/packages/core/figma-src/Tooltip.figma.tsx b/packages/core/figma-src/Tooltip.figma.tsx index a2b49541a8..9f827d6b63 100644 --- a/packages/core/figma-src/Tooltip.figma.tsx +++ b/packages/core/figma-src/Tooltip.figma.tsx @@ -16,14 +16,14 @@ figma.connect( Left: "left", Right: "right", }), - showIcon: figma.boolean("Show icon"), + hideIcon: figma.boolean("Show icon", { true: false, false: true }), }, example: (props) => ( Your Trigger Component @@ -44,14 +44,14 @@ figma.connect( Left: "left", Right: "right", }), - showIcon: figma.boolean("Show icon"), + hideIcon: figma.boolean("Show icon", { true: false, false: true }), }, example: (props) => ( Your Trigger Component @@ -73,14 +73,14 @@ figma.connect( Left: "left", Right: "right", }), - showIcon: figma.boolean("Show icon"), + hideIcon: figma.boolean("Show icon", { true: false, false: true }), }, example: (props) => ( Your Trigger Component @@ -102,14 +102,14 @@ figma.connect( Left: "left", Right: "right", }), - showIcon: figma.boolean("Show icon"), + hideIcon: figma.boolean("Show icon", { true: false, false: true }), }, example: (props) => ( Your Trigger Component @@ -131,14 +131,9 @@ figma.connect( Left: "left", Right: "right", }), - showIcon: figma.boolean("Show icon"), }, example: (props) => ( - + Your Trigger Component ), diff --git a/yarn.lock b/yarn.lock index 3d188313b7..0ba749d655 100644 --- a/yarn.lock +++ b/yarn.lock @@ -750,13 +750,14 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/code-frame@npm:7.25.7" +"@babel/code-frame@npm:^7.25.7, @babel/code-frame@npm:^7.25.9": + version: 7.26.2 + resolution: "@babel/code-frame@npm:7.26.2" dependencies: - "@babel/highlight": "npm:^7.25.7" + "@babel/helper-validator-identifier": "npm:^7.25.9" + js-tokens: "npm:^4.0.0" picocolors: "npm:^1.0.0" - checksum: 10/000fb8299fb35b6217d4f6c6580dcc1fa2f6c0f82d0a54b8a029966f633a8b19b490a7a906b56a94e9d8bee91c3bc44c74c44c33fb0abaa588202f6280186291 + checksum: 10/db2c2122af79d31ca916755331bb4bac96feb2b334cdaca5097a6b467fdd41963b89b14b6836a14f083de7ff887fc78fa1b3c10b14e743d33e12dbfe5ee3d223 languageName: node linkType: hard @@ -767,10 +768,33 @@ __metadata: languageName: node linkType: hard -"@babel/compat-data@npm:^7.25.7": +"@babel/compat-data@npm:^7.25.9": + version: 7.26.2 + resolution: "@babel/compat-data@npm:7.26.2" + checksum: 10/ed9eed6b62ce803ef4a320b1dac76b0302abbb29c49dddf96f3e3207d9717eb34e299a8651bb1582e9c3346ead74b6d595ffced5b3dae718afa08b18741f8402 + languageName: node + linkType: hard + +"@babel/core@npm:7.25.8": version: 7.25.8 - resolution: "@babel/compat-data@npm:7.25.8" - checksum: 10/269fcb0d89e02e36c8a11e0c1b960a6b4204e88f59f20c374d28f8e318f4cd5ded42dfedc4b54162065e6a10f71c0de651f5ed3f9b45d3a4b52240196df85726 + resolution: "@babel/core@npm:7.25.8" + dependencies: + "@ampproject/remapping": "npm:^2.2.0" + "@babel/code-frame": "npm:^7.25.7" + "@babel/generator": "npm:^7.25.7" + "@babel/helper-compilation-targets": "npm:^7.25.7" + "@babel/helper-module-transforms": "npm:^7.25.7" + "@babel/helpers": "npm:^7.25.7" + "@babel/parser": "npm:^7.25.8" + "@babel/template": "npm:^7.25.7" + "@babel/traverse": "npm:^7.25.7" + "@babel/types": "npm:^7.25.8" + convert-source-map: "npm:^2.0.0" + debug: "npm:^4.1.0" + gensync: "npm:^1.0.0-beta.2" + json5: "npm:^2.2.3" + semver: "npm:^6.3.1" + checksum: 10/31eb1a8ca1a3cc0026060720eb290e68205d95c5c00fbd831e69ddc0810f5920b8eb2749db1889ac0a0312b6eddbf321d18a996a88858f3b75c9582bef9ec1e4 languageName: node linkType: hard @@ -797,30 +821,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.25.2": - version: 7.25.8 - resolution: "@babel/core@npm:7.25.8" - dependencies: - "@ampproject/remapping": "npm:^2.2.0" - "@babel/code-frame": "npm:^7.25.7" - "@babel/generator": "npm:^7.25.7" - "@babel/helper-compilation-targets": "npm:^7.25.7" - "@babel/helper-module-transforms": "npm:^7.25.7" - "@babel/helpers": "npm:^7.25.7" - "@babel/parser": "npm:^7.25.8" - "@babel/template": "npm:^7.25.7" - "@babel/traverse": "npm:^7.25.7" - "@babel/types": "npm:^7.25.8" - convert-source-map: "npm:^2.0.0" - debug: "npm:^4.1.0" - gensync: "npm:^1.0.0-beta.2" - json5: "npm:^2.2.3" - semver: "npm:^6.3.1" - checksum: 10/31eb1a8ca1a3cc0026060720eb290e68205d95c5c00fbd831e69ddc0810f5920b8eb2749db1889ac0a0312b6eddbf321d18a996a88858f3b75c9582bef9ec1e4 - languageName: node - linkType: hard - -"@babel/generator@npm:^7.23.0, @babel/generator@npm:^7.25.2, @babel/generator@npm:^7.25.7": +"@babel/generator@npm:7.25.7": version: 7.25.7 resolution: "@babel/generator@npm:7.25.7" dependencies: @@ -832,6 +833,19 @@ __metadata: languageName: node linkType: hard +"@babel/generator@npm:^7.23.0, @babel/generator@npm:^7.25.7, @babel/generator@npm:^7.25.9": + version: 7.26.2 + resolution: "@babel/generator@npm:7.26.2" + dependencies: + "@babel/parser": "npm:^7.26.2" + "@babel/types": "npm:^7.26.0" + "@jridgewell/gen-mapping": "npm:^0.3.5" + "@jridgewell/trace-mapping": "npm:^0.3.25" + jsesc: "npm:^3.0.2" + checksum: 10/71ace82b5b07a554846a003624bfab93275ccf73cdb9f1a37a4c1094bf9dc94bb677c67e8b8c939dbd6c5f0eda2e8f268aa2b0d9c3b9511072565660e717e045 + languageName: node + linkType: hard + "@babel/generator@npm:^7.24.7": version: 7.24.7 resolution: "@babel/generator@npm:7.24.7" @@ -877,15 +891,15 @@ __metadata: linkType: hard "@babel/helper-compilation-targets@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/helper-compilation-targets@npm:7.25.7" + version: 7.25.9 + resolution: "@babel/helper-compilation-targets@npm:7.25.9" dependencies: - "@babel/compat-data": "npm:^7.25.7" - "@babel/helper-validator-option": "npm:^7.25.7" + "@babel/compat-data": "npm:^7.25.9" + "@babel/helper-validator-option": "npm:^7.25.9" browserslist: "npm:^4.24.0" lru-cache: "npm:^5.1.1" semver: "npm:^6.3.1" - checksum: 10/bbf9be8480da3f9a89e36e9ea2e1c76601014c1074ccada7c2edb1adeb3b62bc402cc4abaf8d16760734b25eceb187a9510ce44f6a7a6f696ccc74f69283625b + checksum: 10/8053fbfc21e8297ab55c8e7f9f119e4809fa7e505268691e1bedc2cf5e7a5a7de8c60ad13da2515378621b7601c42e101d2d679904da395fa3806a1edef6b92e languageName: node linkType: hard @@ -1000,13 +1014,13 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-imports@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/helper-module-imports@npm:7.25.7" +"@babel/helper-module-imports@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-module-imports@npm:7.25.9" dependencies: - "@babel/traverse": "npm:^7.25.7" - "@babel/types": "npm:^7.25.7" - checksum: 10/94556712c27058ea35a1a39e21a3a9f067cd699405b64333d7d92b2b3d2f24d6f0ffa51aedba0b908e320acb1854e70d296259622e636fb021eeae9a6d996f01 + "@babel/traverse": "npm:^7.25.9" + "@babel/types": "npm:^7.25.9" + checksum: 10/e090be5dee94dda6cd769972231b21ddfae988acd76b703a480ac0c96f3334557d70a965bf41245d6ee43891e7571a8b400ccf2b2be5803351375d0f4e5bcf08 languageName: node linkType: hard @@ -1026,16 +1040,15 @@ __metadata: linkType: hard "@babel/helper-module-transforms@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/helper-module-transforms@npm:7.25.7" + version: 7.26.0 + resolution: "@babel/helper-module-transforms@npm:7.26.0" dependencies: - "@babel/helper-module-imports": "npm:^7.25.7" - "@babel/helper-simple-access": "npm:^7.25.7" - "@babel/helper-validator-identifier": "npm:^7.25.7" - "@babel/traverse": "npm:^7.25.7" + "@babel/helper-module-imports": "npm:^7.25.9" + "@babel/helper-validator-identifier": "npm:^7.25.9" + "@babel/traverse": "npm:^7.25.9" peerDependencies: "@babel/core": ^7.0.0 - checksum: 10/480309b1272ceaa985de1393f0e4c41aede0d5921ca644cec5aeaf43c8e4192b6dd56a58ef6d7e9acd02a43184ab45d3b241fc8c3a0a00f9dbb30235fd8a1181 + checksum: 10/9841d2a62f61ad52b66a72d08264f23052d533afc4ce07aec2a6202adac0bfe43014c312f94feacb3291f4c5aafe681955610041ece2c276271adce3f570f2f5 languageName: node linkType: hard @@ -1091,16 +1104,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-simple-access@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/helper-simple-access@npm:7.25.7" - dependencies: - "@babel/traverse": "npm:^7.25.7" - "@babel/types": "npm:^7.25.7" - checksum: 10/42da1c358f2516337a4f2927c77ebb952907543b9f85d7cb1e2b5b5f6d808cdc081ee66a73e2ecdf48c315d9b0c2a81a857d5e1923ea210b8e81aba5e6cd2b53 - languageName: node - linkType: hard - "@babel/helper-skip-transparent-expression-wrappers@npm:^7.20.0, @babel/helper-skip-transparent-expression-wrappers@npm:^7.24.7": version: 7.24.7 resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.24.7" @@ -1127,10 +1130,10 @@ __metadata: languageName: node linkType: hard -"@babel/helper-string-parser@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/helper-string-parser@npm:7.25.7" - checksum: 10/2b8de9fa86c3f3090a349f1ce6e8ee2618a95355cbdafc6f228d82fa4808c84bf3d1d25290c6616d0a18b26b6cfeb6ec2aeebf01404bc8c60051d0094209f0e6 +"@babel/helper-string-parser@npm:^7.25.7, @babel/helper-string-parser@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-string-parser@npm:7.25.9" + checksum: 10/c28656c52bd48e8c1d9f3e8e68ecafd09d949c57755b0d353739eb4eae7ba4f7e67e92e4036f1cd43378cc1397a2c943ed7bcaf5949b04ab48607def0258b775 languageName: node linkType: hard @@ -1141,10 +1144,10 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/helper-validator-identifier@npm:7.25.7" - checksum: 10/ec6934cc47fc35baaeb968414a372b064f14f7b130cf6489a014c9486b0fd2549b3c6c682cc1fc35080075e8e38d96aeb40342d63d09fc1a62510c8ce25cde1e +"@babel/helper-validator-identifier@npm:^7.25.7, @babel/helper-validator-identifier@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-validator-identifier@npm:7.25.9" + checksum: 10/3f9b649be0c2fd457fa1957b694b4e69532a668866b8a0d81eabfa34ba16dbf3107b39e0e7144c55c3c652bf773ec816af8df4a61273a2bb4eb3145ca9cf478e languageName: node linkType: hard @@ -1155,10 +1158,10 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-option@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/helper-validator-option@npm:7.25.7" - checksum: 10/3c46cbdd666d176f90a0b7e952a0c6e92184b66633336eca79aca243d1f86085ec339a6e45c3d44efa9e03f1829b470a350ddafa70926af6bbf1ac611284f8d3 +"@babel/helper-validator-option@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/helper-validator-option@npm:7.25.9" + checksum: 10/9491b2755948ebbdd68f87da907283698e663b5af2d2b1b02a2765761974b1120d5d8d49e9175b167f16f72748ffceec8c9cf62acfbee73f4904507b246e2b3d languageName: node linkType: hard @@ -1185,12 +1188,12 @@ __metadata: linkType: hard "@babel/helpers@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/helpers@npm:7.25.7" + version: 7.26.0 + resolution: "@babel/helpers@npm:7.26.0" dependencies: - "@babel/template": "npm:^7.25.7" - "@babel/types": "npm:^7.25.7" - checksum: 10/2632909f83aa99e8b0da4e10e5ab7fc4f0274e6497bb0f17071e004e037d25e4a595583620261dc21410a526fb32b4f7063c3e15e60ed7890a6f9b8ad52312c5 + "@babel/template": "npm:^7.25.9" + "@babel/types": "npm:^7.26.0" + checksum: 10/fd4757f65d10b64cfdbf4b3adb7ea6ffff9497c53e0786452f495d1f7794da7e0898261b4db65e1c62bbb9a360d7d78a1085635c23dfc3af2ab6dcba06585f86 languageName: node linkType: hard @@ -1206,15 +1209,14 @@ __metadata: languageName: node linkType: hard -"@babel/highlight@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/highlight@npm:7.25.7" +"@babel/parser@npm:7.25.8": + version: 7.25.8 + resolution: "@babel/parser@npm:7.25.8" dependencies: - "@babel/helper-validator-identifier": "npm:^7.25.7" - chalk: "npm:^2.4.2" - js-tokens: "npm:^4.0.0" - picocolors: "npm:^1.0.0" - checksum: 10/823be2523d246dbf80aab3cc81c2a36c6111b16ac2949ef06789da54387824c2bfaa88c6627cdeb4ba7151d047a5d6765e49ebd0b478aba09759250111e65e08 + "@babel/types": "npm:^7.25.8" + bin: + parser: ./bin/babel-parser.js + checksum: 10/0396eb71e379903cedb43862f84ebb1bec809c41e82b4894d2e6e83b8e8bc636ba6eff45382e615baefdb2399ede76ca82247ecc3a9877ac16eb3140074a3276 languageName: node linkType: hard @@ -1227,14 +1229,14 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.23.0, @babel/parser@npm:^7.25.2, @babel/parser@npm:^7.25.7, @babel/parser@npm:^7.25.8": - version: 7.25.8 - resolution: "@babel/parser@npm:7.25.8" +"@babel/parser@npm:^7.23.0, @babel/parser@npm:^7.25.8, @babel/parser@npm:^7.25.9, @babel/parser@npm:^7.26.2": + version: 7.26.2 + resolution: "@babel/parser@npm:7.26.2" dependencies: - "@babel/types": "npm:^7.25.8" + "@babel/types": "npm:^7.26.0" bin: parser: ./bin/babel-parser.js - checksum: 10/0396eb71e379903cedb43862f84ebb1bec809c41e82b4894d2e6e83b8e8bc636ba6eff45382e615baefdb2399ede76ca82247ecc3a9877ac16eb3140074a3276 + checksum: 10/8baee43752a3678ad9f9e360ec845065eeee806f1fdc8e0f348a8a0e13eef0959dabed4a197c978896c493ea205c804d0a1187cc52e4a1ba017c7935bab4983d languageName: node linkType: hard @@ -2514,14 +2516,14 @@ __metadata: languageName: node linkType: hard -"@babel/template@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/template@npm:7.25.7" +"@babel/template@npm:^7.25.7, @babel/template@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/template@npm:7.25.9" dependencies: - "@babel/code-frame": "npm:^7.25.7" - "@babel/parser": "npm:^7.25.7" - "@babel/types": "npm:^7.25.7" - checksum: 10/49e1e88d2eac17d31ae28d6cf13d6d29c1f49384c4f056a6751c065d6565c351e62c01ce6b11fef5edb5f3a77c87e114ea7326ca384fa618b4834e10cf9b20f3 + "@babel/code-frame": "npm:^7.25.9" + "@babel/parser": "npm:^7.25.9" + "@babel/types": "npm:^7.25.9" + checksum: 10/e861180881507210150c1335ad94aff80fd9e9be6202e1efa752059c93224e2d5310186ddcdd4c0f0b0fc658ce48cb47823f15142b5c00c8456dde54f5de80b2 languageName: node linkType: hard @@ -2543,18 +2545,29 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.23.2, @babel/traverse@npm:^7.25.7": - version: 7.25.7 - resolution: "@babel/traverse@npm:7.25.7" +"@babel/traverse@npm:^7.23.2, @babel/traverse@npm:^7.25.7, @babel/traverse@npm:^7.25.9": + version: 7.25.9 + resolution: "@babel/traverse@npm:7.25.9" dependencies: - "@babel/code-frame": "npm:^7.25.7" - "@babel/generator": "npm:^7.25.7" - "@babel/parser": "npm:^7.25.7" - "@babel/template": "npm:^7.25.7" - "@babel/types": "npm:^7.25.7" + "@babel/code-frame": "npm:^7.25.9" + "@babel/generator": "npm:^7.25.9" + "@babel/parser": "npm:^7.25.9" + "@babel/template": "npm:^7.25.9" + "@babel/types": "npm:^7.25.9" debug: "npm:^4.3.1" globals: "npm:^11.1.0" - checksum: 10/5b2d332fcd6bc78e6500c997e79f7e2a54dfb357e06f0908cb7f0cdd9bb54e7fd3c5673f45993849d433d01ea6076a6d04b825958f0cfa01288ad55ffa5c286f + checksum: 10/7431614d76d4a053e429208db82f2846a415833f3d9eb2e11ef72eeb3c64dfd71f4a4d983de1a4a047b36165a1f5a64de8ca2a417534cc472005c740ffcb9c6a + languageName: node + linkType: hard + +"@babel/types@npm:7.25.8": + version: 7.25.8 + resolution: "@babel/types@npm:7.25.8" + dependencies: + "@babel/helper-string-parser": "npm:^7.25.7" + "@babel/helper-validator-identifier": "npm:^7.25.7" + to-fast-properties: "npm:^2.0.0" + checksum: 10/973108dbb189916bb87360f2beff43ae97f1b08f1c071bc6499d363cce48b3c71674bf3b59dfd617f8c5062d1c76dc2a64232bc07b6ccef831fd0c06162d44d9 languageName: node linkType: hard @@ -2569,14 +2582,13 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.23.0, @babel/types@npm:^7.25.2, @babel/types@npm:^7.25.7, @babel/types@npm:^7.25.8": - version: 7.25.8 - resolution: "@babel/types@npm:7.25.8" +"@babel/types@npm:^7.23.0, @babel/types@npm:^7.25.7, @babel/types@npm:^7.25.8, @babel/types@npm:^7.25.9, @babel/types@npm:^7.26.0": + version: 7.26.0 + resolution: "@babel/types@npm:7.26.0" dependencies: - "@babel/helper-string-parser": "npm:^7.25.7" - "@babel/helper-validator-identifier": "npm:^7.25.7" - to-fast-properties: "npm:^2.0.0" - checksum: 10/973108dbb189916bb87360f2beff43ae97f1b08f1c071bc6499d363cce48b3c71674bf3b59dfd617f8c5062d1c76dc2a64232bc07b6ccef831fd0c06162d44d9 + "@babel/helper-string-parser": "npm:^7.25.9" + "@babel/helper-validator-identifier": "npm:^7.25.9" + checksum: 10/40780741ecec886ed9edae234b5eb4976968cc70d72b4e5a40d55f83ff2cc457de20f9b0f4fe9d858350e43dab0ea496e7ef62e2b2f08df699481a76df02cd6e languageName: node linkType: hard @@ -3821,6 +3833,13 @@ __metadata: languageName: node linkType: hard +"@fastify/busboy@npm:^2.0.0": + version: 2.1.1 + resolution: "@fastify/busboy@npm:2.1.1" + checksum: 10/2bb8a7eca8289ed14c9eb15239bc1019797454624e769b39a0b90ed204d032403adc0f8ed0d2aef8a18c772205fa7808cf5a1b91f21c7bfc7b6032150b1062c5 + languageName: node + linkType: hard + "@fastify/deepmerge@npm:^1.0.0": version: 1.3.0 resolution: "@fastify/deepmerge@npm:1.3.0" @@ -3866,16 +3885,15 @@ __metadata: languageName: node linkType: hard -"@figma/code-connect@npm:^1.2.0": - version: 1.2.0 - resolution: "@figma/code-connect@npm:1.2.0" +"@figma/code-connect@npm:^1.2.1": + version: 1.2.1 + resolution: "@figma/code-connect@npm:1.2.1" dependencies: - "@babel/core": "npm:^7.25.2" - "@babel/generator": "npm:^7.25.2" - "@babel/parser": "npm:^7.25.2" - "@babel/types": "npm:^7.25.2" + "@babel/core": "npm:7.25.8" + "@babel/generator": "npm:7.25.7" + "@babel/parser": "npm:7.25.8" + "@babel/types": "npm:7.25.8" "@storybook/csf-tools": "npm:^7.6.7" - axios: "npm:^1.7.4" boxen: "npm:5.1.1" chalk: "npm:^4.1.2" commander: "npm:^11.1.0" @@ -3895,11 +3913,12 @@ __metadata: strip-ansi: "npm:^6.0.0" ts-morph: "npm:^23.0.0" typescript: "npm:5.4.2" - zod: "npm:^3.23.6" + undici: "npm:^5.28.4" + zod: "npm:^3.23.8" zod-validation-error: "npm:^3.2.0" bin: figma: bin/figma - checksum: 10/6c4cf654b0d87f6a25f548ab61e6467e64f76eed33d62e6ebc7ac54bdc87dc8cefdeb975c99e8066e074c109d0124bfcf5c99af81754cefe1f68f6e2ae974ae2 + checksum: 10/97de501bc02e24ea5b868ae7ea8129d2fbfa719d17c51d716bfffdbcf92410787559ca7e14ed8a4b8308c6b53c2f24fb8abdfe27abd708da2066825e5c1c3b1a languageName: node linkType: hard @@ -6020,7 +6039,7 @@ __metadata: "@changesets/cli": "npm:^2.27.7" "@cypress/code-coverage": "npm:^3.12.35" "@faker-js/faker": "npm:^8.0.0" - "@figma/code-connect": "npm:^1.2.0" + "@figma/code-connect": "npm:^1.2.1" "@fontsource/open-sans": "npm:^4.5.13" "@fontsource/pt-mono": "npm:^5.0.12" "@mswjs/data": "npm:^0.16.1" @@ -10053,17 +10072,6 @@ __metadata: languageName: node linkType: hard -"axios@npm:^1.7.4": - version: 1.7.7 - resolution: "axios@npm:1.7.7" - dependencies: - follow-redirects: "npm:^1.15.6" - form-data: "npm:^4.0.0" - proxy-from-env: "npm:^1.1.0" - checksum: 10/7f875ea13b9298cd7b40fd09985209f7a38d38321f1118c701520939de2f113c4ba137832fe8e3f811f99a38e12c8225481011023209a77b0c0641270e20cde1 - languageName: node - linkType: hard - "babel-jest@npm:26.6.3, babel-jest@npm:^26.6.3": version: 26.6.3 resolution: "babel-jest@npm:26.6.3" @@ -10578,16 +10586,16 @@ __metadata: linkType: hard "browserslist@npm:^4.24.0": - version: 4.24.0 - resolution: "browserslist@npm:4.24.0" + version: 4.24.2 + resolution: "browserslist@npm:4.24.2" dependencies: - caniuse-lite: "npm:^1.0.30001663" - electron-to-chromium: "npm:^1.5.28" + caniuse-lite: "npm:^1.0.30001669" + electron-to-chromium: "npm:^1.5.41" node-releases: "npm:^2.0.18" - update-browserslist-db: "npm:^1.1.0" + update-browserslist-db: "npm:^1.1.1" bin: browserslist: cli.js - checksum: 10/26c1b8ba257a0b51b102080ba9d42945af2abaa8c4cf6da21cd47b3f123fc1e81640203b293214356c2c17d9d265bb3a5ed428b6d302f383576dd6ce8fd5036c + checksum: 10/f8a9d78bbabe466c57ffd5c50a9e5582a5df9aa68f43078ca62a9f6d0d6c70ba72eca72d0a574dbf177cf55cdca85a46f7eb474917a47ae5398c66f8b76f7d1c languageName: node linkType: hard @@ -10908,10 +10916,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.30001663": - version: 1.0.30001669 - resolution: "caniuse-lite@npm:1.0.30001669" - checksum: 10/cd0b481bb997703cb7651e55666b4aa4e7b4ecf9784796e2393179a15e55c71a6abc6ff865c922bbd3bbfa4a4bf0530d8da13989b97ff8c7850c8a5bd4e00491 +"caniuse-lite@npm:^1.0.30001669": + version: 1.0.30001676 + resolution: "caniuse-lite@npm:1.0.30001676" + checksum: 10/73d5ff987c4075fe3885282361626956d50124c01c6811cca071efd94c2a26ff5045cd3b902a418b505840eb4b3fc8e0252a65392effd7061749e9c9e6c16d35 languageName: node linkType: hard @@ -13451,10 +13459,10 @@ __metadata: languageName: node linkType: hard -"electron-to-chromium@npm:^1.5.28": - version: 1.5.41 - resolution: "electron-to-chromium@npm:1.5.41" - checksum: 10/74e1773d954ddbea82036715f91d2ef78246c9747ac58c00efa4eae3957a29a86b9ef41adfd1a33b5e563cecfc587ad90d0b513673fce65f505af6f2e90e1777 +"electron-to-chromium@npm:^1.5.41": + version: 1.5.50 + resolution: "electron-to-chromium@npm:1.5.50" + checksum: 10/635ca4b593e64697fbebc9fe7f557abcb030e5f6edcefb596ae3f8c9313221a754b513b70f2ba12595a9ee5733442b2b58db9eed7a2fa63e9f7539d581dd4ac0 languageName: node linkType: hard @@ -22507,11 +22515,11 @@ __metadata: linkType: hard "parse5@npm:^7.1.2": - version: 7.2.0 - resolution: "parse5@npm:7.2.0" + version: 7.2.1 + resolution: "parse5@npm:7.2.1" dependencies: entities: "npm:^4.5.0" - checksum: 10/49dabfe848f00e8cad8d9198a094d667fbdecbfa5143ddf8fb708e499b5ba76426c16135c8993b1d8e01827b92e8cfab0a9a248afa6ad7cc6f38aecf5bd017e6 + checksum: 10/fd1a8ad1540d871e1ad6ca9bf5b67e30280886f1ce4a28052c0cb885723aa984d8cb1ec3da998349a6146960c8a84aa87b1a42600eb3b94495c7303476f2f88e languageName: node linkType: hard @@ -28042,6 +28050,15 @@ __metadata: languageName: node linkType: hard +"undici@npm:^5.28.4": + version: 5.28.4 + resolution: "undici@npm:5.28.4" + dependencies: + "@fastify/busboy": "npm:^2.0.0" + checksum: 10/a666a9f5ac4270c659fafc33d78b6b5039a0adbae3e28f934774c85dcc66ea91da907896f12b414bd6f578508b44d5dc206fa636afa0e49a4e1c9e99831ff065 + languageName: node + linkType: hard + "unicode-canonical-property-names-ecmascript@npm:^2.0.0": version: 2.0.0 resolution: "unicode-canonical-property-names-ecmascript@npm:2.0.0" @@ -28396,7 +28413,7 @@ __metadata: languageName: node linkType: hard -"update-browserslist-db@npm:^1.1.0": +"update-browserslist-db@npm:^1.1.1": version: 1.1.1 resolution: "update-browserslist-db@npm:1.1.1" dependencies: @@ -29802,7 +29819,7 @@ __metadata: languageName: node linkType: hard -"zod@npm:^3.23.6": +"zod@npm:^3.23.8": version: 3.23.8 resolution: "zod@npm:3.23.8" checksum: 10/846fd73e1af0def79c19d510ea9e4a795544a67d5b34b7e1c4d0425bf6bfd1c719446d94cdfa1721c1987d891321d61f779e8236fde517dc0e524aa851a6eff1