Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/app-utils/src/components/ConnectionContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import { createContext } from 'react';
import type { dh } from '@deephaven/jsapi-types';

export const ConnectionContext = createContext<dh.IdeConnection | null>(null);
ConnectionContext.displayName = 'ConnectionContext';

export default ConnectionContext;
1 change: 1 addition & 0 deletions packages/app-utils/src/components/FontBootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import '@fontsource/fira-sans/700.css';
import '@fontsource/fira-sans/700-italic.css';

export const FontsLoadedContext = createContext<boolean>(false);
FontsLoadedContext.displayName = 'FontsLoadedContext';

export type FontBootstrapProps = {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getErrorMessage } from '@deephaven/utils';
export const ServerConfigContext = createContext<Map<string, string> | null>(
null
);
ServerConfigContext.displayName = 'ServerConfigContext';

export type ServerConfigBootstrapProps = {
/**
Expand Down
2 changes: 2 additions & 0 deletions packages/auth-plugins/src/UserContexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ export const UserOverrideContext = createContext<UserOverride>({});

export const UserPermissionsOverrideContext =
createContext<UserPermissionsOverride>({});
UserPermissionsOverrideContext.displayName = 'UserPermissionsOverrideContext';

export const UserContext = createContext<User | null>(null);
UserContext.displayName = 'UserContext';
1 change: 1 addition & 0 deletions packages/chart/src/ChartThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type ChartThemeContextValue = ChartTheme;
export const ChartThemeContext = createContext<ChartThemeContextValue | null>(
null
);
ChartThemeContext.displayName = 'ChartThemeContext';

export interface ChartThemeProviderProps {
children: ReactNode;
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/XComponentMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const XComponentMapContext = React.createContext(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
new Map<React.ComponentType<any>, React.ComponentType<any>>()
);
XComponentMapContext.displayName = 'XComponentMapContext';

export const XComponentMapProvider = XComponentMapContext.Provider;

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/theme/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface ThemeContextValue {
const log = Log.module('ThemeProvider');

export const ThemeContext = createContext<ThemeContextValue | null>(null);
ThemeContext.displayName = 'ThemeContext';

export interface ThemeProviderProps {
/*
Expand Down
1 change: 1 addition & 0 deletions packages/dashboard/src/layout/LayoutManagerContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import type GoldenLayout from '@deephaven/golden-layout';

export const LayoutManagerContext: React.Context<GoldenLayout | undefined> =
React.createContext<GoldenLayout | undefined>(undefined);
LayoutManagerContext.displayName = 'LayoutManagerContext';

export default LayoutManagerContext;
1 change: 1 addition & 0 deletions packages/dashboard/src/useDashboardId.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createContext, useContext } from 'react';

export const DashboardIdContext = createContext<string | null>(null);
DashboardIdContext.displayName = 'DashboardIdContext';

export function useDashboardId(): string {
const dashboardId = useContext(DashboardIdContext);
Expand Down
1 change: 1 addition & 0 deletions packages/dashboard/src/useFiber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const FiberContext = /* @__PURE__ */ wrapContext(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
/* @__PURE__ */ React.createContext<Fiber>(null!)
);
FiberContext.displayName = 'FiberContext';

/**
* A react-internal {@link Fiber} provider. This component binds React children to the React Fiber tree. Call its-fine hooks within this.
Expand Down
1 change: 1 addition & 0 deletions packages/dashboard/src/usePanelId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createContext, useContext } from 'react';
* Context to provide the golden layout panel ID.
*/
export const PanelIdContext = createContext<string | null>(null);
PanelIdContext.displayName = 'PanelIdContext';

/**
* Gets the current panel ID from the nearest context.
Expand Down
1 change: 1 addition & 0 deletions packages/iris-grid/src/IrisGridThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const IrisGridThemeContext = createContext<{
theme: IrisGridThemeContextValue | null;
density: 'compact' | 'regular' | 'spacious';
}>({ theme: null, density: 'regular' });
IrisGridThemeContext.displayName = 'IrisGridThemeContext';

export interface IrisGridThemeProviderProps {
children: ReactNode;
Expand Down
1 change: 1 addition & 0 deletions packages/jsapi-bootstrap/src/ApiBootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Log from '@deephaven/log';
const log = Log.module('@deephaven/jsapi-bootstrap.ApiBootstrap');

export const ApiContext = createContext<typeof DhType | null>(null);
ApiContext.displayName = 'ApiContext';

export type ApiBootstrapProps = {
/** URL of the API to load */
Expand Down
1 change: 1 addition & 0 deletions packages/jsapi-bootstrap/src/ClientBootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { dh } from '@deephaven/jsapi-types';
import useCreateClient from './useCreateClient';

export const ClientContext = createContext<dh.CoreClient | null>(null);
ClientContext.displayName = 'ClientContext';

export type ClientBootstrapProps = {
/** URL of the server to connect to */
Expand Down
1 change: 1 addition & 0 deletions packages/jsapi-bootstrap/src/useDeferredApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type DeferredApiFetcher = (
export const DeferredApiContext = createContext<
typeof DhType | DeferredApiFetcher | null
>(null);
DeferredApiContext.displayName = 'DeferredApiContext';

/**
* Retrieve the API for the current context, given the widget provided.
Expand Down
1 change: 1 addition & 0 deletions packages/jsapi-bootstrap/src/useObjectFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type ObjectFetchManager = {
/** Context for tracking an implementation of the ObjectFetchManager. */
export const ObjectFetchManagerContext =
createContext<ObjectFetchManager | null>(null);
ObjectFetchManagerContext.displayName = 'ObjectFetchManagerContext';

/**
* Retrieve a `fetch` function for the given variable descriptor.
Expand Down
1 change: 1 addition & 0 deletions packages/jsapi-bootstrap/src/useObjectFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export type ObjectFetcher = <T = unknown>(
) => Promise<T>;

export const ObjectFetcherContext = createContext<ObjectFetcher | null>(null);
ObjectFetcherContext.displayName = 'ObjectFetcherContext';

/**
* Gets a descriptor that only has the ID or name set, but not both.
Expand Down
1 change: 1 addition & 0 deletions packages/plugin/src/PersistentStateContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export type PersistentStateContextType = {
*/
export const PersistentStateContext =
createContext<PersistentStateContextType | null>(null);
PersistentStateContext.displayName = 'PersistentStateContext';

export type PersistentStateProviderProps = React.PropsWithChildren<{
/**
Expand Down
1 change: 1 addition & 0 deletions packages/plugin/src/PluginsContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ import { createContext } from 'react';
import { type PluginModuleMap } from './PluginTypes';

export const PluginsContext = createContext<PluginModuleMap | null>(null);
PluginsContext.displayName = 'PluginsContext';

export default PluginsContext;
Loading