Skip to content

Commit

Permalink
Merge pull request #15144 from storybookjs/addon-measure-outline-esm
Browse files Browse the repository at this point in the history
Essentials: Update measure/outline addons to support ESM and vite builder
  • Loading branch information
shilman authored Jun 5, 2021
2 parents 5c0b593 + 37acb99 commit 97f0f03
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 156 deletions.
4 changes: 2 additions & 2 deletions addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
"@storybook/addon-backgrounds": "6.3.0-beta.11",
"@storybook/addon-controls": "6.3.0-beta.11",
"@storybook/addon-docs": "6.3.0-beta.11",
"@storybook/addon-measure": "^1.1.0",
"@storybook/addon-measure": "^1.2.2",
"@storybook/addon-toolbars": "6.3.0-beta.11",
"@storybook/addon-viewport": "6.3.0-beta.11",
"@storybook/addons": "6.3.0-beta.11",
"@storybook/api": "6.3.0-beta.11",
"@storybook/node-logger": "6.3.0-beta.11",
"core-js": "^3.8.2",
"regenerator-runtime": "^0.13.7",
"storybook-addon-outline": "^1.3.2",
"storybook-addon-outline": "^1.3.3",
"ts-dedent": "^2.0.0"
},
"devDependencies": {
Expand Down
64 changes: 0 additions & 64 deletions app/server/src/lib/compiler/__testfixtures__/yaml.snapshot
Original file line number Diff line number Diff line change
@@ -1,37 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`json-to-csf-compiler yaml.yaml 1`] = `
"
export default {
title: \\"Demo YAML\\",
};

export const Heading = (args) => {};
Heading.storyName = 'Heading';
Heading.parameters = {
server: {
id: \\"yaml/heading\\"
}
};

export const Headings = (args) => {};
Headings.storyName = 'Headings';
Headings.parameters = {
server: {
id: \\"yaml/headings\\"
}
};

export const Button = (args) => {};
Button.storyName = 'Button';
Button.parameters = {
server: {
id: \\"yaml/button\\"
}
};
"
`;

exports[`ya?ml-to-csf-compiler yaml.yaml 1`] = `
"
export default {
Expand Down Expand Up @@ -63,35 +31,3 @@ Button.parameters = {
};
"
`;

exports[`yaml-to-csf-compiler yaml.yaml 1`] = `
"
export default {
title: \\"Demo YAML\\",
};

export const Heading = (args) => {};
Heading.storyName = 'Heading';
Heading.parameters = {
server: {
id: \\"yaml/heading\\"
}
};

export const Headings = (args) => {};
Headings.storyName = 'Headings';
Headings.parameters = {
server: {
id: \\"yaml/headings\\"
}
};

export const Button = (args) => {};
Button.storyName = 'Button';
Button.parameters = {
server: {
id: \\"yaml/button\\"
}
};
"
`;
64 changes: 0 additions & 64 deletions app/server/src/lib/compiler/__testfixtures__/yml.snapshot
Original file line number Diff line number Diff line change
@@ -1,37 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`json-to-csf-compiler yml.yml 1`] = `
"
export default {
title: \\"Demo YML\\",
};

export const Heading = (args) => {};
Heading.storyName = 'Heading';
Heading.parameters = {
server: {
id: \\"yaml/heading\\"
}
};

export const Headings = (args) => {};
Headings.storyName = 'Headings';
Headings.parameters = {
server: {
id: \\"yaml/headings\\"
}
};

export const Button = (args) => {};
Button.storyName = 'Button';
Button.parameters = {
server: {
id: \\"yaml/button\\"
}
};
"
`;

exports[`ya?ml-to-csf-compiler yml.yml 1`] = `
"
export default {
Expand Down Expand Up @@ -63,35 +31,3 @@ Button.parameters = {
};
"
`;

exports[`yml-to-csf-compiler yml.yml 1`] = `
"
export default {
title: \\"Demo YML\\",
};

export const Heading = (args) => {};
Heading.storyName = 'Heading';
Heading.parameters = {
server: {
id: \\"yaml/heading\\"
}
};

export const Headings = (args) => {};
Headings.storyName = 'Headings';
Headings.parameters = {
server: {
id: \\"yaml/headings\\"
}
};

export const Button = (args) => {};
Button.storyName = 'Button';
Button.parameters = {
server: {
id: \\"yaml/button\\"
}
};
"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Object {
"ROOT/addons/actions/dist/esm/register.js",
"ROOT/addons/backgrounds/dist/esm/register.js",
"ROOT/addons/toolbars/dist/esm/register.js",
"NODE_MODULES/@storybook/addon-measure/dist/preset/manager.js",
"NODE_MODULES/storybook-addon-outline/dist/preset/register.js",
"NODE_MODULES/@storybook/addon-measure/dist/esm/preset/manager.js",
"NODE_MODULES/storybook-addon-outline/dist/esm/preset/register.js",
"ROOT/examples/cra-ts-essentials/.storybook/generated-refs.js",
],
"keys": Array [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Object {
"ROOT/addons/actions/dist/esm/register.js",
"ROOT/addons/backgrounds/dist/esm/register.js",
"ROOT/addons/toolbars/dist/esm/register.js",
"NODE_MODULES/@storybook/addon-measure/dist/preset/manager.js",
"NODE_MODULES/storybook-addon-outline/dist/preset/register.js",
"NODE_MODULES/@storybook/addon-measure/dist/esm/preset/manager.js",
"NODE_MODULES/storybook-addon-outline/dist/esm/preset/register.js",
"ROOT/examples/cra-ts-essentials/.storybook/generated-refs.js",
],
"keys": Array [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Object {
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-other-entry.js",
"ROOT/addons/backgrounds/dist/esm/preset/addDecorator.js-generated-other-entry.js",
"ROOT/addons/backgrounds/dist/esm/preset/addParameter.js-generated-other-entry.js",
"NODE_MODULES/@storybook/addon-measure/dist/preset/preview.js-generated-other-entry.js",
"NODE_MODULES/storybook-addon-outline/dist/preset/addDecorator.js-generated-other-entry.js",
"NODE_MODULES/@storybook/addon-measure/dist/esm/preset/preview.js-generated-other-entry.js",
"NODE_MODULES/storybook-addon-outline/dist/esm/preset/addDecorator.js-generated-other-entry.js",
"ROOT/examples/cra-ts-essentials/.storybook/preview.js-generated-config-entry.js",
"ROOT/examples/cra-ts-essentials/.storybook/generated-stories-entry.js",
"NODE_MODULES/webpack-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Object {
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-other-entry.js",
"ROOT/addons/backgrounds/dist/esm/preset/addDecorator.js-generated-other-entry.js",
"ROOT/addons/backgrounds/dist/esm/preset/addParameter.js-generated-other-entry.js",
"NODE_MODULES/@storybook/addon-measure/dist/preset/preview.js-generated-other-entry.js",
"NODE_MODULES/storybook-addon-outline/dist/preset/addDecorator.js-generated-other-entry.js",
"NODE_MODULES/@storybook/addon-measure/dist/esm/preset/preview.js-generated-other-entry.js",
"NODE_MODULES/storybook-addon-outline/dist/esm/preset/addDecorator.js-generated-other-entry.js",
"ROOT/examples/cra-ts-essentials/.storybook/preview.js-generated-config-entry.js",
"ROOT/examples/cra-ts-essentials/.storybook/generated-stories-entry.js",
],
Expand Down
4 changes: 2 additions & 2 deletions lib/core-server/src/__snapshots__/vue-3-cli_manager-dev
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Object {
"ROOT/addons/backgrounds/dist/esm/register.js",
"ROOT/addons/viewport/dist/esm/register.js",
"ROOT/addons/toolbars/dist/esm/register.js",
"NODE_MODULES/@storybook/addon-measure/dist/preset/manager.js",
"NODE_MODULES/storybook-addon-outline/dist/preset/register.js",
"NODE_MODULES/@storybook/addon-measure/dist/esm/preset/manager.js",
"NODE_MODULES/storybook-addon-outline/dist/esm/preset/register.js",
"ROOT/examples/vue-3-cli/.storybook/generated-refs.js",
],
"keys": Array [
Expand Down
4 changes: 2 additions & 2 deletions lib/core-server/src/__snapshots__/vue-3-cli_manager-prod
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Object {
"ROOT/addons/backgrounds/dist/esm/register.js",
"ROOT/addons/viewport/dist/esm/register.js",
"ROOT/addons/toolbars/dist/esm/register.js",
"NODE_MODULES/@storybook/addon-measure/dist/preset/manager.js",
"NODE_MODULES/storybook-addon-outline/dist/preset/register.js",
"NODE_MODULES/@storybook/addon-measure/dist/esm/preset/manager.js",
"NODE_MODULES/storybook-addon-outline/dist/esm/preset/register.js",
"ROOT/examples/vue-3-cli/.storybook/generated-refs.js",
],
"keys": Array [
Expand Down
4 changes: 2 additions & 2 deletions lib/core-server/src/__snapshots__/vue-3-cli_preview-dev
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Object {
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-other-entry.js",
"ROOT/addons/backgrounds/dist/esm/preset/addDecorator.js-generated-other-entry.js",
"ROOT/addons/backgrounds/dist/esm/preset/addParameter.js-generated-other-entry.js",
"NODE_MODULES/@storybook/addon-measure/dist/preset/preview.js-generated-other-entry.js",
"NODE_MODULES/storybook-addon-outline/dist/preset/addDecorator.js-generated-other-entry.js",
"NODE_MODULES/@storybook/addon-measure/dist/esm/preset/preview.js-generated-other-entry.js",
"NODE_MODULES/storybook-addon-outline/dist/esm/preset/addDecorator.js-generated-other-entry.js",
"ROOT/examples/vue-3-cli/.storybook/preview.ts-generated-config-entry.js",
"ROOT/examples/vue-3-cli/.storybook/generated-stories-entry.js",
"NODE_MODULES/webpack-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined",
Expand Down
4 changes: 2 additions & 2 deletions lib/core-server/src/__snapshots__/vue-3-cli_preview-prod
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Object {
"ROOT/addons/actions/dist/esm/preset/addArgs.js-generated-other-entry.js",
"ROOT/addons/backgrounds/dist/esm/preset/addDecorator.js-generated-other-entry.js",
"ROOT/addons/backgrounds/dist/esm/preset/addParameter.js-generated-other-entry.js",
"NODE_MODULES/@storybook/addon-measure/dist/preset/preview.js-generated-other-entry.js",
"NODE_MODULES/storybook-addon-outline/dist/preset/addDecorator.js-generated-other-entry.js",
"NODE_MODULES/@storybook/addon-measure/dist/esm/preset/preview.js-generated-other-entry.js",
"NODE_MODULES/storybook-addon-outline/dist/esm/preset/addDecorator.js-generated-other-entry.js",
"ROOT/examples/vue-3-cli/.storybook/preview.ts-generated-config-entry.js",
"ROOT/examples/vue-3-cli/.storybook/generated-stories-entry.js",
],
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5775,7 +5775,7 @@ __metadata:
"@storybook/addon-backgrounds": 6.3.0-beta.11
"@storybook/addon-controls": 6.3.0-beta.11
"@storybook/addon-docs": 6.3.0-beta.11
"@storybook/addon-measure": ^1.1.0
"@storybook/addon-measure": ^1.2.2
"@storybook/addon-toolbars": 6.3.0-beta.11
"@storybook/addon-viewport": 6.3.0-beta.11
"@storybook/addons": 6.3.0-beta.11
Expand All @@ -5786,7 +5786,7 @@ __metadata:
"@types/webpack-env": ^1.16.0
core-js: ^3.8.2
regenerator-runtime: ^0.13.7
storybook-addon-outline: ^1.3.2
storybook-addon-outline: ^1.3.3
ts-dedent: ^2.0.0
peerDependencies:
"@babel/core": ^7.9.6
Expand Down Expand Up @@ -5867,9 +5867,9 @@ __metadata:
languageName: unknown
linkType: soft

"@storybook/addon-measure@npm:^1.1.0":
version: 1.1.0
resolution: "@storybook/addon-measure@npm:1.1.0"
"@storybook/addon-measure@npm:^1.2.2":
version: 1.2.2
resolution: "@storybook/addon-measure@npm:1.2.2"
peerDependencies:
"@storybook/addons": ^6.3.0-beta.1
"@storybook/api": ^6.3.0-beta.1
Expand All @@ -5883,7 +5883,7 @@ __metadata:
optional: true
react-dom:
optional: true
checksum: 33441086c7870b58fe718e3084b7fd7ff194938c243ac156a132eb7ee6e66b0e03d3556ab061b47fcc28ffdc134428502f9aeb67c615075f0869f34ae773a366
checksum: da1185ff27aea7e7ee6ae0779d9227d83739c14e893af5e9f0363e14f208492b1eb3604d96405b18b139abcbc4f3bb600c4a65e874a794a0fd8f486cecfd4644
languageName: node
linkType: hard

Expand Down Expand Up @@ -39457,9 +39457,9 @@ resolve@1.19.0:
languageName: node
linkType: hard

"storybook-addon-outline@npm:^1.3.2":
version: 1.3.2
resolution: "storybook-addon-outline@npm:1.3.2"
"storybook-addon-outline@npm:^1.3.3":
version: 1.3.3
resolution: "storybook-addon-outline@npm:1.3.3"
dependencies:
"@storybook/addons": ^6.3.0-beta.6
"@storybook/api": ^6.3.0-beta.6
Expand All @@ -39469,7 +39469,7 @@ resolve@1.19.0:
peerDependencies:
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
checksum: 75586ff5093ab904ad1d5d98b0934d009192ebb02db4ae986f40f50e4b72e0ce131afa46932d68dca6e9849a13e7355cb7745b19dc60e5b9624a696eb8b611aa
checksum: db9f175f086ef1a5fd8e6fff6a912e5b5383afab1cb267a2b896ff4e213a0e3d2dad98766cc28ef5420d28da656cc569a644ca5c48c99993472f8ac0e0e5b8b5
languageName: node
linkType: hard

Expand Down

0 comments on commit 97f0f03

Please sign in to comment.