Skip to content

Commit d91d75c

Browse files
authored
Merge branch 'next' into copilot/add-mdx-support-manifest
2 parents 532ac71 + 3d036b5 commit d91d75c

File tree

141 files changed

+2401
-3049
lines changed

Some content is hidden

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

141 files changed

+2401
-3049
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task bench)
194194
build:
195195
executor:
196-
class: large
196+
class: xlarge
197197
name: sb_node_22_classic
198198
steps:
199199
- git-shallow-clone/checkout_advanced:
@@ -240,7 +240,7 @@ jobs:
240240
root: /tmp
241241
check:
242242
executor:
243-
class: large
243+
class: xlarge
244244
name: sb_node_22_classic
245245
steps:
246246
- git-shallow-clone/checkout_advanced:
@@ -299,6 +299,10 @@ jobs:
299299
- checkout
300300
- attach_workspace:
301301
at: /tmp
302+
- run:
303+
command: yarn storybook:ui:build
304+
name: Build Storybook
305+
working_directory: code
302306
- run:
303307
command: yarn storybook:ui:chromatic
304308
name: Running Chromatic

.circleci/src/jobs/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
executor:
2-
class: large
2+
class: xlarge
33
name: sb_node_22_classic
44

55
steps:

.circleci/src/jobs/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
executor:
2-
class: large
2+
class: xlarge
33
name: sb_node_22_classic
44

55
steps:

.circleci/src/jobs/chromatic-internal-storybook.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ steps:
1010
- checkout
1111
- attach_workspace:
1212
at: /tmp
13+
- run:
14+
name: Build Storybook
15+
command: yarn storybook:ui:build
16+
working_directory: code
1317
- run:
1418
name: Running Chromatic
1519
command: yarn storybook:ui:chromatic

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"typescript.preferences.preferTypeOnlyAutoImports": true,
5050
"typescript.preferences.quoteStyle": "single",
5151
"typescript.preferGoToSourceDefinition": true,
52-
"typescript.tsdk": "./code/node_modules/typescript/lib",
52+
"typescript.tsdk": "./typescript/lib",
5353
"vitest.workspaceConfig": "./code/vitest.workspace.ts",
5454
"vitest.rootConfig": "./code/vitest.workspace.ts",
5555
}

code/.eslintrc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ module.exports = {
1414
project: ['./tsconfig.json'],
1515
},
1616
rules: {
17-
'import/no-extraneous-dependencies': 'off',
17+
'import-x/no-extraneous-dependencies': 'off',
1818
'react/react-in-jsx-scope': 'off',
19-
'import/no-unresolved': 'off', // covered by typescript
19+
'import-x/no-unresolved': 'off', // covered by typescript
2020
'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
2121
'eslint-comments/no-unused-disable': 'error',
2222
'react-hooks/rules-of-hooks': 'off',
2323
'jsx-a11y/no-autofocus': 'warn',
24-
'import/extensions': 'off', // for mjs, we sometimes need extensions
24+
'import-x/extensions': 'off', // for mjs, we sometimes need extensions
2525
'jsx-a11y/control-has-associated-label': 'off',
2626
'@typescript-eslint/dot-notation': [
2727
'error',
@@ -156,14 +156,14 @@ module.exports = {
156156
'no-dupe-class-members': 'off', // this is called overloads in typescript
157157
'react/no-unused-prop-types': 'off', // we should use types
158158
'react/default-props-match-prop-types': 'off', // we should use types
159-
'import/no-named-as-default': 'warn',
160-
'import/no-named-as-default-member': 'warn',
159+
'import-x/no-named-as-default': 'warn',
160+
'import-x/no-named-as-default-member': 'warn',
161161
'react/destructuring-assignment': 'warn',
162162

163163
// This warns about importing interfaces and types in a normal import, it's arguably better to import with the `type` prefix separate from the runtime imports,
164164
// I leave this as a warning right now because we haven't really decided yet, and the codebase is riddled with errors if I set to 'error'.
165165
// It IS set to 'error' for JS files.
166-
'import/named': 'warn',
166+
'import-x/named': 'warn',
167167
},
168168
},
169169
{

code/.storybook/bench/bench.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Meta } from '@storybook/react-vite';
55
import { safeMetafileArg } from '../../../scripts/bench/safe-args';
66

77
// @ts-expect-error - TS doesn't know about import.meta.glob from Vite
8-
const allMetafiles = import.meta.glob(['../../bench/esbuild-metafiles/**/*.json'], {
8+
const allMetafiles = import.meta.glob('../../bench/esbuild-metafiles/**/*.json', {
99
import: 'default',
1010
});
1111

code/.storybook/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const currentDirPath = dirname(currentFilePath);
1212

1313
const componentsPath = join(currentDirPath, '../core/src/components/index.ts');
1414
const managerApiPath = join(currentDirPath, '../core/src/manager-api/index.mock.ts');
15+
const themingCreatePath = join(currentDirPath, '../core/src/theming/create.ts');
16+
const themingPath = join(currentDirPath, '../core/src/theming/index.ts');
1517
const imageContextPath = join(currentDirPath, '../frameworks/nextjs/src/image-context.ts');
1618

1719
const config = defineMain({
@@ -154,6 +156,8 @@ const config = defineMain({
154156
? {
155157
'storybook/internal/components': componentsPath,
156158
'storybook/manager-api': managerApiPath,
159+
'storybook/theming/create': themingCreatePath,
160+
'storybook/theming': themingPath,
157161
'sb-original/image-context': imageContextPath,
158162
}
159163
: {

code/__mocks__/inject-decorator.ts.ugly-comments-stories.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable global-require, import/no-dynamic-require */
1+
/* eslint-disable global-require, import-x/no-dynamic-require */
22

33
import React from 'react';
44

code/__mocks__/inject-decorator.ugly-comments-stories.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable global-require, import/no-dynamic-require */
1+
/* eslint-disable global-require, import-x/no-dynamic-require */
22

33
import React from 'react';
44

0 commit comments

Comments
 (0)