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 .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
"files": [
"packages/@react-spectrum/s2/**",
"packages/dev/s2-docs/**",
"packages/@react-spectrum/s2-ai/**"
"packages/@react-spectrum/ai/**"
],
"rules": {
"react/react-in-jsx-scope": "off"
Expand Down
2 changes: 1 addition & 1 deletion .storybook-s2/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config: StorybookConfig = {
stories: [
'./docs/*.mdx',
'../packages/@react-spectrum/s2/stories/*.stories.@(js|jsx|mjs|ts|tsx)',
'../packages/@react-spectrum/s2-ai/stories/*.stories.@(js|jsx|mjs|ts|tsx)'
'../packages/@react-spectrum/ai/stories/*.stories.@(js|jsx|mjs|ts|tsx)'
],
addons: [
localAddon('./custom-addons/provider/preset.ts'),
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@
"packages/@adobe/react-spectrum/src/color/*.tsx",
"packages/@react-spectrum/s2/**/*.{js,ts,tsx}",
"packages/@react-spectrum/s2/stories/**",
"packages/@react-spectrum/s2-ai/**/*.{js,ts,tsx}",
"packages/@react-spectrum/s2-ai/stories/**",
"packages/@react-spectrum/ai/**/*.{js,ts,tsx}",
"packages/@react-spectrum/ai/stories/**",
".storybook-s2/**",
"packages/dev/s2-docs/**",
"starters/**"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# @react-spectrum/s2-ai
# @react-spectrum/ai

This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@react-spectrum/s2-ai",
"name": "@react-spectrum/ai",
"version": "1.0.0-alpha.1",
"description": "Spectrum 2 UI AI components in React",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const MessageFeedback = forwardRef(function MessageFeedback(
props: MessageFeedbackProps,
ref: DOMRef<HTMLDivElement>
) {
let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2-ai');
let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/ai');
let domRef = useDOMRef(ref);
let {value, defaultValue, onChange, isDisabled, thumbUpLabel, thumbDownLabel, styles} = props;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,8 @@

import {ActionButton} from '@react-spectrum/s2/ActionButton';
import {ActionMenu} from '@react-spectrum/s2/ActionMenu';
import {
Attachment as AttachmentComponent,
AttachmentList
} from '/packages/@react-spectrum/s2-ai/exports/AttachmentList';
import {
BasicHorizontalCard,
CardPreview,
HorizontalCard
} from '@react-spectrum/s2-ai/HorizontalCard';
import {Attachment as AttachmentComponent, AttachmentList} from '@react-spectrum/ai/AttachmentList';
import {BasicHorizontalCard, CardPreview, HorizontalCard} from '@react-spectrum/ai/HorizontalCard';
import {Card, CardProps} from '@react-spectrum/s2/Card';
import ChevronRight from '@react-spectrum/s2/icons/ChevronRight';
import {Content} from '@react-spectrum/s2/Content';
Expand Down Expand Up @@ -59,7 +52,7 @@ const meta: Meta<CardProps & {isLoading?: boolean}> = {
decorators: (children, {args}) => (
<Skeleton isLoading={args.isLoading || false}>{children(args)}</Skeleton>
),
title: 'S2-AI/HorizontalCard'
title: 'AI/HorizontalCard'
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import {ComponentProps, ReactElement, useState} from 'react';
import {fn} from 'storybook/test';
import {MessageFeedback} from '@react-spectrum/s2-ai/MessageFeedback';
import {MessageFeedback} from '@react-spectrum/ai/MessageFeedback';
import type {Meta, StoryObj} from '@storybook/react';

const meta: Meta<typeof MessageFeedback> = {
Expand All @@ -30,7 +30,7 @@ const meta: Meta<typeof MessageFeedback> = {
'aria-label': 'Rate this response',
onChange: fn()
},
title: 'S2-AI/MessageFeedback'
title: 'AI/MessageFeedback'
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const meta: Meta<typeof MessageSource> = {
},
children: {table: {disable: true}}
},
title: 'S2-AI/MessageSource'
title: 'AI/MessageSource'
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

import {getActionArgs} from '../../s2/stories/utils';
import {MessageSuggestion, MessageSuggestionList} from '@react-spectrum/s2-ai/MessageSuggestion';
import {MessageSuggestion, MessageSuggestionList} from '@react-spectrum/ai/MessageSuggestion';
import type {Meta, StoryObj} from '@storybook/react';

const events = ['onPress'];
Expand All @@ -25,7 +25,7 @@ const meta: Meta<typeof MessageSuggestionList> = {
args: {
...getActionArgs(events)
},
title: 'S2-AI/MessageSuggestionList'
title: 'AI/MessageSuggestionList'
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const meta: Meta<typeof ResponseStatus> = {
args: {
isLoading: true
},
title: 'S2-AI/ResponseStatus'
title: 'AI/ResponseStatus'
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const meta: Meta<typeof Thread> = {
layout: 'centered'
},
tags: ['autodocs'],
title: 'S2-AI/Thread',
title: 'AI/Thread',
decorators: [
Story => (
<div style={{width: '800px', height: '700px'}}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {MenuItem} from '@react-spectrum/s2/Menu';
import type {Meta, StoryObj} from '@storybook/react';
import {style} from '@react-spectrum/s2/style' with {type: 'macro'};
import {Text} from '@react-spectrum/s2/Text';
import {UserMessage} from '@react-spectrum/s2-ai/UserMessage';
import {UserMessage} from '@react-spectrum/ai/UserMessage';

const meta: Meta<typeof UserMessage> = {
component: UserMessage,
Expand All @@ -28,7 +28,7 @@ const meta: Meta<typeof UserMessage> = {
children: {table: {disable: true}}
},
tags: ['autodocs'],
title: 'S2-AI/UserMessage'
title: 'AI/UserMessage'
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import {Attachment, AttachmentList} from '../exports/AttachmentList';
import {Attachment, AttachmentList} from '@react-spectrum/ai/AttachmentList';
import {Image} from '@react-spectrum/s2/Image';
import {render} from '@react-spectrum/test-utils-internal';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import {MessageFeedback} from '@react-spectrum/s2-ai/MessageFeedback';
import {MessageFeedback} from '@react-spectrum/ai/MessageFeedback';
import {pointerMap, render} from '@react-spectrum/test-utils-internal';
import React, {useState} from 'react';
import userEvent from '@testing-library/user-event';
Expand Down
4 changes: 2 additions & 2 deletions yarn.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function enforceConsistentDependenciesAcrossTheProject({Yarn}) {
} else if (
dependency.workspace.ident === '@react-spectrum/s2' ||
dependency.workspace.ident === '@react-spectrum/s2-icon-builder' ||
dependency.workspace.ident === '@react-spectrum/s2-ai'
dependency.workspace.ident === '@react-spectrum/ai'
) {
dependency.update('^19.0.0-rc.1');
} else if (dependency.workspace.ident === '@react-spectrum/codemods') {
Expand Down Expand Up @@ -58,7 +58,7 @@ function enforceConsistentDependenciesAcrossTheProject({Yarn}) {
workspace.ident !== '@internationalized/string-compiler' &&
workspace.ident !== 'tailwindcss-react-aria-components' &&
workspace.ident !== '@react-spectrum/s2' &&
workspace.ident !== '@react-spectrum/s2-ai' &&
workspace.ident !== '@react-spectrum/ai' &&
workspace.manifest.rsp?.type !== 'cli'
) {
workspace.set('dependencies.@swc/helpers', '^0.5.0');
Expand Down
48 changes: 24 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7370,6 +7370,30 @@ __metadata:
languageName: unknown
linkType: soft

"@react-spectrum/ai@workspace:packages/@react-spectrum/ai":
version: 0.0.0-use.local
resolution: "@react-spectrum/ai@workspace:packages/@react-spectrum/ai"
dependencies:
"@react-aria/test-utils": "npm:^1.0.0-alpha.8"
"@storybook/jest": "npm:^0.2.3"
"@testing-library/dom": "npm:^10.1.0"
"@testing-library/react": "npm:^16.0.0"
"@testing-library/user-event": "npm:^14.0.0"
react: "npm:^19.0.0-rc.1"
react-dom: "npm:^19.0.0-rc.1"
peerDependencies:
"@internationalized/date": ^3.12.2
"@internationalized/number": ^3.6.7
"@react-spectrum/s2": ^1.4.0
"@react-types/shared": ^3.35.0
react: ^19.0.0-rc.1
react-aria: 3.49.0
react-aria-components: 1.18.0
react-dom: ^19.0.0-rc.1
react-stately: 3.47.0
languageName: unknown
linkType: soft

"@react-spectrum/autocomplete@npm:^3.0.0-alpha.54, @react-spectrum/autocomplete@npm:^3.0.0-alpha.55, @react-spectrum/autocomplete@workspace:packages/@react-spectrum/autocomplete":
version: 0.0.0-use.local
resolution: "@react-spectrum/autocomplete@workspace:packages/@react-spectrum/autocomplete"
Expand Down Expand Up @@ -8006,30 +8030,6 @@ __metadata:
languageName: unknown
linkType: soft

"@react-spectrum/s2-ai@workspace:packages/@react-spectrum/s2-ai":
version: 0.0.0-use.local
resolution: "@react-spectrum/s2-ai@workspace:packages/@react-spectrum/s2-ai"
dependencies:
"@react-aria/test-utils": "npm:^1.0.0-alpha.8"
"@storybook/jest": "npm:^0.2.3"
"@testing-library/dom": "npm:^10.1.0"
"@testing-library/react": "npm:^16.0.0"
"@testing-library/user-event": "npm:^14.0.0"
react: "npm:^19.0.0-rc.1"
react-dom: "npm:^19.0.0-rc.1"
peerDependencies:
"@internationalized/date": ^3.12.2
"@internationalized/number": ^3.6.7
"@react-spectrum/s2": ^1.4.0
"@react-types/shared": ^3.35.0
react: ^19.0.0-rc.1
react-aria: 3.49.0
react-aria-components: 1.18.0
react-dom: ^19.0.0-rc.1
react-stately: 3.47.0
languageName: unknown
linkType: soft

"@react-spectrum/s2-docs@workspace:packages/dev/s2-docs":
version: 0.0.0-use.local
resolution: "@react-spectrum/s2-docs@workspace:packages/dev/s2-docs"
Expand Down
Loading