@grasp-labs/ds-microfrontends-integration 0.13.1 → 0.14.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.
- package/dist/components/index.d.ts +0 -1
- package/dist/components/language/translations/en.json.d.ts +20 -0
- package/dist/components/language/translations/index.d.ts +3 -0
- package/dist/components/language/translations/no.json.d.ts +20 -0
- package/dist/components/language/useTranslation.d.ts +10 -0
- package/dist/{index-BkOG1KLE.js → index-DFqk0a9d.js} +3569 -4919
- package/dist/{index.esm-BKoMny5G-BEDmcL0M.js → index.esm-BKoMny5G-DYIv1MUa.js} +1 -1
- package/dist/index.js +27 -30
- package/package.json +1 -1
- package/dist/components/translation/TranslationProvider/TranslationProvider.d.ts +0 -34
- package/dist/components/translation/TranslationProvider/index.d.ts +0 -2
- package/dist/components/translation/index.d.ts +0 -1
- package/dist/translations/en/common.json.d.ts +0 -24
- package/dist/translations/no/common.json.d.ts +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as o } from "./index-
|
|
1
|
+
import { c as o } from "./index-DFqk0a9d.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,35 @@
|
|
|
1
|
-
import { A as s, B as l, E as t, F as
|
|
1
|
+
import { A as s, B as l, E as t, F as i, J as r, L as u, N as d, S as o, T as F, a as g, V as n, e as m, f as c, b as V, g as p, q as h, t as S, j as v, k as b, s as T, l as f, h as y, w as D, m as E, n as L, o as P, p as x, v as A, r as I, i as N, u as j, d as B } from "./index-DFqk0a9d.js";
|
|
2
2
|
export {
|
|
3
3
|
s as ArrayField,
|
|
4
4
|
l as BooleanField,
|
|
5
5
|
t as EnumField,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
i as FieldError,
|
|
7
|
+
r as JsonField,
|
|
8
8
|
u as LanguageProvider,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
m as
|
|
15
|
-
c as
|
|
16
|
-
V as
|
|
17
|
-
p as
|
|
18
|
-
T as VaultSecretDialog,
|
|
9
|
+
d as NumberField,
|
|
10
|
+
o as SchemaFields,
|
|
11
|
+
F as TextField,
|
|
12
|
+
g as ToastProvider,
|
|
13
|
+
n as VaultField,
|
|
14
|
+
m as VaultInput,
|
|
15
|
+
c as VaultInputField,
|
|
16
|
+
V as VaultProvider,
|
|
17
|
+
p as VaultSecretDialog,
|
|
19
18
|
h as buildDefaultValues,
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
S as createFieldDescriptor,
|
|
20
|
+
v as extractConstraints,
|
|
22
21
|
b as getArrayItemsSchema,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
J as useTranslationContext,
|
|
37
|
-
O as useVault
|
|
22
|
+
T as getDefaultValue,
|
|
23
|
+
f as getFieldType,
|
|
24
|
+
y as getLanguage,
|
|
25
|
+
D as getSchemaResolver,
|
|
26
|
+
E as isEnumField,
|
|
27
|
+
L as isNullable,
|
|
28
|
+
P as isObjectWithoutProperties,
|
|
29
|
+
x as isReadOnly,
|
|
30
|
+
A as parseSchemaFields,
|
|
31
|
+
I as resolveSchema,
|
|
32
|
+
N as useLanguage,
|
|
33
|
+
j as useToast,
|
|
34
|
+
B as useVault
|
|
38
35
|
};
|
package/package.json
CHANGED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
export * from './TranslationProvider';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"vaultSecretDialog": {
|
|
3
|
-
"addTitle": "Add New Secret",
|
|
4
|
-
"editTitle": "Edit Secret",
|
|
5
|
-
"cancel": "Cancel",
|
|
6
|
-
"delete": "Delete Secret",
|
|
7
|
-
"deleting": "Deleting...",
|
|
8
|
-
"create": "Create Secret",
|
|
9
|
-
"save": "Save Changes",
|
|
10
|
-
"creating": "Creating...",
|
|
11
|
-
"saving": "Saving...",
|
|
12
|
-
"createError": "Failed to generate secret. Please try again.",
|
|
13
|
-
"updateError": "Failed to update secret. Please try again.",
|
|
14
|
-
"deleteError": "Failed to delete secret. Please try again."
|
|
15
|
-
},
|
|
16
|
-
"vaultInput": {
|
|
17
|
-
"placeholder": "Select a secret",
|
|
18
|
-
"addAriaLabel": "Add new secret",
|
|
19
|
-
"toggleAriaLabel": "Toggle options menu"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
;
|
|
23
|
-
|
|
24
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"vaultSecretDialog": {
|
|
3
|
-
"addTitle": "Legg til ny hemmelighet",
|
|
4
|
-
"editTitle": "Rediger hemmelighet",
|
|
5
|
-
"cancel": "Avbryt",
|
|
6
|
-
"delete": "Slett hemmelighet",
|
|
7
|
-
"deleting": "Sletter...",
|
|
8
|
-
"create": "Opprett hemmelighet",
|
|
9
|
-
"save": "Lagre endringer",
|
|
10
|
-
"creating": "Oppretter...",
|
|
11
|
-
"saving": "Lagrer...",
|
|
12
|
-
"createError": "Kunne ikke opprette hemmelighet. Prøv igjen.",
|
|
13
|
-
"updateError": "Kunne ikke oppdatere hemmeligheten. Prøv igjen.",
|
|
14
|
-
"deleteError": "Kunne ikke slette hemmeligheten. Prøv igjen."
|
|
15
|
-
},
|
|
16
|
-
"vaultInput": {
|
|
17
|
-
"placeholder": "Velg en hemmelighet",
|
|
18
|
-
"addAriaLabel": "Legg til ny hemmelighet",
|
|
19
|
-
"toggleAriaLabel": "Vis eller skjul alternativer"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
;
|
|
23
|
-
|
|
24
|
-
export default _default;
|