@holo-js/adapter-next 0.3.15 → 0.3.16
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/dist/client.d.ts +4 -3
- package/dist/client.mjs +1 -1
- package/dist/config.mjs +6 -0
- package/package.json +11 -10
package/dist/client.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InferFormData } from '@holo-js/forms';
|
|
2
|
+
import { ValidationSchema } from '@holo-js/validation';
|
|
2
3
|
import { UseFormOptions, ClientSubmitContext, ClientSubmitResult, UseFormResult, InferFormFieldTree } from '@holo-js/forms/internal/client';
|
|
3
|
-
export { ClientSubmitContext, ClientSubmitResult, FormFieldState, FormFieldTree, UseFormOptions, UseFormResult, ValidateOnMode } from '@holo-js/forms/internal/client';
|
|
4
|
+
export { ClientCsrfOptions, ClientSubmitContext, ClientSubmitResult, FormFieldState, FormFieldTree, FormRequestCredentials, UseFormOptions, UseFormResult, ValidateOnMode } from '@holo-js/forms/internal/client';
|
|
4
5
|
|
|
5
6
|
declare function isNextRedirectError(error: unknown): boolean;
|
|
6
7
|
declare function createSubmitterBridge<TData, TSuccess>(optionsRef: {
|
|
7
8
|
current: UseFormOptions<TData, TSuccess> | undefined;
|
|
8
9
|
}, onHttpError: (error: Error) => void): (context: ClientSubmitContext<TData>) => Promise<ClientSubmitResult<TData, TSuccess> | void> | ClientSubmitResult<TData, TSuccess> | void;
|
|
9
|
-
declare function useForm<TSchema extends
|
|
10
|
+
declare function useForm<TSchema extends ValidationSchema, TSuccess = unknown>(schemaDefinition: TSchema, options?: UseFormOptions<InferFormData<TSchema>, TSuccess>): UseFormResult<InferFormData<TSchema>, TSuccess, InferFormFieldTree<TSchema>>;
|
|
10
11
|
declare const adapterNextClientInternals: {
|
|
11
12
|
isNextRedirectError: typeof isNextRedirectError;
|
|
12
13
|
createSubmitterBridge: typeof createSubmitterBridge;
|
package/dist/client.mjs
CHANGED
|
@@ -35,7 +35,7 @@ function areEqual(left, right) {
|
|
|
35
35
|
return false;
|
|
36
36
|
}
|
|
37
37
|
function areOptionsEqual(left, right) {
|
|
38
|
-
return left.action === right.action && left.method === right.method && left.validateOn === right.validateOn && Boolean(left.submitter) === Boolean(right.submitter) && areEqual(left.initialValues, right.initialValues) && areEqual(left.initialState, right.initialState);
|
|
38
|
+
return left.action === right.action && left.method === right.method && left.credentials === right.credentials && left.csrf?.endpoint === right.csrf?.endpoint && left.validateOn === right.validateOn && Boolean(left.submitter) === Boolean(right.submitter) && areEqual(left.initialValues, right.initialValues) && areEqual(left.initialState, right.initialState);
|
|
39
39
|
}
|
|
40
40
|
function isNextRedirectError(error) {
|
|
41
41
|
if (!error || typeof error !== "object" && typeof error !== "function" || !("digest" in error)) {
|
package/dist/config.mjs
CHANGED
|
@@ -45,6 +45,8 @@ var HOLO_TRANSPILED_PACKAGE_SET = new Set(HOLO_TRANSPILED_PACKAGES);
|
|
|
45
45
|
var NEXT_AUTH_INTERRUPTS_ENV = "__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS";
|
|
46
46
|
var CORE_RUNTIME_CHUNK_PATH = /packages[\\/]core[\\/]dist[\\/].+\.mjs$/;
|
|
47
47
|
var OPTIONAL_RUNTIME_IMPORT_ISSUE = /Module not found: Can't resolve (?:'@holo-js\/storage-s3'|<dynamic>)/;
|
|
48
|
+
var HOLO_RUNTIME_FILESYSTEM_PATH = /(?:packages|node_modules[\\/]@holo-js)[\\/](?:core|kernel|media)[\\/]dist[\\/].+\.mjs$/;
|
|
49
|
+
var DYNAMIC_FILESYSTEM_ACCESS_ISSUE = /Dynamic filesystem access causes tracing of the whole project/;
|
|
48
50
|
var PACKAGE_DEPENDENCY_FIELDS = [
|
|
49
51
|
"dependencies",
|
|
50
52
|
"devDependencies",
|
|
@@ -177,6 +179,10 @@ function withHolo(nextConfig = {}) {
|
|
|
177
179
|
{
|
|
178
180
|
path: /next\.config\.(ts|mjs|js)$/,
|
|
179
181
|
title: /Encountered unexpected file in NFT list/
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
path: HOLO_RUNTIME_FILESYSTEM_PATH,
|
|
185
|
+
title: DYNAMIC_FILESYSTEM_ACCESS_ISSUE
|
|
180
186
|
}
|
|
181
187
|
]
|
|
182
188
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holo-js/adapter-next",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"description": "Holo-JS Framework - Next.js adapter",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,14 +43,15 @@
|
|
|
43
43
|
"test": "vitest --run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@holo-js/adapter-shared": "^0.3.
|
|
47
|
-
"@holo-js/config": "^0.3.
|
|
48
|
-
"@holo-js/core": "^0.3.
|
|
46
|
+
"@holo-js/adapter-shared": "^0.3.16",
|
|
47
|
+
"@holo-js/config": "^0.3.16",
|
|
48
|
+
"@holo-js/core": "^0.3.16",
|
|
49
|
+
"@holo-js/validation": "^0.3.16"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
|
-
"@holo-js/forms": "^0.3.
|
|
52
|
-
"@holo-js/realtime": "^0.3.
|
|
53
|
-
"next": "^16.
|
|
52
|
+
"@holo-js/forms": "^0.3.16",
|
|
53
|
+
"@holo-js/realtime": "^0.3.16",
|
|
54
|
+
"next": "^16.3.5",
|
|
54
55
|
"react": "^19.2.6"
|
|
55
56
|
},
|
|
56
57
|
"peerDependenciesMeta": {
|
|
@@ -62,14 +63,14 @@
|
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
|
-
"@holo-js/realtime": "^0.3.
|
|
66
|
+
"@holo-js/realtime": "^0.3.16",
|
|
66
67
|
"@types/node": "^22.10.2",
|
|
67
|
-
"next": "^16.
|
|
68
|
+
"next": "^16.3.5",
|
|
68
69
|
"tsup": "^8.3.5",
|
|
69
70
|
"typescript": "^5.7.2",
|
|
70
71
|
"vitest": "^4.1.5"
|
|
71
72
|
},
|
|
72
73
|
"engines": {
|
|
73
|
-
"node": "
|
|
74
|
+
"node": "^22.12.0 || ^24.0.0 || ^26.0.0"
|
|
74
75
|
}
|
|
75
76
|
}
|