@okam/directus-next-component 1.7.33 → 1.7.36
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 +67 -0
- package/components/DirectusFile/config.d.ts +3 -2
- package/components/DirectusFile/index.d.ts +2 -1
- package/components/DirectusFile/interface.d.ts +3 -2
- package/components/DirectusImg/index.d.ts +2 -1
- package/components/DirectusImg/interface.d.ts +2 -1
- package/components/DirectusLink/index.d.ts +2 -1
- package/components/DirectusLink/interface.d.ts +4 -3
- package/components/DirectusVideo/index.d.ts +2 -1
- package/components/DirectusVideo/interface.d.ts +3 -2
- package/hooks/directus-file.d.ts +3 -2
- package/hooks/directus-link.d.ts +3 -2
- package/hooks/directus-metadata.d.ts +4 -3
- package/hooks/directus-search-params.d.ts +3 -2
- package/hooks/navigation-items.d.ts +4 -3
- package/index.d.ts +2 -2
- package/lib/directus-next-rewrite.d.ts +2 -2
- package/lib/withDirectus.d.ts +2 -1
- package/logger.d.ts +1 -1
- package/package.json +12 -7
- package/types/links.d.ts +3 -2
- package/types/metadata.d.ts +7 -6
- package/types/navigation-items.d.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,70 @@
|
|
|
1
|
+
## 1.7.36 (2026-01-13)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- React 19 + Next.js 15 support ([#369](https://github.com/OKAMca/stack/pull/369))
|
|
6
|
+
- **directus-next-component:** directus link supports search params ([21a3e46](https://github.com/OKAMca/stack/commit/21a3e46))
|
|
7
|
+
|
|
8
|
+
### 🩹 Fixes
|
|
9
|
+
|
|
10
|
+
- **directus-next:** bump version ([e9441ad](https://github.com/OKAMca/stack/commit/e9441ad))
|
|
11
|
+
- **directus-next-component:** core-lib in externals deps ([9b04ca0](https://github.com/OKAMca/stack/commit/9b04ca0))
|
|
12
|
+
- update vite-plugin-dts to version 3 ([5d33c77](https://github.com/OKAMca/stack/commit/5d33c77))
|
|
13
|
+
|
|
14
|
+
### 🧱 Updated Dependencies
|
|
15
|
+
|
|
16
|
+
- Updated stack-ui to 1.43.0
|
|
17
|
+
- Updated next-component to 1.2.3
|
|
18
|
+
|
|
19
|
+
### ❤️ Thank You
|
|
20
|
+
|
|
21
|
+
- Marie-Maxime Tanguay @marie-maxime
|
|
22
|
+
- Pierre-Olivier Clerson @poclerson
|
|
23
|
+
- poclerson
|
|
24
|
+
|
|
25
|
+
## 1.7.35 (2025-11-27)
|
|
26
|
+
|
|
27
|
+
### 🚀 Features
|
|
28
|
+
|
|
29
|
+
- **directus-next-component:** directus link supports search params ([21a3e46](https://github.com/OKAMca/stack/commit/21a3e46))
|
|
30
|
+
|
|
31
|
+
### 🩹 Fixes
|
|
32
|
+
|
|
33
|
+
- **directus-next:** bump version ([e9441ad](https://github.com/OKAMca/stack/commit/e9441ad))
|
|
34
|
+
- **directus-next-component:** core-lib in externals deps ([9b04ca0](https://github.com/OKAMca/stack/commit/9b04ca0))
|
|
35
|
+
- update vite-plugin-dts to version 3 ([5d33c77](https://github.com/OKAMca/stack/commit/5d33c77))
|
|
36
|
+
|
|
37
|
+
### 🧱 Updated Dependencies
|
|
38
|
+
|
|
39
|
+
- Updated stack-ui to 1.42.4
|
|
40
|
+
- Updated next-component to 1.2.2
|
|
41
|
+
|
|
42
|
+
### ❤️ Thank You
|
|
43
|
+
|
|
44
|
+
- Pierre-Olivier Clerson @poclerson
|
|
45
|
+
- poclerson
|
|
46
|
+
|
|
47
|
+
## 1.7.34 (2025-11-22)
|
|
48
|
+
|
|
49
|
+
### 🚀 Features
|
|
50
|
+
|
|
51
|
+
- **directus-next-component:** directus link supports search params ([21a3e46](https://github.com/OKAMca/stack/commit/21a3e46))
|
|
52
|
+
|
|
53
|
+
### 🩹 Fixes
|
|
54
|
+
|
|
55
|
+
- **directus-next:** bump version ([e9441ad](https://github.com/OKAMca/stack/commit/e9441ad))
|
|
56
|
+
- **directus-next-component:** core-lib in externals deps ([9b04ca0](https://github.com/OKAMca/stack/commit/9b04ca0))
|
|
57
|
+
- update vite-plugin-dts to version 3 ([5d33c77](https://github.com/OKAMca/stack/commit/5d33c77))
|
|
58
|
+
|
|
59
|
+
### 🧱 Updated Dependencies
|
|
60
|
+
|
|
61
|
+
- Updated directus-next to 1.2.8
|
|
62
|
+
|
|
63
|
+
### ❤️ Thank You
|
|
64
|
+
|
|
65
|
+
- Pierre-Olivier Clerson @poclerson
|
|
66
|
+
- poclerson
|
|
67
|
+
|
|
1
68
|
## 1.7.33 (2025-11-06)
|
|
2
69
|
|
|
3
70
|
### 🚀 Features
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ComponentType } from '@react-spring/web';
|
|
2
|
+
import { TDirectusFileProps } from './interface';
|
|
3
|
+
|
|
3
4
|
declare const directusFileConfig: Record<string, ComponentType<TDirectusFileProps>>;
|
|
4
5
|
export default directusFileConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TFiles } from '../../../../directus-next/src/index.ts';
|
|
2
|
+
import { TDefaultComponent } from '../../../../../stack/stack-ui/src/index.ts';
|
|
3
|
+
|
|
3
4
|
export interface TDirectusFileProps extends TFiles, TDefaultComponent {
|
|
4
5
|
/**
|
|
5
6
|
* Serves to fall back to different parts of the URLs. Some properties have default values:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { TDefaultComponent, TAnchorProps } from '../../../../../stack/stack-ui/src/index.ts';
|
|
2
|
+
import { AriaAttributes, ComponentType } from 'react';
|
|
3
|
+
import { TLinks } from '../../types/links';
|
|
4
|
+
|
|
4
5
|
export type TDirectusLink = Omit<TDefaultComponent, 'children'> & Omit<Partial<TLinks>, 'tokens'> & AriaAttributes;
|
|
5
6
|
export interface TUseDirectusLink extends TDirectusLink {
|
|
6
7
|
propsConfig?: TDirectusLinkPropsConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { VideoHTMLAttributes } from 'react';
|
|
2
|
+
import { TDirectusFileProps } from '../DirectusFile/interface';
|
|
3
|
+
|
|
3
4
|
type TDirectusVideoAttributes = Omit<VideoHTMLAttributes<HTMLVideoElement>, 'height' | 'id' | 'title' | 'width'>;
|
|
4
5
|
export type TDirectusVideoProps = TDirectusVideoAttributes & TDirectusFileProps;
|
|
5
6
|
export {};
|
package/hooks/directus-file.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TFiles } from '../../../directus-next/src/index.ts';
|
|
2
|
+
import { Nullable } from '../../../../stack/stack-ui/src/index.ts';
|
|
3
|
+
|
|
3
4
|
export default function useDirectusFile(file: Nullable<TFiles>, baseUrl?: URL, searchParams?: Record<string, Nullable<string>>): {
|
|
4
5
|
tags?: any | null;
|
|
5
6
|
location?: string | null;
|
package/hooks/directus-link.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TAnchorProps } from '../../../../stack/stack-ui/src/index.ts';
|
|
2
|
+
import { TUseDirectusLink } from '../components/DirectusLink/interface';
|
|
3
|
+
|
|
3
4
|
export default function useDirectusLink(props: TUseDirectusLink): TAnchorProps;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { TPageSettings, TPageSettingsTranslation } from '../../../directus-next/src/index.ts';
|
|
2
|
+
import { Metadata } from 'next';
|
|
3
|
+
import { TMetadataOptions } from '../types/metadata';
|
|
4
|
+
|
|
4
5
|
export default function useMetadata<TPageProps extends {
|
|
5
6
|
pageSettings: TPageSettings;
|
|
6
7
|
}>(pageProps: TPageProps, options: TMetadataOptions, defaultProps?: Partial<TPageSettingsTranslation>): Metadata;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Nullable } from '../../../../stack/stack-ui/src/index.ts';
|
|
2
|
+
import { SearchParams } from '../types/links';
|
|
3
|
+
|
|
3
4
|
export default function getDirectusSearchParams(params: Nullable<Nullable<SearchParams>[]>): URLSearchParams;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Nullable } from '../../../../stack/stack-ui/src/index.ts';
|
|
2
|
+
import { TDirectusLinkProps } from '../components/DirectusLink/interface';
|
|
3
|
+
import { TNavigationItems, TNavigationItemsTree } from '../types/navigation-items';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @param navigationItems A tree of navigation items, with parents and children
|
package/index.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ export type {
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated Import from `@okam/directus-next` instead
|
|
14
14
|
*/
|
|
15
|
-
TFiles, } from '
|
|
15
|
+
TFiles, } from '../../directus-next/src/index.ts';
|
|
16
16
|
export type {
|
|
17
17
|
/**
|
|
18
18
|
* @deprecated Import from `@okam/directus-next` instead
|
|
19
|
-
*/ TPageSettings, } from '
|
|
19
|
+
*/ TPageSettings, } from '../../directus-next/src/index.ts';
|
|
20
20
|
export type { TNavigationItems, TNavigationItemsTree } from './types/navigation-items';
|
|
21
21
|
export type { TLinks, SearchParams } from './types/links';
|
|
22
22
|
export type { TDirectusLinkProps, TUseDirectusLink, TDirectusLink, TDirectusLinkPropsConfig, TDirectusLinkComponentsConfig, } from './components/DirectusLink/interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
+
|
|
3
3
|
export declare function fetchPageSettings(pathName: string, lang?: string): Promise<string | null>;
|
|
4
4
|
export declare function directusRouteMiddleware(request: NextRequest, locales: string[]): Promise<NextResponse<unknown>>;
|
|
5
5
|
export declare const config: {
|
package/lib/withDirectus.d.ts
CHANGED
package/logger.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const logger: import(
|
|
1
|
+
export declare const logger: import('../../../stack/logger/src/index.ts').Logger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okam/directus-next-component",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.36",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -33,13 +33,18 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@okam/logger": "1.1.0",
|
|
36
|
-
"@okam/next-component": "1.2.
|
|
37
|
-
"@okam/stack-ui": "1.
|
|
38
|
-
"@react-spring/web": "^
|
|
39
|
-
"next": "^
|
|
36
|
+
"@okam/next-component": "1.2.3",
|
|
37
|
+
"@okam/stack-ui": "1.43.0",
|
|
38
|
+
"@react-spring/web": "^10.0.3",
|
|
39
|
+
"next": "^15.0.0",
|
|
40
40
|
"radashi": "^12.3.0",
|
|
41
|
-
"react": "18.3.1",
|
|
42
41
|
"unlazy": "^0.12.1",
|
|
43
|
-
"@okam/directus-next": "1.2.
|
|
42
|
+
"@okam/directus-next": "1.2.10"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"react": "^19.0.0"
|
|
44
49
|
}
|
|
45
50
|
}
|
package/types/links.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TPageSettings, TFiles } from '../../../directus-next/src/index.ts';
|
|
2
|
+
import { Nullable } from '../../../../stack/stack-ui/src/index.ts';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Represent the directus `links` collection, not the props of the DirectusLink component
|
|
5
6
|
*/
|
package/types/metadata.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { TPageSettings } from '../../../directus-next/src/index.ts';
|
|
2
|
+
import { Nullable } from '../../../../stack/stack-ui/src/index.ts';
|
|
3
|
+
import { AlternateURLs } from 'next/dist/lib/metadata/types/alternative-urls-types';
|
|
4
|
+
import { OpenGraphType } from 'next/dist/lib/metadata/types/opengraph-types';
|
|
5
|
+
import { StaticImageData } from 'next/image';
|
|
6
|
+
import { TDirectusFileProps } from '../components/DirectusFile/interface';
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
9
|
* Configuration options for metadata generation
|
|
9
10
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Nullable } from '../../../../stack/stack-ui/src/index.ts';
|
|
2
|
+
import { TDirectusLinkProps } from '../components/DirectusLink/interface';
|
|
3
|
+
|
|
3
4
|
export type TNavigationItemsTree = {
|
|
4
5
|
/**
|
|
5
6
|
* Pre-rendered DirectusLink component for quick usage
|