Skip to content

Commit

Permalink
bump i18next 24 / framer-motion 12 (pas de BC finalement)
Browse files Browse the repository at this point in the history
  • Loading branch information
JabX committed Feb 1, 2025
1 parent fd358f3 commit 8b61901
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 35 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"react": "18.3.1",
"react-docgen-typescript": "2.2.2",
"react-dom": "18.3.1",
"rollup": "4.31.0",
"rollup": "4.34.0",
"rollup-plugin-copy-glob": "0.4.1",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-preserve-shebang": "1.0.1",
"tslib": "2.8.1",
"typescript": "5.7.3",
"vitest": "3.0.3"
"vitest": "3.0.4"
}
}
9 changes: 4 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
"build": "rollup -cm --bundleConfigAsCjs"
},
"dependencies": {
"@types/lodash": "4.17.14",
"@types/react": "18.3.12",
"@types/lodash": "4.17.15",
"@types/uuid": "10.0.0",
"history": "5.3.0",
"i18next": "23.16.8",
"i18next": "24.2.2",
"lodash": "4.17.21",
"mobx": "6.13.5",
"mobx": "6.13.6",
"mobx-utils": "6.1.0",
"tslib": "2.8.1",
"uuid": "11.0.5"
}
}
}
10 changes: 5 additions & 5 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
},
"devDependencies": {
"@focus4/tooling": "11.23.0",
"@storybook/addon-essentials": "8.5.0",
"@storybook/blocks": "8.5.0",
"@storybook/react-vite": "8.5.0",
"storybook": "8.5.0",
"@storybook/addon-essentials": "8.5.2",
"@storybook/blocks": "8.5.2",
"@storybook/react-vite": "8.5.2",
"storybook": "8.5.2",
"storybook-dark-mode": "4.0.2"
}
}
}
8 changes: 4 additions & 4 deletions packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"@focus4/core": "11.23.3",
"@focus4/styling": "11.23.3",
"@focus4/toolbox": "11.23.3",
"react-transition-state": "2.2.0"
"react-transition-state": "2.3.0"
},
"devDependencies": {
"@focus4/tooling": "11.23.0",
"@testing-library/react": "16.1.0",
"jsdom": "25.0.1"
"@testing-library/react": "16.2.0",
"jsdom": "26.0.0"
}
}
}
3 changes: 2 additions & 1 deletion packages/styling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
},
"dependencies": {
"@focus4/core": "11.23.3",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"classnames": "2.5.1",
"mobx-react": "7.6.0",
"react": "18.3.1",
"react-dom": "18.3.1"
}
}
}
4 changes: 2 additions & 2 deletions packages/toolbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"@focus4/core": "11.23.3",
"@focus4/styling": "11.23.3",
"@types/luxon": "3.4.2",
"framer-motion": "11.0.26",
"framer-motion": "12.0.6",
"luxon": "3.5.0"
},
"devDependencies": {
"@focus4/tooling": "11.23.0"
}
}
}
28 changes: 15 additions & 13 deletions packages/toolbox/src/components/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,21 @@ export const Calendar = forwardRef(function Calendar(

const id = ++animationId.current;
const lineHeight = displayed.current.querySelector("button")?.parentElement?.clientHeight ?? 0;
await animate(displayed.current, {y: -lineHeight * newLinesAbove.length}, {duration: 0});
await animate(
displayed.current,
{
y:
direction === "up"
? 0
: -lineHeight *
differenceBy(oldLines.concat(newLinesAbove), linesBelow, l => l.line).length
},
{duration: 0.275}
);
await animate(displayed.current, {y: 0}, {duration: 0});
await animate([
[displayed.current, {y: -lineHeight * newLinesAbove.length}, {duration: 0}],
[
displayed.current,
{
y:
direction === "up"
? 0
: -lineHeight *
differenceBy(oldLines.concat(newLinesAbove), linesBelow, l => l.line).length
},
{duration: 0.275}
],
[displayed.current, {y: 0}, {duration: 0}]
]);
if (id === animationId.current) {
for (const line of newTransitionLines) {
const dLine = displayed.current.querySelector<HTMLElement>(`[data-line='${line.line}']`);
Expand Down
6 changes: 3 additions & 3 deletions packages/tooling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@types/postcss-modules-extract-imports": "3.0.5",
"@types/postcss-modules-local-by-default": "4.0.2",
"@types/postcss-modules-scope": "3.0.4",
"@typescript-eslint/eslint-plugin": "8.21.0",
"@typescript-eslint/parser": "8.21.0",
"@typescript-eslint/eslint-plugin": "8.22.0",
"@typescript-eslint/parser": "8.22.0",
"@vitejs/plugin-react": "4.3.4",
"eslint": "8.57.0",
"eslint-config-prettier": "10.0.1",
Expand All @@ -40,4 +40,4 @@
"vite": "6.0.11",
"vite-plugin-checker": "0.8.0"
}
}
}

0 comments on commit 8b61901

Please sign in to comment.