@withgus/debug 1.1.0 → 1.2.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.
@@ -1,6 +1,6 @@
1
- import type { HttpHandler } from 'msw';
2
- export type MockScenario = 'success' | 'error' | 'loading' | 'not_found' | 'forbidden' | 'network_error';
3
- export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
1
+ import type { HttpHandler } from "msw";
2
+ export type MockScenario = "success" | "error" | "loading" | "not_found" | "forbidden" | "network_error" | string;
3
+ export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4
4
  export interface MockOption {
5
5
  id: string;
6
6
  label: string;
@@ -8,7 +8,7 @@ interface PageEntry {
8
8
  interface DebugDrawerState {
9
9
  pages: Record<string, PageEntry>;
10
10
  currentPageId: string | null;
11
- expandedIds: Set<string>;
11
+ expandedIds: Record<string, boolean>;
12
12
  globalPreset: GlobalPreset;
13
13
  pendingChanges: boolean;
14
14
  mockEnabled: boolean;
@@ -25,6 +25,6 @@ interface DebugDrawerState {
25
25
  toggleMockEnabled: () => Promise<void>;
26
26
  }
27
27
  export declare const useDebugDrawerStore: import("zustand").UseBoundStore<import("zustand").StoreApi<DebugDrawerState>>;
28
- export declare const selectCurrentEndpoints: (s: DebugDrawerState) => EndpointConfig[];
28
+ export declare const selectCurrentEndpoints: (s: DebugDrawerState) => any[];
29
29
  export declare const selectFabStatus: (s: DebugDrawerState) => "ok" | "warn" | "error" | "off";
30
30
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withgus/debug",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "A debug drawer for switching MSW mock scenarios per page at runtime",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -11,6 +11,10 @@
11
11
  "require": "./dist/index.cjs",
12
12
  "types": "./dist/index.d.ts",
13
13
  "import": "./dist/index.js"
14
+ },
15
+ "./css": {
16
+ "require": "./dist/debug.css",
17
+ "import": "./dist/debug.css"
14
18
  }
15
19
  },
16
20
  "author": {