@sentinel-core/sentinel 1.0.18 → 1.0.20

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.
@@ -7,6 +7,10 @@ type DialogMeta = {
7
7
  md?: string;
8
8
  componentProps?: Record<string, any>;
9
9
  };
10
+ export type ReduxStore = {
11
+ getState: () => unknown;
12
+ subscribe: (listener: () => void) => () => void;
13
+ };
10
14
  type SentinelInteractionContextType = {
11
15
  activeId: string | null;
12
16
  activeRect: DOMRect | null;
@@ -16,6 +20,7 @@ type SentinelInteractionContextType = {
16
20
  setShowOutlines: (value: boolean) => void;
17
21
  highlightName: string;
18
22
  setHighlightName: (value: string) => void;
23
+ reduxStore: ReduxStore | undefined;
19
24
  registerHover: (id: string, rect: DOMRect) => void;
20
25
  unregisterHover: (id: string) => void;
21
26
  openDialog: (id: string, componentName?: string, md?: string, componentProps?: Record<string, any>, sourceFile?: string, renderCount?: number, propHistory?: Record<string, any>[]) => void;
@@ -25,8 +30,9 @@ type SentinelDialogContextType = {
25
30
  dialogMeta: DialogMeta;
26
31
  closeDialog: () => void;
27
32
  };
28
- export declare const SentinelProvider: ({ children, }: {
33
+ export declare const SentinelProvider: ({ children, store: reduxStore, }: {
29
34
  children: React.ReactNode;
35
+ store?: ReduxStore;
30
36
  }) => React.JSX.Element;
31
37
  export declare const useSentinelInteraction: () => SentinelInteractionContextType;
32
38
  export declare const useSentinelDialog: () => SentinelDialogContextType;
@@ -42,6 +48,7 @@ export declare const useSentinel: () => {
42
48
  setShowOutlines: (value: boolean) => void;
43
49
  highlightName: string;
44
50
  setHighlightName: (value: string) => void;
51
+ reduxStore: ReduxStore | undefined;
45
52
  registerHover: (id: string, rect: DOMRect) => void;
46
53
  unregisterHover: (id: string) => void;
47
54
  openDialog: (id: string, componentName?: string, md?: string, componentProps?: Record<string, any>, sourceFile?: string, renderCount?: number, propHistory?: Record<string, any>[]) => void;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export declare const JsonNode: ({ value, depth, collapseFromDepth, }: {
3
+ value: unknown;
4
+ depth?: number;
5
+ collapseFromDepth?: number;
6
+ }) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentinel-core/sentinel",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Runtime intelligence for your UI.",
5
5
  "author": "firatorhan",
6
6
  "private": false,