@multiplatform.one/storybook 6.0.0
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/LICENSE +194 -0
- package/README.md +128 -0
- package/dist/cjs/CreatePreview.cjs +561 -0
- package/dist/cjs/CreatePreview.native.js +781 -0
- package/dist/cjs/CreatePreview.native.js.map +1 -0
- package/dist/cjs/index.cjs +32 -0
- package/dist/cjs/index.native.js +40 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/esm/CreatePreview.mjs +517 -0
- package/dist/esm/CreatePreview.mjs.map +1 -0
- package/dist/esm/CreatePreview.native.js +734 -0
- package/dist/esm/CreatePreview.native.js.map +1 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +12 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/jsx/CreatePreview.mjs +517 -0
- package/dist/jsx/CreatePreview.mjs.map +1 -0
- package/dist/jsx/CreatePreview.native.js +781 -0
- package/dist/jsx/CreatePreview.native.js.map +1 -0
- package/dist/jsx/index.js +4 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +4 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +40 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/package.json +104 -0
- package/src/CreatePreview.tsx +750 -0
- package/src/index.native.ts +12 -0
- package/src/index.ts +7 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@storybook/addon-ondevice-actions` registers the panel but does not export `action`.
|
|
3
|
+
* `storybook/actions` is browser-bundled and breaks under Metro. Mirror the `action(name)`
|
|
4
|
+
* helper so shared `.stories.tsx` work on Expo Storybook.
|
|
5
|
+
*/
|
|
6
|
+
export function action(name: string) {
|
|
7
|
+
return (...args: unknown[]) => {
|
|
8
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
9
|
+
console.log(`[Storybook action "${name}"]`, ...args);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
package/src/index.ts
ADDED