@plumeria/inspector 16.3.0 → 16.4.0

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/README.md CHANGED
@@ -14,7 +14,8 @@ pnpm install -D @plumeria/inspector
14
14
  ## Usage
15
15
 
16
16
  ```tsx
17
- import { Inspector } from '@plumeria/inspector';
17
+ // Use '@plumeria/inspector/production' subpath in production.
18
+ import { Inspector } from '@plumeria/inspector';
18
19
 
19
20
  export default function RootLayout({ children }: { children: React.ReactNode }) {
20
21
  return (
@@ -32,7 +33,6 @@ export default function RootLayout({ children }: { children: React.ReactNode })
32
33
 
33
34
  | Prop | Type | Default | Description |
34
35
  | --- | --- | --- | --- |
35
- | `production` | `boolean` | `false` | If `true`, the inspector is enabled in production environments. |
36
36
  | `initial` | `boolean` | `false` | If `true`, the inspector starts toggled ON. If `false`, it starts toggled OFF. |
37
37
 
38
38
  ## Keyboard Shortcuts
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- export declare const Inspector: ({ production, initial, }: {
3
- production?: boolean;
2
+ export declare const Inspector: ({ initial }: {
4
3
  initial?: boolean;
5
- }) => React.JSX.Element | null;
4
+ }) => React.JSX.Element;
package/dist/index.js CHANGED
@@ -250,13 +250,7 @@ var DevInspector = ({ initial }) => {
250
250
  )
251
251
  ] });
252
252
  };
253
- var Inspector = ({
254
- production = false,
255
- initial = false
256
- }) => {
257
- if (!production && process.env.NODE_ENV === "production") {
258
- return null;
259
- }
253
+ var Inspector = ({ initial = false }) => {
260
254
  return /* @__PURE__ */ jsx(DevInspector, { initial });
261
255
  };
262
256
  export {
@@ -0,0 +1,3 @@
1
+ export declare const Inspector: (_props: {
2
+ initial?: boolean;
3
+ }) => null;
@@ -0,0 +1,5 @@
1
+ // src/index.noop.tsx
2
+ var Inspector = (_props) => null;
3
+ export {
4
+ Inspector
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/inspector",
3
- "version": "16.3.0",
3
+ "version": "16.4.0",
4
4
  "description": "Styled components inspector for development",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -25,7 +25,13 @@
25
25
  "exports": {
26
26
  ".": {
27
27
  "types": "./dist/index.d.ts",
28
- "import": "./dist/index.js"
28
+ "development": "./dist/index.js",
29
+ "production": "./dist/index.noop.js",
30
+ "default": "./dist/index.js"
31
+ },
32
+ "./production": {
33
+ "types": "./dist/index.d.ts",
34
+ "default": "./dist/index.js"
29
35
  }
30
36
  },
31
37
  "type": "module",
@@ -35,14 +41,14 @@
35
41
  "dist/"
36
42
  ],
37
43
  "dependencies": {
38
- "@plumeria/headlessui": "^16.3.0"
44
+ "@plumeria/headlessui": "^16.4.0"
39
45
  },
40
46
  "devDependencies": {
41
47
  "@types/react": "^19.2.17",
42
48
  "@types/react-dom": "^19.2.3",
43
49
  "esbuild": "^0.28.0",
44
- "@plumeria/core": "^16.3.0",
45
- "@plumeria/unplugin": "^16.3.0"
50
+ "@plumeria/core": "^16.4.0",
51
+ "@plumeria/unplugin": "^16.4.0"
46
52
  },
47
53
  "publishConfig": {
48
54
  "access": "public"