Skip to content

Commit 4fb953e

Browse files
committed
update storybook
1 parent 80e93ea commit 4fb953e

File tree

111 files changed

+233
-728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+233
-728
lines changed

apps/dashboard/.storybook/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ const config: StorybookConfig = {
1313
addons: [
1414
getAbsolutePath("@storybook/addon-onboarding"),
1515
getAbsolutePath("@storybook/addon-links"),
16-
getAbsolutePath("@storybook/addon-essentials"),
1716
getAbsolutePath("@chromatic-com/storybook"),
18-
getAbsolutePath("@storybook/addon-interactions"),
17+
getAbsolutePath("@storybook/addon-docs"),
1918
],
2019
framework: {
2120
name: getAbsolutePath("@storybook/nextjs"),

apps/dashboard/.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Preview } from "@storybook/react";
1+
import type { Preview } from "@storybook/nextjs";
22
import "../src/global.css";
33
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
44
import { MoonIcon, SunIcon } from "lucide-react";

apps/dashboard/package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,14 @@
109109
},
110110
"devDependencies": {
111111
"@chakra-ui/cli": "^2.4.1",
112-
"@chromatic-com/storybook": "3.2.6",
112+
"@chromatic-com/storybook": "4.0.0",
113113
"@next/bundle-analyzer": "15.3.3",
114114
"@next/eslint-plugin-next": "15.3.3",
115115
"@playwright/test": "1.53.0",
116-
"@storybook/addon-essentials": "8.6.14",
117-
"@storybook/addon-interactions": "8.6.14",
118-
"@storybook/addon-links": "8.6.14",
119-
"@storybook/addon-onboarding": "8.6.14",
120-
"@storybook/addon-viewport": "8.6.14",
121-
"@storybook/blocks": "8.6.14",
122-
"@storybook/nextjs": "8.6.14",
123-
"@storybook/react": "8.6.14",
124-
"@storybook/test": "8.6.14",
116+
"@storybook/addon-docs": "^9.0.8",
117+
"@storybook/addon-links": "9.0.8",
118+
"@storybook/addon-onboarding": "9.0.8",
119+
"@storybook/nextjs": "9.0.8",
125120
"@types/color": "4.2.0",
126121
"@types/node": "22.14.1",
127122
"@types/papaparse": "^5.3.16",
@@ -139,7 +134,7 @@
139134
"eslint": "8.57.0",
140135
"eslint-config-biome": "1.9.4",
141136
"eslint-plugin-react-compiler": "19.0.0-beta-e993439-20250405",
142-
"eslint-plugin-storybook": "0.12.0",
137+
"eslint-plugin-storybook": "9.0.8",
143138
"knip": "5.60.2",
144139
"next-sitemap": "^4.2.3",
145140
"postcss": "8.5.3",

apps/dashboard/src/@/actions/createTeam.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use server";
22
import "server-only";
33

4-
import { randomBytes } from "node:crypto";
54
import type { Team } from "@/api/team";
65
import { format } from "date-fns";
6+
import { bytesToString } from "thirdweb/utils";
77
import { getAuthToken } from "../../app/(app)/api/lib/getAuthToken";
88
import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "../constants/public-envs";
99

@@ -29,7 +29,9 @@ export async function createTeam(options?: {
2929
body: JSON.stringify({
3030
name:
3131
options?.name ?? `Your Projects ${format(new Date(), "MMM d yyyy")}`,
32-
slug: options?.slug ?? randomBytes(20).toString("hex"),
32+
slug:
33+
options?.slug ??
34+
bytesToString(global.crypto.getRandomValues(new Uint8Array(20))),
3335
billingEmail: null,
3436
image: null,
3537
}),

apps/dashboard/src/@/components/blocks/Avatars/GradientAvatar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/nextjs";
22
import { useState } from "react";
33
import {
44
BadgeContainer,

apps/dashboard/src/@/components/blocks/Avatars/ProjectAvatar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/nextjs";
22
import { useState } from "react";
33
import {
44
BadgeContainer,

apps/dashboard/src/@/components/blocks/DangerSettingCard.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/nextjs";
22
import { BadgeContainer } from "../../../stories/utils";
33
import { DangerSettingCard } from "./DangerSettingCard";
44

apps/dashboard/src/@/components/blocks/Img.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/nextjs";
22
import { ImageIcon } from "lucide-react";
33
import { useState } from "react";
44
import { BadgeContainer } from "../../../stories/utils";

apps/dashboard/src/@/components/blocks/MultiNetworkSelector.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/nextjs";
22
import { useState } from "react";
33
import {
44
BadgeContainer,

apps/dashboard/src/@/components/blocks/SettingsCard.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Meta, StoryObj } from "@storybook/react";
1+
import type { Meta, StoryObj } from "@storybook/nextjs";
22
import { BadgeContainer } from "../../../stories/utils";
33
import { SettingsCard } from "./SettingsCard";
44

0 commit comments

Comments
 (0)