diff --git a/README.md b/README.md index b9afd61..bd7fd7b 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Note that in the above example, we're assuming the convention of each module con Here's a basic story in its entirety: ```reason -open BsStorybook.Story; +open Storybook.Story; let _module = [%bs.raw "module"]; @@ -70,7 +70,7 @@ Storybook uses a reference to the `module` global provided by webpack to facilit If you'd prefer to use the newer [Component Story Format](https://storybook.js.org/docs/formats/component-story-format/), you can do that as well: ```reason -open BsStorybook; +open Storybook; let default = CSF.make(~title="My CSF Story", ()); diff --git a/bsconfig.json b/bsconfig.json index 9434152..3e3a0f8 100644 --- a/bsconfig.json +++ b/bsconfig.json @@ -10,6 +10,5 @@ ], "reason": { "react-jsx": 3 - }, - "refmt": 3 + } } diff --git a/package.json b/package.json index cda8da8..7855928 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "license": "MIT", "devDependencies": { "@rescript/react": "^0.10.3", - "rescript": "^9.1.4" + "rescript": "10" }, "peerDependencies": { "@rescript/react": "^0.10.3", diff --git a/src/knobs.res b/src/knobs.res index f8498ca..5976054 100644 --- a/src/knobs.res +++ b/src/knobs.res @@ -1,5 +1,5 @@ @val @module("@storybook/addon-knobs/react") -external withKnobs: Main.decorator = "" +external withKnobs: Main.decorator = "withKnobs" @val @module("@storybook/addon-knobs/react") external extText: (string, Js.null_undefined) => string = "text" diff --git a/src/notes.res b/src/notes.res index a0e8cf9..20feb33 100644 --- a/src/notes.res +++ b/src/notes.res @@ -1,4 +1,4 @@ type decoratedChapter = Main.chapter => Main.chapter @module("@storybook/addon-notes") -external withNotes: string => decoratedChapter = "" +external withNotes: string => decoratedChapter = "withNotes" diff --git a/yarn.lock b/yarn.lock index 1a7e7f0..b8c5248 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7,7 +7,7 @@ resolved "https://registry.yarnpkg.com/@rescript/react/-/react-0.10.3.tgz#a2a8bed6b017940ec26c2154764b350f50348889" integrity sha512-Lf9rzrR3bQPKJjOK3PBRa/B3xrJ7CqQ1HYr9VHPVxJidarIJJFZBhj0Dg1uZURX+Wg/xiP0PHFxXmdj2bK8Vxw== -rescript@^9.1.4: - version "9.1.4" - resolved "https://registry.yarnpkg.com/rescript/-/rescript-9.1.4.tgz#1eb126f98d6c16942c0bf0df67c050198e580515" - integrity sha512-aXANK4IqecJzdnDpJUsU6pxMViCR5ogAxzuqS0mOr8TloMnzAjJFu63fjD6LCkWrKAhlMkFFzQvVQYaAaVkFXw== +rescript@10: + version "10.0.0" + resolved "https://registry.yarnpkg.com/rescript/-/rescript-10.0.0.tgz#8460bc6f7d94bc580eac02d7c7efdf0a470916b8" + integrity sha512-LhNg/4+0j8NvoFeslgAeYLlzUwkq6kR6l6v8BnZ61VDTxopK2l96uT1lq5lv1aMxzMDynvE2qnX0zalre+6XxA==