@storybook/addon-ondevice-notes 9.1.1-alpha.0 → 9.1.1
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.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -4
- package/dist/register.d.ts +11 -9
- package/dist/register.js +8997 -13
- package/package.json +7 -6
- package/dist/ErrorBoundary.d.ts +0 -13
- package/dist/ErrorBoundary.js +0 -31
- package/dist/components/Notes.d.ts +0 -8
- package/dist/components/Notes.js +0 -75
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const client_logger_1 = require("storybook/internal/client-logger");
|
|
1
|
+
// src/index.ts
|
|
2
|
+
var import_client_logger = require("storybook/internal/client-logger");
|
|
4
3
|
if (__DEV__) {
|
|
5
|
-
|
|
4
|
+
import_client_logger.logger.log("import '@storybook/addon-ondevice-notes/register' to register the notes addon");
|
|
6
5
|
}
|
package/dist/register.d.ts
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { API } from 'storybook/internal/manager-api';
|
|
2
|
+
import { StoryContext, Args } from 'storybook/internal/csf';
|
|
3
|
+
import { R } from './types-7abe74eb.js';
|
|
4
|
+
import { Channel } from 'storybook/internal/channels';
|
|
5
|
+
|
|
6
|
+
declare const PARAM_KEY = "notes";
|
|
7
|
+
interface Selection {
|
|
7
8
|
storyId: string;
|
|
8
9
|
viewMode: 'story';
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
+
type StoryFromId = StoryContext<R, Args>;
|
|
11
12
|
type ApiStore = {
|
|
12
13
|
fromId: (id: any) => StoryFromId;
|
|
13
14
|
getSelection: () => Selection;
|
|
14
15
|
_channel: Channel;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
type RNAddonApi = API & {
|
|
17
18
|
store: () => ApiStore;
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
+
|
|
21
|
+
export { PARAM_KEY, type RNAddonApi, type Selection, type StoryFromId };
|