skyflow-js 1.24.1 → 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.
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "skyflow-js",
3
3
  "preferGlobal": true,
4
4
  "analyze": false,
5
- "version": "1.24.1",
5
+ "version": "1.26.0",
6
6
  "author": "Skyflow",
7
7
  "description": "Skyflow JavaScript SDK",
8
8
  "homepage": "https://github.com/skyflowapi/skyflow-js",
@@ -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;
@@ -3,5 +3,6 @@ declare class ComposableElement {
3
3
  type: string;
4
4
  constructor(name: any, eventEmitter: any);
5
5
  on(eventName: string, handler: any): void;
6
+ update: (options: any) => void;
6
7
  }
7
8
  export default ComposableElement;
@@ -12,8 +12,8 @@ export declare class IFrameFormElement extends EventEmitter {
12
12
  };
13
13
  readonly fieldType: string;
14
14
  private sensitive;
15
- tableName: string;
16
- fieldName: string;
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;
@@ -15,7 +15,8 @@ export declare enum EventName {
15
15
  CHANGE = "CHANGE",
16
16
  READY = "READY",
17
17
  FOCUS = "FOCUS",
18
- BLUR = "BLUR"
18
+ BLUR = "BLUR",
19
+ SUBMIT = "SUBMIT"
19
20
  }
20
21
  export declare enum LogLevel {
21
22
  WARN = "WARN",
@@ -179,6 +179,10 @@ declare const SKYFLOW_ERROR_CODE: {
179
179
  code: number;
180
180
  description: string;
181
181
  };
182
+ INVALID_REDACTION_TYPE_IN_DETOKENIZE: {
183
+ code: number;
184
+ description: string;
185
+ };
182
186
  INVALID_TOKENS_IN_COLLECT: {
183
187
  code: number;
184
188
  description: string;
@@ -231,6 +235,10 @@ declare const SKYFLOW_ERROR_CODE: {
231
235
  code: number;
232
236
  description: string;
233
237
  };
238
+ INVALID_REDACTION_TYPE_REVEAL: {
239
+ code: number;
240
+ description: string;
241
+ };
234
242
  EMPTY_TABLE_IN_ADDITIONAL_FIELDS: {
235
243
  code: number;
236
244
  description: string;
@@ -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) => any;
8
- export declare const appendMonthFourDigitYears: (value: any) => any;
9
- export declare const appendMonthTwoDigitYears: (value: any) => any;
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;
@@ -113,11 +113,13 @@ declare const logs: {
113
113
  INVALID_TABLE_IN_GET: string;
114
114
  MISSING_REDACTION_IN_GET: string;
115
115
  INVALID_REDACTION_TYPE_IN_GET: string;
116
+ INVALID_REDACTION_TYPE_IN_DETOKENIZE: string;
116
117
  EMPTY_RECORDS_REVEAL: string;
117
118
  MISSING_TOKEN_KEY_REVEAL: string;
118
119
  INVALID_TOKEN_ID_REVEAL: string;
119
120
  INVALID_LABEL_REVEAL: string;
120
121
  INVALID_ALT_TEXT_REVEAL: string;
122
+ INVALID_REDACTION_TYPE_REVEAL: string;
121
123
  ELEMENTS_NOT_MOUNTED_REVEAL: string;
122
124
  EMPTY_TABLE_IN_ADDITIONAL_FIELDS: string;
123
125
  EMPTY_FIELDS_IN_ADDITIONAL_FIELDS: string;