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.
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
- interface ILibraryProviderProps {
2
+ interface IStoreProviderProps {
3
3
  children: React.ReactNode;
4
4
  }
5
- export declare function LibraryProvider({ children }: ILibraryProviderProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
5
+ declare const StoreProvider: ({ children }: IStoreProviderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default StoreProvider;
@@ -1,5 +1,4 @@
1
- import { TypedUseSelectorHook } from 'react-redux';
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 AppStore = ReturnType<typeof createAppStore>;
14
- export declare const getStore: () => AppStore;
15
- export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
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, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
20
- dispatch: import('redux-thunk').ThunkDispatch<{
21
- swatches: import('../../features/swatches/model/types').ISwatchesSlice;
22
- cart: import('../../features/Cart/model/types').CartState;
23
- multiProductCart: import('../../features/MultiProduct/model/types').MultiProductState;
24
- }, undefined, import('redux').UnknownAction>;
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;