@bootpay/client-js 5.2.0-beta.8 → 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.d.ts +3 -0
- package/dist/{index.es.js → index.mjs} +3984 -2861
- package/dist/index.umd.js +47 -64
- 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 +11 -12
- package/dist/src/lib/analytics.d.ts +4 -3
- package/dist/src/lib/bootpay-widget.d.ts +4 -3
- package/dist/src/lib/bootpay.d.ts +4 -3
- package/dist/src/lib/event/hooks/widget/message.d.ts +11 -3
- package/dist/src/lib/event/payment.d.ts +39 -2
- package/dist/src/lib/event/polling.d.ts +3 -2
- package/dist/src/lib/event/user-token.d.ts +8 -1
- package/dist/src/lib/event/widget.d.ts +2 -1
- package/dist/src/lib/template/brandpay.d.ts +15 -5
- package/dist/src/lib/template/payment.d.ts +28 -3
- package/dist/src/lib/template/user-token.d.ts +20 -4
- package/dist/src/lib/template/widget.d.ts +6 -6
- package/dist/src/support/event-logger.d.ts +3 -2
- package/dist/src/support/hooks/widget-hooks.d.ts +9 -0
- package/dist/src/support/stores/widget-store.d.ts +23 -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 +2 -1
- package/dist/src/{lib/template → vendor/components}/confirm-modal.d.ts +3 -2
- package/dist/src/{lib/template → vendor/components}/modal.d.ts +3 -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 +4 -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 -0
- package/dist/src/vendor/mixins/session.d.ts +16 -0
- package/dist/src/{support → vendor/mixins}/storage.d.ts +2 -1
- package/dist/src/{support → vendor/mixins}/template-manager.d.ts +10 -2
- package/dist/src/vendor/types/slider-interface.d.ts +12 -0
- package/package.json +14 -4
- package/tsconfig.json +15 -3
- package/vite.config.ts +14 -9
- package/dist/package.json.d.ts +0 -56
- package/dist/src/bootpay-store.d.ts +0 -7
- package/dist/src/lib/bootpay-store.d.ts +0 -9
- 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 -6
- package/dist/src/lib/hooks/store.d.ts +0 -5
- package/dist/src/lib/template/store.d.ts +0 -34
- package/dist/src/support/ex-store.d.ts +0 -12
- 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 -20
- 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/tsconfig.json
CHANGED
|
@@ -20,12 +20,24 @@
|
|
|
20
20
|
"rootDir": "./",
|
|
21
21
|
"baseUrl": "./src/",
|
|
22
22
|
"paths": {
|
|
23
|
-
"
|
|
24
|
-
"../node_modules/*",
|
|
23
|
+
"~/*": [
|
|
25
24
|
"./*"
|
|
25
|
+
],
|
|
26
|
+
"~": [
|
|
27
|
+
"./"
|
|
26
28
|
]
|
|
27
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"typeRoots": [
|
|
31
|
+
"../node_modules/@types",
|
|
32
|
+
"../src/types"
|
|
33
|
+
]
|
|
28
34
|
},
|
|
35
|
+
"include": [
|
|
36
|
+
"src/**/*.ts",
|
|
37
|
+
"src/**/*.js",
|
|
38
|
+
"src/**/*.json",
|
|
39
|
+
"src/**/*.vue"
|
|
40
|
+
],
|
|
29
41
|
"exclude": [
|
|
30
42
|
"**/*.spec.ts",
|
|
31
43
|
"node_modules",
|
package/vite.config.ts
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
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: {
|
|
9
|
-
minify:
|
|
10
|
-
lib:
|
|
9
|
+
minify: 'esbuild',
|
|
10
|
+
lib: {
|
|
11
11
|
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
12
12
|
name: 'Bootpay',
|
|
13
|
-
fileName:
|
|
13
|
+
fileName: 'index'
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
base: './',
|
|
17
|
-
root: './',
|
|
18
16
|
plugins: [
|
|
19
|
-
dts(),
|
|
17
|
+
dts({ copyDtsFiles: true, insertTypesEntry: true }),
|
|
20
18
|
cssInjectedByJsPlugin()
|
|
21
19
|
],
|
|
20
|
+
base: './',
|
|
21
|
+
root: './',
|
|
22
22
|
publicDir: '_public',
|
|
23
23
|
resolve: {
|
|
24
|
-
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
|
+
}
|
|
25
30
|
}
|
|
26
31
|
})
|
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.8",
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import { BootpayManager } from '../support/bootpay-manager';
|
|
2
|
-
export declare class BootpayStoreWindowManager extends BootpayManager {
|
|
3
|
-
constructor();
|
|
4
|
-
initialize(): void;
|
|
5
|
-
render(el: string, data: RequestExModel): void;
|
|
6
|
-
hideAlert(eventName?: string): void;
|
|
7
|
-
sendEvent(eventName: string, data: any): void;
|
|
8
|
-
}
|
|
9
|
-
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,34 +0,0 @@
|
|
|
1
|
-
import { TemplateManager } from '../../support/template-manager';
|
|
2
|
-
import { ExStoreManager } from '../../support/ex-store';
|
|
3
|
-
declare class TemplateStoreManager extends TemplateManager {
|
|
4
|
-
$template: string;
|
|
5
|
-
$iFrameId: string;
|
|
6
|
-
$iFrameContainerId: string;
|
|
7
|
-
$exOverlayId: string;
|
|
8
|
-
$exOverlayContainerId: string;
|
|
9
|
-
$exStore: ExStoreManager;
|
|
10
|
-
constructor();
|
|
11
|
-
render(): void;
|
|
12
|
-
templateRender(): void;
|
|
13
|
-
resize(resizeData: any): void;
|
|
14
|
-
postMessage(event: string, data: any): void;
|
|
15
|
-
showAlert(message: string, title?: string, options?: {
|
|
16
|
-
type: string;
|
|
17
|
-
confirmText: string;
|
|
18
|
-
cancelText: string;
|
|
19
|
-
}): void;
|
|
20
|
-
hideAlert(eventName?: string): void;
|
|
21
|
-
showOverlayiFrameToUrl(url: string, options?: {
|
|
22
|
-
width: string;
|
|
23
|
-
height: string;
|
|
24
|
-
}): void;
|
|
25
|
-
hideOverlayiFrame(): void;
|
|
26
|
-
alertTypeTemplate(options?: {
|
|
27
|
-
type: string;
|
|
28
|
-
confirmText: string;
|
|
29
|
-
cancelText: string;
|
|
30
|
-
}): string;
|
|
31
|
-
shopUrl(): string;
|
|
32
|
-
}
|
|
33
|
-
export declare const TemplateStore: TemplateStoreManager;
|
|
34
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BootpayStoreManager } from './stores/bootpay-store';
|
|
2
|
-
export declare class ExStoreManager extends BootpayStoreManager {
|
|
3
|
-
el: string | undefined;
|
|
4
|
-
data: any | undefined;
|
|
5
|
-
path: string | undefined;
|
|
6
|
-
constructor();
|
|
7
|
-
setExData(el: string, data: RequestExModel): void;
|
|
8
|
-
encryptParameters(): string;
|
|
9
|
-
encryptKey(): string;
|
|
10
|
-
currentBootpayStoreParameters(): string;
|
|
11
|
-
}
|
|
12
|
-
export declare const ExStore: ExStoreManager;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ExStore: ExStoreModel;
|
|
@@ -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
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|