hasting-swatchcart-module 0.0.5 → 0.0.6

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.
@@ -4,7 +4,7 @@ import { EDataInputType as e } from "../src/features/DataAdapter/utils/types.js"
4
4
  import { MultiProductWrapper as c } from "../src/features/MultiProduct/ui/MultiProductWrapper/MultiProductWrapper.js";
5
5
  import { getIsOpenSidebar as f } from "../src/features/swatches/model/selectors.js";
6
6
  import { Swatches as a } from "../src/features/swatches/ui/Swatches.js";
7
- import d from "../store/LibraryProvider.js";
7
+ import { LibraryProvider as d } from "../store/LibraryProvider.js";
8
8
  const P = ({
9
9
  isOpen: p,
10
10
  uiDataType: o,
package/dist/main.d.ts CHANGED
@@ -1 +1 @@
1
- export { SwatchModule } from './components/SwatchesModule';
1
+ export {}
package/dist/main.js CHANGED
@@ -1,4 +1,8 @@
1
+ import { LibraryProvider as c } from "./store/LibraryProvider.js";
2
+ import { withStore as o } from "./store/withStore.js";
1
3
  import { SwatchModule as r } from "./components/SwatchesModule.js";
4
+ const a = o(r);
2
5
  export {
3
- r as SwatchModule
6
+ c as LibraryProvider,
7
+ a as SwatchModule
4
8
  };
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
- export default function LibraryProvider({ children }: {
2
+ export declare function LibraryProvider({ children }: {
3
3
  children: React.ReactNode;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -5,5 +5,5 @@ function p({ children: r }) {
5
5
  return /* @__PURE__ */ o(t, { store: e(), children: r });
6
6
  }
7
7
  export {
8
- p as default
8
+ p as LibraryProvider
9
9
  };
@@ -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>>;
@@ -0,0 +1,9 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { LibraryProvider as o } from "./LibraryProvider.js";
3
+ function m(r) {
4
+ const e = (i) => /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(r, { ...i }) });
5
+ return e.displayName = `withStore(${r.displayName || r.name || "Component"})`, e;
6
+ }
7
+ export {
8
+ m as withStore
9
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hasting-swatchcart-module",
3
3
  "private": false,
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",