From a2e87f52ca0653e8fd664955428c5170ab46ba5b Mon Sep 17 00:00:00 2001 From: Peter Colapietro Date: Wed, 30 Mar 2022 01:14:32 -0400 Subject: [PATCH] chore: add some storybook https://redwoodjs.com/docs/tutorial/chapter5/first-story --- web/config/storybook.config.js | 5 +- web/package.json | 1 + web/src/components/Article/Article.js | 10 +- web/src/components/Article/Article.mock.js | 9 +- web/src/components/Article/Article.stories.js | 14 +- .../__snapshots__/Article.test.js.snap | 8 +- yarn.lock | 716 +++++++++++++++++- 7 files changed, 727 insertions(+), 36 deletions(-) diff --git a/web/config/storybook.config.js b/web/config/storybook.config.js index 270830c..e112157 100644 --- a/web/config/storybook.config.js +++ b/web/config/storybook.config.js @@ -2,8 +2,5 @@ module.exports = { features: { interactionsDebugger: true, }, - addons: [ - '@storybook/addon-actions/register', - '@storybook/addon-interactions', - ], + addons: ['@storybook/addon-essentials', '@storybook/addon-interactions'], } diff --git a/web/package.json b/web/package.json index a23f03c..cbdce39 100644 --- a/web/package.json +++ b/web/package.json @@ -23,6 +23,7 @@ }, "devDependencies": { "@storybook/addon-actions": "6.4.19", + "@storybook/addon-essentials": "6.4.19", "@storybook/addon-interactions": "6.4.19", "@storybook/jest": "0.0.10", "@storybook/test-runner": "0.0.4", diff --git a/web/src/components/Article/Article.js b/web/src/components/Article/Article.js index 9d020c6..2795a77 100644 --- a/web/src/components/Article/Article.js +++ b/web/src/components/Article/Article.js @@ -1,6 +1,10 @@ import { Link, routes } from '@redwoodjs/router' -const Article = ({ article }) => { +const truncate = (text, length) => { + return text.substring(0, length) + '...' +} + +const Article = ({ article, summary = false }) => { return (
@@ -8,7 +12,9 @@ const Article = ({ article }) => { {article.title}
-
{article.body}
+
+ {summary ? truncate(article.body, 100) : article.body} +
Posted at: {article.createdAt}
) diff --git a/web/src/components/Article/Article.mock.js b/web/src/components/Article/Article.mock.js index 590e256..af1b1a9 100644 --- a/web/src/components/Article/Article.mock.js +++ b/web/src/components/Article/Article.mock.js @@ -1,9 +1,8 @@ -// Define your own mock data here: export const standard = () => ({ article: { - id: 42, - title: 'Article Title', - body: 'Article Body', - createdAt: '2020-01-01T00:00:00.000Z', + id: 1, + title: 'First Post', + body: `Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.`, + createdAt: '2022-03-30T00:00:00.000Z', }, }) diff --git a/web/src/components/Article/Article.stories.js b/web/src/components/Article/Article.stories.js index a6c8c50..85aca23 100644 --- a/web/src/components/Article/Article.stories.js +++ b/web/src/components/Article/Article.stories.js @@ -1,8 +1,18 @@ import Article from './Article' import { standard } from './Article.mock' -export const generated = () => { +/** @type { import("@storybook/react").Meta } */ +export default { + title: 'Components/Article', + args: { + summary: true, + }, +} + +export const full = () => { return
} -export default { title: 'Components/Article' } +export const summary = ({ summary = true }) => { + return
+} diff --git a/web/src/components/Article/__snapshots__/Article.test.js.snap b/web/src/components/Article/__snapshots__/Article.test.js.snap index d4ccdc8..bd187ce 100644 --- a/web/src/components/Article/__snapshots__/Article.test.js.snap +++ b/web/src/components/Article/__snapshots__/Article.test.js.snap @@ -8,19 +8,19 @@ exports[`Article fragment matches snapshot 1`] = ` class="text-xl text-blue-700 font-semibold" > - Article Title + First Post
- Article Body + Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.
- Posted at: 2020-01-01T00:00:00.000Z + Posted at: 2022-03-30T00:00:00.000Z
diff --git a/yarn.lock b/yarn.lock index 7c5583f..06600c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1874,6 +1874,13 @@ __metadata: languageName: node linkType: hard +"@base2/pretty-print-object@npm:1.0.1": + version: 1.0.1 + resolution: "@base2/pretty-print-object@npm:1.0.1" + checksum: 98f77ea185a30c854897feb2a68fe51be8451a1a0b531bac61a5dd67033926a0ba0c9be6e0f819b8cb72ca349b3e7648bf81c12fd21df0b45219c75a3a75784b + languageName: node + linkType: hard + "@bcoe/v8-coverage@npm:^0.2.3": version: 0.2.3 resolution: "@bcoe/v8-coverage@npm:0.2.3" @@ -1881,6 +1888,18 @@ __metadata: languageName: node linkType: hard +"@cnakazawa/watch@npm:^1.0.3": + version: 1.0.4 + resolution: "@cnakazawa/watch@npm:1.0.4" + dependencies: + exec-sh: ^0.3.2 + minimist: ^1.2.0 + bin: + watch: cli.js + checksum: 8678b6f582bdc5ffe59c0d45c2ad21f4ea1d162ec7ddb32e85078fca481c26958f27bcdef6007b8e9a066da090ccf9d31e1753f8de1e5f32466a04227d70dc31 + languageName: node + linkType: hard + "@discoveryjs/json-ext@npm:^0.5.0, @discoveryjs/json-ext@npm:^0.5.3": version: 0.5.6 resolution: "@discoveryjs/json-ext@npm:0.5.6" @@ -2936,6 +2955,29 @@ __metadata: languageName: node linkType: hard +"@jest/transform@npm:^26.6.2": + version: 26.6.2 + resolution: "@jest/transform@npm:26.6.2" + dependencies: + "@babel/core": ^7.1.0 + "@jest/types": ^26.6.2 + babel-plugin-istanbul: ^6.0.0 + chalk: ^4.0.0 + convert-source-map: ^1.4.0 + fast-json-stable-stringify: ^2.0.0 + graceful-fs: ^4.2.4 + jest-haste-map: ^26.6.2 + jest-regex-util: ^26.0.0 + jest-util: ^26.6.2 + micromatch: ^4.0.2 + pirates: ^4.0.1 + slash: ^3.0.0 + source-map: ^0.6.1 + write-file-atomic: ^3.0.0 + checksum: 1a1d636528d9b122b87b870633763c67f131533fce61e5db536dfbbea0bbfe8fe130daededb686ccc230389473a2b8ece5d0e1eaf380066d8902bde48579de31 + languageName: node + linkType: hard + "@jest/transform@npm:^27.5.1": version: 27.5.1 resolution: "@jest/transform@npm:27.5.1" @@ -2959,6 +3001,19 @@ __metadata: languageName: node linkType: hard +"@jest/types@npm:^26.6.2": + version: 26.6.2 + resolution: "@jest/types@npm:26.6.2" + dependencies: + "@types/istanbul-lib-coverage": ^2.0.0 + "@types/istanbul-reports": ^3.0.0 + "@types/node": "*" + "@types/yargs": ^15.0.0 + chalk: ^4.0.0 + checksum: 5b9b957f38a002895eb04bbb8c3dda6fccce8e2551f3f44b02f1f43063a78e8bedce73cd4330b53ede00ae005de5cd805982fbb2ec6ab9feacf96344240d5db2 + languageName: node + linkType: hard + "@jest/types@npm:^27.5.1": version: 27.5.1 resolution: "@jest/types@npm:27.5.1" @@ -2996,7 +3051,18 @@ __metadata: languageName: node linkType: hard -"@mdx-js/mdx@npm:^1.6.22": +"@mdx-js/loader@npm:^1.6.22": + version: 1.6.22 + resolution: "@mdx-js/loader@npm:1.6.22" + dependencies: + "@mdx-js/mdx": 1.6.22 + "@mdx-js/react": 1.6.22 + loader-utils: 2.0.0 + checksum: d39f8a3044b8025d5adea20c5f67daca46027e9fd89bc974646402ffb1ed83268081738f793f209cd37f06bfeaddb6b6f8cd61da56fa7a238c7d8da361f43761 + languageName: node + linkType: hard + +"@mdx-js/mdx@npm:1.6.22, @mdx-js/mdx@npm:^1.6.22": version: 1.6.22 resolution: "@mdx-js/mdx@npm:1.6.22" dependencies: @@ -3023,6 +3089,15 @@ __metadata: languageName: node linkType: hard +"@mdx-js/react@npm:1.6.22, @mdx-js/react@npm:^1.6.22": + version: 1.6.22 + resolution: "@mdx-js/react@npm:1.6.22" + peerDependencies: + react: ^16.13.1 || ^17.0.0 + checksum: ed896671ffab04c1f11cdba45bfb2786acff58cd0b749b0a13d9b7a7022ac75cc036bec067ca946e6540e2934727e0ba8bf174e4ae10c916f30cda6aecac8992 + languageName: node + linkType: hard + "@mdx-js/util@npm:1.6.22": version: 1.6.22 resolution: "@mdx-js/util@npm:1.6.22" @@ -4098,6 +4173,205 @@ __metadata: languageName: node linkType: hard +"@storybook/addon-backgrounds@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/addon-backgrounds@npm:6.4.19" + dependencies: + "@storybook/addons": 6.4.19 + "@storybook/api": 6.4.19 + "@storybook/client-logger": 6.4.19 + "@storybook/components": 6.4.19 + "@storybook/core-events": 6.4.19 + "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/theming": 6.4.19 + core-js: ^3.8.2 + global: ^4.4.0 + memoizerific: ^1.11.3 + regenerator-runtime: ^0.13.7 + ts-dedent: ^2.0.0 + util-deprecate: ^1.0.2 + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + checksum: 2b1460d7a62391da2c0e36cb05c3974805dbca9daa129bc13cd8e0c5a15ed79810f3eb2c10154442f4844c7c6291cd84557b619896bb19f45232b0c87d8edf71 + languageName: node + linkType: hard + +"@storybook/addon-controls@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/addon-controls@npm:6.4.19" + dependencies: + "@storybook/addons": 6.4.19 + "@storybook/api": 6.4.19 + "@storybook/client-logger": 6.4.19 + "@storybook/components": 6.4.19 + "@storybook/core-common": 6.4.19 + "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/node-logger": 6.4.19 + "@storybook/store": 6.4.19 + "@storybook/theming": 6.4.19 + core-js: ^3.8.2 + lodash: ^4.17.21 + ts-dedent: ^2.0.0 + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + checksum: 1b3d13ff403ed5bd0c9113d55e65c063e660c502c3e15344d2d43f9669a4180b428080275ead57d6787b6fc29fb3dbcbd08907e6cbe5cba9027917efae67394b + languageName: node + linkType: hard + +"@storybook/addon-docs@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/addon-docs@npm:6.4.19" + dependencies: + "@babel/core": ^7.12.10 + "@babel/generator": ^7.12.11 + "@babel/parser": ^7.12.11 + "@babel/plugin-transform-react-jsx": ^7.12.12 + "@babel/preset-env": ^7.12.11 + "@jest/transform": ^26.6.2 + "@mdx-js/loader": ^1.6.22 + "@mdx-js/mdx": ^1.6.22 + "@mdx-js/react": ^1.6.22 + "@storybook/addons": 6.4.19 + "@storybook/api": 6.4.19 + "@storybook/builder-webpack4": 6.4.19 + "@storybook/client-logger": 6.4.19 + "@storybook/components": 6.4.19 + "@storybook/core": 6.4.19 + "@storybook/core-events": 6.4.19 + "@storybook/csf": 0.0.2--canary.87bc651.0 + "@storybook/csf-tools": 6.4.19 + "@storybook/node-logger": 6.4.19 + "@storybook/postinstall": 6.4.19 + "@storybook/preview-web": 6.4.19 + "@storybook/source-loader": 6.4.19 + "@storybook/store": 6.4.19 + "@storybook/theming": 6.4.19 + acorn: ^7.4.1 + acorn-jsx: ^5.3.1 + acorn-walk: ^7.2.0 + core-js: ^3.8.2 + doctrine: ^3.0.0 + escodegen: ^2.0.0 + fast-deep-equal: ^3.1.3 + global: ^4.4.0 + html-tags: ^3.1.0 + js-string-escape: ^1.0.1 + loader-utils: ^2.0.0 + lodash: ^4.17.21 + nanoid: ^3.1.23 + p-limit: ^3.1.0 + prettier: ">=2.2.1 <=2.3.0" + prop-types: ^15.7.2 + react-element-to-jsx-string: ^14.3.4 + regenerator-runtime: ^0.13.7 + remark-external-links: ^8.0.0 + remark-slug: ^6.0.0 + ts-dedent: ^2.0.0 + util-deprecate: ^1.0.2 + peerDependencies: + "@storybook/angular": 6.4.19 + "@storybook/html": 6.4.19 + "@storybook/react": 6.4.19 + "@storybook/vue": 6.4.19 + "@storybook/vue3": 6.4.19 + "@storybook/web-components": 6.4.19 + lit: ^2.0.0 + lit-html: ^1.4.1 || ^2.0.0 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + svelte: ^3.31.2 + sveltedoc-parser: ^4.1.0 + vue: ^2.6.10 || ^3.0.0 + webpack: "*" + peerDependenciesMeta: + "@storybook/angular": + optional: true + "@storybook/html": + optional: true + "@storybook/react": + optional: true + "@storybook/vue": + optional: true + "@storybook/vue3": + optional: true + "@storybook/web-components": + optional: true + lit: + optional: true + lit-html: + optional: true + react: + optional: true + react-dom: + optional: true + svelte: + optional: true + sveltedoc-parser: + optional: true + vue: + optional: true + webpack: + optional: true + checksum: 96183b2d597f963030910dee8cc7d9588bd06984489a68f592990c0ad2023aadbc9be8bd1f49e1444f7a6efd957ff1af562bb073c0003ad2b86e17bcd61ca67e + languageName: node + linkType: hard + +"@storybook/addon-essentials@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/addon-essentials@npm:6.4.19" + dependencies: + "@storybook/addon-actions": 6.4.19 + "@storybook/addon-backgrounds": 6.4.19 + "@storybook/addon-controls": 6.4.19 + "@storybook/addon-docs": 6.4.19 + "@storybook/addon-measure": 6.4.19 + "@storybook/addon-outline": 6.4.19 + "@storybook/addon-toolbars": 6.4.19 + "@storybook/addon-viewport": 6.4.19 + "@storybook/addons": 6.4.19 + "@storybook/api": 6.4.19 + "@storybook/node-logger": 6.4.19 + core-js: ^3.8.2 + regenerator-runtime: ^0.13.7 + ts-dedent: ^2.0.0 + peerDependencies: + "@babel/core": ^7.9.6 + "@storybook/vue": 6.4.19 + "@storybook/web-components": 6.4.19 + babel-loader: ^8.0.0 + lit-html: ^1.4.1 || ^2.0.0-rc.3 + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + webpack: "*" + peerDependenciesMeta: + "@storybook/vue": + optional: true + "@storybook/web-components": + optional: true + lit-html: + optional: true + react: + optional: true + react-dom: + optional: true + webpack: + optional: true + checksum: 071ac242588bd42dcc625da99881bdd6a345a93d0ca552f9484c60ebea246bb48e0e054aab7dad9be63c2719c2972ad3c6a6c39ac9bb0790c688703d725c249d + languageName: node + linkType: hard + "@storybook/addon-interactions@npm:6.4.19": version: 6.4.19 resolution: "@storybook/addon-interactions@npm:6.4.19" @@ -4126,6 +4400,105 @@ __metadata: languageName: node linkType: hard +"@storybook/addon-measure@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/addon-measure@npm:6.4.19" + dependencies: + "@storybook/addons": 6.4.19 + "@storybook/api": 6.4.19 + "@storybook/client-logger": 6.4.19 + "@storybook/components": 6.4.19 + "@storybook/core-events": 6.4.19 + "@storybook/csf": 0.0.2--canary.87bc651.0 + core-js: ^3.8.2 + global: ^4.4.0 + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + checksum: cbc531d8dba687cb633e1590bfda13bccee49a42d3130306a9fae995073644a033f0b5943277a860c6678bd0b0e1bc92425482754b67214a3fd13f845f4d2377 + languageName: node + linkType: hard + +"@storybook/addon-outline@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/addon-outline@npm:6.4.19" + dependencies: + "@storybook/addons": 6.4.19 + "@storybook/api": 6.4.19 + "@storybook/client-logger": 6.4.19 + "@storybook/components": 6.4.19 + "@storybook/core-events": 6.4.19 + "@storybook/csf": 0.0.2--canary.87bc651.0 + core-js: ^3.8.2 + global: ^4.4.0 + regenerator-runtime: ^0.13.7 + ts-dedent: ^2.0.0 + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + checksum: fbbb7208d3a6e6b0b227783b2060a768c01e85ccfc632b05cd2a22714302b046df09074da75954e8b0a7a3cffda9f96f8dbe38e645cfac0cd4439b25a52eae04 + languageName: node + linkType: hard + +"@storybook/addon-toolbars@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/addon-toolbars@npm:6.4.19" + dependencies: + "@storybook/addons": 6.4.19 + "@storybook/api": 6.4.19 + "@storybook/components": 6.4.19 + "@storybook/theming": 6.4.19 + core-js: ^3.8.2 + regenerator-runtime: ^0.13.7 + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + checksum: 9c24c5e51ef4000ffeff71d6cebf47e9b709ed2ff41e54f3f656b2ebe9d0d3b17aa216f468bddd6915b03a79330606787bed7133e0ec2941136431559c13b750 + languageName: node + linkType: hard + +"@storybook/addon-viewport@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/addon-viewport@npm:6.4.19" + dependencies: + "@storybook/addons": 6.4.19 + "@storybook/api": 6.4.19 + "@storybook/client-logger": 6.4.19 + "@storybook/components": 6.4.19 + "@storybook/core-events": 6.4.19 + "@storybook/theming": 6.4.19 + core-js: ^3.8.2 + global: ^4.4.0 + memoizerific: ^1.11.3 + prop-types: ^15.7.2 + regenerator-runtime: ^0.13.7 + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + checksum: 4f8831827f77c554d5c3dc56da764466a6f7030d7b858bf74c1bfc025482d8e68b97945cbab48f2faa236c8acff340916338e612035f85209d5611d0b66ac4a0 + languageName: node + linkType: hard + "@storybook/addons@npm:6.4.19": version: 6.4.19 resolution: "@storybook/addons@npm:6.4.19" @@ -4811,6 +5184,15 @@ __metadata: languageName: node linkType: hard +"@storybook/postinstall@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/postinstall@npm:6.4.19" + dependencies: + core-js: ^3.8.2 + checksum: c6449327761812ee91614611fc3899ddd3bb125ec66cc60feb20cbf3652eda807d58af009b5f364a9b68bd5fcfbc443fa86b73d034ab142de52ef143348bf84b + languageName: node + linkType: hard + "@storybook/preview-web@npm:6.4.19": version: 6.4.19 resolution: "@storybook/preview-web@npm:6.4.19" @@ -4935,6 +5317,27 @@ __metadata: languageName: node linkType: hard +"@storybook/source-loader@npm:6.4.19": + version: 6.4.19 + resolution: "@storybook/source-loader@npm:6.4.19" + dependencies: + "@storybook/addons": 6.4.19 + "@storybook/client-logger": 6.4.19 + "@storybook/csf": 0.0.2--canary.87bc651.0 + core-js: ^3.8.2 + estraverse: ^5.2.0 + global: ^4.4.0 + loader-utils: ^2.0.0 + lodash: ^4.17.21 + prettier: ">=2.2.1 <=2.3.0" + regenerator-runtime: ^0.13.7 + peerDependencies: + react: ^16.8.0 || ^17.0.0 + react-dom: ^16.8.0 || ^17.0.0 + checksum: 9e40aae4d3086603baf1e28bf334760cf66687aa8ef8e8edefad1f2f8c2d0e691c6442ef52eb04dc1a8595c19bea6d9fef28be66bf4fd53642d46f132ed006e5 + languageName: node + linkType: hard + "@storybook/store@npm:6.4.19": version: 6.4.19 resolution: "@storybook/store@npm:6.4.19" @@ -5955,6 +6358,15 @@ __metadata: languageName: node linkType: hard +"@types/yargs@npm:^15.0.0": + version: 15.0.14 + resolution: "@types/yargs@npm:15.0.14" + dependencies: + "@types/yargs-parser": "*" + checksum: 49eb8ad456c218a6dc8abd90a6f635a3ef44bb59161fbee2e9208f86fcb931668bb3559cad8cfe9a84d9c32b98034e37fefc2d728c3a077784b51971f0766b2e + languageName: node + linkType: hard + "@types/yargs@npm:^16.0.0": version: 16.0.4 resolution: "@types/yargs@npm:16.0.4" @@ -6582,7 +6994,7 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^7.0.0, acorn-walk@npm:^7.1.1": +"acorn-walk@npm:^7.0.0, acorn-walk@npm:^7.1.1, acorn-walk@npm:^7.2.0": version: 7.2.0 resolution: "acorn-walk@npm:7.2.0" checksum: ff99f3406ed8826f7d6ef6ac76b7608f099d45a1ff53229fa267125da1924188dbacf02e7903dfcfd2ae4af46f7be8847dc7d564c73c4e230dfb69c8ea8e6b4c @@ -6605,7 +7017,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^7.0.0, acorn@npm:^7.1.1": +"acorn@npm:^7.0.0, acorn@npm:^7.1.1, acorn@npm:^7.4.1": version: 7.4.1 resolution: "acorn@npm:7.4.1" bin: @@ -7553,7 +7965,7 @@ __metadata: languageName: node linkType: hard -"babel-plugin-istanbul@npm:^6.1.1": +"babel-plugin-istanbul@npm:^6.0.0, babel-plugin-istanbul@npm:^6.1.1": version: 6.1.1 resolution: "babel-plugin-istanbul@npm:6.1.1" dependencies: @@ -8471,6 +8883,15 @@ __metadata: languageName: node linkType: hard +"capture-exit@npm:^2.0.0": + version: 2.0.0 + resolution: "capture-exit@npm:2.0.0" + dependencies: + rsvp: ^4.8.4 + checksum: d68df1e15937809501644a49c0267ef323b5b6a0cae5c08bbdceafd718aa08241844798bfdd762cf6756bc2becd83122aabc25b5222192f18093113bec670617 + languageName: node + linkType: hard + "case-sensitive-paths-webpack-plugin@npm:^2.3.0": version: 2.4.0 resolution: "case-sensitive-paths-webpack-plugin@npm:2.4.0" @@ -9586,6 +10007,19 @@ __metadata: languageName: node linkType: hard +"cross-spawn@npm:^6.0.0": + version: 6.0.5 + resolution: "cross-spawn@npm:6.0.5" + dependencies: + nice-try: ^1.0.4 + path-key: ^2.0.1 + semver: ^5.5.0 + shebang-command: ^1.2.0 + which: ^1.2.9 + checksum: e05544722e9d7189b4292c66e42b7abeb21db0d07c91b785f4ae5fefceb1f89e626da2703744657b287e86dcd4af57b54567cef75159957ff7a8a761d9055012 + languageName: node + linkType: hard + "cross-undici-fetch@npm:0.1.27, cross-undici-fetch@npm:^0.1.25": version: 0.1.27 resolution: "cross-undici-fetch@npm:0.1.27" @@ -11884,6 +12318,13 @@ __metadata: languageName: node linkType: hard +"exec-sh@npm:^0.3.2": + version: 0.3.6 + resolution: "exec-sh@npm:0.3.6" + checksum: de29ed40c263989ea151cfc8561c9a41a443185d1998b0ff7aee248323af3b46db3a1dc5341816297d0c02dca472b188640490aa4ba3cae017f531f98102607d + languageName: node + linkType: hard + "execa@npm:5.1.1, execa@npm:^5.0.0": version: 5.1.1 resolution: "execa@npm:5.1.1" @@ -11901,6 +12342,21 @@ __metadata: languageName: node linkType: hard +"execa@npm:^1.0.0": + version: 1.0.0 + resolution: "execa@npm:1.0.0" + dependencies: + cross-spawn: ^6.0.0 + get-stream: ^4.0.0 + is-stream: ^1.1.0 + npm-run-path: ^2.0.0 + p-finally: ^1.0.0 + signal-exit: ^3.0.0 + strip-eof: ^1.0.0 + checksum: cc71707c9aa4a2552346893ee63198bf70a04b5a1bc4f8a0ef40f1d03c319eae80932c59191f037990d7d102193e83a38ec72115fff814ec2fb3099f3661a590 + languageName: node + linkType: hard + "exit-on-epipe@npm:~1.0.1": version: 1.0.1 resolution: "exit-on-epipe@npm:1.0.1" @@ -12927,7 +13383,7 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:^2.3.2, fsevents@npm:~2.3.2": +"fsevents@npm:^2.1.2, fsevents@npm:^2.3.2, fsevents@npm:~2.3.2": version: 2.3.2 resolution: "fsevents@npm:2.3.2" dependencies: @@ -12947,7 +13403,7 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@^2.3.2#~builtin, fsevents@patch:fsevents@~2.3.2#~builtin": +"fsevents@patch:fsevents@^2.1.2#~builtin, fsevents@patch:fsevents@^2.3.2#~builtin, fsevents@patch:fsevents@~2.3.2#~builtin": version: 2.3.2 resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin::version=2.3.2&hash=18f3a7" dependencies: @@ -13078,7 +13534,7 @@ __metadata: languageName: node linkType: hard -"get-stream@npm:^4.1.0": +"get-stream@npm:^4.0.0, get-stream@npm:^4.1.0": version: 4.1.0 resolution: "get-stream@npm:4.1.0" dependencies: @@ -13120,6 +13576,13 @@ __metadata: languageName: node linkType: hard +"github-slugger@npm:^1.0.0": + version: 1.4.0 + resolution: "github-slugger@npm:1.4.0" + checksum: 849d0aa198c05e774de18bc877e42fb4589a7e68baed974480fed3a5063e4279b6dcb78881b87f7a1c6f73c592271f067d835bac6f6361c796ccbf377f4b5d1e + languageName: node + linkType: hard + "glob-parent@npm:^3.1.0": version: 3.1.0 resolution: "glob-parent@npm:3.1.0" @@ -13875,6 +14338,13 @@ __metadata: languageName: node linkType: hard +"html-tags@npm:^3.1.0": + version: 3.1.0 + resolution: "html-tags@npm:3.1.0" + checksum: 057986ab130901137cf78d8561f47176c6874cc6ceb3bbc301fb5871d65f0efa83b3fb922ce8a90e0999e33ff4ab37006b560e60a1d3efc6a456510454711936 + languageName: node + linkType: hard + "html-void-elements@npm:^1.0.0": version: 1.0.5 resolution: "html-void-elements@npm:1.0.5" @@ -14344,6 +14814,13 @@ __metadata: languageName: node linkType: hard +"is-absolute-url@npm:^3.0.0": + version: 3.0.3 + resolution: "is-absolute-url@npm:3.0.3" + checksum: 04c415974c32e73a83d3a21a9bea18fc4e2c14fbe6bbd64832cf1e67a75ade2af0e900f552f0b8a447f1305f5ffc9d143ccd8d005dbe715d198c359d342b86f0 + languageName: node + linkType: hard + "is-absolute@npm:^1.0.0": version: 1.0.0 resolution: "is-absolute@npm:1.0.0" @@ -14806,6 +15283,13 @@ __metadata: languageName: node linkType: hard +"is-plain-object@npm:5.0.0": + version: 5.0.0 + resolution: "is-plain-object@npm:5.0.0" + checksum: 893e42bad832aae3511c71fd61c0bf61aa3a6d853061c62a307261842727d0d25f761ce9379f7ba7226d6179db2a3157efa918e7fe26360f3bf0842d9f28942c + languageName: node + linkType: hard + "is-plain-object@npm:^2.0.3, is-plain-object@npm:^2.0.4": version: 2.0.4 resolution: "is-plain-object@npm:2.0.4" @@ -15340,6 +15824,31 @@ __metadata: languageName: node linkType: hard +"jest-haste-map@npm:^26.6.2": + version: 26.6.2 + resolution: "jest-haste-map@npm:26.6.2" + dependencies: + "@jest/types": ^26.6.2 + "@types/graceful-fs": ^4.1.2 + "@types/node": "*" + anymatch: ^3.0.3 + fb-watchman: ^2.0.0 + fsevents: ^2.1.2 + graceful-fs: ^4.2.4 + jest-regex-util: ^26.0.0 + jest-serializer: ^26.6.2 + jest-util: ^26.6.2 + jest-worker: ^26.6.2 + micromatch: ^4.0.2 + sane: ^4.0.3 + walker: ^1.0.7 + dependenciesMeta: + fsevents: + optional: true + checksum: 85a40d8ecf4bfb659613f107c963c7366cdf6dcceb0ca73dc8ca09fbe0e2a63b976940f573db6260c43011993cb804275f447f268c3bc4b680c08baed300701d + languageName: node + linkType: hard + "jest-haste-map@npm:^27.5.1": version: 27.5.1 resolution: "jest-haste-map@npm:27.5.1" @@ -15487,6 +15996,13 @@ __metadata: languageName: node linkType: hard +"jest-regex-util@npm:^26.0.0": + version: 26.0.0 + resolution: "jest-regex-util@npm:26.0.0" + checksum: 988675764a08945b90f48e6f5a8640b0d9885a977f100a168061d10037d53808a6cdb7dc8cb6fe9b1332f0523b42bf3edbb6d2cc6c7f7ba582d05d432efb3e60 + languageName: node + linkType: hard + "jest-regex-util@npm:^27.0.0, jest-regex-util@npm:^27.5.1": version: 27.5.1 resolution: "jest-regex-util@npm:27.5.1" @@ -15582,6 +16098,16 @@ __metadata: languageName: node linkType: hard +"jest-serializer@npm:^26.6.2": + version: 26.6.2 + resolution: "jest-serializer@npm:26.6.2" + dependencies: + "@types/node": "*" + graceful-fs: ^4.2.4 + checksum: 1c67aa1acefdc0b244f2629aaef12a56e563a5c5cb817970d2b97bdad5e8aae187b269c8d356c42ff9711436499c4da71ec8400e6280dab110be8cc5300884b0 + languageName: node + linkType: hard + "jest-serializer@npm:^27.5.1": version: 27.5.1 resolution: "jest-serializer@npm:27.5.1" @@ -15622,6 +16148,20 @@ __metadata: languageName: node linkType: hard +"jest-util@npm:^26.6.2": + version: 26.6.2 + resolution: "jest-util@npm:26.6.2" + dependencies: + "@jest/types": ^26.6.2 + "@types/node": "*" + chalk: ^4.0.0 + graceful-fs: ^4.2.4 + is-ci: ^2.0.0 + micromatch: ^4.0.2 + checksum: ab93709840f87bdf478d082f5465467c27a20a422cbe456cc2a56961d8c950ea52511995fb6063f62a113737f3dd714b836a1fbde51abef96642a5975e835a01 + languageName: node + linkType: hard + "jest-util@npm:^27.5.1": version: 27.5.1 resolution: "jest-util@npm:27.5.1" @@ -15682,7 +16222,7 @@ __metadata: languageName: node linkType: hard -"jest-worker@npm:^26.5.0": +"jest-worker@npm:^26.5.0, jest-worker@npm:^26.6.2": version: 26.6.2 resolution: "jest-worker@npm:26.6.2" dependencies: @@ -16347,6 +16887,17 @@ __metadata: languageName: node linkType: hard +"loader-utils@npm:2.0.0": + version: 2.0.0 + resolution: "loader-utils@npm:2.0.0" + dependencies: + big.js: ^5.2.2 + emojis-list: ^3.0.0 + json5: ^2.1.2 + checksum: 206eda981e486a28536b8a142074e0e927aac4c1f61565b2be402f0434f783a6bb0cef241fabec32ce541f28633a85e0beb68abd8fe9227b76b66d717de40550 + languageName: node + linkType: hard + "loader-utils@npm:^1.2.3, loader-utils@npm:^1.4.0": version: 1.4.0 resolution: "loader-utils@npm:1.4.0" @@ -16909,6 +17460,13 @@ __metadata: languageName: node linkType: hard +"mdast-util-to-string@npm:^1.0.0": + version: 1.1.0 + resolution: "mdast-util-to-string@npm:1.1.0" + checksum: 5dad9746ec0839792a8a35f504564e8d2b8c30013652410306c111963d33f1ee7b5477aa64ed77b64e13216363a29395809875ffd80e2031a08614657628a121 + languageName: node + linkType: hard + "mdn-data@npm:2.0.14": version: 2.0.14 resolution: "mdn-data@npm:2.0.14" @@ -17497,6 +18055,15 @@ __metadata: languageName: node linkType: hard +"nanoid@npm:^3.1.23": + version: 3.3.2 + resolution: "nanoid@npm:3.3.2" + bin: + nanoid: bin/nanoid.cjs + checksum: 48a0e9e9f80ced7a7eedf4017236e355eb48284b2bc65e7d75df6348e679b5762ce2e4b375977222c9b4399729a4e564c53bcde814d405c135b0f77a24ecb27c + languageName: node + linkType: hard + "nanoid@npm:^3.3.1": version: 3.3.1 resolution: "nanoid@npm:3.3.1" @@ -17560,6 +18127,13 @@ __metadata: languageName: node linkType: hard +"nice-try@npm:^1.0.4": + version: 1.0.5 + resolution: "nice-try@npm:1.0.5" + checksum: 95568c1b73e1d0d4069a3e3061a2102d854513d37bcfda73300015b7ba4868d3b27c198d1dbbd8ebdef4112fc2ed9e895d4a0f2e1cce0bd334f2a1346dc9205f + languageName: node + linkType: hard + "no-case@npm:^3.0.4": version: 3.0.4 resolution: "no-case@npm:3.0.4" @@ -17796,6 +18370,15 @@ __metadata: languageName: node linkType: hard +"npm-run-path@npm:^2.0.0": + version: 2.0.2 + resolution: "npm-run-path@npm:2.0.2" + dependencies: + path-key: ^2.0.0 + checksum: 95549a477886f48346568c97b08c4fda9cdbf7ce8a4fbc2213f36896d0d19249e32d68d7451bdcbca8041b5fba04a6b2c4a618beaf19849505c05b700740f1de + languageName: node + linkType: hard + "npm-run-path@npm:^4.0.1": version: 4.0.1 resolution: "npm-run-path@npm:4.0.1" @@ -18625,6 +19208,13 @@ __metadata: languageName: node linkType: hard +"path-key@npm:^2.0.0, path-key@npm:^2.0.1": + version: 2.0.1 + resolution: "path-key@npm:2.0.1" + checksum: dd2044f029a8e58ac31d2bf34c34b93c3095c1481942960e84dd2faa95bbb71b9b762a106aead0646695330936414b31ca0bd862bf488a937ad17c8c5d73b32b + 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" @@ -18801,7 +19391,7 @@ __metadata: languageName: node linkType: hard -"pirates@npm:^4.0.0, pirates@npm:^4.0.4, pirates@npm:^4.0.5": +"pirates@npm:^4.0.0, pirates@npm:^4.0.1, pirates@npm:^4.0.4, pirates@npm:^4.0.5": version: 4.0.5 resolution: "pirates@npm:4.0.5" checksum: 58b6ff0f137a3d70ff34ac4802fd19819cdc19b53e9c95adecae6c7cfc77719a11f561ad85d46e79e520ef57c31145a564c8bc3bee8cfee75d441fab2928a51d @@ -20055,6 +20645,20 @@ __metadata: languageName: node linkType: hard +"react-element-to-jsx-string@npm:^14.3.4": + version: 14.3.4 + resolution: "react-element-to-jsx-string@npm:14.3.4" + dependencies: + "@base2/pretty-print-object": 1.0.1 + is-plain-object: 5.0.0 + react-is: 17.0.2 + peerDependencies: + react: ^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 + react-dom: ^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 + checksum: 4ead664b2e26e76af57c9ce2f2a46e79fda1d3a408afb5f34d03357d195b7f41a1a86bb9286b6d6ba76c9c2611fe56bc038665cf27fdb56f571d235ddfce9ffb + languageName: node + linkType: hard + "react-fast-compare@npm:^3.0.1, react-fast-compare@npm:^3.2.0": version: 3.2.0 resolution: "react-fast-compare@npm:3.2.0" @@ -20112,6 +20716,13 @@ __metadata: languageName: node linkType: hard +"react-is@npm:17.0.2, react-is@npm:^17.0.1, react-is@npm:^17.0.2": + version: 17.0.2 + resolution: "react-is@npm:17.0.2" + checksum: 2bdb6b93fbb1820b024b496042cce405c57e2f85e777c9aabd55f9b26d145408f9f74f5934676ffdc46f3dcff656d78413a6e43968e7b3f92eea35b3052e9053 + languageName: node + linkType: hard + "react-is@npm:^16.13.1, react-is@npm:^16.7.0": version: 16.13.1 resolution: "react-is@npm:16.13.1" @@ -20119,13 +20730,6 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^17.0.1, react-is@npm:^17.0.2": - version: 17.0.2 - resolution: "react-is@npm:17.0.2" - checksum: 2bdb6b93fbb1820b024b496042cce405c57e2f85e777c9aabd55f9b26d145408f9f74f5934676ffdc46f3dcff656d78413a6e43968e7b3f92eea35b3052e9053 - languageName: node - linkType: hard - "react-popper-tooltip@npm:^3.1.1": version: 3.1.1 resolution: "react-popper-tooltip@npm:3.1.1" @@ -20514,6 +21118,19 @@ __metadata: languageName: node linkType: hard +"remark-external-links@npm:^8.0.0": + version: 8.0.0 + resolution: "remark-external-links@npm:8.0.0" + dependencies: + extend: ^3.0.0 + is-absolute-url: ^3.0.0 + mdast-util-definitions: ^4.0.0 + space-separated-tokens: ^1.0.0 + unist-util-visit: ^2.0.0 + checksum: 5f0affc97e18ad3247e3b29449f4df98be5a75950cf0f0f13dd1755c4ef1065f9ab44626bba34d913d32bb92afd6f06a8e2f8068e83b48337f0b7a5d1f0cecfe + languageName: node + linkType: hard + "remark-footnotes@npm:2.0.0": version: 2.0.0 resolution: "remark-footnotes@npm:2.0.0" @@ -20561,6 +21178,17 @@ __metadata: languageName: node linkType: hard +"remark-slug@npm:^6.0.0": + version: 6.1.0 + resolution: "remark-slug@npm:6.1.0" + dependencies: + github-slugger: ^1.0.0 + mdast-util-to-string: ^1.0.0 + unist-util-visit: ^2.0.0 + checksum: 7cc2857936fce9c9c00b9c7d70de46d594cedf93bd8560fd006164dee7aacccdf472654ee35b33f4fb4bd0af882d89998c6d0c9088c2e95702a9fc15ebae002a + languageName: node + linkType: hard + "remark-squeeze-paragraphs@npm:4.0.0": version: 4.0.0 resolution: "remark-squeeze-paragraphs@npm:4.0.0" @@ -20901,6 +21529,13 @@ __metadata: languageName: unknown linkType: soft +"rsvp@npm:^4.8.4": + version: 4.8.5 + resolution: "rsvp@npm:4.8.5" + checksum: 7978f01060a48204506a8ebe15cdbd468498f5ae538b1d7ee3e7630375ba7cb2f98df2f596c12d3f4d5d5c21badc1c6ca8009f5142baded8511609a28eabd19a + languageName: node + linkType: hard + "run-async@npm:^2.4.0": version: 2.4.1 resolution: "run-async@npm:2.4.1" @@ -21004,6 +21639,25 @@ __metadata: languageName: node linkType: hard +"sane@npm:^4.0.3": + version: 4.1.0 + resolution: "sane@npm:4.1.0" + dependencies: + "@cnakazawa/watch": ^1.0.3 + anymatch: ^2.0.0 + capture-exit: ^2.0.0 + exec-sh: ^0.3.2 + execa: ^1.0.0 + fb-watchman: ^2.0.0 + micromatch: ^3.1.4 + minimist: ^1.1.1 + walker: ~1.0.5 + bin: + sane: ./src/cli.js + checksum: 7d0991ecaa10b02c6d0339a6f7e31db776971f3b659a351916dcc7ce3464671e72b54d80bcce118e39d4343e1e56c699fe35f6cb89fbd88b07095b72841cbfb0 + languageName: node + linkType: hard + "sax@npm:>=0.6.0": version: 1.2.4 resolution: "sax@npm:1.2.4" @@ -21164,7 +21818,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.4.1, semver@npm:^5.6.0, semver@npm:^5.7.0, semver@npm:^5.7.1": +"semver@npm:2 || 3 || 4 || 5, semver@npm:^5.4.1, semver@npm:^5.5.0, semver@npm:^5.6.0, semver@npm:^5.7.0, semver@npm:^5.7.1": version: 5.7.1 resolution: "semver@npm:5.7.1" bin: @@ -21376,6 +22030,15 @@ __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: ^1.0.0 + checksum: 7b20dbf04112c456b7fc258622dafd566553184ac9b6938dd30b943b065b21dabd3776460df534cc02480db5e1b6aec44700d985153a3da46e7db7f9bd21326d + languageName: node + linkType: hard + "shebang-command@npm:^2.0.0": version: 2.0.0 resolution: "shebang-command@npm:2.0.0" @@ -21385,6 +22048,13 @@ __metadata: languageName: node linkType: hard +"shebang-regex@npm:^1.0.0": + version: 1.0.0 + resolution: "shebang-regex@npm:1.0.0" + checksum: 9abc45dee35f554ae9453098a13fdc2f1730e525a5eb33c51f096cc31f6f10a4b38074c1ebf354ae7bffa7229506083844008dfc3bb7818228568c0b2dc1fff2 + languageName: node + linkType: hard + "shebang-regex@npm:^3.0.0": version: 3.0.0 resolution: "shebang-regex@npm:3.0.0" @@ -22154,6 +22824,13 @@ __metadata: languageName: node linkType: hard +"strip-eof@npm:^1.0.0": + version: 1.0.0 + resolution: "strip-eof@npm:1.0.0" + checksum: f336beed8622f7c1dd02f2cbd8422da9208fae81daf184f73656332899978919d5c0ca84dc6cfc49ad1fc4dd7badcde5412a063cf4e0d7f8ed95a13a63f68f45 + languageName: node + linkType: hard + "strip-final-newline@npm:^2.0.0": version: 2.0.0 resolution: "strip-final-newline@npm:2.0.0" @@ -23847,7 +24524,7 @@ __metadata: languageName: node linkType: hard -"walker@npm:^1.0.7": +"walker@npm:^1.0.7, walker@npm:~1.0.5": version: 1.0.8 resolution: "walker@npm:1.0.8" dependencies: @@ -23949,6 +24626,7 @@ __metadata: "@redwoodjs/router": 1.0.0-rc.final.2 "@redwoodjs/web": 1.0.0-rc.final.2 "@storybook/addon-actions": 6.4.19 + "@storybook/addon-essentials": 6.4.19 "@storybook/addon-interactions": 6.4.19 "@storybook/jest": 0.0.10 "@storybook/test-runner": 0.0.4 @@ -24392,7 +25070,7 @@ __metadata: languageName: node linkType: hard -"which@npm:^1.2.12, which@npm:^1.2.14": +"which@npm:^1.2.12, which@npm:^1.2.14, which@npm:^1.2.9": version: 1.3.1 resolution: "which@npm:1.3.1" dependencies: