Skip to content

Commit ecfa2d3

Browse files
authored
chore: update deps (#762)
1 parent c80e436 commit ecfa2d3

File tree

70 files changed

+1279
-1363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1279
-1363
lines changed

.changeset/serious-llamas-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Update React Aria deps.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.19.2
1+
22.18.0

.size-limit.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = [
2020
}),
2121
);
2222
},
23-
limit: '286kB',
23+
limit: '295kB',
2424
},
2525
{
2626
name: 'Tree shaking (just a Button)',

.storybook/preview.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { configure } from '@storybook/test';
21
import isChromatic from 'chromatic/isChromatic';
32
import { config } from 'react-transition-group';
3+
import { configure } from 'storybook/test';
44

55
import { Root } from '../src';
66

package.json

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"fix": "npm-run-all -p eslint:fix prettier:fix",
4141
"storybook": "STORYBOOK_MODE=stories storybook dev -p 6060",
4242
"build-storybook": "STORYBOOK_MODE=stories storybook build",
43-
"build-docs": "storybook build -o storybook-docs",
43+
"build-docs": "STORYBOOK_MODE=docs storybook build --docs -o storybook-docs",
4444
"build-static-docs": "npm run build-docs && node scripts/snapshot-docs.js",
4545
"size": "size-limit",
4646
"prepare": "husky install",
@@ -64,18 +64,16 @@
6464
"dependencies": {
6565
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
6666
"@internationalized/date": "^3.7.0",
67-
"@react-aria/focus": "^3.19.1",
68-
"@react-aria/i18n": "^3.12.5",
69-
"@react-aria/interactions": "^3.23.0",
70-
"@react-aria/selection": "^3.22.0",
71-
"@react-aria/ssr": "^3.9.7",
72-
"@react-aria/utils": "^3.27.0",
73-
"@react-spectrum/utils": "^3.12.1",
74-
"@react-stately/utils": "^3.10.5",
75-
"@react-types/shared": "^3.27.0",
67+
"@react-aria/focus": "^3.21.0",
68+
"@react-aria/i18n": "^3.12.11",
69+
"@react-aria/interactions": "^3.25.4",
70+
"@react-aria/selection": "^3.25.0",
71+
"@react-aria/ssr": "^3.9.10",
72+
"@react-aria/utils": "^3.30.0",
73+
"@react-spectrum/utils": "^3.12.7",
74+
"@react-stately/utils": "^3.10.8",
75+
"@react-types/shared": "^3.31.0",
7676
"@sparticuz/chromium": "^137.0.1",
77-
"@storybook/react": "^9.1.2",
78-
"@storybook/test": "^8.6.14",
7977
"@tabler/icons-react": "^3.31.0",
8078
"@tanstack/react-virtual": "^3.13.12",
8179
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
@@ -88,12 +86,12 @@
8886
"playwright-core": "^1.53.2",
8987
"prism-react-renderer": "^2.4.1",
9088
"prismjs": "^1.30.0",
91-
"react-aria": "^3.37.0",
89+
"react-aria": "^3.42.0",
9290
"react-focus-lock": "^2.13.5",
9391
"react-hotkeys-hook": "^5.1.0",
9492
"react-is": "^18.3.1",
9593
"react-keyed-flatten-children": "^1.3.0",
96-
"react-stately": "^3.35.0",
94+
"react-stately": "^3.40.0",
9795
"react-transition-group": "^4.4.5",
9896
"react-types": "^0.1.0",
9997
"remark-gfm": "^4.0.1",
@@ -128,7 +126,7 @@
128126
"@testing-library/react-hooks": "^8.0.1",
129127
"@testing-library/user-event": "14.6.1",
130128
"@types/jest": "^29.5.12",
131-
"@types/node": "^18.19.86",
129+
"@types/node": "^22.17.2",
132130
"@types/react": "^18.2.70",
133131
"@types/react-dom": "^18.2.22",
134132
"@types/react-is": "^18.2.4",
@@ -179,7 +177,7 @@
179177
],
180178
"license": "MIT",
181179
"engines": {
182-
"node": ">=20.19.2",
180+
"node": ">=22.18.0",
183181
"pnpm": "^10.0.0"
184182
}
185-
}
183+
}

pnpm-lock.yaml

Lines changed: 1143 additions & 1169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/snapshot-docs.js

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,21 @@ function createComponentMapping(availableIds) {
100100
/**
101101
* Fixes /components/ComponentName links in source files to proper /docs/ format
102102
* e.g., "/components/ItemButton" -> "/docs/actions-itembutton--docs"
103+
* e.g., "/components/ItemButton#sub-components" -> "/docs/actions-itembutton--docs#sub-components"
103104
*/
104105
function fixComponentLinks(content, componentMapping) {
105106
const brokenLinks = new Set();
106107

107-
// Pattern to match [text](/components/ComponentName)
108-
const componentLinkPattern = /\[([^\]]*)\]\(\/components\/([^)]+)\)/g;
108+
// Pattern to match [text](/components/ComponentName) or [text](/components/ComponentName#hash)
109+
const componentLinkPattern =
110+
/\[([^\]]*)\]\(\/components\/([^)#]+)(#[^)]+)?\)/g;
109111

110112
const fixedContent = content.replace(
111113
componentLinkPattern,
112-
(match, linkText, componentName) => {
114+
(match, linkText, componentName, hashFragment = '') => {
113115
const storyId = componentMapping.get(componentName);
114116
if (storyId) {
115-
return `[${linkText}](/docs/${storyId})`;
117+
return `[${linkText}](/docs/${storyId}${hashFragment})`;
116118
}
117119
// If not found, log it and leave the link as is
118120
brokenLinks.add(componentName);
@@ -135,7 +137,9 @@ function fixComponentLinks(content, componentMapping) {
135137
* Fixes internal links in HTML content to point to the generated HTML files
136138
* Transforms links like:
137139
* - `href="/docs/pickers-select--docs"` -> `href="pickers-select--docs.html"`
140+
* - `href="/docs/pickers-select--docs#hash"` -> `href="pickers-select--docs.html#hash"`
138141
* - `href="?path=/docs/pickers-select--docs"` -> `href="pickers-select--docs.html"`
142+
* - `href="?path=/docs/pickers-select--docs#hash"` -> `href="pickers-select--docs.html#hash"`
139143
* - `href="/?path=/docs/pickers-select--docs"` -> `href="pickers-select--docs.html"`
140144
* - `href="./?path=/docs/pickers-select--docs"` -> `href="pickers-select--docs.html"`
141145
*/
@@ -144,30 +148,33 @@ function fixInternalLinks(content, availableIds) {
144148
const availableIdsSet = new Set(availableIds);
145149
const brokenLinks = new Set();
146150

147-
// Pattern to match various forms of Storybook docs links
151+
// Pattern to match various forms of Storybook docs links with optional hash fragments
148152
const linkPatterns = [
149-
// Match href="/docs/story-id--docs"
150-
/href="\/docs\/([^"]+--docs)"/g,
151-
// Match href="?path=/docs/story-id--docs"
152-
/href="\?path=\/docs\/([^"]+--docs)"/g,
153-
// Match href="/?path=/docs/story-id--docs"
154-
/href="\/\?path=\/docs\/([^"]+--docs)"/g,
155-
// Match href="./?path=/docs/story-id--docs"
156-
/href="\.\/\?path=\/docs\/([^"]+--docs)"/g,
153+
// Match href="/docs/story-id--docs" or href="/docs/story-id--docs#hash"
154+
/href="\/docs\/([^"#]+--docs)(#[^"]+)?"/g,
155+
// Match href="?path=/docs/story-id--docs" or href="?path=/docs/story-id--docs#hash"
156+
/href="\?path=\/docs\/([^"#]+--docs)(#[^"]+)?"/g,
157+
// Match href="/?path=/docs/story-id--docs" or href="/?path=/docs/story-id--docs#hash"
158+
/href="\/\?path=\/docs\/([^"#]+--docs)(#[^"]+)?"/g,
159+
// Match href="./?path=/docs/story-id--docs" or href="./?path=/docs/story-id--docs#hash"
160+
/href="\.\/\?path=\/docs\/([^"#]+--docs)(#[^"]+)?"/g,
157161
];
158162

159163
let fixedContent = content;
160164

161165
linkPatterns.forEach((pattern) => {
162-
fixedContent = fixedContent.replace(pattern, (match, storyId) => {
163-
// Check if this story ID exists in our generated files
164-
if (availableIdsSet.has(storyId)) {
165-
return `href="${storyId}.html"`;
166-
}
167-
// If not found, log it and leave the link as is
168-
brokenLinks.add(storyId);
169-
return match;
170-
});
166+
fixedContent = fixedContent.replace(
167+
pattern,
168+
(match, storyId, hashFragment = '') => {
169+
// Check if this story ID exists in our generated files
170+
if (availableIdsSet.has(storyId)) {
171+
return `href="${storyId}.html${hashFragment}"`;
172+
}
173+
// If not found, log it and leave the link as is
174+
brokenLinks.add(storyId);
175+
return match;
176+
},
177+
);
171178
});
172179

173180
// Log broken links if any were found

src/components/actions/Action/Action.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react-vite';
22

33
import { baseProps } from '../../../stories/lists/baseProps';
44

src/components/actions/Button/Button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StoryFn } from '@storybook/react';
1+
import { StoryFn } from '@storybook/react-vite';
22
import { IconCaretDown, IconCoin } from '@tabler/icons-react';
33

44
import { baseProps } from '../../../stories/lists/baseProps';

src/components/actions/CommandMenu/CommandMenu.docs.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The CommandMenu component supports the following modifiers:
6868

6969
Individual menu items within the CommandMenu. Each item is rendered using [ItemBase](/docs/content-itembase--docs) and supports all ItemBase properties for layout, icons, descriptions, and interactive features.
7070

71-
For detailed information about all available item properties, see the [Menu.Item documentation](/components/Menu#sub-components) which provides the complete API reference. Key properties include:
71+
For detailed information about all available item properties, see the [Menu.Item documentation](/docs/actions-menu--docs#sub-components) which provides the complete API reference. Key properties include:
7272

7373
| Property | Type | Description |
7474
|----------|------|-------------|
@@ -118,7 +118,7 @@ For detailed information about all available item properties, see the [Menu.Item
118118

119119
### CommandMenu.Section
120120

121-
Groups related items together with an optional heading. Same as Menu.Section - see [Menu documentation](/components/Menu#sub-components) for full details.
121+
Groups related items together with an optional heading. Same as Menu.Section - see [Menu documentation](/docs/actions-menu--docs#sub-components) for full details.
122122

123123
| Property | Type | Default | Description |
124124
|----------|------|---------|-------------|
@@ -127,7 +127,7 @@ Groups related items together with an optional heading. Same as Menu.Section - s
127127

128128
### CommandMenu.Trigger
129129

130-
Alias for MenuTrigger component. See [Menu.Trigger documentation](/components/Menu#menu-trigger) for full API reference.
130+
Alias for MenuTrigger component. See [Menu.Trigger documentation](/docs/actions-menu--docs#menu-trigger) for full API reference.
131131

132132
## Accessibility
133133

0 commit comments

Comments
 (0)