Skip to main content
Version: 6.x

@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:23


LoginError

Ƭ LoginError: Object

Type declaration

NameType
descriptionstring
typestring

Defined in

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


LoginResponse

Ƭ LoginResponse: Object

Type declaration

NameType
tokenstring | null
usernamestring | null

Defined in

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


RootState

Ƭ RootState: RematchRootState<RootModel, FullModel>

Defined in

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


Theme

Ƭ Theme: ReturnType<typeof getTheme>

Defined in

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

Variables

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

Defined in

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


api

api: API

Defined in

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


store

Const store: RematchStore<RootModel, FullModel>

Defined in

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

Component Functions

ActionBar

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


AppConfigurationProvider

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

Parameters

NameType
propsObject
props.childrenReactElement<any, string | JSXElementConstructor<any>>
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Author

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

Parameters

NameType
propsObject
props.packageMetaany
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


CopyClipboard

CopyClipboard(«destructured»): Element

Parameters

NameType
«destructured»Props

Returns

Element

Defined in

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


Dependencies

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

Parameters

NameType
propsObject
props.packageMetaany
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Deprecated

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Detail

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

Parameters

NameType
propsObject
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Developers

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Distribution

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

Parameters

NameType
propsObject
props.packageMetaPackageMetaInterface
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Engines

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Footer(): Element

Returns

Element

Defined in

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


FundButton

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

Parameters

NameType
propsObject
props.packageMetaany
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


HeaderInfoDialog

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Heading

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

NOTE: Exotic components are not callable.

Parameters

NameType
propsPick<Props, keyof Props> & RefAttributes<HTMLHeadingElement>

Returns

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

Defined in

node_modules/@types/react/index.d.ts:351


Help

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

Parameters

NameType
propsObject
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Home

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

Parameters

NameType
propsObject
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Install

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Label

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


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

NOTE: Exotic components are not callable.

Parameters

NameType
propsPick<any, string | number | symbol> & RefAttributes<HTMLAnchorElement>

Returns

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

Defined in

node_modules/@types/react/index.d.ts:351


Loading

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

Parameters

NameType
propsObject
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


LoginDialog

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


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

NOTE: Exotic components are not callable.

Parameters

NameType
propsPick<Props, keyof Props> & RefAttributes<MenuItemRef>

Returns

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

Defined in

node_modules/@types/react/index.d.ts:351


NotFound

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

Parameters

NameType
propsObject
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Package

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

Parameters

NameType
propsPackageInterface
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


PackageList

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


PersistenceSettingProvider

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

Parameters

NameType
propsObject
props.childrenReactElement<any, string | JSXElementConstructor<any>>
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


RawViewer

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Readme

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


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

Parameters

NameType
propsObject
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


SideBarTitle

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


StyleBaseline

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

Parameters

NameType
propsObject
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


TextField

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

NOTE: Exotic components are not callable.

Parameters

NameType
propsObject

Returns

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

Defined in

node_modules/@types/react/index.d.ts:351


ThemeProvider

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

Parameters

NameType
propsObject
props.childrenany
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


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

Parameters

NameType
propsObject
props.packageMetaany
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


VersionLayout

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

Parameters

NameType
propsObject
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


Versions

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

Parameters

NameType
propsProps
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


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


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:73


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:92


Provider Functions

TranslatorProvider

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

Translator provider

Parameters

NameType
propsObject
props.childrenReactElement<any, string | JSXElementConstructor<any>>
props.i18ni18n
props.listLanguagesany
props.onMount() => {}
context?any

Returns

null | ReactElement<any, any>

Defined in

node_modules/@types/react/index.d.ts:521


VersionProvider

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

Example

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

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

| Name | Type |
| :--------------- | :------- |
| `props` | `Object` |
| `props.children` | `any` |
| `context?` | `any` |

#### Returns

`null` \| `ReactElement`<`any`, `any`\>

#### Defined in

node_modules/@types/react/index.d.ts:521

---

## HOC Functions

### loadable

▸ **loadable**(`importCallback`): (`props`: `any`) => `Element`

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

**`Example`**

```jsx
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 | HTMLObjectElement | 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 | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | 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