Type aliases
EventKey
EventKey: string
FragAndEl
FragAndEl: { element: Element | null; fragment: ShadowRoot | null }
Type declaration
-
element: Element | null
-
fragment: ShadowRoot | null
GetNodeById
GetNodeById: (nodeId: NodeId) => Node | null
Type declaration
-
- (nodeId: NodeId): Node | null
-
Parameters
Returns Node | null
NodeHandle
NodeHandle: Node | ShadowRoot & { _NodeHandle: true }
Observe
Observe: (node: Node | null) => void
Type declaration
-
- (node: Node | null): void
PartialReconciliationUpdate
PartialReconciliationUpdate: Omit<ReconciliationUpdate, "nodeId" | "type">
PluginFactory
Plugin
Factory: (pluginConfig: PluginConfig) => (props: Props, container: Element | DocumentFragment) => void
Type declaration
-
- (pluginConfig: PluginConfig): (props: Props, container: Element | DocumentFragment) => void
-
Parameters
Returns (props: Props, container: Element | DocumentFragment) => void
-
- (props: Props, container: Element | DocumentFragment): void
-
Parameters
-
props: Props
-
container: Element | DocumentFragment
Returns void
QueueHandlerUpdate
QueueHandlerUpdate: (node: Node, handlerUpdate: ReconciliationHandlerUpdate) => void
Type declaration
-
- (node: Node, handlerUpdate: ReconciliationHandlerUpdate): void
-
Parameters
-
node: Node
-
handlerUpdate: ReconciliationHandlerUpdate
Returns void
Reconcile
Reconcile: (updates: Array<ReconciliationUpdate>) => Promise<void>
Type declaration
-
- (updates: Array<ReconciliationUpdate>): Promise<void>
-
Parameters
-
updates: Array<ReconciliationUpdate>
Returns Promise<void>
Variables
InputDeviceCapabilities
InputDeviceCapabilities: any
Request
Request
: { constructor
: any; prototype
: Request }
Type declaration
-
constructor: function
- new __type(input: RequestInfo, init?: RequestInit): Request
-
Parameters
-
input: RequestInfo
-
Optional init: RequestInit
-
URL
URL
: { constructor
: any; prototype
: URL; createObjectURL
: any; revokeObjectURL
: any }
Type declaration
-
constructor: function
- new __type(url: string, base?: string | URL): URL
-
Parameters
-
url: string
-
Optional base: string | URL
Returns URL
-
prototype: URL
-
createObjectURL: function
- createObjectURL(object: any): string
-
Parameters
Returns string
-
revokeObjectURL: function
- revokeObjectURL(url: string): void
-
Parameters
Returns void
Let allowedDomains
allowedDomains: Array<string> = []
customElements
customElements: CustomElementRegistry
Const globalEventHandlerQueue
globalEventHandlerQueue: WeakMap<Node, {}> = new WeakMap<Node,PartialReconciliationUpdate>()
Const hostComponentAttr
hostComponentAttr: string = `data-pluginsdotdev-host-component-${Math.floor(Math.random() * 10000)}`
Const hostComponentOldPropsAttr
hostComponentOldPropsAttr: string = `data-pluginsdotdev-host-component-old-props-${Math.floor(Math.random() * 10000)}`
Const hostComponentPropsAttr
hostComponentPropsAttr: string = `data-pluginsdotdev-host-component-props-${Math.floor(Math.random() * 10000)}`
Const ignoredAttrs
ignoredAttrs: Set<string> = new Set<string>([hostComponentAttr, nodeIdAttr, "is"])
Let nextId
nextId: number = 0
Const nodeIdAttr
nodeIdAttr: string = `data-pluginsdotdev-node-id-${Math.floor(Math.random() * 10000)}`
Const renderRootById
renderRootById: Map<number, ShadowRoot> = new Map<RenderRootId, ShadowRoot>()
sendBeacon
sendBeacon: sendBeacon
Functions
Const calculateChildIdx
- calculateChildIdx(node: Node): number
-
Parameters
Returns number
Const constructRenderRootIfNeeded
- constructRenderRootIfNeeded(rootId: RenderRootId, pluginBridge: PluginBridge): Element | ShadowRoot
-
Parameters
-
rootId: RenderRootId
-
pluginBridge: PluginBridge
Returns Element | ShadowRoot
Const countNodeWidth
- countNodeWidth(node: Node): number
-
Parameters
Returns number
Const disableExecFunctions
- disableExecFunctions(): void
Const disableNavigationFunctions
- disableNavigationFunctions(): void
Const ensureOpenShadowRoots
- ensureOpenShadowRoots(): void
Const getEventKey
- getEventKey(type: string, opts: EventOptions): EventKey
-
Parameters
-
type: string
-
opts: EventOptions
Const getEventProxyHandler
- getEventProxyHandler(getNodeById: GetNodeById): ProxyHandler
-
Parameters
Returns ProxyHandler
Const getHostComponent
- getHostComponent(el: HTMLElement): string | null
-
Parameters
Returns string | null
Const getHostComponentProps
- getHostComponentProps(el: Element): Record<string, any>
-
Parameters
Returns Record<string, any>
Const getNodeById
- getNodeById(nodeId: string): null | Element
-
Parameters
Returns null | Element
Const isCustomElement
- isCustomElement(localName: string): boolean
-
Parameters
Returns boolean
Const isIgnoredNodeType
- isIgnoredNodeType(nodeType: number): boolean
-
Parameters
Returns boolean
Const isSlotted
- isSlotted(node: Node): boolean
-
Parameters
Returns boolean
Const isStyleNode
- isStyleNode(node: Node | null): node is HTMLStyleElement
-
Parameters
Returns node is HTMLStyleElement
Const makeExposedComponents
Const mergePartialUpdates
Const mergeUpdates
- mergeUpdates(a: ReconciliationUpdate | null | undefined, b: ReconciliationUpdate | null | undefined): ReconciliationUpdate
-
Parameters
-
a: ReconciliationUpdate | null | undefined
-
b: ReconciliationUpdate | null | undefined
Returns ReconciliationUpdate
Const propUpdatesForHostComponent
- propUpdatesForHostComponent(el: Element): Array<ReconciliationPropUpdate>
-
Parameters
Returns Array<ReconciliationPropUpdate>
Const queueHandlerUpdate
- queueHandlerUpdate(node: Node, handlerUpdate: ReconciliationSetHandlerUpdate | ReconciliationDeleteHandlerUpdate): void
-
Parameters
-
node: Node
-
handlerUpdate: ReconciliationSetHandlerUpdate | ReconciliationDeleteHandlerUpdate
Returns void
Const queueRemovedUpdates
- queueRemovedUpdates(nodeIdContainer: NodeIdContainer, target: Node, child: Node): void
Const queueTreeUpdates
- queueTreeUpdates(observe: Observe, nodeIdContainer: NodeIdContainer, target: Node, child: Node, parentIdContext?: NodeId, baseChildIdx?: number, processingSlot?: boolean): void
-
Parameters
-
-
-
target: Node
-
child: Node
-
Default value parentIdContext: NodeId = ""
-
Default value baseChildIdx: number = 0
-
Default value processingSlot: boolean = false
Returns void
Const registerPlugin
-
Parameters
Returns Promise<void>
Const safeId
- safeId(id: string): string
-
Parameters
Returns string
Const setupPluginEnvironment
- setupPluginEnvironment(__namedParameters: { queueHandlerUpdate: (node: Node, handlerUpdate: ReconciliationHandlerUpdate) => void }): void
-
Parameters
-
__namedParameters: { queueHandlerUpdate: (node: Node, handlerUpdate: ReconciliationHandlerUpdate) => void }
-
queueHandlerUpdate: (node: Node, handlerUpdate: ReconciliationHandlerUpdate) => void
-
- (node: Node, handlerUpdate: ReconciliationHandlerUpdate): void
-
Parameters
-
node: Node
-
handlerUpdate: ReconciliationHandlerUpdate
Returns void
Returns void
Const shouldIgnoreNode
- shouldIgnoreNode(node: Node, isProcessingSlot: boolean): boolean
-
Parameters
-
node: Node
-
isProcessingSlot: boolean
Returns boolean
Const urlAllowed
- urlAllowed(allowedDomains: Array<string>, url: string): boolean
-
Parameters
-
allowedDomains: Array<string>
-
url: string
Returns boolean
Const wrapXMLHttpRequest
- wrapXMLHttpRequest(): Promise<void>
Object literals
Const eventCtorMap
eventCtorMap: object
AnimationEvent
Animation
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, animationEventInitDict?: AnimationEventInit): __type
-
Parameters
-
type: string
-
Optional animationEventInitDict: AnimationEventInit
-
ClipboardEvent
Clipboard
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: ClipboardEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: ClipboardEventInit
-
CompositionEvent
Composition
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: CompositionEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: CompositionEventInit
-
DragEvent
Drag
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: DragEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: DragEventInit
-
FocusEvent
Focus
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: FocusEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: FocusEventInit
-
InputEvent
Input
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: InputEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: InputEventInit
-
KeyboardEvent
Keyboard
Event: { constructor: any; DOM_KEY_LOCATION_LEFT: number; DOM_KEY_LOCATION_NUMPAD: number; DOM_KEY_LOCATION_RIGHT: number; DOM_KEY_LOCATION_STANDARD: number; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: KeyboardEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: KeyboardEventInit
-
Readonly DOM_KEY_LOCATION_LEFT: number
-
Readonly DOM_KEY_LOCATION_NUMPAD: number
-
Readonly DOM_KEY_LOCATION_RIGHT: number
-
Readonly DOM_KEY_LOCATION_STANDARD: number
-
MouseEvent
Mouse
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: MouseEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: MouseEventInit
-
PointerEvent
Pointer
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: PointerEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: PointerEventInit
-
TrackEvent
Track
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: TrackEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: TrackEventInit
-
TransitionEvent
Transition
Event: { constructor: any; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, transitionEventInitDict?: TransitionEventInit): __type
-
Parameters
-
type: string
-
Optional transitionEventInitDict: TransitionEventInit
-
UIEvent
UIEvent
: { constructor
: any; prototype
: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: UIEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: UIEventInit
-
WheelEvent
Wheel
Event: { constructor: any; DOM_DELTA_LINE: number; DOM_DELTA_PAGE: number; DOM_DELTA_PIXEL: number; prototype: __type }
Type declaration
-
constructor: function
- new __type(type: string, eventInitDict?: WheelEventInit): __type
-
Parameters
-
type: string
-
Optional eventInitDict: WheelEventInit
-
Readonly DOM_DELTA_LINE: number
-
Readonly DOM_DELTA_PAGE: number
-
Readonly DOM_DELTA_PIXEL: number
-
safeId generates an id that is safe for use by a plugin as a name or id attribute.