skyflow-js 1.0.1 → 1.2.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 +39 -0
- package/README.md +388 -44
- package/dist/sdkNodeBuild/index.js +2 -1
- package/dist/sdkNodeBuild/index.js.LICENSE.txt +27 -0
- package/dist/sdkNodeBuild/index.js.LICENSE.txt.gz +0 -0
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +9 -2
- package/types/Skyflow.d.ts +38 -8
- package/types/client/index.d.ts +2 -3
- package/types/container/constants.d.ts +26 -7
- package/types/container/external/CollectContainer.d.ts +14 -6
- package/types/container/external/PureJsController.d.ts +5 -3
- package/types/container/external/RevealContainer.d.ts +8 -6
- package/types/container/external/element/index.d.ts +3 -0
- package/types/container/external/reveal/RevealElement.d.ts +4 -1
- package/types/container/internal/iFrameForm/index.d.ts +15 -15
- package/types/container/internal/index.d.ts +2 -2
- package/types/container/internal/pureJs/PureJsFrameController.d.ts +2 -0
- package/types/container/internal/reveal/RevealFrameController.d.ts +1 -1
- package/types/core/collect.d.ts +1 -1
- package/types/core/reveal.d.ts +15 -6
- package/types/event-emitter/index.d.ts +1 -1
- package/types/iframe-libs/iframer.d.ts +3 -3
- package/types/index-internal.d.ts +1 -2
- package/types/index-node.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/libs/Bus.d.ts +3 -3
- package/types/libs/element-options.d.ts +1 -1
- package/types/libs/jss-styles.d.ts +1 -1
- package/types/libs/objectParse.d.ts +2 -0
- package/types/libs/regex.d.ts +2 -1
- package/types/libs/strings.d.ts +1 -1
- package/types/libs/styles.d.ts +2 -2
- package/types/properties.d.ts +2 -1
- package/types/utils/busEvents/index.d.ts +3 -0
- package/types/utils/helpers/index.d.ts +5 -0
- package/types/utils/jwtUtils/index.d.ts +2 -1
- package/types/utils/validators/index.d.ts +7 -2
- package/types/libs/NewBus.d.ts +0 -13
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
12
|
+
* Released under the MIT License.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
19
|
+
* Released under the MIT License.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
* set-value <https://github.com/jonschlinkert/set-value>
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
26
|
+
* Released under the MIT License.
|
|
27
|
+
*/
|
|
Binary file
|
|
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.0
|
|
5
|
+
"version": "1.2.0",
|
|
6
6
|
"author": "Skyflow",
|
|
7
7
|
"description": "Skyflow JavaScript SDK",
|
|
8
8
|
"homepage": "https://github.com/skyflowapi/skyflow-js",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"jss": "^10.7.1",
|
|
41
41
|
"jss-preset-default": "^10.7.1",
|
|
42
42
|
"jwt-decode": "^3.1.2",
|
|
43
|
+
"lodash": "^4.17.21",
|
|
43
44
|
"set-value": "^4.0.1"
|
|
44
45
|
},
|
|
45
46
|
"engines": {
|
|
@@ -58,12 +59,18 @@
|
|
|
58
59
|
"@types/jest": "^27.0.1",
|
|
59
60
|
"@types/jquery-mask-plugin": "^1.14.3",
|
|
60
61
|
"@types/node": "^14.0.5",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^4.31.2",
|
|
63
|
+
"@typescript-eslint/parser": "^4.31.2",
|
|
61
64
|
"babel-loader": "^8.1.0",
|
|
62
65
|
"clean-webpack-plugin": "^4.0.0-alpha.0",
|
|
63
66
|
"compression-webpack-plugin": "^8.0.1",
|
|
67
|
+
"eslint": "^7.32.0",
|
|
68
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
|
69
|
+
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
70
|
+
"eslint-plugin-import": "^2.24.2",
|
|
64
71
|
"fork-ts-checker-webpack-plugin": "^6.3.2",
|
|
65
72
|
"html-webpack-plugin": "^5.3.2",
|
|
66
|
-
"jest": "^27.
|
|
73
|
+
"jest": "^27.2.1",
|
|
67
74
|
"typescript": "^3.9.3",
|
|
68
75
|
"webpack": "^5.51.1",
|
|
69
76
|
"webpack-bundle-analyzer": "^4.4.2",
|
package/types/Skyflow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import CollectContainer from
|
|
2
|
-
import RevealContainer from
|
|
3
|
-
import { ElementType } from
|
|
1
|
+
import CollectContainer from './container/external/CollectContainer';
|
|
2
|
+
import RevealContainer from './container/external/RevealContainer';
|
|
3
|
+
import { ElementType } from './container/constants';
|
|
4
4
|
export interface IInsertRecord {
|
|
5
5
|
table: string;
|
|
6
6
|
fields: Record<string, any>;
|
|
@@ -25,12 +25,39 @@ export declare enum RedactionType {
|
|
|
25
25
|
REDACTED = "REDACTED"
|
|
26
26
|
}
|
|
27
27
|
export interface IRevealRecord {
|
|
28
|
-
|
|
28
|
+
token: string;
|
|
29
29
|
redaction: RedactionType;
|
|
30
30
|
}
|
|
31
|
-
export interface
|
|
32
|
-
records
|
|
33
|
-
errors
|
|
31
|
+
export interface IRevealResponseType {
|
|
32
|
+
records?: Record<string, string>[];
|
|
33
|
+
errors?: Record<string, any>[];
|
|
34
|
+
}
|
|
35
|
+
export interface IDetokenizeInput {
|
|
36
|
+
records: IRevealRecord[];
|
|
37
|
+
}
|
|
38
|
+
export interface ISkyflowIdRecord {
|
|
39
|
+
ids: string[];
|
|
40
|
+
redaction: RedactionType;
|
|
41
|
+
table: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IGetByIdInput {
|
|
44
|
+
records: ISkyflowIdRecord[];
|
|
45
|
+
}
|
|
46
|
+
export declare enum RequestMethod {
|
|
47
|
+
GET = "GET",
|
|
48
|
+
POST = "POST",
|
|
49
|
+
PUT = "PUT",
|
|
50
|
+
PATCH = "PATCH",
|
|
51
|
+
DELETE = "DELETE"
|
|
52
|
+
}
|
|
53
|
+
export interface IGatewayConfig {
|
|
54
|
+
gatewayURL: string;
|
|
55
|
+
methodName: RequestMethod;
|
|
56
|
+
pathParams?: any;
|
|
57
|
+
queryParams?: any;
|
|
58
|
+
requestBody?: any;
|
|
59
|
+
requestHeader?: any;
|
|
60
|
+
responseBody?: any;
|
|
34
61
|
}
|
|
35
62
|
declare class Skyflow {
|
|
36
63
|
#private;
|
|
@@ -38,9 +65,12 @@ declare class Skyflow {
|
|
|
38
65
|
static init(config: ISkyflow): Skyflow;
|
|
39
66
|
container(type: ContainerType, options?: Record<string, any>): CollectContainer | RevealContainer;
|
|
40
67
|
insert(records: IInsertRecordInput, options?: Record<string, any>): Promise<any>;
|
|
41
|
-
|
|
68
|
+
detokenize(detokenizeInput: IDetokenizeInput): Promise<IRevealResponseType>;
|
|
69
|
+
getById(getByIdInput: IGetByIdInput): Promise<unknown>;
|
|
70
|
+
invokeGateway(config: IGatewayConfig): Promise<unknown>;
|
|
42
71
|
static get ContainerType(): typeof ContainerType;
|
|
43
72
|
static get ElementType(): typeof ElementType;
|
|
44
73
|
static get RedactionType(): typeof RedactionType;
|
|
74
|
+
static get RequestMethod(): typeof RequestMethod;
|
|
45
75
|
}
|
|
46
76
|
export default Skyflow;
|
package/types/client/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { ISkyflow } from
|
|
1
|
+
import { ISkyflow } from '../Skyflow';
|
|
2
2
|
export interface IClientRequest {
|
|
3
3
|
body?: Record<string, any>;
|
|
4
4
|
headers?: Record<string, string>;
|
|
5
|
-
requestMethod:
|
|
5
|
+
requestMethod: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'PATCH';
|
|
6
6
|
url: string;
|
|
7
7
|
}
|
|
8
8
|
declare class Client {
|
|
9
9
|
#private;
|
|
10
10
|
config: ISkyflow;
|
|
11
|
-
accessToken: string;
|
|
12
11
|
constructor(config: ISkyflow, metadata: any);
|
|
13
12
|
toJSON(): {
|
|
14
13
|
config: ISkyflow;
|
|
@@ -5,7 +5,9 @@ export declare const FRAME_REVEAL = "reveal";
|
|
|
5
5
|
export declare const FRAME_ELEMENT = "element";
|
|
6
6
|
export declare const PUREJS_TYPES: {
|
|
7
7
|
INSERT: string;
|
|
8
|
-
|
|
8
|
+
DETOKENIZE: string;
|
|
9
|
+
GET_BY_SKYFLOWID: string;
|
|
10
|
+
INVOKE_GATEWAY: string;
|
|
9
11
|
};
|
|
10
12
|
export declare const ELEMENT_EVENTS_TO_CLIENT: {
|
|
11
13
|
CHANGE: string;
|
|
@@ -33,6 +35,9 @@ export declare const ELEMENT_EVENTS_TO_IFRAME: {
|
|
|
33
35
|
PUREJS_REQUEST: string;
|
|
34
36
|
PUREJS_FRAME_READY: string;
|
|
35
37
|
PUREJS_GET_ACCESS_TOKEN: string;
|
|
38
|
+
GET_BEARER_TOKEN: string;
|
|
39
|
+
GET_COLLECT_ELEMENT: string;
|
|
40
|
+
GET_REVEAL_ELEMENT: string;
|
|
36
41
|
};
|
|
37
42
|
export declare const ELEMENT_EVENTS_TO_CONTAINER: {
|
|
38
43
|
ELEMENT_MOUNTED: string;
|
|
@@ -238,7 +243,7 @@ export declare const IFRAME_DEFAULT_STYLES: {
|
|
|
238
243
|
position: string;
|
|
239
244
|
top: number;
|
|
240
245
|
left: number;
|
|
241
|
-
|
|
246
|
+
'user-select': string;
|
|
242
247
|
};
|
|
243
248
|
export declare const CONTROLLER_STYLES: {
|
|
244
249
|
position: string;
|
|
@@ -247,7 +252,7 @@ export declare const CONTROLLER_STYLES: {
|
|
|
247
252
|
height: number;
|
|
248
253
|
visibility: string;
|
|
249
254
|
left: string;
|
|
250
|
-
|
|
255
|
+
'user-select': string;
|
|
251
256
|
};
|
|
252
257
|
export declare const INPUT_STYLES: {
|
|
253
258
|
width: string;
|
|
@@ -262,8 +267,8 @@ export declare const ERROR_TEXT_STYLES: {
|
|
|
262
267
|
padding: string;
|
|
263
268
|
};
|
|
264
269
|
export declare const ALLOWED_ATTRIBUTES: {
|
|
265
|
-
|
|
266
|
-
|
|
270
|
+
'aria-invalid': string;
|
|
271
|
+
'aria-required': string;
|
|
267
272
|
disabled: string;
|
|
268
273
|
placeholder: string;
|
|
269
274
|
};
|
|
@@ -278,13 +283,27 @@ export declare const STYLE_TYPE: {
|
|
|
278
283
|
EMPTY: string;
|
|
279
284
|
INVALID: string;
|
|
280
285
|
};
|
|
281
|
-
export declare const
|
|
286
|
+
export declare const REVEAL_ELEMENT_DIV_STYLE: {
|
|
282
287
|
container: {
|
|
283
288
|
display: string;
|
|
284
289
|
flexDirection: string;
|
|
285
290
|
justifyContent: string;
|
|
286
291
|
};
|
|
287
|
-
|
|
292
|
+
};
|
|
293
|
+
export declare const REVEAL_ELEMENT_LABEL_DEFAULT_STYLES: {
|
|
294
|
+
[x: string]: {
|
|
295
|
+
'margin-bottom': string;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
export declare const REVEAL_ELEMENT_ERROR_TEXT_DEFAULT_STYLES: {
|
|
299
|
+
[x: string]: {
|
|
300
|
+
marginTop: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
export declare const REVEAL_ELEMENT_ERROR_TEXT = "Invalid Token";
|
|
304
|
+
export declare const COLLECT_ELEMENT_LABEL_DEFAULT_STYLES: {
|
|
305
|
+
[x: string]: {
|
|
288
306
|
marginBottom: string;
|
|
289
307
|
};
|
|
290
308
|
};
|
|
309
|
+
export declare const gatewayConfigParseKeys: string[];
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { IInsertRecordInput } from '../../Skyflow';
|
|
2
|
+
import { ElementType } from '../constants';
|
|
3
|
+
import Element from './element';
|
|
3
4
|
interface CollectElementInput {
|
|
4
|
-
table
|
|
5
|
-
column
|
|
6
|
-
|
|
5
|
+
table?: string;
|
|
6
|
+
column?: string;
|
|
7
|
+
inputStyles?: object;
|
|
7
8
|
label?: string;
|
|
9
|
+
labelStyles?: object;
|
|
10
|
+
errorTextStyles?: object;
|
|
8
11
|
placeholder?: string;
|
|
9
12
|
type: ElementType;
|
|
13
|
+
altText?: string;
|
|
14
|
+
}
|
|
15
|
+
interface ICollectOptions {
|
|
16
|
+
tokens?: boolean;
|
|
17
|
+
additionalFields?: IInsertRecordInput;
|
|
10
18
|
}
|
|
11
19
|
declare class CollectContainer {
|
|
12
20
|
#private;
|
|
13
21
|
constructor(options: any, metaData: any);
|
|
14
22
|
create: (input: CollectElementInput, options?: any) => Element;
|
|
15
|
-
collect: (options?:
|
|
23
|
+
collect: (options?: ICollectOptions) => Promise<unknown>;
|
|
16
24
|
}
|
|
17
25
|
export default CollectContainer;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { IRevealRecord } from
|
|
1
|
+
import { IGatewayConfig, IRevealRecord, ISkyflowIdRecord } from '../../Skyflow';
|
|
2
2
|
declare class PureJsController {
|
|
3
3
|
#private;
|
|
4
4
|
constructor(client: any);
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
detokenize(records: IRevealRecord[]): Promise<any>;
|
|
6
|
+
insert(records: any, options: any): Promise<any>;
|
|
7
|
+
getById(records: ISkyflowIdRecord[]): Promise<unknown>;
|
|
8
|
+
invokeGateway(config: IGatewayConfig): Promise<unknown>;
|
|
7
9
|
}
|
|
8
10
|
export default PureJsController;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { RedactionType } from
|
|
2
|
-
import RevealElement from
|
|
1
|
+
import { RedactionType } from '../../Skyflow';
|
|
2
|
+
import RevealElement from './reveal/RevealElement';
|
|
3
3
|
export interface IRevealElementInput {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
token?: string;
|
|
5
|
+
redaction?: RedactionType;
|
|
6
|
+
inputStyles?: object;
|
|
6
7
|
label?: string;
|
|
7
|
-
|
|
8
|
+
labelStyles?: object;
|
|
9
|
+
altText?: string;
|
|
10
|
+
errorTextStyles?: object;
|
|
8
11
|
}
|
|
9
12
|
declare class RevealContainer {
|
|
10
13
|
#private;
|
|
11
14
|
constructor(metaData: any);
|
|
12
15
|
create(record: IRevealElementInput): RevealElement;
|
|
13
16
|
reveal(): Promise<unknown>;
|
|
14
|
-
private validateRevealElementInput;
|
|
15
17
|
}
|
|
16
18
|
export default RevealContainer;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { IRevealElementInput } from
|
|
1
|
+
import { IRevealElementInput } from '../RevealContainer';
|
|
2
2
|
declare class RevealElement {
|
|
3
3
|
#private;
|
|
4
4
|
constructor(record: IRevealElementInput, metaData: any, containerId: string);
|
|
5
5
|
mount(domElementSelector: any): void;
|
|
6
|
+
iframeName(): string;
|
|
7
|
+
isMounted(): boolean;
|
|
8
|
+
hasToken(): boolean;
|
|
6
9
|
}
|
|
7
10
|
export default RevealElement;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import EventEmitter from
|
|
2
|
-
export declare class IFrameForm {
|
|
3
|
-
private iFrameFormElements;
|
|
4
|
-
private client?;
|
|
5
|
-
private clientMetaData?;
|
|
6
|
-
private callbacks;
|
|
7
|
-
private controllerId;
|
|
8
|
-
private clientDomain;
|
|
9
|
-
constructor(controllerId: string, clientDomain: string);
|
|
10
|
-
setClient(client: any): void;
|
|
11
|
-
setClientMetadata(clientMetaData: any): void;
|
|
12
|
-
private getOrCreateIFrameFormElement;
|
|
13
|
-
tokenize: (options: any) => Promise<unknown>;
|
|
14
|
-
private initializeFrame;
|
|
15
|
-
}
|
|
1
|
+
import EventEmitter from '../../../event-emitter';
|
|
16
2
|
export declare class IFrameFormElement extends EventEmitter {
|
|
17
3
|
state: {
|
|
18
4
|
value: string | undefined;
|
|
@@ -54,3 +40,17 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
54
40
|
resetData(): void;
|
|
55
41
|
destroy(): void;
|
|
56
42
|
}
|
|
43
|
+
export declare class IFrameForm {
|
|
44
|
+
private iFrameFormElements;
|
|
45
|
+
private client?;
|
|
46
|
+
private clientMetaData?;
|
|
47
|
+
private callbacks;
|
|
48
|
+
private controllerId;
|
|
49
|
+
private clientDomain;
|
|
50
|
+
constructor(controllerId: string, clientDomain: string);
|
|
51
|
+
setClient(client: any): void;
|
|
52
|
+
setClientMetadata(clientMetaData: any): void;
|
|
53
|
+
private getOrCreateIFrameFormElement;
|
|
54
|
+
tokenize: (options: any) => Promise<unknown>;
|
|
55
|
+
private initializeFrame;
|
|
56
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { IFrameFormElement } from
|
|
1
|
+
import 'jquery-mask-plugin/dist/jquery.mask.min';
|
|
2
|
+
import { IFrameFormElement } from './iFrameForm';
|
|
3
3
|
export declare class FrameController {
|
|
4
4
|
#private;
|
|
5
5
|
controller?: FrameController;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { IGatewayConfig } from '../../../Skyflow';
|
|
1
2
|
declare class PureJsFrameController {
|
|
2
3
|
#private;
|
|
3
4
|
constructor();
|
|
4
5
|
static init(): PureJsFrameController;
|
|
5
6
|
insertData(records: any, options: any): Promise<unknown>;
|
|
7
|
+
sendInvokeGateWayRequest(config: IGatewayConfig): Promise<unknown>;
|
|
6
8
|
}
|
|
7
9
|
export default PureJsFrameController;
|
package/types/core/collect.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IInsertRecordInput, IInsertRecord } from
|
|
1
|
+
import { IInsertRecordInput, IInsertRecord } from '../Skyflow';
|
|
2
2
|
export declare const constructInsertRecordRequest: (records: IInsertRecordInput, options?: Record<string, any>) => any;
|
|
3
3
|
export declare const constructInsertRecordResponse: (responseBody: any, tokens: boolean, records: IInsertRecord[]) => {
|
|
4
4
|
records: any;
|
package/types/core/reveal.d.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import Client from
|
|
2
|
-
import { IRevealRecord,
|
|
3
|
-
export declare const fetchRecordsByTokenId: (tokenIdRecords: IRevealRecord[], client: Client) => Promise<
|
|
4
|
-
export declare const formatRecordsForIframe: (response:
|
|
5
|
-
export declare const formatRecordsForClient: (response:
|
|
1
|
+
import Client from '../client';
|
|
2
|
+
import { IRevealRecord, ISkyflowIdRecord, IRevealResponseType } from '../Skyflow';
|
|
3
|
+
export declare const fetchRecordsByTokenId: (tokenIdRecords: IRevealRecord[], client: Client) => Promise<IRevealResponseType>;
|
|
4
|
+
export declare const formatRecordsForIframe: (response: IRevealResponseType) => Record<string, string>;
|
|
5
|
+
export declare const formatRecordsForClient: (response: IRevealResponseType) => {
|
|
6
6
|
success: {
|
|
7
|
-
|
|
7
|
+
token: string;
|
|
8
8
|
}[];
|
|
9
9
|
errors: Record<string, any>[];
|
|
10
|
+
} | {
|
|
11
|
+
success: {
|
|
12
|
+
token: string;
|
|
13
|
+
}[];
|
|
14
|
+
errors?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
errors: Record<string, any>[] | undefined;
|
|
17
|
+
success?: undefined;
|
|
10
18
|
};
|
|
19
|
+
export declare const fetchRecordsBySkyflowID: (skyflowIdRecords: ISkyflowIdRecord[], client: Client) => Promise<unknown>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
declare const _default: (options?: {}) => HTMLIFrameElement;
|
|
2
|
-
export default _default;
|
|
3
1
|
export declare const iframeDefaultAttributes: {
|
|
4
2
|
src: string;
|
|
5
3
|
frameBorder: number;
|
|
@@ -7,6 +5,8 @@ export declare const iframeDefaultAttributes: {
|
|
|
7
5
|
scrolling: string;
|
|
8
6
|
style: string;
|
|
9
7
|
};
|
|
10
|
-
export declare const getIframeSrc: (uuid: any) => string;
|
|
11
8
|
export declare const setAttributes: (element: any, attributes: any) => void;
|
|
9
|
+
declare const _default: (options?: {}) => HTMLIFrameElement;
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const getIframeSrc: () => string;
|
|
12
12
|
export declare const setStyles: (element: HTMLElement, styles: any) => void;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "core-js/stable";
|
|
1
|
+
import 'core-js/stable';
|
package/types/index-node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Skyflow from
|
|
1
|
+
import Skyflow from './Skyflow';
|
|
2
2
|
export default Skyflow;
|
package/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'core-js/stable';
|
package/types/libs/Bus.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FramebusOnHandler, FramebusReplyHandler } from
|
|
1
|
+
import { FramebusOnHandler, FramebusReplyHandler } from 'framebus/dist/lib/types';
|
|
2
2
|
declare class Bus {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
listeners: any[];
|
|
4
|
+
isDestroyed: boolean;
|
|
5
5
|
constructor();
|
|
6
6
|
on(eventName: string, callback: FramebusOnHandler): void;
|
|
7
7
|
off(eventName: string, callback: FramebusOnHandler): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function validateAndSetupGroupOptions(oldGroup: any, newGroup?: any, setup?: boolean): any;
|
|
2
1
|
export declare function validateElementOptions(elementType: string, oldOptions: any, newOptions?: any): void;
|
|
2
|
+
export declare function validateAndSetupGroupOptions(oldGroup: any, newGroup?: any, setup?: boolean): any;
|
|
3
3
|
export declare const getElements: (group: any) => string[];
|
|
4
4
|
export declare const getValueAndItsUnit: (string?: string, defaultValue?: string, defaultUnit?: string) => string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export default function getCssClassesFromJss(styles: any, name: any): Record<string | number | symbol, string>;
|
package/types/libs/regex.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const regExFromString: (regExString: string) => RegExp;
|
|
2
|
+
export default regExFromString;
|
package/types/libs/strings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const mask: (value: string | undefined, prevValue: string | undefined, maskObject: any, focus: any) => string;
|
|
2
1
|
export declare const unMask: (value: string | undefined, maskObject: any) => string;
|
|
3
2
|
export declare const splice: (string: string, index: number, removeCount: number, adder: string) => string;
|
|
4
3
|
export declare const replaceAt: (str: string, index: number, replacer?: string) => string;
|
|
4
|
+
export declare const mask: (value: string | undefined, prevValue: string | undefined, maskObject: any, focus: any) => string;
|
package/types/libs/styles.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare function splitStyles(styles: any): {}[];
|
|
2
2
|
export declare function buildStylesFromClassesAndStyles(classes: any, styles: any): void;
|
|
3
3
|
export declare const getFlexGridStyles: (obj: any) => {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
'align-items': any;
|
|
5
|
+
'justify-content': any;
|
|
6
6
|
height: string;
|
|
7
7
|
width: string;
|
|
8
8
|
margin: string;
|
package/types/properties.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const flattenObject: (obj: any, roots?: any, sep?: string) => any;
|
|
2
|
+
export declare function deletePropertyPath(obj: any, path: any): void;
|
|
3
|
+
export declare function clearEmpties(o: any): void;
|
|
4
|
+
export declare function formatFrameNameToId(name: string): string;
|
|
5
|
+
export declare function fillUrlWithPathAndQueryParams(url: string, pathParams?: object, queryParams?: object): string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const isTokenValid: (token: string) => boolean;
|
|
2
|
+
export default isTokenValid;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRevealElementInput } from '../../container/external/RevealContainer';
|
|
2
|
+
import { IGatewayConfig, IDetokenizeInput, IGetByIdInput, IInsertRecordInput } from '../../Skyflow';
|
|
2
3
|
export declare const validateCreditCardNumber: (cardNumber: string) => boolean;
|
|
3
4
|
export declare const validateExpiryDate: (date: string) => boolean;
|
|
4
5
|
export declare const validateInsertRecords: (recordObj: IInsertRecordInput) => void;
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const validateDetokenizeInput: (detokenizeInput: IDetokenizeInput) => void;
|
|
7
|
+
export declare const validateGetByIdInput: (getByIdInput: IGetByIdInput) => void;
|
|
8
|
+
export declare const validateRevealElementRecords: (records: IRevealElementInput[]) => void;
|
|
9
|
+
export declare const isValidURL: (url: string) => boolean;
|
|
10
|
+
export declare const validateGatewayConfig: (config: IGatewayConfig) => void;
|
package/types/libs/NewBus.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FramebusOnHandler, FramebusReplyHandler } from "framebus/dist/lib/types";
|
|
2
|
-
declare class NewBus {
|
|
3
|
-
static _unlistnedEmitters: any[];
|
|
4
|
-
static _listeners: any[];
|
|
5
|
-
_isDestroyed: boolean;
|
|
6
|
-
constructor();
|
|
7
|
-
on(eventName: string, callback: FramebusOnHandler): void;
|
|
8
|
-
off(eventName: string, callback: FramebusOnHandler): void;
|
|
9
|
-
emit(eventName: string, data: Record<string, unknown> | undefined, callback?: FramebusReplyHandler | undefined): void;
|
|
10
|
-
hasListener(eventName: string): boolean;
|
|
11
|
-
hasUnListened(eventName: string): boolean;
|
|
12
|
-
}
|
|
13
|
-
export default NewBus;
|