UNPKG

@kui-shell/plugin-client-common

Version:

Kui plugin that offers stylesheets

70 lines 4.41 kB
/* * Copyright 2020 The Kubernetes Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import React from 'react'; // default client export { default as Kui } from './components/Client/Kui'; // Client components // export { default as InputStripe } from './components/Client/InputStripe' export { default as TabContainer } from './components/Client/TabContainer'; export { default as TabContent } from './components/Client/TabContent'; export { default as TabModel } from './components/Client/TabModel'; export { default as StatusStripe } from './components/Client/StatusStripe'; export { default as CurrentWorkingDirectory } from './components/Client/StatusStripe/CurrentWorkingDirectory'; export { default as GitHubIcon } from './components/Client/StatusStripe/GitHubIcon'; export { default as MadeWithKui } from './components/Client/StatusStripe/MadeWithKui'; export { default as SpaceFiller } from './components/Client/StatusStripe/SpaceFiller'; export { default as MeterWidgets } from './components/Client/StatusStripe/MeterWidgets'; export { default as ContextWidgets } from './components/Client/StatusStripe/ContextWidgets'; export { default as TextWithIconWidget } from './components/Client/StatusStripe/TextWithIconWidget'; export { default as Settings } from './components/Client/StatusStripe/Settings'; export const TagWidget = React.lazy(() => import('./components/Client/StatusStripe/TagWidget')); export { default as DropdownWidget } from './components/Client/StatusStripe/DropdownWidget'; export { default as KuiContext } from './components/Client/context'; // Content components export const Ansi = React.lazy(() => import('./components/Content/Scalar/Ansi')); export { default as Loading } from './components/spi/Loading'; export const Markdown = React.lazy(() => import('./components/Content/Markdown')); export const Scalar = React.lazy(() => import('./components/Content/Scalar')); export { default as HTMLDom } from './components/Content/Scalar/HTMLDom'; // sidecar components export const TopNavSidecar = React.lazy(() => import('./components/Views/Sidecar/TopNavSidecarV2')); export const LeftNavSidecar = React.lazy(() => import('./components/Views/Sidecar/LeftNavSidecarV2')); // Commentary edit channels export { onCommentaryEdit, offCommentaryEdit } from './components/Content/Commentary'; // SPI export const Alert = React.lazy(() => import('./components/spi/Alert')); export const Button = React.lazy(() => import('./components/spi/Button')); export const Card = React.lazy(() => import('./components/spi/Card')); export const CardResponse = React.lazy(() => import('./components/Content/Commentary').then(_ => ({ default: _.ReactCommentary }))); export const Popover = React.lazy(() => import('./components/spi/Popover')); export const Select = React.lazy(() => import('./components/spi/Select')); export const Tag = React.lazy(() => import('./components/spi/Tag')); export const Icons = React.lazy(() => import('./components/spi/Icons')); export const DropDown = React.lazy(() => import('./components/spi/DropDown')); export { default as Tooltip } from './components/spi/Tooltip'; // Input components export { InputProvider } from './components/Views/Terminal/Block/Input'; export { default as defaultOnKeyDown } from './components/Views/Terminal/Block/OnKeyDown'; export { default as defaultOnKeyPress } from './components/Views/Terminal/Block/OnKeyPress'; export { onKeyUp as defaultOnKeyUp } from './components/Views/Terminal/Block/ActiveISearch'; export { default as FancyPipeline } from './components/Views/Terminal/Block/FancyPipeline'; export { default as SplitInjector } from './components/Views/Terminal/SplitInjector'; export function inDebugMode() { return ((typeof __KUI_RUNNING_KUI_TEST !== 'undefined' && __KUI_RUNNING_KUI_TEST) || process.env.RUNNING_KUI_TEST || process.env.RUNNING_SHELL_TEST); } //# sourceMappingURL=index.js.map