skyflow-js 1.25.0 → 1.26.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.
- package/README.md +2 -2
- 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 +9 -0
- package/types/core/external/collect/collect-element.d.ts +1 -0
- package/types/core/external/collect/compose-collect-container.d.ts +2 -0
- package/types/core/external/collect/compose-collect-element.d.ts +1 -0
- package/types/core/internal/iframe-form/index.d.ts +2 -2
- package/types/core/internal/index.d.ts +6 -0
- package/types/utils/common/index.d.ts +2 -1
- package/types/utils/helpers/index.d.ts +12 -3
|
Binary file
|
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ export declare const ELEMENT_EVENTS_TO_CLIENT: {
|
|
|
18
18
|
CLICK: string;
|
|
19
19
|
ERROR: string;
|
|
20
20
|
SUCCESS: string;
|
|
21
|
+
SUBMIT: string;
|
|
21
22
|
};
|
|
22
23
|
export declare const ELEMENT_EVENTS_TO_IFRAME: {
|
|
23
24
|
FRAME_READY: string;
|
|
@@ -42,6 +43,7 @@ export declare const ELEMENT_EVENTS_TO_IFRAME: {
|
|
|
42
43
|
REVEAL_ELEMENT_SET_ERROR: string;
|
|
43
44
|
REVEAL_ELEMENT_UPDATE_OPTIONS: string;
|
|
44
45
|
FILE_UPLOAD: string;
|
|
46
|
+
COMPOSABLE_UPDATE_OPTIONS: string;
|
|
45
47
|
};
|
|
46
48
|
export declare const REVEAL_ELEMENT_OPTIONS_TYPES: {
|
|
47
49
|
TOKEN: string;
|
|
@@ -430,3 +432,10 @@ export declare const DEFAULT_REQUIRED_TEXT_ELEMENT_TYPES: {
|
|
|
430
432
|
EXPIRATION_YEAR: string;
|
|
431
433
|
FILE_INPUT: string;
|
|
432
434
|
};
|
|
435
|
+
export declare const INPUT_KEYBOARD_EVENTS: {
|
|
436
|
+
ENTER: string;
|
|
437
|
+
RIGHT_ARROW: string;
|
|
438
|
+
LEFT_ARROW: string;
|
|
439
|
+
BACKSPACE: string;
|
|
440
|
+
};
|
|
441
|
+
export declare const CUSTOM_ROW_ID_ATTRIBUTE = "data-row-id";
|
|
@@ -11,6 +11,7 @@ declare class CollectElement extends SkyflowElement {
|
|
|
11
11
|
mount: (domElement: any) => void;
|
|
12
12
|
unmount: () => void;
|
|
13
13
|
update: (group: any) => void;
|
|
14
|
+
updateElement: (elementOptions: any) => void;
|
|
14
15
|
getState: () => {
|
|
15
16
|
isEmpty: boolean;
|
|
16
17
|
isComplete: boolean;
|
|
@@ -26,7 +26,9 @@ declare class ComposableContainer extends Container {
|
|
|
26
26
|
type: string;
|
|
27
27
|
constructor(options: any, metaData: any, skyflowElements: any, context: any);
|
|
28
28
|
create: (input: CollectElementInput, options?: any) => ComposableElement;
|
|
29
|
+
on: (eventName: string, handler: any) => void;
|
|
29
30
|
mount: (domElement: any) => void;
|
|
31
|
+
unmount: () => void;
|
|
30
32
|
collect: (options?: ICollectOptions) => Promise<unknown>;
|
|
31
33
|
}
|
|
32
34
|
export default ComposableContainer;
|
|
@@ -12,8 +12,8 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
12
12
|
};
|
|
13
13
|
readonly fieldType: string;
|
|
14
14
|
private sensitive;
|
|
15
|
-
tableName
|
|
16
|
-
fieldName
|
|
15
|
+
tableName?: string;
|
|
16
|
+
fieldName?: string;
|
|
17
17
|
iFrameName: string;
|
|
18
18
|
metaData: any;
|
|
19
19
|
private regex?;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="jquery" />
|
|
2
|
+
/// <reference types="jquery-mask-plugin" />
|
|
1
3
|
import 'jquery-mask-plugin/dist/jquery.mask.min';
|
|
2
4
|
import { IFrameFormElement } from './iframe-form';
|
|
3
5
|
import { LogLevel } from '../../utils/common';
|
|
@@ -31,6 +33,10 @@ export declare class FrameElement {
|
|
|
31
33
|
setValue: (value: any) => void;
|
|
32
34
|
onFocusChange: (event: FocusEvent, focus: boolean) => void;
|
|
33
35
|
onInputChange: (event: Event) => void;
|
|
36
|
+
findPreviousElement: (currentInput: any) => HTMLInputElement;
|
|
37
|
+
findNextElement: (currentInput: any) => HTMLInputElement;
|
|
38
|
+
onSubmit: () => void;
|
|
39
|
+
onArrowKeys: (event: JQuery.TriggeredEvent) => void;
|
|
34
40
|
focusChange: (focus: boolean) => void;
|
|
35
41
|
destroy: () => void;
|
|
36
42
|
injectInputStyles(styles: any, preText?: string): void;
|
|
@@ -4,9 +4,18 @@ export declare function formatFrameNameToId(name: string): string;
|
|
|
4
4
|
export declare function removeSpaces(inputString: string): string;
|
|
5
5
|
export declare function formatVaultURL(vaultURL: any): any;
|
|
6
6
|
export declare function checkIfDuplicateExists(arr: any): boolean;
|
|
7
|
-
export declare const appendZeroToOne: (value: any) =>
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export declare const appendZeroToOne: (value: any) => {
|
|
8
|
+
isAppended: boolean;
|
|
9
|
+
value: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const appendMonthFourDigitYears: (value: any) => {
|
|
12
|
+
isAppended: boolean;
|
|
13
|
+
value: any;
|
|
14
|
+
};
|
|
15
|
+
export declare const appendMonthTwoDigitYears: (value: any) => {
|
|
16
|
+
isAppended: boolean;
|
|
17
|
+
value: any;
|
|
18
|
+
};
|
|
10
19
|
export declare const getReturnValue: (value: string | Blob, element: string, doesReturnValue: boolean) => string | Blob | undefined;
|
|
11
20
|
export declare const copyToClipboard: (text: string) => void;
|
|
12
21
|
export declare const handleCopyIconClick: (textToCopy: string, domCopy: any) => void;
|