@okam/next-component 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/components/Img/index.d.ts +2 -1
- package/components/Img/interface.d.ts +3 -2
- package/components/Link/index.d.ts +3 -2
- package/components/Link/interface.d.ts +3 -2
- package/hooks/useLink/index.d.ts +3 -2
- package/hooks/useLink/interface.d.ts +3 -2
- package/package.json +9 -4
- package/theme/Link/index.d.ts +4 -4
- package/theme/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
## 1.2.4 (2026-01-14)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- ⚠️ React 19 + Next.js 15 upgrade for all @okam/* packages ([#369](https://github.com/OKAMca/stack/pull/369))
|
|
6
|
+
|
|
7
|
+
### ⚠️ Breaking Changes
|
|
8
|
+
|
|
9
|
+
- Consumers must now have react and react-dom in their own
|
|
10
|
+
|
|
11
|
+
### 🧱 Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated stack-ui to 1.44.0
|
|
14
|
+
|
|
15
|
+
### ❤️ Thank You
|
|
16
|
+
|
|
17
|
+
- Marie-Maxime Tanguay @marie-maxime
|
|
18
|
+
|
|
19
|
+
## 1.2.3 (2026-01-13)
|
|
20
|
+
|
|
21
|
+
### 🚀 Features
|
|
22
|
+
|
|
23
|
+
- React 19 + Next.js 15 support ([#369](https://github.com/OKAMca/stack/pull/369))
|
|
24
|
+
|
|
25
|
+
### 🧱 Updated Dependencies
|
|
26
|
+
|
|
27
|
+
- Updated stack-ui to 1.43.0
|
|
28
|
+
|
|
29
|
+
### ❤️ Thank You
|
|
30
|
+
|
|
31
|
+
- Marie-Maxime Tanguay @marie-maxime
|
|
32
|
+
|
|
1
33
|
## 1.2.2 (2025-11-27)
|
|
2
34
|
|
|
3
35
|
### 🧱 Updated Dependencies
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TDefaultComponent } from '../../../../stack-ui/src/index.ts';
|
|
2
|
+
import { ImageProps, StaticImageData } from 'next/image';
|
|
3
|
+
|
|
3
4
|
type TImgProps = TDefaultComponent & Omit<ImageProps, 'src'> & {
|
|
4
5
|
src: string | StaticImageData;
|
|
5
6
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { TLinkProps } from './interface';
|
|
2
|
+
|
|
3
|
+
declare const Link: import('react').ForwardRefExoticComponent<TLinkProps<import('../../../../stack-ui/src/index.ts').TToken> & import('react').RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
3
4
|
export default Link;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TDefaultComponent, TToken } from '../../../../stack-ui/src/index.ts';
|
|
2
|
+
import { TLink } from '../../hooks/useLink/interface';
|
|
3
|
+
|
|
3
4
|
export interface TLinkProps<T = TToken> extends Omit<TDefaultComponent<T>, keyof TLink>, TLink {
|
|
4
5
|
}
|
package/hooks/useLink/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { LinkProps } from 'next/link';
|
|
2
|
+
import { TLink, TUseLinkReturn } from './interface';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Tries to get the locale, in order of priority:
|
|
5
6
|
* 1. The locale prop. Still has priority even when set to `false`
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { LinkProps as NextLinkProps } from 'next/link';
|
|
2
|
+
import { ReadonlyURLSearchParams } from 'next/navigation';
|
|
3
|
+
|
|
3
4
|
export interface TLink extends Omit<NextLinkProps, 'scroll' | 'as'> {
|
|
4
5
|
/**
|
|
5
6
|
* @default true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okam/next-component",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,11 +30,16 @@
|
|
|
30
30
|
"url": "https://github.com/OKAMca/stack.git"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@okam/stack-ui": "1.
|
|
34
|
-
"next": "^
|
|
35
|
-
"react": "18.3.1",
|
|
33
|
+
"@okam/stack-ui": "1.44.0",
|
|
34
|
+
"next": "^15.0.0",
|
|
36
35
|
"react-use": "17.5.1",
|
|
37
36
|
"tailwind-variants": "^0.3.0",
|
|
38
37
|
"react-aria": "^3.39.0"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"react": "^19.0.0"
|
|
39
44
|
}
|
|
40
45
|
}
|
package/theme/Link/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const linkTheme: import(
|
|
1
|
+
declare const linkTheme: import('tailwind-variants').TVReturnType<{
|
|
2
2
|
type: {
|
|
3
3
|
button: string;
|
|
4
4
|
menu: string;
|
|
@@ -20,7 +20,7 @@ declare const linkTheme: import("tailwind-variants").TVReturnType<{
|
|
|
20
20
|
rounded: string;
|
|
21
21
|
circular: string;
|
|
22
22
|
};
|
|
23
|
-
}, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import(
|
|
23
|
+
}, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
24
24
|
type: {
|
|
25
25
|
button: string;
|
|
26
26
|
menu: string;
|
|
@@ -86,7 +86,7 @@ declare const linkTheme: import("tailwind-variants").TVReturnType<{
|
|
|
86
86
|
rounded: string;
|
|
87
87
|
circular: string;
|
|
88
88
|
};
|
|
89
|
-
}, undefined, import(
|
|
89
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
90
90
|
type: {
|
|
91
91
|
button: string;
|
|
92
92
|
menu: string;
|
|
@@ -108,7 +108,7 @@ declare const linkTheme: import("tailwind-variants").TVReturnType<{
|
|
|
108
108
|
rounded: string;
|
|
109
109
|
circular: string;
|
|
110
110
|
};
|
|
111
|
-
}, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import(
|
|
111
|
+
}, undefined, "\n flex\n items-center\n justify-center\n gap-4\n transition\n duration-300\n ease-in-out\n disabled:pointer-events-none\n disabled:opacity-30\n focus-ring-black\n ", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
112
112
|
type: {
|
|
113
113
|
button: string;
|
|
114
114
|
menu: string;
|
package/theme/index.d.ts
CHANGED