@okam/directus-next-component 1.7.3 → 1.7.5

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 CHANGED
@@ -1,3 +1,33 @@
1
+ ## 1.7.5 (2025-07-01)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - update vite-plugin-dts to version 3 ([5d33c77](https://github.com/OKAMca/stack/commit/5d33c77))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated stack-ui to 1.38.1
10
+ - Updated next-component to 1.0.7
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - Pierre-Olivier Clerson @poclerson
15
+
16
+ ## 1.7.4 (2025-07-01)
17
+
18
+ ### 🩹 Fixes
19
+
20
+ - update vite-plugin-dts to version 3 ([5d33c77](https://github.com/OKAMca/stack/commit/5d33c77))
21
+
22
+ ### 🧱 Updated Dependencies
23
+
24
+ - Updated stack-ui to 1.38.0
25
+ - Updated next-component to 1.0.6
26
+
27
+ ### ❤️ Thank You
28
+
29
+ - Pierre-Olivier Clerson @poclerson
30
+
1
31
  ## 1.7.3 (2025-05-26)
2
32
 
3
33
  ### 🧱 Updated Dependencies
@@ -1,20 +1,20 @@
1
1
  import type { TFiles } from '@okam/directus-next';
2
2
  import type { Nullable } from '@okam/stack-ui';
3
3
  export default function useDirectusFile(file: Nullable<TFiles>, baseUrl?: URL, searchParams?: Record<string, Nullable<string>>): {
4
- tags?: any;
5
- location?: string | null | undefined;
6
- storage?: string | null | undefined;
7
- focal_point_divider?: string | null | undefined;
8
- focal_point_x?: number | null | undefined;
9
- focal_point_y?: number | null | undefined;
10
- filename_disk?: string | null | undefined;
11
- filename_download?: string | null | undefined;
12
- type?: string | null | undefined;
13
- duration?: number | null | undefined;
14
- embed?: string | null | undefined;
15
- caption?: string | null | undefined;
16
- thumbhash?: string | null | undefined;
17
- filenameDownload?: string | null | undefined;
4
+ tags?: any | null;
5
+ location?: string | null;
6
+ storage?: string | null;
7
+ focal_point_divider?: string | null;
8
+ focal_point_x?: number | null;
9
+ focal_point_y?: number | null;
10
+ filename_disk?: string | null;
11
+ filename_download?: string | null;
12
+ type?: string | null;
13
+ duration?: number | null;
14
+ embed?: string | null;
15
+ caption?: string | null;
16
+ thumbhash?: string | null;
17
+ filenameDownload?: string | null;
18
18
  src: string;
19
19
  alt: string;
20
20
  width: number | undefined;
@@ -0,0 +1,7 @@
1
+ import type { NextRequest } from 'next/server';
2
+ import { NextResponse } from 'next/server';
3
+ export declare function fetchPageSettings(pathName: string, lang?: string): Promise<string | null>;
4
+ export declare function directusRouteMiddleware(request: NextRequest, locales: string[]): Promise<NextResponse<unknown>>;
5
+ export declare const config: {
6
+ matcher: string[];
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okam/directus-next-component",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@okam/logger": "1.1.0",
36
- "@okam/next-component": "1.0.5",
37
- "@okam/stack-ui": "1.37.1",
36
+ "@okam/next-component": "1.0.7",
37
+ "@okam/stack-ui": "1.38.1",
38
38
  "@react-spring/web": "^9.7.5",
39
39
  "next": "^14.1.1",
40
40
  "radashi": "^12.3.0",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Nullable } from '@okam/stack-ui';
3
2
  import type { TDirectusLinkProps } from '../components/DirectusLink/interface';
4
3
  export type TNavigationItemsTree = {