@grasp-labs/ds-microfrontends-integration 0.11.1 → 0.12.1

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.
@@ -1,4 +1,4 @@
1
- import { c as o } from "./index-BFz1AoMH.js";
1
+ import { c as o } from "./index-DoeXhmPP.js";
2
2
  import { useState as J, useEffect as De, createContext as Zt, useRef as ce, useContext as Gt, useMemo as le, useCallback as Re } from "react";
3
3
  const $e = (e, t, n, r, a) => {
4
4
  if (!r) throw new Error(a ?? `Invalid property path: ${t}
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { A as e, B as l, E as t, F as i, J as r, N as u, S as o, T as d, a as n, h as F, V as m, e as c, f as V, b as p, g as T, s as h, v as S, k as b, l as g, t as v, m as f, n as x, o as y, p as D, q as E, w as P, r as A, u as I, i as N, j, d as B } from "./index-BFz1AoMH.js";
1
+ import { A as s, B as l, E as t, F as i, J as r, N as o, S as u, T as d, a as n, h as F, V as m, e as c, f as V, b as p, g as T, s as h, v as S, k as g, l as v, t as b, m as x, x as f, n as y, o as D, p as E, q as P, w as A, r as I, u as N, i as j, j as B, d as C } from "./index-DoeXhmPP.js";
2
2
  export {
3
- e as ArrayField,
3
+ s as ArrayField,
4
4
  l as BooleanField,
5
5
  t as EnumField,
6
6
  i as FieldError,
7
7
  r as JsonField,
8
- u as NumberField,
9
- o as SchemaFields,
8
+ o as NumberField,
9
+ u as SchemaFields,
10
10
  d as TextField,
11
11
  n as ToastProvider,
12
12
  F as TranslationProvider,
@@ -17,18 +17,19 @@ export {
17
17
  T as VaultSecretDialog,
18
18
  h as buildDefaultValues,
19
19
  S as createFieldDescriptor,
20
- b as extractConstraints,
21
- g as getArrayItemsSchema,
22
- v as getDefaultValue,
23
- f as getFieldType,
24
- x as isEnumField,
25
- y as isNullable,
26
- D as isObjectWithoutProperties,
27
- E as isReadOnly,
28
- P as parseSchemaFields,
29
- A as resolveSchema,
30
- I as useToast,
31
- N as useTranslation,
32
- j as useTranslationContext,
33
- B as useVault
20
+ g as extractConstraints,
21
+ v as getArrayItemsSchema,
22
+ b as getDefaultValue,
23
+ x as getFieldType,
24
+ f as getSchemaResolver,
25
+ y as isEnumField,
26
+ D as isNullable,
27
+ E as isObjectWithoutProperties,
28
+ P as isReadOnly,
29
+ A as parseSchemaFields,
30
+ I as resolveSchema,
31
+ N as useToast,
32
+ j as useTranslation,
33
+ B as useTranslationContext,
34
+ C as useVault
34
35
  };
@@ -3,3 +3,4 @@ export { resolveSchema } from './resolver';
3
3
  export { extractConstraints, getArrayItemsSchema, getFieldType, isEnumField, isNullable, isObjectWithoutProperties, isReadOnly, } from './inspector';
4
4
  export { buildDefaultValues, getDefaultValue } from './defaults';
5
5
  export { createFieldDescriptor, parseSchemaFields } from './descriptor';
6
+ export { getSchemaResolver } from './schemaResolver';
@@ -0,0 +1,3 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { z } from 'zod';
3
+ export declare const getSchemaResolver: (schema: z.core.JSONSchema.JSONSchema) => import('react-hook-form').Resolver<FieldValues, unknown, FieldValues> | undefined;
@@ -1,6 +1,6 @@
1
- import { JSONSchemaType } from 'ajv';
1
+ import { z } from 'zod';
2
2
  /**
3
3
  * JSON Schema type for validation.
4
4
  * Represents a schema for validating objects with unknown properties.
5
5
  */
6
- export type Schema = JSONSchemaType<Record<string, unknown>>;
6
+ export type Schema = z.core.JSONSchema.JSONSchema;
@@ -1,3 +1,3 @@
1
1
  export * from './Schema';
2
- export * from './translation';
3
- export * from './vault';
2
+ export * from './Translation';
3
+ export * from './Vault';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grasp-labs/ds-microfrontends-integration",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -46,13 +46,12 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@module-federation/vite": "^1.0.0",
49
- "ajv": "^8.0.0",
50
- "axios": "^1.7.9",
51
49
  "express": "^5.0.0",
52
- "react": "^19.1.0",
53
- "react-dom": "^19.1.0",
50
+ "react": "19.2.3",
51
+ "react-dom": "19.2.3",
54
52
  "react-hook-form": "^7.0.0",
55
- "react-router": "^7.8.2"
53
+ "react-router": "7.8.2",
54
+ "zod": "4.2.1"
56
55
  },
57
56
  "peerDependenciesMeta": {
58
57
  "express": {
@@ -62,6 +61,7 @@
62
61
  "devDependencies": {
63
62
  "@eslint/js": "^9.32.0",
64
63
  "@grasp-labs/ds-react-components": "^0.13.0",
64
+ "@hookform/resolvers": "^5.2.2",
65
65
  "@module-federation/vite": "^1.9.0",
66
66
  "@storybook/addon-a11y": "^9.1.0",
67
67
  "@storybook/addon-themes": "^9.1.0",
@@ -76,7 +76,6 @@
76
76
  "@types/react-dom": "^19.1.7",
77
77
  "@vitejs/plugin-react": "^4.6.0",
78
78
  "@vitest/coverage-v8": "^3.2.4",
79
- "ajv": "^8.17.1",
80
79
  "eslint": "^9.32.0",
81
80
  "eslint-config-prettier": "^10.1.8",
82
81
  "eslint-plugin-prettier": "^5.5.3",
@@ -84,12 +83,13 @@
84
83
  "eslint-plugin-storybook": "^9.1.0",
85
84
  "express": "^5.1.0",
86
85
  "globals": "^16.2.0",
86
+ "i18next": "^25.7.3",
87
87
  "jsdom": "^26.1.0",
88
88
  "json-edit-react": "^1.29.0",
89
89
  "prettier": "^3.6.2",
90
90
  "prettier-plugin-tailwindcss": "^0.6.14",
91
- "react": "^19.1.1",
92
- "react-dom": "^19.1.1",
91
+ "react": "19.2.3",
92
+ "react-dom": "19.2.3",
93
93
  "react-hook-form": "^7.66.0",
94
94
  "storybook": "^9.1.0",
95
95
  "tailwind-merge": "^3.3.1",
@@ -99,9 +99,7 @@
99
99
  "vite": "^7.0.6",
100
100
  "vite-plugin-dts": "^4.5.4",
101
101
  "vite-tsconfig-paths": "^5.1.4",
102
- "vitest": "^3.2.4"
103
- },
104
- "dependencies": {
105
- "i18next": "^23.16.8"
102
+ "vitest": "^3.2.4",
103
+ "zod": "4.2.1"
106
104
  }
107
105
  }
File without changes