@jetshop/ui 5.17.0-alpha.bcdca664 → 5.17.0-alpha.e026037c

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/Button/Button.js CHANGED
@@ -40,7 +40,7 @@ const BaseButton = styled('button') `
40
40
  const BaseLink = styled('a') `
41
41
  ${buttonStyles};
42
42
  text-decoration: none;
43
- @media (--above.md) {
43
+ @media (--above-md) {
44
44
  max-width: 300px;
45
45
  }
46
46
 
@@ -1,2 +1,6 @@
1
+ /**
2
+ * deprecate in favor of @jetshop/core/boot/NetworkStatusNotifier
3
+ * @deprecated deprecated in favor of @jetshop/core/boot/NetworkStatusNotifier
4
+ */
1
5
  declare const link: import("react-apollo-network-status/dist/src/ApolloLinkNetworkStatus").default, useApolloNetworkStatus: (options?: import("react-apollo-network-status/dist/src/useApolloNetworkStatus").UseApolloNetworkStatusOptions) => import("react-apollo-network-status").NetworkStatus;
2
6
  export { link, useApolloNetworkStatus };
@@ -1,4 +1,8 @@
1
1
  import { createNetworkStatusNotifier } from 'react-apollo-network-status';
2
+ /**
3
+ * deprecate in favor of @jetshop/core/boot/NetworkStatusNotifier
4
+ * @deprecated deprecated in favor of @jetshop/core/boot/NetworkStatusNotifier
5
+ */
2
6
  const { link, useApolloNetworkStatus } = createNetworkStatusNotifier();
3
7
  export { link, useApolloNetworkStatus };
4
8
  //# sourceMappingURL=NetworkStatusNotifier.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkStatusNotifier.js","sourceRoot":"","sources":["NetworkStatusNotifier.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,GAAG,2BAA2B,EAAE,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"NetworkStatusNotifier.js","sourceRoot":"","sources":["NetworkStatusNotifier.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E;;;GAGG;AACH,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,GAAG,2BAA2B,EAAE,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC"}
@@ -24,5 +24,5 @@ export interface RecursiveTreeRender {
24
24
  /** Execute to recursively render subcategories in place */
25
25
  renderSubnav: React.ReactNode[];
26
26
  }
27
- declare const _default: React.ComponentClass<Pick<RecursiveTreeProps & RouteChildrenProps<{}, H.LocationState>, keyof RecursiveTreeProps>, any> & import("react-router").WithRouterStatics<React.FC<RecursiveTreeProps & RouteChildrenProps<{}, H.LocationState>>>;
27
+ declare const _default: React.ComponentClass<Pick<RecursiveTreeProps & RouteChildrenProps<{}, unknown>, keyof RecursiveTreeProps>, any> & import("react-router").WithRouterStatics<React.FC<RecursiveTreeProps & RouteChildrenProps<{}, unknown>>>;
28
28
  export default _default;
@@ -4,5 +4,5 @@ export type routeType = 'sortOrderChange' | 'filterChange' | 'paginationChange'
4
4
  export interface ScrollRestoreProps {
5
5
  ignoreForRouteTypes?: routeType[];
6
6
  }
7
- declare const _default: import("react").ComponentClass<Pick<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, H.LocationState>, "ignoreForRouteTypes">, any> & import("react-router").WithRouterStatics<import("react").FC<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, H.LocationState>>>;
7
+ declare const _default: import("react").ComponentClass<Pick<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, unknown>, "ignoreForRouteTypes">, any> & import("react-router").WithRouterStatics<import("react").FC<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, unknown>>>;
8
8
  export default _default;
@@ -41,5 +41,5 @@ export interface SearchFieldState {
41
41
  /** Whether the search field is open */
42
42
  isOpen: boolean;
43
43
  }
44
- declare const _default: React.ComponentClass<Pick<SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, H.LocationState>, keyof SearchFieldProps>, any> & import("react-router").WithRouterStatics<(props: SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, H.LocationState>) => JSX.Element>;
44
+ declare const _default: React.ComponentClass<Pick<SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, unknown>, keyof SearchFieldProps>, any> & import("react-router").WithRouterStatics<(props: SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, unknown>) => JSX.Element>;
45
45
  export default _default;
@@ -72,7 +72,7 @@ const InnerWrapper = styled('div') `
72
72
  border-top: 0;
73
73
  overflow-y: auto;
74
74
  max-height: 470px;
75
- @media (--below.sm) {
75
+ @media (--below-sm) {
76
76
  max-height: 100vh;
77
77
  }
78
78
  > button:first-child {
@@ -11,6 +11,11 @@ export interface StockStatusContainerProps {
11
11
  product: Product;
12
12
  }
13
13
  declare function StockStatusContainer({ product, children }: StockStatusContainerProps): React.ReactNode;
14
+ /**
15
+ * deprectaed
16
+ * @deprecated deprecated in favor of jetshop/core/hooks/useStockStatus
17
+ * @returns StockStatusContainerRender
18
+ */
14
19
  declare function useStockStatus(product: Product | ProductVariant): StockStatusContainerRender;
15
20
  export default StockStatusContainer;
16
21
  export { useStockStatus };
@@ -17,6 +17,11 @@ function StockStatusContainer({ product, children }) {
17
17
  stockDate
18
18
  });
19
19
  }
20
+ /**
21
+ * deprectaed
22
+ * @deprecated deprecated in favor of jetshop/core/hooks/useStockStatus
23
+ * @returns StockStatusContainerRender
24
+ */
20
25
  function useStockStatus(product) {
21
26
  const stockStatus = product === null || product === void 0 ? void 0 : product.stockStatus;
22
27
  if (!stockStatus) {
@@ -1 +1 @@
1
- {"version":3,"file":"StockStatusContainer.js","sourceRoot":"","sources":["StockStatusContainer.tsx"],"names":[],"mappings":"AAoBA,SAAS,SAAS,CAChB,YAAyB;IAEzB,OAAO,YAAY,CAAC,OAAO;QACzB,CAAC,CAAC,SAAS;QACX,CAAC,CAAC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,CAAC,CAAC,YAAY,CAAC;AACnB,CAAC;AAED,SAAS,oBAAoB,CAAC,EAC5B,OAAO,EACP,QAAQ,EACkB;IAC1B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAE9E,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAEzB,4BAA4B;IAC5B,OAAO,QAAQ,CAAC;QACd,MAAM;QACN,IAAI;QACJ,gBAAgB;QAChB,SAAS;KACV,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,OAAiC;IAEjC,MAAM,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;IAEzC,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC;QACjE,OAAO;YACL,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,IAAI;YACV,gBAAgB,EAAE,IAAI;YACtB,SAAS,EAAE,IAAI;SAChB,CAAC;KACH;IAED,OAAO;QACL,MAAM,EAAE,SAAS,CAAC,WAAW,CAAC;QAC9B,IAAI,EAAE,WAAW,CAAC,IAAI,IAAI,IAAI;QAC9B,gBAAgB,EAAE,WAAW,CAAC,gBAAgB;QAC9C,SAAS,EAAE,WAAW,CAAC,SAAS;KACjC,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/ui",
3
- "version": "5.17.0-alpha.bcdca664",
3
+ "version": "5.17.0-alpha.e026037c",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -40,7 +40,7 @@
40
40
  "prop-types": "^15.6.2",
41
41
  "react-animate-height": "^3.0.4",
42
42
  "react-apollo-network-status": "^4.0.0",
43
- "react-image-gallery": "^0.8.14",
43
+ "react-image-gallery": "^0.9.1",
44
44
  "react-intersection-observer": "^8.0.1",
45
45
  "react-modal": "^3.4.5",
46
46
  "react-tooltip-lite": "^1.9.3",
@@ -53,7 +53,7 @@
53
53
  "@types/lodash.debounce": "^4.0.4",
54
54
  "@types/react": "^16.9.56",
55
55
  "@types/react-dom": "^16.9.14",
56
- "@types/react-image-gallery": "^0.8.3",
56
+ "@types/react-image-gallery": "^0.9.1",
57
57
  "@types/react-modal": "^3.1.2",
58
58
  "jest-dom": "^3.4.0",
59
59
  "lint-staged": "^8.1.5",