Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
93fc916
Component compat
TheSonOfThomp Sep 2, 2025
5bea85b
.ts compat
TheSonOfThomp Sep 2, 2025
2f4af53
PolymorphicRenderFunctionReturnType
TheSonOfThomp Sep 2, 2025
cb8319e
sync spec files
TheSonOfThomp Sep 3, 2025
49796b6
update Link & BackLink specs
TheSonOfThomp Sep 3, 2025
ef97c40
Update useEchart.spec.ts
TheSonOfThomp Sep 3, 2025
8eb42ba
Update index.ts
TheSonOfThomp Sep 3, 2025
a57705c
Update FormField.spec.tsx
TheSonOfThomp Sep 3, 2025
55d365d
restore Popover.spec.tsx ts expect error
TheSonOfThomp Sep 3, 2025
24482a8
Update PasswordInput.spec.tsx
TheSonOfThomp Sep 3, 2025
d6664af
select spec
TheSonOfThomp Sep 3, 2025
b5f76d8
packages/table/src/utils/stories.testutils.tsx
TheSonOfThomp Sep 3, 2025
2b0d305
sync ts files
TheSonOfThomp Sep 3, 2025
5200781
@ts-ignore React18
TheSonOfThomp Sep 3, 2025
0ba1a61
packages/popover/src/Popover/Popover.spec.tsx
TheSonOfThomp Sep 3, 2025
77b9458
Refresh RTLOverrides
TheSonOfThomp Sep 3, 2025
597381a
packages/toast/src/InternalToast/InternalToast.stories.tsx
TheSonOfThomp Sep 3, 2025
dceeb75
fix render hook
TheSonOfThomp Sep 3, 2025
02c8ffe
Update ExpandedContent.spec.tsx
TheSonOfThomp Sep 3, 2025
98af086
charts/core/src/ChartContext/ChartContext.spec.tsx
TheSonOfThomp Sep 3, 2025
1779751
Merge branch 'main' into a/r17-compat
TheSonOfThomp Sep 3, 2025
ec2058f
changesets
TheSonOfThomp Sep 3, 2025
6a31be9
renderDescendantsTestContext
TheSonOfThomp Sep 3, 2025
b7cdd64
cleanup tooltip tests
TheSonOfThomp Sep 3, 2025
35abe62
bump popover-polyfill
TheSonOfThomp Sep 3, 2025
3b005c4
Merge branch 'main' into a/r17-compat
TheSonOfThomp Sep 5, 2025
1d2abbb
Merge branch 'a/r17-compat' of https://github.com/mongodb/leafygreen-…
TheSonOfThomp Sep 5, 2025
f405f64
Update R17 and dependencies package versions
TheSonOfThomp Aug 29, 2025
dd7389c
Update babel.config.js
TheSonOfThomp Aug 29, 2025
7fecc0b
downgrade ts
TheSonOfThomp Aug 29, 2025
b0ef22c
downgrade sb
TheSonOfThomp Aug 29, 2025
9b01da9
reinstall
TheSonOfThomp Aug 29, 2025
8866f57
TS 5.0
TheSonOfThomp Aug 29, 2025
3253364
update tsconfigs for ts5.0
TheSonOfThomp Aug 29, 2025
e1268ef
add testing-lib to hooks
TheSonOfThomp Aug 29, 2025
608b289
disable poly tests
TheSonOfThomp Aug 29, 2025
d947a6f
lg-chat-provider tsconfig
TheSonOfThomp Aug 29, 2025
6062966
poly expect err
TheSonOfThomp Aug 29, 2025
6c157c3
icon
TheSonOfThomp Aug 29, 2025
c88f69d
typography
TheSonOfThomp Aug 29, 2025
18cda38
rebuild lockfile
TheSonOfThomp Sep 2, 2025
3704f19
downgrade test package deps
TheSonOfThomp Sep 2, 2025
06a1990
downgrade sb rest deps
TheSonOfThomp Sep 2, 2025
1ea1bd4
Update pnpm-lock.yaml
TheSonOfThomp Sep 2, 2025
8c5be11
downgrade ts
TheSonOfThomp Sep 2, 2025
562cc63
rm ts expect errors
TheSonOfThomp Sep 2, 2025
62df4a3
rtl userevent 13
TheSonOfThomp Sep 2, 2025
5653740
misc
TheSonOfThomp Sep 2, 2025
c915b72
rm @ts-nocheck
TheSonOfThomp Sep 2, 2025
9ea1900
Update useEchart.spec.ts
TheSonOfThomp Sep 2, 2025
0855718
EChartsInstance
TheSonOfThomp Sep 3, 2025
6296c9a
REVERT PolymorphicRenderFunctionReturnType
TheSonOfThomp Sep 3, 2025
f434363
RenderDescendantsTestContextResult
TheSonOfThomp Sep 3, 2025
cba5c5d
fix ToggleEvent type import
TheSonOfThomp Sep 5, 2025
8471bd4
Update pnpm-lock.yaml
TheSonOfThomp Sep 5, 2025
7684786
lint tsconfigs.jsons
TheSonOfThomp Sep 5, 2025
0c0ab95
Update pnpm-lock.yaml
TheSonOfThomp Sep 8, 2025
c8d339d
Creates R17 init script
TheSonOfThomp Sep 8, 2025
7f3e5a3
Delete install-react17.ts
TheSonOfThomp Sep 8, 2025
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
5 changes: 5 additions & 0 deletions .changeset/drawer-component-props.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lg-chat/drawer': patch
---

Updates `DrawerLayoutProps` to extend `ComponentPropsWithoutRef<'div'>`
5 changes: 5 additions & 0 deletions .changeset/react-component-props.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@leafygreen-ui/lib': patch
---

Deprecates `HTMLElementProps`. Prefer the built-in React type `ComponentProps`
5 changes: 5 additions & 0 deletions .changeset/rich-links-component-props.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lg-chat/rich-links': patch
---

Updates `RichLinkProps` to extend `ComponentPropsWithoutRef<'a'>`
6 changes: 6 additions & 0 deletions .changeset/rtl-overrides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@leafygreen-ui/testing-lib': minor
---

Exports types `RenderHookOptions` & `RenderHookResult`.
Updates type signature of `renderHook`
6 changes: 5 additions & 1 deletion charts/chart-card/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion charts/colors/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
9 changes: 4 additions & 5 deletions charts/core/src/Echart/useEchart.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { act } from 'react-dom/test-utils';

import { renderHook } from '@leafygreen-ui/testing-lib';
import { renderHook, RenderHookResult } from '@leafygreen-ui/testing-lib';

import { type SeriesOption } from '../Chart';

import { EChartsInstance } from './Echart.types';
import { useEchart } from './useEchart';

// Mock echarts instance creation with all required methods
Expand Down Expand Up @@ -48,12 +49,10 @@ jest.mock('echarts/renderers', () => ({
// Helper function to wait for hook initialization and state updates
const setupHook = async () => {
const mockContainer = document.createElement('div');
let result: ReturnType<
typeof renderHook<ReturnType<typeof useEchart>, void>
>['result'];
let result: RenderHookResult<any, EChartsInstance>['result'];

await act(async () => {
const hookResult = renderHook(() =>
const hookResult = renderHook<any, EChartsInstance>(() =>
useEchart({ theme: 'dark', container: mockContainer }),
);
result = hookResult.result;
Expand Down
6 changes: 5 additions & 1 deletion charts/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
2 changes: 1 addition & 1 deletion charts/drag-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
},
"devDependencies": {
"@lg-tools/build": "workspace:^",
"@storybook/test": "8.5.3"
"@storybook/test": "7.6.20"
}
}
6 changes: 5 additions & 1 deletion charts/drag-provider/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion charts/legend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion charts/series-provider/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/avatar/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/chat-disclaimer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/chat-window/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/fixed-chat-window/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/input-bar/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
21 changes: 10 additions & 11 deletions chat/leafygreen-chat-provider/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

{
"extends": "@lg-tools/build/config/package.tsconfig.json",
"compilerOptions": {},
"include": ["src/**/*"],
"references": [
{
"path": "../../packages/hooks"
},
{
"path": "../../packages/leafygreen-provider"
},
]
"compilerOptions": {
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
],
"references": []
}
6 changes: 5 additions & 1 deletion chat/lg-markdown/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
2 changes: 1 addition & 1 deletion chat/message-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@lg-tools/test-harnesses": "workspace:^"
},
"devDependencies": {
"@storybook/test": "^8.6.14"
"@storybook/test": "7.6.20"
},
"peerDependencies": {
"@leafygreen-ui/leafygreen-provider": "workspace:^",
Expand Down
6 changes: 5 additions & 1 deletion chat/message-actions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
4 changes: 2 additions & 2 deletions chat/message-feed/src/utils/MessageFeed.testutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type MongoMessageFields = MessageFieldsBase & {

export type MessageFields = UserMessageFields | MongoMessageFields;

export const baseMessages: Array<MessageFields> = [
export const baseMessages = [
{
id: 1,
messageBody: 'Hi! Ask me anything.',
Expand Down Expand Up @@ -74,4 +74,4 @@ Refer to [LeafyGreen UI](mongodb.design) or [LeafyGreen UI](mongodb.design) for
console.log(`Message 6 was ${e.target.value}.`),
},
},
] as const;
] as const satisfies Readonly<Array<MessageFields>>;
6 changes: 5 additions & 1 deletion chat/message-feed/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/message-feedback/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/message-prompts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/message-rating/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/message/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 4 additions & 2 deletions chat/rich-links/src/RichLink/RichLink.types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { DarkModeProps, HTMLElementProps } from '@leafygreen-ui/lib';
import { ComponentPropsWithoutRef } from 'react';

import { DarkModeProps } from '@leafygreen-ui/lib';

import { RichLinkBadgeProps } from './RichLinkBadge/RichLinkBadge.types';
import { RichLinkVariantName } from './richLinkVariants';

export interface BaseRichLinkProps
extends DarkModeProps,
HTMLElementProps<'a', never> {
ComponentPropsWithoutRef<'a'> {
/**
* The text that shows on the rich link
*/
Expand Down
6 changes: 5 additions & 1 deletion chat/rich-links/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/suggestions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
6 changes: 5 additions & 1 deletion chat/title-bar/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"@leafygreen-ui/*": [
"../../packages/*/src"
]
}
},
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist/types"
},
"include": [
"src/**/*"
Expand Down
Loading