@quesmed/types-rn 2.2.84 → 2.2.86
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/models/Notification.d.ts +2 -2
- package/models/Notification.js +17 -0
- package/package.json +1 -1
- package/utils/lightgallery.js +6 -2
package/models/Notification.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { IConcept } from './Concept';
|
|
|
2
2
|
import { IQuestionComment } from './Question';
|
|
3
3
|
import { Id } from './Type';
|
|
4
4
|
import { IUser } from './User';
|
|
5
|
-
export declare
|
|
5
|
+
export declare enum ENotificationType {
|
|
6
6
|
COMMENT = "COMMENT",
|
|
7
7
|
ANNOUNCEMENT = "ANNOUNCEMENT",
|
|
8
8
|
FRIEND_REQUEST = "FRIEND_REQUEST"
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare enum ENotificationActionType {
|
|
11
11
|
REPLY = "REPLY",
|
|
12
12
|
LIKE = "LIKE",
|
|
13
13
|
DISLIKE = "DISLIKE",
|
package/models/Notification.js
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ENotificationActionType = exports.ENotificationType = void 0;
|
|
4
|
+
var ENotificationType;
|
|
5
|
+
(function (ENotificationType) {
|
|
6
|
+
ENotificationType["COMMENT"] = "COMMENT";
|
|
7
|
+
ENotificationType["ANNOUNCEMENT"] = "ANNOUNCEMENT";
|
|
8
|
+
ENotificationType["FRIEND_REQUEST"] = "FRIEND_REQUEST";
|
|
9
|
+
})(ENotificationType = exports.ENotificationType || (exports.ENotificationType = {}));
|
|
10
|
+
var ENotificationActionType;
|
|
11
|
+
(function (ENotificationActionType) {
|
|
12
|
+
ENotificationActionType["REPLY"] = "REPLY";
|
|
13
|
+
ENotificationActionType["LIKE"] = "LIKE";
|
|
14
|
+
ENotificationActionType["DISLIKE"] = "DISLIKE";
|
|
15
|
+
ENotificationActionType["FEATURE"] = "FEATURE";
|
|
16
|
+
ENotificationActionType["INFORMATION"] = "INFORMATION";
|
|
17
|
+
ENotificationActionType["REQUESTED"] = "REQUESTED";
|
|
18
|
+
ENotificationActionType["ACCEPTED"] = "ACCEPTED";
|
|
19
|
+
})(ENotificationActionType = exports.ENotificationActionType || (exports.ENotificationActionType = {}));
|
package/package.json
CHANGED
package/utils/lightgallery.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.lightgalleryOsceResolve = void 0;
|
|
4
|
-
const lightgalleryRegex = /\[lightgallery\]/;
|
|
4
|
+
const lightgalleryRegex = /\[(lightgallery){1}[0-9]{0,}\]/;
|
|
5
5
|
function isOsceMarksheet(data) {
|
|
6
6
|
return 'osceStationId' in data;
|
|
7
7
|
}
|
|
@@ -80,7 +80,11 @@ const lightgalleryMutation = async (text, pictures, cache) => {
|
|
|
80
80
|
picturesHTML.push(``);
|
|
81
81
|
}
|
|
82
82
|
if (lightgalleryRegex.test(text)) {
|
|
83
|
-
|
|
83
|
+
picturesHTML.forEach((image, index) => {
|
|
84
|
+
const lightgalleryTagToReplace = `[lightgallery${!index ? '' : index}]`;
|
|
85
|
+
text = text.replace(lightgalleryTagToReplace, image);
|
|
86
|
+
});
|
|
87
|
+
return text;
|
|
84
88
|
}
|
|
85
89
|
else {
|
|
86
90
|
return text + '\n\n' + picturesHTML[0] + '\n';
|