@icvdeveloper/common-module 1.4.14 → 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 (189) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/module.d.mts +1051 -2
  3. package/dist/module.d.ts +1051 -2
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +29 -15
  6. package/dist/runtime/@types/components.d.ts +22 -0
  7. package/dist/runtime/@types/configVariables.d.ts +6 -0
  8. package/dist/runtime/analytics.d.ts +1 -6
  9. package/dist/runtime/assets/scss/_agenda.css +1 -0
  10. package/dist/runtime/assets/scss/_animations.css +1 -0
  11. package/dist/runtime/assets/scss/_container_variants.css +1 -0
  12. package/dist/runtime/assets/scss/_custom.css +3 -0
  13. package/dist/runtime/assets/scss/_forms.css +1 -0
  14. package/dist/runtime/assets/scss/_header.css +0 -0
  15. package/dist/runtime/assets/scss/_index_production.css +1 -0
  16. package/dist/runtime/assets/scss/_transitions.css +1 -0
  17. package/dist/runtime/assets/scss/_variables.css +1 -0
  18. package/dist/runtime/assets/scss/_variables2.css +0 -0
  19. package/dist/runtime/assets/scss/_webcast.css +1 -0
  20. package/dist/runtime/assets/scss/index.css +1 -705
  21. package/dist/runtime/assets/svg/icon-minus.svg +6 -0
  22. package/dist/runtime/assets/svg/icon-video.svg +6 -0
  23. package/dist/runtime/components/affiliates/AffiliateModal.vue +66 -0
  24. package/dist/runtime/components/affiliates/AffiliatePage.vue +329 -159
  25. package/dist/runtime/components/agenda/AgendaList.vue +18 -14
  26. package/dist/runtime/components/agenda/AgendaTabbed.vue +60 -54
  27. package/dist/runtime/components/agenda/components/AgendaListAccordion.vue +8 -3
  28. package/dist/runtime/components/agenda/components/Calendar.vue +23 -18
  29. package/dist/runtime/components/agenda/components/Favorite.vue +46 -0
  30. package/dist/runtime/components/agenda/components/InfoLink.vue +15 -5
  31. package/dist/runtime/components/agenda/components/PlayIcon.vue +3 -5
  32. package/dist/runtime/components/agenda/components/PresentationLink.vue +37 -19
  33. package/dist/runtime/components/agenda/components/Sponsor.vue +31 -24
  34. package/dist/runtime/components/auth/PasswordReset.vue +20 -5
  35. package/dist/runtime/components/auth/Registration.vue +14 -4
  36. package/dist/runtime/components/auth/Ucc.vue +44 -27
  37. package/dist/runtime/components/chat/ChatConversationList.vue +108 -0
  38. package/dist/runtime/components/chat/ChatCreateConversation.vue +199 -0
  39. package/dist/runtime/components/chat/ChatCreateGroupConversation.vue +154 -0
  40. package/dist/runtime/components/chat/ChatHeader.vue +97 -0
  41. package/dist/runtime/components/chat/ChatMessage.vue +40 -0
  42. package/dist/runtime/components/chat/ChatShowConversation.vue +76 -0
  43. package/dist/runtime/components/chat/ChatWidget.vue +40 -0
  44. package/dist/runtime/components/chat/ChatWindow.vue +154 -0
  45. package/dist/runtime/components/chat/ChatWindow.vue.d.ts +6 -0
  46. package/dist/runtime/components/chat/MessageInput.vue +27 -0
  47. package/dist/runtime/components/chat/SearchInput.vue +32 -0
  48. package/dist/runtime/components/core/Accordion.vue +12 -12
  49. package/dist/runtime/components/core/AttendeeList.vue +31 -36
  50. package/dist/runtime/components/core/CountdownTimer.vue +68 -52
  51. package/dist/runtime/components/core/DynamicHtml.vue.d.ts +6 -9
  52. package/dist/runtime/components/core/Modal.vue +24 -22
  53. package/dist/runtime/components/core/ModalButton.vue +43 -0
  54. package/dist/runtime/components/core/Navbar.vue +33 -21
  55. package/dist/runtime/components/core/Navigation.vue +286 -0
  56. package/dist/runtime/components/core/SvgIcon.vue +34 -1
  57. package/dist/runtime/components/core/VButton.vue +35 -0
  58. package/dist/runtime/components/core/ZoomModal.vue +9 -3
  59. package/dist/runtime/components/events/EventHeader.vue +14 -4
  60. package/dist/runtime/components/events/ListEvents.vue +21 -22
  61. package/dist/runtime/components/forms/CheckboxGroup.vue +46 -0
  62. package/dist/runtime/components/forms/ErrorField.vue +11 -2
  63. package/dist/runtime/components/forms/Message.vue +1 -1
  64. package/dist/runtime/components/forms/RadioGroup.vue +50 -0
  65. package/dist/runtime/components/forms/SearchInput.vue +8 -2
  66. package/dist/runtime/components/forms/SelectDropDown.vue +47 -0
  67. package/dist/runtime/components/forms/SupportForm.vue +22 -11
  68. package/dist/runtime/components/forms/SwitchInput.vue +50 -30
  69. package/dist/runtime/components/forms/TextArea.vue +1 -1
  70. package/dist/runtime/components/forms/TextInput.vue +1 -1
  71. package/dist/runtime/components/layouts/Accordion.vue +11 -6
  72. package/dist/runtime/components/media/ArchivePlayerAndContentContainer.vue +24 -5
  73. package/dist/runtime/components/media/ArchiveVideoPlayer.vue +19 -23
  74. package/dist/runtime/components/media/PlayerAndContentContainer.vue +4 -1
  75. package/dist/runtime/components/media/WebcastVideoPlayer.vue +6 -18
  76. package/dist/runtime/components/media/components/AgendaPanel.vue +7 -6
  77. package/dist/runtime/components/media/components/ArchiveMediaContainer.vue +17 -15
  78. package/dist/runtime/components/media/components/CeCreditNotification.vue +8 -8
  79. package/dist/runtime/components/media/components/ContentArea.vue +59 -18
  80. package/dist/runtime/components/media/components/ContentTabs.vue +40 -28
  81. package/dist/runtime/components/media/components/DocumentsPanel.vue +19 -17
  82. package/dist/runtime/components/media/components/MediaContainer.vue +11 -13
  83. package/dist/runtime/components/media/components/OverviewPanel.vue +5 -2
  84. package/dist/runtime/components/media/components/PresentersPanel.vue +74 -55
  85. package/dist/runtime/components/media/components/SessionReporting.vue +5 -4
  86. package/dist/runtime/components/media/components/SponsorsPanel.vue +13 -12
  87. package/dist/runtime/components/presenters/PresenterListing.vue +33 -25
  88. package/dist/runtime/components/presenters/PresenterModal.vue +26 -21
  89. package/dist/runtime/components/presenters/Presenters.vue +139 -0
  90. package/dist/runtime/components/profile/Profile.vue +10 -6
  91. package/dist/runtime/components/profile/components/Sidebar.vue +1 -1
  92. package/dist/runtime/components/profile/components/SidebarNavItem.vue +2 -4
  93. package/dist/runtime/components/profile/tabs/Favorites.vue +5 -4
  94. package/dist/runtime/components/profile/tabs/GeneralInformation.vue +26 -16
  95. package/dist/runtime/components/profile/tabs/ProfileImage.vue +7 -6
  96. package/dist/runtime/components/registration/AlreadyRegisteredModal.vue +102 -0
  97. package/dist/runtime/components/registration/PaymentForm.vue +136 -0
  98. package/dist/runtime/components/registration/RegistrationForm.vue +417 -0
  99. package/dist/runtime/components/registration/RegistrationGroupSelect.vue +146 -0
  100. package/dist/runtime/components/registration/StripePaymentForm.vue +121 -0
  101. package/dist/runtime/components/support/FAQAccordion.vue +8 -7
  102. package/dist/runtime/composables/useAdobeLaunch.d.ts +2 -7
  103. package/dist/runtime/composables/useAdobeLaunch.mjs +2 -2
  104. package/dist/runtime/composables/useAgenda.d.ts +13 -1
  105. package/dist/runtime/composables/useAgenda.mjs +125 -25
  106. package/dist/runtime/composables/useApi.d.ts +1 -1
  107. package/dist/runtime/composables/useAuth.d.ts +1 -1
  108. package/dist/runtime/composables/useAuth.mjs +1 -1
  109. package/dist/runtime/composables/useClassBinding.d.ts +3 -1
  110. package/dist/runtime/composables/useConferenceHelpers.d.ts +7 -3
  111. package/dist/runtime/composables/useConferenceHelpers.mjs +26 -15
  112. package/dist/runtime/composables/useEventHooks.d.ts +29 -0
  113. package/dist/runtime/composables/useEventHooks.mjs +21 -0
  114. package/dist/runtime/composables/useEvents.d.ts +17 -1
  115. package/dist/runtime/composables/useEvents.mjs +35 -9
  116. package/dist/runtime/composables/useLogin.mjs +9 -5
  117. package/dist/runtime/composables/useNavigation.d.ts +1 -1
  118. package/dist/runtime/composables/useNavigation.mjs +4 -2
  119. package/dist/runtime/composables/usePresentation.d.ts +2 -2
  120. package/dist/runtime/composables/usePresentation.mjs +8 -7
  121. package/dist/runtime/composables/usePresenter.d.ts +2 -2
  122. package/dist/runtime/composables/usePresenters.d.ts +2 -2
  123. package/dist/runtime/composables/usePusher.d.ts +4 -0
  124. package/dist/runtime/composables/usePusher.mjs +38 -26
  125. package/dist/runtime/composables/useScripts.mjs +1 -1
  126. package/dist/runtime/composables/useStream.d.ts +2 -3
  127. package/dist/runtime/composables/useStream.mjs +8 -2
  128. package/dist/runtime/composables/useUcc.d.ts +1 -1
  129. package/dist/runtime/composables/useUcc.mjs +29 -23
  130. package/dist/runtime/enums/general.d.ts +4 -1
  131. package/dist/runtime/enums/general.mjs +4 -1
  132. package/dist/runtime/models/adobeLaunch.d.ts +6 -0
  133. package/dist/runtime/models/adobeLaunch.mjs +0 -0
  134. package/dist/runtime/models/analytics.d.ts +6 -0
  135. package/dist/runtime/models/analytics.mjs +0 -0
  136. package/dist/runtime/models/attendeeList.d.ts +1 -1
  137. package/dist/runtime/models/conference.d.ts +122 -91
  138. package/dist/runtime/models/conversation.d.ts +11 -13
  139. package/dist/runtime/models/document.d.ts +5 -5
  140. package/dist/runtime/models/globalConfig.d.ts +9 -3
  141. package/dist/runtime/models/group.d.ts +38 -8
  142. package/dist/runtime/models/icons.d.ts +8 -1
  143. package/dist/runtime/models/index.d.ts +20 -0
  144. package/dist/runtime/models/index.mjs +20 -0
  145. package/dist/runtime/models/link.d.ts +4 -4
  146. package/dist/runtime/models/loginParams.d.ts +5 -0
  147. package/dist/runtime/models/loginParams.mjs +0 -0
  148. package/dist/runtime/models/navigationConfig.d.ts +7 -7
  149. package/dist/runtime/models/pagination.d.ts +11 -11
  150. package/dist/runtime/models/portal.d.ts +15 -10
  151. package/dist/runtime/models/templateConfig.d.ts +13 -7
  152. package/dist/runtime/models/ucc.d.ts +22 -0
  153. package/dist/runtime/models/ucc.mjs +0 -0
  154. package/dist/runtime/models/user.d.ts +25 -12
  155. package/dist/runtime/models/vButton.d.ts +7 -0
  156. package/dist/runtime/models/vButton.mjs +0 -0
  157. package/dist/runtime/models/video.d.ts +5 -4
  158. package/dist/runtime/models/virtualPagesConfig.d.ts +223 -0
  159. package/dist/runtime/models/virtualPagesConfig.mjs +0 -0
  160. package/dist/runtime/plugin.mjs +18 -9
  161. package/dist/runtime/store/affiliates.d.ts +4 -1
  162. package/dist/runtime/store/affiliates.mjs +38 -0
  163. package/dist/runtime/store/attendeeList.d.ts +1 -1
  164. package/dist/runtime/store/auth.d.ts +3 -7
  165. package/dist/runtime/store/auth.mjs +6 -0
  166. package/dist/runtime/store/conferences.d.ts +3 -1
  167. package/dist/runtime/store/conferences.mjs +14 -9
  168. package/dist/runtime/store/conversations.d.ts +78 -10
  169. package/dist/runtime/store/conversations.mjs +255 -22
  170. package/dist/runtime/store/modalPlayerConfig.d.ts +27 -0
  171. package/dist/runtime/store/modalPlayerConfig.mjs +58 -0
  172. package/dist/runtime/store/navigationConfig.d.ts +1 -1
  173. package/dist/runtime/store/presentations.d.ts +2 -2
  174. package/dist/runtime/store/templateConfigs.d.ts +7 -6
  175. package/dist/runtime/store/templateConfigs.mjs +7 -6
  176. package/dist/runtime/store/user.mjs +0 -1
  177. package/dist/runtime/v3plusCommonPlugin.d.ts +1 -1
  178. package/dist/types.d.mts +3 -2
  179. package/dist/types.d.ts +3 -2
  180. package/package.json +12 -9
  181. package/dist/runtime/components/media/components/JsonApi.vue +0 -33
  182. package/dist/runtime/components/media/components/JsonApi.vue.d.ts +0 -16
  183. package/dist/runtime/components/media/components/PresentersPanel.vue.d.ts +0 -32
  184. package/dist/runtime/components/media/components/WindowContent.vue +0 -118
  185. package/dist/runtime/components/media/components/WindowContent.vue.d.ts +0 -50
  186. package/dist/runtime/components/media/components/WindowSlide.vue +0 -92
  187. package/dist/runtime/components/media/components/WindowSlide.vue.d.ts +0 -36
  188. package/dist/runtime/models/authUser.d.ts +0 -16
  189. /package/dist/runtime/{models/authUser.mjs → assets/scss/_footer.css} +0 -0
@@ -1,26 +1,259 @@
1
+ import { ref, computed } from "vue";
1
2
  import { defineStore } from "pinia";
2
3
  import { useApi } from "../composables/useApi.mjs";
3
- ;
4
- export const useConversationStore = defineStore("conversations", {
5
- state: () => ({
6
- chatOpen: false,
7
- selectedConversation: {}
8
- }),
9
- getters: {},
10
- actions: {
11
- toggleChat() {
12
- this.chatOpen = !this.chatOpen;
13
- },
14
- createConversation(users) {
15
- return new Promise((resolve, reject) => {
16
- const request = useApi();
17
- request(`conversations`, { users }).then((response) => {
18
- this.selectedConversation = response.data;
19
- resolve(this.selectedConversation);
20
- }).catch((error) => {
21
- reject(error);
22
- });
23
- });
4
+ export const useConversationStore = defineStore("conversations", () => {
5
+ const chatOpen = ref(false);
6
+ const conversations = ref([]);
7
+ const selectedConversation = ref({});
8
+ const attendeeList = ref({
9
+ page: 1,
10
+ lastPage: null,
11
+ data: []
12
+ });
13
+ const users = ref({
14
+ page: 1,
15
+ lastPage: null,
16
+ data: []
17
+ });
18
+ const onlineUsers = ref({
19
+ data: []
20
+ });
21
+ const user = ref({
22
+ data: {},
23
+ errors: []
24
+ });
25
+ const favorites = ref({
26
+ data: [],
27
+ errors: []
28
+ });
29
+ const usersResultsPage = ref(1);
30
+ const attendeesResultsPage = ref(1);
31
+ const prevSearch = ref("");
32
+ const isInitial = ref(true);
33
+ const getConversations = computed(() => {
34
+ return conversations.value;
35
+ });
36
+ const getUsers = computed(() => {
37
+ return users.value;
38
+ });
39
+ const getSelectedConversation = computed(() => {
40
+ return selectedConversation.value;
41
+ });
42
+ const getUser = computed(() => {
43
+ return user.value;
44
+ });
45
+ const getFavorites = computed(() => {
46
+ return favorites.value;
47
+ });
48
+ const getOnlineUsers = computed(() => {
49
+ if (onlineUsers.value) {
50
+ return onlineUsers.value.data;
24
51
  }
25
- }
52
+ return [];
53
+ });
54
+ const getName = (user2) => {
55
+ return user2.name ? user2.name : user2.email;
56
+ };
57
+ const hasConversation = (id) => {
58
+ if (conversations.value) {
59
+ return conversations.value.filter((conversation) => conversation.id == id);
60
+ }
61
+ return [];
62
+ };
63
+ const hasFavorite = (presId) => {
64
+ return favorites.value.data.find(({ favorite }) => favorite.id === presId) ?? [];
65
+ };
66
+ const commitConversations = (payload) => {
67
+ conversations.value = payload;
68
+ console.log("conversations", conversations.value);
69
+ };
70
+ const commitConversation = (payload) => {
71
+ conversations.value.push(payload);
72
+ console.log("conversation", conversations.value[conversations.value.length - 1]);
73
+ };
74
+ const commitUsers = (payload) => {
75
+ console.log("committing users");
76
+ users.value.data.push(...payload.data);
77
+ users.value.page = payload.meta.current_page;
78
+ users.value.lastPage = payload.meta.last_page;
79
+ };
80
+ const commitAttendeeList = (payload) => {
81
+ console.log("committing attendee list");
82
+ attendeeList.value.data.push(...payload.data);
83
+ attendeeList.value.page = payload.meta.current_page;
84
+ attendeeList.value.lastPage = payload.meta.last_page;
85
+ };
86
+ const setRemoteUserOnline = (payload) => {
87
+ users.value.data.map(function(user2, index) {
88
+ if (user2.id === payload) {
89
+ user2.online = true;
90
+ }
91
+ });
92
+ };
93
+ const setRemoteUserOffline = (payload) => {
94
+ users.value.data.map(function(user2, index) {
95
+ if (user2.id === payload) {
96
+ user2.online = false;
97
+ }
98
+ });
99
+ };
100
+ const clearUsers = () => {
101
+ usersResultsPage.value = 1;
102
+ isInitial.value = true;
103
+ users.value.data = [];
104
+ };
105
+ const clearAttendeeList = () => {
106
+ attendeesResultsPage.value = 1;
107
+ isInitial.value = true;
108
+ attendeeList.value.data = [];
109
+ };
110
+ const commitSelectedConversation = (payload) => {
111
+ selectedConversation.value = payload;
112
+ };
113
+ const commitMessage = (payload) => {
114
+ selectedConversation?.value?.messages?.push(payload);
115
+ };
116
+ const commitChatOpen = (payload) => {
117
+ chatOpen.value = payload;
118
+ };
119
+ const commitFavorites = (payload) => {
120
+ favorites.value.data = payload;
121
+ };
122
+ const commitOnlineUsers = (payload) => {
123
+ onlineUsers.value.data = payload;
124
+ };
125
+ const commitOnlineUser = (payload) => {
126
+ onlineUsers.value.data.push(payload);
127
+ };
128
+ const removeOnlineUser = (payload) => {
129
+ const removedUserIndex = onlineUsers.value.data.indexOf(payload);
130
+ onlineUsers.value.data = onlineUsers.value.data.splice(removedUserIndex, 1);
131
+ };
132
+ const getConversationsApi = async () => {
133
+ const apiUrl = `conversations?timestamp=${(/* @__PURE__ */ new Date()).getTime()}`;
134
+ const request = useApi();
135
+ await request(apiUrl).then((response) => {
136
+ commitConversations(response.data);
137
+ });
138
+ };
139
+ const getUsersApi = async (search2, page = 1, isAttendeeList = false) => {
140
+ console.log("search", search2);
141
+ const apiUrl = "users";
142
+ const request = useApi();
143
+ let usersResponse;
144
+ if (page != void 0 || search2 != void 0) {
145
+ usersResponse = await request(apiUrl, { params: { page, search: search2 } });
146
+ !isAttendeeList ? commitUsers(usersResponse) : commitAttendeeList(usersResponse);
147
+ console.log("getUsersApi response (with search params)", usersResponse);
148
+ } else {
149
+ usersResponse = await request(apiUrl);
150
+ !isAttendeeList ? commitUsers(usersResponse) : commitAttendeeList(usersResponse);
151
+ console.log("getUsersApi response (without search params)", usersResponse);
152
+ }
153
+ return usersResponse;
154
+ };
155
+ const getFavoritesApi = async () => {
156
+ const apiUrl = "presentations/favorites?a=" + Date.now();
157
+ const request = useApi();
158
+ await request(apiUrl).then((response) => {
159
+ commitFavorites(response.data);
160
+ });
161
+ };
162
+ const hideConversation = async (conversation) => {
163
+ const apiUrl = `conversations/${conversation.id}/hide`;
164
+ const request = useApi();
165
+ await request(apiUrl, { method: "POST" }).then(() => {
166
+ getConversationsApi();
167
+ });
168
+ };
169
+ const setConversationRead = async (conversation) => {
170
+ const apiUrl = "conversations/" + conversation.id + "/read";
171
+ const request = useApi();
172
+ await request(apiUrl, { method: "POST" });
173
+ };
174
+ const createConversation = async (users2) => {
175
+ console.log("creating conversation with users: ", users2);
176
+ const apiUrl = "conversations";
177
+ const request = useApi();
178
+ await request(apiUrl, {
179
+ method: "POST",
180
+ body: {
181
+ users: users2
182
+ }
183
+ }).then((response) => {
184
+ commitSelectedConversation(response.data);
185
+ });
186
+ };
187
+ const sendMessage = async (message) => {
188
+ const apiUrl = `conversations/${selectedConversation?.value?.id}/messages`;
189
+ const request = useApi();
190
+ await request(apiUrl, {
191
+ method: "POST",
192
+ body: {
193
+ message
194
+ }
195
+ }).then((response) => {
196
+ commitMessage(response.data);
197
+ });
198
+ };
199
+ const search = async (query) => {
200
+ const apiUrl = "search";
201
+ const request = useApi();
202
+ await request(apiUrl, {
203
+ query
204
+ }).then((response) => {
205
+ return response.data;
206
+ });
207
+ };
208
+ const toggleChat = () => {
209
+ console.log("toggled chat");
210
+ chatOpen.value = !chatOpen.value;
211
+ };
212
+ return {
213
+ conversations,
214
+ selectedConversation,
215
+ attendeeList,
216
+ users,
217
+ user,
218
+ onlineUsers,
219
+ chatOpen,
220
+ favorites,
221
+ usersResultsPage,
222
+ attendeesResultsPage,
223
+ getConversations,
224
+ getUsers,
225
+ getSelectedConversation,
226
+ getUser,
227
+ getFavorites,
228
+ getOnlineUsers,
229
+ prevSearch,
230
+ isInitial,
231
+ getName,
232
+ hasConversation,
233
+ hasFavorite,
234
+ commitConversations,
235
+ commitConversation,
236
+ commitUsers,
237
+ commitAttendeeList,
238
+ setRemoteUserOffline,
239
+ setRemoteUserOnline,
240
+ clearUsers,
241
+ clearAttendeeList,
242
+ commitSelectedConversation,
243
+ commitMessage,
244
+ commitChatOpen,
245
+ commitFavorites,
246
+ commitOnlineUsers,
247
+ commitOnlineUser,
248
+ removeOnlineUser,
249
+ getConversationsApi,
250
+ getUsersApi,
251
+ getFavoritesApi,
252
+ hideConversation,
253
+ setConversationRead,
254
+ createConversation,
255
+ sendMessage,
256
+ search,
257
+ toggleChat
258
+ };
26
259
  });
@@ -0,0 +1,27 @@
1
+ import type { Ref } from 'vue';
2
+ import type { Conference, PlayerPresentation } from '../models/conference';
3
+ type PlayerConfigStore = {
4
+ isPlayerVisible: Ref<boolean>;
5
+ playerPresentation: Ref<PlayerPresentation>;
6
+ livePresentations: Ref<{
7
+ [key: number]: number;
8
+ }>;
9
+ playerConference: Ref<Conference>;
10
+ selectedContent: Ref<{}>;
11
+ chatroomId: Ref<string>;
12
+ getlivePresentations: Ref<{
13
+ [key: number]: number;
14
+ }>;
15
+ setIsPlayerVisible: (payload: boolean) => void;
16
+ setSelectedPresentation: (payload: PlayerPresentation) => void;
17
+ setLivePresentations: (payload: {
18
+ [key: number]: number;
19
+ }) => void;
20
+ setSelectedConference: (payload: Conference) => void;
21
+ setSelectedConferenceAccess: (payload: boolean) => void;
22
+ setSelectedContent: (payload: {}) => void;
23
+ setChatroomId: (payload: string) => void;
24
+ updateSelectedPresentationAccess: (payload: boolean) => void;
25
+ };
26
+ export declare const usePlayerConfigStore: import("pinia").StoreDefinition<"playerConfig", import("pinia")._UnwrapAll<Pick<PlayerConfigStore, "selectedContent" | "isPlayerVisible" | "playerPresentation" | "livePresentations" | "playerConference" | "chatroomId" | "getlivePresentations">>, Pick<PlayerConfigStore, never>, Pick<PlayerConfigStore, "setIsPlayerVisible" | "setSelectedPresentation" | "setLivePresentations" | "setSelectedConference" | "setSelectedConferenceAccess" | "setSelectedContent" | "setChatroomId" | "updateSelectedPresentationAccess">>;
27
+ export {};
@@ -0,0 +1,58 @@
1
+ import { ref, computed } from "vue";
2
+ import { defineStore } from "pinia";
3
+ export const usePlayerConfigStore = defineStore("playerConfig", () => {
4
+ const isPlayerVisible = ref(false);
5
+ const playerPresentation = ref({});
6
+ const livePresentations = ref({});
7
+ const playerConference = ref({});
8
+ const selectedContent = ref({});
9
+ const chatroomId = ref("");
10
+ const getlivePresentations = computed(() => {
11
+ return livePresentations.value;
12
+ });
13
+ const setIsPlayerVisible = (payload) => {
14
+ isPlayerVisible.value = payload;
15
+ };
16
+ const setSelectedPresentation = (payload) => {
17
+ playerPresentation.value = payload;
18
+ };
19
+ const setLivePresentations = (payload) => {
20
+ livePresentations.value = Object.assign({}, payload);
21
+ };
22
+ const setSelectedConference = (payload) => {
23
+ playerConference.value = payload;
24
+ };
25
+ const setSelectedConferenceAccess = (payload) => {
26
+ if (playerConference.value) {
27
+ playerConference.value.access = payload;
28
+ } else {
29
+ console.log("playerConference.value unset, access cant be updated");
30
+ }
31
+ };
32
+ const setSelectedContent = (payload) => {
33
+ selectedContent.value = payload;
34
+ };
35
+ const setChatroomId = (payload) => {
36
+ chatroomId.value = payload;
37
+ };
38
+ const updateSelectedPresentationAccess = (payload) => {
39
+ playerPresentation.value.data.access = payload;
40
+ };
41
+ return {
42
+ isPlayerVisible,
43
+ playerPresentation,
44
+ livePresentations,
45
+ playerConference,
46
+ selectedContent,
47
+ chatroomId,
48
+ getlivePresentations,
49
+ setIsPlayerVisible,
50
+ setSelectedPresentation,
51
+ setLivePresentations,
52
+ setSelectedConference,
53
+ setSelectedConferenceAccess,
54
+ setSelectedContent,
55
+ setChatroomId,
56
+ updateSelectedPresentationAccess
57
+ };
58
+ });
@@ -5,5 +5,5 @@ export interface NavigationConfigState {
5
5
  export declare const useNavigationConfigStore: import("pinia").StoreDefinition<"navigationConfig", NavigationConfigState, {
6
6
  getEnabled: (state: NavigationConfigState) => (sorted?: boolean) => NavigationConfig[];
7
7
  }, {
8
- setNavigationConfig(payload: any): Promise<NavigationConfigState>;
8
+ setNavigationConfig(payload: any): Promise<NavigationConfig[]>;
9
9
  }>;
@@ -1,8 +1,8 @@
1
1
  import type { Presentation } from "../models/conference";
2
2
  import { SelectedContent } from "../enums/general";
3
3
  export interface PresentationsState {
4
- currentPresentation: null | Presentation;
5
- selectedPresentation: null | Presentation;
4
+ currentPresentation: Presentation;
5
+ selectedPresentation: Presentation;
6
6
  selectedContent: {
7
7
  label: string;
8
8
  type: SelectedContent;
@@ -1,18 +1,19 @@
1
1
  import type { TemplateConfig } from "../models/templateConfig";
2
- import { NestedKeyOf, Pages } from "../models/pagesConfig";
3
- import { GlobalConfigKey, GlobalConfigKeyType } from "../models/globalConfig";
2
+ import type { NestedKeyOf, Pages } from "../models/pagesConfig";
3
+ import type { GlobalConfigKey, GlobalConfigKeyType } from "../models/globalConfig";
4
4
  import type { Conference } from "../models/conference";
5
+ import type { VirtualPages } from "../models/virtualPagesConfig";
5
6
  export interface TemplateConfigState {
6
- portalConfig: null | TemplateConfig;
7
- currentConferenceConfig: null | TemplateConfig;
7
+ portalConfig: TemplateConfig;
8
+ currentConferenceConfig: TemplateConfig;
8
9
  conferences: {
9
10
  [key: string]: TemplateConfig;
10
11
  };
11
12
  }
12
13
  export declare const useTemplateConfigsStore: import("pinia").StoreDefinition<"templateConfigs", TemplateConfigState, {
13
14
  globalConfigValue: (state: TemplateConfigState) => (path: GlobalConfigKey, defaultValue?: any) => any;
14
- globalConfig: (state: TemplateConfigState) => <T extends "accent_color_1" | "accent_color_2" | "accent_color_3" | "affiliate_page_button_alias" | "azure_ad_client_id" | "azure_ad_message" | "azure_ad_tenant_id" | "azure_ad_user_password" | "body_color_1" | "body_color_2" | "body_color_3" | "body_color_4" | "body_color_5" | "body_color_6" | "body_font_1" | "body_font_2" | "button_color_1" | "button_color_2" | "captions_bg_color" | "captions_font" | "captions_text_color" | "conference_photo_headers" | "custom_scripts" | "custom_css" | "enable_peer5" | "enable_text_chat" | "enable_video_chat" | "external_reg_url" | "global_color_1" | "global_color_2" | "global_color_3" | "global_color_4" | "global_color_5" | "global_color_6" | "header_font_1" | "header_font_2" | "header_titles" | "heading_color_1" | "heading_color_2" | "heading_color_3" | "heading_color_4" | "heading_color_5" | "heading_color_6" | "hide_user_profile" | "html_footer" | "html_header" | "link_color" | "link_hover" | "login_disabled" | "login_disabled_user_email" | "login_disabled_user_password" | "login_process" | "login_redirect_enabled" | "muted_photo_headers" | "nav_color_1" | "nav_color_2" | "nav_color_3" | "nav_color_4" | "nav_color_5" | "paragraph_color_1" | "paragraph_color_2" | "presenter_icon_color_style" | "reg_button_alias" | "reg_button_enabled" | "secure_site_access_enabled" | "townhall_registration_enabled" | "townhall_registration_group" | "view_archive_button_alias" | "view_now_button_alias" | "view_preview_button_alias">(path: T, defaultValue?: any) => GlobalConfigKeyType<T>;
15
- pagesConfigValue: (state: TemplateConfigState) => (path: NestedKeyOf<Pages>, defaultValue?: any, conferenceId?: number) => any;
15
+ globalConfig: (state: TemplateConfigState) => <T extends GlobalConfigKey>(path: T, defaultValue?: any) => GlobalConfigKeyType<T>;
16
+ pagesConfigValue: (state: TemplateConfigState) => (path: NestedKeyOf<Pages | VirtualPages>, defaultValue?: any, conferenceId?: number) => any;
16
17
  }, {
17
18
  setPortalTemplateConfig(payload: any): Promise<TemplateConfig>;
18
19
  setCurrentConferenceConfig(conferenceTemplateConfig: any): void;
@@ -3,8 +3,8 @@ import { forEach, forIn, get, find } from "lodash-es";
3
3
  import { useConferencesStore } from "./conferences.mjs";
4
4
  export const useTemplateConfigsStore = defineStore("templateConfigs", {
5
5
  state: () => ({
6
- portalConfig: null,
7
- currentConferenceConfig: null,
6
+ portalConfig: {},
7
+ currentConferenceConfig: {},
8
8
  conferences: {}
9
9
  }),
10
10
  getters: {
@@ -25,10 +25,10 @@ export const useTemplateConfigsStore = defineStore("templateConfigs", {
25
25
  pagesConfigValue: (state) => {
26
26
  return (path, defaultValue = null, conferenceId) => {
27
27
  const { currentConference } = useConferencesStore();
28
- if (conferenceId && conferenceId !== currentConference.id) {
28
+ if (conferenceId && conferenceId !== currentConference?.id) {
29
29
  const conference = find(state.conferences, { id: conferenceId });
30
30
  return get(conference, `pages.${path}.value`, defaultValue);
31
- } else if (state.currentConferenceConfig && (!conferenceId || conferenceId && conferenceId === currentConference.id)) {
31
+ } else if ("pages" in state.currentConferenceConfig && (!conferenceId || conferenceId && conferenceId === currentConference?.id)) {
32
32
  return get(
33
33
  state.currentConferenceConfig,
34
34
  `pages.${path}.value`,
@@ -42,8 +42,8 @@ export const useTemplateConfigsStore = defineStore("templateConfigs", {
42
42
  },
43
43
  actions: {
44
44
  setPortalTemplateConfig(payload) {
45
- return new Promise((resolve) => {
46
- const config = { global: {}, misc: {}, pages: {} };
45
+ return new Promise(() => {
46
+ const config = { "global": {}, "misc": {}, "pages": {} };
47
47
  forEach(payload.global[0].content, function(value) {
48
48
  config.global[value.name] = value;
49
49
  });
@@ -57,6 +57,7 @@ export const useTemplateConfigsStore = defineStore("templateConfigs", {
57
57
  });
58
58
  config.pages[value.name] = pageContent;
59
59
  });
60
+ config.meta = { ...payload._meta };
60
61
  this.portalConfig = config;
61
62
  });
62
63
  },
@@ -1,6 +1,5 @@
1
1
  import { defineStore } from "pinia";
2
2
  import { useApi } from "../composables/useApi.mjs";
3
- ;
4
3
  export const useUserStore = defineStore("user", {
5
4
  state: () => ({
6
5
  currentUser: {}
@@ -1,4 +1,4 @@
1
- import { Analytics } from "./analytics";
1
+ import type { Analytics } from './models/analytics';
2
2
  export type V3plusCommonPluginOptions = {
3
3
  version: string;
4
4
  portalHash: string;
package/dist/types.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
 
2
- import { ModuleOptions } from './module'
2
+ import type { ModuleOptions } from './module.js'
3
+
3
4
 
4
5
  declare module '@nuxt/schema' {
5
6
  interface NuxtConfig { ['v3plusCommonModule']?: Partial<ModuleOptions> }
@@ -12,4 +13,4 @@ declare module 'nuxt/schema' {
12
13
  }
13
14
 
14
15
 
15
- export { ConferenceState, ModuleOptions, PresentationType, default } from './module'
16
+ export type { AdobeLaunchFunctions, Affiliate, AffiliateBoothLgConfigs, AffiliateBoothMedConfigs, AffiliateBoothSmallConfigs, AgendaPlayerPageConfigs, Analytics, ArchiveContentTabsVariable, ArchivePlayerPageConfigs, AttendeeList, AttendeeListResult, AttendeesConfigs, AuditoriumConfigs, AuthUser, CeCreditConfig, Conference, ConferenceState, ContentData, Conversation, Day, Document, EntryWayConfigs, ExhibitHallConfigs, ExhibitorPageConfigs, GlobalConfig, GlobalConfigKey, GlobalConfigKeyType, GlobalElements, Group, GroupVariable, Icon, Icons, Link, LoginParams, MainPageConfigs, MeetingsConfigs, Merchant, Message, MessagesRead, Meta, MiscElements, ModuleOptions, NavigationConfig, NestedKeyOf, NetworkingConfigs, PAGE_LENGTH, Pages, PagesElements, Pagination, PlayerContentTabsVariable, PlayerObj, PlayerPresentation, Portal, Presentation, PresentationType, Presenter, PresenterPageConfigs, PresenterWithPivot, PresentersConfigs, RegistrationField, RegistrationForm, RegistrationPageConfigs, ResourcesConfigs, SettingElements, Sponsor, SponsorsPageConfigs, Spotlight1Configs, Spotlight2Configs, SpotlightConfigs, Stream, SupportPageConfigs, TemplateConfig, Track, TrackGroup, User, UsersResult, Video, VirtualGlobal, VirtualMainPageConfigs, VirtualNestedKeyOf, VirtualPages, VirtualPresentation, WebcastPageConfigs, default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
 
2
- import { ModuleOptions } from './module'
2
+ import type { ModuleOptions } from './module'
3
+
3
4
 
4
5
  declare module '@nuxt/schema' {
5
6
  interface NuxtConfig { ['v3plusCommonModule']?: Partial<ModuleOptions> }
@@ -12,4 +13,4 @@ declare module 'nuxt/schema' {
12
13
  }
13
14
 
14
15
 
15
- export { ConferenceState, ModuleOptions, PresentationType, default } from './module'
16
+ export type { AdobeLaunchFunctions, Affiliate, AffiliateBoothLgConfigs, AffiliateBoothMedConfigs, AffiliateBoothSmallConfigs, AgendaPlayerPageConfigs, Analytics, ArchiveContentTabsVariable, ArchivePlayerPageConfigs, AttendeeList, AttendeeListResult, AttendeesConfigs, AuditoriumConfigs, AuthUser, CeCreditConfig, Conference, ConferenceState, ContentData, Conversation, Day, Document, EntryWayConfigs, ExhibitHallConfigs, ExhibitorPageConfigs, GlobalConfig, GlobalConfigKey, GlobalConfigKeyType, GlobalElements, Group, GroupVariable, Icon, Icons, Link, LoginParams, MainPageConfigs, MeetingsConfigs, Merchant, Message, MessagesRead, Meta, MiscElements, ModuleOptions, NavigationConfig, NestedKeyOf, NetworkingConfigs, PAGE_LENGTH, Pages, PagesElements, Pagination, PlayerContentTabsVariable, PlayerObj, PlayerPresentation, Portal, Presentation, PresentationType, Presenter, PresenterPageConfigs, PresenterWithPivot, PresentersConfigs, RegistrationField, RegistrationForm, RegistrationPageConfigs, ResourcesConfigs, SettingElements, Sponsor, SponsorsPageConfigs, Spotlight1Configs, Spotlight2Configs, SpotlightConfigs, Stream, SupportPageConfigs, TemplateConfig, Track, TrackGroup, User, UsersResult, Video, VirtualGlobal, VirtualMainPageConfigs, VirtualNestedKeyOf, VirtualPages, VirtualPresentation, WebcastPageConfigs, default } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "1.4.14",
3
+ "version": "2.1.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -24,24 +24,25 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@analytics/google-analytics": "^1.0.3",
27
- "@nuxt/kit": "^3.7.4",
28
- "@nuxtjs/tailwindcss": "^6.1.3",
27
+ "@nuxt/kit": "^3.8.0",
28
+ "@nuxtjs/tailwindcss": "^6.12.0",
29
29
  "@pinia/nuxt": "^0.3.1",
30
+ "@stripe/stripe-js": "^3.5.0",
30
31
  "@ts-pro/vue-eternal-loading": "^1.3.1",
31
32
  "@types/pusher-js": "^5.1.0",
33
+ "@vueuse/core": "^10.9.0",
32
34
  "add-to-calendar-button": "^2.1.1",
33
35
  "analytics": "^0.8.1",
34
36
  "laravel-echo": "^1.15.1",
35
37
  "lodash-es": "^4.17.21",
36
38
  "luxon": "^3.2.1",
37
39
  "nprogress": "^0.2.0",
38
- "pinia": "^2.0.17",
40
+ "pinia": "^2.1.7",
39
41
  "pinia-plugin-persistedstate": "^2.1.1",
40
42
  "pusher-js": "^8.2.0",
41
- "sass": "^1.54.2",
42
- "sass-loader": "^13.0.2",
43
43
  "tailwindcss-opentype": "^1.1.0",
44
- "vite-svg-loader": "^3.4.0"
44
+ "vite-svg-loader": "^3.4.0",
45
+ "vue-stripe-js": "^1.0.2"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@nuxt/devtools": "latest",
@@ -56,7 +57,8 @@
56
57
  "@types/node": "^18.18.1",
57
58
  "eslint": "^8.22.0",
58
59
  "eslint-config-prettier": "^8.5.0",
59
- "nuxt": "^3.7.4",
60
+ "nuxt": "^3.10.3",
61
+ "postcss-import": "^16.1.0",
60
62
  "vitest": "^0.33.0"
61
63
  },
62
64
  "description": "## Development",
@@ -68,5 +70,6 @@
68
70
  "bugs": {
69
71
  "url": "https://github.com/ICVDM/v3plus-common/issues"
70
72
  },
71
- "homepage": "https://github.com/ICVDM/v3plus-common#readme"
73
+ "homepage": "https://github.com/ICVDM/v3plus-common#readme",
74
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
72
75
  }
@@ -1,33 +0,0 @@
1
- <template functional></template>
2
-
3
- <script>
4
- export default {
5
- props: {
6
- url: {
7
- type: String,
8
- required: true
9
- },
10
- ajaxLoadingOptions: () => {
11
- return {
12
- progress: false,
13
- transformRequest: (data, headers) => {
14
- delete headers.common['Authorization'];
15
- return data;
16
- }
17
- };
18
- }
19
- },
20
- methods: {
21
- getData() {
22
- this.$axios
23
- .get(url, this.ajaxLoadingOptions)
24
- .then(response => {
25
- this.$emit("data", response);
26
- })
27
- .catch(e => {
28
- console.log("JSON does not exists.", e);
29
- });
30
- }
31
- }
32
- };
33
- </script>
@@ -1,16 +0,0 @@
1
- declare namespace _default {
2
- namespace props {
3
- namespace url {
4
- let type: StringConstructor;
5
- let required: boolean;
6
- }
7
- function ajaxLoadingOptions(): {
8
- progress: boolean;
9
- transformRequest: (data: any, headers: any) => any;
10
- };
11
- }
12
- namespace methods {
13
- function getData(): void;
14
- }
15
- }
16
- export default _default;
@@ -1,32 +0,0 @@
1
- declare namespace _default {
2
- namespace props {
3
- namespace itemWidth {
4
- export let type: StringConstructor;
5
- let _default: string;
6
- export { _default as default };
7
- }
8
- namespace layoutFormat {
9
- let type_1: StringConstructor;
10
- export { type_1 as type };
11
- let _default_1: string;
12
- export { _default_1 as default };
13
- }
14
- namespace isCompact {
15
- let _default_2: boolean;
16
- export { _default_2 as default };
17
- let type_2: BooleanConstructor;
18
- export { type_2 as type };
19
- }
20
- }
21
- namespace components {
22
- export { PresentersDetail };
23
- }
24
- function provide(): {
25
- itemWidth: any;
26
- imageStyle: any;
27
- };
28
- namespace computed {
29
- function presenterLevelArray(): any[];
30
- }
31
- }
32
- export default _default;