@zengenti/contensis-react-base 3.0.0-beta.49 → 3.0.0-beta.51

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.
@@ -1,7 +1,7 @@
1
1
  import { clearFilters, updateCurrentFacet, updateCurrentTab, updatePageIndex, updateSearchTerm, updateSelectedFilters, updateSortOrder } from '../redux/actions';
2
2
  import { SearchFacet, Mappers } from '../models/Search';
3
3
  import { DebugFlags } from '../models/SearchActions';
4
- import { Facet as StateFacet, Facets, Filters, Paging } from '../models/SearchState';
4
+ import { Facet as StateFacet, Facets, Filters, Paging, SelectedFilters } from '../models/SearchState';
5
5
  export interface MinilistProps<SearchResults = any> {
6
6
  filters: Filters;
7
7
  isLoading: boolean;
@@ -22,11 +22,13 @@ export interface ListingProps<SearchResults = any> {
22
22
  featured: SearchResults[];
23
23
  filters: Filters;
24
24
  isLoading: boolean;
25
- paging: Paging;
25
+ listing: StateFacet;
26
26
  pageIsLoading: boolean;
27
+ paging: Paging;
27
28
  results: SearchResults[];
28
29
  resultsInfo: any;
29
30
  searchTerm: string;
31
+ selectedFilters: SelectedFilters;
30
32
  sortOrder: string[];
31
33
  title: string;
32
34
  updateCurrentFacet: typeof updateCurrentFacet;
@@ -50,6 +52,7 @@ export interface SearchProps<SearchResults = any> {
50
52
  results: SearchResults[];
51
53
  resultsInfo: any;
52
54
  searchTerm: string;
55
+ selectedFilters: SelectedFilters;
53
56
  sortOrder: string[];
54
57
  tabsAndFacets: any;
55
58
  updateCurrentFacet: typeof updateCurrentFacet;
@@ -60,13 +63,14 @@ export interface SearchProps<SearchResults = any> {
60
63
  updateSortOrder: typeof updateSortOrder;
61
64
  }
62
65
  export interface UseListingProps {
63
- id: string;
64
66
  debug?: DebugFlags;
65
67
  defaultLang?: string;
66
68
  mappers?: Mappers;
67
69
  params?: {
68
70
  [key: string]: string;
69
71
  };
72
+ /** Reserved for future use */
73
+ id?: string;
70
74
  }
71
75
  export interface UseMinilistProps {
72
76
  id: string;
@@ -28,7 +28,7 @@ export declare const getIsInternalPaging: (state: AppState, current: string, con
28
28
  export declare const getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
29
29
  export declare const getIsLoading: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
30
30
  export declare const getIsSsr: (state: AppState) => boolean;
31
- export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context) => any[];
31
+ export declare const getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
32
32
  export declare const getPaging: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => Paging;
33
33
  export declare const getPageIndex: (state: AppState, current?: string, context?: Context) => number;
34
34
  export declare const getPrevPageIndex: (state: AppState, current?: string, context?: Context) => number;
@@ -61,7 +61,7 @@ export declare const selectFacets: {
61
61
  }[];
62
62
  getFacets: (state: AppState, returnType?: StateType | undefined) => Facets;
63
63
  getFacetsTotalCount: (state: AppState) => number;
64
- getFeaturedResults: (state: AppState, current?: string, context?: Context) => any[];
64
+ getFeaturedResults: (state: AppState, current?: string, context?: Context, returnType?: StateType | undefined) => any[];
65
65
  getFilters: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => Filters;
66
66
  getFiltersToLoad: (state: AppState, facet: string, context?: Context, returnType?: StateType | undefined) => string[];
67
67
  getIsLoaded: (state: AppState, context?: Context, facet?: string | undefined) => boolean;
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zengenti/contensis-react-base",
3
- "version": "3.0.0-beta.49",
3
+ "version": "3.0.0-beta.51",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
@@ -14014,7 +14014,7 @@
14014
14014
  }
14015
14015
  },
14016
14016
  "zengenti-search-package": {
14017
- "version": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#58b0216048e83785df6b6825646413313d028c49",
14017
+ "version": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#667e2eb9a6ffd4374e70ef77fa1022badbe88c3e",
14018
14018
  "from": "git+https://gitlab+deploy-token-5:XKRGRE1p2PrFAxnWwLNz@gitlab.zengenti.com/zengenti-packages/search.git#immer",
14019
14019
  "dev": true,
14020
14020
  "requires": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zengenti/contensis-react-base",
3
- "version": "3.0.0-beta.49",
3
+ "version": "3.0.0-beta.51",
4
4
  "repository": "https://github.com/zengenti/contensis-react-base",
5
5
  "license": "None",
6
6
  "description": "Turbocharge your React web apps with Contensis. This package handles all dependencies for creating full featured web apps in React with Contensis and Site View. Routing is driven by Site View, Redux is used for global state management and server-side rendering (SSR) is handled for you. Also taking care of intricate hosting issues such as cache invalidation and supporting authenticated content where required.",