@grasp-labs/ds-microfrontends-integration 0.12.1 → 0.13.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-DoeXhmPP.js";
1
+ import { c as o } from "./index-BkOG1KLE.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,35 +1,38 @@
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";
1
+ import { A as s, B as l, E as t, F as r, J as i, L as u, N as o, S as d, T as n, a as F, h as g, V as m, e as c, f as V, b as p, g as T, v as h, x as v, m as S, n as b, w as x, o as y, k as P, z as f, p as D, q as E, s as L, t as A, y as I, r as N, l as j, u as B, i as C, j as J, d as O } from "./index-BkOG1KLE.js";
2
2
  export {
3
3
  s as ArrayField,
4
4
  l as BooleanField,
5
5
  t as EnumField,
6
- i as FieldError,
7
- r as JsonField,
6
+ r as FieldError,
7
+ i as JsonField,
8
+ u as LanguageProvider,
8
9
  o as NumberField,
9
- u as SchemaFields,
10
- d as TextField,
11
- n as ToastProvider,
12
- F as TranslationProvider,
10
+ d as SchemaFields,
11
+ n as TextField,
12
+ F as ToastProvider,
13
+ g as TranslationProvider,
13
14
  m as VaultField,
14
15
  c as VaultInput,
15
16
  V as VaultInputField,
16
17
  p as VaultProvider,
17
18
  T as VaultSecretDialog,
18
19
  h as buildDefaultValues,
19
- S as createFieldDescriptor,
20
- g as extractConstraints,
21
- v as getArrayItemsSchema,
22
- b as getDefaultValue,
23
- x as getFieldType,
20
+ v as createFieldDescriptor,
21
+ S as extractConstraints,
22
+ b as getArrayItemsSchema,
23
+ x as getDefaultValue,
24
+ y as getFieldType,
25
+ P as getLanguage,
24
26
  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
27
+ D as isEnumField,
28
+ E as isNullable,
29
+ L as isObjectWithoutProperties,
30
+ A as isReadOnly,
31
+ I as parseSchemaFields,
32
+ N as resolveSchema,
33
+ j as useLanguage,
34
+ B as useToast,
35
+ C as useTranslation,
36
+ J as useTranslationContext,
37
+ O as useVault
35
38
  };
@@ -1,5 +1,8 @@
1
1
  import { IconName } from '@grasp-labs/ds-react-components';
2
2
  import { ModuleFederationOptions } from '@module-federation/vite/lib/utils/normalizeModuleFederationOptions';
3
+ /**
4
+ * @deprecated Use @grasp-labs/ds-web-microfrontends-common-lib instead
5
+ */
3
6
  export type RouteConfig = {
4
7
  label: string;
5
8
  path: string;
@@ -8,16 +11,29 @@ export type RouteConfig = {
8
11
  };
9
12
  /**
10
13
  * INDEX is a mandatory route representing the root of the microfrontend, used as the parent navigation item in the sidebar
14
+ * @deprecated Use @grasp-labs/ds-web-microfrontends-common-lib instead
11
15
  */
12
16
  export type IndexNavigationConfig = {
13
17
  INDEX: RouteConfig;
14
18
  };
19
+ /**
20
+ * @deprecated Use @grasp-labs/ds-web-microfrontends-common-lib instead
21
+ */
15
22
  export type NavigationConfig<TKeys extends string = string> = IndexNavigationConfig & Record<TKeys, RouteConfig>;
23
+ /**
24
+ * @deprecated Use @grasp-labs/ds-web-microfrontends-common-lib instead
25
+ */
16
26
  export type MicrofrontendExposes = {
17
27
  ".": string;
18
28
  "./navigationConfig": string;
19
29
  } & Record<string, string>;
30
+ /**
31
+ * @deprecated Use @grasp-labs/ds-web-microfrontends-common-lib instead
32
+ */
20
33
  export declare const createModuleFederationConfig: (name: string, overrides?: Partial<ModuleFederationOptions>) => ModuleFederationOptions;
34
+ /**
35
+ * @deprecated Use @grasp-labs/ds-web-microfrontends-common-lib instead
36
+ */
21
37
  export declare const COMMON_SHARED_DEPS: {
22
38
  react: {
23
39
  singleton: boolean;
@@ -40,5 +56,17 @@ export declare const COMMON_SHARED_DEPS: {
40
56
  requiredVersion: string;
41
57
  };
42
58
  };
59
+ /**
60
+ * @deprecated Use @grasp-labs/ds-web-microfrontends-common-lib instead
61
+ */
43
62
  export declare const createMicrofrontendsBase: (name: string) => string;
63
+ /**
64
+ * @deprecated This file is deprecated and will be removed in a future release.
65
+ * Please use @grasp-labs/ds-web-microfrontends-common-lib package instead.
66
+ * All exports from this file are now available in the external package.
67
+ *
68
+ * Migration guide:
69
+ * - Replace imports from './mf-common' with '@grasp-labs/ds-web-microfrontends-common-lib'
70
+ * - Install the package: npm install @grasp-labs/ds-web-microfrontends-common-lib
71
+ */
44
72
  export declare const dsFederation: (name: string, overrides?: Partial<ModuleFederationOptions>) => import('vite').Plugin<any>[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grasp-labs/ds-microfrontends-integration",
3
- "version": "0.12.1",
3
+ "version": "0.13.1",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -60,46 +60,46 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@eslint/js": "^9.32.0",
63
- "@grasp-labs/ds-react-components": "^0.13.0",
63
+ "@grasp-labs/ds-react-components": "^0.15.1",
64
64
  "@hookform/resolvers": "^5.2.2",
65
65
  "@module-federation/vite": "^1.9.0",
66
- "@storybook/addon-a11y": "^9.1.0",
67
- "@storybook/addon-themes": "^9.1.0",
68
- "@storybook/react-vite": "^9.1.0",
66
+ "@storybook/addon-a11y": "^10.1.11",
67
+ "@storybook/addon-themes": "^10.1.11",
68
+ "@storybook/react-vite": "^10.1.11",
69
69
  "@tailwindcss/vite": "^4.1.11",
70
70
  "@testing-library/jest-dom": "^6.6.3",
71
71
  "@testing-library/react": "^16.3.0",
72
72
  "@testing-library/user-event": "^14.6.1",
73
73
  "@types/express": "^5.0.5",
74
- "@types/node": "^22.16.5",
74
+ "@types/node": "^24.0.5",
75
75
  "@types/react": "^19.1.10",
76
76
  "@types/react-dom": "^19.1.7",
77
- "@vitejs/plugin-react": "^4.6.0",
78
- "@vitest/coverage-v8": "^3.2.4",
77
+ "@vitejs/plugin-react": "^5.1.2",
78
+ "@vitest/coverage-v8": "^4.0.16",
79
79
  "eslint": "^9.32.0",
80
80
  "eslint-config-prettier": "^10.1.8",
81
81
  "eslint-plugin-prettier": "^5.5.3",
82
- "eslint-plugin-react-hooks": "^5.2.0",
83
- "eslint-plugin-storybook": "^9.1.0",
82
+ "eslint-plugin-react-hooks": "^7.0.1",
83
+ "eslint-plugin-storybook": "^10.1.11",
84
84
  "express": "^5.1.0",
85
- "globals": "^16.2.0",
85
+ "globals": "^17.0.0",
86
86
  "i18next": "^25.7.3",
87
- "jsdom": "^26.1.0",
87
+ "jsdom": "^27.4.0",
88
88
  "json-edit-react": "^1.29.0",
89
89
  "prettier": "^3.6.2",
90
- "prettier-plugin-tailwindcss": "^0.6.14",
90
+ "prettier-plugin-tailwindcss": "^0.7.2",
91
91
  "react": "19.2.3",
92
92
  "react-dom": "19.2.3",
93
93
  "react-hook-form": "^7.66.0",
94
- "storybook": "^9.1.0",
94
+ "storybook": "^10.1.11",
95
95
  "tailwind-merge": "^3.3.1",
96
96
  "tailwindcss": "^4.1.11",
97
- "typescript": "~5.8.3",
97
+ "typescript": "^5.9.3",
98
98
  "typescript-eslint": "^8.35.0",
99
99
  "vite": "^7.0.6",
100
100
  "vite-plugin-dts": "^4.5.4",
101
- "vite-tsconfig-paths": "^5.1.4",
102
- "vitest": "^3.2.4",
101
+ "vite-tsconfig-paths": "^6.0.3",
102
+ "vitest": "^4.0.16",
103
103
  "zod": "4.2.1"
104
104
  }
105
105
  }