skyflow-js 1.11.0 → 1.12.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 +20 -1
- package/README.md +17 -10
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +4 -3
- package/types/core/constants.d.ts +14 -10
- package/types/core/internal/SkyflowFrame/SkyflowFrameController.d.ts +2 -2
- package/types/core/internal/index.d.ts +2 -0
- package/types/utils/busEvents/index.d.ts +1 -1
- package/types/utils/helpers/index.d.ts +3 -0
- package/types/utils/logs.d.ts +1 -0
|
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.
|
|
5
|
+
"version": "1.12.2",
|
|
6
6
|
"author": "Skyflow",
|
|
7
7
|
"description": "Skyflow JavaScript SDK",
|
|
8
8
|
"homepage": "https://github.com/skyflowapi/skyflow-js",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"dist/sdkNodeBuild",
|
|
13
13
|
"types"
|
|
14
14
|
],
|
|
15
|
+
"license": "MIT",
|
|
15
16
|
"keywords": [
|
|
16
17
|
"client",
|
|
17
18
|
"sdk",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"eslint": "^7.32.0",
|
|
72
73
|
"eslint-config-airbnb-base": "^14.2.1",
|
|
73
74
|
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
74
|
-
"eslint-plugin-import": "^2.
|
|
75
|
+
"eslint-plugin-import": "^2.25.4",
|
|
75
76
|
"fork-ts-checker-webpack-plugin": "^6.3.2",
|
|
76
77
|
"html-webpack-plugin": "^5.5.0",
|
|
77
78
|
"jest": "^27.2.1",
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"webpack": "^5.51.1",
|
|
80
81
|
"webpack-bundle-analyzer": "^4.4.2",
|
|
81
82
|
"webpack-cli": "^4.8.0",
|
|
82
|
-
"webpack-dev-server": "^4.7.
|
|
83
|
+
"webpack-dev-server": "^4.7.4",
|
|
83
84
|
"webpack-manifest-plugin": "^4.0.2",
|
|
84
85
|
"webpack-merge": "^5.8.0"
|
|
85
86
|
}
|
|
@@ -136,6 +136,7 @@ export declare const ELEMENTS: {
|
|
|
136
136
|
name: string;
|
|
137
137
|
attributes: {
|
|
138
138
|
type: string;
|
|
139
|
+
autocomplete: string;
|
|
139
140
|
};
|
|
140
141
|
sensitive: boolean;
|
|
141
142
|
regex: RegExp;
|
|
@@ -144,6 +145,7 @@ export declare const ELEMENTS: {
|
|
|
144
145
|
name: string;
|
|
145
146
|
attributes: {
|
|
146
147
|
type: string;
|
|
148
|
+
autocomplete: string;
|
|
147
149
|
};
|
|
148
150
|
sensitive: boolean;
|
|
149
151
|
mask: (string | {
|
|
@@ -155,6 +157,7 @@ export declare const ELEMENTS: {
|
|
|
155
157
|
name: string;
|
|
156
158
|
attributes: {
|
|
157
159
|
type: string;
|
|
160
|
+
autocomplete: string;
|
|
158
161
|
};
|
|
159
162
|
sensitive: boolean;
|
|
160
163
|
};
|
|
@@ -223,6 +226,7 @@ export declare const INPUT_WITH_ICON_DEFAULT_STYLES: {
|
|
|
223
226
|
'text-indent': string;
|
|
224
227
|
padding: string;
|
|
225
228
|
};
|
|
229
|
+
export declare const INPUT_ICON_STYLES = "position: absolute; left:8px; top:calc(50% - 10px)";
|
|
226
230
|
export declare const ERROR_TEXT_STYLES: {
|
|
227
231
|
color: string;
|
|
228
232
|
padding: string;
|
|
@@ -317,16 +321,16 @@ export declare const CARD_TYPE_REGEX: {
|
|
|
317
321
|
};
|
|
318
322
|
export declare const DEFAULT_CARD_LENGTH_RANGE: number[];
|
|
319
323
|
export declare const CARD_ENCODED_ICONS: {
|
|
320
|
-
DEFAULT:
|
|
321
|
-
AMEX:
|
|
322
|
-
DINERS_CLUB:
|
|
323
|
-
DISCOVER:
|
|
324
|
-
HIPERCARD:
|
|
325
|
-
JCB:
|
|
326
|
-
MAESTRO:
|
|
327
|
-
MASTERCARD:
|
|
328
|
-
UNIONPAY:
|
|
329
|
-
VISA:
|
|
324
|
+
DEFAULT: any;
|
|
325
|
+
AMEX: any;
|
|
326
|
+
DINERS_CLUB: any;
|
|
327
|
+
DISCOVER: any;
|
|
328
|
+
HIPERCARD: any;
|
|
329
|
+
JCB: any;
|
|
330
|
+
MAESTRO: any;
|
|
331
|
+
MASTERCARD: any;
|
|
332
|
+
UNIONPAY: any;
|
|
333
|
+
VISA: any;
|
|
330
334
|
};
|
|
331
335
|
export declare const EXPIRY_DATE_MASK: {
|
|
332
336
|
'MM/YYYY': (string | {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IConnectionConfig, ISoapConnectionConfig } from '../../../utils/common';
|
|
2
2
|
declare class SkyflowFrameController {
|
|
3
3
|
#private;
|
|
4
|
-
constructor();
|
|
5
|
-
static init(): SkyflowFrameController;
|
|
4
|
+
constructor(clientId: any);
|
|
5
|
+
static init(clientId: any): SkyflowFrameController;
|
|
6
6
|
insertData(records: any, options: any): Promise<unknown>;
|
|
7
7
|
sendInvokeConnectionRequest(config: IConnectionConfig): Promise<unknown>;
|
|
8
8
|
invokeSoapConnectionRequest(config: ISoapConnectionConfig): Promise<unknown>;
|
|
@@ -17,6 +17,8 @@ export declare class FrameElement {
|
|
|
17
17
|
private domLabel?;
|
|
18
18
|
private domInput?;
|
|
19
19
|
private domError?;
|
|
20
|
+
private domImg?;
|
|
21
|
+
private inputParent?;
|
|
20
22
|
constructor(iFrameFormElement: IFrameFormElement, options: any, htmlDivElement: HTMLDivElement);
|
|
21
23
|
mount: () => void;
|
|
22
24
|
setupInputField(newValue?: boolean): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare function getCollectElementValue(key: any, elementIframename: any): Promise<unknown>;
|
|
2
2
|
export declare function getRevealElementValue(key: any, revealFrameName: any, client: any): Promise<unknown>;
|
|
3
|
-
export declare function getAccessToken(): Promise<unknown>;
|
|
3
|
+
export declare function getAccessToken(clientId: any): Promise<unknown>;
|
|
@@ -10,3 +10,6 @@ export declare function replaceIdInXml(xml: string, elementLookup: any, errors:
|
|
|
10
10
|
export declare function replaceIdInResponseXml(xml: string, elementLookup: any, errors: any): string;
|
|
11
11
|
export declare function getIframeNamesInSoapRequest(requestXml: string): string[] | undefined;
|
|
12
12
|
export declare function replaceIframeNameWithValues(requestXml: string, elementValuesLookup: any): string;
|
|
13
|
+
export declare function lowercaseKeys(obj: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}): any;
|