@runic-artifex/react

Version 0.23.0. Read from the published package.

@runic-artifex/react

appearance re-export
export { appearance } from '@runic-artifex/views'

Re-exported from appearance.

Appearance re-export
export { Appearance } from '@runic-artifex/views'

Re-exported from Appearance.

AppearanceColorScheme re-export
export { AppearanceColorScheme } from '@runic-artifex/views'

Re-exported from AppearanceColorScheme.

AppearanceContrast re-export
export { AppearanceContrast } from '@runic-artifex/views'

Re-exported from AppearanceContrast.

AppearanceSystemColors re-export
export { AppearanceSystemColors } from '@runic-artifex/views'

Re-exported from AppearanceSystemColors.

BlobRef re-export
export { BlobRef } from '@runic-artifex/views'

Re-exported from BlobRef.

BridgeConnectionHandle interface
BridgeConnectionOptions re-export
export { BridgeConnectionOptions } from '@runic-artifex/views'

Re-exported from BridgeConnectionOptions.

BridgeConnectionState re-export
export { BridgeConnectionState } from '@runic-artifex/views'

Re-exported from BridgeConnectionState.

BridgeField re-export
export { BridgeField } from '@runic-artifex/views'

Re-exported from BridgeField.

BridgeFieldConstraints re-export
export { BridgeFieldConstraints } from '@runic-artifex/views'

Re-exported from BridgeFieldConstraints.

BridgeFieldKind re-export
export { BridgeFieldKind } from '@runic-artifex/views'

Re-exported from BridgeFieldKind.

CollectionViewportHandle interface
CommandHandle interface
commitAllFields re-export
export { commitAllFields } from '@runic-artifex/views'

Re-exported from commitAllFields.

configureFieldErrorText re-export
export { configureFieldErrorText } from '@runic-artifex/views'

Re-exported from configureFieldErrorText.

configureTranslatedText re-export
export { configureTranslatedText } from '@runic-artifex/views'

Re-exported from configureTranslatedText.

createRunicInstance re-export
export { createRunicInstance } from '@runic-artifex/views'

Re-exported from createRunicInstance.

DocumentLocaleOptions re-export
export { DocumentLocaleOptions } from '@runic-artifex/views'

Re-exported from DocumentLocaleOptions.

FieldBaseline re-export
export { FieldBaseline } from '@runic-artifex/views'

Re-exported from FieldBaseline.

FieldCheckboxProps interface

What useField spreads on a checkbox (<input type="checkbox">): a boolean field.

FieldDefinition re-export
export { FieldDefinition } from '@runic-artifex/views'

Re-exported from FieldDefinition.

FieldError re-export
export { FieldError } from '@runic-artifex/views'

Re-exported from FieldError.

FieldErrorArguments re-export
export { FieldErrorArguments } from '@runic-artifex/views'

Re-exported from FieldErrorArguments.

FieldErrorKind re-export
export { FieldErrorKind } from '@runic-artifex/views'

Re-exported from FieldErrorKind.

FieldErrorReason re-export
export { FieldErrorReason } from '@runic-artifex/views'

Re-exported from FieldErrorReason.

fieldErrorText re-export
export { fieldErrorText } from '@runic-artifex/views'

Re-exported from fieldErrorText.

FieldErrorText re-export
export { FieldErrorText } from '@runic-artifex/views'

Re-exported from FieldErrorText.

FieldHandle type alias

A field bound by useField: what it shows, the props of its element and its actions.

FieldInputProps type alias

The props of a field's element: FieldCheckboxProps for a boolean field, otherwise FieldTextProps.

FieldOptions re-export
export { FieldOptions } from '@runic-artifex/views'

Re-exported from FieldOptions.

FieldState re-export
export { FieldState } from '@runic-artifex/views'

Re-exported from FieldState.

FieldTextProps interface

What useField spreads on an <input>, <textarea> or <select> of any field but a boolean one: the field's text, written through inputText (so - and 1. survive typing into a number field), and IME composition.

FormFieldHandle type alias

A field as useForm reads it: a useField handle.

FormHandle type alias

A form bound by useForm: its state in this render and its actions, which are the same on every render.

FormState re-export
export { FormState } from '@runic-artifex/views'

Re-exported from FormState.

FormSubmitOptions re-export
export { FormSubmitOptions } from '@runic-artifex/views'

Re-exported from FormSubmitOptions.

FormSubmitResult re-export
export { FormSubmitResult } from '@runic-artifex/views'

Re-exported from FormSubmitResult.

HostAppearance re-export
export { HostAppearance } from '@runic-artifex/views'

Re-exported from HostAppearance.

installBackNavigation re-export
export { installBackNavigation } from '@runic-artifex/views'

Re-exported from installBackNavigation.

installNavigationPath re-export
export { installNavigationPath } from '@runic-artifex/views'

Re-exported from installNavigationPath.

LatestOperationHandle interface
MenuBarEntry re-export
export { MenuBarEntry } from '@runic-artifex/views'

Re-exported from MenuBarEntry.

MenuBarHandle interface
MenuBarInvokeResult re-export
export { MenuBarInvokeResult } from '@runic-artifex/views'

Re-exported from MenuBarInvokeResult.

MenuBarItem re-export
export { MenuBarItem } from '@runic-artifex/views'

Re-exported from MenuBarItem.

MenuBarMenu re-export
export { MenuBarMenu } from '@runic-artifex/views'

Re-exported from MenuBarMenu.

MenuBarRequest re-export
export { MenuBarRequest } from '@runic-artifex/views'

Re-exported from MenuBarRequest.

MenuBarSeparator re-export
export { MenuBarSeparator } from '@runic-artifex/views'

Re-exported from MenuBarSeparator.

MenuBarState re-export
export { MenuBarState } from '@runic-artifex/views'

Re-exported from MenuBarState.

navigateBack re-export
export { navigateBack } from '@runic-artifex/views'

Re-exported from navigateBack.

NavigationPathChange re-export
export { NavigationPathChange } from '@runic-artifex/views'

Re-exported from NavigationPathChange.

NavigationPathOptions re-export
export { NavigationPathOptions } from '@runic-artifex/views'

Re-exported from NavigationPathOptions.

NavigationReply re-export
export { NavigationReply } from '@runic-artifex/views'

Re-exported from NavigationReply.

onAppearance re-export
export { onAppearance } from '@runic-artifex/views'

Re-exported from onAppearance.

onBridgeConnection re-export
export { onBridgeConnection } from '@runic-artifex/views'

Re-exported from onBridgeConnection.

onNavigationPath re-export
export { onNavigationPath } from '@runic-artifex/views'

Re-exported from onNavigationPath.

openNavigationPath re-export
export { openNavigationPath } from '@runic-artifex/views'

Re-exported from openNavigationPath.

OperationHandle interface
pageInstance re-export
export { pageInstance } from '@runic-artifex/views'

Re-exported from pageInstance.

QueryCollectionHandle interface
RegionCollection re-export
export { RegionCollection } from '@runic-artifex/views'

Re-exported from RegionCollection.

regionEntries re-export
export { regionEntries } from '@runic-artifex/views'

Re-exported from regionEntries.

RegionEntry re-export
export { RegionEntry } from '@runic-artifex/views'

Re-exported from RegionEntry.

RegionOutcome re-export
export { RegionOutcome } from '@runic-artifex/views'

Re-exported from RegionOutcome.

RegionOutlets function

Renders a ViewOutlet for the regions of a region collection, each in a <div data-region-key> keyed by the region's key.

RegionOutletsMode type alias

How RegionOutlets renders the regions of a collection.

RegionOutletsProps interface
RegionPanelAttributes type alias

Attributes that RegionOutlets merges onto a region's wrapper, such as id, role and aria-labelledby.

RegionSlot re-export
export { RegionSlot } from '@runic-artifex/views'

Re-exported from RegionSlot.

resolveText re-export
export { resolveText } from '@runic-artifex/views'

Re-exported from resolveText.

retrySuspenseView function

Forgets a failed useSuspenseView connection, so the next render connects again.

RunicBlob re-export
export { RunicBlob } from '@runic-artifex/views'

Re-exported from RunicBlob.

RunicInstance re-export
export { RunicInstance } from '@runic-artifex/views'

Re-exported from RunicInstance.

RunicInstanceOptions re-export
export { RunicInstanceOptions } from '@runic-artifex/views'

Re-exported from RunicInstanceOptions.

RunicInstanceProvider function

Makes instance the Runic instance of its subtree: useView, useField, useText, useBridgeConnection, useAppearance and the other hooks below it connect and read through it instead of the page instance.

RunicInstanceProviderProps interface
selectedRegion re-export
export { selectedRegion } from '@runic-artifex/views'

Re-exported from selectedRegion.

SuspenseViewHandle interface
SuspenseViewOptions interface
syncDocumentLocale re-export
export { syncDocumentLocale } from '@runic-artifex/views'

Re-exported from syncDocumentLocale.

textDirection re-export
export { textDirection } from '@runic-artifex/views'

Re-exported from textDirection.

TextFieldHandle interface
TextFieldView interface

The View a text field binds to: a useView handle, or any state and client.

TextReference re-export
export { TextReference } from '@runic-artifex/views'

Re-exported from TextReference.

TextTranslations re-export
export { TextTranslations } from '@runic-artifex/views'

Re-exported from TextTranslations.

upload re-export
export { upload } from '@runic-artifex/views'

Re-exported from upload.

UploadOptions re-export
export { UploadOptions } from '@runic-artifex/views'

Re-exported from UploadOptions.

UploadProgress re-export
export { UploadProgress } from '@runic-artifex/views'

Re-exported from UploadProgress.

useAppearance function

Renders the page's appearance (appearance from @runic-artifex/views): the colour scheme, contrast and reduced motion of the page's engine combined with the desktop's values that a Runic host pushes (appearance/1), which also carry the text scale, the accent colour and the forced-colours palette.

useBridgeConnection function

Renders the page's connection to its .NET host (connecting, connected, reconnecting, lost or closed) while the component is mounted, through onBridgeConnection.

useCollectionViewport function

Follows a fixed-row-height scroll container and returns the rows to request from .NET.

useCommand function

Tracks a command's pending state and failure for rendering.

useField function

Binds an element to one View member while the component is mounted, through createFieldController: pass a generated descriptor such as EditorFields.title, or any definition with read and write.

useForm function

One dirty, pending and valid state over the useField handles of a component, and a submit that writes every field before its command (createFormController in @runic-artifex/views):

UseFormOptions interface
useLatestOperation function

Admits only the newest selection, for reads such as "load the selected item": each run(intent) replaces the queued intent and cancels the active read, and the next read starts only after the previous one has finished (including waitForCompletion).

useMenuBar function

Follows the window's declared menu bar (Runic Desktop's DesktopMenuBarPresentation.Page) while the component is mounted, as headless state for the application's own menubar component, through createMenuBarController.

UseMenuBarOptions interface
useOperation function

Tracks Start admission, pending work, cancellation and terminal feedback of a generated start<Command>() operation for rendering.

useQueryCollection function

Follows a scroll container for a query collection (client.queries.{name}): it loads the rows the container shows from .NET, with placeholders until they arrive, and lays them out with variable heights.

useRunicInstance function

The Runic instance of the calling component: that of the nearest RunicInstanceProvider, or the default instance (defaultInstance()): the page instance, or in a component bundle its element's.

useSuspenseView function

Suspends the component until a generated View reference connects, then renders its state.

useText function

Renders a text reference that a ViewModel produced, such as a status line or a validation message's text, in the window's language (resolveText), and renders again when the language changes.

useTextField function

Binds a controlled text input to one member of a View while the component is mounted, through createTextFieldController.

UseTextFieldOptions interface
useTextLocale function

Renders the locale that text is shown in (textLocale: the page's Translations locale, which follows the window's locale), and renders again when it changes.

useView function

Connects a generated View reference for the lifetime of the component and renders its state through useSyncExternalStore.

UseViewOptions interface
useViewState function

Renders one selected part of a View's state and re-renders only when that part changes, by isEqual (Object.is by default), like useSyncExternalStoreWithSelector.

useWindowLocale function

Renders the window's locale that the application set (IRunicWindowLocale in .NET), or null while it sets none, for example to set lang on an element.

ViewHandle interface
ViewOutlet function

Renders the registered component for a generated View reference and passes the reference as its page prop.

ViewOutletProps interface
ViewRegistry type alias

A build-known map checks each generated reference kind against its component's page prop.

windowLocale re-export
export { windowLocale } from '@runic-artifex/views'

Re-exported from windowLocale.

@runic-artifex/react/experimental

HostedRegionSizing re-export
export { HostedRegionSizing } from '@runic-artifex/views'

Re-exported from HostedRegionSizing.

HostedRegionState re-export
export { HostedRegionState } from '@runic-artifex/views'

Re-exported from HostedRegionState.

RunicHostedRegion function

A region where the host application shows a hosted guest's Window (<runic-hosted-region>), in a frame the page never gets a reference to:

RunicHostedRegionElement re-export
export { RunicHostedRegionElement } from '@runic-artifex/views'

Re-exported from RunicHostedRegionElement.

RunicHostedRegionProps interface

Props of RunicHostedRegion.