Salta al contenuto principale
Versione: Successivo

@verdaccio/ui-components

Namespaces

Enumerations

Classes

Component Functions

Provider Functions

HOC Functions

Hooks Functions

Type Aliases

Dispatch

Ƭ Dispatch: RematchDispatch<RootModel>

Defined in

packages/ui-components/src/store/store.ts:14


FontWeight

Ƭ FontWeight: keyof typeof fontWeight

Defined in

packages/ui-components/src/Theme/theme.ts:74


LanguageItem

Ƭ LanguageItem: Object

Type declaration

NameType
iconany
lngstring
menuKeystring

Defined in

packages/ui-components/src/providers/TranslatorProvider/TranslatorProvider.tsx:13


LoginBody

Ƭ LoginBody: { error?: LoginError } & LoginResponse

Defined in

packages/ui-components/src/store/models/login.ts:25


LoginError

Ƭ LoginError: Object

Type declaration

NameType
descriptionstring
typestring

Defined in

packages/ui-components/src/store/models/login.ts:15


LoginResponse

Ƭ LoginResponse: Object

Type declaration

NameType
tokenstring | null
usernamestring | null

Defined in

packages/ui-components/src/store/models/login.ts:20


RootState

Ƭ RootState: RematchRootState<RootModel, FullModel>

Defined in

packages/ui-components/src/store/store.ts:15


Theme

Ƭ Theme: MuiTheme & CustomTheme

Defined in

packages/ui-components/src/Theme/theme.ts:101

Variables

Search: ComponentClass<Pick<RouteComponentProps<{}, StaticContext, LocationState>, never>, any> & WithRouterStatics<FC<RouteComponentProps<{}, StaticContext, LocationState>>>

Defined in

packages/ui-components/src/components/Search/Search.tsx:164


api

api: API

Defined in

packages/ui-components/src/store/api.ts:80


store

Const store: RematchStore<RootModel, FullModel>

Defined in

packages/ui-components/src/store/store.ts:8

Component Functions

ActionBar

ActionBar(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


AppConfigurationProvider

AppConfigurationProvider(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.childrenReactElement<any, string | JSXElementConstructor<any>>-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Author

Author(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.packageMetaany-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


CopyClipboard

CopyClipboard(«destructured»): Element

Parameters

NameType
«destructured»Props

Returns

Element

Defined in

packages/ui-components/src/components/CopyClipboard/CopyToClipBoard.tsx:32


Dependencies

Dependencies(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.packageMetaany-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Deprecated

Deprecated(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Detail

Detail(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Developers

Developers(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Distribution

Distribution(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.packageMetaPackageMetaInterface-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Engines

Engines(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Footer(): Element

Returns

Element

Defined in

packages/ui-components/src/sections/Footer/Footer.tsx:18


Forbidden

Forbidden(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


FundButton

FundButton(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.packageMetaany-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Header(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


HeaderInfoDialog

HeaderInfoDialog(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Heading

Heading(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters

NameType
propsOmit<Props, "ref"> & RefAttributes<HTMLHeadingElement>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:636


Help

Help(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Home

Home(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Install

Install(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Keywords

Keywords(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.packageMetaPackageMetaInterface-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Label

Label(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Link(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters

NameType
propsOmit<any, "ref"> & RefAttributes<HTMLAnchorElement>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:636


LinkExternal

LinkExternal(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters

NameType
propsOmit<any, "ref"> & RefAttributes<HTMLAnchorElement>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:636


Loading

Loading(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


LoginDialog

LoginDialog(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Logo(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


MenuItem(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters

NameType
propsOmit<Props, "ref"> & RefAttributes<MenuItemRef>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:636


NotFound

NotFound(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Package

Package(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsPackageInterface-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


PackageList

PackageList(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


PersistenceSettingProvider

PersistenceSettingProvider(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.childrenReactElement<any, string | JSXElementConstructor<any>>-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Person

Person(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.packageNamestring-
props.personDeveloper-
props.versionstring-
props.withText?boolean-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


RawViewer

RawViewer(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Readme

Readme(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


SideBar(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


SideBarTitle

SideBarTitle(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


StyleBaseline

StyleBaseline(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


TextField

TextField(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters

NameType
propsObject

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:636


ThemeProvider

ThemeProvider(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.childrenany-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


UpLinks(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
props.packageMetaany-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


VersionLayout

VersionLayout(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsObject-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


Versions

Versions(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Parameters

NameTypeDescription
propsProps-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


copyToClipBoardUtility

copyToClipBoardUtility(str): (e: SyntheticEvent<HTMLElement, Event>) => void

Parameters

NameType
strstring

Returns

fn

▸ (e): void

Parameters
NameType
eSyntheticEvent<HTMLElement, Event>
Returns

void

Defined in

packages/ui-components/src/components/CopyClipboard/utils.ts:4


getCLIChangePassword

getCLIChangePassword(command, registryUrl): string

Parameters

NameType
commandstring
registryUrlstring

Returns

string

Defined in

packages/ui-components/src/utils/cli-utils.ts:36


getCLISBerryYamlRegistry

getCLISBerryYamlRegistry(scope, registryUrl): string

Parameters

NameType
scopeundefined | string
registryUrlstring

Returns

string

Defined in

packages/ui-components/src/utils/cli-utils.ts:40


getCLISetConfigRegistry

getCLISetConfigRegistry(command, scope, registryUrl): string

Parameters

NameType
commandstring
scopeundefined | string
registryUrlstring

Returns

string

Defined in

packages/ui-components/src/utils/cli-utils.ts:23


getCLISetRegistry

getCLISetRegistry(command, registryUrl): string

Parameters

NameType
commandstring
registryUrlstring

Returns

string

Defined in

packages/ui-components/src/utils/cli-utils.ts:32


getTheme

getTheme(themeMode, primaryColor): Theme

Parameters

NameType
themeMode"light" | "dark"
primaryColorstring

Returns

Theme

Defined in

packages/ui-components/src/Theme/theme.ts:103


isTokenExpire

isTokenExpire(token): boolean

Parameters

NameType
tokennull | string

Returns

boolean

Defined in

packages/ui-components/src/utils/token.ts:5


useConfig

useConfig(): ConfigProviderProps

Returns

ConfigProviderProps

Defined in

packages/ui-components/src/providers/AppConfigurationProvider/AppConfigurationProvider.tsx:75


useCustomTheme

useCustomTheme(): undefined | Props

Returns

undefined | Props

Defined in

packages/ui-components/src/Theme/ThemeProvider.tsx:42


useLanguage

useLanguage(): TranslatorProviderProps

Returns

TranslatorProviderProps

Defined in

packages/ui-components/src/providers/TranslatorProvider/TranslatorProvider.tsx:54


useVersion

useVersion(): Partial<DetailContextProps>

Returns

Partial<DetailContextProps>

Defined in

packages/ui-components/src/providers/VersionProvider/VersionProvider.tsx:95


Provider Functions

TranslatorProvider

TranslatorProvider(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Translator provider

Parameters

NameTypeDescription
propsObject-
props.childrenReactElement<any, string | JSXElementConstructor<any>>-
props.i18ni18n-
props.listLanguagesany-
props.onMount() => {}-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


VersionProvider

VersionProvider(props, deprecatedLegacyContext?): null | ReactElement<any, any>

Example

Once a component has been wrapped with VersionProvider, use the hook useVersion() to get an object with:

```jsx
function CustomComponent() {
const { packageMeta, packageName, packageVersion } = useVersion();
return <div />;
}

<Route path={Routes.PACKAGE}>
<VersionProvider>
<CustomComponent />
</VersionProvider>
</Route>;
```
On mount, the provider will fetch data from the store for specific package or version provided via router.

Parameters

NameTypeDescription
propsObject-
props.childrenany-
deprecatedLegacyContext?anyDeprecated See React Docs

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/ts5.0/index.d.ts:1115


HOC Functions

loadable

loadable(importCallback): (props: any) => Element

With the combination of a bundler, enable to code split a package.

Example

   const VersionPage = loadable(() => import(/'../pages/Version'));

Parameters

NameType
importCallbackany

Returns

fn

▸ (props): Element

Parameters
NameType
propsany
Returns

Element

Defined in

packages/ui-components/src/utils/loadable.tsx:13


Hooks Functions

useLocalStorage

useLocalStorage<V>(key, initialValue): any[]

Example

    const [isDarkModeStorage, setIsDarkMode] = useLocalStorage('darkMode', isDarkModeDefault);

based on https://usehooks.com/useLocalStorage/

Type parameters

Name
V

Parameters

NameType
keystring
initialValueV

Returns

any[]

Defined in

packages/ui-components/src/hooks/useLocalStorage.ts:13


useOnClickOutside

useOnClickOutside<R>(ref, handler): void

Example

based on https://usehooks.com/useOnClickOutside/

Type parameters

NameType
Rextends HTMLElement | HTMLDivElement | HTMLSpanElement | HTMLObjectElement | HTMLTimeElement | HTMLTitleElement | HTMLLinkElement | HTMLInputElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLButtonElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement

Parameters

NameType
refRefObject<R>
handler(event: MouseEvent | TouchEvent) => void

Returns

void

Defined in

packages/ui-components/src/hooks/useOnClickOutside.ts:9