@bootpay/client-js 5.2.0-beta.8 → 5.2.0-beta.9
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.es.js → index.mjs} +2778 -1636
- package/dist/index.umd.js +18 -18
- package/dist/package.json.d.ts +15 -3
- package/dist/src/bootpay-environment.d.ts +2 -1
- 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 +3 -2
- package/dist/src/bootpay.d.ts +5 -4
- package/dist/src/index.d.ts +11 -10
- package/dist/src/lib/analytics.d.ts +4 -3
- package/dist/src/lib/bootpay-store.d.ts +2 -1
- package/dist/src/lib/bootpay-widget.d.ts +4 -3
- package/dist/src/lib/bootpay.d.ts +5 -4
- package/dist/src/lib/event/hooks/widget/message.d.ts +4 -3
- 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/store.d.ts +2 -1
- package/dist/src/lib/event/user-token.d.ts +2 -1
- package/dist/src/lib/event/widget.d.ts +2 -1
- package/dist/src/lib/template/brandpay.d.ts +3 -2
- 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 +3 -2
- package/dist/src/lib/template/store.d.ts +3 -2
- package/dist/src/lib/template/user-token.d.ts +5 -4
- package/dist/src/lib/template/widget.d.ts +3 -2
- package/dist/src/support/alfred-progress/index.d.ts +2 -1
- package/dist/src/support/event-logger.d.ts +3 -2
- package/dist/src/support/event.d.ts +2 -1
- package/dist/src/support/ex-store.d.ts +3 -2
- package/dist/src/support/resource.d.ts +2 -1
- package/dist/src/support/storage.d.ts +2 -1
- package/dist/src/support/stores/widget-store.d.ts +4 -3
- package/dist/src/support/template-manager.d.ts +3 -1
- package/dist/src/support/widget-store.d.ts +3 -2
- package/dist/vite.config.d.ts +1 -1
- package/package.json +15 -3
- package/vite.config.ts +9 -6
package/dist/package.json.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.2.0-beta.
|
|
3
|
+
"version": "5.2.0-beta.9",
|
|
4
4
|
"main": "dist/index.es.js",
|
|
5
|
-
"
|
|
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
|
+
},
|
|
6
13
|
"styles": "dist/index.css",
|
|
7
14
|
"scripts": {
|
|
8
15
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -28,6 +35,11 @@ declare const _default: {
|
|
|
28
35
|
"@babel/plugin-transform-object-assign": "^7.22.5",
|
|
29
36
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
30
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",
|
|
31
43
|
"@babel/preset-env": "^7.22.5",
|
|
32
44
|
"@babel/preset-typescript": "^7.22.5",
|
|
33
45
|
"@babel/runtime-corejs3": "^7.22.5",
|
|
@@ -41,7 +53,7 @@ declare const _default: {
|
|
|
41
53
|
"vite": "^5.4.3",
|
|
42
54
|
"vite-plugin-dts": "^3.6.4",
|
|
43
55
|
"vite-plugin-tsconfig": "^1.0.4",
|
|
44
|
-
"vite-plugin-css-injected-by-js": "
|
|
56
|
+
"vite-plugin-css-injected-by-js": "3.3.1"
|
|
45
57
|
},
|
|
46
58
|
"resolutions": {
|
|
47
59
|
"@webpack-cli/serve": "^1.3.1"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UserTokenTemplateManager } from
|
|
2
|
-
import { BiometricDataModel, RequestPaymentWalletModel } from
|
|
1
|
+
import { UserTokenTemplateManager } from '../node_modules/lib/template/user-token';
|
|
2
|
+
import { BiometricDataModel, RequestPaymentWalletModel } from '../node_modules/models/bootpay-sdk-interface';
|
|
3
|
+
|
|
3
4
|
interface BootpaySdkInterface {
|
|
4
5
|
$templateUserToken: UserTokenTemplateManager;
|
|
5
6
|
errorHandler(data: any): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '
|
|
2
|
-
import { RequestPaymentModel, RequestSubscriptionModel } from '
|
|
1
|
+
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../node_modules/models/bootpay-widget-interface';
|
|
2
|
+
import { RequestPaymentModel, RequestSubscriptionModel } from '../node_modules/models/bootpay-interface';
|
|
3
|
+
|
|
3
4
|
export interface BootpayWidgetInterface {
|
|
4
5
|
render(el: string, data: RequestBootpayWidgetModel): void;
|
|
5
6
|
rerender(): void;
|
package/dist/src/bootpay.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from
|
|
2
|
-
import { EnvironmentInterface } from
|
|
3
|
-
import { BootpayRequestPaymentManager } from
|
|
4
|
-
import { BootpayAnalyticsManager } from '
|
|
1
|
+
import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '../node_modules/models/bootpay-interface';
|
|
2
|
+
import { EnvironmentInterface } from '../node_modules/support/environment';
|
|
3
|
+
import { BootpayRequestPaymentManager } from '../node_modules/lib/bootpay';
|
|
4
|
+
import { BootpayAnalyticsManager } from '../node_modules/lib/analytics';
|
|
5
|
+
|
|
5
6
|
export interface BootpayInterface {
|
|
6
7
|
$payment: BootpayRequestPaymentManager;
|
|
7
8
|
$analytics: BootpayAnalyticsManager;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import Bootpay,
|
|
2
|
-
import BootpaySDK from '
|
|
3
|
-
import BootpayEnvironment from
|
|
4
|
-
import BootpayStore from '
|
|
5
|
-
import BootpayWidget,
|
|
1
|
+
import { default as Bootpay, BootpayInterface } from '../node_modules/bootpay';
|
|
2
|
+
import { default as BootpaySDK } from '../node_modules/bootpay-sdk';
|
|
3
|
+
import { default as BootpayEnvironment } from '../node_modules/bootpay-environment';
|
|
4
|
+
import { default as BootpayStore } from '../node_modules/bootpay-store';
|
|
5
|
+
import { default as BootpayWidget, BootpayWidgetInterface } from '../node_modules/bootpay-widget';
|
|
6
|
+
import { UserTokenTemplateManager } from '../node_modules/lib/template/user-token';
|
|
7
|
+
import { BiometricDataModel, RequestPaymentWalletModel } from '../node_modules/models/bootpay-sdk-interface';
|
|
8
|
+
|
|
6
9
|
export { Bootpay, BootpaySDK, BootpayEnvironment, BootpayWidget, BootpayStore };
|
|
7
10
|
export default Bootpay;
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
export * from '../node_modules/models/bootpay-interface.d';
|
|
12
|
+
export * from '../node_modules/models/bootpay-widget-interface.d';
|
|
13
|
+
export * from '../node_modules/models/bootpay-sdk-interface.d';
|
|
10
14
|
interface BootpaySdkInterface {
|
|
11
15
|
$templateUserToken: UserTokenTemplateManager;
|
|
12
16
|
errorHandler(data: any): any;
|
|
@@ -33,6 +37,3 @@ declare global {
|
|
|
33
37
|
CustomEvent: any;
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
|
-
export * from './models/bootpay-interface.d';
|
|
37
|
-
export * from './models/bootpay-widget-interface.d';
|
|
38
|
-
export * from './models/bootpay-sdk-interface.d';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Resource } from '
|
|
2
|
-
import { SessionStorageManager } from '
|
|
3
|
-
import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '
|
|
1
|
+
import { Resource } from '../../support/resource';
|
|
2
|
+
import { SessionStorageManager } from '../../support/storage';
|
|
3
|
+
import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../../models/bootpay-interface';
|
|
4
|
+
|
|
4
5
|
export declare class BootpayAnalyticsManager extends Resource {
|
|
5
6
|
$session: SessionStorageManager;
|
|
6
7
|
constructor();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BootpayManager } from '
|
|
2
|
-
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '
|
|
3
|
-
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '
|
|
1
|
+
import { BootpayManager } from '../../support/bootpay-manager';
|
|
2
|
+
import { ExternalBootpaySelectModel, PaymentParametersModel, RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel } from '../../models/bootpay-widget-interface';
|
|
3
|
+
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../models/bootpay-interface';
|
|
4
|
+
|
|
4
5
|
export declare class BootpayWidgetWindowManager extends BootpayManager {
|
|
5
6
|
message: any;
|
|
6
7
|
constructor();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BootpayManager } from
|
|
2
|
-
import { SessionStorageManager } from
|
|
3
|
-
import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from
|
|
4
|
-
import { EventLoggerManager } from '
|
|
1
|
+
import { BootpayManager } from '../../support/bootpay-manager';
|
|
2
|
+
import { SessionStorageManager } from '../../support/storage';
|
|
3
|
+
import { ConfirmModel, EnvironmentModel, ErrorModel, ExtraModel, ItemModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from '../../models/bootpay-interface';
|
|
4
|
+
import { EventLoggerManager } from '../../support/event-logger';
|
|
5
|
+
|
|
5
6
|
export declare class BootpayRequestPaymentManager extends BootpayManager {
|
|
6
7
|
$session: SessionStorageManager;
|
|
7
8
|
$logger: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ResponseBootpayWidgetTermsModel } from '
|
|
2
|
-
import { ExtraModel } from '
|
|
3
|
-
import { BootpayWindowEvent } from '
|
|
1
|
+
import { ResponseBootpayWidgetTermsModel } from '../../../../../../../../models/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel } from '../../../../../../../../models/bootpay-interface';
|
|
3
|
+
import { BootpayWindowEvent } from '../../../../../../../../support/event';
|
|
4
|
+
|
|
4
5
|
export declare const WidgetWindowMessage: {
|
|
5
6
|
$eventPrefix: string;
|
|
6
7
|
bootpayWidgetSelectMethod(data: SelectPaymentEventData): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BootpayWindowEvent } from
|
|
2
|
-
import { BootpayPollingEvent } from
|
|
1
|
+
import { BootpayWindowEvent } from '../../../../support/event';
|
|
2
|
+
import { BootpayPollingEvent } from '../../../node_modules/polling';
|
|
3
|
+
|
|
3
4
|
interface PollingDataModel {
|
|
4
5
|
applicationId: string | null;
|
|
5
6
|
receiptId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Resource } from
|
|
1
|
+
import { Resource } from '../../../../support/resource';
|
|
2
|
+
|
|
2
3
|
export declare class BootpayPollingEvent extends Resource {
|
|
3
4
|
constructor();
|
|
4
5
|
/**
|
|
@@ -6,6 +7,6 @@ export declare class BootpayPollingEvent extends Resource {
|
|
|
6
7
|
* Comment by GOSOMI
|
|
7
8
|
* @date: 2021-12-29
|
|
8
9
|
*/
|
|
9
|
-
pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import(
|
|
10
|
+
pollingStatus(gatewayUrl: string, receiptId: string, applicationId: string | null, transactionKey: string | null): Promise<import('../../../node_modules/axios').AxiosResponse<any, any>>;
|
|
10
11
|
}
|
|
11
12
|
export declare const BootpayPolling: BootpayPollingEvent;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { WidgetStoreModel } from '
|
|
1
|
+
import { TemplateManager } from '../../../../support/template-manager';
|
|
2
|
+
import { WidgetStoreModel } from '../../../../support/widget-store';
|
|
3
|
+
|
|
3
4
|
declare class BrandpayTemplateManager extends TemplateManager {
|
|
4
5
|
$brandpayWindowId: string;
|
|
5
6
|
$iFrameId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TemplateManager } from
|
|
2
|
-
import { ConfirmModel, PopupDisplayResponseModel } from
|
|
1
|
+
import { TemplateManager } from '../../../../support/template-manager';
|
|
2
|
+
import { ConfirmModel, PopupDisplayResponseModel } from '../../../../models/bootpay-interface';
|
|
3
|
+
|
|
3
4
|
declare class TemplatePaymentManager extends TemplateManager {
|
|
4
5
|
$template: string;
|
|
5
6
|
$formId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { ExStoreManager } from '
|
|
1
|
+
import { TemplateManager } from '../../../../support/template-manager';
|
|
2
|
+
import { ExStoreManager } from '../../../../support/ex-store';
|
|
3
|
+
|
|
3
4
|
declare class TemplateStoreManager extends TemplateManager {
|
|
4
5
|
$template: string;
|
|
5
6
|
$iFrameId: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { TemplateManager } from
|
|
2
|
-
import { BootpayUserTokenEventManager } from
|
|
3
|
-
import { SessionStorageManager } from
|
|
4
|
-
import { BiometricDataModel, RequestPaymentWalletModel } from
|
|
1
|
+
import { TemplateManager } from '../../../../support/template-manager';
|
|
2
|
+
import { BootpayUserTokenEventManager } from '../../../event/user-token';
|
|
3
|
+
import { SessionStorageManager } from '../../../../support/storage';
|
|
4
|
+
import { BiometricDataModel, RequestPaymentWalletModel } from '../../../../models/bootpay-sdk-interface';
|
|
5
|
+
|
|
5
6
|
export declare class UserTokenTemplateManager extends TemplateManager {
|
|
6
7
|
$session: SessionStorageManager;
|
|
7
8
|
$template: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TemplateManager } from '
|
|
2
|
-
import { WidgetStoreModel } from '
|
|
1
|
+
import { TemplateManager } from '../../../../support/template-manager';
|
|
2
|
+
import { WidgetStoreModel } from '../../../../support/widget-store';
|
|
3
|
+
|
|
3
4
|
declare class TemplateWidgetManager extends TemplateManager {
|
|
4
5
|
$iFrameId: string;
|
|
5
6
|
$template: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Resource } from '
|
|
2
|
-
import { SessionStorageManager } from '
|
|
1
|
+
import { Resource } from '../../node_modules/resource';
|
|
2
|
+
import { SessionStorageManager } from '../../node_modules/storage';
|
|
3
|
+
|
|
3
4
|
interface EventDataModel {
|
|
4
5
|
application_id?: string;
|
|
5
6
|
step: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BootpayStoreManager } from '
|
|
1
|
+
import { BootpayStoreManager } from '../../node_modules/stores/bootpay-store';
|
|
2
|
+
|
|
2
3
|
export declare class ExStoreManager extends BootpayStoreManager {
|
|
3
|
-
el: string | undefined;
|
|
4
4
|
data: any | undefined;
|
|
5
|
+
el: string | undefined;
|
|
5
6
|
path: string | undefined;
|
|
6
7
|
constructor();
|
|
7
8
|
setExData(el: string, data: RequestExModel): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '
|
|
2
|
-
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '
|
|
3
|
-
import { BootpayStoreManager } from '
|
|
1
|
+
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../../../models/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../../../models/bootpay-interface';
|
|
3
|
+
import { BootpayStoreManager } from '../../../node_modules/bootpay-store';
|
|
4
|
+
|
|
4
5
|
export declare class WidgetStoreManager extends BootpayStoreManager {
|
|
5
6
|
el: string | undefined;
|
|
6
7
|
data: any;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { BootpayManager } from
|
|
1
|
+
import { BootpayManager } from '../../node_modules/bootpay-manager';
|
|
2
|
+
|
|
2
3
|
export declare class TemplateManager extends BootpayManager {
|
|
3
4
|
$windowId: string;
|
|
4
5
|
$template: string;
|
|
5
6
|
$iFrameId: string;
|
|
7
|
+
el?: string;
|
|
6
8
|
constructor(data?: {
|
|
7
9
|
iframeId?: string;
|
|
8
10
|
template?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '
|
|
2
|
-
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '
|
|
1
|
+
import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetHookFunction, WidgetStoreData } from '../../models/bootpay-widget-interface';
|
|
2
|
+
import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '../../models/bootpay-interface';
|
|
3
|
+
|
|
3
4
|
export interface WidgetStoreModel {
|
|
4
5
|
el: string | undefined;
|
|
5
6
|
data?: RequestBootpayWidgetModel;
|
package/dist/vite.config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('./node_modules/vite').UserConfig;
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootpay/client-js",
|
|
3
|
-
"version": "5.2.0-beta.
|
|
3
|
+
"version": "5.2.0-beta.9",
|
|
4
4
|
"main": "dist/index.es.js",
|
|
5
|
-
"
|
|
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
|
+
},
|
|
6
13
|
"styles": "dist/index.css",
|
|
7
14
|
"scripts": {
|
|
8
15
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -28,6 +35,11 @@
|
|
|
28
35
|
"@babel/plugin-transform-object-assign": "^7.22.5",
|
|
29
36
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
30
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",
|
|
31
43
|
"@babel/preset-env": "^7.22.5",
|
|
32
44
|
"@babel/preset-typescript": "^7.22.5",
|
|
33
45
|
"@babel/runtime-corejs3": "^7.22.5",
|
|
@@ -41,7 +53,7 @@
|
|
|
41
53
|
"vite": "^5.4.3",
|
|
42
54
|
"vite-plugin-dts": "^3.6.4",
|
|
43
55
|
"vite-plugin-tsconfig": "^1.0.4",
|
|
44
|
-
"vite-plugin-css-injected-by-js": "
|
|
56
|
+
"vite-plugin-css-injected-by-js": "3.3.1"
|
|
45
57
|
},
|
|
46
58
|
"resolutions": {
|
|
47
59
|
"@webpack-cli/serve": "^1.3.1"
|
package/vite.config.ts
CHANGED
|
@@ -6,19 +6,22 @@ const path = require('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({
|
|
18
|
+
tsconfigPath: path.resolve(__dirname, 'tsconfig.json'),
|
|
19
|
+
insertTypesEntry: true
|
|
20
|
+
}),
|
|
20
21
|
cssInjectedByJsPlugin()
|
|
21
22
|
],
|
|
23
|
+
base: './',
|
|
24
|
+
root: './',
|
|
22
25
|
publicDir: '_public',
|
|
23
26
|
resolve: {
|
|
24
27
|
extensions: ['.css', '.sass', '.scss', '.ts', '.js']
|