@ikas/storefront 0.0.68 → 0.0.69

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/build/index.es.js CHANGED
@@ -26968,7 +26968,7 @@ function createStoreSchema(merchantSettings) {
26968
26968
  };
26969
26969
  }
26970
26970
  function createProductSchema(productDetail) {
26971
- var _a;
26971
+ var _a, _b;
26972
26972
  try {
26973
26973
  var isBrowser = typeof window !== "undefined";
26974
26974
  if (isBrowser) {
@@ -26985,20 +26985,20 @@ function createProductSchema(productDetail) {
26985
26985
  "@context": "https://schema.org/",
26986
26986
  "@type": "Product",
26987
26987
  name: productDetail.product.name,
26988
+ description: (_a = productDetail.product.metaData) === null || _a === void 0 ? void 0 : _a.description,
26988
26989
  image: productDetail.selectedVariant.images.map(function (i) { return i.src; }),
26989
- description: "",
26990
26990
  sku: productDetail.selectedVariant.sku,
26991
26991
  mpn: productDetail.selectedVariant.barcodeList.length
26992
26992
  ? productDetail.selectedVariant.barcodeList[0]
26993
26993
  : "",
26994
26994
  brand: {
26995
26995
  "@type": "Brand",
26996
- name: (_a = productDetail.product.brand) === null || _a === void 0 ? void 0 : _a.name,
26996
+ name: (_b = productDetail.product.brand) === null || _b === void 0 ? void 0 : _b.name,
26997
26997
  },
26998
26998
  offers: {
26999
26999
  "@type": "Offer",
27000
27000
  url: "https://" + window.location.hostname + productDetail.href,
27001
- priceCurrency: productDetail.selectedVariant.price.currency,
27001
+ priceCurrency: productDetail.selectedVariant.price.currency || "TRY",
27002
27002
  price: productDetail.selectedVariant.price.finalPrice,
27003
27003
  priceValidUntil: "",
27004
27004
  itemCondition: "https://schema.org/NewCondition",
package/build/index.js CHANGED
@@ -26948,7 +26948,7 @@ function createStoreSchema(merchantSettings) {
26948
26948
  };
26949
26949
  }
26950
26950
  function createProductSchema(productDetail) {
26951
- var _a;
26951
+ var _a, _b;
26952
26952
  try {
26953
26953
  var isBrowser = typeof window !== "undefined";
26954
26954
  if (isBrowser) {
@@ -26965,20 +26965,20 @@ function createProductSchema(productDetail) {
26965
26965
  "@context": "https://schema.org/",
26966
26966
  "@type": "Product",
26967
26967
  name: productDetail.product.name,
26968
+ description: (_a = productDetail.product.metaData) === null || _a === void 0 ? void 0 : _a.description,
26968
26969
  image: productDetail.selectedVariant.images.map(function (i) { return i.src; }),
26969
- description: "",
26970
26970
  sku: productDetail.selectedVariant.sku,
26971
26971
  mpn: productDetail.selectedVariant.barcodeList.length
26972
26972
  ? productDetail.selectedVariant.barcodeList[0]
26973
26973
  : "",
26974
26974
  brand: {
26975
26975
  "@type": "Brand",
26976
- name: (_a = productDetail.product.brand) === null || _a === void 0 ? void 0 : _a.name,
26976
+ name: (_b = productDetail.product.brand) === null || _b === void 0 ? void 0 : _b.name,
26977
26977
  },
26978
26978
  offers: {
26979
26979
  "@type": "Offer",
26980
26980
  url: "https://" + window.location.hostname + productDetail.href,
26981
- priceCurrency: productDetail.selectedVariant.price.currency,
26981
+ priceCurrency: productDetail.selectedVariant.price.currency || "TRY",
26982
26982
  price: productDetail.selectedVariant.price.finalPrice,
26983
26983
  priceValidUntil: "",
26984
26984
  itemCondition: "https://schema.org/NewCondition",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",