@tonder.io/rn-sdk 0.1.1 → 0.1.3-beta.1
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 +3 -3
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/services/SkyflowService.js +3 -3
- package/lib/commonjs/services/SkyflowService.js.map +1 -1
- package/lib/commonjs/shared/constants/skyflow.js +3 -3
- package/lib/commonjs/shared/constants/skyflow.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardCVVInput.js +2 -2
- package/lib/commonjs/ui/components/Input/CardCVVInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js +2 -2
- package/lib/commonjs/ui/components/Input/CardExpirationMonthInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js +2 -2
- package/lib/commonjs/ui/components/Input/CardExpirationYearInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardHolderInput.js +2 -2
- package/lib/commonjs/ui/components/Input/CardHolderInput.js.map +1 -1
- package/lib/commonjs/ui/components/Input/CardNumberInput.js +2 -2
- package/lib/commonjs/ui/components/Input/CardNumberInput.js.map +1 -1
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js +2 -2
- package/lib/commonjs/ui/providers/SkyflowContainerWrapper/index.js.map +1 -1
- package/lib/commonjs/ui/providers/TonderProvider/index.js +2 -2
- package/lib/commonjs/ui/providers/TonderProvider/index.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/services/SkyflowService.js +1 -1
- package/lib/module/services/SkyflowService.js.map +1 -1
- package/lib/module/shared/constants/skyflow.js +1 -1
- package/lib/module/shared/constants/skyflow.js.map +1 -1
- package/lib/module/ui/components/Input/CardCVVInput.js +1 -1
- package/lib/module/ui/components/Input/CardCVVInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js +1 -1
- package/lib/module/ui/components/Input/CardExpirationMonthInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardExpirationYearInput.js +1 -1
- package/lib/module/ui/components/Input/CardExpirationYearInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardHolderInput.js +1 -1
- package/lib/module/ui/components/Input/CardHolderInput.js.map +1 -1
- package/lib/module/ui/components/Input/CardNumberInput.js +1 -1
- package/lib/module/ui/components/Input/CardNumberInput.js.map +1 -1
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js +1 -1
- package/lib/module/ui/providers/SkyflowContainerWrapper/index.js.map +1 -1
- package/lib/module/ui/providers/TonderProvider/index.js +1 -1
- package/lib/module/ui/providers/TonderProvider/index.js.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts +1 -1
- package/lib/typescript/commonjs/src/services/SkyflowService.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/shared/constants/skyflow.d.ts +2 -3
- package/lib/typescript/commonjs/src/shared/constants/skyflow.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/baseCheckout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/baseEnrollment.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/baseSDK.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/input.d.ts +1 -1
- package/lib/typescript/commonjs/src/types/input.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/services/SkyflowService.d.ts +1 -1
- package/lib/typescript/module/src/services/SkyflowService.d.ts.map +1 -1
- package/lib/typescript/module/src/shared/constants/skyflow.d.ts +2 -3
- package/lib/typescript/module/src/shared/constants/skyflow.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseCheckout.d.ts +1 -1
- package/lib/typescript/module/src/types/baseCheckout.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseEnrollment.d.ts +1 -1
- package/lib/typescript/module/src/types/baseEnrollment.d.ts.map +1 -1
- package/lib/typescript/module/src/types/baseSDK.d.ts +1 -1
- package/lib/typescript/module/src/types/baseSDK.d.ts.map +1 -1
- package/lib/typescript/module/src/types/input.d.ts +1 -1
- package/lib/typescript/module/src/types/input.d.ts.map +1 -1
- package/package.json +11 -10
- package/src/index.tsx +1 -0
- package/src/services/SkyflowService.ts +2 -2
- package/src/shared/constants/skyflow.ts +1 -1
- package/src/types/baseCheckout.ts +1 -1
- package/src/types/baseEnrollment.ts +1 -1
- package/src/types/baseSDK.ts +1 -1
- package/src/types/input.ts +1 -1
- package/src/ui/components/Input/CardCVVInput.tsx +1 -1
- package/src/ui/components/Input/CardExpirationMonthInput.tsx +1 -1
- package/src/ui/components/Input/CardExpirationYearInput.tsx +1 -1
- package/src/ui/components/Input/CardHolderInput.tsx +1 -1
- package/src/ui/components/Input/CardNumberInput.tsx +1 -1
- package/src/ui/providers/SkyflowContainerWrapper/index.tsx +1 -1
- package/src/ui/providers/TonderProvider/index.tsx +1 -1
- package/lib/commonjs/types/srn-temp.d.js +0 -2
- package/lib/commonjs/types/srn-temp.d.js.map +0 -1
- package/lib/module/types/srn-temp.d.js +0 -2
- package/lib/module/types/srn-temp.d.js.map +0 -1
- package/src/types/srn-temp.d.ts +0 -83
package/src/types/srn-temp.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
declare module 'skyflow-react-native' {
|
|
2
|
-
import type { StylesBaseVariant } from '../types';
|
|
3
|
-
export type IConfig = {
|
|
4
|
-
vaultID: string;
|
|
5
|
-
vaultURL: string;
|
|
6
|
-
getBearerToken: () => Promise<string>;
|
|
7
|
-
options?: Record<string, any>;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export enum LogLevel {
|
|
11
|
-
WARN = 'WARN',
|
|
12
|
-
INFO = 'INFO',
|
|
13
|
-
DEBUG = 'DEBUG',
|
|
14
|
-
ERROR = 'ERROR',
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export enum Env {
|
|
18
|
-
DEV = 'DEV',
|
|
19
|
-
PROD = 'PROD',
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const CardNumberElement: any;
|
|
23
|
-
export const CardHolderNameElement: any;
|
|
24
|
-
export const ExpirationMonthElement: any;
|
|
25
|
-
export const ExpirationYearElement: any;
|
|
26
|
-
|
|
27
|
-
export const CvvElement: any;
|
|
28
|
-
|
|
29
|
-
export interface ISkyflowProvider {
|
|
30
|
-
config: IConfig;
|
|
31
|
-
}
|
|
32
|
-
export const SkyflowProvider: React.FC<{ children: React.ReactNode }>;
|
|
33
|
-
export const useCollectContainer: () => any;
|
|
34
|
-
// export const useComposableContainer: () => any;
|
|
35
|
-
|
|
36
|
-
export const useSkyflow: () => any;
|
|
37
|
-
|
|
38
|
-
export interface IInsertRecord {
|
|
39
|
-
table: string;
|
|
40
|
-
fields: Record<string, any>;
|
|
41
|
-
}
|
|
42
|
-
export interface IInsertRecordInput {
|
|
43
|
-
records: IInsertRecord[];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface IUpsertInput {
|
|
47
|
-
table: string;
|
|
48
|
-
column: string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface ICollectOptions {
|
|
52
|
-
tokens?: boolean;
|
|
53
|
-
additionalFields?: IInsertRecordInput;
|
|
54
|
-
upsert?: IUpsertInput[];
|
|
55
|
-
}
|
|
56
|
-
export interface CollectContainer {
|
|
57
|
-
collect(options?: ICollectOptions): Promise<unknown>;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export enum ValidationRuleType {
|
|
61
|
-
REGEX_MATCH_RULE = 'REGEX_MATCH_RULE',
|
|
62
|
-
LENGTH_MATCH_RULE = 'LENGTH_MATCH_RULE',
|
|
63
|
-
}
|
|
64
|
-
export interface StylesFocusVariant {
|
|
65
|
-
focus?: Record<string, any>;
|
|
66
|
-
}
|
|
67
|
-
export interface CollectInputStylesVariant
|
|
68
|
-
extends StylesBaseVariant,
|
|
69
|
-
StylesFocusVariant {
|
|
70
|
-
base?: Record<string, any>;
|
|
71
|
-
complete?: Record<string, any>;
|
|
72
|
-
invalid?: Record<string, any>;
|
|
73
|
-
empty?: Record<string, any>;
|
|
74
|
-
container?: Record<string, any>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface CollectLabelStylesVariant
|
|
78
|
-
extends StylesBaseVariant,
|
|
79
|
-
StylesFocusVariant {
|
|
80
|
-
base?: Record<string, any>;
|
|
81
|
-
requiredAsterisk?: Record<string, any>;
|
|
82
|
-
}
|
|
83
|
-
}
|