@hotwired/turbo 7.2.5 → 8.0.0-beta.1
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.
- package/README.md +1 -1
- package/dist/turbo.es2017-esm.js +5511 -3380
- package/dist/turbo.es2017-umd.js +5885 -3745
- package/package.json +18 -21
- package/dist/types/core/bardo.d.ts +0 -18
- package/dist/types/core/cache.d.ts +0 -10
- package/dist/types/core/drive/error_renderer.d.ts +0 -10
- package/dist/types/core/drive/form_submission.d.ts +0 -68
- package/dist/types/core/drive/head_snapshot.d.ts +0 -21
- package/dist/types/core/drive/history.d.ts +0 -35
- package/dist/types/core/drive/navigator.d.ts +0 -35
- package/dist/types/core/drive/page_renderer.d.ts +0 -31
- package/dist/types/core/drive/page_snapshot.d.ts +0 -17
- package/dist/types/core/drive/page_view.d.ts +0 -23
- package/dist/types/core/drive/preloader.d.ts +0 -14
- package/dist/types/core/drive/progress_bar.d.ts +0 -25
- package/dist/types/core/drive/snapshot_cache.d.ts +0 -17
- package/dist/types/core/drive/visit.d.ts +0 -125
- package/dist/types/core/frames/frame_controller.d.ts +0 -96
- package/dist/types/core/frames/frame_redirector.d.ts +0 -19
- package/dist/types/core/frames/frame_renderer.d.ts +0 -17
- package/dist/types/core/frames/frame_view.d.ts +0 -8
- package/dist/types/core/frames/link_interceptor.d.ts +0 -16
- package/dist/types/core/index.d.ts +0 -28
- package/dist/types/core/native/adapter.d.ts +0 -17
- package/dist/types/core/native/browser_adapter.d.ts +0 -40
- package/dist/types/core/renderer.d.ts +0 -28
- package/dist/types/core/session.d.ts +0 -142
- package/dist/types/core/snapshot.d.ts +0 -16
- package/dist/types/core/streams/stream_actions.d.ts +0 -6
- package/dist/types/core/streams/stream_message.d.ts +0 -6
- package/dist/types/core/streams/stream_message_renderer.d.ts +0 -7
- package/dist/types/core/types.d.ts +0 -9
- package/dist/types/core/url.d.ts +0 -11
- package/dist/types/core/view.d.ts +0 -39
- package/dist/types/elements/frame_element.d.ts +0 -45
- package/dist/types/elements/index.d.ts +0 -3
- package/dist/types/elements/stream_element.d.ts +0 -27
- package/dist/types/elements/stream_source_element.d.ts +0 -7
- package/dist/types/http/fetch_request.d.ts +0 -67
- package/dist/types/http/fetch_response.d.ts +0 -16
- package/dist/types/http/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/observers/appearance_observer.d.ts +0 -13
- package/dist/types/observers/cache_observer.d.ts +0 -6
- package/dist/types/observers/form_link_click_observer.d.ts +0 -14
- package/dist/types/observers/form_submit_observer.d.ts +0 -14
- package/dist/types/observers/link_click_observer.d.ts +0 -17
- package/dist/types/observers/page_observer.d.ts +0 -24
- package/dist/types/observers/scroll_observer.d.ts +0 -13
- package/dist/types/observers/stream_observer.d.ts +0 -21
- package/dist/types/polyfills/custom-elements-native-shim.d.ts +0 -0
- package/dist/types/polyfills/index.d.ts +0 -3
- package/dist/types/polyfills/submit-event.d.ts +0 -1
- package/dist/types/script_warning.d.ts +0 -1
- package/dist/types/tests/functional/async_script_tests.d.ts +0 -1
- package/dist/types/tests/functional/autofocus_tests.d.ts +0 -1
- package/dist/types/tests/functional/cache_observer_tests.d.ts +0 -1
- package/dist/types/tests/functional/drive_disabled_tests.d.ts +0 -1
- package/dist/types/tests/functional/drive_tests.d.ts +0 -1
- package/dist/types/tests/functional/form_mode_tests.d.ts +0 -1
- package/dist/types/tests/functional/form_submission_tests.d.ts +0 -1
- package/dist/types/tests/functional/frame_navigation_tests.d.ts +0 -1
- package/dist/types/tests/functional/frame_tests.d.ts +0 -13
- package/dist/types/tests/functional/import_tests.d.ts +0 -1
- package/dist/types/tests/functional/loading_tests.d.ts +0 -6
- package/dist/types/tests/functional/navigation_tests.d.ts +0 -1
- package/dist/types/tests/functional/pausable_rendering_tests.d.ts +0 -1
- package/dist/types/tests/functional/pausable_requests_tests.d.ts +0 -1
- package/dist/types/tests/functional/preloader_tests.d.ts +0 -1
- package/dist/types/tests/functional/rendering_tests.d.ts +0 -7
- package/dist/types/tests/functional/scroll_restoration_tests.d.ts +0 -1
- package/dist/types/tests/functional/stream_tests.d.ts +0 -1
- package/dist/types/tests/functional/visit_tests.d.ts +0 -1
- package/dist/types/tests/helpers/dom_test_case.d.ts +0 -10
- package/dist/types/tests/helpers/intern_test_case.d.ts +0 -19
- package/dist/types/tests/helpers/page.d.ts +0 -60
- package/dist/types/tests/integration/ujs_tests.d.ts +0 -1
- package/dist/types/tests/server.d.ts +0 -1
- package/dist/types/tests/unit/deprecated_adapter_support_test.d.ts +0 -24
- package/dist/types/tests/unit/export_tests.d.ts +0 -5
- package/dist/types/tests/unit/index.d.ts +0 -3
- package/dist/types/tests/unit/stream_element_tests.d.ts +0 -13
- package/dist/types/util.d.ts +0 -27
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface LinkClickObserverDelegate {
|
|
2
|
-
willFollowLinkToLocation(link: Element, location: URL, event: MouseEvent): boolean;
|
|
3
|
-
followedLinkToLocation(link: Element, location: URL): void;
|
|
4
|
-
}
|
|
5
|
-
export declare class LinkClickObserver {
|
|
6
|
-
readonly delegate: LinkClickObserverDelegate;
|
|
7
|
-
readonly eventTarget: EventTarget;
|
|
8
|
-
started: boolean;
|
|
9
|
-
constructor(delegate: LinkClickObserverDelegate, eventTarget: EventTarget);
|
|
10
|
-
start(): void;
|
|
11
|
-
stop(): void;
|
|
12
|
-
clickCaptured: () => void;
|
|
13
|
-
clickBubbled: (event: Event) => void;
|
|
14
|
-
clickEventIsSignificant(event: MouseEvent): boolean;
|
|
15
|
-
findLinkFromClickTarget(target: EventTarget | null): HTMLAnchorElement | undefined;
|
|
16
|
-
getLocationForLink(link: Element): URL;
|
|
17
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface PageObserverDelegate {
|
|
2
|
-
pageBecameInteractive(): void;
|
|
3
|
-
pageLoaded(): void;
|
|
4
|
-
pageWillUnload(): void;
|
|
5
|
-
}
|
|
6
|
-
export declare enum PageStage {
|
|
7
|
-
initial = 0,
|
|
8
|
-
loading = 1,
|
|
9
|
-
interactive = 2,
|
|
10
|
-
complete = 3
|
|
11
|
-
}
|
|
12
|
-
export declare class PageObserver {
|
|
13
|
-
readonly delegate: PageObserverDelegate;
|
|
14
|
-
stage: PageStage;
|
|
15
|
-
started: boolean;
|
|
16
|
-
constructor(delegate: PageObserverDelegate);
|
|
17
|
-
start(): void;
|
|
18
|
-
stop(): void;
|
|
19
|
-
interpretReadyState: () => void;
|
|
20
|
-
pageIsInteractive(): void;
|
|
21
|
-
pageIsComplete(): void;
|
|
22
|
-
pageWillUnload: () => void;
|
|
23
|
-
get readyState(): DocumentReadyState;
|
|
24
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Position } from "../core/types";
|
|
2
|
-
export interface ScrollObserverDelegate {
|
|
3
|
-
scrollPositionChanged(position: Position): void;
|
|
4
|
-
}
|
|
5
|
-
export declare class ScrollObserver {
|
|
6
|
-
readonly delegate: ScrollObserverDelegate;
|
|
7
|
-
started: boolean;
|
|
8
|
-
constructor(delegate: ScrollObserverDelegate);
|
|
9
|
-
start(): void;
|
|
10
|
-
stop(): void;
|
|
11
|
-
onScroll: () => void;
|
|
12
|
-
updatePosition(position: Position): void;
|
|
13
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FetchResponse } from "../http/fetch_response";
|
|
2
|
-
import { StreamMessage } from "../core/streams/stream_message";
|
|
3
|
-
import { StreamSource } from "../core/types";
|
|
4
|
-
export interface StreamObserverDelegate {
|
|
5
|
-
receivedMessageFromStream(message: StreamMessage): void;
|
|
6
|
-
}
|
|
7
|
-
export declare class StreamObserver {
|
|
8
|
-
readonly delegate: StreamObserverDelegate;
|
|
9
|
-
readonly sources: Set<StreamSource>;
|
|
10
|
-
private started;
|
|
11
|
-
constructor(delegate: StreamObserverDelegate);
|
|
12
|
-
start(): void;
|
|
13
|
-
stop(): void;
|
|
14
|
-
connectStreamSource(source: StreamSource): void;
|
|
15
|
-
disconnectStreamSource(source: StreamSource): void;
|
|
16
|
-
streamSourceIsConnected(source: StreamSource): boolean;
|
|
17
|
-
inspectFetchResponse: EventListener;
|
|
18
|
-
receiveMessageEvent: (event: MessageEvent) => void;
|
|
19
|
-
receiveMessageResponse(response: FetchResponse): Promise<void>;
|
|
20
|
-
receiveMessageHTML(html: string): void;
|
|
21
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Chai {
|
|
3
|
-
interface AssertStatic {
|
|
4
|
-
equalIgnoringWhitespace(actual: string | null | undefined, expected: string, message?: string): void;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
declare global {
|
|
9
|
-
interface Window {
|
|
10
|
-
frameScriptEvaluationCount?: number;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InternTestCase } from "./intern_test_case";
|
|
2
|
-
export declare class DOMTestCase extends InternTestCase {
|
|
3
|
-
fixtureElement: HTMLElement;
|
|
4
|
-
setup(): Promise<void>;
|
|
5
|
-
teardown(): Promise<void>;
|
|
6
|
-
append(node: Node): void;
|
|
7
|
-
find(selector: string): Element | null;
|
|
8
|
-
get fixtureHTML(): string;
|
|
9
|
-
set fixtureHTML(html: string);
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Test from "intern/lib/Test";
|
|
2
|
-
import { Tests } from "intern/lib/interfaces/object";
|
|
3
|
-
export declare class InternTestCase {
|
|
4
|
-
readonly internTest: Test;
|
|
5
|
-
static registerSuite(): void;
|
|
6
|
-
static get tests(): Tests;
|
|
7
|
-
static get testNames(): string[];
|
|
8
|
-
static get testKeys(): string[];
|
|
9
|
-
static runTest(internTest: Test): Promise<void>;
|
|
10
|
-
constructor(internTest: Test);
|
|
11
|
-
get testName(): string;
|
|
12
|
-
runTest(): Promise<void>;
|
|
13
|
-
get assert(): Chai.AssertStatic;
|
|
14
|
-
setup(): Promise<void>;
|
|
15
|
-
beforeTest(): Promise<void>;
|
|
16
|
-
get test(): () => Promise<void>;
|
|
17
|
-
afterTest(): Promise<void>;
|
|
18
|
-
teardown(): Promise<void>;
|
|
19
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { JSHandle, Locator, Page } from "@playwright/test";
|
|
2
|
-
declare type Target = string | null;
|
|
3
|
-
declare type EventType = string;
|
|
4
|
-
declare type EventDetail = any;
|
|
5
|
-
declare type EventLog = [EventType, EventDetail, Target];
|
|
6
|
-
declare type MutationAttributeName = string;
|
|
7
|
-
declare type MutationAttributeValue = string | null;
|
|
8
|
-
declare type MutationLog = [MutationAttributeName, Target, MutationAttributeValue];
|
|
9
|
-
declare type BodyHTML = string;
|
|
10
|
-
declare type BodyMutationLog = [BodyHTML];
|
|
11
|
-
export declare function attributeForSelector(page: Page, selector: string, attributeName: string): Promise<string | null>;
|
|
12
|
-
declare type CancellableEvent = "turbo:click" | "turbo:before-visit";
|
|
13
|
-
export declare function cancelNextEvent(page: Page, eventName: CancellableEvent): Promise<void>;
|
|
14
|
-
export declare function clickWithoutScrolling(page: Page, selector: string, options?: {}): Promise<false | void>;
|
|
15
|
-
export declare function clearLocalStorage(page: Page): Promise<void>;
|
|
16
|
-
export declare function disposeAll(...handles: JSHandle[]): Promise<void[]>;
|
|
17
|
-
export declare function getFromLocalStorage(page: Page, key: string): Promise<string | null>;
|
|
18
|
-
export declare function getSearchParam(url: string, key: string): string | null;
|
|
19
|
-
export declare function hash(url: string): string;
|
|
20
|
-
export declare function hasSelector(page: Page, selector: string): Promise<boolean>;
|
|
21
|
-
export declare function innerHTMLForSelector(page: Page, selector: string): Promise<string>;
|
|
22
|
-
export declare function isScrolledToSelector(page: Page, selector: string): Promise<boolean>;
|
|
23
|
-
export declare function nextBeat(): Promise<void>;
|
|
24
|
-
export declare function nextBody(_page: Page, timeout?: number): Promise<void>;
|
|
25
|
-
export declare function nextEventNamed(page: Page, eventName: string): Promise<any>;
|
|
26
|
-
export declare function nextEventOnTarget(page: Page, elementId: string, eventName: string): Promise<any>;
|
|
27
|
-
export declare function listenForEventOnTarget(page: Page, elementId: string, eventName: string): Promise<void>;
|
|
28
|
-
export declare function nextBodyMutation(page: Page): Promise<string | null>;
|
|
29
|
-
export declare function noNextBodyMutation(page: Page): Promise<boolean>;
|
|
30
|
-
export declare function nextAttributeMutationNamed(page: Page, elementId: string, attributeName: string): Promise<string | null>;
|
|
31
|
-
export declare function noNextAttributeMutationNamed(page: Page, elementId: string, attributeName: string): Promise<boolean>;
|
|
32
|
-
export declare function noNextEventNamed(page: Page, eventName: string): Promise<boolean>;
|
|
33
|
-
export declare function noNextEventOnTarget(page: Page, elementId: string, eventName: string): Promise<boolean>;
|
|
34
|
-
export declare function outerHTMLForSelector(page: Page, selector: string): Promise<string>;
|
|
35
|
-
export declare function pathname(url: string): string;
|
|
36
|
-
export declare function pathnameForIFrame(page: Page, name: string): Promise<string>;
|
|
37
|
-
export declare function propertyForSelector(page: Page, selector: string, propertyName: string): Promise<any>;
|
|
38
|
-
export declare function readBodyMutationLogs(page: Page, length?: number): Promise<BodyMutationLog[]>;
|
|
39
|
-
export declare function readEventLogs(page: Page, length?: number): Promise<EventLog[]>;
|
|
40
|
-
export declare function readMutationLogs(page: Page, length?: number): Promise<MutationLog[]>;
|
|
41
|
-
export declare function search(url: string): string;
|
|
42
|
-
export declare function searchParams(url: string): URLSearchParams;
|
|
43
|
-
export declare function selectorHasFocus(page: Page, selector: string): Promise<boolean>;
|
|
44
|
-
export declare function setLocalStorageFromEvent(page: Page, eventName: string, storageKey: string, storageValue: string): Promise<void>;
|
|
45
|
-
export declare function scrollPosition(page: Page): Promise<{
|
|
46
|
-
x: number;
|
|
47
|
-
y: number;
|
|
48
|
-
}>;
|
|
49
|
-
export declare function isScrolledToTop(page: Page): Promise<boolean>;
|
|
50
|
-
export declare function scrollToSelector(page: Page, selector: string): Promise<void>;
|
|
51
|
-
export declare function sleep(timeout?: number): Promise<void>;
|
|
52
|
-
export declare function strictElementEquals(left: Locator, right: Locator): Promise<boolean>;
|
|
53
|
-
export declare function textContent(page: Page, html: string): Promise<string | null>;
|
|
54
|
-
export declare function visitAction(page: Page): Promise<string>;
|
|
55
|
-
export declare function waitForPathname(page: Page, pathname: string): Promise<void>;
|
|
56
|
-
export declare function waitUntilText(page: Page, text: string, state?: "visible" | "attached"): Promise<import("playwright-core").ElementHandle<HTMLElement | SVGElement>>;
|
|
57
|
-
export declare function waitUntilSelector(page: Page, selector: string, state?: "visible" | "attached"): Promise<import("playwright-core").ElementHandle<HTMLElement | SVGElement>>;
|
|
58
|
-
export declare function waitUntilNoSelector(page: Page, selector: string, state?: "hidden" | "detached"): Promise<import("playwright-core").ElementHandle<HTMLElement | SVGElement> | null>;
|
|
59
|
-
export declare function willChangeBody(page: Page, callback: () => Promise<void>): Promise<boolean>;
|
|
60
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TestServer: import("express-serve-static-core").Router;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { VisitOptions, Visit } from "../../core/drive/visit";
|
|
2
|
-
import { FormSubmission } from "../../core/drive/form_submission";
|
|
3
|
-
import { Adapter } from "../../core/native/adapter";
|
|
4
|
-
import { DOMTestCase } from "../helpers/dom_test_case";
|
|
5
|
-
export declare class DeprecatedAdapterSupportTest extends DOMTestCase implements Adapter {
|
|
6
|
-
locations: any[];
|
|
7
|
-
originalAdapter: Adapter;
|
|
8
|
-
setup(): Promise<void>;
|
|
9
|
-
teardown(): Promise<void>;
|
|
10
|
-
"test visit proposal location includes deprecated absoluteURL property"(): Promise<void>;
|
|
11
|
-
"test visit start location includes deprecated absoluteURL property"(): Promise<void>;
|
|
12
|
-
visitProposedToLocation(location: URL, _options?: Partial<VisitOptions>): void;
|
|
13
|
-
visitStarted(visit: Visit): void;
|
|
14
|
-
visitCompleted(_visit: Visit): void;
|
|
15
|
-
visitFailed(_visit: Visit): void;
|
|
16
|
-
visitRequestStarted(_visit: Visit): void;
|
|
17
|
-
visitRequestCompleted(_visit: Visit): void;
|
|
18
|
-
visitRequestFailedWithStatusCode(_visit: Visit, _statusCode: number): void;
|
|
19
|
-
visitRequestFinished(_visit: Visit): void;
|
|
20
|
-
visitRendered(_visit: Visit): void;
|
|
21
|
-
formSubmissionStarted(_formSubmission: FormSubmission): void;
|
|
22
|
-
formSubmissionFinished(_formSubmission: FormSubmission): void;
|
|
23
|
-
pageInvalidated(): void;
|
|
24
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DOMTestCase } from "../helpers/dom_test_case";
|
|
2
|
-
export { PageRenderer, PageSnapshot, FrameRenderer, FrameElement, StreamActions, StreamElement, StreamSourceElement, TurboBeforeCacheEvent, TurboBeforeFetchRequestEvent, TurboBeforeFetchResponseEvent, TurboBeforeFrameRenderEvent, TurboBeforeRenderEvent, TurboBeforeStreamRenderEvent, TurboBeforeVisitEvent, TurboClickEvent, TurboFetchRequestErrorEvent, TurboFrameLoadEvent, TurboFrameMissingEvent, TurboFrameRenderEvent, TurboLoadEvent, TurboRenderEvent, TurboStreamAction, TurboStreamActions, TurboSubmitEndEvent, TurboSubmitStartEvent, TurboVisitEvent, } from "../../index";
|
|
3
|
-
export declare class ExportTests extends DOMTestCase {
|
|
4
|
-
"test Turbo interface"(): Promise<void>;
|
|
5
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DOMTestCase } from "../helpers/dom_test_case";
|
|
2
|
-
export declare class StreamElementTests extends DOMTestCase {
|
|
3
|
-
beforeTest(): Promise<void>;
|
|
4
|
-
"test action=append"(): Promise<void>;
|
|
5
|
-
"test action=append with children ID already present in target"(): Promise<void>;
|
|
6
|
-
"test action=prepend"(): Promise<void>;
|
|
7
|
-
"test action=prepend with children ID already present in target"(): Promise<void>;
|
|
8
|
-
"test action=remove"(): Promise<void>;
|
|
9
|
-
"test action=replace"(): Promise<void>;
|
|
10
|
-
"test action=update"(): Promise<void>;
|
|
11
|
-
"test action=after"(): Promise<void>;
|
|
12
|
-
"test action=before"(): Promise<void>;
|
|
13
|
-
}
|
package/dist/types/util.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Action } from "./core/types";
|
|
2
|
-
export declare type DispatchOptions<T extends CustomEvent> = {
|
|
3
|
-
target: EventTarget;
|
|
4
|
-
cancelable: boolean;
|
|
5
|
-
detail: T["detail"];
|
|
6
|
-
};
|
|
7
|
-
export declare function activateScriptElement(element: HTMLScriptElement): HTMLScriptElement;
|
|
8
|
-
export declare function createDocumentFragment(html: string): DocumentFragment;
|
|
9
|
-
export declare function dispatch<T extends CustomEvent>(eventName: string, { target, cancelable, detail }?: Partial<DispatchOptions<T>>): CustomEvent<T["detail"]>;
|
|
10
|
-
export declare function nextAnimationFrame(): Promise<void>;
|
|
11
|
-
export declare function nextEventLoopTick(): Promise<void>;
|
|
12
|
-
export declare function nextMicrotask(): Promise<void>;
|
|
13
|
-
export declare function parseHTMLDocument(html?: string): Document;
|
|
14
|
-
export declare function unindent(strings: TemplateStringsArray, ...values: any[]): string;
|
|
15
|
-
export declare function uuid(): string;
|
|
16
|
-
export declare function getAttribute(attributeName: string, ...elements: (Element | undefined)[]): string | null;
|
|
17
|
-
export declare function hasAttribute(attributeName: string, ...elements: (Element | undefined)[]): boolean;
|
|
18
|
-
export declare function markAsBusy(...elements: Element[]): void;
|
|
19
|
-
export declare function clearBusyState(...elements: Element[]): void;
|
|
20
|
-
export declare function waitForLoad(element: HTMLLinkElement, timeoutInMilliseconds?: number): Promise<void>;
|
|
21
|
-
export declare function getHistoryMethodForAction(action: Action): (data: any, unused: string, url?: string | URL | null | undefined) => void;
|
|
22
|
-
export declare function isAction(action: any): action is Action;
|
|
23
|
-
export declare function getVisitAction(...elements: (Element | undefined)[]): Action | null;
|
|
24
|
-
export declare function getMetaElement(name: string): HTMLMetaElement | null;
|
|
25
|
-
export declare function getMetaContent(name: string): string | null;
|
|
26
|
-
export declare function setMetaContent(name: string, content: string): HTMLMetaElement;
|
|
27
|
-
export declare function findClosestRecursively<E extends Element>(element: Element | null, selector: string): E | undefined;
|