@icvdeveloper/common-module 0.0.117 → 0.0.118

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "0.0.117"
4
+ "version": "0.0.118"
5
5
  }
@@ -25,6 +25,10 @@ export type UseAgendaMethods = {
25
25
  * Selected presenter
26
26
  */
27
27
  selectedPresenter: Ref<Presenter | null>;
28
+ /**
29
+ * allow logged in users to view all agendas
30
+ */
31
+ allowAgendaFullAccess: boolean;
28
32
  /**
29
33
  * Set selected day
30
34
  */
@@ -11,11 +11,12 @@ export const useAgenda = (conference) => {
11
11
  const affiliateStore = useAffiliatesStore();
12
12
  const { isLoggedIn } = storeToRefs(useAuthStore());
13
13
  const selectedDay = ref(null);
14
+ const allowAgendaFullAccess = pagesConfigValue("agenda.agendas_full_access", false);
14
15
  const displayTrackGroups = pagesConfigValue("agenda.group_tracks", "None");
15
16
  const selectedPresenter = ref(null);
16
17
  const days = computed(() => {
17
18
  const data = conference.value.days;
18
- if (isLoggedIn.value) {
19
+ if (isLoggedIn.value && !allowAgendaFullAccess) {
19
20
  remove(data, ["access", false]);
20
21
  }
21
22
  return data;
@@ -38,7 +39,7 @@ export const useAgenda = (conference) => {
38
39
  const getCombinedTrackList = (day) => {
39
40
  const trackGroups = cloneDeep(day.track_groups ?? {});
40
41
  const tracks = cloneDeep(day.tracks ?? {});
41
- if (isLoggedIn.value) {
42
+ if (isLoggedIn.value && !allowAgendaFullAccess) {
42
43
  remove(tracks, ["access", false]);
43
44
  }
44
45
  if (displayTrackGroups === "None") {
@@ -54,7 +55,7 @@ export const useAgenda = (conference) => {
54
55
  trackGroups.forEach((trackGroup) => {
55
56
  duplicateTracks = intersectionBy(tracks, trackGroup.tracks, "id");
56
57
  pullAllBy(tracks, duplicateTracks, "id");
57
- if (isLoggedIn.value) {
58
+ if (isLoggedIn.value && !allowAgendaFullAccess) {
58
59
  remove(trackGroup.tracks, ["access", false]);
59
60
  }
60
61
  trackGroup.tracks.sort((trackA, trackB) => {
@@ -37,6 +37,7 @@ export type AgendaPlayerPageConfigs = {
37
37
  session_times: ToggleVariable;
38
38
  session_desc_link: SelectVariable;
39
39
  session_desc_link_text: TextVariable;
40
+ agendas_full_access: ToggleVariable;
40
41
  tab_dates: ToggleVariable;
41
42
  use_accordion: ToggleVariable;
42
43
  use_presenter_modal: ToggleVariable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "0.0.117",
3
+ "version": "0.0.118",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {