@quintype/seo 1.48.2-support-event-schema.6 → 1.49.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.49.0](https://github.com/quintype/quintype-node-seo/compare/v1.48.1...v1.49.0) (2025-04-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * add event schema support when eventDetails exist in story data ([#567](https://github.com/quintype/quintype-node-seo/issues/567)) ([941b86e](https://github.com/quintype/quintype-node-seo/commit/941b86eedd93845fd7a295341a75bd667c35fc85))
11
+
5
12
  ### [1.48.1](https://github.com/quintype/quintype-node-seo/compare/v1.48.0...v1.48.1) (2024-12-17)
6
13
 
7
14
 
package/dist/index.cjs.js CHANGED
@@ -1030,7 +1030,8 @@ function StructuredDataTags({ structuredData = {} }, config, pageType, response
1030
1030
  const isStructuredDataEmpty = Object.keys(structuredData).length === 0;
1031
1031
  const enableBreadcrumbList = get__default["default"](structuredData, ["enableBreadcrumbList"], true);
1032
1032
  const structuredDataTags = get__default["default"](structuredData, ["structuredDataTags"], []);
1033
-
1033
+ const enableEventsData = get__default["default"](structuredData, ["enableEventsData"], null);
1034
+ const enableStorySeoEventsData = get__default["default"](story, ["enableSeoEventsData"], null);
1034
1035
  let articleData = {};
1035
1036
 
1036
1037
  if (!isStructuredDataEmpty) {
@@ -1056,7 +1057,7 @@ function StructuredDataTags({ structuredData = {} }, config, pageType, response
1056
1057
  tags.push(ldJson("BreadcrumbList", generateBreadcrumbListData(pageType, publisherConfig, response.data)));
1057
1058
  }
1058
1059
 
1059
- if (structuredData.enableEventsData && pageType === "story-page" && story.enableSeoEventsData) {
1060
+ if (enableEventsData && pageType === "story-page" && enableStorySeoEventsData) {
1060
1061
  tags.push(ldJson("Event", generateEventsSchema(story, publisherConfig)));
1061
1062
  }
1062
1063
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/seo",
3
- "version": "1.48.2-support-event-schema.6",
3
+ "version": "1.49.0",
4
4
  "description": "SEO Modules for Quintype",
5
5
  "main": "dist/index.cjs.js",
6
6
  "repository": "https://github.com/quintype/quintype-node-seo",
@@ -524,7 +524,8 @@ export function StructuredDataTags({ structuredData = {} }, config, pageType, re
524
524
  const isStructuredDataEmpty = Object.keys(structuredData).length === 0;
525
525
  const enableBreadcrumbList = get(structuredData, ["enableBreadcrumbList"], true);
526
526
  const structuredDataTags = get(structuredData, ["structuredDataTags"], []);
527
-
527
+ const enableEventsData = get(structuredData, ["enableEventsData"], null);
528
+ const enableStorySeoEventsData = get(story, ["enableSeoEventsData"], null);
528
529
  let articleData = {};
529
530
 
530
531
  if (!isStructuredDataEmpty) {
@@ -550,7 +551,7 @@ export function StructuredDataTags({ structuredData = {} }, config, pageType, re
550
551
  tags.push(ldJson("BreadcrumbList", generateBreadcrumbListData(pageType, publisherConfig, response.data)));
551
552
  }
552
553
 
553
- if(structuredData.enableEventsData && pageType === "story-page" && story.enableSeoEventsData){
554
+ if(enableEventsData && pageType === "story-page" && enableStorySeoEventsData){
554
555
  tags.push(ldJson("Event", generateEventsSchema(story, publisherConfig)));
555
556
  }
556
557