@bootpay/client-js 5.2.0-beta.7 → 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.
Files changed (39) hide show
  1. package/dist/index.d.ts +3 -0
  2. package/dist/{index.es.js → index.mjs} +2681 -1542
  3. package/dist/index.umd.js +18 -18
  4. package/dist/package.json.d.ts +15 -3
  5. package/dist/src/bootpay-environment.d.ts +2 -1
  6. package/dist/src/bootpay-es5.d.ts +2 -1
  7. package/dist/src/bootpay-sdk.d.ts +3 -2
  8. package/dist/src/bootpay-widget.d.ts +3 -2
  9. package/dist/src/bootpay.d.ts +5 -4
  10. package/dist/src/index.d.ts +11 -10
  11. package/dist/src/lib/analytics.d.ts +4 -3
  12. package/dist/src/lib/bootpay-store.d.ts +2 -1
  13. package/dist/src/lib/bootpay-widget.d.ts +4 -3
  14. package/dist/src/lib/bootpay.d.ts +5 -4
  15. package/dist/src/lib/event/hooks/widget/message.d.ts +4 -3
  16. package/dist/src/lib/event/payment.d.ts +3 -2
  17. package/dist/src/lib/event/polling.d.ts +3 -2
  18. package/dist/src/lib/event/store.d.ts +2 -1
  19. package/dist/src/lib/event/user-token.d.ts +2 -1
  20. package/dist/src/lib/event/widget.d.ts +2 -1
  21. package/dist/src/lib/template/brandpay.d.ts +3 -2
  22. package/dist/src/lib/template/confirm-modal.d.ts +2 -1
  23. package/dist/src/lib/template/modal.d.ts +2 -1
  24. package/dist/src/lib/template/payment.d.ts +3 -2
  25. package/dist/src/lib/template/store.d.ts +3 -2
  26. package/dist/src/lib/template/user-token.d.ts +5 -4
  27. package/dist/src/lib/template/widget.d.ts +3 -2
  28. package/dist/src/support/alfred-progress/index.d.ts +2 -1
  29. package/dist/src/support/event-logger.d.ts +3 -2
  30. package/dist/src/support/event.d.ts +2 -1
  31. package/dist/src/support/ex-store.d.ts +3 -2
  32. package/dist/src/support/resource.d.ts +2 -1
  33. package/dist/src/support/storage.d.ts +2 -1
  34. package/dist/src/support/stores/widget-store.d.ts +4 -3
  35. package/dist/src/support/template-manager.d.ts +3 -1
  36. package/dist/src/support/widget-store.d.ts +3 -2
  37. package/dist/vite.config.d.ts +1 -1
  38. package/package.json +15 -3
  39. package/vite.config.ts +9 -6
@@ -1,8 +1,15 @@
1
1
  declare const _default: {
2
2
  "name": "@bootpay/client-js",
3
- "version": "5.2.0-beta.7",
3
+ "version": "5.2.0-beta.9",
4
4
  "main": "dist/index.es.js",
5
- "types": "dist/src/index.d.ts",
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": "^3.3.0"
56
+ "vite-plugin-css-injected-by-js": "3.3.1"
45
57
  },
46
58
  "resolutions": {
47
59
  "@webpack-cli/serve": "^1.3.1"
@@ -1,2 +1,3 @@
1
- import { Environment } from './support/environment';
1
+ import { Environment } from '../node_modules/support/environment';
2
+
2
3
  export default Environment;
@@ -1,2 +1,3 @@
1
- import Bootpay from './bootpay';
1
+ import { default as Bootpay } from '../node_modules/bootpay';
2
+
2
3
  export default Bootpay;
@@ -1,5 +1,6 @@
1
- import { UserTokenTemplateManager } from "./lib/template/user-token";
2
- import { BiometricDataModel, RequestPaymentWalletModel } from "./models/bootpay-sdk-interface";
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 './models/bootpay-widget-interface';
2
- import { RequestPaymentModel, RequestSubscriptionModel } from './models/bootpay-interface';
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;
@@ -1,7 +1,8 @@
1
- import { BootpayAnalyticsModel, BootpayAnalyticsUserModel, RequestAuthenticationModel, RequestPaymentModel, RequestPaymentUrlModel, RequestSubscriptionModel } from "./models/bootpay-interface";
2
- import { EnvironmentInterface } from "./support/environment";
3
- import { BootpayRequestPaymentManager } from "./lib/bootpay";
4
- import { BootpayAnalyticsManager } from './lib/analytics';
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;
@@ -1,12 +1,16 @@
1
- import Bootpay, { BootpayInterface } from './bootpay';
2
- import BootpaySDK from './bootpay-sdk';
3
- import BootpayEnvironment from "./bootpay-environment";
4
- import BootpayStore from './bootpay-store';
5
- import BootpayWidget, { BootpayWidgetInterface } from './bootpay-widget';
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
- import { UserTokenTemplateManager } from './lib/template/user-token';
9
- import { BiometricDataModel, RequestPaymentWalletModel } from './models/bootpay-sdk-interface';
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 '../support/resource';
2
- import { SessionStorageManager } from '../support/storage';
3
- import { BootpayAnalyticsBaseModel, BootpayAnalyticsModel, BootpayAnalyticsUserModel, ItemAnalyticsLegacyModel, ItemAnalyticsModel } from '../models/bootpay-interface';
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,4 +1,5 @@
1
- import { BootpayManager } from '../support/bootpay-manager';
1
+ import { BootpayManager } from '../../support/bootpay-manager';
2
+
2
3
  export declare class BootpayStoreWindowManager extends BootpayManager {
3
4
  constructor();
4
5
  initialize(): void;
@@ -1,6 +1,7 @@
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';
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 "../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';
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 '../../../../models/bootpay-widget-interface';
2
- import { ExtraModel } from '../../../../models/bootpay-interface';
3
- import { BootpayWindowEvent } from '../../../../support/event';
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 "../../support/event";
2
- import { BootpayPollingEvent } from "./polling";
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 "../../support/resource";
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("axios").AxiosResponse<any, any>>;
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,4 +1,5 @@
1
- import { BootpayWindowEvent } from '../../support/event';
1
+ import { BootpayWindowEvent } from '../../../../support/event';
2
+
2
3
  declare class BootpayStoreEventManager extends BootpayWindowEvent {
3
4
  constructor();
4
5
  }
@@ -1,4 +1,5 @@
1
- import { BootpayWindowEvent } from "../../support/event";
1
+ import { BootpayWindowEvent } from '../../../../support/event';
2
+
2
3
  export declare class BootpayUserTokenEventManager extends BootpayWindowEvent {
3
4
  $messageEventName: string;
4
5
  constructor();
@@ -1,4 +1,5 @@
1
- import { BootpayWindowEvent } from '../../support/event';
1
+ import { BootpayWindowEvent } from '../../../../support/event';
2
+
2
3
  declare class BootpayWidgetEventManager extends BootpayWindowEvent {
3
4
  constructor();
4
5
  }
@@ -1,5 +1,6 @@
1
- import { TemplateManager } from '../../support/template-manager';
2
- import { WidgetStoreModel } from '../../support/widget-store';
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,4 +1,5 @@
1
- import { TemplateManager } from '../../support/template-manager';
1
+ import { TemplateManager } from '../../../../support/template-manager';
2
+
2
3
  declare class ConfirmModalManager extends TemplateManager {
3
4
  $windowId: string;
4
5
  $modalWindowId: string;
@@ -1,4 +1,5 @@
1
- import { TemplateManager } from '../../support/template-manager';
1
+ import { TemplateManager } from '../../../../support/template-manager';
2
+
2
3
  declare class ModalTemplateManager extends TemplateManager {
3
4
  $windowId: string;
4
5
  $modalWindowId: string;
@@ -1,5 +1,6 @@
1
- import { TemplateManager } from "../../support/template-manager";
2
- import { ConfirmModel, PopupDisplayResponseModel } from "../../models/bootpay-interface";
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 '../../support/template-manager';
2
- import { ExStoreManager } from '../../support/ex-store';
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 "../../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";
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 '../../support/template-manager';
2
- import { WidgetStoreModel } from '../../support/widget-store';
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,4 +1,5 @@
1
- import { TemplateManager } from "../template-manager";
1
+ import { TemplateManager } from '../../../template-manager';
2
+
2
3
  declare class AlfredProgressManager extends TemplateManager {
3
4
  $alfredId: string;
4
5
  $alfredTextId: string;
@@ -1,5 +1,6 @@
1
- import { Resource } from './resource';
2
- import { SessionStorageManager } from './storage';
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,4 +1,5 @@
1
- import { BootpayManager } from "./bootpay-manager";
1
+ import { BootpayManager } from '../../node_modules/bootpay-manager';
2
+
2
3
  interface EventMessage {
3
4
  event: string;
4
5
  error_code: string;
@@ -1,7 +1,8 @@
1
- import { BootpayStoreManager } from './stores/bootpay-store';
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,4 +1,5 @@
1
- import { AxiosInstance } from 'axios';
1
+ import { AxiosInstance } from '../../node_modules/axios';
2
+
2
3
  interface EncryptParamsFormat {
3
4
  payload: string;
4
5
  token: string;
@@ -1,4 +1,5 @@
1
- import { BootpayManager } from "./bootpay-manager";
1
+ import { BootpayManager } from '../../node_modules/bootpay-manager';
2
+
2
3
  export interface SessionUserInterface {
3
4
  id?: string;
4
5
  time?: number;
@@ -1,6 +1,7 @@
1
- import { RequestBootpayWidgetModel, ResponseBootpayWidgetTermsModel, WidgetStoreData } from '../../models/bootpay-widget-interface';
2
- import { ExtraModel, RequestPaymentModel, RequestSubscriptionModel } from '../../models/bootpay-interface';
3
- import { BootpayStoreManager } from './bootpay-store';
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 "./bootpay-manager";
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 '../models/bootpay-widget-interface';
2
- import { ExtraModel, RequestSubscriptionModel, WidgetExtraModel } from '../models/bootpay-interface';
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;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vite").UserConfig;
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.7",
3
+ "version": "5.2.0-beta.9",
4
4
  "main": "dist/index.es.js",
5
- "types": "dist/src/index.d.ts",
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": "^3.3.0"
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: 'esbuild',
10
- lib: {
9
+ minify: 'esbuild',
10
+ lib: {
11
11
  entry: path.resolve(__dirname, 'src/index.ts'),
12
12
  name: 'Bootpay',
13
- fileName: (format) => `index.${ format }.js`
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']