@bootpay/client-js 5.2.0-beta.2 → 5.2.0-beta.20
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/dist/index.d.ts +3 -0
- package/dist/index.mjs +9524 -0
- package/dist/index.umd.js +76 -57
- package/dist/src/bootpay-environment.d.ts +1 -0
- package/dist/src/bootpay-es5.d.ts +2 -1
- package/dist/src/bootpay-sdk.d.ts +3 -2
- package/dist/src/bootpay-widget.d.ts +4 -2
- package/dist/src/bootpay.d.ts +4 -3
- package/dist/src/index.d.ts +12 -12
- package/dist/src/lib/analytics.d.ts +2 -1
- package/dist/src/lib/bootpay-store.d.ts +1 -0
- package/dist/src/lib/bootpay-widget.d.ts +3 -2
- package/dist/src/lib/bootpay.d.ts +4 -3
- package/dist/src/lib/event/hooks/slider/event.d.ts +6 -0
- package/dist/src/lib/event/hooks/widget/message.d.ts +16 -4
- package/dist/src/lib/event/payment.d.ts +3 -2
- package/dist/src/lib/event/polling.d.ts +3 -2
- package/dist/src/lib/event/slider.d.ts +7 -0
- package/dist/src/lib/event/store.d.ts +1 -0
- package/dist/src/lib/event/user-token.d.ts +2 -1
- package/dist/src/lib/event/widget.d.ts +1 -0
- package/dist/src/lib/locale/message.d.ts +1 -1
- package/dist/src/lib/template/brandpay.d.ts +17 -4
- package/dist/src/lib/template/confirm-modal.d.ts +2 -1
- package/dist/src/lib/template/modal.d.ts +2 -1
- package/dist/src/lib/template/payment.d.ts +4 -3
- package/dist/src/lib/template/slider.d.ts +21 -0
- package/dist/src/lib/template/store.d.ts +1 -0
- package/dist/src/lib/template/user-token.d.ts +14 -4
- package/dist/src/lib/template/widget.d.ts +5 -5
- package/dist/src/support/alfred-progress/index.d.ts +2 -1
- package/dist/src/support/event-logger.d.ts +1 -0
- package/dist/src/support/event.d.ts +4 -1
- package/dist/src/support/ex-store.d.ts +2 -1
- package/dist/src/support/hook.d.ts +12 -0
- package/dist/src/support/hooks/widget-hooks.d.ts +9 -0
- package/dist/src/support/resource.d.ts +1 -0
- package/dist/src/support/session.d.ts +16 -0
- package/dist/src/support/storage.d.ts +2 -1
- package/dist/src/support/stores/bootpay-store.d.ts +4 -0
- package/dist/src/support/stores/widget-store.d.ts +3 -2
- package/dist/src/support/template-manager.d.ts +10 -3
- package/dist/src/types/bootpay-ex-interface.d.ts +53 -0
- package/dist/src/types/bootpay-interface.d.ts +312 -0
- package/dist/src/types/bootpay-sdk-interface.d.ts +17 -0
- package/dist/src/types/bootpay-widget-interface.d.ts +121 -0
- package/package.json +14 -4
- package/tsconfig.json +10 -6
- package/vite.config.ts +8 -9
- package/dist/index.es.js +0 -8387
- package/dist/package.json.d.ts +0 -56
- package/dist/src/bootpay-wallet.d.ts +0 -15
- package/dist/src/lib/bootpay-wallet.d.ts +0 -7
- package/dist/src/lib/event/hooks/wallet/message.d.ts +0 -24
- package/dist/src/lib/event/wallet.d.ts +0 -6
- package/dist/src/lib/template/wallet.d.ts +0 -15
- package/dist/src/support/stores/wallet-store.d.ts +0 -11
- package/dist/src/support/widget-store.d.ts +0 -20
- package/dist/vite.config.d.ts +0 -2
package/dist/package.json.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.2.0-beta.2",
|
|
4
|
-
"main": "dist/index.es.js",
|
|
5
|
-
"types": "dist/src/index.d.ts",
|
|
6
|
-
"styles": "dist/index.css",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"build": "rm -rf ./dist && vite build",
|
|
10
|
-
"deploy": "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"typescript": "^5.5.4"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@types/ws": "^8.5.5",
|
|
17
|
-
"@types/node": "^18.15.3",
|
|
18
|
-
"@webpack-cli/serve": "^2.0.5",
|
|
19
|
-
"webpack-dev-server": "^4.15.1",
|
|
20
|
-
"webpack": "^5.87.0",
|
|
21
|
-
"webpack-cli": "^5.1.4",
|
|
22
|
-
"axios": "^0.27.2",
|
|
23
|
-
"crypto-js": "^4.1.1",
|
|
24
|
-
"@types/crypto-js": "^4.1.1",
|
|
25
|
-
"@babel/core": "^7.22.5",
|
|
26
|
-
"@babel/plugin-transform-regenerator": "^7.22.5",
|
|
27
|
-
"@babel/plugin-transform-runtime": "^7.22.5",
|
|
28
|
-
"@babel/plugin-transform-object-assign": "^7.22.5",
|
|
29
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
30
|
-
"@babel/plugin-transform-destructuring": "^7.24.8",
|
|
31
|
-
"@babel/preset-env": "^7.22.5",
|
|
32
|
-
"@babel/preset-typescript": "^7.22.5",
|
|
33
|
-
"@babel/runtime-corejs3": "^7.22.5",
|
|
34
|
-
"@babel/plugin-transform-classes": "^7.22.5",
|
|
35
|
-
"core-js": "^3.31.0",
|
|
36
|
-
"babel-loader": "^9.1.2",
|
|
37
|
-
"css-loader": "^6.8.1",
|
|
38
|
-
"sass": "^1.63.4",
|
|
39
|
-
"sass-loader": "^13.3.2",
|
|
40
|
-
"style-loader": "^3.3.3",
|
|
41
|
-
"vite": "^5.4.3",
|
|
42
|
-
"vite-plugin-dts": "^3.6.4",
|
|
43
|
-
"vite-plugin-tsconfig": "^1.0.4",
|
|
44
|
-
"vite-plugin-css-injected-by-js": "^3.3.0"
|
|
45
|
-
},
|
|
46
|
-
"resolutions": {
|
|
47
|
-
"@webpack-cli/serve": "^1.3.1"
|
|
48
|
-
},
|
|
49
|
-
"keywords": [],
|
|
50
|
-
"author": "",
|
|
51
|
-
"license": "ISC",
|
|
52
|
-
"description": ""
|
|
53
|
-
}
|
|
54
|
-
;
|
|
55
|
-
|
|
56
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RequestPaymentWalletModel } from './models/bootpay-wallet-interface';
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
BootpayWallet: BootpayWalletInterface;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export interface BootpayWalletInterface {
|
|
8
|
-
render(el: string, data: RequestPaymentWalletModel): void;
|
|
9
|
-
rerender(): void;
|
|
10
|
-
setEnvironmentMode(env: 'development' | 'stage' | 'production', hostname: string | undefined | null): void;
|
|
11
|
-
isRendered(): boolean;
|
|
12
|
-
synchronizedFromBootpay(data: any): void;
|
|
13
|
-
}
|
|
14
|
-
declare const BootpayWallet: BootpayWalletInterface;
|
|
15
|
-
export default BootpayWallet;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BootpayManager } from '../support/bootpay-manager';
|
|
2
|
-
import { RequestPaymentWalletModel } from '../models/bootpay-wallet-interface';
|
|
3
|
-
export declare class BootpayWalletWindowManger extends BootpayManager {
|
|
4
|
-
constructor();
|
|
5
|
-
render(el: string, data: RequestPaymentWalletModel): void;
|
|
6
|
-
}
|
|
7
|
-
export declare const BootpayWalletWindow: BootpayWalletWindowManger;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const WalletWindowMessage: {
|
|
2
|
-
resize: (data: ExResizeData) => void;
|
|
3
|
-
showModal: (data: {
|
|
4
|
-
url: string;
|
|
5
|
-
}) => void;
|
|
6
|
-
resizeModal: (data: ExResizeData) => void;
|
|
7
|
-
closeModal: () => void;
|
|
8
|
-
confirmModal: (data: {
|
|
9
|
-
message: string;
|
|
10
|
-
title: string;
|
|
11
|
-
confirmButtonText: string;
|
|
12
|
-
cancelButtonText: string;
|
|
13
|
-
confirm: boolean;
|
|
14
|
-
}) => void;
|
|
15
|
-
/**
|
|
16
|
-
* 결제수단정보 추가가 완료된 경우
|
|
17
|
-
* Comment by GOSOMI
|
|
18
|
-
* @date: 2025-01-17
|
|
19
|
-
*/
|
|
20
|
-
addedSuccess: (data: any) => void;
|
|
21
|
-
synchronize: (data: any) => void;
|
|
22
|
-
onReady: (data: any) => void;
|
|
23
|
-
onChange: (data: any) => void;
|
|
24
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TemplateManager } from '../../support/template-manager';
|
|
2
|
-
import { WalletStoreManager } from '../../support/stores/wallet-store';
|
|
3
|
-
declare class TemplateWalletManager extends TemplateManager {
|
|
4
|
-
el: string;
|
|
5
|
-
$template: string;
|
|
6
|
-
$walletStore: WalletStoreManager;
|
|
7
|
-
$iFrameId: string;
|
|
8
|
-
constructor();
|
|
9
|
-
render(el: string): void;
|
|
10
|
-
templateRender(): void;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
resize(resizeData: any): void;
|
|
13
|
-
}
|
|
14
|
-
export declare const BootpayWalletTemplate: TemplateWalletManager;
|
|
15
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BootpayStoreManager } from './bootpay-store';
|
|
2
|
-
import { RequestPaymentWalletModel } from '../../models/bootpay-wallet-interface';
|
|
3
|
-
export declare class WalletStoreManager extends BootpayStoreManager {
|
|
4
|
-
data: RequestPaymentWalletModel;
|
|
5
|
-
constructor();
|
|
6
|
-
encryptKey(): string;
|
|
7
|
-
set(data: RequestPaymentWalletModel): void;
|
|
8
|
-
callHook(name: string, data: any): void;
|
|
9
|
-
encryptParameters(): string;
|
|
10
|
-
}
|
|
11
|
-
export declare const WalletStore: WalletStoreManager;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '../models/bootpay-widget-interface';
|
|
2
|
-
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '../models/bootpay-interface';
|
|
3
|
-
export interface WidgetStoreModel {
|
|
4
|
-
el: string | undefined;
|
|
5
|
-
data?: RequestBootpayWidgetModel;
|
|
6
|
-
termsPassed: boolean;
|
|
7
|
-
widgetType: number;
|
|
8
|
-
widgetExtra: WidgetExtraModel | undefined;
|
|
9
|
-
hooks: WidgetHookFunction;
|
|
10
|
-
setWidgetData(element: string, data: RequestBootpayWidgetModel): void;
|
|
11
|
-
setPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
|
|
12
|
-
updateOnProcessing(data: WidgetStoreData): void;
|
|
13
|
-
encryptParameters(): string;
|
|
14
|
-
encrypt(data: object | string): string;
|
|
15
|
-
decrypt(data: string): any | string;
|
|
16
|
-
getExtra(externalExtra: ExtraModel | undefined): ExtraModel;
|
|
17
|
-
getRequestPaymentData(data: RequestBootpayWidgetModel | RequestSubscriptionModel): RequestBootpayWidgetModel | RequestSubscriptionModel;
|
|
18
|
-
callHook(name: string, data: any): void;
|
|
19
|
-
}
|
|
20
|
-
export declare const WidgetStore: WidgetStoreModel;
|
package/dist/vite.config.d.ts
DELETED