skyflow-js 1.36.0 → 1.36.2
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/CHANGELOG.md +4 -0
- package/README.md +11 -11
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +1 -0
- package/types/core/external/collect/collect-element.d.ts +1 -0
- package/types/core/external/common/skyflow-element.d.ts +1 -0
- package/types/core/external/reveal/reveal-element.d.ts +1 -0
- package/types/core/internal/iframe-form/index.d.ts +2 -0
- package/types/utils/helpers/index.d.ts +1 -1
|
Binary file
|
package/package.json
CHANGED
|
@@ -95,6 +95,7 @@ export declare const ELEMENT_EVENTS_TO_IFRAME: {
|
|
|
95
95
|
GET_COLLECT_ELEMENT: string;
|
|
96
96
|
GET_REVEAL_ELEMENT: string;
|
|
97
97
|
COLLECT_ELEMENT_SET_ERROR: string;
|
|
98
|
+
COLLECT_ELEMENT_SET_ERROR_OVERRIDE: string;
|
|
98
99
|
REVEAL_ELEMENT_SET_ERROR: string;
|
|
99
100
|
REVEAL_ELEMENT_UPDATE_OPTIONS: string;
|
|
100
101
|
FILE_UPLOAD: string;
|
|
@@ -29,6 +29,7 @@ declare class CollectElement extends SkyflowElement {
|
|
|
29
29
|
isMounted(): boolean;
|
|
30
30
|
isUpdateCalled(): boolean;
|
|
31
31
|
isValidElement(): boolean;
|
|
32
|
+
setErrorOverride(customErrorText: string): void;
|
|
32
33
|
setError(clientErrorText: string): void;
|
|
33
34
|
resetError(): void;
|
|
34
35
|
setValue(elementValue: string): void;
|
|
@@ -12,6 +12,7 @@ declare class RevealElement extends SkyflowElement {
|
|
|
12
12
|
hasToken(): boolean;
|
|
13
13
|
isClientSetError(): boolean;
|
|
14
14
|
getRecordData(): any;
|
|
15
|
+
setErrorOverride(clientErrorText: string): void;
|
|
15
16
|
setError(clientErrorText: string): void;
|
|
16
17
|
resetError(): void;
|
|
17
18
|
setAltText(altText: string): void;
|
|
@@ -20,6 +20,7 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
20
20
|
metaData: any;
|
|
21
21
|
private regex?;
|
|
22
22
|
validations?: IValidationRule[];
|
|
23
|
+
isCustomValidationFailed: boolean;
|
|
23
24
|
errorText?: string;
|
|
24
25
|
replacePattern?: [RegExp, string];
|
|
25
26
|
mask?: any;
|
|
@@ -32,6 +33,7 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
32
33
|
containerType: string;
|
|
33
34
|
cardType: string;
|
|
34
35
|
preserveFileName: boolean;
|
|
36
|
+
allowedFileType: any;
|
|
35
37
|
constructor(name: string, label: string, metaData: any, context: Context, skyflowID?: string);
|
|
36
38
|
onFocusChange: (focus: boolean) => void;
|
|
37
39
|
onDropdownSelect: (cardType: string) => void;
|
|
@@ -23,7 +23,7 @@ export declare function domReady(fn: any): void;
|
|
|
23
23
|
export declare const getMaskedOutput: (input: string, format: string, translation: any) => string;
|
|
24
24
|
export declare const copyToClipboard: (text: string) => void;
|
|
25
25
|
export declare const handleCopyIconClick: (textToCopy: string, domCopy: any) => void;
|
|
26
|
-
export declare const fileValidation: (value: any, required
|
|
26
|
+
export declare const fileValidation: (value: any, required: Boolean | undefined, fileElement: any) => boolean;
|
|
27
27
|
export declare const vaildateFileName: (name: any) => boolean;
|
|
28
28
|
export declare const styleToString: (style: any) => string;
|
|
29
29
|
export declare const getContainerType: (frameName: string) => ContainerType;
|