upgrade storybook and babel deps (#9371)

This commit is contained in:
Noelle Daley 2020-07-01 16:28:16 -07:00 committed by GitHub
parent c17f17c6f2
commit f9f43d1868
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 2355 additions and 679 deletions

View file

@ -1,3 +1,5 @@
/* eslint-env node */
module.exports = {
presets: [
[

View file

@ -3,7 +3,7 @@ import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
<%= importMD %>
storiesOf('<%= classifiedModuleName %>/', module)
storiesOf('<%= classifiedModuleName %>', module)
.addParameters({ options: { showPanel: true } })
.add(`<%= classifiedModuleName %>`, () => ({
template: hbs`

View file

@ -4,7 +4,7 @@ import notes from './alert-banner.md';
import { withKnobs, object } from '@storybook/addon-knobs';
import { MESSAGE_TYPES } from '../addon/helpers/message-types.js';
storiesOf('Alerts/AlertBanner/', module)
storiesOf('Alerts/AlertBanner', module)
.addParameters({ options: { showPanel: false } })
.addDecorator(
withKnobs({

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import notes from './alert-inline.md';
import { MESSAGE_TYPES } from '../addon/helpers/message-types.js';
storiesOf('Alerts/AlertInline/', module)
storiesOf('Alerts/AlertInline', module)
.addParameters({ options: { showPanel: false } })
.add(
'AlertInline',

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, select } from '@storybook/addon-knobs';
import notes from './chevron.md';
storiesOf('Chevron/', module)
storiesOf('Chevron', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, text, boolean } from '@storybook/addon-knobs';
import notes from './confirm-action.md';
storiesOf('ConfirmAction/', module)
storiesOf('Confirm/ConfirmAction', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(
withKnobs({

View file

@ -2,7 +2,7 @@ import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './doc-link.md';
storiesOf('DocLink/', module)
storiesOf('DocLink', module)
.addParameters({ options: { showPanel: true } })
.add(
`DocLink`,

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, text } from '@storybook/addon-knobs';
import notes from './empty-state.md';
storiesOf('EmptyState/', module)
storiesOf('EmptyState', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs({ escapeHTML: false }))
.add(

View file

@ -24,7 +24,7 @@ const MODELS = {
const DEFAULT_VALUE = 'aws/client';
storiesOf('Form/FormFieldGroups/', module)
storiesOf('Forms/FormFieldGroups', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -11,7 +11,7 @@ const createAttr = (name, type, options) => {
};
};
storiesOf('Form/FormField/', module)
storiesOf('Forms/FormField', module)
.add(
`FormField|string`,
() => ({

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, text, boolean } from '@storybook/addon-knobs';
import notes from './form-save-buttons.md';
storiesOf('FormSaveButtons/', module)
storiesOf('Forms/FormSaveButtons', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(
withKnobs({

View file

@ -4,7 +4,7 @@ import notes from './icon.md';
import icons from '../../../node_modules/@hashicorp/structure-icons/dist/index.js';
import { withKnobs, select } from '@storybook/addon-knobs';
storiesOf('Icon/', module)
storiesOf('Icon', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, boolean, text } from '@storybook/addon-knobs';
import notes from './info-table-row.md';
storiesOf('InfoTableRow/', module)
storiesOf('InfoTable/InfoTableRow', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs({ escapeHTML: false }))
.add(

View file

@ -5,7 +5,7 @@ import notes from './info-table.md';
const ITEMS = ['https://127.0.0.1:8201', 'hello', 3];
storiesOf('InfoTable/', module)
storiesOf('InfoTable/InfoTable', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs({ escapeHTML: false }))
.add(

View file

@ -2,7 +2,7 @@ import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './layout-loading.md';
storiesOf('Loading/LayoutLoading/', module)
storiesOf('LayoutLoading', module)
.addParameters({ options: { showPanel: true } })
.add(
`LayoutLoading`,

View file

@ -19,7 +19,7 @@ let options = {
filtered,
};
storiesOf('ListView/', module)
storiesOf('ListView', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, text, boolean } from '@storybook/addon-knobs';
import notes from './masked-input.md';
storiesOf('MaskedInput/', module)
storiesOf('MaskedInput', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -10,7 +10,7 @@ let model = EmberObject.create({
isError: true,
});
storiesOf('MessageError/', module)
storiesOf('MessageError', module)
.addParameters({ options: { showPanel: true } })
.add(
`MessageError`,

View file

@ -2,7 +2,7 @@ import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './message.md';
storiesOf('Confirm/Message/', module)
storiesOf('Confirm/Message', module)
.addParameters({ options: { showPanel: true } })
.add(
`Message`,

View file

@ -2,7 +2,7 @@ import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './popup-menu.md';
storiesOf('PopupMenu/', module)
storiesOf('PopupMenu', module)
.addParameters({ options: { showPanel: true } })
.add(
`PopupMenu`,

View file

@ -6,7 +6,7 @@ import { withKnobs, text } from '@storybook/addon-knobs';
const onChange = value => alert(`New value is "${value}"`);
const models = ['identity/groups'];
storiesOf('SearchSelect/', module)
storiesOf('SearchSelect', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs({ escapeHTML: false }))
.add(

View file

@ -9,7 +9,7 @@ const OPTIONS = [
{ value: 'weds', label: 'Wednesday', spanish: 'miercoles' },
];
storiesOf('Select/', module)
storiesOf('Select', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs } from '@storybook/addon-knobs';
import notes from './toolbar-actions.md';
storiesOf('Toolbar/', module)
storiesOf('Toolbar', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, text } from '@storybook/addon-knobs';
import notes from './toolbar-download-button.md';
storiesOf('Toolbar/', module)
storiesOf('Toolbar', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs } from '@storybook/addon-knobs';
import notes from './toolbar-filters.md';
storiesOf('Toolbar/', module)
storiesOf('Toolbar', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, select, text } from '@storybook/addon-knobs';
import notes from './toolbar-link.md';
storiesOf('Toolbar/', module)
storiesOf('Toolbar', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, select, text } from '@storybook/addon-knobs';
import notes from './toolbar-secret-link.md';
storiesOf('Toolbar/', module)
storiesOf('Toolbar', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import { withKnobs, select } from '@storybook/addon-knobs';
import notes from './toolbar.md';
storiesOf('Toolbar/', module)
storiesOf('Toolbar', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -2,7 +2,7 @@ import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './ttl-picker.md';
storiesOf('TTL/TtlPicker/', module)
storiesOf('TTL/TtlPicker', module)
.addParameters({ options: { showPanel: false } })
.add(
`TtlPicker`,

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import notes from './ttl-picker2.md';
import { withKnobs, text, boolean, select } from '@storybook/addon-knobs';
storiesOf('TTL/TtlPicker2/', module)
storiesOf('TTL/TtlPicker2', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -2,7 +2,7 @@ import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './vault-logo-spinner.md';
storiesOf('Loading/VaultLogoSpinner/', module)
storiesOf('VaultLogoSpinner', module)
.addParameters({ options: { showPanel: true } })
.add(
`VaultLogoSpinner`,

View file

@ -40,9 +40,10 @@
},
"devDependencies": {
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/plugin-transform-block-scoping": "^7.10.4",
"@ember/optional-features": "^0.7.0",
"@hashicorp/structure-icons": "^1.3.0",
"@storybook/ember-cli-storybook": "meirish/ember-cli-storybook#6bd58326d8c21e986d390b541ae5e49089d61b93",
"@storybook/ember-cli-storybook": "^0.2.1",
"Duration.js": "icholy/Duration.js#golang_compatible",
"autosize": "^4.0.0",
"babel-eslint": "^10.0.2",
@ -65,12 +66,12 @@
"deepmerge": "^4.0.0",
"doctoc": "^1.4.0",
"ember-api-actions": "^0.2.8",
"ember-auto-import": "^1.5.3",
"ember-auto-import": "^1.6.0",
"ember-basic-dropdown": "^1.0.0",
"ember-basic-dropdown-hover": "^0.6.0",
"ember-cli": "~3.11.0",
"ember-cli-autoprefixer": "^0.8.1",
"ember-cli-babel": "^7.8.0",
"ember-cli-babel": "^7.21.0",
"ember-cli-browserstack": "^0.0.7",
"ember-cli-clipboard": "^0.13.0",
"ember-cli-content-security-policy": "^1.0.0",
@ -143,14 +144,14 @@
"yargs-parser": "^13.1.1"
},
"optionalDependencies": {
"@babel/core": "^7.5.5",
"@storybook/addon-knobs": "^5.1.10",
"@storybook/addon-links": "^5.1.10",
"@storybook/addon-notes": "^5.1.10",
"@storybook/addon-viewport": "^5.1.10",
"@storybook/addons": "^5.1.10",
"@storybook/ember": "^5.1.10",
"babel-loader": "^8.0.6",
"@babel/core": "^7.10.4",
"@storybook/addon-knobs": "^5.3.19",
"@storybook/addon-links": "^5.3.19",
"@storybook/addon-notes": "^5.3.19",
"@storybook/addon-viewport": "^5.3.19",
"@storybook/addons": "^5.3.19",
"@storybook/ember": "^5.3.19",
"babel-loader": "^8.1.0",
"jsdoc-to-markdown": "^5.0.0",
"lint-staged": "^10.1.2"
},

View file

@ -4,7 +4,7 @@ import { storiesOf } from '@storybook/ember';
import notes from './alert-popup.md';
import { MESSAGE_TYPES } from '../lib/core/addon/helpers/message-types.js';
storiesOf('Alerts/AlertPopup/', module)
storiesOf('Alerts/AlertPopup', module)
.addParameters({ options: { showPanel: false } })
.add(
`AlertPopup`,

View file

@ -23,7 +23,7 @@ const MODELS = {
const DEFAULT_VALUE = 'aws/client';
storiesOf('AuthConfigForm/Config/', module)
storiesOf('AuthConfigForm/Config', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -23,7 +23,7 @@ const MODELS = {
const DEFAULT_VALUE = 'aws/client';
storiesOf('AuthConfigForm/Options/', module)
storiesOf('AuthConfigForm/Options', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './auth-form.md';
storiesOf('AuthForm/', module)
storiesOf('AuthForm', module)
.addParameters({ options: { showPanel: false } })
.add(
`AuthForm`,

View file

@ -5,7 +5,7 @@ import { withKnobs, text } from '@storybook/addon-knobs';
import notes from './file-to-array-buffer.md';
storiesOf('FileToArrayBuffer/', module)
storiesOf('FileToArrayBuffer', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(
withKnobs()

View file

@ -18,7 +18,7 @@ const COUNTERS = [
{ start_time: '2019-03-01T00:00:00Z', total: 5000 },
];
storiesOf('HttpRequests/Container/', module)
storiesOf('HttpRequests/HttpRequestsContainer', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -11,7 +11,7 @@ const COUNTERS = [
{ start_time: '2019-03-01T00:00:00Z', total: 5000 },
];
storiesOf('HttpRequests/Table/', module)
storiesOf('HttpRequests/Table', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

View file

@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/ember';
import notes from './toggle.md';
import { withKnobs, text, boolean, select } from '@storybook/addon-knobs';
storiesOf('Toggle/', module)
storiesOf('Toggle', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(

File diff suppressed because it is too large Load diff