From 8ad60f255b747858c35dd6b6cf5c90147d960082 Mon Sep 17 00:00:00 2001 From: Bram van der Holst Date: Fri, 24 Nov 2023 11:17:52 +0100 Subject: [PATCH] Fixed schema-dts dependency issue --- .changeset/old-cycles-enjoy.md | 6 ++++++ .../components/JsonLdProductReview/jsonLdProductReview.ts | 4 ++-- packages/next-ui/JsonLd/JsonLd.tsx | 2 -- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .changeset/old-cycles-enjoy.md diff --git a/.changeset/old-cycles-enjoy.md b/.changeset/old-cycles-enjoy.md new file mode 100644 index 0000000000..8d3d20016d --- /dev/null +++ b/.changeset/old-cycles-enjoy.md @@ -0,0 +1,6 @@ +--- +'@graphcommerce/magento-review': patch +'@graphcommerce/next-ui': patch +--- + +Fixed schema-dts dependency issue diff --git a/packages/magento-review/components/JsonLdProductReview/jsonLdProductReview.ts b/packages/magento-review/components/JsonLdProductReview/jsonLdProductReview.ts index 7686c2b7fe..b54fb6822e 100644 --- a/packages/magento-review/components/JsonLdProductReview/jsonLdProductReview.ts +++ b/packages/magento-review/components/JsonLdProductReview/jsonLdProductReview.ts @@ -1,5 +1,5 @@ -import { Product } from 'schema-dts' -import { JsonLdProductReviewFragment } from './JsonLdProductReview.gql' +import type { Product } from 'schema-dts' +import type { JsonLdProductReviewFragment } from './JsonLdProductReview.gql' export function jsonLdProductReview( props: JsonLdProductReviewFragment, diff --git a/packages/next-ui/JsonLd/JsonLd.tsx b/packages/next-ui/JsonLd/JsonLd.tsx index c33a079f8f..ba288fca83 100644 --- a/packages/next-ui/JsonLd/JsonLd.tsx +++ b/packages/next-ui/JsonLd/JsonLd.tsx @@ -1,8 +1,6 @@ import Head from 'next/head' import { safeJsonLdReplacer } from './safeJsonLdReplacer' -export * as SchemaDts from 'schema-dts' - export function JsonLd(props: { item: T & { '@context': 'https://schema.org' } }) {