Skip to content

Commit

Permalink
upgrade to storybook 6.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
hborawski committed May 6, 2021
1 parent 70ae24e commit da0a1a9
Show file tree
Hide file tree
Showing 9 changed files with 2,518 additions and 202 deletions.
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
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
4 changes: 2 additions & 2 deletions components/ResponsiveStory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@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",
"@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;
}
2,687 changes: 2,495 additions & 192 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit da0a1a9

Please sign in to comment.