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 apps/react-17-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"dependencies": {
"@fluentui/react-components": "^9.54.13",
"@fluentui/react-components": "^9.70.0",
"@fluentui/react-icons": "^2.0.249",
"@testing-library/dom": "8.20.1",
"@testing-library/react": "12.1.5",
Expand Down
2 changes: 1 addition & 1 deletion apps/react-18-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"dependencies": {
"@fluentui/react-components": "^9.54.13",
"@fluentui/react-components": "^9.70.0",
"@fluentui/react-icons": "^2.0.249",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.3.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/react-19-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"dependencies": {
"@fluentui/react-components": "^9.54.13",
"@fluentui/react-components": "^9.70.0",
"@fluentui/react-icons": "^2.0.249",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.3.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/azure-theme",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/pierce-dom",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-chat",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-data-grid-react-window",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-data-grid-react-window-grid",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-draggable-dialog",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-gamepad-navigation",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-headless-provider",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-interactive-tab",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-keytips",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-resize-handle",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-shadow",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-themeless-provider",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/react-virtualizer",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/teams-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add react 19 support",
"packageName": "@fluentui-contrib/variant-theme",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@fluentui/react": "^8.120.2",
"@fluentui/react-components": "^9.68.3",
"@fluentui/react-components": "^9.70.0",
"@fluentui/react-icons": "^2.0.249",
"@fluentui/react-migration-v8-v9": "^9.9.4",
"@fluentui/react-shared-contexts": "^9.24.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/azure-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
]
},
"peerDependencies": {
"@fluentui/react-components": ">=9.46.3 <10.0.0"
"@fluentui/react-components": ">=9.70.0 <10.0.0"
}
}
5 changes: 3 additions & 2 deletions packages/azure-theme/stories/DataGrid.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ import {
createTableColumn,
FluentProvider,
} from '@fluentui/react-components';
import type { JSXElement } from '@fluentui/react-components';

type FileCell = {
label: string;
icon: JSX.Element;
icon: JSXElement;
};

type LastUpdatedCell = {
Expand All @@ -37,7 +38,7 @@ type LastUpdatedCell = {

type LastUpdateCell = {
label: string;
icon: JSX.Element;
icon: JSXElement;
};

type AuthorCell = {
Expand Down
2 changes: 1 addition & 1 deletion packages/pierce-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@swc/helpers": "~0.5.11"
},
"peerDependencies": {
"@fluentui/react-components": ">=9.46.3 <10.0.0",
"@fluentui/react-components": ">=9.70.0 <10.0.0",
"tabster": ">=6.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/react-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@fluentui-contrib/react-chat",
"version": "0.1.11",
"peerDependencies": {
"@fluentui/react-components": ">=9.25.1 <10.0.0",
"@fluentui/react-components": ">=9.70.0 <10.0.0",
"@fluentui/react-icons": ">=2.0.204 <3.0.0",
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-contextual-pane/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"private": true,
"peerDependencies": {
"@fluentui/react-components": ">=9.54.13 <10.0.0",
"@fluentui/react-components": ">=9.70.0 <10.0.0",
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function HeaderTitle({ caption }: HeaderTitleProps) {
<span
className={styles.title}
data-testid="header-title-tooltip"
ref={titleRef}
ref={titleRef as React.Ref<HTMLSpanElement>}
{...(titleHasEllipsis ? { tabIndex: 0, role: 'heading' } : {})}
>
{caption}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-data-grid-react-window-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@fluentui-contrib/react-data-grid-react-window-grid",
"version": "2.3.1",
"peerDependencies": {
"@fluentui/react-components": ">=9.30.0 <10.0.0",
"@fluentui/react-components": ">=9.70.0 <10.0.0",
"@types/react": ">=16.8.0 <19.0.0",
"react": ">=16.8.0 <19.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
import { RefObject } from 'react';
import { VariableSizeGrid, VariableSizeList } from 'react-window';
export type DataGridProps = BaseDataGridProps & {
bodyRef?: RefObject<VariableSizeGrid>;
headerRef?: RefObject<VariableSizeList>;
bodyRef?: RefObject<VariableSizeGrid | null>;
headerRef?: RefObject<VariableSizeList | null>;
};

export type DataGridState = BaseDataGridState &
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import type { ForwardRefComponent } from '@fluentui/react-components';
import type { JSXElement } from '@fluentui/react-components';
import { useDataGridBodyStyles_unstable } from './useDataGridBodyStyles.styles';
import { useDataGridBody_unstable } from './useDataGridBody';
import { renderDataGridBody_unstable } from './renderDataGridBody';
Expand All @@ -16,6 +17,6 @@ export const DataGridBody = React.forwardRef<HTMLElement, DataGridBodyProps>(
return renderDataGridBody_unstable(state);
}
) as ForwardRefComponent<DataGridBodyProps> &
(<TItem>(props: DataGridBodyProps<TItem>) => JSX.Element);
(<TItem>(props: DataGridBodyProps<TItem>) => JSXElement);

DataGridBody.displayName = 'DataGridBody';
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {
DataGridRowState,
ForwardRefComponent,
} from '@fluentui/react-components';
import type { JSXElement } from '@fluentui/react-components';
import { useDataGridHeaderRow_unstable } from './useDataGridHeaderRow';
import { renderDataGridHeaderRow_unstable } from './renderDataGridHeaderRow';
import { DataGridHeaderRowProps } from './DataGridHeaderRow.types';
Expand All @@ -20,6 +21,6 @@ export const DataGridHeaderRow = React.forwardRef<
useDataGridRowStyles_unstable(state as unknown as DataGridRowState);
return renderDataGridHeaderRow_unstable(state);
}) as ForwardRefComponent<DataGridHeaderRowProps> &
(<TItem>(props: DataGridHeaderRowProps<TItem>) => JSX.Element);
(<TItem>(props: DataGridHeaderRowProps<TItem>) => JSXElement);

DataGridHeaderRow.displayName = 'DataGridHeaderRow';
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
DataGridHeaderRowState,
} from './DataGridHeaderRow.types';
import { useHeaderListRefContext } from '../../contexts/headerListRefContext';
import { ListOnScrollProps } from 'react-window';
import { ListOnScrollProps, VariableSizeList } from 'react-window';
import { useBodyRefContext } from '../../contexts/bodyRefContext';
import {
ColumnIndexContextProvider,
Expand Down Expand Up @@ -69,7 +69,7 @@ export const useDataGridHeaderRow_unstable = (
virtualizedCell,
width,
listProps,
listRef: listRef,
listRef: listRef as React.RefObject<VariableSizeList<any>>,
onScroll,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ import { VariableSizeList } from 'react-window';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const headerListRefContext: React.Context<
React.RefObject<VariableSizeList<any>>
React.RefObject<VariableSizeList<any> | null>
> =
// eslint-disable-next-line @typescript-eslint/no-explicit-any
React.createContext<React.RefObject<VariableSizeList<any>>>({
React.createContext<React.RefObject<VariableSizeList<any> | null>>({
current: null,
});

export const headerListRefContextDefaultValue: React.RefObject<
// eslint-disable-next-line @typescript-eslint/no-explicit-any
VariableSizeList<any>
> = { current: null };
export const headerListRefContextDefaultValue: React.RefObject<// eslint-disable-next-line @typescript-eslint/no-explicit-any
VariableSizeList<any> | null> = { current: null };

export const useHeaderListRefContext = () =>
React.useContext(headerListRefContext) ?? headerListRefContextDefaultValue;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-data-grid-react-window/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"react-window": "^1.8.5"
},
"peerDependencies": {
"@fluentui/react-components": ">=9.25.1 <10.0.0",
"@fluentui/react-components": ">=9.70.0 <10.0.0",
"react": ">=16.8.0 <19.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import type { ForwardRefComponent } from '@fluentui/react-components';
import type { JSXElement } from '@fluentui/react-components';
import { useDataGridBodyStyles_unstable } from './useDataGridBodyStyles.styles';
import { useDataGridBody_unstable } from './useDataGridBody';
import { renderDataGridBody_unstable } from './renderDataGridBody';
Expand All @@ -16,6 +17,6 @@ export const DataGridBody = React.forwardRef<HTMLElement, DataGridBodyProps>(
return renderDataGridBody_unstable(state);
}
) as ForwardRefComponent<DataGridBodyProps> &
(<TItem>(props: DataGridBodyProps<TItem>) => JSX.Element);
(<TItem>(props: DataGridBodyProps<TItem>) => JSXElement);

DataGridBody.displayName = 'DataGridBody';
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
type DataGridHeaderProps,
type ForwardRefComponent,
} from '@fluentui/react-components';
import type { JSXElement } from '@fluentui/react-components';
import { useDataGridHeader_unstable } from './useDataGridHeader';
import { useDataGridHeaderStyles_unstable } from './useDataGridHeaderStyles.styles';

Expand All @@ -19,6 +20,6 @@ export const DataGridHeader = React.forwardRef<
useDataGridHeaderStyles_unstable(state);
return renderDataGridHeader_unstable(state);
}) as ForwardRefComponent<DataGridHeaderProps> &
((props: DataGridHeaderProps) => JSX.Element);
((props: DataGridHeaderProps) => JSXElement);

DataGridHeader.displayName = 'DataGridHeader';
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
DataGridRowProps,
} from '@fluentui/react-components';
import type { ForwardRefComponent } from '@fluentui/react-components';
import type { JSXElement } from '@fluentui/react-components';
import { useDataGridRow_unstable } from './useDataGridRow';
import { useDataGridRowStyles_unstable } from './useDataGridRow.styles';

Expand All @@ -18,6 +19,6 @@ export const DataGridRow = React.forwardRef<HTMLElement, DataGridRowProps>(
return renderDataGridRow_unstable(state);
}
) as ForwardRefComponent<DataGridRowProps> &
(<TItem>(props: DataGridRowProps<TItem>) => JSX.Element);
(<TItem>(props: DataGridRowProps<TItem>) => JSXElement);

DataGridRow.displayName = 'DataGridRow';
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ import {
DataGridHeaderCell,
RowRenderer,
} from '@fluentui-contrib/react-data-grid-react-window';
import type { JSXElement } from '@fluentui/react-components';

type FileCell = {
label: string;
icon: JSX.Element;
icon: JSXElement;
};

type LastUpdatedCell = {
Expand All @@ -49,7 +50,7 @@ type LastUpdatedCell = {

type LastUpdateCell = {
label: string;
icon: JSX.Element;
icon: JSXElement;
};

type AuthorCell = {
Expand Down
Loading