@storybook/addon-ondevice-notes 7.0.0-alpha.2 → 7.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { AddonStore } from '@storybook/addons';
2
1
  import { API } from '@storybook/api';
2
+ import { AddonStore } from '@storybook/manager-api';
3
3
  export declare const PARAM_KEY = "notes";
4
4
  interface NotesProps {
5
5
  channel: ReturnType<AddonStore['getChannel']>;
@@ -5,11 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Notes = exports.PARAM_KEY = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const core_events_1 = require("@storybook/core-events");
9
+ const manager_api_1 = require("@storybook/manager-api");
8
10
  const react_1 = require("react");
9
11
  const react_native_1 = require("react-native");
10
12
  const Markdown_1 = __importDefault(require("./Markdown/Markdown"));
11
- const addons_1 = require("@storybook/addons");
12
- const core_events_1 = require("@storybook/core-events");
13
13
  exports.PARAM_KEY = 'notes';
14
14
  const Notes = ({ active, api }) => {
15
15
  const [story, setStory] = (0, react_1.useState)();
@@ -18,7 +18,7 @@ const Notes = ({ active, api }) => {
18
18
  const selection = api.store().getSelection();
19
19
  setStory(api.store().fromId(selection.storyId));
20
20
  }
21
- addons_1.addons.getChannel().on(core_events_1.SET_CURRENT_STORY, () => {
21
+ manager_api_1.addons.getChannel().on(core_events_1.SET_CURRENT_STORY, () => {
22
22
  const selection = api.store().getSelection();
23
23
  setStory(api.store().fromId(selection.storyId));
24
24
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-ondevice-notes",
3
- "version": "7.0.0-alpha.2",
3
+ "version": "7.0.0-alpha.3",
4
4
  "description": "Write notes for your react-native Storybook stories.",
5
5
  "keywords": [
6
6
  "addon",
@@ -33,7 +33,7 @@
33
33
  "@storybook/client-logger": "^7",
34
34
  "@storybook/core-events": "^7",
35
35
  "@storybook/manager-api": "^7",
36
- "@storybook/react-native-theming": "^7.0.0-alpha.2",
36
+ "@storybook/react-native-theming": "^7.0.0-alpha.3",
37
37
  "core-js": "^3.0.1",
38
38
  "prop-types": "^15.7.2",
39
39
  "simple-markdown": "^0.7.3"
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "284fd8ae2ea94588dfea0f216d34bf263b2c6139"
51
+ "gitHead": "965a87593437128bb38caf9e6bb16302809655ec"
52
52
  }