@wildix/xbees-connect 1.3.19 → 1.3.20-beta.2
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/README.md +9 -0
- package/dist-cjs/package.json +1 -1
- package/dist-cjs/src/Client.js +10 -0
- package/dist-cjs/src/enums/index.js +1 -0
- package/dist-es/package.json +1 -1
- package/dist-es/src/Client.js +10 -0
- package/dist-es/src/enums/index.js +1 -0
- package/dist-types/src/Client.d.ts +5 -0
- package/dist-types/src/enums/index.d.ts +2 -1
- package/dist-types/types/Client.d.ts +5 -0
- package/dist-types/types/Event.d.ts +2 -2
- package/dist-types/types/Payload.d.ts +7 -0
- package/dist-types/types/index.d.ts +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -404,6 +404,15 @@ Displays a toast notification inside the x-bees UI. `severity` defaults to `'INF
|
|
|
404
404
|
client.showToast('Contact saved', 'SUCCESS');
|
|
405
405
|
```
|
|
406
406
|
|
|
407
|
+
#### `setSidebarBadgeCount(count: number): void`
|
|
408
|
+
|
|
409
|
+
Sets the numeric badge on the integration icon in the x-bees sidebar. Pass `0` to hide the badge.
|
|
410
|
+
|
|
411
|
+
```ts
|
|
412
|
+
client.setSidebarBadgeCount(3);
|
|
413
|
+
client.setSidebarBadgeCount(0); // hide
|
|
414
|
+
```
|
|
415
|
+
|
|
407
416
|
#### `setViewport(payload: { height: number | string; width: number | string }): Promise<ResponseMessage>`
|
|
408
417
|
|
|
409
418
|
Sends a request to x-bees to resize the iFrame to the specified dimensions.
|
package/dist-cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20-beta.2",
|
|
4
4
|
"description": "This library provides easy communication between x-bees and integrated web applications",
|
|
5
5
|
"author": "dimitri.chernykh <dimitri.chernykh@wildix.com>",
|
|
6
6
|
"homepage": "",
|
package/dist-cjs/src/Client.js
CHANGED
|
@@ -498,6 +498,16 @@ class Client {
|
|
|
498
498
|
},
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* Sets the numeric badge on the integration icon in the x-bees sidebar.
|
|
503
|
+
* Pass `0` to hide the badge.
|
|
504
|
+
*/
|
|
505
|
+
setSidebarBadgeCount(count) {
|
|
506
|
+
void this.sendAsyncErrorSafe({
|
|
507
|
+
type: enums_1.ClientEventType.SIDEBAR_BADGE_COUNT,
|
|
508
|
+
payload: { count },
|
|
509
|
+
});
|
|
510
|
+
}
|
|
501
511
|
setIntegrationStorageKey(integrationKey) {
|
|
502
512
|
this.localStorageManager.setIntegrationKey(integrationKey);
|
|
503
513
|
}
|
|
@@ -65,6 +65,7 @@ var ClientEventType;
|
|
|
65
65
|
ClientEventType["INTEGRATION_PROXY_RESPONSE"] = "xBeesIntegrationProxyResponse";
|
|
66
66
|
ClientEventType["INTEGRATION_PROXY_REQUEST_IS_SUPPORTED"] = "xBeesIntegrationProxyRequestIsSupported";
|
|
67
67
|
ClientEventType["EXTERNAL_ROUTE_CHANGE"] = "xBeesExternalRouteChange";
|
|
68
|
+
ClientEventType["SIDEBAR_BADGE_COUNT"] = "xBeesSidebarBadgeCount";
|
|
68
69
|
})(ClientEventType || (exports.ClientEventType = ClientEventType = {}));
|
|
69
70
|
var UrlParams;
|
|
70
71
|
(function (UrlParams) {
|
package/dist-es/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20-beta.2",
|
|
4
4
|
"description": "This library provides easy communication between x-bees and integrated web applications",
|
|
5
5
|
"author": "dimitri.chernykh <dimitri.chernykh@wildix.com>",
|
|
6
6
|
"homepage": "",
|
package/dist-es/src/Client.js
CHANGED
|
@@ -492,6 +492,16 @@ export class Client {
|
|
|
492
492
|
},
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
* Sets the numeric badge on the integration icon in the x-bees sidebar.
|
|
497
|
+
* Pass `0` to hide the badge.
|
|
498
|
+
*/
|
|
499
|
+
setSidebarBadgeCount(count) {
|
|
500
|
+
void this.sendAsyncErrorSafe({
|
|
501
|
+
type: ClientEventType.SIDEBAR_BADGE_COUNT,
|
|
502
|
+
payload: { count },
|
|
503
|
+
});
|
|
504
|
+
}
|
|
495
505
|
setIntegrationStorageKey(integrationKey) {
|
|
496
506
|
this.localStorageManager.setIntegrationKey(integrationKey);
|
|
497
507
|
}
|
|
@@ -62,6 +62,7 @@ export var ClientEventType;
|
|
|
62
62
|
ClientEventType["INTEGRATION_PROXY_RESPONSE"] = "xBeesIntegrationProxyResponse";
|
|
63
63
|
ClientEventType["INTEGRATION_PROXY_REQUEST_IS_SUPPORTED"] = "xBeesIntegrationProxyRequestIsSupported";
|
|
64
64
|
ClientEventType["EXTERNAL_ROUTE_CHANGE"] = "xBeesExternalRouteChange";
|
|
65
|
+
ClientEventType["SIDEBAR_BADGE_COUNT"] = "xBeesSidebarBadgeCount";
|
|
65
66
|
})(ClientEventType || (ClientEventType = {}));
|
|
66
67
|
export var UrlParams;
|
|
67
68
|
(function (UrlParams) {
|
|
@@ -105,6 +105,11 @@ export declare class Client implements ConnectClient {
|
|
|
105
105
|
onStorage(listener: StorageEventCallback): () => void;
|
|
106
106
|
onLogout(callback: Callback<EventType.LOGOUT>): RemoveEventListener;
|
|
107
107
|
sendAnalytics(eventName: string, params?: Record<string, string>): void;
|
|
108
|
+
/**
|
|
109
|
+
* Sets the numeric badge on the integration icon in the x-bees sidebar.
|
|
110
|
+
* Pass `0` to hide the badge.
|
|
111
|
+
*/
|
|
112
|
+
setSidebarBadgeCount(count: number): void;
|
|
108
113
|
setIntegrationStorageKey(integrationKey: string): void;
|
|
109
114
|
getTechnicalSupport(): TechnicalSupport;
|
|
110
115
|
onVisibilityChange(callback: Callback<EventType.VISIBILITY>): RemoveEventListener;
|
|
@@ -59,7 +59,8 @@ export declare enum ClientEventType {
|
|
|
59
59
|
CREATE_CONTACT_HAS_NO_PERMISSION = "xBeesCreateContactHasNoPermission",
|
|
60
60
|
INTEGRATION_PROXY_RESPONSE = "xBeesIntegrationProxyResponse",
|
|
61
61
|
INTEGRATION_PROXY_REQUEST_IS_SUPPORTED = "xBeesIntegrationProxyRequestIsSupported",
|
|
62
|
-
EXTERNAL_ROUTE_CHANGE = "xBeesExternalRouteChange"
|
|
62
|
+
EXTERNAL_ROUTE_CHANGE = "xBeesExternalRouteChange",
|
|
63
|
+
SIDEBAR_BADGE_COUNT = "xBeesSidebarBadgeCount"
|
|
63
64
|
}
|
|
64
65
|
export declare enum UrlParams {
|
|
65
66
|
TOKEN = "t",
|
|
@@ -203,6 +203,11 @@ export interface ConnectClient {
|
|
|
203
203
|
/**
|
|
204
204
|
* send analytics data to x-bees for track into analytics data */
|
|
205
205
|
sendAnalytics: (eventName: string, params?: Record<string, string>) => void;
|
|
206
|
+
/**
|
|
207
|
+
* Sets the numeric badge on the integration icon in the x-bees sidebar.
|
|
208
|
+
* Pass `0` to hide the badge.
|
|
209
|
+
*/
|
|
210
|
+
setSidebarBadgeCount: (count: number) => void;
|
|
206
211
|
/**
|
|
207
212
|
* special object to provide x-bees technical support */
|
|
208
213
|
getTechnicalSupport: () => TechnicalSupport;
|
|
@@ -2,10 +2,10 @@ import { ClientEventType, EventType } from '../src/enums';
|
|
|
2
2
|
import { AvailableContactData } from './AvailableContactData';
|
|
3
3
|
import { ContactQuery } from './Contact';
|
|
4
4
|
import { Message, MessageType } from './Message';
|
|
5
|
-
import { IntegrationProxyRequest, IntegrationProxyResponse, IPayloadAutoSuggestResult, IPayloadBatchContactsMatchResult, IPayloadBatchContactsMatchResultError, IPayloadCallStart, IPayloadCallStartedInfo, IPayloadCancelRedirectToEntityPage, IPayloadContactMatchResult, IPayloadContactMatchResultNotFound, IPayloadContactResult, IPayloadContactWeightUpdate, IPayloadContextResult, IPayloadConversationResult, IPayloadCustomEvent, IPayloadDaemonCallFinished, IPayloadDaemonCallStarted, IPayloadDropdownVisibility, IPayloadGetChannelsByEmailOrPhone, IPayloadGetFromStorage, IPayloadRouteChange, IPayloadSaveToStorage, IPayloadSendAnalytics, IPayloadSetChatToOpen, IPayloadStartRedirectToEntityPage, IPayloadTechSupport, IPayloadThemeChange, IPayloadToast, IPayloadVersion, IPayloadViewPort } from './Payload';
|
|
5
|
+
import { IntegrationProxyRequest, IntegrationProxyResponse, IPayloadAutoSuggestResult, IPayloadBatchContactsMatchResult, IPayloadBatchContactsMatchResultError, IPayloadCallStart, IPayloadCallStartedInfo, IPayloadCancelRedirectToEntityPage, IPayloadContactMatchResult, IPayloadContactMatchResultNotFound, IPayloadContactResult, IPayloadContactWeightUpdate, IPayloadContextResult, IPayloadConversationResult, IPayloadCustomEvent, IPayloadDaemonCallFinished, IPayloadDaemonCallStarted, IPayloadDropdownVisibility, IPayloadGetChannelsByEmailOrPhone, IPayloadGetFromStorage, IPayloadRouteChange, IPayloadSaveToStorage, IPayloadSendAnalytics, IPayloadSetChatToOpen, IPayloadSidebarBadgeCount, IPayloadStartRedirectToEntityPage, IPayloadTechSupport, IPayloadThemeChange, IPayloadToast, IPayloadVersion, IPayloadViewPort } from './Payload';
|
|
6
6
|
import { SupportedPlatformVariant } from './Platform';
|
|
7
7
|
import { XBeesUser } from './XBeesUser';
|
|
8
|
-
export type EventPayload<T extends MessageType> = T extends EventType.GET_CONTACTS_AUTO_SUGGEST ? string : T extends ClientEventType.CONTACTS_AUTO_SUGGEST ? IPayloadAutoSuggestResult : T extends ClientEventType.CONTACT_LOOKUP_AND_MATCH | ClientEventType.CONTACT_CREATE_OR_UPDATE | ClientEventType.CONTACT_MATCH_UPDATE ? IPayloadContactMatchResult : T extends ClientEventType.CONTACT_LOOKUP_AND_MATCH_NOT_FOUND ? IPayloadContactMatchResultNotFound : T extends ClientEventType.LOOKUP_AND_MATCH_BATCH_ERROR ? IPayloadBatchContactsMatchResultError : T extends ClientEventType.CONTEXT ? IPayloadContextResult : T extends ClientEventType.CURRENT_CONTACT ? IPayloadContactResult : T extends ClientEventType.CURRENT_CONVERSATION ? IPayloadConversationResult : T extends EventType.ADD_CALL ? IPayloadCallStartedInfo : T extends ClientEventType.START_CALL ? IPayloadCallStart : T extends ClientEventType.READY ? IPayloadVersion : T extends ClientEventType.VIEW_PORT ? IPayloadViewPort : T extends ClientEventType.THEME ? IPayloadThemeChange : T extends EventType.USE_THEME ? IPayloadThemeChange : T extends ClientEventType.TOAST ? IPayloadToast : T extends ClientEventType.SEND_ANALYTICS ? IPayloadSendAnalytics : T extends ClientEventType.SEND_TECHNICAL_SUPPORT_INFORMATION ? IPayloadTechSupport : T extends EventType.PBX_TOKEN ? string : T extends ClientEventType.TOKEN ? string : T extends ClientEventType.TO_CLIPBOARD ? string : T extends EventType.GET_LOOK_UP_AND_MATCH ? ContactQuery : T extends EventType.GET_LOOK_UP_AND_MATCH_BATCH ? ContactQuery[] : T extends EventType.VISIBILITY ? boolean : T extends ClientEventType.USER ? XBeesUser : T extends ClientEventType.SAVE_TO_STORAGE ? IPayloadSaveToStorage : T extends ClientEventType.GET_FROM_STORAGE ? IPayloadGetFromStorage : T extends ClientEventType.REMOVE_FROM_STORAGE ? IPayloadGetFromStorage : T extends ClientEventType.AVAILABLE_CONTACT_DATA ? AvailableContactData | null : T extends ClientEventType.LOOK_UP_AND_MATCH_BATCH_CONTACTS ? IPayloadBatchContactsMatchResult : T extends ClientEventType.DROPDOWN_VISIBILITY ? IPayloadDropdownVisibility : T extends ClientEventType.CUSTOM_EVENT ? IPayloadCustomEvent : T extends ClientEventType.SET_CHAT_TO_OPEN ? IPayloadSetChatToOpen : T extends ClientEventType.GET_CHANNELS_BY_EMAIL_OR_PHONE ? IPayloadGetChannelsByEmailOrPhone : T extends ClientEventType.EXTERNAL_ROUTE_CHANGE ? IPayloadRouteChange : T extends EventType.START_REDIRECT_TO_ENTITY_PAGE ? IPayloadStartRedirectToEntityPage : T extends EventType.CANCEL_REDIRECT_TO_ENTITY_PAGE ? IPayloadCancelRedirectToEntityPage : T extends EventType.GET_INTEGRATION_PROXY_REQUEST ? IntegrationProxyRequest : T extends ClientEventType.INTEGRATION_PROXY_RESPONSE ? IntegrationProxyResponse : T extends ClientEventType.INTEGRATION_PROXY_REQUEST_IS_SUPPORTED ? undefined : T extends EventType.EXTERNAL_ROUTE_CHANGE ? IPayloadRouteChange : T extends EventType.DAEMON_CALL_SESSION_STARTED ? IPayloadDaemonCallStarted : T extends EventType.DAEMON_CALL_SESSION_FINISHED ? IPayloadDaemonCallFinished : never;
|
|
8
|
+
export type EventPayload<T extends MessageType> = T extends EventType.GET_CONTACTS_AUTO_SUGGEST ? string : T extends ClientEventType.CONTACTS_AUTO_SUGGEST ? IPayloadAutoSuggestResult : T extends ClientEventType.CONTACT_LOOKUP_AND_MATCH | ClientEventType.CONTACT_CREATE_OR_UPDATE | ClientEventType.CONTACT_MATCH_UPDATE ? IPayloadContactMatchResult : T extends ClientEventType.CONTACT_LOOKUP_AND_MATCH_NOT_FOUND ? IPayloadContactMatchResultNotFound : T extends ClientEventType.LOOKUP_AND_MATCH_BATCH_ERROR ? IPayloadBatchContactsMatchResultError : T extends ClientEventType.CONTEXT ? IPayloadContextResult : T extends ClientEventType.CURRENT_CONTACT ? IPayloadContactResult : T extends ClientEventType.CURRENT_CONVERSATION ? IPayloadConversationResult : T extends EventType.ADD_CALL ? IPayloadCallStartedInfo : T extends ClientEventType.START_CALL ? IPayloadCallStart : T extends ClientEventType.READY ? IPayloadVersion : T extends ClientEventType.VIEW_PORT ? IPayloadViewPort : T extends ClientEventType.THEME ? IPayloadThemeChange : T extends EventType.USE_THEME ? IPayloadThemeChange : T extends ClientEventType.TOAST ? IPayloadToast : T extends ClientEventType.SEND_ANALYTICS ? IPayloadSendAnalytics : T extends ClientEventType.SEND_TECHNICAL_SUPPORT_INFORMATION ? IPayloadTechSupport : T extends EventType.PBX_TOKEN ? string : T extends ClientEventType.TOKEN ? string : T extends ClientEventType.TO_CLIPBOARD ? string : T extends EventType.GET_LOOK_UP_AND_MATCH ? ContactQuery : T extends EventType.GET_LOOK_UP_AND_MATCH_BATCH ? ContactQuery[] : T extends EventType.VISIBILITY ? boolean : T extends ClientEventType.USER ? XBeesUser : T extends ClientEventType.SAVE_TO_STORAGE ? IPayloadSaveToStorage : T extends ClientEventType.GET_FROM_STORAGE ? IPayloadGetFromStorage : T extends ClientEventType.REMOVE_FROM_STORAGE ? IPayloadGetFromStorage : T extends ClientEventType.AVAILABLE_CONTACT_DATA ? AvailableContactData | null : T extends ClientEventType.LOOK_UP_AND_MATCH_BATCH_CONTACTS ? IPayloadBatchContactsMatchResult : T extends ClientEventType.DROPDOWN_VISIBILITY ? IPayloadDropdownVisibility : T extends ClientEventType.CUSTOM_EVENT ? IPayloadCustomEvent : T extends ClientEventType.SET_CHAT_TO_OPEN ? IPayloadSetChatToOpen : T extends ClientEventType.GET_CHANNELS_BY_EMAIL_OR_PHONE ? IPayloadGetChannelsByEmailOrPhone : T extends ClientEventType.EXTERNAL_ROUTE_CHANGE ? IPayloadRouteChange : T extends ClientEventType.SIDEBAR_BADGE_COUNT ? IPayloadSidebarBadgeCount : T extends EventType.START_REDIRECT_TO_ENTITY_PAGE ? IPayloadStartRedirectToEntityPage : T extends EventType.CANCEL_REDIRECT_TO_ENTITY_PAGE ? IPayloadCancelRedirectToEntityPage : T extends EventType.GET_INTEGRATION_PROXY_REQUEST ? IntegrationProxyRequest : T extends ClientEventType.INTEGRATION_PROXY_RESPONSE ? IntegrationProxyResponse : T extends ClientEventType.INTEGRATION_PROXY_REQUEST_IS_SUPPORTED ? undefined : T extends EventType.EXTERNAL_ROUTE_CHANGE ? IPayloadRouteChange : T extends EventType.DAEMON_CALL_SESSION_STARTED ? IPayloadDaemonCallStarted : T extends EventType.DAEMON_CALL_SESSION_FINISHED ? IPayloadDaemonCallFinished : never;
|
|
9
9
|
export type EventPayloadMap = {
|
|
10
10
|
[EventType.GET_CONTACTS_AUTO_SUGGEST]: string;
|
|
11
11
|
[EventType.GET_LOOK_UP_AND_MATCH]: ContactQuery;
|
|
@@ -112,6 +112,13 @@ export interface IPayloadRouteChange {
|
|
|
112
112
|
*/
|
|
113
113
|
replace?: boolean;
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Badge count for the integration icon in the x-bees sidebar.
|
|
117
|
+
* `0` hides the badge.
|
|
118
|
+
*/
|
|
119
|
+
export interface IPayloadSidebarBadgeCount {
|
|
120
|
+
count: number;
|
|
121
|
+
}
|
|
115
122
|
export interface IPayloadContactWeightUpdate {
|
|
116
123
|
id: string;
|
|
117
124
|
query: ContactQuery;
|
|
@@ -7,7 +7,7 @@ export type { JSONArray, JSONObject } from './Json';
|
|
|
7
7
|
export type { Listener, RemoveEventListener } from './Listener';
|
|
8
8
|
export type { Message, MessageIFrameResponse, MessageType, ResponseMessage } from './Message';
|
|
9
9
|
export type { MessageSender } from './MessageSender';
|
|
10
|
-
export type { IntegrationProxyErrorCode, IntegrationProxyRequest, IntegrationProxyResponse, IPayloadAutoSuggestResult, IPayloadCallStart, IPayloadCallStartedInfo, IPayloadCancelRedirectToEntityPage, IPayloadContactMatchResult, IPayloadContactMatchResultNotFound, IPayloadContactResult, IPayloadContextResult, IPayloadConversationResult, IPayloadDaemonCallFinished, IPayloadDaemonCallStarted, IPayloadGetChannelsByEmailOrPhone, IPayloadRouteChange, IPayloadSendAnalytics, IPayloadSetChatToOpen, IPayloadStartRedirectToEntityPage, IPayloadTechSupport, IPayloadThemeChange, IPayloadToast, IPayloadVersion, IPayloadViewPort, } from './Payload';
|
|
10
|
+
export type { IntegrationProxyErrorCode, IntegrationProxyRequest, IntegrationProxyResponse, IPayloadAutoSuggestResult, IPayloadCallStart, IPayloadCallStartedInfo, IPayloadCancelRedirectToEntityPage, IPayloadContactMatchResult, IPayloadContactMatchResultNotFound, IPayloadContactResult, IPayloadContextResult, IPayloadConversationResult, IPayloadDaemonCallFinished, IPayloadDaemonCallStarted, IPayloadGetChannelsByEmailOrPhone, IPayloadRouteChange, IPayloadSendAnalytics, IPayloadSidebarBadgeCount, IPayloadSetChatToOpen, IPayloadStartRedirectToEntityPage, IPayloadTechSupport, IPayloadThemeChange, IPayloadToast, IPayloadVersion, IPayloadViewPort, } from './Payload';
|
|
11
11
|
export { SupportedPlatformVariant } from './Platform';
|
|
12
12
|
export type { IntegrationProxyRequestResolver, LookupAndMatchBatchContactsResolver, LookupAndMatchContactsResolver, Reject, SuggestContactsResolver, } from './Resolver';
|
|
13
13
|
export type { StorageEventCallback } from './Storage';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20-beta.2",
|
|
4
4
|
"description": "This library provides easy communication between x-bees and integrated web applications",
|
|
5
5
|
"author": "dimitri.chernykh <dimitri.chernykh@wildix.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -9,6 +9,17 @@
|
|
|
9
9
|
"main": "./dist-cjs/index.js",
|
|
10
10
|
"types": "./dist-types/index.d.ts",
|
|
11
11
|
"module": "./dist-es/index.js",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs && pnpm run build:types",
|
|
14
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
15
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
16
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
17
|
+
"build:docs": "typedoc",
|
|
18
|
+
"lint": "eslint . && tsc --noEmit",
|
|
19
|
+
"lint:fix": "eslint . --fix",
|
|
20
|
+
"clean": "rimraf --glob './dist-*' '*.tsbuildinfo'",
|
|
21
|
+
"build:api-extractor": "api-extractor run --local"
|
|
22
|
+
},
|
|
12
23
|
"files": [
|
|
13
24
|
"dist-*/**"
|
|
14
25
|
],
|
|
@@ -33,16 +44,5 @@
|
|
|
33
44
|
},
|
|
34
45
|
"engines": {
|
|
35
46
|
"node": ">=16"
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "pnpm run clean && pnpm run build:es && pnpm run build:cjs && pnpm run build:types",
|
|
39
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
40
|
-
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
41
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
42
|
-
"build:docs": "typedoc",
|
|
43
|
-
"lint": "eslint . && tsc --noEmit",
|
|
44
|
-
"lint:fix": "eslint . --fix",
|
|
45
|
-
"clean": "rimraf --glob './dist-*' '*.tsbuildinfo'",
|
|
46
|
-
"build:api-extractor": "api-extractor run --local"
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
}
|