Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
'plugin:react-hooks/recommended',
'plugin:storybook/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
ignorePatterns: ['dist', 'docs/build', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
Expand Down
14 changes: 8 additions & 6 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
],
features: {
// No onboarding checklist in the sidebar or menu.
sidebarOnboardingChecklist: false,
menuOnboardingChecklist: false,
},
core: {
disableWhatsNewNotifications: true,
},
framework: {
name: '@storybook/react-vite',
options: {},
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Preview } from "@storybook/react";
import type { Preview } from "@storybook/react-vite";

const preview: Preview = {
parameters: {
Expand Down
6,650 changes: 3,049 additions & 3,601 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 3 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,17 @@
"tslib": ">=2.0.0"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.9.0",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9",
"@storybook/addon-links": "^8.2.9",
"@storybook/blocks": "^8.2.9",
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@storybook/test": "^8.2.9",
"@storybook/react-vite": "^10.5.10",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-storybook": "^10.5.10",
"prettier": "^3.2.5",
"storybook": "^8.2.9",
"storybook": "^10.5.10",
"tslib": "^2.6.2",
"typedoc": "^0.27.6",
"typescript": "^5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion src/stories/react/MakeCodeBlocksRendering.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import { ReactNode, useState } from 'react';
import MakeCodeBlocksRendering from '../../react/MakeCodeBlocksRendering.js';
import { MakeCodeRenderBlocksProvider } from '../../react/MakeCodeRenderBlocksProvider.js';
Expand Down
2 changes: 1 addition & 1 deletion src/stories/react/MakeCodeFrame.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import { useCallback, useRef } from 'react';
import { defaultMakeCodeProject } from '../../vanilla/examples.js';
import { MakeCodeFrameDriver } from '../../vanilla/makecode-frame-driver.js';
Expand Down
2 changes: 1 addition & 1 deletion src/stories/vanilla/makecode-frame-driver.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import { useRef } from 'react';
import { defaultMakeCodeProject } from '../../vanilla/examples.js';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/stories/vanilla/makecode-render-blocks.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import {
createMakeCodeRenderBlocks,
MakeCodeRenderBlocksOptions,
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"moduleResolution": "Node",
"esModuleInterop": true,
"outDir": "./dist/cjs"
}
},
// Storybook 10 types don't resolve under "moduleResolution": "Node".
// The ESM build still typechecks the stories.
"exclude": ["src/stories"]
}
Loading