Skip to content

Commit 12bc713

Browse files
chore(deps): bump storybook to 6.2.7 (#1505)
1 parent 65c3bbd commit 12bc713

File tree

10 files changed

+257
-330
lines changed

10 files changed

+257
-330
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,18 @@ jobs:
4444
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
4545
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4646

47-
- name: deploy docs
47+
- name: Deploy Release Docs
4848
run: yarn deploy:storybook
4949
env:
5050
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
51+
52+
- name: Build Next Docs
53+
run: yarn build:storybook
54+
55+
- name: Deploy Next Docs
56+
uses: JamesIves/github-pages-deploy-action@4.1.1
57+
with:
58+
branch: gh-pages # The branch the action should deploy to.
59+
folder: .out # The folder the action should deploy.
60+
target-folder: master
61+
clean: true

.storybook/main.cjs

Lines changed: 6 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
const path = require('path');
2-
32
const root = path.resolve(__dirname, '..');
4-
require('dotenv').config({
5-
path: path.join(root, '.env')
6-
});
7-
8-
const DEPENDENCY_REGEX = /node_modules\/(@ui5\/webcomponents(-(base|core|fiori|icons|theme-base))?|lit-html)\//;
93

10-
let addons = [
4+
const addons = [
115
'@storybook/addon-toolbars',
126
'@storybook/addon-docs',
137
'@storybook/addon-controls',
@@ -21,56 +15,7 @@ if (process.env.NODE_ENV === 'development') {
2115
module.exports = {
2216
stories: ['../docs/**/*.stories.mdx', '../packages/**/*.stories.@(tsx|jsx|mdx)'],
2317
addons: addons,
24-
webpack: async (config, { configType }) => {
25-
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
26-
// You can change the configuration based on that.
27-
// 'PRODUCTION' is used when building the static version of storybook.
28-
if (configType === 'PRODUCTION') {
29-
config.module.rules.push({
30-
test: /\.(js|mjs)$/,
31-
include: DEPENDENCY_REGEX,
32-
loader: 'babel-loader',
33-
options: {
34-
sourceType: 'unambiguous',
35-
babelrc: false,
36-
configFile: false,
37-
compact: false,
38-
presets: [
39-
[
40-
'@babel/preset-env',
41-
{
42-
// Allow importing core-js in entrypoint and use browserlist to select polyfills
43-
useBuiltIns: 'entry',
44-
// Set the corejs version we are using to avoid warnings in console
45-
// This will need to change once we upgrade to corejs@3
46-
corejs: 3,
47-
// Do not transform modules to CJS
48-
modules: false,
49-
// Exclude transforms that make all code slower
50-
exclude: ['transform-typeof-symbol']
51-
}
52-
]
53-
],
54-
plugins: [
55-
[
56-
'@babel/plugin-transform-runtime',
57-
{
58-
version: require('@babel/runtime/package.json').version,
59-
useESModules: true
60-
}
61-
]
62-
],
63-
cacheDirectory: true,
64-
cacheCompression: false,
65-
66-
// If an error happens in a package, it's possible to be
67-
// because it was compiled. Thus, we don't want the browser
68-
// debugger to show the original code. Instead, the code
69-
// being evaluated would be much more helpful.
70-
sourceMaps: false
71-
}
72-
});
73-
}
18+
webpack: async (config) => {
7419
config.resolve.alias = {
7520
...config.resolve.alias,
7621
'@shared': path.join(root, 'shared'),
@@ -81,7 +26,9 @@ module.exports = {
8126
'@ui5/webcomponents-react-base/types': path.join(root, 'packages', 'base', 'types'),
8227
'@ui5/webcomponents-react-base': path.join(root, 'packages', 'base', 'src')
8328
};
84-
8529
return config;
86-
}
30+
},
31+
features: {
32+
postcss: false,
33+
},
8734
};

.storybook/manager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ addons.setConfig({
4040
*/
4141
enableShortcuts: false,
4242

43-
showRoots: true
43+
sidebar: {
44+
showRoots: true
45+
}
4446
});

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"examples:start-seed": "cd examples/seed-test && SKIP_PREFLIGHT_CHECK=true yarn start"
2424
},
2525
"dependencies": {
26-
"@storybook/addon-actions": "6.2.3",
27-
"@storybook/addon-controls": "6.2.3",
28-
"@storybook/addon-docs": "6.2.3",
29-
"@storybook/addon-toolbars": "6.2.3",
30-
"@storybook/addons": "6.2.3",
31-
"@storybook/cli": "6.2.3",
32-
"@storybook/react": "6.2.3",
33-
"@storybook/theming": "6.2.3",
26+
"@storybook/addon-actions": "6.2.7",
27+
"@storybook/addon-controls": "6.2.7",
28+
"@storybook/addon-docs": "6.2.7",
29+
"@storybook/addon-toolbars": "6.2.7",
30+
"@storybook/addons": "6.2.7",
31+
"@storybook/cli": "6.2.7",
32+
"@storybook/react": "6.2.7",
33+
"@storybook/theming": "6.2.7",
3434
"@ui5/webcomponents": "1.0.0-rc.14",
3535
"@ui5/webcomponents-fiori": "1.0.0-rc.14",
3636
"@ui5/webcomponents-icons": "1.0.0-rc.14",
@@ -53,7 +53,7 @@
5353
"@babel/runtime": "7.13.10",
5454
"@rollup/plugin-babel": "^5.2.1",
5555
"@rollup/plugin-node-resolve": "^11.0.0",
56-
"@storybook/addon-a11y": "^6.2.3",
56+
"@storybook/addon-a11y": "^6.2.7",
5757
"@storybook/storybook-deployer": "^2.8.7",
5858
"@testing-library/jest-dom": "^5.11.4",
5959
"@testing-library/react": "^11.0.2",

packages/main/src/components/AnalyticalTable/AnalyticalTable.stories.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,9 @@ By adding the `visibleRowCountMode` prop and setting it to `TableVisibleRowCount
698698
withNavigationHighlight: { table: { disable: true } },
699699
markNavigatedRow: { table: { disable: true } },
700700
containerHeight: {
701+
options: [250, 500, 750, 1000],
701702
control: {
702-
type: 'radio',
703-
options: [250, 500, 750, 1000]
703+
type: 'radio'
704704
},
705705
description:
706706
'Select an option to change the height of the surrounding container of the table (in `px`). <br /> __Note__: This is not an actual prop of the table.'
@@ -836,9 +836,9 @@ In the example below you can have a look at this behavior:
836836
withNavigationHighlight: { table: { disable: true } },
837837
markNavigatedRow: { table: { disable: true } },
838838
containerWidth: {
839+
options: [400, 600, 800, 'auto'],
839840
control: {
840-
type: 'radio',
841-
options: [400, 600, 800, 'auto']
841+
type: 'radio'
842842
},
843843
description:
844844
'Select an option to change the width of the surrounding container of the table (in `px`). <br /> __Note__: This is not an actual prop of the table.'

packages/main/src/webComponents/Input/Input.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ and the `showSuggestions` prop is set to `true`.
108108
},
109109
text: { description: `Defines the text of the <code>SuggestionItem</code>.` },
110110
type: {
111-
control: { options: ['Inactive', 'Active', 'Detail'] },
111+
options: ['Inactive', 'Active', 'Detail'],
112112
description: `Defines the visual indication and behavior of the item. Available options are <code>Active</code> (by default), <code>Inactive</code> and <code>Detail</code>. <br><br> <b>Note:</b> When set to <code>Active</code>, the item will provide visual response upon press and hover, while when <code>Inactive</code> or <code>Detail</code> - will not.`
113113
},
114114
disabled: { table: { disable: true } },

packages/main/src/webComponents/TabContainer/TabContainer.stories.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ selected
111111
},
112112
selected: { description: `Specifies if the <code>Tab</code> is selected.` },
113113
semanticColor: {
114-
control: { type: 'radio', options: Object.values(SemanticColor) },
114+
options: Object.values(SemanticColor),
115+
control: { type: 'radio' },
115116
description: `Defines the <code>Tab</code> semantic color. <br><br> The color is applied to: <ul> <li>the <code>Tab</code> icon</li> <li>the <code>text</code> when <code>Tab</code> overflows</li> <li>the tab selection line</li> </ul><br/><br/>Available semantic colors are: <code>"Default"</code>, <code>"Neutral"</code>, <code>"Positive"</code>, <code>"Critical"</code> and <code>"Negative"</code>.<br/><br/><b>Note:</b> The color value depends on the current theme.`
116117
},
117118
stableDomRef: { description: `Defines the stable selector that you can use via getStableDomRef method.` },

packages/main/src/webComponents/UploadCollection/UploadCollection.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ export const UploadCollectionComponent = () => {
167167
description: `The upload progress in percentage. <br><br> <b>Note:</b> Expected values are in the interval [0, 100].`
168168
},
169169
uploadState: {
170+
options: ['Complete', 'Error', 'Ready', 'Uploading'],
170171
control: {
171-
options: ['Complete', 'Error', 'Ready', 'Uploading'],
172172
type: 'radio'
173173
},
174174
description: `If set to <code>Uploading</code> or <code>Error</code>, a progress indicator showing the <code>progress</code> is displayed. Also if set to <code>Error</code>, a refresh button is shown. When this icon is pressed <code>retry</code> event is fired. If set to <code>Uploading</code>, a terminate button is shown. When this icon is pressed <code>terminate</code> event is fired.`

shared/stories/createSelectArgTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ export const createSelectArgTypes = (definition: ArgDefinition) => {
77

88
for (const arg in definition) {
99
argTypes[arg] = {
10+
options: Array.isArray(definition[arg]) ? definition[arg] : Object.values(definition[arg]),
1011
control: {
11-
type: 'radio',
12-
options: Array.isArray(definition[arg]) ? definition[arg] : Object.values(definition[arg])
12+
type: 'radio'
1313
}
1414
};
1515
}

0 commit comments

Comments
 (0)