mirror of
https://github.com/luxfi/wallet.git
synced 2026-11-03 11:08:46 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
74 lines
1.9 KiB
TypeScript
74 lines
1.9 KiB
TypeScript
/* do not change this file, it is auto generated by storybook. */
|
|
|
|
import { start, updateView } from "@storybook/react-native";
|
|
|
|
import "@storybook/addon-ondevice-controls/register";
|
|
|
|
const normalizedStories = [
|
|
{
|
|
titlePrefix: "",
|
|
directory: "./src",
|
|
files: "**/*.stories.?(ts|tsx|js|jsx)",
|
|
importPathMatcher:
|
|
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/,
|
|
// @ts-ignore
|
|
req: require.context(
|
|
"../src",
|
|
true,
|
|
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
|
|
),
|
|
},
|
|
{
|
|
titlePrefix: "",
|
|
directory: "../../packages/ui/src",
|
|
files: "**/*.stories.?(ts|tsx|js|jsx)",
|
|
importPathMatcher:
|
|
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/,
|
|
// @ts-ignore
|
|
req: require.context(
|
|
"../../../packages/ui/src",
|
|
true,
|
|
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
|
|
),
|
|
},
|
|
{
|
|
titlePrefix: "",
|
|
directory: "../../packages/uniswap/src",
|
|
files: "**/*.stories.?(ts|tsx|js|jsx)",
|
|
importPathMatcher:
|
|
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/,
|
|
// @ts-ignore
|
|
req: require.context(
|
|
"../../../packages/uniswap/src",
|
|
true,
|
|
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
|
|
),
|
|
},
|
|
];
|
|
|
|
declare global {
|
|
var view: ReturnType<typeof start>;
|
|
var STORIES: typeof normalizedStories;
|
|
}
|
|
|
|
const annotations = [
|
|
require("./preview"),
|
|
require("@storybook/react-native/preview"),
|
|
];
|
|
|
|
global.STORIES = normalizedStories;
|
|
|
|
// @ts-ignore
|
|
module?.hot?.accept?.();
|
|
|
|
if (!global.view) {
|
|
global.view = start({
|
|
annotations,
|
|
storyEntries: normalizedStories,
|
|
});
|
|
} else {
|
|
updateView(global.view, annotations, normalizedStories);
|
|
}
|
|
|
|
export const view = global.view;
|