@uniformdev/context-devtools 17.7.1-alpha.34 → 18.0.1-alpha.3

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/dist/index.d.ts CHANGED
@@ -3,11 +3,11 @@ import { VisitorData, OutputSeverity, DevToolsState, DevToolsActions, Context }
3
3
  import { ManifestV2 } from '@uniformdev/context/*';
4
4
  import { DimensionDisplayData, Quirk } from '@uniformdev/context/api';
5
5
 
6
- declare type FullDimensionData = DimensionDisplayData & {
6
+ type FullDimensionData = DimensionDisplayData & {
7
7
  cap: number;
8
8
  str: number;
9
9
  };
10
- declare type DimensionIndexData = Record<string, FullDimensionData>;
10
+ type DimensionIndexData = Record<string, FullDimensionData>;
11
11
  /**
12
12
  * Fetches dimension data in an indexed object from Uniform API
13
13
  * If incomplete data is sent, returns empty index.
@@ -18,12 +18,12 @@ declare function useDimensionIndex({ apiHost, apiKey, projectId }: DevToolsSetti
18
18
  index: DimensionIndexData;
19
19
  };
20
20
 
21
- declare type QuirkIndexHookType = {
21
+ type QuirkIndexHookType = {
22
22
  loading: boolean;
23
23
  error: Error | undefined;
24
24
  index: QuirksIndexData;
25
25
  };
26
- declare type QuirksIndexData = Record<string, Quirk & {
26
+ type QuirksIndexData = Record<string, Quirk & {
27
27
  value: string | undefined;
28
28
  }>;
29
29
  /**
@@ -32,12 +32,12 @@ declare type QuirksIndexData = Record<string, Quirk & {
32
32
  */
33
33
  declare function useQuirkIndex({ apiHost, apiKey, projectId }: DevToolsSettings, quirksData: VisitorData['quirks']): QuirkIndexHookType;
34
34
 
35
- declare type Override<T> = {
35
+ type Override<T> = {
36
36
  initial: T;
37
37
  override: T;
38
38
  };
39
39
  /** Settings for the DevTools. Stored **per-origin**. */
40
- declare type DevToolsSettings = {
40
+ type DevToolsSettings = {
41
41
  apiKey?: string;
42
42
  projectId?: string;
43
43
  apiHost?: string;
@@ -49,20 +49,20 @@ declare type DevToolsSettings = {
49
49
  scoreOverrides?: Record<string, Override<number>>;
50
50
  quirkOverrides?: Record<string, Override<string>>;
51
51
  };
52
- declare type ContextDevToolsProps = {
52
+ type ContextDevToolsProps = {
53
53
  state: DevToolsState;
54
54
  actions: DevToolsActions;
55
55
  settings: DevToolsSettings;
56
56
  saveSettings: (settings: DevToolsSettings) => void | Promise<void>;
57
57
  clearAllExtensionData: () => void | Promise<void>;
58
58
  };
59
- declare type ContextDevToolsRouteProps = ContextDevToolsProps & {
59
+ type ContextDevToolsRouteProps = ContextDevToolsProps & {
60
60
  dimensionIndex: ReturnType<typeof useDimensionIndex>;
61
61
  quirksIndex: ReturnType<typeof useQuirkIndex>;
62
62
  };
63
63
  declare function ContextDevTools(props: ContextDevToolsProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
64
64
 
65
- declare type EmbeddedContextDevToolsProps = {
65
+ type EmbeddedContextDevToolsProps = {
66
66
  /**
67
67
  * Pass a Context instance to connect to DevTools.
68
68
  * This is optional, and defaults to a context instance registered in `window`