@bouku/modal 0.0.3 → 0.0.4

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.
@@ -11,5 +11,4 @@ type ContextValue = {
11
11
  };
12
12
  export declare const Context: import("react").Context<ContextValue>;
13
13
  export declare const useRawModal: () => ContextValue;
14
- export default function useModal<T extends ModalConfig>(): void;
15
14
  export {};
@@ -2,7 +2,6 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.useRawModal = exports.Context = void 0;
5
- exports.default = useModal;
6
5
  const react_1 = require("react");
7
6
  exports.Context = (0, react_1.createContext)({
8
7
  active: null,
@@ -11,5 +10,3 @@ exports.Context = (0, react_1.createContext)({
11
10
  });
12
11
  const useRawModal = () => (0, react_1.useContext)(exports.Context);
13
12
  exports.useRawModal = useRawModal;
14
- function useModal() {
15
- }
@@ -17,4 +17,4 @@ export declare const createModalSystem: <T extends ModalConfig>(config: T) => {
17
17
  closeModal: () => void;
18
18
  };
19
19
  };
20
- export {};
20
+ export { useRawModal } from "./context";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createModalSystem = void 0;
3
+ exports.useRawModal = exports.createModalSystem = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const provider_1 = require("./provider");
6
6
  const context_1 = require("./context");
@@ -19,3 +19,5 @@ const createModalSystem = (config) => ({
19
19
  }
20
20
  });
21
21
  exports.createModalSystem = createModalSystem;
22
+ var context_2 = require("./context");
23
+ Object.defineProperty(exports, "useRawModal", { enumerable: true, get: function () { return context_2.useRawModal; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bouku/modal",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "MIT",