@jetshop/core 5.14.5 → 5.14.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,8 +43,9 @@ const Head = ({ data, route }) => {
43
43
  if (!selectedChannel.language.isDefault) {
44
44
  languageBasename = `/${getLanguageFromCulture(selectedChannel.language.culture)}`;
45
45
  }
46
- const disallowIndexing = (_b = ((data.__typename === 'Category' || data.__typename === 'Page') &&
47
- !(data === null || data === void 0 ? void 0 : data.allowWebIndexing))) !== null && _b !== void 0 ? _b : false;
46
+ const hasIndexingOptions = (data.__typename === 'Category' || data.__typename === 'Page') &&
47
+ data.allowWebIndexing !== undefined;
48
+ const disallowWebIndexing = (_b = (hasIndexingOptions && !data.allowWebIndexing)) !== null && _b !== void 0 ? _b : false;
48
49
  const fullPath = `${languageBasename}${(route === null || route === void 0 ? void 0 : route.canonicalPath) || ''}`;
49
50
  const href = (route === null || route === void 0 ? void 0 : route.canonicalPath) &&
50
51
  `${selectedChannel.url}${fullPath}${whiteListedSearch}`;
@@ -75,7 +76,7 @@ const Head = ({ data, route }) => {
75
76
  route.alternateRoutes.map((alternateRoute) => renderAlternateRoutes(alternateRoute, channelsById, selectedChannelGroup &&
76
77
  selectedChannelGroup.map((channel) => channel.id))),
77
78
  href && React.createElement("link", { rel: "canonical", href: href }),
78
- disallowIndexing && React.createElement("meta", { name: "robots", content: "noindex" })),
79
+ disallowWebIndexing && React.createElement("meta", { name: "robots", content: "noindex" })),
79
80
  !disableOpenGraphGeneralData && (React.createElement(OpenGraphGeneralPageData, { route: route, data: data })),
80
81
  (route === null || route === void 0 ? void 0 : route.canonicalPath) === '/' && React.createElement(SiteLinksSearchStructuredData, null)));
81
82
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Head.js","sourceRoot":"","sources":["Head.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAWlE,OAAO,KAAK,EAAE,EAAM,UAAU,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
17
  export const sortValues = {
@@ -41,6 +41,12 @@ export const sortValues = {
41
41
  direction: 'DESCENDING'
42
42
  }
43
43
  ],
44
+ bestseller: [
45
+ {
46
+ text: t(''),
47
+ direction: 'DESCENDING'
48
+ }
49
+ ],
44
50
  custom: [
45
51
  {
46
52
  text: t(''),
@@ -1 +1 @@
1
- {"version":3,"file":"SortOrderContainer.js","sourceRoot":"","sources":["SortOrderContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAuB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,gBAGN,MAAM,qDAAqD,CAAC;AAC7D,OAAO,CAAC,MAAM,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAMnF,qDAAqD;AACrD,MAAM,CAAC,MAAM,SAAS,GAA8B;IAClD,IAAI,EAAE,QAAQ;IACd,cAAc,EAAE,QAAQ;IACxB,YAAY,EAAE,MAAM;IACpB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,QAAQ;IACrB,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAKnB;IACF,MAAM,EAAE;QACN;YACE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC;YACjB,SAAS,EAAE,WAAW;SACvB;QACD;YACE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC;YACjB,SAAS,EAAE,YAAY;SACxB;KACF;IACD,MAAM,EAAE;QACN;YACE,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC;YACtB,SAAS,EAAE,WAAW;SACvB;QACD;YACE,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC;YACtB,SAAS,EAAE,YAAY;SACxB;KACF;IACD,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;YACX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AQ,CAAC,MAAM,CAAC,CAAC;YAC1E,IAAI,SAAS,EAAE;gBACb,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;aAC1B;SACF;IACH,CAAC;IASM,MAAM;QACX,OAAO,CACL,oBAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,IACzC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CACN,CAC7B,CAAC;IACJ,CAAC;CACF;AAED,eAAe,UAAU,CAAC,kBAAkB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/core",
3
- "version": "5.14.5",
3
+ "version": "5.14.6",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
package/types.d.ts CHANGED
@@ -765,10 +765,40 @@ export type Discount = {
765
765
  externalId?: Maybe<Scalars['ID']>;
766
766
  name?: Maybe<Scalars['String']>;
767
767
  value?: Maybe<Price>;
768
+ type?: Maybe<DiscountType>;
768
769
  description?: Maybe<Scalars['String']>;
769
770
  campaign?: Maybe<Category>;
770
771
  };
771
772
 
773
+ export enum DiscountType {
774
+ /** No discount defined */
775
+ Undefined = 'UNDEFINED',
776
+ /** Discount drops price of the order total by defined amount */
777
+ FixedAmount = 'FIXED_AMOUNT',
778
+ /** Discount drops price of the product by X % */
779
+ Percent = 'PERCENT',
780
+ /** Discount will get the amount of the cheapest product and use this as a discount */
781
+ Items = 'ITEMS',
782
+ /** Discount drops total price of the product if there is at least X of them in cart */
783
+ ItemsPercentageLimit = 'ITEMS_PERCENTAGE_LIMIT',
784
+ /** Only a collection of products */
785
+ OnlyUseLandingPage = 'ONLY_USE_LANDING_PAGE',
786
+ /** Discount drops price of the least expensive product in cart */
787
+ PercentOnLeastExpensiveItem = 'PERCENT_ON_LEAST_EXPENSIVE_ITEM',
788
+ /** Discount drops price of the most expensive product in cart */
789
+ PercentOnMostExpensiveItem = 'PERCENT_ON_MOST_EXPENSIVE_ITEM',
790
+ /** Discount allows to get a free gift when the product is added */
791
+ FreeProduct = 'FREE_PRODUCT',
792
+ /** Discount allows to get free shipping option for the product */
793
+ FreeShipping = 'FREE_SHIPPING',
794
+ /** Discount drops price for the package when all products in the package is added to cart */
795
+ PackageDiscount = 'PACKAGE_DISCOUNT',
796
+ /** Discount on the order total from a voucher */
797
+ BonusVoucherDiscount = 'BONUS_VOUCHER_DISCOUNT',
798
+ /** Discount allows to buy amount of X of the article, but pay only for amount of Y */
799
+ BuyXArticlesPayYAmount = 'BUY_X_ARTICLES_PAY_Y_AMOUNT'
800
+ }
801
+
772
802
  export type Document = {
773
803
  head?: Maybe<HtmlHead>;
774
804
  primaryRoute?: Maybe<Route>;