Skip to content

Commit 5e158be

Browse files
authored
Merge branch 'main' into multi-select
2 parents dc6b203 + a8907f6 commit 5e158be

Some content is hidden

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

41 files changed

+4168
-94
lines changed

.circleci/comment.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const Octokit = require('@octokit/rest');
2-
const fs = require('fs');
32

43
const octokit = new Octokit({
54
auth: `token ${process.env.GITHUB_TOKEN}`
@@ -36,13 +35,14 @@ async function run() {
3635
repo: 'react-spectrum',
3736
pull_number
3837
});
38+
// eslint-disable-next-line max-depth
3939
if (data && data.head.repo.full_name !== 'adobe/react-spectrum' && data.head.sha === forkHeadCommit) {
4040
pr = pull_number;
4141
break;
4242
}
4343
}
4444
} else if (process.env.CIRCLE_BRANCH === 'main') {
45-
//If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
45+
// If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
4646
await octokit.repos.createCommitComment({
4747
owner: 'adobe',
4848
repo: 'react-spectrum',
@@ -54,6 +54,7 @@ async function run() {
5454
[S2 Parcel Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-parcel-example/index.html)
5555
[S2 Custom Icons](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/icon-builder-fixture/index.html)
5656
[S2 Webpack Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-webpack-5-example/index.html)
57+
[S2 Next.js Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-next-macros/index.html)
5758
[CRA Test App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/build-stats.txt)
5859
[NextJS App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/next-build-stats.txt)
5960
[Publish stats](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/publish.json)
@@ -84,7 +85,7 @@ async function run() {
8485
* [View the S2 docs](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/s2-docs/index.html)`
8586
});
8687
} catch (err) {
87-
console.error(err)
88+
console.error(err);
8889
}
8990
}
9091
}

.circleci/config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,28 @@ jobs:
678678
paths:
679679
- '*/verdaccio/s2-webpack-5-example'
680680

681+
v-s2-next:
682+
executor: rsp-xlarge
683+
steps:
684+
- restore_cache:
685+
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }}
686+
687+
- attach_workspace:
688+
at: /tmp/verdaccio-workspace
689+
690+
- run:
691+
name: build s2-next off verdaccio
692+
command: |
693+
./scripts/verdaccio-ci.sh
694+
./scripts/verdaccio-build-s2-next.sh
695+
environment:
696+
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
697+
698+
- persist_to_workspace:
699+
root: verdaccio_dist
700+
paths:
701+
- '*/verdaccio/s2-next-macros'
702+
681703
v-icon-builder:
682704
executor: rsp-xlarge
683705
steps:
@@ -914,6 +936,9 @@ workflows:
914936
- v-s2-webpack:
915937
requires:
916938
- verdaccio
939+
- v-s2-next:
940+
requires:
941+
- verdaccio
917942
- v-icon-builder:
918943
requires:
919944
- verdaccio
@@ -948,6 +973,7 @@ workflows:
948973
- v-rac-rsp-tailwind
949974
- v-s2-parcel
950975
- v-s2-webpack
976+
- v-s2-next
951977
- v-icon-builder
952978
- v-publish-stats
953979
- comment:

eslint.config.mjs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -445,29 +445,6 @@ export default [{
445445
"jsdoc/require-jsdoc": OFF,
446446
"jsdoc/require-description": OFF,
447447
},
448-
}, {
449-
files: [
450-
"packages/**/*.ts",
451-
"packages/**/*.tsx"
452-
],
453-
454-
rules: {
455-
"@typescript-eslint/explicit-module-boundary-types": ERROR,
456-
},
457-
}, {
458-
files: [
459-
"**/dev/**",
460-
"**/test/**",
461-
"**/stories/**",
462-
"**/docs/**",
463-
"**/chromatic/**",
464-
"**/chromatic-fc/**",
465-
"**/__tests__/**"
466-
],
467-
468-
rules: {
469-
"@typescript-eslint/explicit-module-boundary-types": OFF,
470-
},
471448
}, {
472449
files: [
473450
"packages/@react-aria/focus/src/**/*.ts",
@@ -504,4 +481,4 @@ export default [{
504481
rules: {
505482
"react/react-in-jsx-scope": OFF,
506483
},
507-
}];
484+
}];

examples/s2-next-macros/.yarn/releases/yarn-4.2.2.cjs

Lines changed: 894 additions & 0 deletions
Large diffs are not rendered by default.

examples/s2-next-macros/next.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ let macrosWebpack = macrosPlugin.webpack();
55

66
/** @type {import('next').NextConfig} */
77
const nextConfig = {
8+
output: 'export',
9+
basePath: process.env.VERDACCIO && process.env.CIRCLE_SHA1 ? `/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-next-macros` : "",
810
webpack(config, {}) {
911
config.plugins.push(macrosWebpack);
1012

examples/s2-next-macros/package.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,29 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev -p 3456",
6+
"dev": "next dev --turbopack -p 3456",
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@react-spectrum/s2": "^0.3.0",
13-
"next": "14.1.3",
14-
"react": "^18",
15-
"react-dom": "^18",
16-
"unplugin-parcel-macros": "0.0.3"
12+
"@react-spectrum/s2": "latest",
13+
"next": "15.1.7",
14+
"react": "19.0.0",
15+
"react-dom": "19.0.0"
1716
},
1817
"devDependencies": {
1918
"@svgr/webpack": "^8.1.0",
2019
"@types/node": "^20",
21-
"@types/react": "^18",
22-
"@types/react-dom": "^18",
20+
"@types/react": "19.0.10",
21+
"@types/react-dom": "19.0.4",
2322
"eslint": "^8",
24-
"eslint-config-next": "14.1.3",
25-
"typescript": "^5"
23+
"eslint-config-next": "15.1.7",
24+
"typescript": "^5",
25+
"unplugin-parcel-macros": "0.1.1"
26+
},
27+
"resolutions": {
28+
"@types/react": "19.0.10",
29+
"@types/react-dom": "19.0.4"
2630
}
2731
}

0 commit comments

Comments
 (0)