Skip to content

Commit

Permalink
feat!: update react to v18
Browse files Browse the repository at this point in the history
BREAKING CHANGE: update React to v18 and drop support for v17
Refs: SHELL-63 (#460, #507)
  • Loading branch information
beawar authored Oct 4, 2024
1 parent fc28a50 commit 2b22cb2
Show file tree
Hide file tree
Showing 41 changed files with 660 additions and 728 deletions.
7 changes: 3 additions & 4 deletions api-extractor/carbonio-shell-ui.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { DropdownItem } from '@zextras/carbonio-design-system';
import type { DynamicThemeFix } from 'darkreader';
import type { Event as Event_2 } from '@sentry/browser';
import type { EventHint } from '@sentry/browser';
import type { FC } from 'react';
import type { i18n } from 'i18next';
import type { LinkProps } from 'react-router-dom';
import type { ModalProps } from '@zextras/carbonio-design-system';
Expand Down Expand Up @@ -274,7 +273,7 @@ type AppDependantExports = {
};

// @public (undocumented)
export const AppLink: FC<AppLinkProps>;
export const AppLink: ({ to, route, ...rest }: AppLinkProps) => React_2.JSX.Element;

// @public (undocumented)
export type AppLinkProps = LinkProps & {
Expand Down Expand Up @@ -1239,7 +1238,7 @@ type SearchView = CarbonioView<SearchViewProps> & {
// @public (undocumented)
export type SearchViewProps = {
useQuery: () => [QueryChip[], Function];
ResultsHeader: FC<{
ResultsHeader: React_2.ComponentType<{
label: string;
}>;
useDisableSearch: () => [boolean, Function];
Expand Down Expand Up @@ -1664,7 +1663,7 @@ type UtilityView = CarbonioAccessoryView<UtilityBarComponentProps> & {
};

// @public (undocumented)
type ValueOf<T extends Record<string, unknown>> = T[keyof T];
type ValueOf<T> = T[keyof T];

// @public (undocumented)
type WorkerMessage<T> = {
Expand Down
6 changes: 1 addition & 5 deletions carbonio.webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ const configFn = (
extensions.push('.d.ts');
conf.resolve = {
...conf.resolve,
extensions,
alias: {
...conf.resolve?.alias,
'react/jsx-runtime': 'react/jsx-runtime.js'
}
extensions
};
conf.plugins = conf.plugins ?? [];
conf.plugins.push(
Expand Down
Loading

0 comments on commit 2b22cb2

Please sign in to comment.