skyflow-js 1.35.1 → 1.36.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/CHANGELOG.md +8 -0
- package/dist/sdkNodeBuild/83a53e5f338c1bd56555.svg +3 -0
- package/dist/sdkNodeBuild/83a53e5f338c1bd56555.svg.gz +0 -0
- package/dist/sdkNodeBuild/bcd5969a8a86792c2995.svg +1 -0
- package/dist/sdkNodeBuild/bcd5969a8a86792c2995.svg.gz +0 -0
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/dist/sdkNodeBuild/manifest.json +3 -1
- package/dist/sdkNodeBuild/manifest.json.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +21 -2
- package/types/core/external/collect/collect-element.d.ts +1 -0
- package/types/core/internal/iframe-form/index.d.ts +3 -0
- package/types/core/internal/index.d.ts +3 -0
- package/types/skyflow.d.ts +2 -1
- package/types/utils/constants.d.ts +8 -0
- package/types/utils/logs.d.ts +2 -0
|
Binary file
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
"jcb.svg": "8062a86943450f142966.svg",
|
|
9
9
|
"mastercard.svg": "08ad88dee7d4519954ec.svg",
|
|
10
10
|
"diners-club.svg": "a9431336dd9f3e17b880.svg",
|
|
11
|
+
"carter-banceris.svg": "bcd5969a8a86792c2995.svg",
|
|
11
12
|
"visa.svg": "cbee67fb3d652dad9e25.svg",
|
|
12
13
|
"copyIcon.svg": "362f9fcc6011fc54c62f.svg",
|
|
13
14
|
"path.svg": "54c18b6916f26474cce8.svg",
|
|
14
|
-
"default.svg": "2afb5d11fb02e9292eaf.svg"
|
|
15
|
+
"default.svg": "2afb5d11fb02e9292eaf.svg",
|
|
16
|
+
"drop-down.svg": "83a53e5f338c1bd56555.svg"
|
|
15
17
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -138,8 +138,23 @@ export declare enum CardType {
|
|
|
138
138
|
UNIONPAY = "UNIONPAY",
|
|
139
139
|
HIPERCARD = "HIPERCARD",
|
|
140
140
|
DEFAULT = "DEFAULT",
|
|
141
|
-
UNKNOWN = "UNKNOWN"
|
|
141
|
+
UNKNOWN = "UNKNOWN",
|
|
142
|
+
CARTES_BANCAIRES = "CARTES BANCAIRES"
|
|
142
143
|
}
|
|
144
|
+
export declare const CardTypeValues: {
|
|
145
|
+
VISA: string;
|
|
146
|
+
MASTERCARD: string;
|
|
147
|
+
AMEX: string;
|
|
148
|
+
DINERS_CLUB: string;
|
|
149
|
+
DISCOVER: string;
|
|
150
|
+
JCB: string;
|
|
151
|
+
MAESTRO: string;
|
|
152
|
+
UNIONPAY: string;
|
|
153
|
+
HIPERCARD: string;
|
|
154
|
+
DEFAULT: string;
|
|
155
|
+
UNKNOWN: string;
|
|
156
|
+
"CARTES BANCAIRES": string;
|
|
157
|
+
};
|
|
143
158
|
export declare const CARD_NUMBER_MASK: {
|
|
144
159
|
AMEX: (string | {
|
|
145
160
|
X: string;
|
|
@@ -336,7 +351,9 @@ export declare const INPUT_WITH_ICON_DEFAULT_STYLES: {
|
|
|
336
351
|
'text-indent': string;
|
|
337
352
|
padding: string;
|
|
338
353
|
};
|
|
339
|
-
export declare const INPUT_ICON_STYLES = "position: absolute; left:8px; bottom:calc(50% - 12px)";
|
|
354
|
+
export declare const INPUT_ICON_STYLES = "position: absolute; left:8px; bottom:calc(50% - 12px); cursor:pointer;";
|
|
355
|
+
export declare const DROPDOWN_ICON_STYLES = "position: absolute; left:46px; bottom:calc(50% - 12px);cursor:pointer;display:none;";
|
|
356
|
+
export declare const DROPDOWN_STYLES = "position: absolute; left:8px; bottom:calc(50% - 12px);appearance: none;padding: unset; box-shadow: none;background: transparent;cursor:pointer;outline:none;opacity:0;width:54px;";
|
|
340
357
|
export declare const COLLECT_COPY_ICON_STYLES = "position: absolute; right:8px; bottom:calc(50% - 12px); cursor:pointer;";
|
|
341
358
|
export declare const REVEAL_COPY_ICON_STYLES = "position: absolute; right:8px; top:calc(50% - 12px); cursor:pointer;";
|
|
342
359
|
export declare const ERROR_TEXT_STYLES: {
|
|
@@ -458,6 +475,7 @@ export declare const DEFAULT_CARD_LENGTH_RANGE: number[];
|
|
|
458
475
|
export declare const CARD_ENCODED_ICONS: {
|
|
459
476
|
DEFAULT: any;
|
|
460
477
|
AMEX: any;
|
|
478
|
+
"CARTES BANCAIRES": any;
|
|
461
479
|
DINERS_CLUB: any;
|
|
462
480
|
DISCOVER: any;
|
|
463
481
|
HIPERCARD: any;
|
|
@@ -544,3 +562,4 @@ export declare const DEFAULT_INPUT_FORMAT_TRANSLATION: {
|
|
|
544
562
|
};
|
|
545
563
|
export declare const DEFAULT_FILE_RENDER_ERROR = "File rendering failed. Please try again later.";
|
|
546
564
|
export declare const FILE_DOWNLOAD_URL_PARAM = "downloadURL=true&contentDisposition=INLINE";
|
|
565
|
+
export declare const DROP_DOWN_ICON: any;
|
|
@@ -10,6 +10,7 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
10
10
|
name: string;
|
|
11
11
|
isRequired: boolean;
|
|
12
12
|
isTouched: boolean;
|
|
13
|
+
selectedCardScheme: string;
|
|
13
14
|
};
|
|
14
15
|
readonly fieldType: string;
|
|
15
16
|
private sensitive;
|
|
@@ -33,6 +34,7 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
33
34
|
preserveFileName: boolean;
|
|
34
35
|
constructor(name: string, label: string, metaData: any, context: Context, skyflowID?: string);
|
|
35
36
|
onFocusChange: (focus: boolean) => void;
|
|
37
|
+
onDropdownSelect: (cardType: string) => void;
|
|
36
38
|
changeFocus: (focus: boolean) => void;
|
|
37
39
|
setReplacePattern(pattern: string[]): void;
|
|
38
40
|
setMask(mask: string[]): void;
|
|
@@ -43,6 +45,7 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
43
45
|
getValue: () => any;
|
|
44
46
|
getUnformattedValue: () => any;
|
|
45
47
|
getStatus: () => {
|
|
48
|
+
selectedCardScheme?: string | undefined;
|
|
46
49
|
isFocused: boolean;
|
|
47
50
|
isValid: boolean;
|
|
48
51
|
isEmpty: boolean;
|
|
@@ -23,6 +23,8 @@ export declare class FrameElement {
|
|
|
23
23
|
private hasError?;
|
|
24
24
|
private labelDiv?;
|
|
25
25
|
private isRequiredLabel?;
|
|
26
|
+
private dropdownIcon?;
|
|
27
|
+
private dropdownSelect?;
|
|
26
28
|
constructor(iFrameFormElement: IFrameFormElement, options: any, htmlDivElement: HTMLDivElement);
|
|
27
29
|
mount: () => void;
|
|
28
30
|
setupInputField(newValue?: boolean): void;
|
|
@@ -48,4 +50,5 @@ export declare class FrameElement {
|
|
|
48
50
|
setClass(types: string[], dom?: HTMLElement, preText?: string): void;
|
|
49
51
|
updateOptions(options: any): void;
|
|
50
52
|
private applyMask;
|
|
53
|
+
private appendDropdown;
|
|
51
54
|
}
|
package/types/skyflow.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType } from './core/constants';
|
|
1
|
+
import { ElementType, CardType } from './core/constants';
|
|
2
2
|
import RevealContainer from './core/external/reveal/reveal-container';
|
|
3
3
|
import CollectContainer from './core/external/collect/collect-container';
|
|
4
4
|
import { IRevealResponseType, RequestMethod, IInsertRecordInput, IDetokenizeInput, IGetInput, RedactionType, EventName, Env, LogLevel, ValidationRuleType, IGetByIdInput, IInsertOptions, IDeleteRecordInput, IDeleteOptions, IGetOptions } from './utils/common';
|
|
@@ -32,5 +32,6 @@ declare class Skyflow {
|
|
|
32
32
|
static get EventName(): typeof EventName;
|
|
33
33
|
static get Env(): typeof Env;
|
|
34
34
|
static get ValidationRuleType(): typeof ValidationRuleType;
|
|
35
|
+
static get CardType(): typeof CardType;
|
|
35
36
|
}
|
|
36
37
|
export default Skyflow;
|
|
@@ -699,5 +699,13 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
699
699
|
code: number;
|
|
700
700
|
description: string;
|
|
701
701
|
};
|
|
702
|
+
INVALID_OPTION_CARD_METADATA: {
|
|
703
|
+
code: number;
|
|
704
|
+
description: string;
|
|
705
|
+
};
|
|
706
|
+
INVALID_OPTION_CARD_SCHEME: {
|
|
707
|
+
code: number;
|
|
708
|
+
description: string;
|
|
709
|
+
};
|
|
702
710
|
};
|
|
703
711
|
export default SKYFLOW_ERROR_CODE;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -270,6 +270,8 @@ declare const logs: {
|
|
|
270
270
|
INVALID_ALLOWED_OPTIONS: string;
|
|
271
271
|
EMPTY_ALLOWED_OPTIONS_ARRAY: string;
|
|
272
272
|
INVALID_ALLOWED_FILETYPE_ARRAY: string;
|
|
273
|
+
INVALID_OPTION_CARD_METADATA: string;
|
|
274
|
+
INVALID_OPTION_CARD_SCHEME: string;
|
|
273
275
|
};
|
|
274
276
|
warnLogs: {
|
|
275
277
|
INVALID_EXPIRATION_DATE_FORMAT: string;
|