@wise/dynamic-flow-client 3.9.3 → 3.9.4
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/build/main.js +5 -11
- package/build/main.min.js +1 -1
- package/build/main.mjs +5 -11
- package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
- package/package.json +1 -1
package/build/main.mjs
CHANGED
|
@@ -297,16 +297,10 @@ var applyBaseUrl = (input, baseUrl) => typeof input === "string" && isRelativePa
|
|
|
297
297
|
var mergeRequestInit = (init, additionalInit) => __spreadProps(__spreadValues(__spreadValues({}, init), additionalInit), {
|
|
298
298
|
headers: mergeHeaders(init == null ? void 0 : init.headers, additionalInit == null ? void 0 : additionalInit.headers)
|
|
299
299
|
});
|
|
300
|
-
var mergeHeaders = (
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
const headers2 = new Headers(initHeaders);
|
|
305
|
-
for (const [key, value] of Object.entries(additionalHeaders != null ? additionalHeaders : {})) {
|
|
306
|
-
headers2.set(key, value);
|
|
307
|
-
}
|
|
308
|
-
return headers2;
|
|
309
|
-
};
|
|
300
|
+
var mergeHeaders = (...headersInits) => headersInits.reduce(
|
|
301
|
+
(acc, headers2) => __spreadValues(__spreadValues({}, acc), Object.fromEntries(new Headers(headers2).entries())),
|
|
302
|
+
{}
|
|
303
|
+
);
|
|
310
304
|
|
|
311
305
|
// src/i18n/de.json
|
|
312
306
|
var de_default = {
|
|
@@ -7761,7 +7755,7 @@ var isPartialLocalValueMatch = (partialValue, component) => {
|
|
|
7761
7755
|
const matchingKeys = allKeys.filter(
|
|
7762
7756
|
(key) => !isNullish(partialValue[key]) && !isNullish(componentValue[key])
|
|
7763
7757
|
);
|
|
7764
|
-
return matchingKeys.every((key) => {
|
|
7758
|
+
return matchingKeys.length > 0 && matchingKeys.every((key) => {
|
|
7765
7759
|
const componentForKey = getComponentForLocalValueKey(key, component);
|
|
7766
7760
|
return componentForKey ? isPartialLocalValueMatch(partialValue[key], componentForKey) : false;
|
|
7767
7761
|
});
|
|
@@ -8,7 +8,7 @@ export type BooleanInputComponent = InputComponent<boolean> & {
|
|
|
8
8
|
validationState: ValidationState;
|
|
9
9
|
onChange: (value: boolean) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "
|
|
11
|
+
export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "id" | "uid" | "control" | "analyticsId" | "value" | "title" | "description" | "errors" | "hidden" | "help" | "disabled" | "required" | "persistedState" | "validationState"> & {
|
|
12
12
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
13
13
|
performRefresh: PerformRefresh | undefined;
|
|
14
14
|
performValidationAsync: PerformValidationAsync | undefined;
|
|
@@ -11,7 +11,7 @@ export type DateInputComponent = InputComponent<string | null> & {
|
|
|
11
11
|
validationState: ValidationState;
|
|
12
12
|
onChange: (value: string | null) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "
|
|
14
|
+
export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "id" | "uid" | "control" | "analyticsId" | "value" | "title" | "description" | "errors" | "hidden" | "help" | "disabled" | "placeholder" | "required" | "autoComplete" | "persistedState" | "validationState" | "minimumDate" | "maximumDate"> & {
|
|
15
15
|
checks: IsInvalidCheck<string | null>[];
|
|
16
16
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
17
17
|
performRefresh: PerformRefresh | undefined;
|
|
@@ -9,7 +9,7 @@ export type IntegerInputComponent = InputComponent<number | null> & {
|
|
|
9
9
|
validationState: ValidationState;
|
|
10
10
|
onChange: (value: number | null) => void;
|
|
11
11
|
};
|
|
12
|
-
export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "
|
|
12
|
+
export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "id" | "uid" | "control" | "analyticsId" | "value" | "title" | "description" | "errors" | "hidden" | "help" | "disabled" | "placeholder" | "required" | "autoComplete" | "persistedState" | "validationState"> & {
|
|
13
13
|
checks: IsInvalidCheck<number | null>[];
|
|
14
14
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
15
15
|
performRefresh: PerformRefresh | undefined;
|
|
@@ -14,7 +14,7 @@ export type MultiUploadInputComponent = InputComponent<File[]> & {
|
|
|
14
14
|
onDelete: (fileId: string) => Promise<void>;
|
|
15
15
|
onUpload: (file: File, fileId: string) => Promise<void>;
|
|
16
16
|
};
|
|
17
|
-
export declare const createMultiUploadInputComponent: (uploadInputProps: Pick<MultiUploadInputComponent, "
|
|
17
|
+
export declare const createMultiUploadInputComponent: (uploadInputProps: Pick<MultiUploadInputComponent, "id" | "uid" | "control" | "analyticsId" | "value" | "title" | "maxItems" | "minItems" | "description" | "errors" | "hidden" | "help" | "disabled" | "placeholder" | "accepts" | "maxSize" | "required" | "format" | "autoComplete" | "persistedState" | "uploadLabel"> & {
|
|
18
18
|
checks: IsInvalidCheck<File[]>[];
|
|
19
19
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
20
20
|
onValueChange: OnValueChange;
|
|
@@ -9,7 +9,7 @@ export type NumberInputComponent = InputComponent<number | null> & {
|
|
|
9
9
|
validationState: ValidationState;
|
|
10
10
|
onChange: (value: number | null) => void;
|
|
11
11
|
};
|
|
12
|
-
export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "
|
|
12
|
+
export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "id" | "uid" | "control" | "analyticsId" | "value" | "title" | "description" | "errors" | "hidden" | "help" | "disabled" | "placeholder" | "required" | "autoComplete" | "persistedState" | "validationState"> & {
|
|
13
13
|
checks: IsInvalidCheck<number | null>[];
|
|
14
14
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
15
15
|
performRefresh: PerformRefresh | undefined;
|
|
@@ -10,7 +10,7 @@ export type TextInputComponent = InputComponent<string | null> & {
|
|
|
10
10
|
validationState: ValidationState;
|
|
11
11
|
onChange: (value: string | null) => void;
|
|
12
12
|
};
|
|
13
|
-
export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "
|
|
13
|
+
export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "id" | "uid" | "control" | "analyticsId" | "value" | "title" | "description" | "errors" | "hidden" | "help" | "disabled" | "placeholder" | "required" | "displayFormat" | "autoComplete" | "persistedState" | "validationState"> & {
|
|
14
14
|
checks: IsInvalidCheck<string | null>[];
|
|
15
15
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
16
16
|
performValidationAsync: PerformValidationAsync | undefined;
|
|
@@ -10,7 +10,7 @@ export type UploadInputComponent = InputComponent<File | null> & {
|
|
|
10
10
|
persistedState: PersistedState;
|
|
11
11
|
onUpload: (value: File | null) => Promise<void>;
|
|
12
12
|
};
|
|
13
|
-
export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "
|
|
13
|
+
export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "id" | "uid" | "control" | "analyticsId" | "value" | "title" | "description" | "errors" | "hidden" | "help" | "disabled" | "placeholder" | "accepts" | "maxSize" | "required" | "format" | "autoComplete" | "persistedState"> & {
|
|
14
14
|
checks: IsInvalidCheck<File | null>[];
|
|
15
15
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
16
16
|
performRefresh?: PerformRefresh | undefined;
|