@gravitee/graphene-core 3.36.0-feat-app-context-switcher.344fef8 → 3.37.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.
- package/USAGE_GUIDE.md +13 -57
- package/dist/__stories__/fixtures/index.d.ts +0 -1
- package/dist/__stories__/fixtures/index.d.ts.map +1 -1
- package/dist/base/Calendar/Calendar.d.ts +6 -0
- package/dist/base/Calendar/Calendar.d.ts.map +1 -1
- package/dist/base/Command/Command.d.ts +2 -3
- package/dist/base/Command/Command.d.ts.map +1 -1
- package/dist/base/FileUploadInput/FileUploadInput.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6266 -6734
- package/dist/lib/test-ids.d.ts +3 -0
- package/dist/lib/test-ids.d.ts.map +1 -0
- package/dist/styles/globals.css +1 -1
- package/package.json +1 -2
- package/dist/__stories__/fixtures/shell/app-context-switcher.fixture.d.ts +0 -20
- package/dist/__stories__/fixtures/shell/app-context-switcher.fixture.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/AppColumn.d.ts +0 -29
- package/dist/composed/AppContextSwitcher/AppColumn.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/AppContextSwitcher.d.ts +0 -22
- package/dist/composed/AppContextSwitcher/AppContextSwitcher.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/AppContextSwitcherTrigger.d.ts +0 -15
- package/dist/composed/AppContextSwitcher/AppContextSwitcherTrigger.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/AppRow.d.ts +0 -15
- package/dist/composed/AppContextSwitcher/AppRow.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/CurrentPageRow.d.ts +0 -16
- package/dist/composed/AppContextSwitcher/CurrentPageRow.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/EntranceRow.d.ts +0 -18
- package/dist/composed/AppContextSwitcher/EntranceRow.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/EnvironmentColumn.d.ts +0 -15
- package/dist/composed/AppContextSwitcher/EnvironmentColumn.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/EnvironmentRow.d.ts +0 -19
- package/dist/composed/AppContextSwitcher/EnvironmentRow.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/appContextSwitcher.types.d.ts +0 -62
- package/dist/composed/AppContextSwitcher/appContextSwitcher.types.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/environmentList.d.ts +0 -17
- package/dist/composed/AppContextSwitcher/environmentList.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/index.d.ts +0 -3
- package/dist/composed/AppContextSwitcher/index.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/panelNavigation.d.ts +0 -28
- package/dist/composed/AppContextSwitcher/panelNavigation.d.ts.map +0 -1
- package/dist/composed/AppContextSwitcher/use-app-context-switcher.d.ts +0 -45
- package/dist/composed/AppContextSwitcher/use-app-context-switcher.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/graphene-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Gravitee's Graphene design system: accessible React components, design tokens, icons, and shared ESLint/TypeScript configs. Built on shadcn/ui and Tailwind.",
|
|
6
6
|
"keywords": [
|
|
@@ -103,7 +103,6 @@
|
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"@fontsource/dm-sans": ">=5.0.0",
|
|
106
|
-
"@gravitee/graphene-core": "3.36.0-feat-app-context-switcher.344fef8",
|
|
107
106
|
"@monaco-editor/react": "^4.7.0",
|
|
108
107
|
"@tanstack/react-table": "^8.0.0",
|
|
109
108
|
"@testing-library/dom": ">=10.0.0",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EntranceDefinition, EnvironmentDefinition } from '../../../composed/AppContextSwitcher';
|
|
2
|
-
import { AppDefinition } from '../../../composed/AppSwitcher';
|
|
3
|
-
/** The Gamma console's apps, in the order of its catalog. */
|
|
4
|
-
export declare const gammaConsoleApps: AppDefinition[];
|
|
5
|
-
/** A Cloud account's environments, two of them pinned. */
|
|
6
|
-
export declare const cloudEnvironments: EnvironmentDefinition[];
|
|
7
|
-
/** More environments than the panel lists, so the search and "View all environments" take over. */
|
|
8
|
-
export declare const manyEnvironments: EnvironmentDefinition[];
|
|
9
|
-
/**
|
|
10
|
-
* A production and a staging environment per team, two of them pinned: a search can match more of them than the
|
|
11
|
-
* panel holds.
|
|
12
|
-
*/
|
|
13
|
-
export declare const teamEnvironments: EnvironmentDefinition[];
|
|
14
|
-
/** A self-hosted installation's environments. */
|
|
15
|
-
export declare const selfHostedEnvironments: EnvironmentDefinition[];
|
|
16
|
-
/** On Cloud, Account Management sits above the environments. */
|
|
17
|
-
export declare const accountManagementEntrance: EntranceDefinition;
|
|
18
|
-
/** Without Account Management, Home takes its place. */
|
|
19
|
-
export declare const homeEntrance: EntranceDefinition;
|
|
20
|
-
//# sourceMappingURL=app-context-switcher.fixture.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-context-switcher.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/shell/app-context-switcher.fixture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACrH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAalF,6DAA6D;AAC7D,eAAO,MAAM,gBAAgB,EAAE,aAAa,EA2C3C,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,iBAAiB,EAAE,qBAAqB,EAMpD,CAAC;AAEF,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,EASnD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,EA4BlD,CAAC;AAEH,iDAAiD;AACjD,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EAIzD,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,yBAAyB,EAAE,kBAKvC,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,YAAY,EAAE,kBAA0E,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { AppDefinition } from '../AppSwitcher';
|
|
3
|
-
interface AppColumnProps {
|
|
4
|
-
readonly ref?: Ref<HTMLDivElement>;
|
|
5
|
-
readonly apps: readonly AppDefinition[];
|
|
6
|
-
readonly activeAppKey: string;
|
|
7
|
-
/** The apps shown are the active environment's. */
|
|
8
|
-
readonly inActiveEnvironment: boolean;
|
|
9
|
-
/** Names the environment next to the environment column. Without it, the apps are tiles, as in `AppSwitcher`. */
|
|
10
|
-
readonly environmentLabel?: string;
|
|
11
|
-
/** While another environment than the active one is shown: the active app, whose page a row on top opens there. */
|
|
12
|
-
readonly currentPage?: {
|
|
13
|
-
readonly app: AppDefinition;
|
|
14
|
-
readonly href?: string;
|
|
15
|
-
readonly onSelect: () => void;
|
|
16
|
-
};
|
|
17
|
-
/** The URL of an app's row, which makes it a real link. */
|
|
18
|
-
readonly hrefOf?: (appKey: string) => string | undefined;
|
|
19
|
-
readonly onSelect: (key: string) => void;
|
|
20
|
-
/** The id of a part, derived from the consumer's test id. */
|
|
21
|
-
readonly partTestId: (part: string) => string | undefined;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The apps of the selected environment: a column next to the environments, or under them in a narrow panel, or tiles
|
|
25
|
-
* on their own.
|
|
26
|
-
*/
|
|
27
|
-
declare function AppColumn({ ref, apps, activeAppKey, inActiveEnvironment, environmentLabel, currentPage, hrefOf, onSelect, partTestId, }: AppColumnProps): import("react").JSX.Element;
|
|
28
|
-
export { AppColumn };
|
|
29
|
-
//# sourceMappingURL=AppColumn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppColumn.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/AppColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAKlF,UAAU,cAAc;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,aAAa,EAAE,CAAC;IACxC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,mDAAmD;IACnD,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC,iHAAiH;IACjH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,mHAAmH;IACnH,QAAQ,CAAC,WAAW,CAAC,EAAE;QAAE,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IAC9G,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,6DAA6D;IAC7D,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC3D;AAED;;;GAGG;AACH,iBAAS,SAAS,CAAC,EACjB,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,QAAQ,EACR,UAAU,GACX,EAAE,cAAc,+BAqChB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AppContextSwitcherProps } from './appContextSwitcher.types';
|
|
2
|
-
/**
|
|
3
|
-
* One control for the app and the environment. The entrance sits on top, the environments on the left with the pinned
|
|
4
|
-
* ones first, and the apps of the selected environment on the right. Picking an environment only shows its apps:
|
|
5
|
-
* nothing happens until an app or the entrance is picked. The apps shown always belong to a listed environment: a
|
|
6
|
-
* search that leaves the picked one out shows those of its first match. Away from the active environment, a row above
|
|
7
|
-
* the apps opens the current page there, where an app opens at its root. With a single environment, the column and
|
|
8
|
-
* the search go away and the apps are tiles. A narrow panel, in a small or zoomed window, stacks the apps under the
|
|
9
|
-
* environments and the tiles in a single column.
|
|
10
|
-
*
|
|
11
|
-
* A Radix menu would eat the search field's keystrokes with its typeahead, so this composes `Popover` and `Command`
|
|
12
|
-
* as `DataTableViewOptionsSearch` does. Up and Down move within a column, Right and Left move between the columns,
|
|
13
|
-
* Enter picks, Escape closes and returns the focus to the trigger. Enter or Right on an environment shows its apps
|
|
14
|
-
* and highlights what Enter opens next, where a click only shows them. The highlight wears a ring while the
|
|
15
|
-
* keyboard drives it, as `focus-visible` would, and screen readers follow it through `aria-activedescendant`.
|
|
16
|
-
*/
|
|
17
|
-
declare function AppContextSwitcher({ apps, environments, entrance, activeAppKey, activeEnvironmentKey, onSelect, toHref, onViewAllEnvironments, maxVisibleEnvironments, defaultOpen, onOpenChange, className, 'data-testid': testId, }: AppContextSwitcherProps): import("react").JSX.Element;
|
|
18
|
-
declare namespace AppContextSwitcher {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
21
|
-
export { AppContextSwitcher };
|
|
22
|
-
//# sourceMappingURL=AppContextSwitcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppContextSwitcher.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/AppContextSwitcher.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAyB1E;;;;;;;;;;;;;;GAcG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,MAAM,EACN,qBAAqB,EACrB,sBAA0B,EAC1B,WAAmB,EACnB,YAAY,EACZ,SAAS,EACT,aAAa,EAAE,MAAM,GACtB,EAAE,uBAAuB,+BAwQzB;kBAtRQ,kBAAkB;;;AA0R3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import { Button } from '../../base/Button';
|
|
3
|
-
interface AppContextSwitcherTriggerProps extends ComponentProps<typeof Button> {
|
|
4
|
-
readonly icon?: ReactNode;
|
|
5
|
-
readonly label: string;
|
|
6
|
-
/** Where the label applies: the environment, or the entrance's context. */
|
|
7
|
-
readonly context?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The header button: the active app and its environment, such as "API Management · Production". It never outgrows its
|
|
11
|
-
* container: a name too long for its room is cut, the full name in its tooltip.
|
|
12
|
-
*/
|
|
13
|
-
declare function AppContextSwitcherTrigger({ icon, label, context, className, ...props }: AppContextSwitcherTriggerProps): import("react").JSX.Element;
|
|
14
|
-
export { AppContextSwitcherTrigger };
|
|
15
|
-
//# sourceMappingURL=AppContextSwitcherTrigger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppContextSwitcherTrigger.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/AppContextSwitcherTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAI7D,UAAU,8BAA+B,SAAQ,cAAc,CAAC,OAAO,MAAM,CAAC;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,iBAAS,yBAAyB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,8BAA8B,+BA4B/G;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AppDefinition } from '../AppSwitcher';
|
|
2
|
-
interface AppRowProps {
|
|
3
|
-
readonly app: AppDefinition;
|
|
4
|
-
/** The page shown: the active app in the active environment. */
|
|
5
|
-
readonly current: boolean;
|
|
6
|
-
/** A tile with the app's description, as in `AppSwitcher`, instead of a single line. */
|
|
7
|
-
readonly tile: boolean;
|
|
8
|
-
/** Makes the row a real link, which the browser can open in a new tab. */
|
|
9
|
-
readonly href?: string;
|
|
10
|
-
readonly onSelect: (key: string) => void;
|
|
11
|
-
readonly 'data-testid'?: string;
|
|
12
|
-
}
|
|
13
|
-
declare function AppRow({ app, current, tile, href, onSelect, 'data-testid': testId }: AppRowProps): import("react").JSX.Element;
|
|
14
|
-
export { AppRow };
|
|
15
|
-
//# sourceMappingURL=AppRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppRow.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/AppRow.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAKlF,UAAU,WAAW;IACnB,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,wFAAwF;IACxF,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,iBAAS,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,WAAW,+BAmCzF;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AppDefinition } from '../AppSwitcher';
|
|
2
|
-
interface CurrentPageRowProps {
|
|
3
|
-
/** The active app: the page shown is one of its pages. */
|
|
4
|
-
readonly app: AppDefinition;
|
|
5
|
-
/** Makes the row a real link, which the browser can open in a new tab. */
|
|
6
|
-
readonly href?: string;
|
|
7
|
-
readonly onSelect: () => void;
|
|
8
|
-
readonly 'data-testid'?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Tops the apps of another environment: opens the page shown there, where the app's own row opens its root. The
|
|
12
|
-
* heading of the group names the environment, so the row does not repeat it.
|
|
13
|
-
*/
|
|
14
|
-
declare function CurrentPageRow({ app, href, onSelect, 'data-testid': testId }: CurrentPageRowProps): import("react").JSX.Element;
|
|
15
|
-
export { CurrentPageRow };
|
|
16
|
-
//# sourceMappingURL=CurrentPageRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CurrentPageRow.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/CurrentPageRow.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAMlF,UAAU,mBAAmB;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;IAC5B,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;GAGG;AACH,iBAAS,cAAc,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BAiB1F;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EntranceDefinition } from './appContextSwitcher.types';
|
|
2
|
-
interface EntranceRowProps {
|
|
3
|
-
readonly entrance: EntranceDefinition;
|
|
4
|
-
readonly current: boolean;
|
|
5
|
-
/** The apps below are tiles: the icon keeps a tile's width so that the labels line up. */
|
|
6
|
-
readonly overTiles: boolean;
|
|
7
|
-
/** Makes the row a real link, which the browser can open in a new tab. */
|
|
8
|
-
readonly href?: string;
|
|
9
|
-
readonly onSelect: () => void;
|
|
10
|
-
readonly 'data-testid'?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The row above the columns: the page that sits above the environments. Its context, the account, ends the row in
|
|
14
|
-
* muted text: everything the panel lists belongs to it, and it cannot be changed from here.
|
|
15
|
-
*/
|
|
16
|
-
declare function EntranceRow({ entrance, current, overTiles, href, onSelect, 'data-testid': testId }: EntranceRowProps): import("react").JSX.Element;
|
|
17
|
-
export { EntranceRow };
|
|
18
|
-
//# sourceMappingURL=EntranceRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EntranceRow.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/EntranceRow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,0FAA0F;IAC1F,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;GAGG;AACH,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BAkC7G;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EnvironmentDefinition } from './appContextSwitcher.types';
|
|
2
|
-
interface EnvironmentColumnProps {
|
|
3
|
-
readonly environments: readonly EnvironmentDefinition[];
|
|
4
|
-
readonly selectedKey: string;
|
|
5
|
-
readonly activeKey: string;
|
|
6
|
-
readonly showViewAll: boolean;
|
|
7
|
-
readonly onSelect: (key: string) => void;
|
|
8
|
-
readonly onViewAll: () => void;
|
|
9
|
-
/** The id of a part, derived from the consumer's test id. */
|
|
10
|
-
readonly partTestId: (part: string) => string | undefined;
|
|
11
|
-
}
|
|
12
|
-
/** The left column: the listed environments, then "View all environments" when some are left out. */
|
|
13
|
-
declare function EnvironmentColumn({ environments, selectedKey, activeKey, showViewAll, onSelect, onViewAll, partTestId, }: EnvironmentColumnProps): import("react").JSX.Element;
|
|
14
|
-
export { EnvironmentColumn };
|
|
15
|
-
//# sourceMappingURL=EnvironmentColumn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentColumn.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/EnvironmentColumn.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,YAAY,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACxD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,6DAA6D;IAC7D,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC3D;AAED,qGAAqG;AACrG,iBAAS,iBAAiB,CAAC,EACzB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,GACX,EAAE,sBAAsB,+BA6BxB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EnvironmentDefinition } from './appContextSwitcher.types';
|
|
2
|
-
interface EnvironmentRowProps {
|
|
3
|
-
readonly environment: EnvironmentDefinition;
|
|
4
|
-
/** Its apps are the ones shown. */
|
|
5
|
-
readonly selected: boolean;
|
|
6
|
-
/** The active environment. */
|
|
7
|
-
readonly current: boolean;
|
|
8
|
-
readonly onSelect: (key: string) => void;
|
|
9
|
-
readonly 'data-testid'?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* One environment. Picking it shows its apps, nothing more: a chevron points at them, darker on the environment whose
|
|
13
|
-
* apps are shown, which also keeps a fill. The check marks the active environment, a pin the pinned ones. The pin
|
|
14
|
-
* only shows: a button inside an option would be out of keyboard reach, so the host lets users pin elsewhere, such as
|
|
15
|
-
* on its environments page.
|
|
16
|
-
*/
|
|
17
|
-
declare function EnvironmentRow({ environment, selected, current, onSelect, 'data-testid': testId }: EnvironmentRowProps): import("react").JSX.Element;
|
|
18
|
-
export { EnvironmentRow };
|
|
19
|
-
//# sourceMappingURL=EnvironmentRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentRow.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/EnvironmentRow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,mCAAmC;IACnC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,8BAA8B;IAC9B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AASD;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BAoC/G;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { AppDefinition } from '../AppSwitcher';
|
|
3
|
-
interface EnvironmentDefinition {
|
|
4
|
-
readonly key: string;
|
|
5
|
-
readonly label: string;
|
|
6
|
-
/** Pinned environments come first, with a pin. The panel only shows pins: the host lets users pin elsewhere. */
|
|
7
|
-
readonly pinned?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The page above the environments, on its own row at the top of the panel: Account Management on Cloud, Home
|
|
11
|
-
* elsewhere.
|
|
12
|
-
*/
|
|
13
|
-
interface EntranceDefinition {
|
|
14
|
-
readonly key: string;
|
|
15
|
-
readonly label: string;
|
|
16
|
-
readonly icon: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* The account name: ends the entrance row in the panel, and takes the place of the environment in the trigger while
|
|
19
|
-
* the entrance is the active page. Without it, the trigger shows the active environment, as it does for an app.
|
|
20
|
-
*/
|
|
21
|
-
readonly contextLabel?: string;
|
|
22
|
-
}
|
|
23
|
-
type AppContextSwitcherSelection = {
|
|
24
|
-
readonly kind: 'app';
|
|
25
|
-
readonly appKey: string;
|
|
26
|
-
readonly environmentKey: string;
|
|
27
|
-
/** Picked from "Open this page": open the current page in that environment, not the app's root. */
|
|
28
|
-
readonly keepPage: boolean;
|
|
29
|
-
} | {
|
|
30
|
-
readonly kind: 'entrance';
|
|
31
|
-
/** The environment selected in the panel, for an entrance that depends on it, such as Home. */
|
|
32
|
-
readonly environmentKey: string;
|
|
33
|
-
};
|
|
34
|
-
interface AppContextSwitcherProps {
|
|
35
|
-
/** The apps of an environment. `pinned` and `href` are ignored. */
|
|
36
|
-
readonly apps: readonly AppDefinition[];
|
|
37
|
-
readonly environments: readonly EnvironmentDefinition[];
|
|
38
|
-
readonly entrance?: EntranceDefinition;
|
|
39
|
-
/** The active app, or the entrance key while the entrance is the active page. */
|
|
40
|
-
readonly activeAppKey: string;
|
|
41
|
-
readonly activeEnvironmentKey: string;
|
|
42
|
-
/** Called when an app or the entrance is picked, except for the page already shown. The panel closes either way. */
|
|
43
|
-
readonly onSelect: (selection: AppContextSwitcherSelection) => void;
|
|
44
|
-
/**
|
|
45
|
-
* The URL of a selection: makes the apps, "Open this page" and the entrance real links, so that they open in a new
|
|
46
|
-
* tab on cmd/ctrl-click, middle-click or cmd/ctrl/shift+Enter. A plain click or Enter still goes through `onSelect`.
|
|
47
|
-
*/
|
|
48
|
-
readonly toHref?: (selection: AppContextSwitcherSelection) => string | undefined;
|
|
49
|
-
/** Adds "View all environments" below the list when there are more environments than it shows. */
|
|
50
|
-
readonly onViewAllEnvironments?: () => void;
|
|
51
|
-
/** How many environments the list shows without a search, the active and selected ones aside. Defaults to 8. */
|
|
52
|
-
readonly maxVisibleEnvironments?: number;
|
|
53
|
-
/** Opens the panel on the first render. */
|
|
54
|
-
readonly defaultOpen?: boolean;
|
|
55
|
-
readonly onOpenChange?: (open: boolean) => void;
|
|
56
|
-
/** Applied to the trigger. */
|
|
57
|
-
readonly className?: string;
|
|
58
|
-
/** Lands on the trigger. The parts the panel renders derive their ids from it. */
|
|
59
|
-
readonly 'data-testid'?: string;
|
|
60
|
-
}
|
|
61
|
-
export type { AppContextSwitcherProps, AppContextSwitcherSelection, EntranceDefinition, EnvironmentDefinition };
|
|
62
|
-
//# sourceMappingURL=appContextSwitcher.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appContextSwitcher.types.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/appContextSwitcher.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAElF,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gHAAgH;IAChH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;GAGG;AACH,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,KAAK,2BAA2B,GAC5B;IACE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,mGAAmG;IACnG,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B,GACD;IACE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,+FAA+F;IAC/F,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC,CAAC;AAEN,UAAU,uBAAuB;IAC/B,mEAAmE;IACnE,QAAQ,CAAC,IAAI,EAAE,SAAS,aAAa,EAAE,CAAC;IACxC,QAAQ,CAAC,YAAY,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACxD,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IACvC,iFAAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,oHAAoH;IACpH,QAAQ,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,2BAA2B,KAAK,IAAI,CAAC;IACpE;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,2BAA2B,KAAK,MAAM,GAAG,SAAS,CAAC;IACjF,kGAAkG;IAClG,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5C,gHAAgH;IAChH,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IACzC,2CAA2C;IAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,8BAA8B;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,kFAAkF;IAClF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,YAAY,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { EnvironmentDefinition } from './appContextSwitcher.types';
|
|
2
|
-
interface EnvironmentListOptions {
|
|
3
|
-
readonly environments: readonly EnvironmentDefinition[];
|
|
4
|
-
readonly query: string;
|
|
5
|
-
readonly maxVisible: number;
|
|
6
|
-
/** Environments listed even past the limit: the active one and the one whose apps are shown. */
|
|
7
|
-
readonly keepVisible: readonly string[];
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The environments the panel lists. Without a query, the first `maxVisible` ones, plus the kept ones when they fall
|
|
11
|
-
* past the limit, so the user always sees where they are. With a query, every environment whose label contains it,
|
|
12
|
-
* whatever the limit.
|
|
13
|
-
*/
|
|
14
|
-
declare function listEnvironments({ environments, query, maxVisible, keepVisible, }: EnvironmentListOptions): EnvironmentDefinition[];
|
|
15
|
-
export { listEnvironments };
|
|
16
|
-
export type { EnvironmentListOptions };
|
|
17
|
-
//# sourceMappingURL=environmentList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environmentList.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/environmentList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,YAAY,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,gGAAgG;IAChG,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAOD;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,EACxB,YAAY,EACZ,KAAK,EACL,UAAU,EACV,WAAW,GACZ,EAAE,sBAAsB,GAAG,qBAAqB,EAAE,CAQlD;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare const ENTRANCE_ITEM = "entrance";
|
|
2
|
-
declare const VIEW_ALL_ITEM = "view-all";
|
|
3
|
-
declare const CURRENT_PAGE_ITEM = "current-page";
|
|
4
|
-
declare function environmentItem(key: string): string;
|
|
5
|
-
declare function appItem(key: string): string;
|
|
6
|
-
/** The panel's items by area, each in the order shown: the entrance row, the environment column, the apps column. */
|
|
7
|
-
interface PanelAreas {
|
|
8
|
-
readonly top: readonly string[];
|
|
9
|
-
readonly left: readonly string[];
|
|
10
|
-
readonly right: readonly string[];
|
|
11
|
-
}
|
|
12
|
-
/** Where a move to the other column lands. */
|
|
13
|
-
interface ColumnLanding {
|
|
14
|
-
readonly left?: string;
|
|
15
|
-
readonly right?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const NAVIGATION_KEYS: readonly ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
18
|
-
type NavigationKey = (typeof NAVIGATION_KEYS)[number];
|
|
19
|
-
declare function isNavigationKey(key: string): key is NavigationKey;
|
|
20
|
-
/**
|
|
21
|
-
* The item a navigation key moves the highlight to. Up and Down stay in the column and stop at its ends, Up from the
|
|
22
|
-
* top of a column reaches the entrance row. Right goes from the environments to the apps, Left comes back. Returns
|
|
23
|
-
* `undefined` when the key is not the panel's to handle, so the search field keeps it to move its caret.
|
|
24
|
-
*/
|
|
25
|
-
declare function nextItem(areas: PanelAreas, current: string, key: NavigationKey, landing: ColumnLanding): string | undefined;
|
|
26
|
-
export { appItem, CURRENT_PAGE_ITEM, ENTRANCE_ITEM, environmentItem, isNavigationKey, nextItem, VIEW_ALL_ITEM };
|
|
27
|
-
export type { ColumnLanding, NavigationKey, PanelAreas };
|
|
28
|
-
//# sourceMappingURL=panelNavigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"panelNavigation.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/panelNavigation.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,aAAa,CAAC;AACjC,QAAA,MAAM,aAAa,aAAa,CAAC;AACjC,QAAA,MAAM,iBAAiB,iBAAiB,CAAC;AAEzC,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,iBAAS,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpC;AAED,qHAAqH;AACrH,UAAU,UAAU;IAClB,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,8CAA8C;AAC9C,UAAU,aAAa;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,eAAe,8DAA+D,CAAC;AACrF,KAAK,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,aAAa,CAE1D;AAUD;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAoBpH;AAED,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;AAChH,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { AppDefinition } from '../AppSwitcher';
|
|
2
|
-
import { EntranceDefinition, EnvironmentDefinition } from './appContextSwitcher.types';
|
|
3
|
-
import { NavigationKey } from './panelNavigation';
|
|
4
|
-
interface UseAppContextSwitcherOptions {
|
|
5
|
-
readonly apps: readonly AppDefinition[];
|
|
6
|
-
readonly environments: readonly EnvironmentDefinition[];
|
|
7
|
-
readonly entrance?: EntranceDefinition;
|
|
8
|
-
readonly activeAppKey: string;
|
|
9
|
-
readonly activeEnvironmentKey: string;
|
|
10
|
-
readonly maxVisibleEnvironments: number;
|
|
11
|
-
readonly canViewAllEnvironments: boolean;
|
|
12
|
-
readonly defaultOpen: boolean;
|
|
13
|
-
readonly onOpenChange?: (open: boolean) => void;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* The switcher's state. The selected environment is the one whose apps are shown: the picked one, which starts as the
|
|
17
|
-
* active one at each opening and changes on a click, Enter or Right, without navigating. A search that leaves the
|
|
18
|
-
* picked one out selects its first match instead, so the apps shown always belong to a listed environment. Away from
|
|
19
|
-
* the active environment, a row above the apps opens the current page there. The highlight is cmdk's, held here so
|
|
20
|
-
* that the arrow keys can move it by column. cmdk still moves it on its own, to the first item after each search and
|
|
21
|
-
* to the item under the pointer, and those moves are always accepted: cmdk updates its internal value before it
|
|
22
|
-
* reports one.
|
|
23
|
-
*/
|
|
24
|
-
declare function useAppContextSwitcher({ apps, environments, entrance, activeAppKey, activeEnvironmentKey, maxVisibleEnvironments, canViewAllEnvironments, defaultOpen, onOpenChange, }: UseAppContextSwitcherOptions): {
|
|
25
|
-
open: boolean;
|
|
26
|
-
changeOpen: (next: boolean) => void;
|
|
27
|
-
query: string;
|
|
28
|
-
changeQuery: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
29
|
-
highlighted: string;
|
|
30
|
-
changeHighlighted: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
31
|
-
moveHighlight: (key: NavigationKey) => boolean;
|
|
32
|
-
selectedEnvironmentKey: string;
|
|
33
|
-
showEnvironment: (key: string) => void;
|
|
34
|
-
pickHighlightedEnvironment: () => boolean;
|
|
35
|
-
inActiveEnvironment: boolean;
|
|
36
|
-
showCurrentPage: boolean;
|
|
37
|
-
singleEnvironment: boolean;
|
|
38
|
-
listedEnvironments: EnvironmentDefinition[];
|
|
39
|
-
showEntrance: boolean;
|
|
40
|
-
showViewAll: boolean;
|
|
41
|
-
showApps: boolean;
|
|
42
|
-
};
|
|
43
|
-
export { useAppContextSwitcher };
|
|
44
|
-
export type { UseAppContextSwitcherOptions };
|
|
45
|
-
//# sourceMappingURL=use-app-context-switcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-context-switcher.d.ts","sourceRoot":"","sources":["../../../src/composed/AppContextSwitcher/use-app-context-switcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAE5F,OAAO,EAML,KAAK,aAAa,EAInB,MAAM,mBAAmB,CAAC;AAE3B,UAAU,4BAA4B;IACpC,QAAQ,CAAC,IAAI,EAAE,SAAS,aAAa,EAAE,CAAC;IACxC,QAAQ,CAAC,YAAY,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACxD,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACjD;AAED;;;;;;;;GAQG;AACH,iBAAS,qBAAqB,CAAC,EAC7B,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,WAAW,EACX,YAAY,GACb,EAAE,4BAA4B;;uBA0DH,OAAO;;;;;yBA2BL,aAAa,KAAG,OAAO;;2BAhBrB,MAAM;sCAMG,OAAO;;;;;;;;EAsC/C;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC;AACjC,YAAY,EAAE,4BAA4B,EAAE,CAAC"}
|