@websolutespa/bom-mixer-hooks 1.4.1 → 1.7.0

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/CHANGELOG.md CHANGED
@@ -1,11 +1,31 @@
1
1
  # @websolutespa/bom-mixer-hooks
2
2
 
3
+ ## 1.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 28e86bd: Modified: IPage, Store services & decorators
8
+ - Updated dependencies [28e86bd]
9
+ - @websolutespa/bom-mixer-models@1.7.0
10
+ - @websolutespa/bom-mixer-store@1.7.0
11
+ - @websolutespa/bom-core@1.7.0
12
+
13
+ ## 1.4.2
14
+
15
+ ### Patch Changes
16
+
17
+ - Modified: IFeatureType
18
+ - Updated dependencies
19
+ - @websolutespa/bom-mixer-models@1.5.4
20
+ - @websolutespa/bom-mixer-store@1.4.3
21
+ - @websolutespa/bom-core@0.6.5
22
+
3
23
  ## 1.4.1
4
24
 
5
25
  ### Patch Changes
6
26
 
7
- - Added: useCollectionApi, useExtra.
8
- - Modified: usePagination, useSearchParamsQs.
27
+ - Added: useCollectionApi, useExtra
28
+ - Modified: usePagination, useSearchParamsQs
9
29
  - Updated dependencies
10
30
  - @websolutespa/bom-mixer-models@1.5.2
11
31
  - @websolutespa/bom-core@0.6.2
@@ -14,66 +34,66 @@
14
34
 
15
35
  ### Minor Changes
16
36
 
17
- - Added useLazyModules.
37
+ - Added useLazyModules
18
38
 
19
39
  ## 1.3.0
20
40
 
21
41
  ### Minor Changes
22
42
 
23
- - Added: useSearchParamsQs.
24
- - Modified: useSearchParamsEncoded, useSearchParams, useScrollTo.
43
+ - Added: useSearchParamsQs
44
+ - Modified: useSearchParamsEncoded, useSearchParams, useScrollTo
25
45
 
26
46
  ## 1.2.1
27
47
 
28
48
  ### Patch Changes
29
49
 
30
- - Added: LabelService.
31
- - Modified: useLabels, useScrollTo.
50
+ - Added: LabelService
51
+ - Modified: useLabels, useScrollTo
32
52
 
33
53
  ## 1.2.0
34
54
 
35
55
  ### Minor Changes
36
56
 
37
- - Updating: next 13.
57
+ - Updating: next 13
38
58
 
39
59
  ## 1.1.0
40
60
 
41
61
  ### Minor Changes
42
62
 
43
- - Modified: useHttp, useApi.
63
+ - Modified: useHttp, useApi
44
64
 
45
65
  ## 1.0.0
46
66
 
47
67
  ### Minor Changes
48
68
 
49
- - Added: useScrolled.
69
+ - Added: useScrolled
50
70
 
51
71
  ## 0.2.2
52
72
 
53
73
  ### Patch Changes
54
74
 
55
- - Modified: useBreakpoint theme mediaQuery.
75
+ - Modified: useBreakpoint theme mediaQuery
56
76
 
57
77
  ## 0.2.1
58
78
 
59
79
  ### Patch Changes
60
80
 
61
- - Added: source files.
81
+ - Added: source files
62
82
 
63
83
  ## 0.2.0
64
84
 
65
85
  ### Minor Changes
66
86
 
67
- - Added: splat routes.
87
+ - Added: splat routes
68
88
 
69
89
  ## 0.1.0
70
90
 
71
91
  ### Minor Changes
72
92
 
73
- - Added: @websolutespa/bom-core.
93
+ - Added: @websolutespa/bom-core
74
94
 
75
95
  ## 0.0.2
76
96
 
77
97
  ### Patch Changes
78
98
 
79
- - Added: first release.
99
+ - Added: first release
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import * as zustand_middleware from 'zustand/middleware';
6
6
  import { StateStorage } from 'zustand/middleware';
7
7
  import * as zustand from 'zustand';
8
- import { ISchema, QueryParams, IEquatable, ILabel, ILocalizable, ILayout, IPage } from '@websolutespa/bom-core';
9
- import { ICartItem, ICartAddItem, IAddressOptions, ICheckoutPartial, IFeatureType, ILazyModules, IUser } from '@websolutespa/bom-mixer-models';
8
+ import { ISchema, QueryParams, IEquatable, IFeatureType, ILabel, ILocalizable, ILayout, IPage } from '@websolutespa/bom-core';
9
+ import { ICartItem, ICartAddItem, IAddressOptions, ICheckoutPartial, ILazyModules, IUser } from '@websolutespa/bom-mixer-models';
10
10
  import { NextRouter } from 'next/router';
11
11
 
12
12
  declare function useApiFetch<T = unknown>(pathname: string, options?: ApiRequestOptions): [T | undefined, boolean, any, react.Dispatch<any>];
@@ -452,7 +452,7 @@ declare function useMounted(): boolean;
452
452
  declare function useNumber(options?: Intl.NumberFormatOptions, locale?: string): (value: number) => string;
453
453
 
454
454
  type IPageContext = IPage;
455
- declare const usePage: () => NonNullable<IPage>;
455
+ declare const usePage: () => NonNullable<IPageContext>;
456
456
  declare function PageProvider({ children, page }: {
457
457
  children?: react__default.ReactNode;
458
458
  page: IPage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-hooks",
3
- "version": "1.4.1",
3
+ "version": "1.7.0",
4
4
  "description": "Mixer Hooks module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -67,7 +67,7 @@ describe('useApi', () => {
67
67
  STORE_API: '/bowl/api',
68
68
  STORE_STRATEGY: 'mock',
69
69
  STORE_BEARER: 'STORE_BEARER',
70
- SECRET_COOKIE_PASSWORD: 'SECRET_COOKIE_PASSWORD',
70
+ SECRET_COOKIE_PASSWORD: 'SECRET_COOKIE_PASSWORD_32_CHARS_LONG',
71
71
  HOOKS_SECRET: 'HOOKS_SECRET',
72
72
  };
73
73
  });
@@ -68,7 +68,7 @@ describe('useCollectionApi', () => {
68
68
  STORE_API: '/bowl/api',
69
69
  STORE_STRATEGY: 'mock',
70
70
  STORE_BEARER: 'STORE_BEARER',
71
- SECRET_COOKIE_PASSWORD: 'SECRET_COOKIE_PASSWORD',
71
+ SECRET_COOKIE_PASSWORD: 'SECRET_COOKIE_PASSWORD_32_CHARS_LONG',
72
72
  HOOKS_SECRET: 'HOOKS_SECRET',
73
73
  };
74
74
  });
@@ -1,5 +1,4 @@
1
- import { IEquatable } from '@websolutespa/bom-core';
2
- import { IFeatureType } from '@websolutespa/bom-mixer-models';
1
+ import { IEquatable, IFeatureType } from '@websolutespa/bom-core';
3
2
  import { Filter, FilterMode, FilterParams } from './filter';
4
3
 
5
4
  export function getFilters<T>(items: T[], featureTypes: IFeatureType[], filterMap: (key: string, item: T, value: IEquatable) => boolean, params?: FilterParams | null): Filter<T>[] {
@@ -1,5 +1,4 @@
1
- import { IEquatable } from '@websolutespa/bom-core';
2
- import { IFeatureType } from '@websolutespa/bom-mixer-models';
1
+ import { IEquatable, IFeatureType } from '@websolutespa/bom-core';
3
2
 
4
3
  export type FilterParams = { [key: string]: IEquatable[] | null };
5
4
  export type FilterValues = IEquatable[][];
@@ -1,5 +1,4 @@
1
- import { IEquatable } from '@websolutespa/bom-core';
2
- import { IFeatureType } from '@websolutespa/bom-mixer-models';
1
+ import { IEquatable, IFeatureType } from '@websolutespa/bom-core';
3
2
  import { useCallback, useEffect, useMemo, useState } from 'react';
4
3
  import { Filter, FilterParams } from './filter';
5
4
  import { getFilters, setFilters } from './filter.service';
@@ -58,7 +58,7 @@ describe('useHttp', () => {
58
58
  STORE_API: '/bowl/api',
59
59
  STORE_STRATEGY: 'mock',
60
60
  STORE_BEARER: 'STORE_BEARER',
61
- SECRET_COOKIE_PASSWORD: 'SECRET_COOKIE_PASSWORD',
61
+ SECRET_COOKIE_PASSWORD: 'SECRET_COOKIE_PASSWORD_32_CHARS_LONG',
62
62
  HOOKS_SECRET: 'HOOKS_SECRET',
63
63
  };
64
64
  });