@koine/next 1.0.35 → 1.0.38

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.
Files changed (2) hide show
  1. package/Forms/useForm.d.ts +3 -3
  2. package/package.json +25 -14
@@ -1,5 +1,5 @@
1
1
  import type { UseFormProps, FieldValues } from "react-hook-form";
2
- import type { ObjectSchema } from "yup";
2
+ import type { ObjectSchema } from "@kuus/yup";
3
3
  import { type TranslateLoose } from "../i18n";
4
4
  export declare function useForm<T extends FieldValues>(schema: ObjectSchema<any>, t: TranslateLoose, formProps?: UseFormProps, debug?: boolean): {
5
5
  watch: import("react-hook-form").UseFormWatch<T>;
@@ -14,11 +14,11 @@ export declare function useForm<T extends FieldValues>(schema: ObjectSchema<any>
14
14
  reset: import("react-hook-form").UseFormReset<T>;
15
15
  handleSubmit: import("react-hook-form").UseFormHandleSubmit<T>;
16
16
  unregister: import("react-hook-form").UseFormUnregister<T>;
17
- control: import("react-hook-form").Control<T, any>;
17
+ control: import("react-hook-form").Control<T, object>;
18
18
  register: import("react-hook-form").UseFormRegister<T>;
19
19
  setFocus: import("react-hook-form").UseFormSetFocus<T>;
20
20
  field: {
21
- control: import("react-hook-form").Control<T, any>;
21
+ control: import("react-hook-form").Control<T, object>;
22
22
  register: import("react-hook-form").UseFormRegister<T>;
23
23
  setValue: import("react-hook-form").UseFormSetValue<T>;
24
24
  t: TranslateLoose;
package/package.json CHANGED
@@ -1,36 +1,47 @@
1
1
  {
2
2
  "name": "@koine/next",
3
3
  "sideEffects": false,
4
+ "peerDependenciesMeta": {
5
+ "@mui/material": {
6
+ "optional": true
7
+ },
8
+ "@emotion/react": {
9
+ "optional": true
10
+ },
11
+ "@emotion/server": {
12
+ "optional": true
13
+ }
14
+ },
4
15
  "main": "./node/index.js",
5
16
  "typings": "./index.d.ts",
6
17
  "dependencies": {},
7
18
  "peerDependencies": {
8
19
  "react": "^16.8 || ^17 || ^18",
9
20
  "next": "^12.1.6",
10
- "@koine/utils": "1.0.35",
11
- "framer-motion": "^6.3.10",
12
- "next-auth": "^4.3.4",
13
- "@mui/material": "^5.8.2",
14
- "@emotion/react": "^11.9.0",
21
+ "@koine/utils": "1.0.38",
22
+ "framer-motion": "^6.3.16",
23
+ "next-auth": "^4.6.1",
24
+ "@mui/material": "^5.8.6",
25
+ "@emotion/react": "^11.9.3",
15
26
  "styled-components": "^5.3.5",
16
- "react-hook-form": "^7.31.3",
17
- "@koine/react": "1.0.35",
18
- "@mui/base": "^5.0.0-alpha.83",
27
+ "react-hook-form": "^7.33.0",
28
+ "@koine/react": "1.0.38",
29
+ "@mui/base": "^5.0.0-alpha.87",
19
30
  "react-icons": "^4.4.0",
20
31
  "date-fns": "^2.28.0",
21
32
  "react-swipeable": "^7.0.0",
22
- "@tiptap/react": "^2.0.0-beta.109",
23
- "@tiptap/starter-kit": "^2.0.0-beta.185",
24
- "yup": "^0.32.11",
25
- "type-fest": "^2.13.0",
33
+ "@tiptap/react": "^2.0.0-beta.114",
34
+ "@tiptap/starter-kit": "^2.0.0-beta.190",
35
+ "@kuus/yup": "^1.0.0-beta.4",
36
+ "type-fest": "^2.14.0",
26
37
  "react-popper": "^2.3.0",
27
38
  "tslib": "^2.4.0",
28
39
  "@emotion/server": "^11.4.0",
29
- "@hookform/resolvers": "^2.9.0",
40
+ "@hookform/resolvers": "^2.9.3",
30
41
  "next-translate": "^1.4.0",
31
42
  "next-seo": "^5.4.0"
32
43
  },
33
- "version": "1.0.35",
44
+ "version": "1.0.38",
34
45
  "module": "./index.js",
35
46
  "types": "./index.d.ts"
36
47
  }