@upstash/react-redis-browser 0.2.13 → 0.2.14-rc.10

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.mts CHANGED
@@ -20,7 +20,8 @@ type RedisBrowserStorage = {
20
20
  set: (value: string) => void;
21
21
  get: () => string | null;
22
22
  };
23
- declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
23
+ type TabType = "keys" | "search" | "all";
24
+ declare const RedisBrowser: ({ url, token, hideTabs, tabType, storage, disableTelemetry, onFullScreenClick, theme, allowSearch, }: RedisCredentials & {
24
25
  /**
25
26
  * Whether to disable telemetry.
26
27
  *
@@ -34,6 +35,15 @@ declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry,
34
35
  */
35
36
  disableTelemetry?: boolean;
36
37
  hideTabs?: boolean;
38
+ /**
39
+ * Which tab(s) to show in the databrowser.
40
+ * - "keys": Only show the Keys tab
41
+ * - "search": Only show the Search tab
42
+ * - "all": Show both tabs with a segmented selector
43
+ *
44
+ * @default "all"
45
+ */
46
+ tabType?: TabType;
37
47
  /**
38
48
  * If defined, the databrowser will have a full screen button in the tab bar.
39
49
  * Clicking on the button will call this function.
@@ -66,6 +76,14 @@ declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry,
66
76
  * ```
67
77
  */
68
78
  theme?: DarkModeOption;
79
+ /**
80
+ * Whether to allow picking the "Search Index" type filter in keys search.
81
+ *
82
+ * This option is temporary
83
+ *
84
+ * @default true
85
+ */
86
+ allowSearch?: boolean;
69
87
  }) => react_jsx_runtime.JSX.Element;
70
88
 
71
89
  export { type DarkModeOption, RedisBrowser, type RedisBrowserStorage };
package/dist/index.d.ts CHANGED
@@ -20,7 +20,8 @@ type RedisBrowserStorage = {
20
20
  set: (value: string) => void;
21
21
  get: () => string | null;
22
22
  };
23
- declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
23
+ type TabType = "keys" | "search" | "all";
24
+ declare const RedisBrowser: ({ url, token, hideTabs, tabType, storage, disableTelemetry, onFullScreenClick, theme, allowSearch, }: RedisCredentials & {
24
25
  /**
25
26
  * Whether to disable telemetry.
26
27
  *
@@ -34,6 +35,15 @@ declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry,
34
35
  */
35
36
  disableTelemetry?: boolean;
36
37
  hideTabs?: boolean;
38
+ /**
39
+ * Which tab(s) to show in the databrowser.
40
+ * - "keys": Only show the Keys tab
41
+ * - "search": Only show the Search tab
42
+ * - "all": Show both tabs with a segmented selector
43
+ *
44
+ * @default "all"
45
+ */
46
+ tabType?: TabType;
37
47
  /**
38
48
  * If defined, the databrowser will have a full screen button in the tab bar.
39
49
  * Clicking on the button will call this function.
@@ -66,6 +76,14 @@ declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry,
66
76
  * ```
67
77
  */
68
78
  theme?: DarkModeOption;
79
+ /**
80
+ * Whether to allow picking the "Search Index" type filter in keys search.
81
+ *
82
+ * This option is temporary
83
+ *
84
+ * @default true
85
+ */
86
+ allowSearch?: boolean;
69
87
  }) => react_jsx_runtime.JSX.Element;
70
88
 
71
89
  export { type DarkModeOption, RedisBrowser, type RedisBrowserStorage };