@rolder/kit 3.0.0-alpha.89 → 3.0.0-alpha.90
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/app/defaultRequestMiddlewares.d.ts +1 -1
- package/dist/tanstackFunctions/cookie/setCookie.d.ts +1 -1
- package/dist/tanstackFunctions/s3/getSignedFileUrlFn.d.ts +1 -1
- package/dist/tanstackFunctions/surreal/connection.js +5 -1
- package/dist/tanstackFunctions/surreal/deafaultCrud.d.ts +2 -2
- package/dist/ui/form/context.d.ts +4 -4
- package/package.json +49 -41
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const defaultRequestMiddlewares: import("@tanstack/start
|
|
1
|
+
export declare const defaultRequestMiddlewares: import("@tanstack/react-start").RequestMiddlewareAfterServer<{}, undefined, {
|
|
2
2
|
locale: string;
|
|
3
3
|
timeZone: string;
|
|
4
4
|
}>[];
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* @param {string} value - Значение куки, если не указано, кука будет удалена
|
|
8
8
|
* @param {number} [expires=7] - Количество дней до истечения срока действия куки (по умолчанию 7 дней)
|
|
9
9
|
*/
|
|
10
|
-
export declare const setCookie: import("@tanstack/start
|
|
10
|
+
export declare const setCookie: import("@tanstack/react-start").IsomorphicFn<[name: string, value?: string | undefined, expires?: number | undefined], void, void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import z from 'zod/v4';
|
|
2
|
-
export declare const getSignedFileUrlFn: import("@tanstack/start
|
|
2
|
+
export declare const getSignedFileUrlFn: import("@tanstack/react-start").RequiredFetcher<undefined, z.ZodObject<{
|
|
3
3
|
s3Key: z.ZodString;
|
|
4
4
|
}, z.core.$strip>, Promise<string>>;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { createServerOnlyFn } from "@tanstack/react-start";
|
|
2
2
|
import { getCookie } from "@tanstack/react-start/server";
|
|
3
|
-
import { DateTime, Surreal } from "surrealdb";
|
|
3
|
+
import { DateTime, Surreal, applyDiagnostics, createRemoteEngines } from "surrealdb";
|
|
4
4
|
let db = null;
|
|
5
5
|
const getDB = createServerOnlyFn(async (params = {})=>{
|
|
6
|
+
console.log('DB');
|
|
6
7
|
if (db?.isConnected) return db;
|
|
7
8
|
const locale = getCookie('locale') || 'ru-RU';
|
|
8
9
|
const timeZone = getCookie('tz') || 'UTC';
|
|
9
10
|
const instance = new Surreal({
|
|
11
|
+
engines: applyDiagnostics(createRemoteEngines(), (event)=>{
|
|
12
|
+
console.log(event);
|
|
13
|
+
}),
|
|
10
14
|
codecOptions: params.codecOptions || {
|
|
11
15
|
valueDecodeVisitor (value) {
|
|
12
16
|
if (value instanceof DateTime) return new Date(value.toDate()).toLocaleDateString(locale, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const surrealDeleteFn: import("@tanstack/start
|
|
2
|
-
export declare const surrealUnsubscribeFn: import("@tanstack/start
|
|
1
|
+
export declare const surrealDeleteFn: import("@tanstack/react-start").RequiredFetcher<undefined, (data: string) => string, Promise<void>>;
|
|
2
|
+
export declare const surrealUnsubscribeFn: import("@tanstack/react-start").RequiredFetcher<undefined, (data: string) => string, Promise<void>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const useFieldContext: <TData>() => import("@tanstack/form
|
|
2
|
-
declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/form
|
|
1
|
+
declare const useFieldContext: <TData>() => import("@tanstack/react-form").FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, useFormContext: () => import("@tanstack/react-form").ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
|
|
2
|
+
declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import("@tanstack/react-form").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
3
3
|
readonly TextField: import("react").FC<import("@mantine/core").TextInputProps>;
|
|
4
4
|
readonly NumberField: import("react").FC<import("@mantine/core").NumberInputProps>;
|
|
5
5
|
readonly TextareaField: import("react").FC<import("@mantine/core").TextareaProps>;
|
|
@@ -25,7 +25,7 @@ declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/form-co
|
|
|
25
25
|
readonly SubscribeActionIcon: import("react").FC<import("@mantine/core").ActionIconProps & {
|
|
26
26
|
onClick?: () => void;
|
|
27
27
|
}>;
|
|
28
|
-
}>, withForm: <TFormData, TOnMount extends import("@tanstack/form
|
|
28
|
+
}>, withForm: <TFormData, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
29
29
|
readonly TextField: import("react").FC<import("@mantine/core").TextInputProps>;
|
|
30
30
|
readonly NumberField: import("react").FC<import("@mantine/core").NumberInputProps>;
|
|
31
31
|
readonly TextareaField: import("react").FC<import("@mantine/core").TextareaProps>;
|
|
@@ -52,7 +52,7 @@ declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/form-co
|
|
|
52
52
|
onClick?: () => void;
|
|
53
53
|
}>;
|
|
54
54
|
}, TRenderProps>) => import("react").FunctionComponent<import("react").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
55
|
-
form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/form
|
|
55
|
+
form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
|
|
56
56
|
readonly TextField: import("react").FC<import("@mantine/core").TextInputProps>;
|
|
57
57
|
readonly NumberField: import("react").FC<import("@mantine/core").NumberInputProps>;
|
|
58
58
|
readonly TextareaField: import("react").FC<import("@mantine/core").TextareaProps>;
|
package/package.json
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolder/kit",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.90",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./
|
|
8
|
-
"import": "./
|
|
7
|
+
"types": "./src/index.ts",
|
|
8
|
+
"import": "./src/index.ts"
|
|
9
9
|
},
|
|
10
|
-
"./styles.css": "./
|
|
10
|
+
"./styles.css": "./src/styles.css"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./styles.css": "./dist/styles.css"
|
|
22
|
+
}
|
|
11
23
|
},
|
|
12
24
|
"sideEffects": false,
|
|
13
25
|
"files": [
|
|
@@ -20,60 +32,56 @@
|
|
|
20
32
|
"check": "biome check --write && tsgo --noEmit"
|
|
21
33
|
},
|
|
22
34
|
"devDependencies": {
|
|
23
|
-
"@rsbuild/plugin-react": "^1.4.
|
|
24
|
-
"@rslib/core": "^0.19.
|
|
25
|
-
"@types/bun": "^1.3.6",
|
|
35
|
+
"@rsbuild/plugin-react": "^1.4.5",
|
|
36
|
+
"@rslib/core": "^0.19.5",
|
|
26
37
|
"@types/js-cookie": "^3.0.6",
|
|
27
|
-
"@types/omgopass": "^3.2.3"
|
|
28
|
-
"@types/react": "^19.2.9",
|
|
29
|
-
"@typescript/native-preview": "^7.0.0-dev.20260122.4",
|
|
30
|
-
"typescript": "6.0.0-dev.20260122"
|
|
38
|
+
"@types/omgopass": "^3.2.3"
|
|
31
39
|
},
|
|
32
40
|
"peerDependencies": {
|
|
33
|
-
"@ai-sdk/react": "^3.0.
|
|
34
|
-
"@better-upload/client": "^3.0.
|
|
35
|
-
"@better-upload/server": "^3.0.
|
|
41
|
+
"@ai-sdk/react": "^3.0.79",
|
|
42
|
+
"@better-upload/client": "^3.0.13",
|
|
43
|
+
"@better-upload/server": "^3.0.13",
|
|
36
44
|
"@codemirror/lang-json": "^6.0.2",
|
|
37
|
-
"@codemirror/lint": "^6.9.
|
|
38
|
-
"@mantine/core": "^8.3.
|
|
39
|
-
"@mantine/hooks": "^8.3.
|
|
40
|
-
"@mantine/notifications": "^8.3.
|
|
41
|
-
"@mantine/tiptap": "^8.3.
|
|
45
|
+
"@codemirror/lint": "^6.9.3",
|
|
46
|
+
"@mantine/core": "^8.3.14",
|
|
47
|
+
"@mantine/hooks": "^8.3.14",
|
|
48
|
+
"@mantine/notifications": "^8.3.14",
|
|
49
|
+
"@mantine/tiptap": "^8.3.14",
|
|
42
50
|
"@nanostores/react": "^1.0.0",
|
|
43
|
-
"@tanstack/react-form": "^1.
|
|
44
|
-
"@tanstack/react-query": "^5.90.
|
|
45
|
-
"@tanstack/react-router": "^1.
|
|
46
|
-
"@tanstack/react-router-ssr-query": "^1.
|
|
47
|
-
"@tanstack/react-start": "^1.
|
|
48
|
-
"@tiptap/extension-highlight": "^3.
|
|
49
|
-
"@tiptap/extension-placeholder": "^3.
|
|
50
|
-
"@tiptap/extension-table": "^3.
|
|
51
|
-
"@tiptap/extension-task-item": "^3.
|
|
52
|
-
"@tiptap/extension-task-list": "^3.
|
|
53
|
-
"@tiptap/extension-text-align": "^3.
|
|
54
|
-
"@tiptap/react": "^3.
|
|
55
|
-
"@tiptap/starter-kit": "^3.
|
|
51
|
+
"@tanstack/react-form": "^1.28.0",
|
|
52
|
+
"@tanstack/react-query": "^5.90.20",
|
|
53
|
+
"@tanstack/react-router": "^1.158.4",
|
|
54
|
+
"@tanstack/react-router-ssr-query": "^1.158.4",
|
|
55
|
+
"@tanstack/react-start": "^1.159.0",
|
|
56
|
+
"@tiptap/extension-highlight": "^3.19.0",
|
|
57
|
+
"@tiptap/extension-placeholder": "^3.19.0",
|
|
58
|
+
"@tiptap/extension-table": "^3.19.0",
|
|
59
|
+
"@tiptap/extension-task-item": "^3.19.0",
|
|
60
|
+
"@tiptap/extension-task-list": "^3.19.0",
|
|
61
|
+
"@tiptap/extension-text-align": "^3.19.0",
|
|
62
|
+
"@tiptap/react": "^3.19.0",
|
|
63
|
+
"@tiptap/starter-kit": "^3.19.0",
|
|
56
64
|
"@uiw/codemirror-theme-vscode": "^4.25.4",
|
|
57
65
|
"@uiw/react-codemirror": "^4.25.4",
|
|
58
|
-
"
|
|
66
|
+
"@codemirror/commands": "^6.10.2",
|
|
67
|
+
"@codemirror/view": "^6.39.12",
|
|
68
|
+
"ai": "^6.0.77",
|
|
59
69
|
"clsx": "^2.1.1",
|
|
60
70
|
"js-cookie": "^3.0.5",
|
|
61
71
|
"mammoth": "^1.11.0",
|
|
62
72
|
"nanoid": "^5.1.6",
|
|
63
73
|
"nanostores": "^1.1.0",
|
|
64
74
|
"omgopass": "^3.2.1",
|
|
65
|
-
"react": "^19.2.
|
|
66
|
-
"react-dom": "^19.2.
|
|
75
|
+
"react": "^19.2.4",
|
|
76
|
+
"react-dom": "^19.2.4",
|
|
67
77
|
"streamdown": "^2.1.0",
|
|
68
|
-
"surrealdb": "2.0.0-alpha.
|
|
78
|
+
"surrealdb": "^2.0.0-alpha.18",
|
|
69
79
|
"xlsx": "^0.18.5",
|
|
70
|
-
"zod": "^4.3.6"
|
|
80
|
+
"zod": "^4.3.6",
|
|
81
|
+
"@tabler/icons-react": "^3.36.1"
|
|
71
82
|
},
|
|
72
83
|
"trustedDependencies": [
|
|
73
84
|
"core-js",
|
|
74
85
|
"esbuild"
|
|
75
|
-
]
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@tabler/icons-react": "^3.36.1"
|
|
78
|
-
}
|
|
86
|
+
]
|
|
79
87
|
}
|