incajs 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,445 +0,0 @@
1
- import { A as CharacterDataMembers, B as IncaNode, C as Overflow, D as TagName, E as StyleProps, F as HTMLCollectionOf, G as NodeListOf, H as IncaTemplateElement, I as HtmlMembers, J as TextMembers, K as NodeMembers, L as IncaElement, M as DOMTokenList, N as EventHandler, O as Attr, P as EventHandlers, R as IncaFragment, S as NodeId, T as ScrollAlignment, U as IncaText, V as IncaParent, W as NamedNodeMap, _ as IncaPointerEvent, a as EventListener, b as IncaWindow, c as IncaCompositionEvent, d as IncaEventMap, f as IncaEventTarget, g as IncaMouseEvent, h as IncaKeyboardEvent, i as EventLike, j as DOMStringMap, k as CSSStyleDeclaration, l as IncaDocument, m as IncaInputEvent, n as AttributeValue, o as EventListenerObject, p as IncaFocusEvent, q as TextContentMember, r as CallbackId, s as EventListenerOrObject, t as window, u as IncaEvent, v as IncaUIEvent, w as Px, x as ListenerOptions, y as IncaWheelEvent, z as IncaInputElement } from "./window-gMkkjr_q.js";
2
- /** How {@link IncaNative.linkedNode} names the node to reach from a node. */
3
- type NodeLink = "parent" | "first" | "last" | "previous" | "next";
4
- /**
5
- * The name of an element. A string is the tag of an HTML element: it is the local name, and its
6
- * ASCII upper case is the `tagName`. A tuple holds the four name parts of
7
- * `createElementNS`.
8
- */
9
- type ElementName = string | [localName: string, namespaceURI: string | null, prefix: string | null, tagName: string];
10
- /** What a native returns for a node without a name: id and the marker or tag. */
11
- type NodeEntry = [id: NodeId, tag: string];
12
- /** What a native returns for an element it makes: id and the four name parts. */
13
- type ElementEntry = [id: NodeId, localName: string, namespaceURI: string | null, prefix: string | null, tagName: string];
14
- /**
15
- * One node of a parsed fragment: id, tag, namespace (`null` for a text node, a comment and a
16
- * fragment), parent id and the text of a text node or a comment.
17
- */
18
- type ParsedEntry = [id: NodeId, tag: string, namespaceURI: string | null, parentId: NodeId, data: string | null];
19
- /**
20
- * What a parse writes into the tree: the position of the first inserted node among the children of
21
- * its container, and the nodes in pre-order. An entry whose parent is no entry is a root.
22
- */
23
- type Parsed = [position: number, entries: ParsedEntry[]];
24
- /** What a listener or a dispatch names: a node id, or the tag of `window`. */
25
- type EventTargetId = NodeId | "$window";
26
- /**
27
- * The host-injected object every wrapper in this package forwards to. Not part of the public
28
- * surface.
29
- */
30
- interface IncaNative {
31
- rootNodeId(): NodeId;
32
- documentNodeId(): NodeId;
33
- createNode(tag: string): NodeId;
34
- createElement(localName: string): [NodeId, TagName];
35
- createElementNS(namespace: string | null, qualifiedName: string): ElementEntry;
36
- attributeKey(nodeId: NodeId, name: string): string;
37
- appendChild(parentId: NodeId, nodeId: NodeId): number;
38
- insertBefore(parentId: NodeId, nodeId: NodeId, refId: NodeId | null): number;
39
- removeChild(parentId: NodeId, childId: NodeId): void;
40
- replaceChild(parentId: NodeId, nodeId: NodeId, childId: NodeId): number;
41
- cloneNode(nodeId: NodeId, deep: boolean): (NodeEntry | ElementEntry)[];
42
- templateContent(nodeId: NodeId): NodeId | null;
43
- innerHtml(nodeId: NodeId): string;
44
- outerHtml(nodeId: NodeId): string;
45
- setInnerHtml(nodeId: NodeId, html: string): Parsed;
46
- setOuterHtml(nodeId: NodeId, html: string): Parsed | null;
47
- insertAdjacentHtml(nodeId: NodeId, position: string, html: string): Parsed;
48
- rootOf(nodeId: NodeId): NodeId;
49
- compareNodePosition(nodeId: NodeId, otherId: NodeId): number;
50
- isEqualNode(nodeId: NodeId, otherId: NodeId): boolean;
51
- setAttribute(nodeId: NodeId, key: string, value: AttributeValue): void;
52
- getAttribute(nodeId: NodeId, key: string): AttributeValue | null;
53
- removeAttribute(nodeId: NodeId, key: string): void;
54
- attributeNames(nodeId: NodeId): string[];
55
- classList(nodeId: NodeId): DOMTokenList;
56
- datasetGet(nodeId: NodeId, key: string): string | undefined;
57
- datasetSet(nodeId: NodeId, key: string, value: string): void;
58
- datasetDelete(nodeId: NodeId, key: string): boolean;
59
- datasetKeys(nodeId: NodeId): string[];
60
- datasetTarget(): object;
61
- linkedNode(nodeId: NodeId, link: NodeLink): NodeId | null;
62
- childNodeIds(nodeId: NodeId): NodeId[];
63
- isConnected(nodeId: NodeId): boolean;
64
- textContent(nodeId: NodeId): string;
65
- wholeText(nodeId: NodeId): string;
66
- substringData(nodeId: NodeId, offset: number, count: number): string;
67
- replaceData(nodeId: NodeId, offset: number, count: number, data: string): void;
68
- splitText(nodeId: NodeId, offset: number): NodeId;
69
- matches(nodeId: NodeId, selector: string): boolean;
70
- closest(nodeId: NodeId, selector: string): NodeId | null;
71
- checkSelector(selector: string): void;
72
- querySelector(nodeId: NodeId, selector: string): NodeId | null;
73
- querySelectorAll(nodeId: NodeId, selector: string): NodeId[];
74
- setStyle(nodeId: NodeId, key: string, value: AttributeValue): void;
75
- removeStyle(nodeId: NodeId, key: string): void;
76
- styleOf(nodeId: NodeId): CSSStyleDeclaration;
77
- inputValue(nodeId: NodeId): string;
78
- setInputValue(nodeId: NodeId, value: string): void;
79
- addEventListener(target: EventTargetId, event: string, callback: HostCallback, capture?: boolean, passive?: boolean): CallbackId;
80
- removeEventListener(target: EventTargetId, event: string, callbackId: CallbackId): boolean;
81
- releaseListeners(nodeId: NodeId): CallbackId[];
82
- holdNode(nodeId: NodeId): void;
83
- releaseNode(nodeId: NodeId): void;
84
- focusNode(nodeId: NodeId, preventScroll?: boolean): void;
85
- blurNode(nodeId: NodeId): void;
86
- focusedNode(): NodeId | null;
87
- layoutOf(nodeId: NodeId): readonly [number, number, number, number, number, number, number] | null;
88
- scrollOf(nodeId: NodeId): readonly [number, number, number, number] | null;
89
- scrollNode(nodeId: NodeId, left: number | null, top: number | null): void;
90
- scrollIntoViewNode(nodeId: NodeId, block: ScrollAlignment, inline: ScrollAlignment): void;
91
- dispatchEvent(target: EventTargetId, event: EventLike): boolean;
92
- click(nodeId: NodeId): void;
93
- setPointerCapture(nodeId: NodeId, pointerId: number): void;
94
- releasePointerCapture(nodeId: NodeId, pointerId: number): void;
95
- hasPointerCapture(nodeId: NodeId, pointerId: number): boolean;
96
- }
97
- /** What the host calls: it passes the event object as the first argument. */
98
- type HostCallback = (...args: unknown[]) => void;
99
- declare global {
100
- var __inca_native__: IncaNative;
101
- var __inca_released__: (nodeIds: NodeId[], callbackIds: CallbackId[]) => void;
102
- var __inca_targets__: (targets: EventTargetId[]) => unknown[];
103
- }
104
- /**
105
- * Builds the listener methods of an event target: a node or window.
106
- * @param target - the target id, or a function that resolves it each time a method runs
107
- * @param passiveByDefault - event names whose listeners are passive unless
108
- * their options say `passive: false`
109
- * @returns the target's `addEventListener`, `removeEventListener` and
110
- * `dispatchEvent`
111
- */
112
- declare function createEventTarget(target: EventTargetId | (() => EventTargetId), passiveByDefault?: readonly string[]): IncaEventTarget;
113
- /**
114
- * @returns the `eventId` of the newest event any registered listener has
115
- * received, or 0 before the first. Ids grow with each event, and every
116
- * listener of one event receives the same id.
117
- */
118
- declare function latestEventId(): number;
119
- /**
120
- * Registers `listener` for `event` on the target (node or window).
121
- * Registering the same listener for the same target, event and `capture`
122
- * again changes nothing, and the first registration keeps its other options.
123
- * A `null` listener is ignored.
124
- *
125
- * Any event name is accepted, and it fires when the host dispatches that name.
126
- * `IncaEventMap` gives the event type of each name the host dispatches.
127
- * @param target - the event target (node id or "$window")
128
- * @param event - the event name (e.g. `"click"`)
129
- * @param listener - a function, called with the event's `currentTarget` as
130
- * `this`, or an object whose `handleEvent` method is called with the object
131
- * as `this` when the event fires
132
- * @param options - `capture` listens while the event travels down to the
133
- * target, `passive` ignores `preventDefault()` calls in `listener`, and
134
- * `once` removes the listener before it first runs
135
- * @throws TypeError when `target` is malformed or is an unknown target tag
136
- * @throws TypeError when a node target names no node
137
- * @throws RangeError when the host has issued its last callback id
138
- */
139
- declare function addEventListener(target: EventTargetId, event: string, listener: EventListenerOrObject<never, never> | null, options?: ListenerOptions): void;
140
- /**
141
- * Drops the registration {@link addEventListener} made for `listener` on
142
- * the target with the same `event` and `capture`. A no-op if there is none.
143
- * @param target - the event target (node or window)
144
- * @param event - the event name
145
- * @param listener - the listener that was registered
146
- * @param options - `capture` of the registration to drop
147
- */
148
- declare function removeEventListener(target: EventTargetId, event: string, listener: EventListenerOrObject<never, never> | null, options?: Pick<ListenerOptions, "capture">): void;
149
- /**
150
- * Dispatches `event` at a target along its path. Dispatching at an element
151
- * reaches its ancestors, `document` and `window`. Dispatching at `document`
152
- * reaches `window`, and dispatching at `window` reaches only `window`.
153
- * @param target - the target to dispatch at (node id or "$window")
154
- * @param event - the event to dispatch
155
- * @returns `false` when a listener canceled a cancelable event, else `true`
156
- * @throws TypeError when `target` is malformed or is an unknown target tag
157
- * @throws TypeError when `target` is a node id that names no node
158
- * @throws TypeError when `event` is not an event built with an event constructor
159
- * @throws DOMException named `InvalidStateError` when `event` is being dispatched
160
- */
161
- declare function dispatchEvent(target: EventTargetId, event: EventLike): boolean;
162
- /**
163
- * Fires an untrusted `click` at `nodeId`. A disabled `button` or `input` and a node whose
164
- * own click is still running ignore the call.
165
- * @param nodeId - the node to click
166
- * @throws TypeError when `nodeId` is malformed
167
- * @throws TypeError when `nodeId` names no node
168
- */
169
- declare function click(nodeId: NodeId): void;
170
- /**
171
- * Requests that `nodeId` become focused. Takes effect on the next frame,
172
- * dispatching `"blur"`/`"focus"` for whatever actually changed. The node
173
- * needs a `tabindex` attribute to take focus, and a listener for either event
174
- * is optional. The scroll containers around the node scroll it into view.
175
- * @param nodeId - the node to focus
176
- * @param preventScroll - `true` to leave the scroll containers in place; omitted or `false` scrolls the node into view
177
- * @throws TypeError when `nodeId` is malformed
178
- * @throws TypeError when `nodeId` names no node
179
- */
180
- declare function focus(nodeId: NodeId, preventScroll?: boolean): void;
181
- /**
182
- * Requests that `nodeId` become unfocused, the way `element.blur()` does.
183
- * Takes effect on the next frame; a no-op if `nodeId` isn't the focused node
184
- * when it runs.
185
- * @param nodeId - the node to unfocus
186
- */
187
- declare function blur(nodeId: NodeId): void;
188
- /**
189
- * Returns the host-allocated root container's id, the node an app attaches
190
- * itself under. The host allocates it with the tree, so this resolves from
191
- * the first call and names the same node for the engine's lifetime.
192
- * @returns the root node's id
193
- */
194
- declare function rootNodeId(): NodeId;
195
- /**
196
- * Allocates a new node of kind `tag` in the native tree. The node starts out
197
- * detached. Attach it with {@link appendChild}/{@link insertBefore}. The host
198
- * frees the node at the start of the next frame unless it is inserted or held
199
- * with {@link holdNode} by then.
200
- * @param tag - the node's element kind
201
- * @returns the new node's id
202
- */
203
- declare function createNode(tag: TagName): NodeId;
204
- /**
205
- * Attaches `nodeId` as the last child of `parentId`. A thin wrapper over
206
- * {@link insertBefore} with no anchor.
207
- * @param parentId - the container to attach to
208
- * @param nodeId - the node being attached, or a fragment whose children are attached
209
- * @returns the position of the first attached node among the children of `parentId`
210
- * @throws {DOMException} `HierarchyRequestError` as {@link insertBefore} does
211
- */
212
- declare function appendChild(parentId: NodeId, nodeId: NodeId): number;
213
- /**
214
- * Attaches `nodeId` as a child of `parentId`, positioned before `refId`
215
- * (or at the end, if `refId` is `null`). A fragment attaches its children in order.
216
- * @param parentId - the container to attach to
217
- * @param nodeId - the node being attached, or a fragment whose children are attached
218
- * @param refId - the sibling to insert before, or `null` to append at the end
219
- * @returns the position of the first attached node among the children of `parentId`
220
- * @throws {DOMException} `HierarchyRequestError` when `parentId` is a text node or a comment,
221
- * `nodeId` is `parentId` or an ancestor of it, `nodeId` is the document, or `parentId` is the
222
- * document and the insertion gives it text or a second element;
223
- * `NotFoundError` when `refId` is not a child of `parentId`
224
- * @throws {TypeError} when an id names no node
225
- */
226
- declare function insertBefore(parentId: NodeId, nodeId: NodeId, refId: NodeId | null): number;
227
- /**
228
- * Detaches `childId` from `parentId`. The detached node keeps its own children and its listeners,
229
- * and is freed at the start of the next frame unless it is inserted or held
230
- * with {@link holdNode} by then. An unknown `childId` does nothing.
231
- * @param parentId - the current container
232
- * @param childId - the node being detached
233
- * @throws {DOMException} `NotFoundError` when `childId` is a node that is not a child of `parentId`
234
- * @throws {TypeError} when `parentId` names no node
235
- */
236
- declare function removeChild(parentId: NodeId, childId: NodeId): void;
237
- /**
238
- * Keeps `nodeId` and its subtree alive while it has no parent. The host frees
239
- * a parentless node that is neither held nor inserted by the start of the next
240
- * frame. Holding a held or attached node changes nothing visible.
241
- * @param nodeId - the node to keep
242
- * @throws {TypeError} when `nodeId` names no node
243
- */
244
- declare function holdNode(nodeId: NodeId): void;
245
- /**
246
- * Ends the hold of {@link holdNode}. A node with no parent is freed at the
247
- * start of the next frame. An unknown id does nothing.
248
- * @param nodeId - the node to let go
249
- */
250
- declare function releaseNode(nodeId: NodeId): void;
251
- /**
252
- * Sets an attribute/prop on `nodeId`. The key `style` applies the text as the inline style
253
- * declarations. See {@link setStyle} for layout/paint properties.
254
- * @param nodeId - the node to update
255
- * @param key - the attribute name
256
- * @param value - the attribute value
257
- * @throws {DOMException} named `InvalidCharacterError` when `key` is not a valid attribute name
258
- */
259
- declare function setAttribute(nodeId: NodeId, key: string, value: AttributeValue): void;
260
- /**
261
- * Returns the attribute/prop stored on `nodeId` under `key`, or `null` when unset.
262
- * @param nodeId - the node to read
263
- * @param key - the attribute name
264
- * @returns the stored value, or `null`
265
- * @throws {TypeError} when `nodeId` names no node
266
- */
267
- declare function getAttribute(nodeId: NodeId, key: string): AttributeValue | null;
268
- /**
269
- * Returns the box `nodeId` was drawn at in the last frame, in window logical
270
- * pixels, or `null` if the node has no recorded box.
271
- * @param nodeId - the node to read
272
- * @returns `[x, y, width, height, border, scrollX, scrollY]`, or `null`. `border` is one uniform
273
- * width on all sides. `scrollX` and `scrollY` are the positive scroll offset the parent applied
274
- * to the box.
275
- * @throws {TypeError} when `nodeId` names no node
276
- */
277
- declare function layoutOf(nodeId: NodeId): readonly [number, number, number, number, number, number, number] | null;
278
- /**
279
- * Returns the scroll offset of `nodeId` in window logical pixels. A write made
280
- * since the last draw is included, clamped to the maximum of the last drawn
281
- * frame.
282
- * @param nodeId - the node to read
283
- * @returns `[left, top, maxLeft, maxTop]`, or `null` for a node whose `overflow` is
284
- * `visible` or `clip` on both axes. The maxima are the largest offsets the node can take, as
285
- * of the last drawn frame.
286
- * @throws {TypeError} when `nodeId` names no node
287
- */
288
- declare function scrollOf(nodeId: NodeId): readonly [number, number, number, number] | null;
289
- /**
290
- * Sets the scroll offset of `nodeId` on one or both axes. A `null` axis keeps
291
- * its current offset. The host clamps each value to the scrollable range on
292
- * the next frame. A node whose `overflow` is `visible` or `clip` on both axes ignores the call.
293
- * @param nodeId - the node to scroll
294
- * @param left - the horizontal offset, or `null` to keep it
295
- * @param top - the vertical offset, or `null` to keep it
296
- * @throws {TypeError} when `nodeId` names no node
297
- */
298
- declare function scrollNode(nodeId: NodeId, left: number | null, top: number | null): void;
299
- /**
300
- * Scrolls each scroll container around `nodeId` so the node shows.
301
- * @param nodeId - the node to bring into view
302
- * @param block - the vertical alignment: `"start"`, `"center"`, `"end"` or `"nearest"`
303
- * @param inline - the horizontal alignment: `"start"`, `"center"`, `"end"` or `"nearest"`
304
- * @throws {TypeError} when `nodeId` names no node
305
- * @throws {TypeError} when `block` or `inline` is not an alignment name
306
- */
307
- declare function scrollIntoViewNode(nodeId: NodeId, block: ScrollAlignment, inline: ScrollAlignment): void;
308
- /**
309
- * Removes an attribute/prop from `nodeId`. Removing an attribute
310
- * that isn't set does nothing.
311
- * @param nodeId - the node to update
312
- * @param key - the attribute name
313
- */
314
- declare function removeAttribute(nodeId: NodeId, key: string): void;
315
- /**
316
- * Sets a style property on `nodeId`. A key from {@link StyleProps} gets
317
- * compile-time checking on its value's shape. Any other string key, such as a
318
- * camelCase or kebab-case spelling or a property the types do not list,
319
- * forwards as a raw {@link AttributeValue}.
320
- *
321
- * A key takes kebab-case (`flex-direction`) or camelCase (`flexDirection`).
322
- * Both spellings share one slot per property, and the value set most recently
323
- * applies.
324
- * @param nodeId - the node to update
325
- * @param key - the style property name
326
- * @param value - the style property value
327
- */
328
- declare function setStyle<K extends keyof StyleProps>(nodeId: NodeId, key: K, value: NonNullable<StyleProps[K]>): void;
329
- declare function setStyle(nodeId: NodeId, key: string, value: AttributeValue): void;
330
- /**
331
- * Removes a style property from `nodeId`, so it renders as if never set.
332
- * Removing a property that isn't set does nothing. The key takes any spelling
333
- * or CSS name {@link setStyle} accepts, and removes the property whichever
334
- * one set it.
335
- * @param nodeId - the node to update
336
- * @param key - the style property name
337
- */
338
- declare function removeStyle(nodeId: NodeId, key: string): void;
339
- /**
340
- * Returns the id of the focused node.
341
- * @returns the focused node's id, or `null` when no node has focus
342
- */
343
- declare function focusedNode(): NodeId | null;
344
- /**
345
- * Builds the {@link IncaElement} handle for a native node: parentless,
346
- * childless, with `id`, `focus()`, `blur()`, `click()`, the pointer capture
347
- * methods, the listener methods of an event target, `tabIndex`,
348
- * the `value` of an `input`, the `style`, the `dataset`, the `classList`, the layout members,
349
- * the node members and the event handler properties, all driven through the host.
350
- * @param id - the native node's id
351
- * @param kind - whether the node is an element or a comment stand-in
352
- * @param name - the element name, an HTML `div` when omitted. An HTML `button` or `input`
353
- * defaults to tab index `0`, an HTML `input` has `value` and an HTML `template` has `content`.
354
- * The handle keeps the name, so the name members read after the host frees the node.
355
- * @param passiveByDefault - event names whose listeners are passive unless their options say
356
- * `passive: false`
357
- * @returns the new handle
358
- */
359
- declare function createIncaElement(id: NodeId, kind: IncaElement["kind"], name?: ElementName, passiveByDefault?: readonly string[]): IncaElement;
360
- /**
361
- * Allocates a new element node for `tag`.
362
- * @param tag - the node's element kind
363
- * @returns the new, parentless, childless element
364
- */
365
- declare function createElementNode(tag: TagName): IncaElement;
366
- /**
367
- * Creates the hidden container that stands in for a comment node, such as a
368
- * placeholder for conditional content.
369
- * @param text - the data of the comment
370
- * @returns the new hidden element
371
- */
372
- declare function createCommentNode(text?: string): IncaElement;
373
- /**
374
- * Creates a text leaf.
375
- * @param text - the initial text content
376
- * @returns the new text leaf
377
- */
378
- declare function createTextNode(text: string): IncaText;
379
- /**
380
- * Replaces all of `el`'s children with at most a single text child holding
381
- * `text`. The old children keep their listeners. An empty string leaves `el` childless.
382
- * @param el - the element or fragment whose children are replaced
383
- * @param text - the new text content
384
- */
385
- declare function setElementText(el: IncaParent, text: string): void;
386
- /**
387
- * Returns the handle of the host's mount container, which stands between the app's elements and
388
- * `document` in an event path. A live handle is reused, so a mount and an event see one object.
389
- * A `wheel` listener on it is passive unless its options say `passive: false`.
390
- * @returns the mount container's handle
391
- */
392
- declare function rootElement(): IncaElement;
393
- /**
394
- * Whether `node` left the tree for good, removed or freed. A removed node stays in the host and
395
- * its members read real values. Its listeners are gone.
396
- * @param node - the handle to check
397
- * @returns `true` after {@link markRemoved} or {@link markDestroyed} reached `node`
398
- */
399
- declare function isRemoved(node: IncaNode): boolean;
400
- /**
401
- * Attaches `child` to `parent`, before `anchor` or at the end when `anchor` is
402
- * omitted or `null`. If `anchor` is `child` itself and `child` is already in
403
- * `parent`, nothing changes. A `child` attached elsewhere is detached first,
404
- * so a move keeps the node alive.
405
- * @param child - the node being attached
406
- * @param parent - the new container
407
- * @param anchor - the sibling to insert before, or omitted/`null` to append at the end
408
- */
409
- declare function insert(child: IncaNode, parent: IncaElement, anchor?: IncaNode | null): void;
410
- /**
411
- * Removes `child` for good: the native node leaves its parent and keeps its
412
- * subtree, and every event listener registered in the subtree is released. The
413
- * handles stay readable: the root is held until its handle is collected.
414
- *
415
- * A caller that removes a subtree calls this on its root alone.
416
- * @param child - the node being removed
417
- */
418
- declare function remove(child: IncaNode): void;
419
- /**
420
- * Looks up the current parent.
421
- * @param node - the node to query
422
- * @returns the current parent, or `null` if it isn't attached or sits in a fragment
423
- */
424
- declare function parentNode(node: IncaNode): IncaElement | null;
425
- /**
426
- * Looks up the next sibling.
427
- * @param node - the node to query
428
- * @returns the sibling immediately after `node` in its parent's children, or `null` if there is none (or `node` isn't attached)
429
- */
430
- declare function nextSibling(node: IncaNode): IncaNode | null;
431
- /**
432
- * Updates a text leaf's content in place.
433
- * @param node - the text leaf to update
434
- * @param text - the new text content
435
- */
436
- declare function setText(node: IncaText, text: string): void;
437
- declare namespace rendererCore_d_exports {
438
- export { Attr, AttributeValue, CSSStyleDeclaration, CallbackId, CharacterDataMembers, DOMStringMap, DOMTokenList, EventHandler, EventHandlers, EventLike, EventListener, EventListenerObject, EventListenerOrObject, HTMLCollectionOf, HtmlMembers, IncaCompositionEvent, IncaCore, IncaDocument, IncaElement, IncaEvent, IncaEventMap, IncaEventTarget, IncaFocusEvent, IncaFragment, IncaInputElement, IncaInputEvent, IncaKeyboardEvent, IncaMouseEvent, IncaNode, IncaParent, IncaPointerEvent, IncaTemplateElement, IncaText, IncaUIEvent, IncaWheelEvent, IncaWindow, ListenerOptions, NamedNodeMap, NodeId, NodeListOf, NodeMembers, Overflow, Px, ScrollAlignment, StyleProps, TagName, TextContentMember, TextMembers, addEventListener, appendChild, blur, click, createCommentNode, createElementNode, createEventTarget, createIncaElement, createNode, createTextNode, dispatchEvent, focus, focusedNode, getAttribute, holdNode, insert, insertBefore, isRemoved, latestEventId, layoutOf, nextSibling, parentNode, releaseNode, remove, removeAttribute, removeChild, removeEventListener, removeStyle, rootElement, rootNodeId, scrollIntoViewNode, scrollNode, scrollOf, setAttribute, setElementText, setStyle, setText, window };
439
- }
440
- /**
441
- * What a custom renderer (`incajs/vue`) drives the host through: the tree and
442
- * event calls, the element handles and the shadow tree.
443
- */
444
- type IncaCore = typeof rendererCore_d_exports;
445
- export { setStyle as A, removeChild as C, scrollNode as D, scrollIntoViewNode as E, focus as F, latestEventId as I, removeEventListener as L, blur as M, click as N, scrollOf as O, dispatchEvent as P, createEventTarget as R, removeAttribute as S, rootNodeId as T, getAttribute as _, parentNode as a, layoutOf as b, createCommentNode as c, createTextNode as d, rootElement as f, focusedNode as g, createNode as h, nextSibling as i, addEventListener as j, setAttribute as k, createElementNode as l, appendChild as m, setText as n, remove as o, setElementText as p, insert as r, isRemoved as s, IncaCore as t, createIncaElement as u, holdNode as v, removeStyle as w, releaseNode as x, insertBefore as y };
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{A as t,B as n,C as r,D as i,F as a,G as o,H as s,I as c,K as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,U as _,V as v,W as y,_ as b,a as x,b as S,c as C,d as w,h as T,i as E,j as D,k as O,l as k,m as A,o as j,p as M,r as N,t as P,u as F,w as I,x as L,y as R,z}from"./hooks-DGPTjDZ2.js";var B=/* @__PURE__ */ e({addEventListener:()=>h,appendChild:()=>b,blur:()=>z,click:()=>n,createCommentNode:()=>N,createElementNode:()=>E,createEventTarget:()=>u,createIncaElement:()=>x,createNode:()=>R,createTextNode:()=>j,dispatchEvent:()=>v,focus:()=>s,focusedNode:()=>S,getAttribute:()=>L,holdNode:()=>g,insert:()=>w,insertBefore:()=>r,isRemoved:()=>o,latestEventId:()=>_,layoutOf:()=>I,nextSibling:()=>M,parentNode:()=>A,releaseNode:()=>i,releaseWhenCollected:()=>l,remove:()=>T,removeAttribute:()=>p,removeChild:()=>O,removeEventListener:()=>y,removeStyle:()=>t,rootElement:()=>C,rootNodeId:()=>D,scrollIntoViewNode:()=>d,scrollNode:()=>f,scrollOf:()=>m,setAttribute:()=>a,setElementText:()=>k,setStyle:()=>c,setText:()=>F,window:()=>P});export{B as t};