hasting-swatchcart-module 0.0.19 → 0.0.20

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.
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export declare function LibraryProvider({ children }: {
3
+ children: React.ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ declare const rootReducer: import('redux').Reducer<{
2
+ swatches: import('../../src/features/swatches/model/types').ISwatchesSlice;
3
+ cart: import('../../src/features/Cart/model/types').CartState;
4
+ multiProductCart: import('../../src/features/MultiProduct/model/types').CartState;
5
+ }, import('redux').UnknownAction, Partial<{
6
+ swatches: import('../../src/features/swatches/model/types').ISwatchesSlice | undefined;
7
+ cart: import('../../src/features/Cart/model/types').CartState | undefined;
8
+ multiProductCart: import('../../src/features/MultiProduct/model/types').CartState | undefined;
9
+ }>>;
10
+ export type RootState = ReturnType<typeof rootReducer>;
11
+ export default rootReducer;
@@ -0,0 +1,25 @@
1
+ export declare const getStore: () => import('@reduxjs/toolkit').EnhancedStore<{
2
+ swatches: import('../../src/features/swatches/model/types').ISwatchesSlice;
3
+ cart: import('../../src/features/Cart/model/types').CartState;
4
+ multiProductCart: import('../../src/features/MultiProduct/model/types').CartState;
5
+ }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
6
+ dispatch: import('redux-thunk').ThunkDispatch<{
7
+ swatches: import('../../src/features/swatches/model/types').ISwatchesSlice;
8
+ cart: import('../../src/features/Cart/model/types').CartState;
9
+ multiProductCart: import('../../src/features/MultiProduct/model/types').CartState;
10
+ }, undefined, import('redux').UnknownAction>;
11
+ }>, import('redux').StoreEnhancer]>>;
12
+ type AppStore = ReturnType<typeof getStore>;
13
+ export type AppDispatch = AppStore['dispatch'];
14
+ export type RootState = ReturnType<AppStore['getState']>;
15
+ export declare const useAppDispatch: import('react-redux').UseDispatch<import('redux-thunk').ThunkDispatch<{
16
+ swatches: import('../../src/features/swatches/model/types').ISwatchesSlice;
17
+ cart: import('../../src/features/Cart/model/types').CartState;
18
+ multiProductCart: import('../../src/features/MultiProduct/model/types').CartState;
19
+ }, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
20
+ export declare const useAppSelector: import('react-redux').UseSelector<{
21
+ swatches: import('../../src/features/swatches/model/types').ISwatchesSlice;
22
+ cart: import('../../src/features/Cart/model/types').CartState;
23
+ multiProductCart: import('../../src/features/MultiProduct/model/types').CartState;
24
+ }>;
25
+ export {};
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare function withStore<T extends React.ComponentType<any>>(Comp: T): React.FC<React.ComponentProps<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hasting-swatchcart-module",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -36,8 +36,7 @@
36
36
  "format": "prettier --write .",
37
37
  "format:check": "prettier --check .",
38
38
  "prepare": "husky",
39
- "start": "vite preview -c vite.app.config.ts --host 0.0.0.0 --port ${PORT:-8080}",
40
- "publish": "tsc --p ./tsconfig-build.json && vite build -c vite.lib.config.ts && npm version patch && npm publish"
39
+ "start": "vite preview -c vite.app.config.ts --host 0.0.0.0 --port ${PORT:-8080}"
41
40
  },
42
41
  "dependencies": {
43
42
  "@radix-ui/react-accordion": "^1.2.11",