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
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,31 @@
"devDependencies": {
"@chromatic-com/storybook": "^5.2.1",
"@eslint/js": "^10.0.1",
"@storybook/addon-a11y": "^10.4.2",
"@storybook/addon-docs": "^10.4.2",
"@storybook/addon-onboarding": "^10.4.2",
"@storybook/addon-themes": "^10.4.2",
"@storybook/addon-vitest": "^10.4.2",
"@storybook/react-vite": "^10.4.2",
"@storybook/addon-a11y": "^10.4.6",
"@storybook/addon-docs": "^10.4.6",
"@storybook/addon-onboarding": "^10.4.6",
"@storybook/addon-themes": "^10.4.6",
"@storybook/addon-vitest": "^10.4.6",
"@storybook/react-vite": "^10.4.6",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitest/browser-playwright": "^4.1.8",
"@vitest/coverage-v8": "^4.1.8",
"autoprefixer": "^10.5.0",
"@vitest/browser-playwright": "^4.1.10",
"@vitest/coverage-v8": "^4.1.10",
"autoprefixer": "^10.5.2",
"eslint": "^10.1.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^7.0.1",
"katex": "^0.17.0",
"playwright": "^1.60.0",
"postcss": "^8.5.10",
"playwright": "^1.61.1",
"postcss": "^8.5.16",
"postcss-cli": "^11.0.1",
"prettier": "^3.8.3",
"prettier": "^3.9.4",
"react-scan": "^0.5.7",
"sass": "^1.100.0",
"storybook": "^10.4.2",
"sass": "^1.101.0",
"storybook": "^10.4.6",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.58.2",
"vitest": "^4.1.8"
"vitest": "^4.1.10"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"vfile": "^6.0.3"
},
"devDependencies": {
"@types/hast": "^3.0.4",
"@types/hast": "^3.0.5",
"@types/lodash-es": "^4.17.12",
"@types/mdast": "^4.0.4",
"@types/react": "^19.2.17",
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/components/aggregateFootnotesIfLast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ function buildAggregateTree(
tagName: 'li',
properties: {
id: `${clobberPrefix}fn-${sourceIdentifier}`,
...(n !== null ? { value: n } : {}),
// Stringified: @types/hast (≥3.0.5) types li's `value` as string;
// React serializes value={3} and value="3" to identical markup.
...(n !== null ? { value: String(n) } : {}),
},
children: liChildren,
};
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/components/extendSanitizeSchema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ describe('extendSanitizeSchema — mutate-and-return form', () => {
const schema = extendSanitizeSchema(() => {});
const codeAttrs = schema.attributes?.code ?? [];
const classNameEntry = codeAttrs.find((entry) => Array.isArray(entry) && entry[0] === 'className') as
| readonly unknown[]
| undefined;
readonly unknown[] | undefined;
expect(classNameEntry).toBeDefined();
// The RegExp from defaultSchema should still BE a RegExp (not a plain object).
expect(classNameEntry!.some((v) => v instanceof RegExp)).toBe(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ describe('Markdown', () => {
tree.children.unshift({
type: 'element',
tagName: 'input',
properties: { id: 'a', ariaDescribedBy: 'b', required: true },
properties: { id: 'a', ariaDescribedBy: ['b'], required: true },
children: [],
});
};
Expand Down Expand Up @@ -741,7 +741,7 @@ describe('Markdown', () => {
{
type: 'element',
tagName: 'circle',
properties: { cx: 120, cy: 120, r: 100 },
properties: { cx: '120', cy: '120', r: '100' },
children: [],
},
// `strokeMiterLimit` in hast, `strokeMiterlimit` in React.
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/components/markdown/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export interface ExtraProps {
/** Map tag names to user components or other tag names. */
export type Components = {
[Key in keyof JSX.IntrinsicElements]?:
| ComponentType<JSX.IntrinsicElements[Key] & ExtraProps>
| keyof JSX.IntrinsicElements;
ComponentType<JSX.IntrinsicElements[Key] & ExtraProps> | keyof JSX.IntrinsicElements;
};

/** Filter callback for elements. Return falsy to drop. */
Expand Down
13 changes: 7 additions & 6 deletions packages/core/src/typings/partial-deep.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ export type ApplyDefaultOptions<
Merge<
Defaults,
{
[Key in keyof SpecifiedOptions as Key extends OptionalKeysOf<Options>
? undefined extends SpecifiedOptions[Key]
? never
[
Key in keyof SpecifiedOptions as Key extends OptionalKeysOf<Options>
? undefined extends SpecifiedOptions[Key]
? never
: Key
: Key
: Key]: SpecifiedOptions[Key];
]: SpecifiedOptions[Key];
}
> &
Required<Options>
Expand Down Expand Up @@ -218,8 +220,7 @@ export type PartialDeep<T, Options extends PartialDeepOptions = {}> = _PartialDe
>;

type _PartialDeep<T, Options extends Required<PartialDeepOptions>> = T extends
| BuiltIns
| (new (...arguments_: any[]) => unknown)
BuiltIns | (new (...arguments_: any[]) => unknown)
? T
: T extends Map<infer KeyType, infer ValueType>
? PartialMapDeep<KeyType, ValueType, Options>
Expand Down
5 changes: 1 addition & 4 deletions packages/core/stories/streaming/isolatedProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ export type SideMode = 'memo' | 'legacy';

/** Host → side. */
export type HostToSideMessage =
| { type: 'bmc:start' }
| { type: 'bmc:chunk'; text: string }
| { type: 'bmc:stop' }
| { type: 'bmc:reset' };
{ type: 'bmc:start' } | { type: 'bmc:chunk'; text: string } | { type: 'bmc:stop' } | { type: 'bmc:reset' };

/** Side → host. Deliberately carries NO self-identification: the host
* attributes every message by `event.source` identity against its two
Expand Down
6 changes: 3 additions & 3 deletions packages/mantine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
"@mantine/code-highlight": "^8.3.18",
"@mantine/core": "^8.3.18",
"@types/lodash-es": "^4.17.12",
"@types/node": "^25.9.1",
"autoprefixer": "^10.5.0",
"@types/node": "^25.9.5",
"autoprefixer": "^10.5.2",
"esbuild-sass-plugin": "^3.7.0",
"highlight.js": "^11.11.1",
"lodash-es": "^4.18.0",
"postcss": "^8.5.10",
"postcss": "^8.5.16",
"tsup": "^8.5.1"
}
}
Loading
Loading