@bootpay/client-js 5.2.0-beta.9 → 5.2.0-rc.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/.gitmodules +3 -0
- package/dist/index.mjs +2899 -2918
- package/dist/index.umd.js +47 -64
- package/dist/src/bootpay-environment.d.ts +1 -1
- package/dist/src/bootpay-es5.d.ts +1 -1
- package/dist/src/bootpay-sdk.d.ts +2 -2
- package/dist/src/bootpay-widget.d.ts +3 -2
- package/dist/src/bootpay.d.ts +4 -4
- package/dist/src/index.d.ts +10 -12
- package/dist/src/lib/analytics.d.ts +3 -3
- package/dist/src/lib/bootpay-widget.d.ts +3 -3
- package/dist/src/lib/bootpay.d.ts +4 -4
- package/dist/src/lib/event/hooks/widget/message.d.ts +10 -3
- package/dist/src/lib/event/payment.d.ts +38 -2
- package/dist/src/lib/event/polling.d.ts +2 -2
- package/dist/src/lib/event/user-token.d.ts +7 -1
- package/dist/src/lib/event/widget.d.ts +1 -1
- package/dist/src/lib/template/brandpay.d.ts +14 -5
- package/dist/src/lib/template/payment.d.ts +27 -3
- package/dist/src/lib/template/user-token.d.ts +19 -4
- package/dist/src/lib/template/widget.d.ts +5 -6
- package/dist/src/support/event-logger.d.ts +2 -2
- package/dist/src/support/hooks/widget-hooks.d.ts +9 -0
- package/dist/src/support/stores/widget-store.d.ts +22 -4
- package/dist/src/types/bootpay-interface.d.ts +299 -0
- package/dist/src/types/bootpay-sdk-interface.d.ts +17 -0
- package/dist/src/types/bootpay-widget-interface.d.ts +121 -0
- package/dist/src/{support → vendor/components}/alfred-progress/index.d.ts +1 -1
- package/dist/src/{lib/template → vendor/components}/confirm-modal.d.ts +2 -2
- package/dist/src/{lib/template → vendor/components}/modal.d.ts +2 -2
- package/dist/src/vendor/components/slider/hooks/slider/event.d.ts +4 -0
- package/dist/src/vendor/components/slider/index.d.ts +7 -0
- package/dist/src/vendor/components/slider/template/slider.d.ts +20 -0
- package/dist/src/vendor/mixins/bootpay-commerce.d.ts +11 -0
- package/dist/src/{support → vendor/mixins}/event.d.ts +3 -1
- package/dist/src/vendor/mixins/ex-commerce.d.ts +13 -0
- package/dist/src/vendor/mixins/hook.d.ts +12 -0
- package/dist/src/{support → vendor/mixins}/resource.d.ts +1 -1
- package/dist/src/vendor/mixins/session.d.ts +16 -0
- package/dist/src/{support → vendor/mixins}/storage.d.ts +1 -1
- package/dist/src/{support → vendor/mixins}/template-manager.d.ts +8 -2
- package/dist/src/vendor/types/slider-interface.d.ts +12 -0
- package/package.json +4 -6
- package/tsconfig.json +15 -3
- package/vite.config.ts +9 -7
- package/dist/package.json.d.ts +0 -68
- package/dist/src/bootpay-store.d.ts +0 -7
- package/dist/src/lib/bootpay-store.d.ts +0 -10
- package/dist/src/lib/event/hooks/ex/router.d.ts +0 -7
- package/dist/src/lib/event/hooks/ex/window.d.ts +0 -22
- package/dist/src/lib/event/store.d.ts +0 -7
- package/dist/src/lib/hooks/store.d.ts +0 -5
- package/dist/src/lib/template/store.d.ts +0 -35
- package/dist/src/support/ex-store.d.ts +0 -13
- package/dist/src/support/stores/bootpay-store.d.ts +0 -7
- package/dist/src/support/stores/ex-store.d.ts +0 -1
- package/dist/src/support/widget-store.d.ts +0 -21
- package/dist/vite.config.d.ts +0 -2
- /package/dist/src/{support → vendor/mixins}/bootpay-manager.d.ts +0 -0
- /package/dist/src/{support → vendor/mixins}/logger.d.ts +0 -0
- /package/dist/src/{support → vendor/mixins}/util.d.ts +0 -0
- /package/dist/src/{models → vendor/models}/const.d.ts +0 -0
package/vite.config.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineConfig } from 'vite'
|
|
2
|
+
import { resolve } from 'path'
|
|
2
3
|
import dts from 'vite-plugin-dts'
|
|
3
4
|
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
|
|
4
|
-
|
|
5
|
-
const path = require('path')
|
|
5
|
+
import path from 'path'
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
build: {
|
|
@@ -14,16 +14,18 @@ export default defineConfig({
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
plugins: [
|
|
17
|
-
dts({
|
|
18
|
-
tsconfigPath: path.resolve(__dirname, 'tsconfig.json'),
|
|
19
|
-
insertTypesEntry: true
|
|
20
|
-
}),
|
|
17
|
+
dts({ copyDtsFiles: true, insertTypesEntry: true }),
|
|
21
18
|
cssInjectedByJsPlugin()
|
|
22
19
|
],
|
|
23
20
|
base: './',
|
|
24
21
|
root: './',
|
|
25
22
|
publicDir: '_public',
|
|
26
23
|
resolve: {
|
|
27
|
-
extensions: ['.css', '.sass', '.scss', '.ts', '.js']
|
|
24
|
+
extensions: ['.css', '.sass', '.scss', '.ts', '.js', '.d.ts'],
|
|
25
|
+
alias: {
|
|
26
|
+
'~': resolve(__dirname, 'src'),
|
|
27
|
+
// 또는 프로젝트 루트를 원한다면
|
|
28
|
+
// '~': resolve(__dirname, '.'),
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
31
|
})
|
package/dist/package.json.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.2.0-beta.9",
|
|
4
|
-
"main": "dist/index.es.js",
|
|
5
|
-
"exports": {
|
|
6
|
-
".": {
|
|
7
|
-
"import": "./dist/index.es.js",
|
|
8
|
-
"require": "./dist/index.cjs.js",
|
|
9
|
-
"types": "./dist/index.d.ts"
|
|
10
|
-
},
|
|
11
|
-
"./package.json": "./package.json"
|
|
12
|
-
},
|
|
13
|
-
"styles": "dist/index.css",
|
|
14
|
-
"scripts": {
|
|
15
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
16
|
-
"build": "rm -rf ./dist && vite build",
|
|
17
|
-
"deploy": "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"typescript": "^5.5.4"
|
|
21
|
-
},
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@types/ws": "^8.5.5",
|
|
24
|
-
"@types/node": "^18.15.3",
|
|
25
|
-
"@webpack-cli/serve": "^2.0.5",
|
|
26
|
-
"webpack-dev-server": "^4.15.1",
|
|
27
|
-
"webpack": "^5.87.0",
|
|
28
|
-
"webpack-cli": "^5.1.4",
|
|
29
|
-
"axios": "^0.27.2",
|
|
30
|
-
"crypto-js": "^4.1.1",
|
|
31
|
-
"@types/crypto-js": "^4.1.1",
|
|
32
|
-
"@babel/core": "^7.22.5",
|
|
33
|
-
"@babel/plugin-transform-regenerator": "^7.22.5",
|
|
34
|
-
"@babel/plugin-transform-runtime": "^7.22.5",
|
|
35
|
-
"@babel/plugin-transform-object-assign": "^7.22.5",
|
|
36
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
37
|
-
"@babel/plugin-transform-destructuring": "^7.24.8",
|
|
38
|
-
"@babel/plugin-proposal-export-default-from": "^7.27.1",
|
|
39
|
-
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
40
|
-
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
41
|
-
"@babel/plugin-transform-private-methods": "^7.27.1",
|
|
42
|
-
"@babel/plugin-transform-typescript": "^7.28.0",
|
|
43
|
-
"@babel/preset-env": "^7.22.5",
|
|
44
|
-
"@babel/preset-typescript": "^7.22.5",
|
|
45
|
-
"@babel/runtime-corejs3": "^7.22.5",
|
|
46
|
-
"@babel/plugin-transform-classes": "^7.22.5",
|
|
47
|
-
"core-js": "^3.31.0",
|
|
48
|
-
"babel-loader": "^9.1.2",
|
|
49
|
-
"css-loader": "^6.8.1",
|
|
50
|
-
"sass": "^1.63.4",
|
|
51
|
-
"sass-loader": "^13.3.2",
|
|
52
|
-
"style-loader": "^3.3.3",
|
|
53
|
-
"vite": "^5.4.3",
|
|
54
|
-
"vite-plugin-dts": "^3.6.4",
|
|
55
|
-
"vite-plugin-tsconfig": "^1.0.4",
|
|
56
|
-
"vite-plugin-css-injected-by-js": "3.3.1"
|
|
57
|
-
},
|
|
58
|
-
"resolutions": {
|
|
59
|
-
"@webpack-cli/serve": "^1.3.1"
|
|
60
|
-
},
|
|
61
|
-
"keywords": [],
|
|
62
|
-
"author": "",
|
|
63
|
-
"license": "ISC",
|
|
64
|
-
"description": ""
|
|
65
|
-
}
|
|
66
|
-
;
|
|
67
|
-
|
|
68
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BootpayManager } from '../../support/bootpay-manager';
|
|
2
|
-
|
|
3
|
-
export declare class BootpayStoreWindowManager extends BootpayManager {
|
|
4
|
-
constructor();
|
|
5
|
-
initialize(): void;
|
|
6
|
-
render(el: string, data: RequestExModel): void;
|
|
7
|
-
hideAlert(eventName?: string): void;
|
|
8
|
-
sendEvent(eventName: string, data: any): void;
|
|
9
|
-
}
|
|
10
|
-
export declare const BootpayStoreWindow: BootpayStoreWindowManager;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const StoreWindowEvent: {
|
|
2
|
-
resize: (data: ExResizeData) => void;
|
|
3
|
-
showAlert({ message, title, options }: {
|
|
4
|
-
message: any;
|
|
5
|
-
title: any;
|
|
6
|
-
options: any;
|
|
7
|
-
}): void;
|
|
8
|
-
hideAlert(): void;
|
|
9
|
-
showOverlayiFrame({ url, options }: {
|
|
10
|
-
url: any;
|
|
11
|
-
options: any;
|
|
12
|
-
}): void;
|
|
13
|
-
hideOverlayiFrame(): void;
|
|
14
|
-
responseOverlayiFrame({ event, data }: {
|
|
15
|
-
event: any;
|
|
16
|
-
data: any;
|
|
17
|
-
}): void;
|
|
18
|
-
addFavicon({ url }: {
|
|
19
|
-
url: any;
|
|
20
|
-
}): void;
|
|
21
|
-
hookOnReady(data?: any): void;
|
|
22
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { TemplateManager } from '../../../../support/template-manager';
|
|
2
|
-
import { ExStoreManager } from '../../../../support/ex-store';
|
|
3
|
-
|
|
4
|
-
declare class TemplateStoreManager extends TemplateManager {
|
|
5
|
-
$template: string;
|
|
6
|
-
$iFrameId: string;
|
|
7
|
-
$iFrameContainerId: string;
|
|
8
|
-
$exOverlayId: string;
|
|
9
|
-
$exOverlayContainerId: string;
|
|
10
|
-
$exStore: ExStoreManager;
|
|
11
|
-
constructor();
|
|
12
|
-
render(): void;
|
|
13
|
-
templateRender(): void;
|
|
14
|
-
resize(resizeData: any): void;
|
|
15
|
-
postMessage(event: string, data: any): void;
|
|
16
|
-
showAlert(message: string, title?: string, options?: {
|
|
17
|
-
type: string;
|
|
18
|
-
confirmText: string;
|
|
19
|
-
cancelText: string;
|
|
20
|
-
}): void;
|
|
21
|
-
hideAlert(eventName?: string): void;
|
|
22
|
-
showOverlayiFrameToUrl(url: string, options?: {
|
|
23
|
-
width: string;
|
|
24
|
-
height: string;
|
|
25
|
-
}): void;
|
|
26
|
-
hideOverlayiFrame(): void;
|
|
27
|
-
alertTypeTemplate(options?: {
|
|
28
|
-
type: string;
|
|
29
|
-
confirmText: string;
|
|
30
|
-
cancelText: string;
|
|
31
|
-
}): string;
|
|
32
|
-
shopUrl(): string;
|
|
33
|
-
}
|
|
34
|
-
export declare const TemplateStore: TemplateStoreManager;
|
|
35
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BootpayStoreManager } from '../../node_modules/stores/bootpay-store';
|
|
2
|
-
|
|
3
|
-
export declare class ExStoreManager extends BootpayStoreManager {
|
|
4
|
-
data: any | undefined;
|
|
5
|
-
el: string | undefined;
|
|
6
|
-
path: string | undefined;
|
|
7
|
-
constructor();
|
|
8
|
-
setExData(el: string, data: RequestExModel): void;
|
|
9
|
-
encryptParameters(): string;
|
|
10
|
-
encryptKey(): string;
|
|
11
|
-
currentBootpayStoreParameters(): string;
|
|
12
|
-
}
|
|
13
|
-
export declare const ExStore: ExStoreManager;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ExStore: ExStoreModel;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '../../models/bootpay-widget-interface';
|
|
2
|
-
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '../../models/bootpay-interface';
|
|
3
|
-
|
|
4
|
-
export interface WidgetStoreModel {
|
|
5
|
-
el: string | undefined;
|
|
6
|
-
data?: RequestBootpayWidgetModel;
|
|
7
|
-
termsPassed: boolean;
|
|
8
|
-
widgetType: number;
|
|
9
|
-
widgetExtra: WidgetExtraModel | undefined;
|
|
10
|
-
hooks: WidgetHookFunction;
|
|
11
|
-
setWidgetData(element: string, data: RequestBootpayWidgetModel): void;
|
|
12
|
-
setPayment(pg: string | undefined, method: string | undefined, wallet_id: string | undefined, terms: boolean, select_terms: ResponseBootpayWidgetTermsModel[], extra: ExtraModel): void;
|
|
13
|
-
updateOnProcessing(data: WidgetStoreData): void;
|
|
14
|
-
encryptParameters(): string;
|
|
15
|
-
encrypt(data: object | string): string;
|
|
16
|
-
decrypt(data: string): any | string;
|
|
17
|
-
getExtra(externalExtra: ExtraModel | undefined): ExtraModel;
|
|
18
|
-
getRequestPaymentData(data: RequestBootpayWidgetModel | RequestSubscriptionModel): RequestBootpayWidgetModel | RequestSubscriptionModel;
|
|
19
|
-
callHook(name: string, data: any): void;
|
|
20
|
-
}
|
|
21
|
-
export declare const WidgetStore: WidgetStoreModel;
|
package/dist/vite.config.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|