@grasp-labs/ds-microfrontends-integration 0.13.1 → 0.15.0

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-BkOG1KLE.js";
1
+ import { c as o } from "./index-p4MWsN-O.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,38 +1,38 @@
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";
1
+ import { A as s, B as l, E as r, F as t, G as u, J as i, L as o, N as d, R as F, S as g, T as n, b as m, V as c, h as p, i as V, e as h, j as v, s as S, v as b, k as P, l as T, t as f, m as x, g as y, x as D, n as E, o as G, p as L, q as R, w as A, r as I, u as N, a as j, d as B, f as J } from "./index-p4MWsN-O.js";
2
2
  export {
3
3
  s as ArrayField,
4
4
  l as BooleanField,
5
- t as EnumField,
6
- r as FieldError,
5
+ r as EnumField,
6
+ t as FieldError,
7
+ u as GroupsProvider,
7
8
  i as JsonField,
8
- u as LanguageProvider,
9
- o as NumberField,
10
- d as SchemaFields,
9
+ o as LanguageProvider,
10
+ d as NumberField,
11
+ F as RouteGuard,
12
+ g as SchemaFields,
11
13
  n as TextField,
12
- F as ToastProvider,
13
- g as TranslationProvider,
14
- m as VaultField,
15
- c as VaultInput,
14
+ m as ToastProvider,
15
+ c as VaultField,
16
+ p as VaultInput,
16
17
  V as VaultInputField,
17
- p as VaultProvider,
18
- T as VaultSecretDialog,
19
- h as buildDefaultValues,
20
- v as createFieldDescriptor,
21
- S as extractConstraints,
22
- b as getArrayItemsSchema,
23
- x as getDefaultValue,
24
- y as getFieldType,
25
- P as getLanguage,
26
- f as getSchemaResolver,
27
- D as isEnumField,
28
- E as isNullable,
18
+ h as VaultProvider,
19
+ v as VaultSecretDialog,
20
+ S as buildDefaultValues,
21
+ b as createFieldDescriptor,
22
+ P as extractConstraints,
23
+ T as getArrayItemsSchema,
24
+ f as getDefaultValue,
25
+ x as getFieldType,
26
+ y as getLanguage,
27
+ D as getSchemaResolver,
28
+ E as isEnumField,
29
+ G as isNullable,
29
30
  L as isObjectWithoutProperties,
30
- A as isReadOnly,
31
- I as parseSchemaFields,
32
- N as resolveSchema,
31
+ R as isReadOnly,
32
+ A as parseSchemaFields,
33
+ I as resolveSchema,
34
+ N as useGroups,
33
35
  j as useLanguage,
34
36
  B as useToast,
35
- C as useTranslation,
36
- J as useTranslationContext,
37
- O as useVault
37
+ J as useVault
38
38
  };
package/dist/mf-common.js CHANGED
@@ -10,7 +10,9 @@ const o = (e, r = {}) => {
10
10
  ".": "./src/App",
11
11
  "./navigationConfig": "./src/navigationConfig"
12
12
  },
13
- shared: { ...i },
13
+ shared: {
14
+ ...i
15
+ },
14
16
  ...r
15
17
  };
16
18
  }, i = {
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Represents a user group in the system.
3
+ */
4
+ export type Group = {
5
+ id: string;
6
+ name: string;
7
+ tenant_id: string;
8
+ description: string | null;
9
+ };
@@ -1,3 +1,4 @@
1
1
  export * from './Schema';
2
2
  export * from './Translation';
3
3
  export * from './Vault';
4
+ export * from './Groups';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grasp-labs/ds-microfrontends-integration",
3
- "version": "0.13.1",
3
+ "version": "0.15.0",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -76,6 +76,7 @@
76
76
  "@types/react-dom": "^19.1.7",
77
77
  "@vitejs/plugin-react": "^5.1.2",
78
78
  "@vitest/coverage-v8": "^4.0.16",
79
+ "babel-plugin-react-compiler": "^1.0.0",
79
80
  "eslint": "^9.32.0",
80
81
  "eslint-config-prettier": "^10.1.8",
81
82
  "eslint-plugin-prettier": "^5.5.3",
@@ -1,34 +0,0 @@
1
- import { InitOptions, Resource } from 'i18next';
2
- import { ReactNode } from 'react';
3
- import { TranslationFn } from '../../../types';
4
- type TranslationContextValue = {
5
- t: TranslationFn;
6
- language: string;
7
- addResources: (language: string, namespace: string, resources: Record<string, string>) => void;
8
- };
9
- export type TranslationProviderProps = {
10
- children: ReactNode;
11
- language?: string;
12
- fallbackLanguage?: string;
13
- namespace?: string;
14
- resources?: Resource;
15
- i18nOptions?: InitOptions;
16
- };
17
- /**
18
- * Translation provider with simple reactive updates.
19
- *
20
- * @deprecated Applications should handle their translations independently.
21
- * Use LanguageProvider for shared language state management across microfrontends,
22
- * and implement translation handling individually within each microfrontend.
23
- *
24
- * @example
25
- * ```tsx
26
- * <TranslationProvider language="en" resources={customResources}>
27
- * <App />
28
- * </TranslationProvider>
29
- * ```
30
- */
31
- export declare const TranslationProvider: ({ children, language, fallbackLanguage, namespace, resources, i18nOptions, }: TranslationProviderProps) => import("react/jsx-runtime").JSX.Element;
32
- export declare const useTranslation: () => TranslationFn;
33
- export declare const useTranslationContext: () => TranslationContextValue;
34
- export {};
@@ -1,2 +0,0 @@
1
- export { TranslationProvider, useTranslation, useTranslationContext, } from './TranslationProvider';
2
- export type { TranslationProviderProps } from './TranslationProvider';
@@ -1 +0,0 @@
1
- export * from './TranslationProvider';