Skip to content

Commit

Permalink
Migrate to Storybook 7 + fix vulnerabilities (#19)
Browse files Browse the repository at this point in the history
* Migrate to Storybook 7 + fix vulnerabilities

* integrate with new cio client js types

* upgrade to latest cio client js

* update useDownShift types

* update itemToString signature

* Build library bundle and supporting storybook documentation

Co-authored-by: Jesse DeOms <jesse.deoms@gmail.com>
Co-authored-by: GitHub Actions <actions@github.com>
  • Loading branch information
3 people committed Dec 21, 2022
1 parent 1c6286e commit 6966f7d
Show file tree
Hide file tree
Showing 121 changed files with 24,140 additions and 40,362 deletions.
27 changes: 22 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,41 @@
"es2021": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:storybook/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": "tsconfig.eslint.json"
},
"plugins": ["@typescript-eslint", "prettier"],
"plugins": [
"@typescript-eslint",
"prettier"
],
"rules": {
"prefer-const": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-params": "off",
"prettier/prettier": ["error"]
"prettier/prettier": [
"error"
]
},
"overrides": [
{
"files": "tests/**/*.ts",
"env": { "node": true, "jest": true }
"env": {
"node": true,
"jest": true
}
}
],
"ignorePatterns": ["*.config.js", "lib/**/*.js", "lib/*.d.ts"]
"ignorePatterns": [
"*.config.js",
"lib/**/*.js",
"lib/*.d.ts"
]
}
8 changes: 7 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@ module.exports = {
'@storybook/addon-interactions',
'@storybook/addon-a11y'
],
framework: '@storybook/react'
framework: {
name: '@storybook/react-webpack5',
options: {}
},
docs: {
docsPage: 'automatic'
}
};
2 changes: 1 addition & 1 deletion .storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const parameters = {
},
options: {
storySort: (a, b) =>
a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, { numeric: true })
a.title === b.title ? 0 : a.id.localeCompare(b.id, undefined, { numeric: true })
},
layout: 'fullscreen',
viewMode: 'docs',
Expand Down
3 changes: 0 additions & 3 deletions docs/0.92443bb1.iframe.bundle.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/0.92443bb1.iframe.bundle.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion docs/0.92443bb1.iframe.bundle.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions docs/0.945f938928f46245e76c.manager.bundle.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/0.945f938928f46245e76c.manager.bundle.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion docs/1.4c43995d6acd6e837d46.manager.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/1.bdfc889d.iframe.bundle.js

This file was deleted.

3 changes: 0 additions & 3 deletions docs/10.ecbcedcf.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/10.ecbcedcf.iframe.bundle.js.map

This file was deleted.

1 change: 0 additions & 1 deletion docs/11.1093823a.iframe.bundle.js

This file was deleted.

2 changes: 2 additions & 0 deletions docs/115.0f1e0b78.iframe.bundle.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! axe v4.4.3
/*! axe v4.6.1
* Copyright (c) 2022 Deque Systems, Inc.
*
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
Expand Down
1 change: 0 additions & 1 deletion docs/2.13ec33ad.iframe.bundle.js

This file was deleted.

7 changes: 7 additions & 0 deletions docs/314.af103a56.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/314.af103a56.iframe.bundle.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/341.f2fbd05f.iframe.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/446.d7495e25.iframe.bundle.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/5.02a316692bb2bba4c0fc.manager.bundle.js

This file was deleted.

31 changes: 0 additions & 31 deletions docs/5.02a316692bb2bba4c0fc.manager.bundle.js.LICENSE.txt

This file was deleted.

1 change: 1 addition & 0 deletions docs/576.e57c9eda.iframe.bundle.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions docs/6.9bd4eda0.iframe.bundle.js

This file was deleted.

31 changes: 0 additions & 31 deletions docs/6.9bd4eda0.iframe.bundle.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion docs/6.9bd4eda0.iframe.bundle.js.map

This file was deleted.

1 change: 0 additions & 1 deletion docs/6.f56f3024a57fdafe735e.manager.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/7.c5d7f52d.iframe.bundle.js

This file was deleted.

0 comments on commit 6966f7d

Please sign in to comment.