chayns-api
Index
Classes
Enumerations
- AccessMode
- AppFlavor
- AppName
- BrowserName
- ColorMode
- DateType
- DesignSettingsUpdateBackgroundType
- DesignSettingsUpdateCoverTypes
- DesignSettingsUpdateGalleryAnimationTypes
- DesignSettingsUpdateSeasonTypes
- DesignSettingsUpdateTappViewModes
- DeviceOs
- DialogAnimation
- DialogIconType
- DialogInputType
- DialogSelectType
- DialogType
- Environment
- FileExplorerFilterType
- FileExplorerSortType
- FloatingButtonAnimation
- FloatingButtonPosition
- Font
- Gender
- IOSFeedbackVibration
- IconStyle
- IconType
- Language
- LoginState
- MediaType
- RuntimeEnvironment
- ScanQrCodeCameraTypes
- ScanQrCodeCodeType
- ScreenSize
- SharingApp
- SnapshotType
- TappEvent
- ToastType
- WeekDayType
- selectType
Event listener
- addAccessTokenChangeListener
- addAppleSafeAreaListener
- addGeoLocationListener
- addScrollListener
- addToolbarChangeListener
- addVisibilityChangeListener
- addWindowMetricsListener
- removeAccessTokenChangeListener
- removeAppleSafeAreaListener
- removeGeoLocationListener
- removeScrollListener
- removeToolbarChangeListener
- removeVisibilityChangeListener
- removeWindowMetricsListener
Hooks
- useAccessToken
- useChaynsApiId
- useCurrentPage
- useCustomCallbackFunction
- useCustomData
- useCustomFunction
- useDevice
- useDialogData
- useDialogState
- useEnvironment
- useFunctions
- useGeoLocation
- useGeoLocationListener
- useIsAdminMode
- useLanguage
- usePage
- usePages
- useParameters
- useSafeArea
- useSafeAreaListener
- useScrollListener
- useScrollOffsetBottom
- useScrollOffsetTop
- useScrollPosition
- useSite
- useUser
- useValues
- useWindowMetrics
- useWindowMetricsListener
User functions
Functions
- ChaynsHistoryLayerOverrideProvider
- ChaynsHistoryLayerProvider
- ChaynsHost
- ChaynsProvider
- SSRManifestPlugin
- TrustedDomainsPlugin
- WaitUntil
- addAnonymousAccount
- addAppStorageListener
- applyStateToTree
- bindChaynsApi
- clearAppStorage
- collectCssChunks
- createDialog
- customCallbackFunction
- diffIncomingState
- findChaynsHistoryLayerById
- getAccessToken
- getAppStorageItem
- getAvailableSharingServices
- getChaynsApi
- getChaynsHistoryActiveChain
- getChaynsHistoryLayer
- getClientDeviceInfo
- getCurrentChaynsHistoryLayer
- getCurrentPage
- getCustomCookie
- getCustomFunction
- getDevice
- getDeviceInfo
- getDialogData
- getEnvironment
- getGeoLocation
- getLanguage
- getOrInitRootChaynsHistoryLayer
- getPage
- getPages
- getParameters
- getSafeArea
- getScreenSize
- getScrollPosition
- getSite
- getStyleSettings
- getWindowMetrics
- hasChaynsHistoryState
- initModuleFederationSharing
- initRootChaynsHistoryLayer
- isApp
- isAppCallSupported
- isAppStorageAvailable
- isElectron
- isInChaynsHistoryActiveChain
- isTrustedDomainsError
- loadComponent
- loadModule
- login
- logout
- navigateBack
- openImage
- openMedia
- openUrl
- openVideo
- parseFromUrl
- popChaynsHistoryLayer
- projectToState
- projectToUrl
- pushChaynsHistoryLayer
- redirect
- refreshAccessToken
- refreshData
- removeAppStorageItem
- scrollByY
- scrollToY
- selectPage
- sendMessageToGroup
- sendMessageToPage
- sendMessageToUser
- setAdminMode
- setAppStorageItem
- setCustomCookie
- setDisplayTimeout
- setFloatingButton
- setHeight
- setOverlay
- setRefreshScrollEnabled
- setScanQrCode
- setTempDesignSettings
- setWaitCursor
- storageGetItem
- storageRemoveItem
- storageSetItem
- useChaynsHistoryActiveChild
- useChaynsHistoryBlock
- useChaynsHistoryChildLayer
- useChaynsHistoryEvent
- useChaynsHistoryHash
- useChaynsHistoryLayer
- useChaynsHistoryLayerContext
- useChaynsHistoryNavigate
- useChaynsHistoryParams
- useChaynsHistoryRoute
- useChaynsHistoryState
- useStyleSettings
- useValuesWithOverrides
- vibrate
- withCompatMode
- withHydrationBoundary
Interfaces
- AdminMode
- AppleSafeArea
- AvailableSharingServices
- BaseDialog
- ChaynsDesignSettings
- ChaynsFontInfo
- ChaynsHistoryLayer
- ChaynsHistoryLayerProviderProps
- ChaynsParagraphFormat
- DesignSettings
- DesignSettingsUpdateBackground
- DesignSettingsUpdateColorScheme
- DesignSettingsUpdateCover
- DesignSettingsUpdateGlobalSettings
- DesignSettingsUpdateGradient
- DesignSettingsUpdateItem
- DesignSettingsUpdateTapp
- DialogAlert
- DialogCloseRequestEvent
- DialogConfirm
- DialogDate
- DialogFileExplorer
- DialogFileSelect
- DialogIFrame
- DialogInput
- DialogModule
- DialogResultFile
- DialogSelect
- DialogSignature
- DialogToast
- DisplayTimeout
- FileExplorerFile
- FileExplorerFilterChange
- FileExplorerFolder
- FloatingButton
- GeoLocation
- HistoryBridgeFunctions
- HistoryInitialState
- IChaynsReact
- InitRootChaynsHistoryLayerOptions
- InitRootChaynsHistoryLayerResult
- InvokeCall
- LayoutDisposition
- LoginResult
- OpenImage
- OpenUrl
- OpenVideo
- Page
- RefreshData
- RefreshScrollEnabled
- ScrollListenerResult
- SelectInput
- ShowOverlay
- ToolbarChangeListenerResult
- UacGroup
- UseChaynsHistoryActiveChildResult
- UseChaynsHistoryBlockOptions
- UseChaynsHistoryRouteResult
- UserInfo
- Vibrate
- VisibilityChangeListenerResult
- WaitCursor
- WindowMetricsListenerResult
Namespaces
Type Aliases
- AccessToken
- AccessTokenResult
- AnonymousAccountResult
- ChaynsApiDevice
- ChaynsApiSite
- ChaynsApiUser
- ChaynsHistoryActionResult
- ChaynsHistoryBlockOptions
- ChaynsHistoryLayerEvent
- ChaynsHistoryLayerStateNode
- ChaynsHistoryNavigateOptions
- ChaynsHistoryNavigationCommitOptions
- ChaynsProviderProps
- ChaynsReactCustomFunctions
- ChaynsStyleSettings
- CleanupCallback
- DataChangeCallback
- DataChangeValue
- Dialog
- DialogButton
- DialogButtonType
- DialogCloseRequestReason
- DialogHookResult
- DialogResult
- DialogSelectListItemType
- FileExplorerItem
- HydrationContextValueType
- IntercomMessage
- Login
- ModuleContextValueType
- OpenImageItem
- OpenMedia
- OpenMediaItem
- PageMainGroupType
- ScanQrCodeRequest
- ScanQrCodeResult
- SelectPage
- TaskList
- UserInfoQuery
Variables
Type Aliases
AccessToken
Type declaration
optionalexternal?: boolean
AccessTokenResult
Type declaration
accessToken: string | undefined
AnonymousAccountResult
Type declaration
token: string
ChaynsApiDevice
Type declaration
optionalaccessToken?: string
optionalapp?: { appVersion: number; callVersion: number; flavor: AppFlavor; name: AppName; storePackageName?: string; version: number }
optionalbrowser?: { isWebPSupported: boolean; majorVersion: number; name?: IBrowser[name] | bot | null; version?: string | null }
isWebPSupported: boolean
majorVersion: number
optionalname?: IBrowser[name] | bot | null
optionalversion?: string | null
optionalengine?: IEngine
optionalimei?: string
isTouch: boolean
optionalos?: AIX | Amiga OS | Android OS | Arch | Bada | BeOS | BlackBerry | CentOS | Chromium OS | Contiki | Fedora | Firefox OS | FreeBSD | Debian | DragonFly | Gentoo | GNU | Haiku | Hurd | iOS | Joli | Linpus | Linux | Mac OS | Mageia | Mandriva | MeeGo | Minix | Mint | Morph OS | NetBSD | Nintendo | OpenBSD | OpenVMS | OS/2 | Palm | PCLinuxOS | Plan9 | Playstation | QNX | RedHat | RIM Tablet OS | RISC OS | Sailfish | Series40 | Slackware | Solaris | SUSE | Symbian | Tizen | Ubuntu | UNIX | VectorLinux | WebOS | Windows | Windows Phone | Windows Mobile | Zenwalk | null
optionalosVersion?: string
screenSize: ScreenSize
ChaynsApiSite
Type declaration
color: string
colorMode: ColorMode
domain: string
dynamicFontSize: boolean
font: { dynamicFontSize: boolean; headlineFont: Font; id: Font }
icon: string
id: string
layoutDisposition: LayoutDisposition
locationId: number
locationPersonId: string
optionaloriginSiteId?: string
title: string
url: string
urlHash: string
ChaynsApiUser
ChaynsHistoryActionResult
ChaynsHistoryBlockOptions
Type declaration
optionalisBeforeUnload?: boolean
optionalscope?: local | global
ChaynsHistoryLayerEvent
Type declaration
hash: string
layerId: string
params: Record<string, string>
segments: string[]
state: Record<string, unknown>
type: change | popstate
ChaynsHistoryLayerStateNode
Type declaration
[key string]: unknown
optionalactiveChild?: string
optionalchildState?: ChaynsHistoryLayerStateNode
ChaynsHistoryNavigateOptions
ChaynsHistoryNavigationCommitOptions
Type declaration
optionalisReplace?: boolean
ChaynsProviderProps
Type declaration
optionalchaynsApiId?: string
optionalchildren?: ReactNode
optionalcustomFunctions?: IChaynsReact[customFunctions]
optionaldata?: ChaynsReactValues
optionalfunctions?: ChaynsReactFunctions
optionalhistory?: { segmentCount?: number; url?: string }
Initial history configuration for the root layer. Ignored when
layeris provided explicitly.url: Current page URL — browser defaults towindow.location.pathname; for SSR pass the request URL (e.g.req.urlorrouter.asPath).segmentCount: Number of URL path segments this application claims. E.g.segmentCount: 2on/shop/products/detail→getLayer().getRoute()→['shop', 'products'].
optionalsegmentCount?: number
optionalurl?: string
optionalhistoryLayer?: ChaynsHistoryLayer
Explicit history layer to provide to the React subtree. When set this layer is used directly and no root layer is auto-initialised. Use this when the parent already owns a layer and wants to scope children to it.
optionalisHistoryEnabled?: boolean
When true, enables the history layer for this provider. Defaults to false for safety in federated module scenarios.
optionalisModule?: boolean
optionalrenderedByServer?: boolean
optionalsegmentCount?: number
ChaynsReactCustomFunctions
Type declaration
[key string]: (...args: any[]) => Promise<any>
ChaynsStyleSettings
Type declaration
designSettings: ChaynsDesignSettings
paragraphFormats: ChaynsParagraphFormat[]
CleanupCallback
Type declaration
Returns void
DataChangeCallback
Type declaration
Parameters
value: DataChangeValue
Returns void
DataChangeValue
Dialog
Type parameters
- T = object
DialogButton
Type declaration
text: string
type: DialogButtonType
DialogButtonType
DialogCloseRequestReason
DialogHookResult
Type declaration
addCloseRequestListener: (listener: (event: DialogCloseRequestEvent) => void) => () => void
Adds a listener which is invoked instead of closing the dialog when the user clicks the backdrop or presses escape. While at least one listener is registered the dialog will not be closed automatically. Listeners are invoked in reverse registration order (LIFO) until stopPropagation is called.
Parameters
listener: (event: DialogCloseRequestEvent) => void
Returns () => void
Returns void
addDataListener: ChaynsReactFunctions[addDialogHostEventListener]
isClosingRequested: boolean
sendData: ChaynsReactFunctions[dispatchEventToDialogHost]
setResult: ChaynsReactFunctions[setDialogResult]
DialogResult
Type declaration
close: (buttonType: DialogButtonType, data: any) => Promise<void>
Parameters
buttonType: DialogButtonType
data: any
Returns Promise<void>
open: () => Promise<any>
Returns Promise<any>
DialogSelectListItemType
Type parameters
- T: number | string = number | string
Type declaration
optionalclassName?: string
optionaldisabled?: boolean
optionalicon?: string
id: T
optionalisSelected?: boolean
name: string
optionalsubtitle?: string
optionalurl?: string
FileExplorerItem
HydrationContextValueType
Type parameters
- T
Type declaration
[key string]: StoreLikeValue<T>
IntercomMessage
Type declaration
optionalimages?: string[]
text: string
Login
ModuleContextValueType
OpenImageItem
Type declaration
optionaldescription?: string
optionalpreventCache?: boolean
optionaltitle?: string
url: string
OpenMedia
Type declaration
items: [OpenMediaItem, ...OpenMediaItem[]]
optionalstartIndex?: number
OpenMediaItem
Type declaration
optionaldescription?: string
mediaType: MediaType
optionalpreventCache?: boolean
optionaltitle?: string
url: string
PageMainGroupType
Type declaration
Administration: 2
Id: 1
User: 3
ScanQrCodeRequest
Type declaration
optionalcameraType?: ScanQrCodeCameraTypes
optionalcancel?: boolean
optionalccAnimation?: boolean
optionalcodeFormats?: 4 | 5
optionalcodeType?: ScanQrCodeCodeType
optionalcodeTypes?: ScanQrCodeCodeType[]
optionaldialogSubtitle?: string
optionaldialogTitle?: string
optionalenableCameraSwitch?: boolean
optionalenableFlashToggle?: boolean
optionalgeoLocation?: boolean
optionalshowInput?: boolean
optionaltimeout?: number
ScanQrCodeResult
Type declaration
optionalgeoLocation?: { latitude: number; longitude: number; speed: number }
latitude: number
longitude: number
speed: number
qrCode: string
resultType: number
status: number
SelectPage
Type declaration
optionalforceSelect?: boolean
optionalid?: number
optionalisAdminMode?: boolean
optionalparams?: {}
[key string]: string
optionalpath?: string
optionalposition?: number
optionalpreventHistory?: boolean
optionalshowName?: string
optionalsiteId?: string
TaskList
UserInfoQuery
Variables
constDefaultLoginDialogOptions
Type declaration
buttons: never[]
dialogInput: {}
hideDragHandle: boolean
minHeight: number
seamless: boolean
system: { module: string; scope: string; url: string }
module: string
scope: string
url: string
type: string
constDialogButtonType
Type declaration
readonlyCANCEL: -1
readonlyNEGATIVE: 0
readonlyOK: 1
HydrationContext
ModuleContext
constRuntimeEnviroment
constdevice
constenvironment
Type declaration
buildEnvironment: Environment
runtimeEnvironment: string | RuntimeEnvironment
constlanguage
constpages
constparameters
Type declaration
[key string | symbol]: string | string[]
the actual app version according to the app name