Skip to content

Commit e8782d5

Browse files
authored
Add storybook design addon to Experiments "With Data" story (#1828)
1 parent e2804bb commit e8782d5

File tree

4 files changed

+70
-1
lines changed

4 files changed

+70
-1
lines changed

webview/.storybook/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export default {
1616
}
1717
}
1818
}
19-
}
19+
},
20+
'storybook-addon-designs'
2021
],
2122
core: {
2223
builder: 'webpack5'

webview/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"raw-loader": "^4.0.2",
6969
"sass": "^1.43.4",
7070
"sass-loader": "^12.3.0",
71+
"storybook-addon-designs": "^6.2.1",
7172
"style-loader": "^3.3.1",
7273
"ts-jest": "^27.1.4",
7374
"ts-loader": "^9.2.6",

webview/src/stories/Table.stories.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ export default {
4040
tableData
4141
},
4242
component: Experiments,
43+
parameters: {
44+
design: {
45+
type: 'figma',
46+
url: 'https://www.figma.com/file/AuQXbrFj60xA2QXOjo9Z65/Experiments-Panel-%E2%80%A2-496'
47+
}
48+
},
4349
title: 'Table'
4450
} as Meta
4551

yarn.lock

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,21 @@
12781278
minimatch "^3.0.4"
12791279
strip-json-comments "^3.1.1"
12801280

1281+
"@figspec/components@^1.0.0":
1282+
version "1.0.1"
1283+
resolved "https://registry.yarnpkg.com/@figspec/components/-/components-1.0.1.tgz#47d7e24999974b18c6daa810299624d4370fc7da"
1284+
integrity sha512-UvnEamPEAMh9HExViqpobWmX25g1+soA9kcJu+It3VerMa7CeVyaIbQydNf1Gys5v/rxJVdTDRgQ7OXW2zAAig==
1285+
dependencies:
1286+
lit "^2.1.3"
1287+
1288+
"@figspec/react@^1.0.0":
1289+
version "1.0.1"
1290+
resolved "https://registry.yarnpkg.com/@figspec/react/-/react-1.0.1.tgz#2af92e7dcbf2aae3170cbbc816647239142acf5a"
1291+
integrity sha512-4TGazTVFG1SJ+mJNzi3HPKnRC8IGBF6J7GR+wXCPTrOhWpRyQOvcyfomiluPUh69lMLs6hsawjz9yVtutyJocQ==
1292+
dependencies:
1293+
"@figspec/components" "^1.0.0"
1294+
"@lit-labs/react" "^1.0.2"
1295+
12811296
"@gar/promisify@^1.0.1":
12821297
version "1.1.3"
12831298
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
@@ -1543,6 +1558,16 @@
15431558
"@jridgewell/resolve-uri" "^3.0.3"
15441559
"@jridgewell/sourcemap-codec" "^1.4.10"
15451560

1561+
"@lit-labs/react@^1.0.2":
1562+
version "1.0.4"
1563+
resolved "https://registry.yarnpkg.com/@lit-labs/react/-/react-1.0.4.tgz#e87a620338955a4e12163b0f3bee18a99c651174"
1564+
integrity sha512-Sy4RCxTZpTE2TwByjVac6gC7jzr8bCQC6s9bJhhJDKos4ZlN2cqcuVz63n0mpSSr1zxFh+Z0o0VR223l36Y4Ag==
1565+
1566+
"@lit/reactive-element@^1.3.0":
1567+
version "1.3.2"
1568+
resolved "https://registry.yarnpkg.com/@lit/reactive-element/-/reactive-element-1.3.2.tgz#43e470537b6ec2c23510c07812616d5aa27a17cd"
1569+
integrity sha512-A2e18XzPMrIh35nhIdE4uoqRzoIpEU5vZYuQN4S3Ee1zkGdYC27DP12pewbw/RLgPHzaE4kx/YqxMzebOpm0dA==
1570+
15461571
"@mdx-js/loader@^1.6.22":
15471572
version "1.6.22"
15481573
resolved "https://registry.yarnpkg.com/@mdx-js/loader/-/loader-1.6.22.tgz#d9e8fe7f8185ff13c9c8639c048b123e30d322c4"
@@ -3424,6 +3449,11 @@
34243449
resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.1.tgz#8f80dd965ad81f3e1bc26d6f5c727e132721ff40"
34253450
integrity sha512-Y0K95ThC3esLEYD6ZuqNek29lNX2EM1qxV8y2FTLUB0ff5wWrk7az+mLrnNFUnaXcgKye22+sFBRXOgpPILZNg==
34263451

3452+
"@types/trusted-types@^2.0.2":
3453+
version "2.0.2"
3454+
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.2.tgz#fc25ad9943bcac11cceb8168db4f275e0e72e756"
3455+
integrity sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==
3456+
34273457
"@types/uglify-js@*":
34283458
version "3.13.1"
34293459
resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.13.1.tgz#5e889e9e81e94245c75b6450600e1c5ea2878aea"
@@ -9932,6 +9962,30 @@ listr2@^4.0.1:
99329962
through "^2.3.8"
99339963
wrap-ansi "^7.0.0"
99349964

9965+
lit-element@^3.2.0:
9966+
version "3.2.0"
9967+
resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.2.0.tgz#9c981c55dfd9a8f124dc863edb62cc529d434db7"
9968+
integrity sha512-HbE7yt2SnUtg5DCrWt028oaU4D5F4k/1cntAFHTkzY8ZIa8N0Wmu92PxSxucsQSOXlODFrICkQ5x/tEshKi13g==
9969+
dependencies:
9970+
"@lit/reactive-element" "^1.3.0"
9971+
lit-html "^2.2.0"
9972+
9973+
lit-html@^2.2.0:
9974+
version "2.2.5"
9975+
resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.2.5.tgz#e2b4fbdb3b57e38a3bce23c8473d72ba0e652ed8"
9976+
integrity sha512-e56Y9V+RNA+SGYsWP2DGb/wad5Ccd3xUZYjmcmbeZcnc0wP4zFQRXeXn7W3bbfBekmHDK2dOnuYNYkg0bQjh/w==
9977+
dependencies:
9978+
"@types/trusted-types" "^2.0.2"
9979+
9980+
lit@^2.1.3:
9981+
version "2.2.5"
9982+
resolved "https://registry.yarnpkg.com/lit/-/lit-2.2.5.tgz#60e8dd5b751fe31f849c64f74f1784a88235d664"
9983+
integrity sha512-Ln463c0xJZfzVxBcHddNvFQQ8Z22NK7KgNmrzwFF1iESHUud412RRExzepj18wpTbusgwoTnOYuoTpo9uyNBaQ==
9984+
dependencies:
9985+
"@lit/reactive-element" "^1.3.0"
9986+
lit-element "^3.2.0"
9987+
lit-html "^2.2.0"
9988+
99359989
load-json-file@^4.0.0:
99369990
version "4.0.0"
99379991
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b"
@@ -13314,6 +13368,13 @@ store2@^2.12.0:
1331413368
resolved "https://registry.yarnpkg.com/store2/-/store2-2.13.1.tgz#fae7b5bb9d35fc53dc61cd262df3abb2f6e59022"
1331513369
integrity sha512-iJtHSGmNgAUx0b/MCS6ASGxb//hGrHHRgzvN+K5bvkBTN7A9RTpPSf1WSp+nPGvWCJ1jRnvY7MKnuqfoi3OEqg==
1331613370

13371+
storybook-addon-designs@^6.2.1:
13372+
version "6.2.1"
13373+
resolved "https://registry.yarnpkg.com/storybook-addon-designs/-/storybook-addon-designs-6.2.1.tgz#47fd1a7a098cad027b3891bd72a7f9c1837d94a0"
13374+
integrity sha512-ihsscab8185HnxqTNZlM4TfrCPVsO7AimVA8BapuqT/sfZQF9m5H9C0plT3kbECdIMh2cmzMBF1Tc9ckWRgpWg==
13375+
dependencies:
13376+
"@figspec/react" "^1.0.0"
13377+
1331713378
stream-browserify@^2.0.1:
1331813379
version "2.0.2"
1331913380
resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.2.tgz#87521d38a44aa7ee91ce1cd2a47df0cb49dd660b"

0 commit comments

Comments
 (0)