@icvdeveloper/common-module 1.4.11 → 1.4.13

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,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 1.4.13 - 2024-06-26
11
+
12
+ ## 1.4.12 - 2024-03-22
13
+
10
14
  ## 1.4.11 - 2024-03-05
11
15
 
12
16
  ## 1.4.10 - 2024-03-01
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "1.4.11"
4
+ "version": "1.4.13"
5
5
  }
@@ -40,7 +40,7 @@ export const useStream = (_region, _prefix, _confId, _callback) => {
40
40
  return response.json();
41
41
  }).then((data) => {
42
42
  const newStream = data;
43
- if (!isEqual(newStream, currentStreamData)) {
43
+ if (!isEqual(newStream, currentStreamData.value)) {
44
44
  currentStreamData.value = newStream;
45
45
  }
46
46
  success = true;
@@ -1,9 +1,12 @@
1
1
  export type Portal = {
2
2
  id?: number;
3
3
  name?: string;
4
+ description?: string | null;
5
+ favicon?: string;
4
6
  gtm_id?: string | null;
5
7
  ga_id?: string | null;
6
8
  adobe_launch_url?: string | null;
7
- favicon?: string;
8
- description?: string | null;
9
+ social_title?: string | null;
10
+ social_description?: string | null;
11
+ social_photo?: string | null;
9
12
  };
@@ -92,22 +92,25 @@ export default defineNuxtPlugin((nuxtApp) => {
92
92
  });
93
93
  const canonicalUrl = "https://" + portal.value.domain + to.path;
94
94
  let metaDesc = portal.value.description;
95
- if (get(presentationsStore, "selectedPresentation.description.length", 0) > 0) {
96
- metaDesc = stripHtml(presentationsStore.selectedPresentation.description);
97
- } else if (get(conferencesStore, "selectedConference.description.length", 0) > 0) {
95
+ let socialImage = "";
96
+ if (get(conferencesStore, "selectedConference.description.length", 0) > 0) {
98
97
  metaDesc = stripHtml(conferencesStore.selectedConference.description);
98
+ } else if (get(portal.value, "social_description.length", 0) > 0) {
99
+ metaDesc = get(portal.value, "social_description");
100
+ }
101
+ if (get(conferencesStore, "selectedConference.photo.length", 0) > 0) {
102
+ socialImage = get(conferencesStore, "selectedConference.photo");
103
+ } else if (get(portal.value, "social_photo.length", 0) > 0) {
104
+ socialImage = get(portal.value, "social_photo");
99
105
  }
100
106
  useSeoMeta({
101
107
  description: metaDesc,
102
108
  ogTitle: docTitle,
109
+ ogDescription: metaDesc,
103
110
  ogType: "website",
104
- ogUrl: canonicalUrl
111
+ ogUrl: canonicalUrl,
112
+ ogImage: socialImage
105
113
  });
106
- if (get(conferencesStore, "selectedConference.photo.length", 0) > 0) {
107
- useSeoMeta({
108
- ogImage: get(conferencesStore, "selectedConference.photo")
109
- });
110
- }
111
114
  });
112
115
  router.afterEach(() => {
113
116
  NProgress.done();
@@ -14,7 +14,7 @@ export const usePortalStore = defineStore("portal", {
14
14
  return new Promise((resolve, reject) => {
15
15
  this.loading = true;
16
16
  request(
17
- "portals/1?fields=id,name,description,domain,favicon,ga_id,gtm_id,adobe_launch_url&with=template_config,navigation_config"
17
+ "portals/1?fields=id,name,description,domain,favicon,ga_id,gtm_id,adobe_launch_url,social_title,social_description,social_photo&with=template_config,navigation_config"
18
18
  ).then((response) => {
19
19
  const {
20
20
  data: { navigation_config, template_config, ...data }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {