@grasp-labs/ds-microfrontends-integration 1.0.1 → 1.0.3
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/language/translations/en.json.d.ts +0 -1
- package/dist/components/language/translations/no.json.d.ts +0 -1
- package/dist/components/schemaFields/DictionaryField/DictionaryEntry.d.ts +2 -4
- package/dist/components/schemaFields/shared/EntryValueRenderer.d.ts +2 -2
- package/dist/{index-sBjdxtRl.js → index-DOUsw_d8.js} +2268 -2270
- package/dist/{index.esm-fQDYRCEr-MbZzZEDT.js → index.esm-fQDYRCEr-DMrT-B4r.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,6 @@ declare const _default: {
|
|
|
14
14
|
"vaultInput.placeholder": "Select a secret",
|
|
15
15
|
"vaultInput.addAriaLabel": "Add new secret",
|
|
16
16
|
"vaultInput.toggleAriaLabel": "Toggle options menu",
|
|
17
|
-
"schemaFields.remove": "Remove",
|
|
18
17
|
"schemaFields.addItem": "+ Add Item",
|
|
19
18
|
"schemaFields.addEntry": "+ Add Entry",
|
|
20
19
|
"schemaFields.keyPlaceholder": "Key",
|
|
@@ -14,7 +14,6 @@ declare const _default: {
|
|
|
14
14
|
"vaultInput.placeholder": "Velg en hemmelighet",
|
|
15
15
|
"vaultInput.addAriaLabel": "Legg til ny hemmelighet",
|
|
16
16
|
"vaultInput.toggleAriaLabel": "Vis eller skjul alternativer",
|
|
17
|
-
"schemaFields.remove": "Fjern",
|
|
18
17
|
"schemaFields.addItem": "+ Legg til element",
|
|
19
18
|
"schemaFields.addEntry": "+ Legg til oppføring",
|
|
20
19
|
"schemaFields.keyPlaceholder": "Nøkkel",
|
|
@@ -6,15 +6,13 @@ type DictionaryEntryProps<T extends FieldValues = FieldValues> = {
|
|
|
6
6
|
valueSchema: Schema | null;
|
|
7
7
|
isDisabled: boolean;
|
|
8
8
|
keyPlaceholder: string;
|
|
9
|
-
removeLabel: string;
|
|
10
9
|
control: Control<T>;
|
|
11
10
|
onKeyChange: (newKey: string) => void;
|
|
12
11
|
onRemove: () => void;
|
|
13
12
|
};
|
|
14
13
|
/**
|
|
15
14
|
* Single key-value row in a dictionary field with editable key and typed value.
|
|
16
|
-
* Key renames are committed on blur.
|
|
17
|
-
* which adapts to the value schema type (scalar input or nested object fields).
|
|
15
|
+
* Key renames are committed on blur.
|
|
18
16
|
*/
|
|
19
|
-
export declare function DictionaryEntry<T extends FieldValues = FieldValues>({ fieldName, entryKey, valueSchema, isDisabled, keyPlaceholder,
|
|
17
|
+
export declare function DictionaryEntry<T extends FieldValues = FieldValues>({ fieldName, entryKey, valueSchema, isDisabled, keyPlaceholder, control, onKeyChange, onRemove, }: DictionaryEntryProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
20
18
|
export {};
|
|
@@ -5,12 +5,12 @@ type EntryValueRendererProps<T extends FieldValues = FieldValues> = {
|
|
|
5
5
|
entryKey: string;
|
|
6
6
|
valueSchema: Schema | null;
|
|
7
7
|
control: Control<T>;
|
|
8
|
+
isDisabled?: boolean;
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
10
11
|
* Renders the value part of a dictionary entry.
|
|
11
12
|
* Object schemas are rendered as nested SchemaFields, scalar schemas
|
|
12
|
-
* get a single field input via DefaultFieldRenderer.
|
|
13
|
-
* DictionaryEntry (used by DictionaryField for both regular and pattern dictionaries).
|
|
13
|
+
* get a single field input via DefaultFieldRenderer.
|
|
14
14
|
*/
|
|
15
15
|
export declare function EntryValueRenderer<T extends FieldValues = FieldValues>({ fieldName, entryKey, valueSchema, control, }: EntryValueRendererProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
16
16
|
export {};
|