@icvdeveloper/common-module 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 1.0.2 - 2023-06-20
11
+
10
12
  ## 1.0.1 - 2023-05-30
11
13
 
12
14
  ## 1.0.0 - 2023-05-24
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "1.0.1"
4
+ "version": "1.0.2"
5
5
  }
@@ -156,5 +156,10 @@ const { selectedContent } = storeToRefs(usePresentationsStore());
156
156
  </figure>
157
157
  </div>
158
158
  </div>
159
+ <CommonComponentsSessionReporting
160
+ ref="sessionReporting"
161
+ :loggable-id="presentation.id"
162
+ :archived="true"
163
+ />
159
164
  </div>
160
165
  </template>
@@ -3,6 +3,8 @@ import { toRefs, watch, onMounted } from "vue";
3
3
  import { onBeforeRouteLeave } from "vue-router";
4
4
  import { useApi } from "../../../composables/useApi";
5
5
  import { useCookie } from "#app";
6
+ import ArchiveVideoPlayer from "~~/pages/media/archive-video-player.vue";
7
+ import ArchiveVideoPlayer from "~~/pages/media/archive-video-player.vue";
6
8
  // data
7
9
  const sessionLoopIntervalMinutes = 5;
8
10
  const cookieExpireMinutes = 20;
@@ -13,13 +15,15 @@ let sessionLoopId: any = null;
13
15
  type Props = {
14
16
  loggableType?: string;
15
17
  loggableId: number | undefined;
18
+ archived?: boolean;
16
19
  };
17
20
 
18
21
  const props = withDefaults(defineProps<Props>(), {
19
22
  loggableType: "App\\Presentation",
23
+ archived: false,
20
24
  });
21
25
 
22
- const { loggableType, loggableId } = toRefs(props);
26
+ const { loggableType, loggableId, archived } = toRefs(props);
23
27
 
24
28
  // methods
25
29
  const updateSessionCookie = () => {
@@ -44,6 +48,7 @@ const updateSession = () => {
44
48
  body: {
45
49
  resource_type: loggableType.value,
46
50
  resource_id: loggableId.value,
51
+ archived: archived.value ? 1 : 0,
47
52
  },
48
53
  };
49
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {