Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
043fb3f
Use source field from package.json exports in tests
devongovett Jan 6, 2026
1911751
Support resolving glob imports from npm packages in jest
devongovett Jan 6, 2026
64d39b8
setup paths for migration
devongovett Jan 6, 2026
b96284c
migration script
devongovett Jan 7, 2026
adec67e
Merge branch 'main' of github.com:adobe/react-spectrum into package-c…
devongovett Jan 9, 2026
ad6954e
Add some missing exports
devongovett Jan 10, 2026
404432b
Rename I18nProvider and reorganize Locale type
devongovett Jan 10, 2026
5ecde69
refactor test
devongovett Jan 12, 2026
7325f24
Move Column definition
devongovett Jan 12, 2026
ca6b18c
Fix
devongovett Jan 14, 2026
a97a28c
fix intl
devongovett Jan 14, 2026
b0348ee
working
devongovett Jan 14, 2026
eff71d5
prepare themes
devongovett Jan 15, 2026
dbe22fd
Missing exports
devongovett Jan 15, 2026
62e7348
flags
devongovett Jan 15, 2026
ee10818
more exports
devongovett Jan 15, 2026
0eaedde
working
devongovett Jan 15, 2026
63e366a
move exports to their own folder
devongovett Jan 15, 2026
ef23b8c
wip: fixing monopackages
devongovett Jan 17, 2026
6d2b54f
Refactor RSPContexts
devongovett Jan 27, 2026
e64660d
merge RadioGroup and Radio files
devongovett Jan 27, 2026
2370622
re-export TableLayout from Table
devongovett Jan 27, 2026
ce90c1e
Fixes
devongovett Jan 27, 2026
bafd0c8
stop depending on v3 from s2
devongovett Jan 27, 2026
84faa7e
stuff
devongovett Jan 28, 2026
511bfc4
build stuff
devongovett Jan 28, 2026
53e685d
wip
devongovett Jan 28, 2026
a9ec1c5
Update i18n script
devongovett Jan 29, 2026
d68337d
fix
devongovett Jan 29, 2026
c0c3fc8
Update icons
devongovett Jan 29, 2026
6f02343
fix constraints
devongovett Jan 29, 2026
9851d9f
fix tests
devongovett Jan 30, 2026
4dc1b20
Add missing gridlist types to monopackage
devongovett Mar 6, 2026
92c7142
Add shim for private exports
devongovett Mar 6, 2026
63a643c
Merge branch 'main' of github.com:adobe/react-spectrum into package-c…
devongovett Mar 9, 2026
601d1d7
fix deps
devongovett Mar 9, 2026
35561f9
rename themes
devongovett Mar 9, 2026
8391d36
add additional public exports
devongovett Mar 9, 2026
fa10c1f
fix
devongovett Mar 9, 2026
079a3a4
fix
devongovett Mar 9, 2026
4f6b618
fix
devongovett Mar 9, 2026
b342060
fix TableView
devongovett Mar 9, 2026
847d7ef
add unmatched exports to all groups
devongovett Mar 10, 2026
5c9e198
fix
devongovett Mar 10, 2026
a81e89c
enable package.json exports in docs resolver
devongovett Mar 10, 2026
1995aea
fix docs
devongovett Mar 10, 2026
dd84e96
test cjs build too
devongovett Mar 10, 2026
53fa89c
disable no-duplicate-imports lint rule temporarily
devongovett Mar 10, 2026
3afe518
turn on verdaccio
devongovett Mar 10, 2026
b994a09
fix icons
devongovett Mar 10, 2026
b280d3a
Merge remote-tracking branch 'origin/main' into HEAD
devongovett Mar 13, 2026
d125b53
fix some circular dependencies
devongovett Mar 11, 2026
2357e88
run migration script
devongovett Mar 13, 2026
dce18ec
fix types / tests
devongovett Mar 10, 2026
b5e20fe
fix typecheck examples
devongovett Mar 11, 2026
6ac1e2d
Remove unused dependencies
devongovett Mar 11, 2026
eeefbd2
fix ssr tests
devongovett Mar 11, 2026
a7aed36
remove circular dependencies
devongovett Mar 11, 2026
40c4929
backward compatibility for bundlers without package.json exports support
devongovett Mar 12, 2026
6d11372
fix style macro build
devongovett Mar 12, 2026
2e558de
fixes
devongovett Mar 12, 2026
e30f0fe
more fixes
devongovett Mar 13, 2026
7cd0261
fix constraints
devongovett Mar 13, 2026
95d77b7
more fixes
devongovett Mar 13, 2026
69ab78a
fixes
devongovett Mar 13, 2026
4f7d2aa
fix mcp
devongovett Mar 13, 2026
855d241
fix typescript moduleResolution
devongovett Mar 13, 2026
eb6abd5
add .js versions for webpack 4
devongovett Mar 13, 2026
9b48860
fix module field
devongovett Mar 13, 2026
75ea750
webpack 4
devongovett Mar 13, 2026
1707a8d
fix types
devongovett Mar 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .circleci/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function run() {
let pr;
// If we aren't running on a PR commit, double check if this is a branch created for a fork. If so, we'll need to
// comment the build link on the fork.
if (!process.env.CIRCLE_PULL_REQUEST) {
if (true) {
try {
const commit = await octokit.git.getCommit({
owner: 'adobe',
Expand Down Expand Up @@ -41,7 +41,7 @@ async function run() {
break;
}
}
} else if (!process.env.CIRCLE_PULL_REQUEST) {
} else if (true) {
// If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
await octokit.repos.createCommitComment({
owner: 'adobe',
Expand Down
13 changes: 7 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ jobs:
- store_artifacts:
path: ~/junit

test-esm:
test-build:
executor: rsp-2xlarge
steps:
- restore_cache:
Expand All @@ -401,6 +401,7 @@ jobs:
command: |
make build
node --loader ./scripts/esm-support/loader.mjs ./scripts/esm-support/testESM.mjs
node scripts/testCJS.cjs

lint:
executor: rsp-xlarge
Expand Down Expand Up @@ -921,7 +922,7 @@ workflows:
- test-ssr-18:
requires:
- install-18
- test-esm:
- test-build:
requires:
- install
- lint:
Expand Down Expand Up @@ -965,9 +966,9 @@ workflows:
branches:
only: main
- verdaccio:
filters:
branches:
only: main
# filters:
# branches:
# only: main
requires:
- install
- v-rsp-cra-18:
Expand Down Expand Up @@ -1014,7 +1015,7 @@ workflows:
- test-17
- test-ssr-18
- test-18
- test-esm
- test-build
- storybook
- storybook-s2
- deploy-s3-stage:
Expand Down
7 changes: 0 additions & 7 deletions .parcelrc-storybook

This file was deleted.

2 changes: 1 addition & 1 deletion .storybook/.parcelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "@parcel/config-storybook",
"resolvers": ["@parcel/resolver-glob", "..."],
"transformers": {
"packages/*/*/intl/*.json": ["parcel-transformer-intl"],
"packages/**/intl/**/*.json": ["parcel-transformer-intl"],
"raw:*": ["@parcel/transformer-raw"]
}
}
3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ module.exports = {
stories: [
'../packages/@{react-aria,react-stately,spectrum-icons}/*/stories/*.stories.{js,jsx,ts,tsx}',
'../packages/@react-spectrum/!(s2)/stories/*.stories.{js,jsx,ts,tsx}',
'../packages/@adobe/react-spectrum/stories/*/*.stories.{js,jsx,ts,tsx}',
'../packages/react-aria/stories/*/*.stories.{js,jsx,ts,tsx}',
'../packages/react-stately/stories/*/*.stories.{js,jsx,ts,tsx}',
'../packages/react-aria-components/stories/*.stories.{js,jsx,ts,tsx}'
],

Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ clean_dist:
rm -rf packages/@adobe/react-spectrum/i18n
rm -rf packages/@react-aria/i18n/server
rm -rf packages/@react-spectrum/s2/style/dist packages/@react-spectrum/s2/page.css packages/@react-spectrum/s2/icons packages/@react-spectrum/s2/illustrations
rm -rf packages/{@adobe/react-spectrum,@react-spectrum/s2,react-aria,react-stately,react-aria-components}/*.js

clean_parcel:
rm -rf .parcel-cache
Expand Down Expand Up @@ -98,14 +99,16 @@ publish-nightly: build
yarn publish:nightly

build:
parcel build packages/@react-{spectrum,aria,stately}/*/ packages/@internationalized/{message,string,date,number}/ packages/react-aria-components --no-optimize --config .parcelrc-build
mkdir -p dist
yarn tsgo --project tsconfig.build.json --declaration --emitDeclarationOnly --outDir dist/types --rootDir packages
parcel build packages/@react-{spectrum,aria,stately}/*/ packages/@internationalized/{message,string,date,number}/ packages/{react-aria,react-stately,react-aria-components,@adobe/react-spectrum} --no-optimize --config .parcelrc-build
yarn workspaces foreach --all -pt run prepublishOnly
for pkg in packages/@react-{spectrum,aria,stately}/*/ packages/@internationalized/{message,string,date,number}/ packages/@adobe/react-spectrum/ packages/react-aria/ packages/react-stately/ packages/react-aria-components/; \
do node scripts/buildEsm.js $$pkg; \
done
node scripts/buildEsm.js
node scripts/buildI18n.js
node scripts/generateIconDts.js
node scripts/fixUseClient.js
node scripts/moveTypes.mjs
rm -rf types

website:
yarn build:docs --public-url /reactspectrum/$$(git rev-parse HEAD)/docs --dist-dir dist/$$(git rev-parse HEAD)/docs
Expand Down
2 changes: 1 addition & 1 deletion bin/useLayoutEffectRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
return {
ImportDeclaration(node) {
const source = node.source.value;
if (source === '@react-aria/utils' || source === './useLayoutEffect' || source === './') {
if (source !== 'react') {
return;
}
const importSpecifiers = node.specifiers.filter(specifier => specifier.type === 'ImportSpecifier');
Expand Down
12 changes: 1 addition & 11 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default [{
"no-nested-ternary": ERROR,
"no-multiple-empty-lines": ERROR,
"no-unneeded-ternary": ERROR,
"no-duplicate-imports": ERROR,
// "no-duplicate-imports": ERROR,
"react/display-name": OFF,
"react/jsx-curly-spacing": [ERROR, "never"],
"react/jsx-indent-props": [ERROR, ERROR],
Expand Down Expand Up @@ -337,16 +337,6 @@ export default [{
"jsx-a11y/scope": ERROR,
"jsx-a11y/tabindex-no-positive": ERROR,

"monorepo/no-internal-import": [ERROR, {
ignore: [
"@adobe/spectrum-css-temp",
"@spectrum-icons/ui",
"@spectrum-icons/workflow",
"@spectrum-icons/illustrations",
"@react-spectrum/s2/icons"
],
}],

"monorepo/no-relative-import": ERROR,
},
}, {
Expand Down
2 changes: 1 addition & 1 deletion examples/rac-spectrum-tailwind/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/rsp-cra-18/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Provider, defaultTheme, Item, TagGroup, Cell, Column, Row, TableBody, Ta
import Lighting from './Lighting';
import {useState} from 'react'
import BodyContent from './BodyContent';
import {enableTableNestedRows} from '@react-stately/flags';
import {enableTableNestedRows} from 'react-stately/private/flags/flags';
import ButtonExamples from './sections/ButtonExamples';
import CollectionExamples from './sections/CollectionExamples';
import DateTimeExamples from './sections/DateTimeExamples';
Expand Down
2 changes: 1 addition & 1 deletion examples/rsp-cra-18/src/AutocompleteExample.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Autocomplete, Input, Label, Menu, MenuItem, SearchField, Text, useFilter} from 'react-aria-components'
import {classNames} from '@react-spectrum/utils';
import {classNames} from '@adobe/react-spectrum/private/utils/classNames';
import styles from './autocomplete.css';

interface AutocompleteItem {
Expand Down
3 changes: 1 addition & 2 deletions examples/rsp-cra-18/src/sections/StatusExamples.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Flex, Divider, Badge, InlineAlert, Heading, Content, LabeledValue, Meter, ProgressBar, ProgressCircle, StatusLight, Button} from '@adobe/react-spectrum';
import {ToastContainer, ToastQueue} from '@react-spectrum/toast'
import {Flex, Divider, Badge, InlineAlert, Heading, Content, LabeledValue, Meter, ProgressBar, ProgressCircle, StatusLight, Button, ToastContainer, ToastQueue} from '@adobe/react-spectrum';

export default function StatusExamples() {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/rsp-cra-18/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/rsp-next-ts-17/components/ReorderableListView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Item, ListView, Text, useListData } from "@adobe/react-spectrum";
import { useDragAndDrop } from "@react-spectrum/dnd";
import { Item, ListView, Text, useListData, useDragAndDrop } from "@adobe/react-spectrum";
import Folder from "@spectrum-icons/illustrations/Folder";

export default function ReorderableListView() {
Expand Down
4 changes: 2 additions & 2 deletions examples/rsp-next-ts-17/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import {
Flex,
Grid,
View,
ToastContainer,
} from "@adobe/react-spectrum";
import { ColorScheme } from "@react-types/provider";
import { useState } from "react";
import Moon from "@spectrum-icons/workflow/Moon";
import Light from "@spectrum-icons/workflow/Light";
import { ToastContainer } from "@react-spectrum/toast";
import {enableTableNestedRows} from '@react-stately/flags';
import {enableTableNestedRows} from 'react-stately/private/flags/flags';

function MyApp({ Component, pageProps }: AppProps) {
const [theme, setTheme] = useState<ColorScheme>("light");
Expand Down
6 changes: 3 additions & 3 deletions examples/rsp-next-ts-17/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ import {
DisclosurePanel,
TreeView,
TreeViewItem,
TreeViewItemContent
TreeViewItemContent,
ToastQueue,
SubmenuTrigger
} from "@adobe/react-spectrum";
import Edit from "@spectrum-icons/workflow/Edit";
import NotFound from "@spectrum-icons/illustrations/NotFound";
import Section from "../components/Section";
import ReorderableListView from "../components/ReorderableListView";
import {ToastQueue} from '@react-spectrum/toast';
import {SubmenuTrigger} from "@react-spectrum/menu";

import FileTxt from '@spectrum-icons/workflow/FileTxt';
import Folder from '@spectrum-icons/workflow/Folder';
Expand Down
2 changes: 1 addition & 1 deletion examples/rsp-next-ts-17/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
2 changes: 1 addition & 1 deletion examples/rsp-next-ts/components/AutocompleteExample.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Autocomplete, Input, Label, Menu, MenuItem, SearchField, Text, useFilter} from 'react-aria-components'
import {classNames} from '@react-spectrum/utils';
import {classNames} from '@adobe/react-spectrum/private/utils/classNames';
import React from 'react';
import styles from './autocomplete.module.css';

Expand Down
3 changes: 1 addition & 2 deletions examples/rsp-next-ts/components/ReorderableListView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Item, ListView, Text, useListData } from "@adobe/react-spectrum";
import { useDragAndDrop } from "@react-spectrum/dnd";
import { Item, ListView, Text, useListData, useDragAndDrop } from "@adobe/react-spectrum";
import Folder from "@spectrum-icons/illustrations/Folder";

export default function ReorderableListView() {
Expand Down
4 changes: 2 additions & 2 deletions examples/rsp-next-ts/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {
Flex,
Grid,
View,
ToastContainer,
} from "@adobe/react-spectrum";
import { ColorScheme } from "@react-types/provider";
import { useState } from "react";
import Moon from "@spectrum-icons/workflow/Moon";
import Light from "@spectrum-icons/workflow/Light";
import { ToastContainer } from "@react-spectrum/toast";
import {enableTableNestedRows} from '@react-stately/flags';
import {enableTableNestedRows} from 'react-stately/private/flags/flags';
import {useRouter, type NextRouter} from 'next/router';
import Script from 'next/script';

Expand Down
6 changes: 3 additions & 3 deletions examples/rsp-next-ts/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ import {
DisclosurePanel,
TreeView,
TreeViewItem,
TreeViewItemContent
TreeViewItemContent,
ToastQueue,
SubmenuTrigger
} from "@adobe/react-spectrum";
import {AutocompleteExample} from "../components/AutocompleteExample";
import Edit from "@spectrum-icons/workflow/Edit";
import NotFound from "@spectrum-icons/illustrations/NotFound";
import Section from "../components/Section";
import ReorderableListView from "../components/ReorderableListView";
import {ToastQueue} from '@react-spectrum/toast';
import {SubmenuTrigger} from "@react-spectrum/menu";

import FileTxt from '@spectrum-icons/workflow/FileTxt';
import Folder from '@spectrum-icons/workflow/Folder';
Expand Down
2 changes: 1 addition & 1 deletion examples/rsp-next-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
2 changes: 1 addition & 1 deletion examples/rsp-webpack-4/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Provider, defaultTheme, Item, TagGroup, Cell, Column, InlineAlert, Row,
import Lighting from './Lighting';
import {useState} from 'react'
import BodyContent from './BodyContent';
import {enableTableNestedRows} from '@react-stately/flags';
import {enableTableNestedRows} from 'react-stately/private/flags/flags';

let columns = [
{name: 'Foo', key: 'foo'},
Expand Down
2 changes: 1 addition & 1 deletion examples/s2-esbuild-starter-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/s2-webpack-5-typescript-example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
Expand Down
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ module.exports = {
testEnvironment: 'jsdom',

// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
testEnvironmentOptions: {
customExportConditions: ['source']
},

// Adds a location field to test results
// testLocationInResults: false,
Expand Down
Loading
Loading