hasting-swatchcart-module 1.0.16 → 1.0.18
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/dist/assets/index.css +1 -1
- package/dist/cdn/lib/store/LibraryProvider.d.ts +2 -4
- package/dist/cdn/lib/store/store.d.ts +12 -17
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/main.js +23848 -9817
- package/dist/cdn/src/app/providers/StoreProvider.d.ts +3 -3
- package/dist/cdn/src/app/store/store.d.ts +10 -16
- package/dist/cdn/src/shared/ui/Markdown/MDWithAccordion.d.ts +10 -0
- package/dist/cdn/src/shared/ui/PopoverTooltip/PopoverTooltip.d.ts +11 -0
- package/dist/main.cjs +68 -47
- package/dist/main.cjs.map +1 -1
- package/dist/main.js +18193 -3874
- package/dist/main.js.map +1 -1
- package/dist/store/LibraryProvider.d.ts +2 -4
- package/dist/store/store.d.ts +12 -17
- package/package.json +102 -99
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
interface IStoreProviderProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
declare const StoreProvider: ({ children }: IStoreProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default StoreProvider;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const createAppStore: () => import('@reduxjs/toolkit').EnhancedStore<{
|
|
1
|
+
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
3
2
|
swatches: import('../../features/swatches/model/types').ISwatchesSlice;
|
|
4
3
|
cart: import('../../features/Cart/model/types').CartState;
|
|
5
4
|
multiProductCart: import('../../features/MultiProduct/model/types').MultiProductState;
|
|
@@ -10,21 +9,16 @@ export declare const createAppStore: () => import('@reduxjs/toolkit').EnhancedSt
|
|
|
10
9
|
multiProductCart: import('../../features/MultiProduct/model/types').MultiProductState;
|
|
11
10
|
}, undefined, import('redux').UnknownAction>;
|
|
12
11
|
}>, import('redux').StoreEnhancer]>>;
|
|
13
|
-
export type
|
|
14
|
-
export
|
|
15
|
-
export declare const
|
|
12
|
+
export type RootState = ReturnType<typeof store.getState>;
|
|
13
|
+
export type AppDispatch = typeof store.dispatch;
|
|
14
|
+
export declare const useAppDispatch: import('react-redux').UseDispatch<import('redux-thunk').ThunkDispatch<{
|
|
16
15
|
swatches: import('../../features/swatches/model/types').ISwatchesSlice;
|
|
17
16
|
cart: import('../../features/Cart/model/types').CartState;
|
|
18
17
|
multiProductCart: import('../../features/MultiProduct/model/types').MultiProductState;
|
|
19
|
-
}, import('redux').UnknownAction
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}>, import('redux').StoreEnhancer]>>;
|
|
26
|
-
export type RootState = ReturnType<AppStore['getState']>;
|
|
27
|
-
export type AppDispatch = AppStore['dispatch'];
|
|
28
|
-
export declare const useAppDispatch: () => AppDispatch;
|
|
29
|
-
export declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
18
|
+
}, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
|
|
19
|
+
export declare const useAppSelector: import('react-redux').UseSelector<{
|
|
20
|
+
swatches: import('../../features/swatches/model/types').ISwatchesSlice;
|
|
21
|
+
cart: import('../../features/Cart/model/types').CartState;
|
|
22
|
+
multiProductCart: import('../../features/MultiProduct/model/types').MultiProductState;
|
|
23
|
+
}>;
|
|
30
24
|
export default store;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Markdown renderer with accordion support
|
|
3
|
+
*/
|
|
4
|
+
interface IMDWithAccordion {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
openFirst?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function MDWithAccordion({ children, className, openFirst, }: IMDWithAccordion): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PopoverTooltip — popover with Markdown + accordions.
|
|
3
|
+
* @param {string} tooltipData — raw markdown with ~H~~ ~M~~ markers
|
|
4
|
+
* @param {boolean} openFirst — whether to open the first accordion
|
|
5
|
+
* @param {React.ReactNode} trigger — custom trigger (optional)
|
|
6
|
+
*/
|
|
7
|
+
export declare const PopoverTooltip: ({ tooltipData, openFirst, trigger, }: {
|
|
8
|
+
tooltipData: string;
|
|
9
|
+
openFirst?: boolean;
|
|
10
|
+
trigger?: React.ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|