Skip to content

Commit 4312cf7

Browse files
committed
more cleanup
1 parent 0f70977 commit 4312cf7

File tree

6 files changed

+6
-129
lines changed

6 files changed

+6
-129
lines changed

src/constants.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
export const ADDON_ID = "storybook/stackblitz";
22
export const TOOL_ID = `${ADDON_ID}/tool`;
3-
export const PANEL_ID = `${ADDON_ID}/panel`;
4-
export const TAB_ID = `${ADDON_ID}/tab`;
53
export const PARAM_KEY = `repositoryUrl`;
6-
7-
export const EVENTS = {
8-
RESULT: `${ADDON_ID}/result`,
9-
REQUEST: `${ADDON_ID}/request`,
10-
CLEAR: `${ADDON_ID}/clear`,
11-
};

src/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { addons, types } from "@storybook/manager-api";
2-
import { ADDON_ID, TOOL_ID, PANEL_ID, TAB_ID } from "./constants";
2+
import { ADDON_ID, TOOL_ID } from "./constants";
33
import { Tool } from "./Tool";
44

55
/**

src/preview.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,16 @@
1010
*/
1111
import type { Renderer, ProjectAnnotations } from "@storybook/types";
1212
import { PARAM_KEY } from "./constants";
13-
import { withGlobals } from "./withGlobals";
14-
import { withRoundTrip } from "./withRoundTrip";
1513

1614
/**
1715
* Note: if you want to use JSX in this file, rename it to `preview.tsx`
1816
* and update the entry prop in tsup.config.ts to use "src/preview.tsx",
1917
*/
2018

2119
const preview: ProjectAnnotations<Renderer> = {
22-
decorators: [withGlobals, withRoundTrip],
23-
globals: {
24-
[PARAM_KEY]: false,
25-
},
20+
parameters: {
21+
[PARAM_KEY]: `https://github.com/stackblitz/docs`,
22+
}
2623
};
2724

2825
export default preview;

src/stories/Button.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const meta: Meta<typeof Button> = {
1212
},
1313
tags: ["autodocs"],
1414
parameters: {
15-
repositoryUrl: `https://github.com/stackblitz/docs`,
15+
// repositoryUrl: `https://github.com/stackblitz/docs`,
1616
},
1717
};
1818

@@ -27,7 +27,7 @@ export const Primary: Story = {
2727
label: "Button",
2828
},
2929
parameters: {
30-
repositoryUrl: `https://github.com/stackblitz/docs`
30+
// repositoryUrl: `https://github.com/stackblitz/docs`
3131
}
3232
};
3333

src/withGlobals.ts

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/withRoundTrip.ts

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)