Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to storybook 6.2+ #8

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Gallery/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Shield } from "@doc-blocks/shield";
import { ShieldRow } from "@doc-blocks/shield-row";
import { Story, Canvas } from "@storybook/addon-docs/blocks";
import styled from "@emotion/styled";
import LinkTo from "@storybook/addon-links/dist/react";
import LinkTo from "@storybook/addon-links/dist/esm/react";
import Markdown from "markdown-to-jsx";
import { css } from "emotion";
import useLayoutEffect from "use-isomorphic-layout-effect";
Expand Down
2 changes: 1 addition & 1 deletion components/Gallery/src/story-reference.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable import/no-extraneous-dependencies */

import React from "react";
import { hrefTo, navigate } from "@storybook/addon-links/dist/preview";
import { hrefTo, navigate } from "@storybook/addon-links/dist/esm/preview";
import { Link } from "@storybook/components";
import { Element } from "@design-systems/utils";

Expand Down
2 changes: 1 addition & 1 deletion components/Guideline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@babel/runtime": "^7.11.2",
"@design-systems/utils": "^2.6.1",
"@design-systems/utils": "2.17.3--canary.651.17331.0",
"@emotion/styled": "^10.0.27",
"emotion": "^10.0.27"
},
Expand Down
2 changes: 1 addition & 1 deletion components/IntendedUsage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@babel/runtime": "^7.11.2",
"@design-systems/utils": "^2.6.1",
"@design-systems/utils": "2.17.3--canary.651.17331.0",
"emotion": "^10.0.27"
},
"peerDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions components/RelatedComponents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
"emotion": "^10.0.27"
},
"peerDependencies": {
"@storybook/addon-links": "6.0.26",
"@storybook/components": "6.0.26",
"@storybook/addon-links": "6.2.9",
"@storybook/components": "6.2.9",
"react": ">= 16.8.6"
},
"devDependencies": {
"@storybook/addon-links": "6.0.26",
"@storybook/components": "6.0.26"
"@storybook/addon-links": "6.2.9",
"@storybook/components": "6.2.9"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion components/RelatedComponents/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { Link } from "@storybook/components";
import { navigate } from "@storybook/addon-links/dist/preview";
import { navigate } from "@storybook/addon-links/dist/esm/preview";
import { css } from "emotion";

interface KindLinkProps {
Expand Down
6 changes: 3 additions & 3 deletions components/ResponsiveStory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@
},
"dependencies": {
"@babel/runtime": "^7.11.2",
"@design-systems/utils": "^2.6.1",
"@design-systems/utils": "2.17.3--canary.651.17331.0",
"@emotion/core": "^10.0.28",
"@emotion/styled": "^10.0.27",
"clsx": "^1.1.1",
"emotion": "^10.0.27"
},
"peerDependencies": {
"@storybook/addon-docs": "6.0.26",
"@storybook/addon-docs": "6.2.9",
"react": ">= 16.8.6"
},
"devDependencies": {
"@storybook/addon-docs": "6.0.26"
"@storybook/addon-docs": "6.2.9"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion components/Row/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@babel/runtime": "^7.11.2",
"@design-systems/utils": "^2.6.1",
"@design-systems/utils": "2.17.3--canary.651.17331.0",
"emotion": "^10.0.27"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion components/ShieldRow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@babel/runtime": "^7.11.2",
"@design-systems/utils": "^2.6.1",
"@design-systems/utils": "2.17.3--canary.651.17331.0",
"emotion": "^10.0.27"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"@auto-it/all-contributors": "9.59.1",
"@auto-it/gh-pages": "9.59.1",
"@auto-it/released": "9.59.1",
"@design-systems/cli": "2.6.1",
"@storybook/addon-docs": "6.0.26",
"@design-systems/cli": "2.17.3--canary.651.17331.0",
"@storybook/addon-docs": "6.2.9",
"@testing-library/react": "8.0.4",
"@types/react-dom": "16.8.4",
"auto": "9.59.1",
Expand Down
3 changes: 3 additions & 0 deletions typings/storybook-addon-links-preview.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module "@storybook/addon-links/dist/esm/preview" {
export * from "@storybook/addon-links/dist/ts3.9/preview";
}
10 changes: 10 additions & 0 deletions typings/storybook-addon-links-react.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
interface IntrinsicAttributes {
children: string;
key: string;
kind: string;
story: string;
}
declare module "@storybook/addon-links/dist/esm/react" {
export * from "@storybook/addon-links/dist/ts3.9/react";
export default function LinkTo(attributes: IntrinsicAttributes): null;
}
Loading