@nice-code/state 0.4.11 → 0.5.1

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.
@@ -2057,8 +2057,8 @@ function writePrefs(prefs) {
2057
2057
  }
2058
2058
  }
2059
2059
  var EMPTY_SNAPSHOT = { stores: [], changes: [], paused: false };
2060
- function NiceStateDevtools(props) {
2061
- if (false) {}
2060
+ function NiceStateDevtools({ forceEnable, ...props }) {
2061
+ if (!forceEnable && false) {}
2062
2062
  return /* @__PURE__ */ jsxDEV10(NiceStateDevtools_Panel, {
2063
2063
  ...props
2064
2064
  }, undefined, false, undefined, this);
@@ -4,5 +4,7 @@ export interface INiceStateDevtoolsProps {
4
4
  core: StateDevtoolsCore;
5
5
  position?: TDevtoolsPosition;
6
6
  initialOpen?: boolean;
7
+ /** Show the panel even when NODE_ENV is not "development". */
8
+ forceEnable?: boolean;
7
9
  }
8
- export declare function NiceStateDevtools(props: INiceStateDevtoolsProps): import("react/jsx-runtime").JSX.Element | null;
10
+ export declare function NiceStateDevtools({ forceEnable, ...props }: INiceStateDevtoolsProps): import("react/jsx-runtime").JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-code/state",
3
- "version": "0.4.11",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {