@jetshop/ui 5.16.1 → 5.17.0-alpha.b238da57

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/Breakpoints.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export declare type BreakpointHelperProps = {
2
+ export type BreakpointHelperProps = {
3
3
  breakpoint: string;
4
4
  render?: (props: any) => React.ReactNode;
5
5
  children?: (props: any) => React.ReactNode;
6
6
  };
7
- export declare type BreakpointBetweenProps = BreakpointHelperProps & {
7
+ export type BreakpointBetweenProps = BreakpointHelperProps & {
8
8
  breakpoints: string[];
9
9
  };
10
10
  export declare const Above: ({ breakpoint, render, children }: BreakpointHelperProps) => JSX.Element;
@@ -36,9 +36,9 @@ export interface ChannelSelectorState {
36
36
  selectedChannel: SelectedChannel;
37
37
  hasChanged: boolean;
38
38
  }
39
- export declare type SelectChannel = (channel: number | string, culture?: string, currency?: string, country?: string) => void;
40
- export declare type SelectCurrency = (currency: string) => void;
41
- export declare type SelectLanguage = (language: string) => void;
39
+ export type SelectChannel = (channel: number | string, culture?: string, currency?: string, country?: string) => void;
40
+ export type SelectCurrency = (currency: string) => void;
41
+ export type SelectLanguage = (language: string) => void;
42
42
  /** Wraps either MiniSelector or LargeSelector and provides controlled state */
43
43
  export default class ChannelSelector extends React.Component<ChannelSelectorProps, ChannelSelectorState> {
44
44
  state: {
@@ -1,9 +1,9 @@
1
1
  import React, { ReactNode, InputHTMLAttributes } from 'react';
2
- export declare type CheckboxProps = {
2
+ export type CheckboxProps = {
3
3
  label: ReactNode;
4
4
  className?: string;
5
5
  };
6
- export declare type CheckboxCompound = {
6
+ export type CheckboxCompound = {
7
7
  Label?: React.ReactNode;
8
8
  };
9
9
  declare const Checkbox: React.SFC<CheckboxProps & InputHTMLAttributes<HTMLInputElement>> & CheckboxCompound;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare type CheckboxGroupChange = (val: string) => any;
2
+ export type CheckboxGroupChange = (val: string) => any;
3
3
  export interface Item {
4
4
  /** The checkbox label */
5
5
  label: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ContentItem } from '@jetshop/core/types';
3
- export declare type Components = {
3
+ export type Components = {
4
4
  [key: string]: React.FC<any>;
5
5
  };
6
6
  export declare function ContentRenderer({ items, components }: {
@@ -1,11 +1,11 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import { ProductImageSize } from '@jetshop/core/types';
3
- export declare type ImageSrcType = string | ProductImageSize[];
4
- export declare type BreakpointValues = string[];
5
- export declare type ImageBreakpointSize = number | string;
6
- export declare type ImageBreakpointSizes = ImageBreakpointSize | ImageBreakpointSize[];
7
- export declare type AspectRatio = string | number;
8
- export declare type Gravity = 'north' | 'south' | 'west' | 'east' | 'centre' | 'smart';
3
+ export type ImageSrcType = string | ProductImageSize[];
4
+ export type BreakpointValues = string[];
5
+ export type ImageBreakpointSize = number | string;
6
+ export type ImageBreakpointSizes = ImageBreakpointSize | ImageBreakpointSize[];
7
+ export type AspectRatio = string | number;
8
+ export type Gravity = 'north' | 'south' | 'west' | 'east' | 'centre' | 'smart';
9
9
  export declare const transparentDataImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
10
10
  interface ImageParameters {
11
11
  /** The image src
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { ProductImageSize } from '@jetshop/core/types';
3
- export declare type ImageSrcType = string | ProductImageSize[];
4
- export declare type BreakpointValues = string[];
5
- export declare type ImageBreakpointSize = number | string;
6
- export declare type ImageBreakpointSizes = ImageBreakpointSize | ImageBreakpointSize[];
7
- export declare type AspectRatio = string | number;
3
+ export type ImageSrcType = string | ProductImageSize[];
4
+ export type BreakpointValues = string[];
5
+ export type ImageBreakpointSize = number | string;
6
+ export type ImageBreakpointSizes = ImageBreakpointSize | ImageBreakpointSize[];
7
+ export type AspectRatio = string | number;
8
8
  export declare const transparentDataImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
9
9
  export interface ImageParameters {
10
10
  src: string | boolean;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { ProductImageSize } from '@jetshop/core/types';
3
- export declare type ImageSrcType = string | ProductImageSize[];
4
- export declare type BreakpointValues = string[];
5
- export declare type ImageBreakpointSize = number | string;
6
- export declare type ImageBreakpointSizes = ImageBreakpointSize | ImageBreakpointSize[];
7
- export declare type AspectRatio = string | number;
8
- export declare type Gravity = 'north' | 'south' | 'west' | 'east' | 'centre' | 'smart';
3
+ export type ImageSrcType = string | ProductImageSize[];
4
+ export type BreakpointValues = string[];
5
+ export type ImageBreakpointSize = number | string;
6
+ export type ImageBreakpointSizes = ImageBreakpointSize | ImageBreakpointSize[];
7
+ export type AspectRatio = string | number;
8
+ export type Gravity = 'north' | 'south' | 'west' | 'east' | 'centre' | 'smart';
9
9
  export declare const transparentDataImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
10
10
  interface ImageParameters {
11
11
  /** The image src
@@ -1,8 +1,8 @@
1
1
  import { ImageValue, ProductImageSize } from '@jetshop/core/types';
2
- declare type ImageSrcType = string | ProductImageSize[] | ImageValue;
3
- export declare type Gravity = 'north' | 'south' | 'west' | 'east' | 'centre' | 'smart';
4
- export declare type ImageBreakpointSize = number | string;
5
- export declare type ImageBreakpointSizes = ImageBreakpointSize | ImageBreakpointSize[];
2
+ type ImageSrcType = string | ProductImageSize[] | ImageValue;
3
+ export type Gravity = 'north' | 'south' | 'west' | 'east' | 'centre' | 'smart';
4
+ export type ImageBreakpointSize = number | string;
5
+ export type ImageBreakpointSizes = ImageBreakpointSize | ImageBreakpointSize[];
6
6
  interface ImageParameters {
7
7
  /** The image src
8
8
  * Also accepts an array of objects with `url` keys (deprecated image field)
@@ -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<{}, any>, keyof RecursiveTreeProps>, any> & import("react-router").WithRouterStatics<React.FC<RecursiveTreeProps & RouteChildrenProps<{}, any>>>;
27
+ declare const _default: React.ComponentClass<Pick<RecursiveTreeProps & RouteChildrenProps<{}, H.LocationState>, keyof RecursiveTreeProps>, any> & import("react-router").WithRouterStatics<React.FC<RecursiveTreeProps & RouteChildrenProps<{}, H.LocationState>>>;
28
28
  export default _default;
@@ -1,16 +1,16 @@
1
1
  import React from 'react';
2
- declare type PreOrderDropdownType = {
2
+ type PreOrderDropdownType = {
3
3
  values: PreOrderDatesType[];
4
4
  selectedDate: string;
5
5
  selectDate: React.Dispatch<React.SetStateAction<string>>;
6
6
  };
7
- declare type PreOrderInputType = {
7
+ type PreOrderInputType = {
8
8
  value: PreOrderDatesType;
9
9
  selectDate: React.Dispatch<React.SetStateAction<string>>;
10
10
  callback?: Function;
11
11
  className?: string;
12
12
  };
13
- declare type PreOrderDatesType = {
13
+ type PreOrderDatesType = {
14
14
  value: string;
15
15
  name: string;
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ProductLink.js","sourceRoot":"","sources":["ProductLink.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA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V,UAAU,EAAE,EAAE,EACd,QAAQ,EAAE;wBACR,OAAO,EAAE,EAAE;wBACX,MAAM,EAAE,EAAE;qBACX,EACD,WAAW,EAAE,EAAE,GAChB;gBACD,IAAI,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;aAC5D;YACD,MAAM;YACN,IAAI;SACL,EACD,QAAQ,EAAE,SAAgB,EAC1B,YAAY,EAAE,cAAc,KAE3B,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAC9B,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { RouteComponentProps } from 'react-router-dom';
3
- export declare type routeType = 'sortOrderChange' | 'filterChange' | 'paginationChange' | 'Product' | 'Category' | 'Page';
3
+ export type routeType = 'sortOrderChange' | 'filterChange' | 'paginationChange' | 'Product' | 'Category' | 'Page';
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, any>, "ignoreForRouteTypes">, any> & import("react-router").WithRouterStatics<import("react").FC<ScrollRestoreProps & RouteComponentProps<{}, import("react-router").StaticContext, any>>>;
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>>>;
8
8
  export default _default;
@@ -1,6 +1,8 @@
1
1
  import { Location } from 'history';
2
2
  import { routeType } from './ScrollRestorationHandler';
3
3
  export declare function isInIgnoredRouteTypes({ location, routeTypes }: {
4
- location: Location;
4
+ location: Location<{
5
+ type?: any;
6
+ }>;
5
7
  routeTypes: routeType[];
6
8
  }): boolean;
@@ -1,7 +1,9 @@
1
1
  import { Location } from 'history';
2
2
  import { routeType } from './ScrollRestorationHandler';
3
3
  export declare function useScrollRestore({ location, ignoreForRouteTypes, prevLocation }: {
4
- location: Location;
4
+ location: Location<{
5
+ type?: any;
6
+ }>;
5
7
  prevLocation: Location;
6
8
  ignoreForRouteTypes?: routeType[];
7
9
  }): void;
@@ -1 +1 @@
1
- {"version":3,"file":"useScrollRestore.js","sourceRoot":"","sources":["useScrollRestore.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,UAAU,gBAAgB,CAAC,EAC/B,QAAQ,EACR,mBAAmB,EACnB,YAAY,EAKb;IACC,SAAS,CAAC,GAAG,EAAE;QACb,IACE,mBAAmB;YACnB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,CAAC,EACpE;YACA,OAAO;SACR;QAED,IAAI,CAAC,YAAY,IAAI,QAAQ,CAAC,IAAI,KAAK,EAAE,EAAE;YACzC,OAAO;SACR;QAGD,IAAI,YAAY;YACd,YAAY,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;YAC3C,YAAY,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE;YACzC,OAAO;SACR;QAED,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,EAAE,CAAC,mBAAmB,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"useScrollRestore.js","sourceRoot":"","sources":["useScrollRestore.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,UAAU,gBAAgB,CAAC,EAC/B,QAAQ,EACR,mBAAmB,EACnB,YAAY,EAKb;IACC,SAAS,CAAC,GAAG,EAAE;QACb,IACE,mBAAmB;YACnB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,CAAC,EACpE;YACA,OAAO;SACR;QAED,IAAI,CAAC,YAAY,IAAI,QAAQ,CAAC,IAAI,KAAK,EAAE,EAAE;YACzC,OAAO;SACR;QAED,IACE,YAAY;YACZ,YAAY,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;YAC3C,YAAY,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EACvC;YACA,OAAO;SACR;QAED,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,EAAE,CAAC,mBAAmB,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AACpD,CAAC"}
@@ -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, any>, keyof SearchFieldProps>, any> & import("react-router").WithRouterStatics<(props: SearchFieldProps & RouteComponentProps<{}, import("react-router").StaticContext, any>) => JSX.Element>;
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>;
45
45
  export default _default;
@@ -2,7 +2,7 @@ import { Product, StartPage } from '@jetshop/core/types';
2
2
  import { Components } from '../ContentRenderer';
3
3
  import React from 'react';
4
4
  import { QueryResult } from 'react-apollo';
5
- declare type ProductGrid = React.FC<{
5
+ type ProductGrid = React.FC<{
6
6
  products: Product[];
7
7
  }>;
8
8
  export interface StartPageProviderProps {
@@ -13,5 +13,5 @@ export interface StartPageProviderProps {
13
13
  ProductGrid?: ProductGrid;
14
14
  startPageComponents: Components;
15
15
  }
16
- declare const StartPageRenderer: ({ result, ProductGrid, startPageComponents, LoadingPage }: StartPageProviderProps) => JSX.Element;
16
+ declare const StartPageRenderer: ({ result, ProductGrid, startPageComponents: components, LoadingPage }: StartPageProviderProps) => JSX.Element;
17
17
  export default StartPageRenderer;
@@ -6,7 +6,7 @@ interface ScrollWithWindow {
6
6
  height: number;
7
7
  }
8
8
  declare function useScrollWithWindowServer(_props: ScrollWithWindow): {
9
- ref: import("react").MutableRefObject<FixedSizeList>;
9
+ ref: import("react").MutableRefObject<FixedSizeList<any>>;
10
10
  };
11
11
  declare const _default: typeof useScrollWithWindowServer;
12
12
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/ui",
3
- "version": "5.16.1",
3
+ "version": "5.17.0-alpha.b238da57",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -1,4 +1,4 @@
1
- export declare type Breakpoint = {
1
+ export type Breakpoint = {
2
2
  label: string;
3
3
  size: string;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { Product, Category, StringValue } from '@jetshop/core/types';
2
- declare type ItemList = string | Product | Category;
2
+ type ItemList = string | Product | Category;
3
3
  export declare function usePropsOfType(props: {
4
4
  [key: string]: {
5
5
  type: string;
package/withFlightUI.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type As = string | React.FC<{
2
+ export type As = string | React.FC<{
3
3
  children?: React.ReactNode;
4
4
  className?: string;
5
5
  }> | React.ComponentClass<{