@servicetitan/notifications 19.3.0 → 20.1.0
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/api/notifications.api.js +3 -7
- package/dist/api/notifications.api.js.map +1 -1
- package/dist/common.js +7 -13
- package/dist/common.js.map +1 -1
- package/dist/components/container.js +11 -15
- package/dist/components/container.js.map +1 -1
- package/dist/components/default-notification.js +9 -31
- package/dist/components/default-notification.js.map +1 -1
- package/dist/components/no-ssr.js +4 -8
- package/dist/components/no-ssr.js.map +1 -1
- package/dist/components/notifications-unwrapped.js +16 -19
- package/dist/components/notifications-unwrapped.js.map +1 -1
- package/dist/components/notifications.js +25 -29
- package/dist/components/notifications.js.map +1 -1
- package/dist/components/shadow-dom.js +11 -18
- package/dist/components/shadow-dom.js.map +1 -1
- package/dist/components/use-style-sheets.js +5 -9
- package/dist/components/use-style-sheets.js.map +1 -1
- package/dist/create-element.js +1 -5
- package/dist/create-element.js.map +1 -1
- package/dist/date-from-string.js +1 -5
- package/dist/date-from-string.js.map +1 -1
- package/dist/demo/action-button-preview.js +7 -11
- package/dist/demo/action-button-preview.js.map +1 -1
- package/dist/demo/action-button.js +4 -8
- package/dist/demo/action-button.js.map +1 -1
- package/dist/demo/basic-preview.js +7 -11
- package/dist/demo/basic-preview.js.map +1 -1
- package/dist/demo/basic.js +4 -8
- package/dist/demo/basic.js.map +1 -1
- package/dist/demo/container.js +11 -15
- package/dist/demo/container.js.map +1 -1
- package/dist/demo/duration-preview.js +7 -11
- package/dist/demo/duration-preview.js.map +1 -1
- package/dist/demo/duration.js +4 -8
- package/dist/demo/duration.js.map +1 -1
- package/dist/demo/index.js +9 -21
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/multiline-message-preview.js +7 -11
- package/dist/demo/multiline-message-preview.js.map +1 -1
- package/dist/demo/multiline-message.js +4 -8
- package/dist/demo/multiline-message.js.map +1 -1
- package/dist/demo/prevent-duplicates-preview.js +7 -11
- package/dist/demo/prevent-duplicates-preview.js.map +1 -1
- package/dist/demo/prevent-duplicates.js +4 -8
- package/dist/demo/prevent-duplicates.js.map +1 -1
- package/dist/demo/progress-preview.js +7 -11
- package/dist/demo/progress-preview.js.map +1 -1
- package/dist/demo/progress.js +4 -8
- package/dist/demo/progress.js.map +1 -1
- package/dist/demo/server-custom-preview.js +5 -7
- package/dist/demo/server-custom-preview.js.map +1 -1
- package/dist/demo/server-custom.js +9 -13
- package/dist/demo/server-custom.js.map +1 -1
- package/dist/demo/server-default.js +10 -14
- package/dist/demo/server-default.js.map +1 -1
- package/dist/demo/status-variations-preview.js +7 -11
- package/dist/demo/status-variations-preview.js.map +1 -1
- package/dist/demo/status-variations.js +4 -8
- package/dist/demo/status-variations.js.map +1 -1
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/notifications-channel.js +2 -5
- package/dist/notifications-channel.js.map +1 -1
- package/dist/notifications-service.js +11 -14
- package/dist/notifications-service.js.map +1 -1
- package/dist/register.js +3 -7
- package/dist/register.js.map +1 -1
- package/dist/stores/notifications.store.js +28 -31
- package/dist/stores/notifications.store.js.map +1 -1
- package/package.json +16 -13
@@ -1,4 +1,3 @@
|
|
1
|
-
"use strict";
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
@@ -20,11 +19,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
20
19
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
21
20
|
});
|
22
21
|
};
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
const common_1 = require("./common");
|
27
|
-
const notifications_store_1 = require("./stores/notifications.store");
|
22
|
+
import { injectable, inject } from '@servicetitan/react-ioc';
|
23
|
+
import { Status } from './common';
|
24
|
+
import { NotificationsStore } from './stores/notifications.store';
|
28
25
|
let NotificationsService = class NotificationsService {
|
29
26
|
constructor(store) {
|
30
27
|
Object.defineProperty(this, "store", {
|
@@ -54,7 +51,7 @@ let NotificationsService = class NotificationsService {
|
|
54
51
|
configurable: true,
|
55
52
|
writable: true,
|
56
53
|
value: (options, preventDuplicates) => {
|
57
|
-
this.store.add(Object.assign(Object.assign({}, options), { status:
|
54
|
+
this.store.add(Object.assign(Object.assign({}, options), { status: Status.Info }), preventDuplicates);
|
58
55
|
}
|
59
56
|
});
|
60
57
|
Object.defineProperty(this, "success", {
|
@@ -62,7 +59,7 @@ let NotificationsService = class NotificationsService {
|
|
62
59
|
configurable: true,
|
63
60
|
writable: true,
|
64
61
|
value: (options, preventDuplicates) => {
|
65
|
-
this.store.add(Object.assign(Object.assign({}, options), { status:
|
62
|
+
this.store.add(Object.assign(Object.assign({}, options), { status: Status.Success }), preventDuplicates);
|
66
63
|
}
|
67
64
|
});
|
68
65
|
Object.defineProperty(this, "warning", {
|
@@ -70,7 +67,7 @@ let NotificationsService = class NotificationsService {
|
|
70
67
|
configurable: true,
|
71
68
|
writable: true,
|
72
69
|
value: (options, preventDuplicates) => {
|
73
|
-
this.store.add(Object.assign(Object.assign({}, options), { status:
|
70
|
+
this.store.add(Object.assign(Object.assign({}, options), { status: Status.Warning }), preventDuplicates);
|
74
71
|
}
|
75
72
|
});
|
76
73
|
Object.defineProperty(this, "error", {
|
@@ -78,15 +75,15 @@ let NotificationsService = class NotificationsService {
|
|
78
75
|
configurable: true,
|
79
76
|
writable: true,
|
80
77
|
value: (options, preventDuplicates) => {
|
81
|
-
this.store.add(Object.assign(Object.assign({}, options), { status:
|
78
|
+
this.store.add(Object.assign(Object.assign({}, options), { status: Status.Error }), preventDuplicates);
|
82
79
|
}
|
83
80
|
});
|
84
81
|
}
|
85
82
|
};
|
86
83
|
NotificationsService = __decorate([
|
87
|
-
|
88
|
-
__param(0,
|
89
|
-
__metadata("design:paramtypes", [
|
84
|
+
injectable(),
|
85
|
+
__param(0, inject(NotificationsStore)),
|
86
|
+
__metadata("design:paramtypes", [NotificationsStore])
|
90
87
|
], NotificationsService);
|
91
|
-
|
88
|
+
export { NotificationsService };
|
92
89
|
//# sourceMappingURL=notifications-service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notifications-service.js","sourceRoot":"","sources":["../src/notifications-service.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"notifications-service.js","sourceRoot":"","sources":["../src/notifications-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAA8B,MAAM,EAAE,MAAM,UAAU,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAYlE,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAC7B,YAAyD,KAAyB;;;;;mBAAzB;;QAEzD;;;;mBAAa,CAAO,MAAM,GAAG,CAAC,EAAE,EAAE;gBAC9B,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACxC,CAAC,CAAA;WAAC;QAEF;;;;mBAAO,CAAC,OAAmC,EAAE,iBAA2B,EAAE,EAAE;gBACxE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;YAC/C,CAAC;WAAC;QAEF;;;;mBAAO,CAAC,OAAmD,EAAE,iBAA2B,EAAE,EAAE;gBACxF,IAAI,CAAC,KAAK,CAAC,GAAG,iCAEH,OAAO,KACV,MAAM,EAAE,MAAM,CAAC,IAAI,KAEvB,iBAAiB,CACpB,CAAC;YACN,CAAC;WAAC;QAEF;;;;mBAAU,CACN,OAAmD,EACnD,iBAA2B,EAC7B,EAAE;gBACA,IAAI,CAAC,KAAK,CAAC,GAAG,iCAEH,OAAO,KACV,MAAM,EAAE,MAAM,CAAC,OAAO,KAE1B,iBAAiB,CACpB,CAAC;YACN,CAAC;WAAC;QAEF;;;;mBAAU,CACN,OAAmD,EACnD,iBAA2B,EAC7B,EAAE;gBACA,IAAI,CAAC,KAAK,CAAC,GAAG,iCAEH,OAAO,KACV,MAAM,EAAE,MAAM,CAAC,OAAO,KAE1B,iBAAiB,CACpB,CAAC;YACN,CAAC;WAAC;QAEF;;;;mBAAQ,CAAC,OAAmD,EAAE,iBAA2B,EAAE,EAAE;gBACzF,IAAI,CAAC,KAAK,CAAC,GAAG,iCAEH,OAAO,KACV,MAAM,EAAE,MAAM,CAAC,KAAK,KAExB,iBAAiB,CACpB,CAAC;YACN,CAAC;WAAC;IAtDmF,CAAC;CAuDzF,CAAA;AAxDY,oBAAoB;IADhC,UAAU,EAAE;IAEI,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;qCAAyB,kBAAkB;GADzE,oBAAoB,CAwDhC;SAxDY,oBAAoB"}
|
package/dist/register.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const notifications_store_1 = require("./stores/notifications.store");
|
5
|
-
function register(type, mapper) {
|
6
|
-
notifications_store_1.NotificationsStore.register(type, mapper);
|
1
|
+
import { NotificationsStore } from './stores/notifications.store';
|
2
|
+
export function register(type, mapper) {
|
3
|
+
NotificationsStore.register(type, mapper);
|
7
4
|
}
|
8
|
-
exports.register = register;
|
9
5
|
//# sourceMappingURL=register.js.map
|
package/dist/register.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAGlE,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,MAA0B;IAC7D,kBAAkB,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC9C,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
"use strict";
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
@@ -21,14 +20,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
21
20
|
});
|
22
21
|
};
|
23
22
|
var NotificationsStore_1;
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
const common_1 = require("../common");
|
31
|
-
const date_from_string_1 = require("../date-from-string");
|
23
|
+
import { injectable, inject, optional } from '@servicetitan/react-ioc';
|
24
|
+
import { observable, computed, action, runInAction, comparer, makeObservable } from 'mobx';
|
25
|
+
import { NOTIFICATIONS_CHANNEL_TOKEN } from '../notifications-channel';
|
26
|
+
import { NotificationsApi, NotificationProcessStatus, } from '../api/notifications.api';
|
27
|
+
import { isNewer, toClientNotification, DEFAULT_CLIENT_NOTIFICATION_TYPE, } from '../common';
|
28
|
+
import { dateFromString } from '../date-from-string';
|
32
29
|
const EVENT_NAME = 'NotificationEvent';
|
33
30
|
const DAY_INTERVAL = 24 * 60 * 60 * 1000;
|
34
31
|
let NotificationsStore = NotificationsStore_1 = class NotificationsStore {
|
@@ -89,7 +86,7 @@ let NotificationsStore = NotificationsStore_1 = class NotificationsStore {
|
|
89
86
|
return;
|
90
87
|
}
|
91
88
|
const notifications = (yield this.notificationsApi.getNotifications(false)).data;
|
92
|
-
|
89
|
+
runInAction(() => {
|
93
90
|
for (const notification of notifications) {
|
94
91
|
this.updateIfNewer(notification);
|
95
92
|
}
|
@@ -115,16 +112,16 @@ let NotificationsStore = NotificationsStore_1 = class NotificationsStore {
|
|
115
112
|
const notification = {
|
116
113
|
id: this.index,
|
117
114
|
userId: this.userId,
|
118
|
-
type:
|
119
|
-
status:
|
115
|
+
type: DEFAULT_CLIENT_NOTIFICATION_TYPE,
|
116
|
+
status: NotificationProcessStatus.Info,
|
120
117
|
isRead: false,
|
121
118
|
createdOn: new Date(),
|
122
119
|
modifiedOn: new Date(),
|
123
|
-
version:
|
120
|
+
version: NotificationProcessStatus.Info,
|
124
121
|
payload: options,
|
125
122
|
};
|
126
123
|
if (!preventDuplicates ||
|
127
|
-
!this.notifications.some(n => n.id < 0 &&
|
124
|
+
!this.notifications.some(n => n.id < 0 && comparer.structural(n.payload, notification.payload))) {
|
128
125
|
this.innerNotifications.set(notification.id, notification);
|
129
126
|
this.index -= 1;
|
130
127
|
}
|
@@ -136,7 +133,7 @@ let NotificationsStore = NotificationsStore_1 = class NotificationsStore {
|
|
136
133
|
writable: true,
|
137
134
|
value: (notification) => {
|
138
135
|
if (notification.id > 0) {
|
139
|
-
if (notification.status ===
|
136
|
+
if (notification.status === NotificationProcessStatus.InProgress) {
|
140
137
|
this.closedNotifications.set(notification.id, {
|
141
138
|
status: notification.status,
|
142
139
|
timestamp: Date.now(),
|
@@ -158,10 +155,10 @@ let NotificationsStore = NotificationsStore_1 = class NotificationsStore {
|
|
158
155
|
return;
|
159
156
|
}
|
160
157
|
// FIXME: FAR-385
|
161
|
-
this.updateIfNewer(Object.assign(Object.assign({}, notification), { createdOn:
|
158
|
+
this.updateIfNewer(Object.assign(Object.assign({}, notification), { createdOn: dateFromString(notification.createdOn), modifiedOn: dateFromString(notification.modifiedOn) }));
|
162
159
|
}
|
163
160
|
});
|
164
|
-
|
161
|
+
makeObservable(this);
|
165
162
|
}
|
166
163
|
get notifications() {
|
167
164
|
return Array.from(this.innerNotifications.values());
|
@@ -187,8 +184,8 @@ let NotificationsStore = NotificationsStore_1 = class NotificationsStore {
|
|
187
184
|
}
|
188
185
|
this.closedNotifications.delete(notification.id);
|
189
186
|
}
|
190
|
-
if (!existing ||
|
191
|
-
this.innerNotifications.set(notification.id,
|
187
|
+
if (!existing || isNewer(existing, notification)) {
|
188
|
+
this.innerNotifications.set(notification.id, toClientNotification(notification));
|
192
189
|
}
|
193
190
|
}
|
194
191
|
};
|
@@ -205,33 +202,33 @@ Object.defineProperty(NotificationsStore, "register", {
|
|
205
202
|
value: (type, mapper) => NotificationsStore_1.types.set(type, mapper)
|
206
203
|
});
|
207
204
|
__decorate([
|
208
|
-
|
205
|
+
observable,
|
209
206
|
__metadata("design:type", Object)
|
210
207
|
], NotificationsStore.prototype, "innerNotifications", void 0);
|
211
208
|
__decorate([
|
212
|
-
|
209
|
+
computed,
|
213
210
|
__metadata("design:type", Object),
|
214
211
|
__metadata("design:paramtypes", [])
|
215
212
|
], NotificationsStore.prototype, "notifications", null);
|
216
213
|
__decorate([
|
217
|
-
|
214
|
+
action,
|
218
215
|
__metadata("design:type", Object)
|
219
216
|
], NotificationsStore.prototype, "add", void 0);
|
220
217
|
__decorate([
|
221
|
-
|
218
|
+
action,
|
222
219
|
__metadata("design:type", Object)
|
223
220
|
], NotificationsStore.prototype, "read", void 0);
|
224
221
|
__decorate([
|
225
|
-
|
222
|
+
action,
|
226
223
|
__metadata("design:type", Object)
|
227
224
|
], NotificationsStore.prototype, "onPublisherEvent", void 0);
|
228
225
|
NotificationsStore = NotificationsStore_1 = __decorate([
|
229
|
-
|
230
|
-
__param(0,
|
231
|
-
__param(0,
|
232
|
-
__param(1,
|
233
|
-
__param(1,
|
234
|
-
__metadata("design:paramtypes", [
|
226
|
+
injectable(),
|
227
|
+
__param(0, inject(NotificationsApi)),
|
228
|
+
__param(0, optional()),
|
229
|
+
__param(1, inject(NOTIFICATIONS_CHANNEL_TOKEN)),
|
230
|
+
__param(1, optional()),
|
231
|
+
__metadata("design:paramtypes", [NotificationsApi, Function])
|
235
232
|
], NotificationsStore);
|
236
|
-
|
233
|
+
export { NotificationsStore };
|
237
234
|
//# sourceMappingURL=notifications.store.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notifications.store.js","sourceRoot":"","sources":["../../src/stores/notifications.store.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"notifications.store.js","sourceRoot":"","sources":["../../src/stores/notifications.store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE3F,OAAO,EAAwB,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAE7F,OAAO,EACH,gBAAgB,EAEhB,yBAAyB,GAC5B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACH,OAAO,EAGP,oBAAoB,EACpB,gCAAgC,GAEnC,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAOvC,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAGzC,IAAa,kBAAkB,0BAA/B,MAAa,kBAAkB;IAc3B,YAC2D,gBAAmC,EAGzE,oBAA2C;;;;;mBAHL;;;;;;mBAGtC;;QAdrB;;;;mBAA6B,IAAI,GAAG,EAAwB;WAAC;QAE7D;;;;mBAAgB,CAAC,CAAC;WAAC;QAEnB;;;;mBAAiB,CAAC;WAAC;QAEnB;;;;;WAA4B;QAE5B;;;;mBAA8B,IAAI,GAAG,EAA8B;WAAC;QAwBpE;;;;mBAAa,CAAO,MAAc,EAAE,EAAE;gBAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;gBAErB,IAAI,IAAI,CAAC,SAAS,EAAE;oBAChB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,gBAAgB,C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E,MAA0B,EAAE,EAAE,CAC3D,oBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC;EAAC,CAAA;AApB/C;IADC,UAAU;;8DACkD;AAsBnD;IAAT,QAAQ;;;uDAER;AAuCD;IADC,MAAM;;+CAuBL;AAGF;IADC,MAAM;;gDAoBL;AAGF;IADC,MAAM;;4DAYL;AA7HO,kBAAkB;IAD9B,UAAU,EAAE;IAgBJ,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAAE,WAAA,QAAQ,EAAE,CAAA;IACpC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;IACnC,WAAA,QAAQ,EAAE,CAAA;qCAF+D,gBAAgB;GAfrF,kBAAkB,CAuJ9B;SAvJY,kBAAkB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicetitan/notifications",
|
3
|
-
"version": "
|
3
|
+
"version": "20.1.0",
|
4
4
|
"description": "",
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/notifications-center",
|
6
6
|
"repository": {
|
@@ -10,6 +10,9 @@
|
|
10
10
|
},
|
11
11
|
"main": "./dist/index.js",
|
12
12
|
"typings": "./dist/index.d.ts",
|
13
|
+
"sideEffects": [
|
14
|
+
"./dist/demo/**/*"
|
15
|
+
],
|
13
16
|
"files": [
|
14
17
|
"dist",
|
15
18
|
"src"
|
@@ -18,25 +21,25 @@
|
|
18
21
|
"react-shadow-dom-retarget-events": "~1.1.0"
|
19
22
|
},
|
20
23
|
"devDependencies": {
|
21
|
-
"@servicetitan/design-system": "~
|
22
|
-
"@servicetitan/react-ioc": "^
|
23
|
-
"@servicetitan/web-components": "^
|
24
|
-
"@types/react": "~17.0.
|
24
|
+
"@servicetitan/design-system": "~11.2.0",
|
25
|
+
"@servicetitan/react-ioc": "^20.1.0",
|
26
|
+
"@servicetitan/web-components": "^20.1.0",
|
27
|
+
"@types/react": "~17.0.38",
|
25
28
|
"@types/react-router": "~5.1.17",
|
26
29
|
"@types/react-shadow-dom-retarget-events": "~1.0.0",
|
27
|
-
"axios": "~0.
|
28
|
-
"mobx": "~6.3.
|
30
|
+
"axios": "~0.25.0",
|
31
|
+
"mobx": "~6.3.13",
|
29
32
|
"mobx-react": "~7.2.1",
|
30
33
|
"react": "~17.0.2",
|
31
34
|
"react-dom": "~17.0.2",
|
32
35
|
"react-router-dom": "~5.3.0"
|
33
36
|
},
|
34
37
|
"peerDependencies": {
|
35
|
-
"@servicetitan/design-system": "~
|
36
|
-
"@servicetitan/react-ioc": "^
|
37
|
-
"@servicetitan/web-components": "^
|
38
|
-
"axios": "~0.
|
39
|
-
"mobx": "~6.3.
|
38
|
+
"@servicetitan/design-system": "~11.2.0",
|
39
|
+
"@servicetitan/react-ioc": "^20.0.0",
|
40
|
+
"@servicetitan/web-components": "^20.0.0",
|
41
|
+
"axios": "~0.25.0",
|
42
|
+
"mobx": "~6.3.13",
|
40
43
|
"mobx-react": "~7.2.1",
|
41
44
|
"react": "~17.0.2",
|
42
45
|
"react-dom": "~17.0.2",
|
@@ -48,5 +51,5 @@
|
|
48
51
|
"cli": {
|
49
52
|
"webpack": false
|
50
53
|
},
|
51
|
-
"gitHead": "
|
54
|
+
"gitHead": "aec207a72396ff91bb8aee9693ba2c13f9480f83"
|
52
55
|
}
|