@tarojs/runtime 3.6.0-beta.1 → 3.6.0-beta.2
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/dist/bom/location.d.ts +11 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/dom/anchor-element.d.ts +13 -0
- package/dist/index.d.ts +1 -0
- package/dist/runtime.esm.d.ts +17 -3
- package/dist/runtime.esm.js +599 -537
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/bom/location.d.ts
CHANGED
|
@@ -33,4 +33,15 @@ export declare class Location extends Events {
|
|
|
33
33
|
toString(): string;
|
|
34
34
|
get cache(): RuntimeCache<LocationContext>;
|
|
35
35
|
}
|
|
36
|
+
export declare function parseUrl(url?: string): {
|
|
37
|
+
href: string;
|
|
38
|
+
origin: string;
|
|
39
|
+
protocol: string;
|
|
40
|
+
hostname: string;
|
|
41
|
+
host: string;
|
|
42
|
+
port: string;
|
|
43
|
+
pathname: string;
|
|
44
|
+
search: string;
|
|
45
|
+
hash: string;
|
|
46
|
+
};
|
|
36
47
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TaroElement } from './element';
|
|
2
|
+
export declare class AnchorElement extends TaroElement {
|
|
3
|
+
get href(): string;
|
|
4
|
+
set href(val: string);
|
|
5
|
+
get protocol(): any;
|
|
6
|
+
get host(): any;
|
|
7
|
+
get search(): any;
|
|
8
|
+
get hash(): any;
|
|
9
|
+
get hostname(): any;
|
|
10
|
+
get port(): any;
|
|
11
|
+
get pathname(): any;
|
|
12
|
+
setAttribute(qualifiedName: string, value: any): void;
|
|
13
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export { Style } from './dom/style';
|
|
|
15
15
|
export { SVGElement } from './dom/svg';
|
|
16
16
|
export { TaroText } from './dom/text';
|
|
17
17
|
export { MutationObserver } from './dom-external/mutation-observer';
|
|
18
|
+
export { parseUrl } from './bom/location';
|
|
18
19
|
export { Current, getCurrentInstance } from './current';
|
|
19
20
|
export { eventSource } from './dom/event-source';
|
|
20
21
|
export { addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, injectPageInstance, removePageInstance, safeExecute, stringify } from './dsl/common';
|
package/dist/runtime.esm.d.ts
CHANGED
|
@@ -431,6 +431,22 @@ declare class MutationObserver {
|
|
|
431
431
|
takeRecords(): MutationRecord[];
|
|
432
432
|
static record(record: MutationRecord): void;
|
|
433
433
|
}
|
|
434
|
+
declare const eventCenter: Events;
|
|
435
|
+
type EventsType = typeof Events;
|
|
436
|
+
type Options$0 = {
|
|
437
|
+
window: any;
|
|
438
|
+
};
|
|
439
|
+
declare function parseUrl(url?: string): {
|
|
440
|
+
href: string;
|
|
441
|
+
origin: string;
|
|
442
|
+
protocol: string;
|
|
443
|
+
hostname: string;
|
|
444
|
+
host: string;
|
|
445
|
+
port: string;
|
|
446
|
+
pathname: string;
|
|
447
|
+
search: string;
|
|
448
|
+
hash: string;
|
|
449
|
+
};
|
|
434
450
|
interface Instance<T> extends Component<T>, Show, PageInstance {
|
|
435
451
|
tid?: string;
|
|
436
452
|
$forceUpdate?(): void;
|
|
@@ -542,8 +558,6 @@ declare function stringify(obj?: Record<string, unknown>): string;
|
|
|
542
558
|
declare function createPageConfig(component: any, pageName?: string, data?: Record<string, unknown>, pageConfig?: PageConfig): PageInstance;
|
|
543
559
|
declare function createComponentConfig(component: React.ComponentClass, componentName?: string, data?: Record<string, unknown>): any;
|
|
544
560
|
declare function createRecursiveComponentConfig(componentName?: string): any;
|
|
545
|
-
declare const eventCenter: Events;
|
|
546
|
-
type EventsType = typeof Events;
|
|
547
561
|
/**
|
|
548
562
|
* React also has a fancy function's name for this: `hydrate()`.
|
|
549
563
|
* You may have been heard `hydrate` as a SSR-related function,
|
|
@@ -555,4 +569,4 @@ declare const nextTick: (cb: Func, ctx?: Record<string, any>) => void;
|
|
|
555
569
|
declare const options: Options;
|
|
556
570
|
declare const incrementId: () => () => string;
|
|
557
571
|
export { hooks } from '@tarojs/shared';
|
|
558
|
-
export { document, getComputedStyle, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options, Func, Ctx };
|
|
572
|
+
export { document, getComputedStyle, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, parseUrl, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getPageInstance, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$0 as Options, Func, Ctx };
|