@pristy/pristy-libvue 2.0.0 → 2.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.
Files changed (59) hide show
  1. package/dist/components/CodeMirrorEditor.vue.d.ts.map +1 -1
  2. package/dist/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts +0 -36
  3. package/dist/components/chat/ChatInput.vue.d.ts +50 -0
  4. package/dist/components/chat/ChatInput.vue.d.ts.map +1 -0
  5. package/dist/components/chat/ChatMessage.vue.d.ts +41 -0
  6. package/dist/components/chat/ChatMessage.vue.d.ts.map +1 -0
  7. package/dist/components/chat/ChatPanel.vue.d.ts +434 -0
  8. package/dist/components/chat/ChatPanel.vue.d.ts.map +1 -0
  9. package/dist/components/chat/ChatRoomList.vue.d.ts +52 -0
  10. package/dist/components/chat/ChatRoomList.vue.d.ts.map +1 -0
  11. package/dist/components/config/ConfigItemEditor.vue.d.ts +12 -0
  12. package/dist/components/config/ConfigItemEditor.vue.d.ts.map +1 -0
  13. package/dist/components/config/ConfigSplitView.vue.d.ts +14 -0
  14. package/dist/components/config/ConfigSplitView.vue.d.ts.map +1 -0
  15. package/dist/components/navigation/ContentGridView.vue.d.ts +4 -1
  16. package/dist/components/navigation/ContentListView.vue.d.ts +4 -1
  17. package/dist/components/navigation/ContentTableView.vue.d.ts +4 -1
  18. package/dist/components/navigation/DynamicContentView.vue.d.ts +39 -24
  19. package/dist/components/popup/CreateWorkflowPopup.vue.d.ts +21 -15
  20. package/dist/components/popup/CreateWorkflowPopup.vue.d.ts.map +1 -1
  21. package/dist/components/popup/MemberListPopup.vue.d.ts +7 -7
  22. package/dist/components/users/MemberList.vue.d.ts +6 -6
  23. package/dist/components/users/MemberList.vue.d.ts.map +1 -1
  24. package/dist/composables/useChatWebSocket.d.ts +20 -0
  25. package/dist/composables/useChatWebSocket.d.ts.map +1 -0
  26. package/dist/composables/useCollabEditor.d.ts.map +1 -1
  27. package/dist/i18n/index.d.ts +94 -0
  28. package/dist/i18n/index.d.ts.map +1 -1
  29. package/dist/index.d.ts +13 -1
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/pristy-libvue.css +1 -1
  32. package/dist/pristy-libvue.es.js +11581 -9266
  33. package/dist/pristy-libvue.es.js.map +1 -1
  34. package/dist/pristy-libvue.umd.js +20 -20
  35. package/dist/pristy-libvue.umd.js.map +1 -1
  36. package/dist/services/AlfrescoFileService.d.ts +17 -1
  37. package/dist/services/AlfrescoFileService.d.ts.map +1 -1
  38. package/dist/services/ChatBackendService.d.ts +72 -0
  39. package/dist/services/ChatBackendService.d.ts.map +1 -0
  40. package/dist/services/CollabService.d.ts +12 -2
  41. package/dist/services/CollabService.d.ts.map +1 -1
  42. package/dist/services/FavoriteService.d.ts +1 -2
  43. package/dist/services/FavoriteService.d.ts.map +1 -1
  44. package/dist/services/MenuService.d.ts +1 -1
  45. package/dist/services/NodeToMenuItemService.d.ts +2 -2
  46. package/dist/services/NodeToMenuItemService.d.ts.map +1 -1
  47. package/dist/services/RocketChatAuthService.d.ts +79 -0
  48. package/dist/services/RocketChatAuthService.d.ts.map +1 -0
  49. package/dist/services/RocketChatService.d.ts +102 -0
  50. package/dist/services/RocketChatService.d.ts.map +1 -0
  51. package/dist/services/WorkspaceService.d.ts +16 -35
  52. package/dist/services/WorkspaceService.d.ts.map +1 -1
  53. package/dist/stores/chat.d.ts +337 -0
  54. package/dist/stores/chat.d.ts.map +1 -0
  55. package/dist/stores/config.d.ts +15 -0
  56. package/dist/stores/config.d.ts.map +1 -1
  57. package/dist/stores/favorites.d.ts +57 -0
  58. package/dist/stores/favorites.d.ts.map +1 -0
  59. package/package.json +1 -1
@@ -0,0 +1,337 @@
1
+ import { StoreDefinition, PiniaCustomStateProperties } from 'pinia';
2
+ export const useChatStore: StoreDefinition<"chat", {
3
+ enabled: boolean;
4
+ loaded: boolean;
5
+ hasCredentials: boolean;
6
+ connectionState: string;
7
+ lastError: any;
8
+ rooms: any[];
9
+ currentRoomId: any;
10
+ messagesByRoom: {};
11
+ unreadCounts: {};
12
+ typingByRoom: {};
13
+ currentUser: any;
14
+ _webSocket: any;
15
+ }, {
16
+ /**
17
+ * Returns the current room object
18
+ */
19
+ currentRoom: (state: {
20
+ enabled: boolean;
21
+ loaded: boolean;
22
+ hasCredentials: boolean;
23
+ connectionState: string;
24
+ lastError: any;
25
+ rooms: any[];
26
+ currentRoomId: any;
27
+ messagesByRoom: {};
28
+ unreadCounts: {};
29
+ typingByRoom: {};
30
+ currentUser: any;
31
+ _webSocket: any;
32
+ } & PiniaCustomStateProperties<{
33
+ enabled: boolean;
34
+ loaded: boolean;
35
+ hasCredentials: boolean;
36
+ connectionState: string;
37
+ lastError: any;
38
+ rooms: any[];
39
+ currentRoomId: any;
40
+ messagesByRoom: {};
41
+ unreadCounts: {};
42
+ typingByRoom: {};
43
+ currentUser: any;
44
+ _webSocket: any;
45
+ }>) => any;
46
+ /**
47
+ * Returns messages for the current room
48
+ */
49
+ currentMessages: (state: {
50
+ enabled: boolean;
51
+ loaded: boolean;
52
+ hasCredentials: boolean;
53
+ connectionState: string;
54
+ lastError: any;
55
+ rooms: any[];
56
+ currentRoomId: any;
57
+ messagesByRoom: {};
58
+ unreadCounts: {};
59
+ typingByRoom: {};
60
+ currentUser: any;
61
+ _webSocket: any;
62
+ } & PiniaCustomStateProperties<{
63
+ enabled: boolean;
64
+ loaded: boolean;
65
+ hasCredentials: boolean;
66
+ connectionState: string;
67
+ lastError: any;
68
+ rooms: any[];
69
+ currentRoomId: any;
70
+ messagesByRoom: {};
71
+ unreadCounts: {};
72
+ typingByRoom: {};
73
+ currentUser: any;
74
+ _webSocket: any;
75
+ }>) => any;
76
+ /**
77
+ * Returns typing users for the current room
78
+ */
79
+ currentTypingUsers: (state: {
80
+ enabled: boolean;
81
+ loaded: boolean;
82
+ hasCredentials: boolean;
83
+ connectionState: string;
84
+ lastError: any;
85
+ rooms: any[];
86
+ currentRoomId: any;
87
+ messagesByRoom: {};
88
+ unreadCounts: {};
89
+ typingByRoom: {};
90
+ currentUser: any;
91
+ _webSocket: any;
92
+ } & PiniaCustomStateProperties<{
93
+ enabled: boolean;
94
+ loaded: boolean;
95
+ hasCredentials: boolean;
96
+ connectionState: string;
97
+ lastError: any;
98
+ rooms: any[];
99
+ currentRoomId: any;
100
+ messagesByRoom: {};
101
+ unreadCounts: {};
102
+ typingByRoom: {};
103
+ currentUser: any;
104
+ _webSocket: any;
105
+ }>) => any;
106
+ /**
107
+ * Returns the total unread count across all rooms
108
+ */
109
+ totalUnreadCount: (state: {
110
+ enabled: boolean;
111
+ loaded: boolean;
112
+ hasCredentials: boolean;
113
+ connectionState: string;
114
+ lastError: any;
115
+ rooms: any[];
116
+ currentRoomId: any;
117
+ messagesByRoom: {};
118
+ unreadCounts: {};
119
+ typingByRoom: {};
120
+ currentUser: any;
121
+ _webSocket: any;
122
+ } & PiniaCustomStateProperties<{
123
+ enabled: boolean;
124
+ loaded: boolean;
125
+ hasCredentials: boolean;
126
+ connectionState: string;
127
+ lastError: any;
128
+ rooms: any[];
129
+ currentRoomId: any;
130
+ messagesByRoom: {};
131
+ unreadCounts: {};
132
+ typingByRoom: {};
133
+ currentUser: any;
134
+ _webSocket: any;
135
+ }>) => any;
136
+ /**
137
+ * Returns true if chat is available and connected
138
+ */
139
+ isReady: (state: {
140
+ enabled: boolean;
141
+ loaded: boolean;
142
+ hasCredentials: boolean;
143
+ connectionState: string;
144
+ lastError: any;
145
+ rooms: any[];
146
+ currentRoomId: any;
147
+ messagesByRoom: {};
148
+ unreadCounts: {};
149
+ typingByRoom: {};
150
+ currentUser: any;
151
+ _webSocket: any;
152
+ } & PiniaCustomStateProperties<{
153
+ enabled: boolean;
154
+ loaded: boolean;
155
+ hasCredentials: boolean;
156
+ connectionState: string;
157
+ lastError: any;
158
+ rooms: any[];
159
+ currentRoomId: any;
160
+ messagesByRoom: {};
161
+ unreadCounts: {};
162
+ typingByRoom: {};
163
+ currentUser: any;
164
+ _webSocket: any;
165
+ }>) => boolean;
166
+ /**
167
+ * Returns true if currently connecting
168
+ */
169
+ isConnecting: (state: {
170
+ enabled: boolean;
171
+ loaded: boolean;
172
+ hasCredentials: boolean;
173
+ connectionState: string;
174
+ lastError: any;
175
+ rooms: any[];
176
+ currentRoomId: any;
177
+ messagesByRoom: {};
178
+ unreadCounts: {};
179
+ typingByRoom: {};
180
+ currentUser: any;
181
+ _webSocket: any;
182
+ } & PiniaCustomStateProperties<{
183
+ enabled: boolean;
184
+ loaded: boolean;
185
+ hasCredentials: boolean;
186
+ connectionState: string;
187
+ lastError: any;
188
+ rooms: any[];
189
+ currentRoomId: any;
190
+ messagesByRoom: {};
191
+ unreadCounts: {};
192
+ typingByRoom: {};
193
+ currentUser: any;
194
+ _webSocket: any;
195
+ }>) => boolean;
196
+ /**
197
+ * Returns true if reconnecting
198
+ */
199
+ isReconnecting: (state: {
200
+ enabled: boolean;
201
+ loaded: boolean;
202
+ hasCredentials: boolean;
203
+ connectionState: string;
204
+ lastError: any;
205
+ rooms: any[];
206
+ currentRoomId: any;
207
+ messagesByRoom: {};
208
+ unreadCounts: {};
209
+ typingByRoom: {};
210
+ currentUser: any;
211
+ _webSocket: any;
212
+ } & PiniaCustomStateProperties<{
213
+ enabled: boolean;
214
+ loaded: boolean;
215
+ hasCredentials: boolean;
216
+ connectionState: string;
217
+ lastError: any;
218
+ rooms: any[];
219
+ currentRoomId: any;
220
+ messagesByRoom: {};
221
+ unreadCounts: {};
222
+ typingByRoom: {};
223
+ currentUser: any;
224
+ _webSocket: any;
225
+ }>) => boolean;
226
+ /**
227
+ * Returns true if chat feature is available for use
228
+ */
229
+ isAvailable: (state: {
230
+ enabled: boolean;
231
+ loaded: boolean;
232
+ hasCredentials: boolean;
233
+ connectionState: string;
234
+ lastError: any;
235
+ rooms: any[];
236
+ currentRoomId: any;
237
+ messagesByRoom: {};
238
+ unreadCounts: {};
239
+ typingByRoom: {};
240
+ currentUser: any;
241
+ _webSocket: any;
242
+ } & PiniaCustomStateProperties<{
243
+ enabled: boolean;
244
+ loaded: boolean;
245
+ hasCredentials: boolean;
246
+ connectionState: string;
247
+ lastError: any;
248
+ rooms: any[];
249
+ currentRoomId: any;
250
+ messagesByRoom: {};
251
+ unreadCounts: {};
252
+ typingByRoom: {};
253
+ currentUser: any;
254
+ _webSocket: any;
255
+ }>) => boolean;
256
+ }, {
257
+ /**
258
+ * Initializes the chat store.
259
+ * Checks if the feature is enabled and credentials are available.
260
+ */
261
+ init(): Promise<void>;
262
+ /**
263
+ * Connects to the Rocket.Chat WebSocket server.
264
+ */
265
+ connect(): Promise<boolean>;
266
+ /**
267
+ * Disconnects from the WebSocket server.
268
+ */
269
+ disconnect(): void;
270
+ /**
271
+ * Loads the user's subscribed rooms.
272
+ */
273
+ loadRooms(): Promise<void>;
274
+ /**
275
+ * Selects a room and loads its messages.
276
+ *
277
+ * @param {string} roomId - The room ID to select
278
+ */
279
+ selectRoom(roomId: string): Promise<void>;
280
+ /**
281
+ * Loads messages for a room.
282
+ *
283
+ * @param {string} roomId - The room ID
284
+ * @param {Object} options - Load options
285
+ */
286
+ loadMessages(roomId: string, options?: any): Promise<void>;
287
+ /**
288
+ * Sends a message to the current room.
289
+ *
290
+ * @param {string} text - The message text
291
+ */
292
+ sendMessage(text: string): Promise<void>;
293
+ /**
294
+ * Marks a room as read.
295
+ *
296
+ * @param {string} roomId - The room ID
297
+ */
298
+ markAsRead(roomId: string): Promise<void>;
299
+ /**
300
+ * Handles a new incoming message.
301
+ *
302
+ * @param {Object} message - The message object
303
+ */
304
+ handleNewMessage(message: any): void;
305
+ /**
306
+ * Handles typing indicator updates.
307
+ *
308
+ * @param {string} username - The username
309
+ * @param {boolean} isTyping - Whether the user is typing
310
+ */
311
+ handleTypingIndicator(username: string, isTyping: boolean): void;
312
+ /**
313
+ * Sends typing indicator.
314
+ *
315
+ * @param {boolean} isTyping - Whether the user is typing
316
+ */
317
+ sendTypingIndicator(isTyping: boolean): void;
318
+ /**
319
+ * Gets or creates a room for a workspace.
320
+ *
321
+ * @param {string} siteId - The Alfresco site ID
322
+ * @returns {Promise<Object|null>} Room info or null
323
+ */
324
+ getOrCreateWorkspaceRoom(siteId: string): Promise<any | null>;
325
+ /**
326
+ * Uploads a file to the current room.
327
+ *
328
+ * @param {File} file - The file to upload
329
+ * @param {string} description - Optional description
330
+ */
331
+ uploadFile(file: File, description?: string): Promise<void>;
332
+ /**
333
+ * Clears all chat data.
334
+ */
335
+ clear(): void;
336
+ }>;
337
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/stores/chat.js"],"names":[],"mappings":";AA2BA;;;;;;;;;;;;;;IAkCI;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMH;;;OAGG;;IAyCH;;OAEG;;IA6DH;;OAEG;;IASH;;OAEG;;IA6BH;;;;OAIG;uBADQ,MAAM;IAwBjB;;;;;OAKG;yBAFQ,MAAM;IA4BjB;;;;OAIG;sBADQ,MAAM;IAoBjB;;;;OAIG;uBADQ,MAAM;IAWjB;;;;OAIG;;IA4BH;;;;;OAKG;oCAFQ,MAAM,YACN,OAAO;IA4BlB;;;;OAIG;kCADQ,OAAO;IAmBlB;;;;;OAKG;qCAFQ,MAAM,GACJ,OAAO,CAAC,MAAO,IAAI,CAAC;IA4BjC;;;;;OAKG;qBAFQ,IAAI,gBACJ,MAAM;IAmBjB;;OAEG;;GAYJ"}
@@ -47,6 +47,11 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
47
47
  DEFAULT_ELEMENT_PER_PAGE: number;
48
48
  ROW_PER_PAGE_OPTIONS: any[];
49
49
  COLLAB_ENABLED: boolean;
50
+ CHAT_ENABLED: boolean;
51
+ ROCKETCHAT_HOST: string;
52
+ ROCKETCHAT_WS_URL: string;
53
+ CHAT_OAUTH_ENABLED: boolean;
54
+ CHAT_OAUTH_SERVICE: string;
50
55
  SEARCH_BASE_FILTER_QUERIES: {
51
56
  query: string;
52
57
  }[];
@@ -113,6 +118,11 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
113
118
  DEFAULT_ELEMENT_PER_PAGE: number;
114
119
  ROW_PER_PAGE_OPTIONS: any[];
115
120
  COLLAB_ENABLED: boolean;
121
+ CHAT_ENABLED: boolean;
122
+ ROCKETCHAT_HOST: string;
123
+ ROCKETCHAT_WS_URL: string;
124
+ CHAT_OAUTH_ENABLED: boolean;
125
+ CHAT_OAUTH_SERVICE: string;
116
126
  SEARCH_BASE_FILTER_QUERIES: {
117
127
  query: string;
118
128
  }[];
@@ -178,6 +188,11 @@ export const useConfigStore: StoreDefinition<"ConfigStore", {
178
188
  DEFAULT_ELEMENT_PER_PAGE: number;
179
189
  ROW_PER_PAGE_OPTIONS: any[];
180
190
  COLLAB_ENABLED: boolean;
191
+ CHAT_ENABLED: boolean;
192
+ ROCKETCHAT_HOST: string;
193
+ ROCKETCHAT_WS_URL: string;
194
+ CHAT_OAUTH_ENABLED: boolean;
195
+ CHAT_OAUTH_SERVICE: string;
181
196
  SEARCH_BASE_FILTER_QUERIES: {
182
197
  query: string;
183
198
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsJI;;OAEG;;IAiBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GA6B1B"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/stores/config.js"],"names":[],"mappings":";AAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2JI;;OAEG;;IAiBH;;;;;OAKG;0CADS,OAAO,CAAC,IAAI,CAAC;GA6B1B"}
@@ -0,0 +1,57 @@
1
+ import { StoreDefinition, PiniaCustomStateProperties } from 'pinia';
2
+ export const useFavoritesStore: StoreDefinition<"FavoritesStore", {
3
+ favorites: any[];
4
+ loaded: boolean;
5
+ loading: boolean;
6
+ }, {
7
+ siteFavorites: (state: {
8
+ favorites: any[];
9
+ loaded: boolean;
10
+ loading: boolean;
11
+ } & PiniaCustomStateProperties<{
12
+ favorites: any[];
13
+ loaded: boolean;
14
+ loading: boolean;
15
+ }>) => any[];
16
+ fileFavorites: (state: {
17
+ favorites: any[];
18
+ loaded: boolean;
19
+ loading: boolean;
20
+ } & PiniaCustomStateProperties<{
21
+ favorites: any[];
22
+ loaded: boolean;
23
+ loading: boolean;
24
+ }>) => any[];
25
+ folderFavorites: (state: {
26
+ favorites: any[];
27
+ loaded: boolean;
28
+ loading: boolean;
29
+ } & PiniaCustomStateProperties<{
30
+ favorites: any[];
31
+ loaded: boolean;
32
+ loading: boolean;
33
+ }>) => any[];
34
+ }, {
35
+ /**
36
+ * Load all favorites once, with concurrent call deduplication.
37
+ * Returns the cached favorites if already loaded, unless force is true.
38
+ * @param {boolean} force - Force a fresh load from the API
39
+ * @returns {Promise<Array>} The favorites array
40
+ */
41
+ loadFavorites(force?: boolean): Promise<any[]>;
42
+ /**
43
+ * Add a favorite entry to the local cache after a successful API create.
44
+ * @param {Object} entry - The favorite entry returned by the API
45
+ */
46
+ addFavoriteToCache(entry: any): void;
47
+ /**
48
+ * Remove a favorite from the local cache after a successful API delete.
49
+ * @param {string} targetGuid - The GUID of the target node to remove
50
+ */
51
+ removeFavoriteFromCache(targetGuid: string): void;
52
+ /**
53
+ * Reset the store to its initial state.
54
+ */
55
+ reset(): void;
56
+ }>;
57
+ //# sourceMappingURL=favorites.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../src/stores/favorites.js"],"names":[],"mappings":";AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmBI;;;;;OAKG;0BAFQ,OAAO,GACL,OAAO,OAAO;IAsC3B;;;OAGG;;IAKH;;;OAGG;wCADQ,MAAM;IAQjB;;OAEG;;GAQJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pristy/pristy-libvue",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Core library used by all Pristy applications",
5
5
  "homepage": "https://pristy.fr/en/",
6
6
  "author": "JECI SARL",