@veltdev/sdk-staging 1.0.1
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 +44 -0
- package/app/client/snippyly.model.d.ts +141 -0
- package/app/client/velt.model.d.ts +5 -0
- package/app/models/data/annotation-property.data.model.d.ts +30 -0
- package/app/models/data/area-annotation.data.model.d.ts +74 -0
- package/app/models/data/attachment.model.d.ts +40 -0
- package/app/models/data/chatgpt.data.model.d.ts +10 -0
- package/app/models/data/comment-annotation.data.model.d.ts +161 -0
- package/app/models/data/comment.data.model.d.ts +71 -0
- package/app/models/data/config.data.model.d.ts +45 -0
- package/app/models/data/cursor-position.data.model.d.ts +10 -0
- package/app/models/data/cursor-user.data.model.d.ts +118 -0
- package/app/models/data/custom-filter.data.model.d.ts +26 -0
- package/app/models/data/device-info.model.d.ts +75 -0
- package/app/models/data/document-iam.data.model.d.ts +14 -0
- package/app/models/data/document-metadata.model.d.ts +22 -0
- package/app/models/data/document-paths.data.model.d.ts +94 -0
- package/app/models/data/document-user.data.model.d.ts +33 -0
- package/app/models/data/flock-options.model.d.ts +7 -0
- package/app/models/data/huddle.model.d.ts +17 -0
- package/app/models/data/live-state-data-map.data.model.d.ts +7 -0
- package/app/models/data/live-state-data.data.model.d.ts +11 -0
- package/app/models/data/localstorage.data.model.d.ts +4 -0
- package/app/models/data/location-metadata.model.d.ts +16 -0
- package/app/models/data/location.model.d.ts +15 -0
- package/app/models/data/media-preview-config.data.model.d.ts +14 -0
- package/app/models/data/notification.model.d.ts +41 -0
- package/app/models/data/page-info.model.d.ts +46 -0
- package/app/models/data/permission.data.model.d.ts +14 -0
- package/app/models/data/presence-user.data.model.d.ts +79 -0
- package/app/models/data/recorder-annotation.data.model.d.ts +120 -0
- package/app/models/data/recorder.model.d.ts +74 -0
- package/app/models/data/rewriter-annotation.data.model.d.ts +62 -0
- package/app/models/data/screen-size.data.model.d.ts +14 -0
- package/app/models/data/selection.model.d.ts +22 -0
- package/app/models/data/tag-annotation.data.model.d.ts +113 -0
- package/app/models/data/target-element.data.model.d.ts +18 -0
- package/app/models/data/target-text-range.data.model.d.ts +14 -0
- package/app/models/data/toast.data.model.d.ts +19 -0
- package/app/models/data/transcription.data.model.d.ts +35 -0
- package/app/models/data/user-contact-us.data.model.d.ts +3 -0
- package/app/models/data/user-contact.data.model.d.ts +29 -0
- package/app/models/data/user-feedback.data.model.d.ts +3 -0
- package/app/models/data/user-iam.data.model.d.ts +33 -0
- package/app/models/data/user-report-bug.data.model.d.ts +3 -0
- package/app/models/data/user-request.data.model.d.ts +37 -0
- package/app/models/data/user-role.data.model.d.ts +19 -0
- package/app/models/data/user.data.model.d.ts +60 -0
- package/app/models/data/workspace-iam.data.model.d.ts +14 -0
- package/app/models/element/area-element.model.d.ts +23 -0
- package/app/models/element/comment-element.model.d.ts +466 -0
- package/app/models/element/contact-element.model.d.ts +13 -0
- package/app/models/element/cursor-element.model.d.ts +42 -0
- package/app/models/element/presence-element.model.d.ts +53 -0
- package/app/models/element/recorder-element.model.d.ts +15 -0
- package/app/models/element/rewriter-element.model.d.ts +23 -0
- package/app/models/element/selection-element.model.d.ts +15 -0
- package/app/models/element/tag-element.model.d.ts +68 -0
- package/app/utils/constants.d.ts +381 -0
- package/app/utils/enums.d.ts +95 -0
- package/declarations.d.ts +6 -0
- package/models.d.ts +44 -0
- package/package.json +14 -0
- package/types.d.ts +4 -0
- package/velt.css +1 -0
- package/velt.d.ts +21 -0
- package/velt.js +110 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { TagPinAnnotation } from "../data/tag-annotation.data.model";
|
|
4
|
+
export declare class TagElement {
|
|
5
|
+
/**
|
|
6
|
+
* Subscribe to tags on the current document.
|
|
7
|
+
*
|
|
8
|
+
* Returns Observable<TagPinAnnotation[] | null>.
|
|
9
|
+
*/
|
|
10
|
+
getAllTagAnnotations: (documentId?: string, documentParams?: object) => Observable<TagPinAnnotation[] | null>;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* To delete selected tags
|
|
14
|
+
*/
|
|
15
|
+
deleteTag: () => any;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* To allow text selection in specific elements only
|
|
19
|
+
* @param elementIds Element ids to be allowed
|
|
20
|
+
*/
|
|
21
|
+
allowedElementIds: (elementIds: string[]) => any;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* To add tags on specific elements
|
|
25
|
+
*
|
|
26
|
+
* @param elementId ID of html element
|
|
27
|
+
*/
|
|
28
|
+
attachTag: (elementId: string) => any;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Subscribe to add tag mode change.
|
|
32
|
+
*
|
|
33
|
+
* Returns Observable<boolean>.
|
|
34
|
+
*/
|
|
35
|
+
addTagModeChange: () => Observable<boolean>;
|
|
36
|
+
constructor();
|
|
37
|
+
/**
|
|
38
|
+
* Subscribe to tags on the current document.
|
|
39
|
+
*
|
|
40
|
+
* Returns Observable<TagPinAnnotation[] | null>.
|
|
41
|
+
*/
|
|
42
|
+
private _getAllTagAnnotations;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* To delete selected tags
|
|
46
|
+
*/
|
|
47
|
+
private _deleteTag;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* To allow text selection in specific elements only
|
|
51
|
+
* @param elementIds Element ids to be allowed
|
|
52
|
+
*/
|
|
53
|
+
private _allowedElementIds;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* To add tags on specific elements
|
|
57
|
+
*
|
|
58
|
+
* @param elementId ID of html element
|
|
59
|
+
*/
|
|
60
|
+
private _attachTag;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Subscribe to add tag mode change.
|
|
64
|
+
*
|
|
65
|
+
* Returns Observable<boolean>.
|
|
66
|
+
*/
|
|
67
|
+
private _addTagModeChange;
|
|
68
|
+
}
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { CustomPriorityMap, CustomStatus, CustomStatusMap } from "../models/data/custom-filter.data.model";
|
|
2
|
+
import { UserRole } from "../models/data/user-role.data.model";
|
|
3
|
+
export declare class Constants {
|
|
4
|
+
static SNIPPYLY_HOST_URL_PROD: string;
|
|
5
|
+
static SNIPPYLY_HOST_URL_STAGING: string;
|
|
6
|
+
static USER_TYPE_ANONYMOUS: string;
|
|
7
|
+
static USER_TYPE_SIGNED_IN: string;
|
|
8
|
+
static LOCALSTORAGE_DATA_ID: string;
|
|
9
|
+
static FIREBASE_PARTIAL_PATH_DOCS: string;
|
|
10
|
+
static FIREBASE_PARTIAL_PATH_PRESENCE: string;
|
|
11
|
+
static FIREBASE_PARTIAL_PATH_CURSOR: string;
|
|
12
|
+
static FIREBASE_PARTIAL_PATH_ARROW: string;
|
|
13
|
+
static FIREBASE_PARTIAL_PATH_AREA: string;
|
|
14
|
+
static FIREBASE_PARTIAL_PATH_COMMENT: string;
|
|
15
|
+
static FIREBASE_PARTIAL_PATH_TAG: string;
|
|
16
|
+
static FIREBASE_PARTIAL_PATH_SELECTION: string;
|
|
17
|
+
static FIREBASE_PARTIAL_PATH_AUDIO_HUDDLE: string;
|
|
18
|
+
static FIREBASE_PARTIAL_PATH_HUDDLE: string;
|
|
19
|
+
static FIREBASE_PARTIAL_PATH_CONTACTS: string;
|
|
20
|
+
static FIREBASE_PARTIAL_PATH_GROUPS: string;
|
|
21
|
+
static FIREBASE_PARTIAL_PATH_GLOBAL: string;
|
|
22
|
+
static FIREBASE_PARTIAL_PATH_LOGINS: string;
|
|
23
|
+
static FIREBASE_PARTIAL_PATH_METADATA: string;
|
|
24
|
+
static FIREBASE_PARTIAL_PATH_LOCATIONS: string;
|
|
25
|
+
static FIREBASE_PARTIAL_PATH_RECORDER: string;
|
|
26
|
+
static FIREBASE_PARTIAL_PATH_FOLLOW_ALONG: string;
|
|
27
|
+
static FIREBASE_PARTIAL_PATH_IAM: string;
|
|
28
|
+
static FIREBASE_PARTIAL_PATH_USERS: string;
|
|
29
|
+
static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
|
|
30
|
+
static FIREBASE_PARTIAL_PATH_FEEDBACK: string;
|
|
31
|
+
static FIREBASE_PARTIAL_PATH_BUGS: string;
|
|
32
|
+
static FIREBASE_PARTIAL_PATH_CONTACT_US: string;
|
|
33
|
+
static PRESENCE_STATUS_ONLINE: string;
|
|
34
|
+
static PRESENCE_STATUS_OFFLINE: string;
|
|
35
|
+
static PRESENCE_STATUS_AWAY: string;
|
|
36
|
+
static IMG_URL_NOT_FOUND: string;
|
|
37
|
+
static IMG_CLASS_NOT_FOUND: string;
|
|
38
|
+
static VALIDATE_CLIENT: string;
|
|
39
|
+
static GET_ICE_SERVERS: string;
|
|
40
|
+
static CONVERT_RECORDING: string;
|
|
41
|
+
static CONVERT_RECORDING_V2: string;
|
|
42
|
+
static ANALYTICS_FUNCTION: string;
|
|
43
|
+
static CHATGPT_COMPLETION: string;
|
|
44
|
+
static WHISPER_TRANSCRIPTION: string;
|
|
45
|
+
static GET_PLAN_DETAILS: string;
|
|
46
|
+
static AVATAR_COLOR_LIST: string[];
|
|
47
|
+
static TEXT_COLOR_MAP: any;
|
|
48
|
+
static DEFAULT_ANNOTATION_COLOR: string;
|
|
49
|
+
static REGEX_EMAIL: RegExp;
|
|
50
|
+
static REGEX_URL: RegExp;
|
|
51
|
+
static REGEX_SPECIAL_CHARS: RegExp;
|
|
52
|
+
static SNIPPYLY_HIGHLIGHT: string;
|
|
53
|
+
static SNIPPYLY_HIGHLIGHT_PREVIEW: string;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Use VELT_IGNORE_CHANGE_DETECTION instead
|
|
56
|
+
*/
|
|
57
|
+
static SNIPPYLY_IGNORE_CHANGE_DETECTION: string;
|
|
58
|
+
static SNIPPYLY_HIGHLIGHT_USER: string;
|
|
59
|
+
static SNIPPYLY_HIGHLIGHT_USER_NAME: string;
|
|
60
|
+
static SNIPPYLY_HIGHLIGHT_USER_TEXT: string;
|
|
61
|
+
static VELT_IGNORE_CHANGE_DETECTION: string;
|
|
62
|
+
static TAGS: {
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Use VELT_ROOT instead
|
|
65
|
+
*/
|
|
66
|
+
SNIPPYLY_ROOT: string;
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use VELT_PRESENCE instead
|
|
69
|
+
*/
|
|
70
|
+
SNIPPYLY_PRESENCE: string;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Use VELT_CURSOR instead
|
|
73
|
+
*/
|
|
74
|
+
SNIPPYLY_CURSOR: string;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Use VELT_COMMENT_TOOL instead
|
|
77
|
+
*/
|
|
78
|
+
SNIPPYLY_COMMENT_TOOL: string;
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated Use VELT_COMMENTS instead
|
|
81
|
+
*/
|
|
82
|
+
SNIPPYLY_COMMENTS: string;
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Use VELT_TAG_TOOL instead
|
|
85
|
+
*/
|
|
86
|
+
SNIPPYLY_TAG_TOOL: string;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Use VELT_TAGS instead
|
|
89
|
+
*/
|
|
90
|
+
SNIPPYLY_TAGS: string;
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Use VELT_RECORDER_NOTES instead
|
|
93
|
+
*/
|
|
94
|
+
SNIPPYLY_RECORDER_NOTES: string;
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated Use VELT_RECORDER_CONTROL_PANEL instead
|
|
97
|
+
*/
|
|
98
|
+
SNIPPYLY_RECORDER_CONTROL_PANEL: string;
|
|
99
|
+
SNIPPYLY_RECORDER_CONTROL_PANEL_INTERNAL: string;
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated Use VELT_RECORDER_PLAYER instead
|
|
102
|
+
*/
|
|
103
|
+
SNIPPYLY_RECORDER_PLAYER: string;
|
|
104
|
+
SNIPPYLY_TEXT_HIGHLIGHT: string;
|
|
105
|
+
SNIPPYLY_COMMENT_TEXT_PORTAL: string;
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated Use VELT_COMMENTS_SIDEBAR instead
|
|
108
|
+
*/
|
|
109
|
+
SNIPPYLY_COMMENTS_SIDEBAR: string;
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated User SNIPPYLY_COMMENT_BUBBLE instead
|
|
112
|
+
*/
|
|
113
|
+
SNIPPYLY_COMMENT_BUBBLE: string;
|
|
114
|
+
SNIPPYLY_HIGHLIGHT_USER_TEXT: string;
|
|
115
|
+
SNIPPYLY_AUDIO_HUDDLE: string;
|
|
116
|
+
SNIPPYLY_VIDEO_HUDDLE: string;
|
|
117
|
+
/**
|
|
118
|
+
* @deprecated Use VELT_HUDDLE instead
|
|
119
|
+
*/
|
|
120
|
+
SNIPPYLY_HUDDLE: string;
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated Use VELT_HUDDLE_TOOL instead
|
|
123
|
+
*/
|
|
124
|
+
SNIPPYLY_HUDDLE_TOOL: string;
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Use VELT_RECORDER_TOOL instead
|
|
127
|
+
*/
|
|
128
|
+
SNIPPYLY_RECORDER_TOOL: string;
|
|
129
|
+
SNIPPYLY_PLUGIN: string;
|
|
130
|
+
SNIPPYLY_MENU: string;
|
|
131
|
+
SNIPPYLY_COMMENT_DIALOG: string;
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated Use VELT_SIDEBAR_BUTTON instead
|
|
134
|
+
*/
|
|
135
|
+
SNIPPYLY_SIDEBAR_BUTTON: string;
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated Use VELT_REWRITER instead
|
|
138
|
+
*/
|
|
139
|
+
SNIPPYLY_REWRITER: string;
|
|
140
|
+
/**
|
|
141
|
+
* @deprecated Use VELT_USER_SELECTOR instead
|
|
142
|
+
*/
|
|
143
|
+
SNIPPYLY_USER_SELECTOR: string;
|
|
144
|
+
/**
|
|
145
|
+
* @deprecated Use VELT_USER_INVITE_TOOL instead
|
|
146
|
+
*/
|
|
147
|
+
SNIPPYLY_USER_INVITE_TOOL: string;
|
|
148
|
+
/**
|
|
149
|
+
* @deprecated Use VELT_USER_REQUEST_TOOL instead
|
|
150
|
+
*/
|
|
151
|
+
SNIPPYLY_USER_REQUEST_TOOL: string;
|
|
152
|
+
SNIPPYLY_USER_AVATAR: string;
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated Use VELT_ARROW_TOOL instead
|
|
155
|
+
*/
|
|
156
|
+
SNIPPYLY_ARROW_TOOL: string;
|
|
157
|
+
/**
|
|
158
|
+
* @deprecated Use VELT_ARROWS instead
|
|
159
|
+
*/
|
|
160
|
+
SNIPPYLY_ARROWS: string;
|
|
161
|
+
SNIPPYLY_AREA_TOOL: string;
|
|
162
|
+
SNIPPYLY_AREAS: string;
|
|
163
|
+
VELT_ROOT: string;
|
|
164
|
+
VELT_PRESENCE: string;
|
|
165
|
+
VELT_CURSOR: string;
|
|
166
|
+
VELT_COMMENT_TOOL: string;
|
|
167
|
+
VELT_COMMENTS: string;
|
|
168
|
+
VELT_TAG_TOOL: string;
|
|
169
|
+
VELT_TAGS: string;
|
|
170
|
+
VELT_RECORDER_NOTES: string;
|
|
171
|
+
VELT_RECORDER_CONTROL_PANEL: string;
|
|
172
|
+
VELT_RECORDER_CONTROL_PANEL_INTERNAL: string;
|
|
173
|
+
VELT_RECORDER_PLAYER: string;
|
|
174
|
+
VELT_TEXT_HIGHLIGHT: string;
|
|
175
|
+
VELT_COMMENT_TEXT_PORTAL: string;
|
|
176
|
+
VELT_COMMENTS_SIDEBAR: string;
|
|
177
|
+
VELT_COMMENT_BUBBLE: string;
|
|
178
|
+
VELT_HIGHLIGHT_USER_TEXT: string;
|
|
179
|
+
VELT_AUDIO_HUDDLE: string;
|
|
180
|
+
VELT_VIDEO_HUDDLE: string;
|
|
181
|
+
VELT_HUDDLE: string;
|
|
182
|
+
VELT_HUDDLE_TOOL: string;
|
|
183
|
+
VELT_RECORDER_TOOL: string;
|
|
184
|
+
VELT_PLUGIN: string;
|
|
185
|
+
VELT_MENU: string;
|
|
186
|
+
VELT_COMMENT_DIALOG: string;
|
|
187
|
+
VELT_SIDEBAR_BUTTON: string;
|
|
188
|
+
VELT_REWRITER: string;
|
|
189
|
+
VELT_USER_SELECTOR: string;
|
|
190
|
+
VELT_USER_INVITE_TOOL: string;
|
|
191
|
+
VELT_USER_REQUEST_TOOL: string;
|
|
192
|
+
VELT_USER_AVATAR: string;
|
|
193
|
+
VELT_ARROW_TOOL: string;
|
|
194
|
+
VELT_ARROWS: string;
|
|
195
|
+
VELT_AREA_TOOL: string;
|
|
196
|
+
VELT_AREAS: string;
|
|
197
|
+
};
|
|
198
|
+
static ATTRIBUTES: {
|
|
199
|
+
/**
|
|
200
|
+
* @deprecated Use VELT_COMMENT_DISABLED instead
|
|
201
|
+
*/
|
|
202
|
+
SNIPPYLY_COMMENT_DISABLED: string;
|
|
203
|
+
/**
|
|
204
|
+
* @deprecated Use VELT_TAG_DISABLED instead
|
|
205
|
+
*/
|
|
206
|
+
SNIPPYLY_TAG_DISABLED: string;
|
|
207
|
+
/**
|
|
208
|
+
* @deprecated Use VELT_RECORDER_DISABLED instead
|
|
209
|
+
*/
|
|
210
|
+
SNIPPYLY_RECORDER_DISABLED: string;
|
|
211
|
+
/**
|
|
212
|
+
* @deprecated Use VELT_SELECTION_ENABLED instead
|
|
213
|
+
*/
|
|
214
|
+
SNIPPYLY_SELECTION_ENABLED: string;
|
|
215
|
+
/**
|
|
216
|
+
* @todo Remove this attribute, use VELT_LOCATION instead
|
|
217
|
+
*/
|
|
218
|
+
SNIPPYLY_LOCATION: string;
|
|
219
|
+
EMBED_MODE: string;
|
|
220
|
+
DEFAULT_CURSOR: string;
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Use VELT_ARROW_DISABLED instead
|
|
223
|
+
*/
|
|
224
|
+
SNIPPYLY_ARROW_DISABLED: string;
|
|
225
|
+
/**
|
|
226
|
+
* @deprecated Use VELT_AREA_DISABLED instead
|
|
227
|
+
*/
|
|
228
|
+
SNIPPYLY_AREA_DISABLED: string;
|
|
229
|
+
VELT_ID: string;
|
|
230
|
+
VELT_ELEMENT: string;
|
|
231
|
+
VELT_ANNOTATION_ID: string;
|
|
232
|
+
VELT_ANNOTATION_IDS: string;
|
|
233
|
+
VELT_COMMENT_PIN_HOST: string;
|
|
234
|
+
VELT_COMMENT_PIN_HOST_STATIC: string;
|
|
235
|
+
VELT_COMMENT_DISABLED: string;
|
|
236
|
+
VELT_TAG_PIN_HOST: string;
|
|
237
|
+
VELT_TAG_PIN_HOST_STATIC: string;
|
|
238
|
+
VELT_TAG_DISABLED: string;
|
|
239
|
+
VELT_RECORDER_PIN_HOST: string;
|
|
240
|
+
VELT_RECORDER_PIN_HOST_STATIC: string;
|
|
241
|
+
VELT_RECORDER_DISABLED: string;
|
|
242
|
+
VELT_ANNOTATION_DRAFT: string;
|
|
243
|
+
VELT_THEME: string;
|
|
244
|
+
VELT_IGNORE: string;
|
|
245
|
+
VELT_HUDDLE_ON_CURSOR_MODE: string;
|
|
246
|
+
VELT_SELECTION_ENABLED: string;
|
|
247
|
+
VELT_POPOVER_MODE: string;
|
|
248
|
+
VELT_ELEMENT_CACHE_ID: string;
|
|
249
|
+
VELT_ARROW_PIN_HOST: string;
|
|
250
|
+
VELT_ARROW_PIN_HOST_STATIC: string;
|
|
251
|
+
VELT_ARROW_DISABLED: string;
|
|
252
|
+
VELT_AREA_PIN_HOST: string;
|
|
253
|
+
VELT_AREA_PIN_HOST_STATIC: string;
|
|
254
|
+
VELT_AREA_DISABLED: string;
|
|
255
|
+
};
|
|
256
|
+
static INJECTION_STYLE_PROPS: {
|
|
257
|
+
/**
|
|
258
|
+
* @deprecated Use VELT_AVATAR_COLOR instead
|
|
259
|
+
*/
|
|
260
|
+
SNIPPYLY_AVATAR_COLOR: string;
|
|
261
|
+
/**
|
|
262
|
+
* @deprecated Use VELT_COMMENT_PRIORITY_COLOR instead
|
|
263
|
+
*/
|
|
264
|
+
SNIPPYLY_COMMENT_PRIORITY_COLOR: string;
|
|
265
|
+
VELT_AVATAR_COLOR: string;
|
|
266
|
+
VELT_COMMENT_PRIORITY_COLOR: string;
|
|
267
|
+
};
|
|
268
|
+
static INJECTION_ATTRIBUTES: {
|
|
269
|
+
/**
|
|
270
|
+
* @deprecated Use VELT_AVATAR_IMG instead
|
|
271
|
+
*/
|
|
272
|
+
SNIPPYLY_AVATAR_IMG: string;
|
|
273
|
+
/**
|
|
274
|
+
* @deprecated Use VELT_COMMENT_LENGTH instead
|
|
275
|
+
*/
|
|
276
|
+
SNIPPYLY_COMMENT_LENGTH: string;
|
|
277
|
+
VELT_AVATAR_IMG: string;
|
|
278
|
+
VELT_COMMENT_LENGTH: string;
|
|
279
|
+
};
|
|
280
|
+
static SESSION_STORAGE: {
|
|
281
|
+
SNIPPYLY_AUTO_SELECT_ANNOTATION_ID: string;
|
|
282
|
+
SNIPPYLY_SELECTED_ANNOTATION_ID: string;
|
|
283
|
+
SNIPPYLY_COMMENT_SIDEBAR_FILTERS: string;
|
|
284
|
+
SNIPPYLY_COMMENT_DIALOG_AUTO_POPULATE_TEXT: string;
|
|
285
|
+
SNIPPYLY_HUDDLE_DATA: string;
|
|
286
|
+
};
|
|
287
|
+
static LOCAL_STORAGE: {
|
|
288
|
+
SNIPPYLY_DEFAULT_MEDIA_SOURCE_OPTIONS: string;
|
|
289
|
+
SNIPPYLY_QUEUED_COMMENT: string;
|
|
290
|
+
};
|
|
291
|
+
static NON_NESTABLE_ELEMENTS: {
|
|
292
|
+
[tag: string]: boolean;
|
|
293
|
+
};
|
|
294
|
+
static INGNORE_MUTATION_OBSERVER_CHANGE_TAGS: {
|
|
295
|
+
[tag: string]: boolean;
|
|
296
|
+
};
|
|
297
|
+
static SELECTION_ENABLED_ELEMENTS: {
|
|
298
|
+
[tag: string]: boolean;
|
|
299
|
+
};
|
|
300
|
+
static URL_PARAMS: {
|
|
301
|
+
REVIEW_MODE: string;
|
|
302
|
+
REVIEW_DOC_ID: string;
|
|
303
|
+
SNIPPYLY_USER: string;
|
|
304
|
+
COMMENT_ID: string;
|
|
305
|
+
TAG_ID: string;
|
|
306
|
+
RECORDER_ID: string;
|
|
307
|
+
PROJECT_INSTALL: string;
|
|
308
|
+
};
|
|
309
|
+
static VELT_BASE_REM_UNIT: string;
|
|
310
|
+
static VELT_VIEWPORT_WIDTH: string;
|
|
311
|
+
static VELT_VIEWPORT_HEIGHT: string;
|
|
312
|
+
static VELT_COLOR: string;
|
|
313
|
+
static VELT_MIN_ARROW_LENGTH: number;
|
|
314
|
+
static VELT_ARROW_VIEWPORT_PADDING: number;
|
|
315
|
+
static CURSOR: {
|
|
316
|
+
COMMENT_PIN: string;
|
|
317
|
+
TAG_PIN: string;
|
|
318
|
+
ARROW_PIN: string;
|
|
319
|
+
AREA_PIN: string;
|
|
320
|
+
};
|
|
321
|
+
static VIDEO_POSTER_DEFAULT_IMAGE: string;
|
|
322
|
+
static HUDDLE_TYPE_CONFIGS: {
|
|
323
|
+
audio: {
|
|
324
|
+
audio: boolean;
|
|
325
|
+
video: boolean;
|
|
326
|
+
presentation: boolean;
|
|
327
|
+
};
|
|
328
|
+
video: {
|
|
329
|
+
audio: boolean;
|
|
330
|
+
video: boolean;
|
|
331
|
+
presentation: boolean;
|
|
332
|
+
};
|
|
333
|
+
presentation: {
|
|
334
|
+
audio: boolean;
|
|
335
|
+
video: boolean;
|
|
336
|
+
presentation: boolean;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
static ViewModes: {
|
|
340
|
+
INTERNAL: string;
|
|
341
|
+
EXTERNAL: string;
|
|
342
|
+
ALL: string;
|
|
343
|
+
};
|
|
344
|
+
static RecorderModes: {
|
|
345
|
+
VIDEO: string;
|
|
346
|
+
AUDIO: string;
|
|
347
|
+
SCREEN: string;
|
|
348
|
+
ALL: string;
|
|
349
|
+
};
|
|
350
|
+
static CommentAnnotationStatusMap: CustomStatusMap;
|
|
351
|
+
static CommentAcceptStatus: CustomStatus;
|
|
352
|
+
static CommentRejectStatus: CustomStatus;
|
|
353
|
+
static CommentAnnotationPriorityMap: CustomPriorityMap;
|
|
354
|
+
static WorkspaceRoles: Array<UserRole>;
|
|
355
|
+
static DocumentAccessTypeMap: {
|
|
356
|
+
[key: string]: {
|
|
357
|
+
id: string;
|
|
358
|
+
name: string;
|
|
359
|
+
description: string;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
static CommentCategoryMap: {
|
|
363
|
+
[categoryId: string]: {
|
|
364
|
+
id: string;
|
|
365
|
+
name: string;
|
|
366
|
+
color: string;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
static OVERLAY_POSITIONS: {
|
|
370
|
+
originX: any;
|
|
371
|
+
originY: any;
|
|
372
|
+
overlayX: any;
|
|
373
|
+
overlayY: any;
|
|
374
|
+
}[];
|
|
375
|
+
static OVERLAY_POSITIONS_FOR_POPOVER_MODE: {
|
|
376
|
+
originX: any;
|
|
377
|
+
originY: any;
|
|
378
|
+
overlayX: any;
|
|
379
|
+
overlayY: any;
|
|
380
|
+
}[];
|
|
381
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare enum CommentStatus {
|
|
2
|
+
ADDED = "added",
|
|
3
|
+
UPDATED = "updated",
|
|
4
|
+
DELETED = "deleted",
|
|
5
|
+
APPROVED = "approved",
|
|
6
|
+
ASSIGNED = "assigned",
|
|
7
|
+
RESOLVED = "resolved",
|
|
8
|
+
REOPENED = "reopened",
|
|
9
|
+
IN_PROGRESS = "inProgress",
|
|
10
|
+
STATUS_CHANGED = "statusChanged",
|
|
11
|
+
PRIORITY_CHANGED = "priorityChanged",
|
|
12
|
+
ACCEPTED = "accepted",
|
|
13
|
+
REJECTED = "rejected"
|
|
14
|
+
}
|
|
15
|
+
export declare enum CommentAction {
|
|
16
|
+
ADD = "add",
|
|
17
|
+
UPDATE = "update",
|
|
18
|
+
DELETE = "delete",
|
|
19
|
+
APPROVE = "approve",
|
|
20
|
+
ASSIGN = "assign",
|
|
21
|
+
RESOLVE = "resolve",
|
|
22
|
+
REOPEN = "reopen",
|
|
23
|
+
IN_PROGRESS = "inProgress",
|
|
24
|
+
CHANGE_STATUS = "changeStatus",
|
|
25
|
+
CHANGE_PRIORITY = "changePriority",
|
|
26
|
+
ACCEPT = "accept",
|
|
27
|
+
REJECT = "reject"
|
|
28
|
+
}
|
|
29
|
+
export declare enum TagStatus {
|
|
30
|
+
ADDED = "added",
|
|
31
|
+
UPDATED = "updated",
|
|
32
|
+
DELETED = "deleted",
|
|
33
|
+
APPROVED = "approved",
|
|
34
|
+
RESOLVED = "resolved"
|
|
35
|
+
}
|
|
36
|
+
export declare enum RecorderStatus {
|
|
37
|
+
ADDED = "added",
|
|
38
|
+
UPDATED = "updated",
|
|
39
|
+
DELETED = "deleted",
|
|
40
|
+
APPROVED = "approved",
|
|
41
|
+
RESOLVED = "resolved"
|
|
42
|
+
}
|
|
43
|
+
export declare enum ArrowStatus {
|
|
44
|
+
ADDED = "added",
|
|
45
|
+
UPDATED = "updated",
|
|
46
|
+
DELETED = "deleted"
|
|
47
|
+
}
|
|
48
|
+
export declare enum AreaStatus {
|
|
49
|
+
ADDED = "added",
|
|
50
|
+
UPDATED = "updated",
|
|
51
|
+
DELETED = "deleted"
|
|
52
|
+
}
|
|
53
|
+
export declare enum Features {
|
|
54
|
+
AREA = "area",
|
|
55
|
+
ARROW = "arrow",
|
|
56
|
+
AUDIO_HUDDLE = "audioHuddle",
|
|
57
|
+
COMMENT = "comment",
|
|
58
|
+
CURSOR = "cursor",
|
|
59
|
+
HUDDLE = "huddle",
|
|
60
|
+
LIVE_STATE_SYNC = "liveStateSync",
|
|
61
|
+
PRESENCE = "presence",
|
|
62
|
+
TAG = "tag",
|
|
63
|
+
RECORDER = "recorder",
|
|
64
|
+
REWRITER = "rewriter"
|
|
65
|
+
}
|
|
66
|
+
export declare type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag';
|
|
67
|
+
export declare enum DeviceType {
|
|
68
|
+
DESKTOP = "Desktop",
|
|
69
|
+
MOBILE = "Mobile",
|
|
70
|
+
TABLET = "Tablet",
|
|
71
|
+
MONITOR = "Monitor",
|
|
72
|
+
UNKNOWN = "Unknown"
|
|
73
|
+
}
|
|
74
|
+
export declare enum Orientation {
|
|
75
|
+
PORTRAIT = "portrait",
|
|
76
|
+
LANDSCAPE = "landscape",
|
|
77
|
+
UNKNOWN = "unknown"
|
|
78
|
+
}
|
|
79
|
+
export declare enum OrientationMediaQueries {
|
|
80
|
+
Portrait = "(orientation: portrait)",
|
|
81
|
+
Landscape = "(orientation: landscape)"
|
|
82
|
+
}
|
|
83
|
+
export declare enum GhostCommentType {
|
|
84
|
+
DIFFERENT_DEVICE = "differentDevice",
|
|
85
|
+
ELEMENT_DELETED = "elementDeleted"
|
|
86
|
+
}
|
|
87
|
+
export declare enum Roles {
|
|
88
|
+
ADMIN = "Admin",
|
|
89
|
+
COMMENTER = "Commenter"
|
|
90
|
+
}
|
|
91
|
+
export declare enum DocumentAccessType {
|
|
92
|
+
PUBLIC = "public",
|
|
93
|
+
RESTRICTED = "restricted",
|
|
94
|
+
PRIVATE = "private"
|
|
95
|
+
}
|
package/models.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * from './app/utils/enums';
|
|
2
|
+
export * from './app/models/data/attachment.model';
|
|
3
|
+
export * from './app/models/data/area-annotation.data.model';
|
|
4
|
+
export * from './app/models/data/chatgpt.data.model';
|
|
5
|
+
export * from './app/models/data/comment-annotation.data.model';
|
|
6
|
+
export * from './app/models/data/comment.data.model';
|
|
7
|
+
export * from './app/models/data/config.data.model';
|
|
8
|
+
export * from './app/models/data/cursor-position.data.model';
|
|
9
|
+
export * from './app/models/data/cursor-user.data.model';
|
|
10
|
+
export * from './app/models/data/device-info.model';
|
|
11
|
+
export * from './app/models/data/document-iam.data.model';
|
|
12
|
+
export * from './app/models/data/document-metadata.model';
|
|
13
|
+
export * from './app/models/data/document-paths.data.model';
|
|
14
|
+
export * from './app/models/data/document-user.data.model';
|
|
15
|
+
export * from './app/models/data/huddle.model';
|
|
16
|
+
export * from './app/models/data/live-state-data-map.data.model';
|
|
17
|
+
export * from './app/models/data/live-state-data.data.model';
|
|
18
|
+
export * from './app/models/data/localstorage.data.model';
|
|
19
|
+
export * from './app/models/data/location-metadata.model';
|
|
20
|
+
export * from './app/models/data/location.model';
|
|
21
|
+
export * from './app/models/data/media-preview-config.data.model';
|
|
22
|
+
export * from './app/models/data/notification.model';
|
|
23
|
+
export * from './app/models/data/page-info.model';
|
|
24
|
+
export * from './app/models/data/permission.data.model';
|
|
25
|
+
export * from './app/models/data/presence-user.data.model';
|
|
26
|
+
export * from './app/models/data/recorder.model';
|
|
27
|
+
export * from './app/models/data/recorder-annotation.data.model';
|
|
28
|
+
export * from './app/models/data/rewriter-annotation.data.model';
|
|
29
|
+
export * from './app/models/data/screen-size.data.model';
|
|
30
|
+
export * from './app/models/data/selection.model';
|
|
31
|
+
export * from './app/models/data/tag-annotation.data.model';
|
|
32
|
+
export * from './app/models/data/target-element.data.model';
|
|
33
|
+
export * from './app/models/data/target-text-range.data.model';
|
|
34
|
+
export * from './app/models/data/toast.data.model';
|
|
35
|
+
export * from './app/models/data/transcription.data.model';
|
|
36
|
+
export * from './app/models/data/user-contact.data.model';
|
|
37
|
+
export * from './app/models/data/user-contact-us.data.model';
|
|
38
|
+
export * from './app/models/data/user-feedback.data.model';
|
|
39
|
+
export * from './app/models/data/user-iam.data.model';
|
|
40
|
+
export * from './app/models/data/user-report-bug.data.model';
|
|
41
|
+
export * from './app/models/data/user-role.data.model';
|
|
42
|
+
export * from './app/models/data/user.data.model';
|
|
43
|
+
export * from './app/models/data/workspace-iam.data.model';
|
|
44
|
+
export * from './app/models/data/flock-options.model';
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@veltdev/sdk-staging",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "velt.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"version:update": "npm version patch",
|
|
9
|
+
"publish:sdk": "npm publish --access public"
|
|
10
|
+
},
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"typings": "./velt.d.ts"
|
|
14
|
+
}
|
package/types.d.ts
ADDED
package/velt.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html{--velt-base-rem-unit:1}[data-snippyly-element=true],[data-velt-element=true]{font-family:var(--velt-default-font-family)}
|
package/velt.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import * as snippyly from './types';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export type Snippyly = { init: (api: string, config: snippyly.Config) => Snippyly, loaded: boolean, loadSnippyly: Function } & snippyly.Snippyly;
|
|
5
|
+
export const Snippyly: {
|
|
6
|
+
init: (api: string, config?: snippyly.Config) => Promise<Snippyly>,
|
|
7
|
+
loadSnippyly: () => Snippyly,
|
|
8
|
+
loaded: boolean
|
|
9
|
+
} & snippyly.Snippyly;
|
|
10
|
+
|
|
11
|
+
export const Velt = Snippyly;
|
|
12
|
+
|
|
13
|
+
////////////////////
|
|
14
|
+
// Global object
|
|
15
|
+
////////////////////
|
|
16
|
+
declare global {
|
|
17
|
+
interface Window {
|
|
18
|
+
Snippyly: typeof snippyly.Snippyly;
|
|
19
|
+
Velt: typeof snippyly.Snippyly;
|
|
20
|
+
}
|
|
21
|
+
}
|