@tarojs/plugin-platform-harmony-ets 4.1.4-beta.4 → 4.1.4-beta.6

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.
Files changed (75) hide show
  1. package/dist/apis/framework/index.d.ts +1 -0
  2. package/dist/apis/index.d.ts +1 -0
  3. package/dist/apis/media/EditorContext.d.ts +16 -0
  4. package/dist/apis/utils/handler.d.ts +1 -0
  5. package/dist/apis/utils/permissions.d.ts +5 -0
  6. package/dist/components/components-harmony-ets/tag.d.ts +53 -0
  7. package/dist/components/components-harmony-ets/utils/DynamicCenter.d.ts +7 -0
  8. package/dist/components/components-harmony-ets/utils/events.d.ts +3 -0
  9. package/dist/components/components-harmony-ets/utils/htmlParser/HarmonyHTMLParser.d.ts +11 -0
  10. package/dist/components/components-harmony-ets/utils/htmlParser/index.d.ts +3 -0
  11. package/dist/components/components-harmony-ets/utils/index.d.ts +11 -0
  12. package/dist/components/components-react.d.ts +7 -0
  13. package/dist/components/components-react.js +2 -41
  14. package/dist/components/components-react.js.map +1 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/runtime-ets/bom/URL.d.ts +2 -0
  17. package/dist/runtime-ets/bom/document.d.ts +2 -0
  18. package/dist/runtime-ets/bom/getComputedStyle.d.ts +1 -0
  19. package/dist/runtime-ets/bom/history.d.ts +1 -0
  20. package/dist/runtime-ets/bom/location.d.ts +1 -0
  21. package/dist/runtime-ets/bom/navigator.d.ts +1 -0
  22. package/dist/runtime-ets/bom/raf.d.ts +1 -0
  23. package/dist/runtime-ets/bom/window.d.ts +20 -0
  24. package/dist/runtime-ets/constant.d.ts +17 -0
  25. package/dist/runtime-ets/current.d.ts +4 -0
  26. package/dist/runtime-ets/dom/bind.d.ts +4 -0
  27. package/dist/runtime-ets/dom/class-list.d.ts +15 -0
  28. package/dist/runtime-ets/dom/comment.d.ts +5 -0
  29. package/dist/runtime-ets/dom/cssNesting.d.ts +7 -0
  30. package/dist/runtime-ets/dom/cssStyleDeclaration.d.ts +14 -0
  31. package/dist/runtime-ets/dom/document.d.ts +20 -0
  32. package/dist/runtime-ets/dom/element/index.d.ts +14 -0
  33. package/dist/runtime-ets/dom/element/movableArea.d.ts +5 -0
  34. package/dist/runtime-ets/dom/element/progress.d.ts +5 -0
  35. package/dist/runtime-ets/dom/element/text.d.ts +5 -0
  36. package/dist/runtime-ets/dom/element/webView.d.ts +15 -0
  37. package/dist/runtime-ets/dom/event-source.d.ts +1 -0
  38. package/dist/runtime-ets/dom/event.d.ts +24 -0
  39. package/dist/runtime-ets/dom/eventTarget.d.ts +17 -0
  40. package/dist/runtime-ets/dom/node.d.ts +62 -0
  41. package/dist/runtime-ets/dom/stylesheet/covertWeb2Hm.d.ts +3 -0
  42. package/dist/runtime-ets/dom/stylesheet/index.d.ts +83 -0
  43. package/dist/runtime-ets/emitter/emitter.d.ts +1 -0
  44. package/dist/runtime-ets/env.d.ts +1 -0
  45. package/dist/runtime-ets/index.d.ts +22 -0
  46. package/dist/runtime-ets/interface/event.d.ts +9 -0
  47. package/dist/runtime-ets/interface/index.d.ts +6 -0
  48. package/dist/runtime-ets/utils/index.d.ts +26 -0
  49. package/dist/runtime-ets/utils/info.d.ts +11 -0
  50. package/dist/runtime-ets/utils/router.d.ts +1 -0
  51. package/dist/runtime-framework/react/app.d.ts +12 -0
  52. package/dist/runtime-framework/react/connect.d.ts +1 -0
  53. package/dist/runtime-framework/react/constant.d.ts +5 -0
  54. package/dist/runtime-framework/react/hooks.d.ts +30 -0
  55. package/dist/runtime-framework/react/index.d.ts +5 -0
  56. package/dist/runtime-framework/react/native-page.d.ts +8 -0
  57. package/dist/runtime-framework/react/page.d.ts +13 -0
  58. package/dist/runtime-framework/react/utils/index.d.ts +7 -0
  59. package/dist/runtime-framework/react/utils/is.d.ts +10 -0
  60. package/dist/runtime-framework/solid/app.d.ts +10 -0
  61. package/dist/runtime-framework/solid/connect.d.ts +4 -0
  62. package/dist/runtime-framework/solid/constant.d.ts +5 -0
  63. package/dist/runtime-framework/solid/hooks.d.ts +30 -0
  64. package/dist/runtime-framework/solid/index.d.ts +4 -0
  65. package/dist/runtime-framework/solid/page.d.ts +13 -0
  66. package/dist/runtime-framework/solid/reconciler/h.d.ts +8 -0
  67. package/dist/runtime-framework/solid/reconciler/index.d.ts +3 -0
  68. package/dist/runtime-framework/solid/reconciler/props.d.ts +7 -0
  69. package/dist/runtime-framework/solid/reconciler/render.d.ts +16 -0
  70. package/dist/runtime-framework/solid/reconciler/use.d.ts +1 -0
  71. package/dist/runtime-framework/solid/utils/index.d.ts +16 -0
  72. package/dist/runtime-framework/solid/utils/is.d.ts +10 -0
  73. package/dist/runtime-utils.js.map +1 -1
  74. package/dist/runtime.js.map +1 -1
  75. package/package.json +9 -9
@@ -0,0 +1,4 @@
1
+ import type { TaroElement, TaroScrollViewElement } from './element';
2
+ export declare function bindScrollTo(node: TaroScrollViewElement): void;
3
+ export declare function bindFocus(node: TaroElement): void;
4
+ export declare function bindAnimation(node: TaroElement): void;
@@ -0,0 +1,15 @@
1
+ export declare class ClassList {
2
+ private el;
3
+ private tokenList;
4
+ constructor(className: string, el: any);
5
+ get value(): string;
6
+ get length(): number;
7
+ add(): void;
8
+ remove(): void;
9
+ contains(token: string): boolean;
10
+ toggle(token: string, force: boolean): boolean;
11
+ replace(token: string, replacement_token: string): void;
12
+ toString(): string;
13
+ private checkTokenIsValid;
14
+ private _update;
15
+ }
@@ -0,0 +1,5 @@
1
+ import { TaroTextNode } from './node';
2
+ declare class TaroComment extends TaroTextNode {
3
+ constructor(data: string);
4
+ }
5
+ export { TaroComment };
@@ -0,0 +1,7 @@
1
+ import type { ReactElement } from 'react';
2
+ export type NestingStyle = {
3
+ node: ReactElement;
4
+ selectors: string[];
5
+ declaration: Record<string, any>;
6
+ }[];
7
+ export declare function __combine_nesting_style__(react_tree: ReactElement, styles?: NestingStyle | null): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -0,0 +1,14 @@
1
+ import { TaroElement } from './element/element';
2
+ declare class CSSStyleDeclaration {
3
+ el: TaroElement;
4
+ constructor(el: TaroElement);
5
+ get _st(): import("./stylesheet").default;
6
+ get cssText(): string;
7
+ set cssText(value: string);
8
+ setProperty(prop: string, value: any): void;
9
+ getPropertyValue(prop: string): string | number;
10
+ removeProperty(prop: string): string | number;
11
+ }
12
+ type ICSSStyleDeclaration = CSSStyleDeclaration & Record<string, any>;
13
+ declare function createCSSStyleDeclaration(node: TaroElement): CSSStyleDeclaration;
14
+ export { createCSSStyleDeclaration, CSSStyleDeclaration, ICSSStyleDeclaration };
@@ -0,0 +1,20 @@
1
+ import { TaroComment } from './comment';
2
+ import { TaroElement } from './element/element';
3
+ import { TaroNode, TaroTextNode } from './node';
4
+ import type { Window } from '../bom/window';
5
+ declare class TaroDocument extends TaroNode {
6
+ documentElement: TaroElement;
7
+ head: TaroElement;
8
+ body: TaroElement;
9
+ cookie: string;
10
+ private _win;
11
+ constructor(window: Window);
12
+ get defaultView(): Window;
13
+ createElement(tagName: string): TaroElement;
14
+ createTextNode(value: string): TaroTextNode;
15
+ createComment(data: string): TaroComment;
16
+ getElementById<T extends TaroElement>(id: string | undefined | null): T | null;
17
+ querySelector(selectors: string): TaroElement | null;
18
+ querySelectorAll(selectors: string): TaroElement[];
19
+ }
20
+ export { TaroDocument };
@@ -0,0 +1,14 @@
1
+ import { TaroCanvasElement } from './canvas';
2
+ import { TaroElement } from './element';
3
+ import { FormElement, TaroCheckboxElement, TaroCheckboxGroupElement, TaroFormElement, TaroInputElement, TaroPickerElement, TaroRadioElement, TaroRadioGroupElement, TaroSliderElement, TaroSwitchElement, TaroTextAreaElement } from './form';
4
+ import { TaroMovableAreaElement } from './movableArea';
5
+ import { isTaroMovableViewElement, TaroMovableViewElement } from './movableView';
6
+ import { TaroButtonElement, TaroIconElement, TaroImageElement, TaroLabelElement, TaroNavigationBarElement, TaroOtherElement, TaroPageMetaElement, TaroRichTextElement, TaroSwiperElement, TaroSwiperItemElement, TaroViewElement } from './normal';
7
+ import { TaroProgressElement } from './progress';
8
+ import { TaroScrollViewElement } from './scrollView';
9
+ import { TaroTextElement } from './text';
10
+ import { TaroVideoElement } from './video';
11
+ import { TaroInnerHtmlElement, TaroWebViewElement } from './webView';
12
+ export declare function initHarmonyElement(): void;
13
+ export { FormElement, TaroButtonElement, TaroCanvasElement, TaroCheckboxElement, TaroCheckboxGroupElement, TaroElement, TaroFormElement, TaroIconElement, TaroImageElement, TaroInnerHtmlElement, TaroInputElement, TaroLabelElement, TaroMovableAreaElement, TaroMovableViewElement, TaroNavigationBarElement, TaroOtherElement, TaroPageMetaElement, TaroPickerElement, TaroProgressElement, TaroRadioElement, TaroRadioGroupElement, TaroRichTextElement, TaroScrollViewElement, TaroSliderElement, TaroSwiperElement, TaroSwiperItemElement, TaroSwitchElement, TaroTextAreaElement, TaroTextElement, TaroVideoElement, TaroViewElement, TaroWebViewElement };
14
+ export { isTaroMovableViewElement };
@@ -0,0 +1,5 @@
1
+ import { TaroElement } from './element';
2
+ import type { MovableAreaProps } from '@tarojs/components/types';
3
+ export declare class TaroMovableAreaElement extends TaroElement<MovableAreaProps> {
4
+ constructor();
5
+ }
@@ -0,0 +1,5 @@
1
+ import { TaroElement } from './element';
2
+ import type { ProgressProps } from '@tarojs/components/types';
3
+ export declare class TaroProgressElement extends TaroElement<ProgressProps> {
4
+ constructor();
5
+ }
@@ -0,0 +1,5 @@
1
+ import { TaroElement } from './element';
2
+ import type { TextProps } from '@tarojs/components/types';
3
+ export declare class TaroTextElement extends TaroElement<TextProps> {
4
+ constructor();
5
+ }
@@ -0,0 +1,15 @@
1
+ import web_webview from '@ohos.web.webview';
2
+ import { TaroElement } from './element';
3
+ import type { WebViewProps } from '@tarojs/components/types';
4
+ export declare class TaroInnerHtmlElement extends TaroElement {
5
+ constructor();
6
+ }
7
+ export declare class TaroWebViewElement extends TaroElement<WebViewProps> {
8
+ ports: web_webview.WebMessagePort[];
9
+ nativePort: web_webview.WebMessagePort | null;
10
+ message: web_webview.WebMessageExt;
11
+ controller: web_webview.WebviewController;
12
+ constructor();
13
+ postMessage(value: string): void;
14
+ handleMessageFromWeb(result: web_webview.WebMessageExt): any;
15
+ }
@@ -0,0 +1 @@
1
+ export { eventSource } from '@tarojs/runtime/dist/runtime.esm';
@@ -0,0 +1,24 @@
1
+ import { TaroElement } from './element/element';
2
+ import type { EventOptions } from '../interface';
3
+ export declare class TaroEvent<T = any> {
4
+ type: string;
5
+ bubbles: boolean;
6
+ cancelable: boolean;
7
+ _stop: boolean;
8
+ _end: boolean;
9
+ defaultPrevented: boolean;
10
+ target: TaroElement;
11
+ currentTarget: TaroElement;
12
+ /** 额外的信息 */
13
+ detail: T;
14
+ button: number;
15
+ timeStamp: number;
16
+ mpEvent: TaroEvent | undefined;
17
+ constructor(type: string, opts: EventOptions, event?: TaroEvent);
18
+ stopPropagation(): void;
19
+ stopImmediatePropagation(): void;
20
+ preventDefault(): void;
21
+ }
22
+ export declare function createEvent(event: TaroEvent | string, type?: string, node?: TaroElement): TaroEvent<any> | undefined;
23
+ export declare function eventHandler(event: any, type: string, node: TaroElement): void;
24
+ export declare function createTaroEvent(type: string, opts?: Partial<EventOptions>, node?: TaroElement): TaroEvent<any>;
@@ -0,0 +1,17 @@
1
+ import { Events } from '../emitter/emitter';
2
+ import { TaroEvent } from './event';
3
+ import type { EventHandler } from '../interface';
4
+ interface IOptions {
5
+ capture?: boolean;
6
+ once?: boolean;
7
+ passive?: boolean;
8
+ }
9
+ type fn = (...args: any[]) => any;
10
+ declare class TaroEventTarget extends Events {
11
+ __listeners: Record<string, EventHandler[]>;
12
+ addEventListener(type: string, listener: fn, options?: IOptions): void;
13
+ removeEventListener(type: string, listener: fn): void;
14
+ dispatchEvent(event: TaroEvent): boolean;
15
+ private _stopPropagation;
16
+ }
17
+ export { TaroEventTarget };
@@ -0,0 +1,62 @@
1
+ import TaroDataSourceElement from './dataSource';
2
+ import type { StandardProps } from '@tarojs/components/types';
3
+ import type { TaroAny } from '../interface';
4
+ import type { TaroDocument } from './document';
5
+ import type { TaroElement } from './element/element';
6
+ export declare enum NodeType {
7
+ ELEMENT_NODE = 1,
8
+ ATTRIBUTE_NODE = 2,
9
+ TEXT_NODE = 3,
10
+ CDATA_SECTION_NODE = 4,
11
+ ENTITY_REFERENCE_NODE = 5,
12
+ PROCESSING_INSTRUCTION_NODE = 7,
13
+ COMMENT_NODE = 8,
14
+ DOCUMENT_NODE = 9,
15
+ DOCUMENT_TYPE_NODE = 10,
16
+ DOCUMENT_FRAGMENT_NODE = 11
17
+ }
18
+ export declare class TaroNode extends TaroDataSourceElement {
19
+ readonly nodeName: string;
20
+ readonly nodeType: NodeType;
21
+ childNodes: TaroNode[];
22
+ parentNode: TaroNode | null;
23
+ _nid: number;
24
+ _doc: TaroDocument | null;
25
+ _instance?: TaroAny;
26
+ private _textContent;
27
+ _updateTrigger: number;
28
+ _isCompileMode: boolean;
29
+ _isDynamicNode: boolean;
30
+ _nativeUpdateTrigger: number;
31
+ constructor(nodeName: string, nodeType?: NodeType);
32
+ totalCount(): number;
33
+ getData(index: number): TaroElement<StandardProps>;
34
+ getStrNid(): string;
35
+ getNumNid(id: any): number;
36
+ findIndex(refChild?: TaroNode): number;
37
+ updateTextNode(): void;
38
+ updateComponent(): void;
39
+ get uid(): string;
40
+ get firstChild(): TaroNode | null;
41
+ get lastChild(): TaroNode | null;
42
+ get nextSibling(): TaroNode | null;
43
+ get previousSibling(): TaroNode | null;
44
+ get parentElement(): TaroElement | null;
45
+ get textContent(): string;
46
+ set textContent(value: string);
47
+ get nodeValue(): string | null;
48
+ set nodeValue(value: string | null);
49
+ get ownerDocument(): TaroDocument | null;
50
+ hasChildNodes(): boolean;
51
+ connectParentNode(child: TaroNode): void;
52
+ appendChild(child: TaroNode): TaroNode;
53
+ insertBefore(newNode: TaroNode, referenceNode?: TaroNode): TaroNode;
54
+ replaceChild(newChild: TaroNode, oldChild: TaroNode): TaroNode;
55
+ removeChild(child: TaroNode): TaroNode;
56
+ dispose(): void;
57
+ }
58
+ export declare class TaroTextNode extends TaroNode {
59
+ constructor(value?: string, nodeName?: string, nodeType?: NodeType);
60
+ get data(): string;
61
+ set data(value: string);
62
+ }
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+ import { TaroElement } from '../element/element';
3
+ export default function convertWebStyle2HmStyle(webStyle: CSSProperties, node?: TaroElement): Record<string, any>;
@@ -0,0 +1,83 @@
1
+ import type { HarmonyStyle, HarmonyType, TaroStyleType, TaroTextStyleType } from './type';
2
+ export { HarmonyStyle, HarmonyType, TaroStyleType, TaroTextStyleType };
3
+ export default class StyleSheet {
4
+ hmStyle: HarmonyStyle;
5
+ get display(): "none" | "block" | "flex" | undefined;
6
+ get position(): "fixed" | "relative" | "absolute" | undefined;
7
+ get padding(): string;
8
+ get paddingTop(): any;
9
+ get paddingBottom(): any;
10
+ get paddingLeft(): any;
11
+ get paddingRight(): any;
12
+ get margin(): string;
13
+ get marginTop(): any;
14
+ get marginBottom(): any;
15
+ get marginLeft(): any;
16
+ get marginRight(): any;
17
+ get top(): any;
18
+ get left(): any;
19
+ get right(): any;
20
+ get bottom(): any;
21
+ get flex(): string;
22
+ get flexBasis(): string | number | undefined;
23
+ get flexGrow(): number;
24
+ get flexShrink(): number;
25
+ get alignSelf(): string;
26
+ get flexDirection(): string;
27
+ get justifyContent(): string;
28
+ get alignItems(): string;
29
+ get alignContent(): string;
30
+ get flexWrap(): string;
31
+ get width(): any;
32
+ get height(): any;
33
+ get minHeight(): any;
34
+ get maxHeight(): any;
35
+ get minWidth(): any;
36
+ get maxWidth(): any;
37
+ get background(): string;
38
+ get backgroundColor(): any;
39
+ get backgroundImage(): any;
40
+ get backgroundRepeat(): "repeat-x" | "repeat-y" | "no-repeat" | "repeat" | undefined;
41
+ get backgroundSize(): string | undefined;
42
+ get backgroundPosition(): string | undefined;
43
+ get border(): string;
44
+ get borderWidth(): any;
45
+ get borderLeftWidth(): any;
46
+ get borderRightWidth(): any;
47
+ get borderTopWidth(): any;
48
+ get borderBottomWidth(): any;
49
+ get borderColor(): any;
50
+ get borderLeftColor(): any;
51
+ get borderRightColor(): any;
52
+ get borderTopColor(): any;
53
+ get borderBottomColor(): any;
54
+ get borderStyle(): string;
55
+ get borderLeftStyle(): string;
56
+ get borderRightStyle(): string;
57
+ get borderTopStyle(): string;
58
+ get borderBottomStyle(): string;
59
+ get borderRadius(): any;
60
+ get borderTopLeftRadius(): any;
61
+ get borderTopRightRadius(): any;
62
+ get borderBottomLeftRadius(): any;
63
+ get borderBottomRightRadius(): any;
64
+ get zIndex(): number | undefined;
65
+ get opacity(): any;
66
+ get overflow(): "visible" | "hidden";
67
+ get focus(): boolean;
68
+ get color(): any;
69
+ get fontSize(): any;
70
+ get fontWeight(): any;
71
+ get fontStyle(): "" | "normal" | "italic";
72
+ get fontFamily(): any;
73
+ get textAlign(): "" | "center" | "left" | "right";
74
+ get verticalAlign(): "" | "bottom" | "middle" | "top";
75
+ get lineHeight(): any;
76
+ get letterSpacing(): string | number | undefined;
77
+ get textDecoration(): "none" | "" | "underline" | "overline" | "line-through";
78
+ get textOverflow(): "none" | "clip" | "ellipsis" | "marquee" | undefined;
79
+ get WebkitLineClamp(): number;
80
+ get transform(): HarmonyType.Transform.Transform | undefined;
81
+ get transformOrigin(): HarmonyType.Transform.Origin | undefined;
82
+ get content(): any;
83
+ }
@@ -0,0 +1 @@
1
+ export { eventCenter, Events, EventsType } from '@tarojs/runtime/dist/runtime.esm';
@@ -0,0 +1 @@
1
+ export { env } from '@tarojs/runtime/dist/runtime.esm';
@@ -0,0 +1,22 @@
1
+ export * from './current';
2
+ export { hooks } from '@tarojs/shared';
3
+ export * from './bom/document';
4
+ export * from './bom/getComputedStyle';
5
+ export * from './bom/history';
6
+ export * from './bom/location';
7
+ export * from './bom/navigator';
8
+ export * from './bom/raf';
9
+ export * from './bom/URL';
10
+ export * from './bom/window';
11
+ export * from './dom/element';
12
+ export * from './dom/event';
13
+ export * from './dom/event-source';
14
+ export * from './dom/node';
15
+ export * from './dom/stylesheet';
16
+ export * from './dom/cssNesting';
17
+ export * from './env';
18
+ export * from './constant';
19
+ export * from './emitter/emitter';
20
+ export * from './utils';
21
+ export * from './interface';
22
+ export { Instance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, } from '@tarojs/runtime/dist/runtime.esm';
@@ -0,0 +1,9 @@
1
+ export interface EventOptions {
2
+ bubbles: boolean;
3
+ cancelable: boolean;
4
+ [x: string]: any;
5
+ }
6
+ export interface EventHandler<T = any, R = void> {
7
+ (...args: T[]): R;
8
+ _stop?: boolean;
9
+ }
@@ -0,0 +1,6 @@
1
+ export * from './event';
2
+ export { PageConfig, TFunc } from '@tarojs/runtime/dist/runtime.esm';
3
+ export type TaroAny = any;
4
+ export type TaroFunc = (...args: TaroAny[]) => TaroAny;
5
+ export type TaroIndent = string | number | boolean | undefined | null;
6
+ export type TaroObject = Record<string | number | symbol, TaroAny>;
@@ -0,0 +1,26 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { TaroElement } from '../dom/element/element';
3
+ import type { TaroNode } from '../dom/node';
4
+ export declare function isElement(node: TaroNode): node is TaroElement;
5
+ /**
6
+ * 往上寻找组件树直到 root,寻找是否有祖先组件绑定了同类型的事件
7
+ * @param node 当前组件
8
+ * @param type 事件类型
9
+ */
10
+ export declare function isParentBinded(node: TaroElement | null, type: string): boolean;
11
+ export declare function convertNumber2PX(value: number): string | number;
12
+ export declare function convertNumber2VP(value: number, unit?: string): string | number;
13
+ export declare function parseClasses(classNames?: string): string[];
14
+ export declare function calcStaticStyle(styleSheet: Record<string, CSSProperties>, classNames?: string): CSSProperties;
15
+ export declare function calcDynamicStyle(style: CSSProperties): CSSProperties;
16
+ export declare function __env__(safeAreaType: string, fallback?: string | number): string | number | undefined;
17
+ export declare function getPageScrollerOrNode(scrollerOrNode: any, page: any): any;
18
+ export declare function ObjectKeys(obj: object): string[];
19
+ export declare function ObjectAssign(...objects: any[]): any;
20
+ export declare function callFn(fn: any, ctx: any, ...args: any): any;
21
+ export declare function bindFn(fn: any, ctx: any, ...args: any): any;
22
+ export declare function findChildNodeWithDFS<T extends TaroElement = TaroElement>(node: TaroElement, selector: string | ((ele: T) => boolean), selectAll: true): T[] | null;
23
+ export declare function findChildNodeWithDFS<T extends TaroElement = TaroElement>(node: TaroElement, selector: string | ((ele: T) => boolean), selectAll?: false): T | null;
24
+ export declare function findChildNodeWithDFS<T extends TaroElement = TaroElement>(node: TaroElement, selector: string | ((ele: T) => boolean), selectAll: boolean): T[] | T | null;
25
+ export * from './info';
26
+ export * from './router';
@@ -0,0 +1,11 @@
1
+ import type { TaroElement } from '../dom/element/element';
2
+ export declare const AREA_CHANGE_EVENT_NAME = "areaChange";
3
+ export declare const VISIBLE_CHANGE_EVENT_NAME = "visibleChange";
4
+ export declare function createEventOnName(eventName: string): string;
5
+ export declare function createEventTapName(eventName: string): string;
6
+ export declare const disconnectEvent: (node: TaroElement, eventName: string) => null | undefined;
7
+ export declare function getComponentEventCallback(node: TaroElement, eventName: string, callback?: (data: any) => void): ((...eventResult: any[]) => void) | null;
8
+ export declare function setNodeEventCallbackAndTriggerComponentUpdate(node: TaroElement, eventName: string, callback: Function, isAsync?: boolean): Promise<void>;
9
+ export declare function bindAttributesCallback(node: TaroElement, _: string, callback: Function): void;
10
+ export declare function triggerAttributesCallback(node: any, attributeName: any): void;
11
+ export declare function initComponentNodeInfo(node: TaroElement): void;
@@ -0,0 +1 @@
1
+ export { addLeadingSlash, getCurrentPage, getHomePage, hasBasename, stripBasename, stripSuffix, stripTrailing } from '@tarojs/runtime/dist/runtime.esm';
@@ -0,0 +1,12 @@
1
+ /// <reference types="types/runtime" />
2
+ import type { AppInstance } from '@tarojs/runtime';
3
+ import type React from 'react';
4
+ interface IReactMeta {
5
+ PageContext: React.Context<string>;
6
+ R: typeof React;
7
+ Container: any;
8
+ }
9
+ export declare const ReactMeta: IReactMeta;
10
+ export declare function connectReactPage(R: typeof React, id: string, getCtx: () => any): (Page: any) => React.ComponentClass<any>;
11
+ export declare function createReactApp(App: any, react: any, dom: any, config?: any): AppInstance;
12
+ export {};
@@ -0,0 +1 @@
1
+ export declare function setReconciler(ReactDOM: any): void;
@@ -0,0 +1,5 @@
1
+ export declare const ON_SHOW = "onShow";
2
+ export declare const ON_HIDE = "onHide";
3
+ export declare const ON_LOAD = "onLoad";
4
+ export declare const ON_UNLOAD = "onUnload";
5
+ export declare const ON_READY = "onReady";
@@ -0,0 +1,30 @@
1
+ /// <reference types="types/runtime" />
2
+ import type { TFunc } from '@tarojs/runtime';
3
+ /** LifeCycle */
4
+ export declare const useDidHide: (fn: TFunc) => void;
5
+ export declare const useDidShow: (fn: TFunc) => void;
6
+ /** App */
7
+ export declare const useError: (fn: TFunc) => void;
8
+ export declare const useUnhandledRejection: (fn: TFunc) => void;
9
+ export declare const useLaunch: (fn: TFunc) => void;
10
+ export declare const usePageNotFound: (fn: TFunc) => void;
11
+ /** Page */
12
+ export declare const useLoad: (fn: TFunc) => void;
13
+ export declare const usePageScroll: (fn: TFunc) => void;
14
+ export declare const usePullDownRefresh: (fn: TFunc) => void;
15
+ export declare const usePullIntercept: (fn: TFunc) => void;
16
+ export declare const useReachBottom: (fn: TFunc) => void;
17
+ export declare const useResize: (fn: TFunc) => void;
18
+ export declare const useUnload: (fn: TFunc) => void;
19
+ /** Mini-Program */
20
+ export declare const useAddToFavorites: (fn: TFunc) => void;
21
+ export declare const useOptionMenuClick: (fn: TFunc) => void;
22
+ export declare const useSaveExitState: (fn: TFunc) => void;
23
+ export declare const useShareAppMessage: (fn: TFunc) => void;
24
+ export declare const useShareTimeline: (fn: TFunc) => void;
25
+ export declare const useTitleClick: (fn: TFunc) => void;
26
+ /** Router */
27
+ export declare const useReady: (fn: TFunc) => void;
28
+ export declare const useRouter: (dynamic?: boolean) => import("@tarojs/runtime/dist/current").Router | null;
29
+ export declare const useTabItemTap: (fn: TFunc) => void;
30
+ export declare const useScope: () => undefined;
@@ -0,0 +1,5 @@
1
+ export * from './app';
2
+ export * from './connect';
3
+ export * from './hooks';
4
+ export * from './native-page';
5
+ export * from './page';
@@ -0,0 +1,8 @@
1
+ import type * as React from 'react';
2
+ declare let ReactDOM: any;
3
+ export declare function setPageById(inst: any, id: string): void;
4
+ export declare function getPageById(id: string): any;
5
+ export declare function removePageById(id: string): void;
6
+ export declare function createNativePageConfig(Component: any, pageName: string, react: typeof React, reactDOM: typeof ReactDOM, pageConfig: any): Record<string, any>;
7
+ export declare function createNativeComponentConfig(Component: any, react: typeof React, reactdom: any, componentConfig: any): Record<string, any>;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { PageConfig } from '@tarojs/taro';
2
+ export declare function injectPageInstance(inst: any, id: string): void;
3
+ export declare function getPageInstance(id: string): any;
4
+ export declare function removePageInstance(id: string): void;
5
+ export declare function safeExecute(path: string, lifecycle: string, ...args: unknown[]): any;
6
+ export declare function stringify(obj?: Record<string, unknown>): string;
7
+ export declare function getPath(id: string, options?: Record<string, unknown>): string;
8
+ export declare function getOnReadyEventKey(path: string): string;
9
+ export declare function getOnShowEventKey(path: string): string;
10
+ export declare function getOnHideEventKey(path: string): string;
11
+ export declare function createPageConfig(component: any, pageName?: string, pageConfig?: PageConfig): {
12
+ [x: string]: (options?: Readonly<Record<string, unknown>>, cb?: (...args: any[]) => any) => void;
13
+ };
@@ -0,0 +1,7 @@
1
+ export * from './is';
2
+ export { noop } from '@tarojs/shared';
3
+ export declare function capitalize(s: string): string;
4
+ export declare const incrementId: (init?: number) => () => number;
5
+ export declare function ensureIsArray<T>(item: T | T[]): T[];
6
+ export declare const EMPTY_OBJ: any;
7
+ export declare const HOOKS_APP_ID = "taro-app";
@@ -0,0 +1,10 @@
1
+ export declare function isClassComponent(R: any, component: any): boolean;
2
+ export declare function isString(o: unknown): o is string;
3
+ export declare function isUndefined(o: unknown): o is undefined;
4
+ export declare function isNull(o: unknown): o is null;
5
+ export declare function isObject<T>(o: unknown): o is T;
6
+ export declare function isBoolean(o: unknown): o is boolean;
7
+ export declare function isFunction(o: unknown): o is (...args: any[]) => any;
8
+ export declare function isNumber(o: unknown): o is number;
9
+ export declare function isBooleanStringLiteral(o: unknown): o is string;
10
+ export declare const isArray: (arg: any) => arg is any[];
@@ -0,0 +1,10 @@
1
+ /// <reference types="types/runtime" />
2
+ import type { AppInstance } from '@tarojs/runtime';
3
+ import type { AppConfig } from '@tarojs/taro';
4
+ import type { SolidComponent } from './connect';
5
+ export declare const ReactMeta: {
6
+ R: any;
7
+ Container: any;
8
+ PageContext: any;
9
+ };
10
+ export declare function createSolidApp(App: SolidComponent, config: AppConfig): AppInstance;
@@ -0,0 +1,4 @@
1
+ /// <reference types="types/runtime" />
2
+ import type { TaroNode } from '@tarojs/runtime';
3
+ export type SolidComponent = (props?: any) => TaroNode;
4
+ export declare function setReconciler(): void;
@@ -0,0 +1,5 @@
1
+ export declare const ON_SHOW = "onShow";
2
+ export declare const ON_HIDE = "onHide";
3
+ export declare const ON_LOAD = "onLoad";
4
+ export declare const ON_UNLOAD = "onUnload";
5
+ export declare const ON_READY = "onReady";
@@ -0,0 +1,30 @@
1
+ /// <reference types="types/runtime" />
2
+ import type { TFunc } from '@tarojs/runtime';
3
+ /** LifeCycle */
4
+ export declare const useDidHide: (fn: TFunc) => void;
5
+ export declare const useDidShow: (fn: TFunc) => void;
6
+ /** App */
7
+ export declare const useError: (fn: TFunc) => void;
8
+ export declare const useUnhandledRejection: (fn: TFunc) => void;
9
+ export declare const useLaunch: (fn: TFunc) => void;
10
+ export declare const usePageNotFound: (fn: TFunc) => void;
11
+ /** Page */
12
+ export declare const useLoad: (fn: TFunc) => void;
13
+ export declare const usePageScroll: (fn: TFunc) => void;
14
+ export declare const usePullDownRefresh: (fn: TFunc) => void;
15
+ export declare const usePullIntercept: (fn: TFunc) => void;
16
+ export declare const useReachBottom: (fn: TFunc) => void;
17
+ export declare const useResize: (fn: TFunc) => void;
18
+ export declare const useUnload: (fn: TFunc) => void;
19
+ /** Mini-Program */
20
+ export declare const useAddToFavorites: (fn: TFunc) => void;
21
+ export declare const useOptionMenuClick: (fn: TFunc) => void;
22
+ export declare const useSaveExitState: (fn: TFunc) => void;
23
+ export declare const useShareAppMessage: (fn: TFunc) => void;
24
+ export declare const useShareTimeline: (fn: TFunc) => void;
25
+ export declare const useTitleClick: (fn: TFunc) => void;
26
+ /** Router */
27
+ export declare const useReady: (fn: TFunc) => void;
28
+ export declare const useRouter: (dynamic?: boolean) => import("@tarojs/runtime/dist/current").Router | import("solid-js").Accessor<import("@tarojs/runtime/dist/current").Router | null> | null;
29
+ export declare const useTabItemTap: (fn: TFunc) => void;
30
+ export declare const useScope: () => undefined;
@@ -0,0 +1,4 @@
1
+ export * from './app';
2
+ export * from './connect';
3
+ export * from './hooks';
4
+ export * from './page';
@@ -0,0 +1,13 @@
1
+ import type { PageConfig } from '@tarojs/taro';
2
+ export declare function injectPageInstance(inst: any, id: string): void;
3
+ export declare function getPageInstance(id: string): any;
4
+ export declare function removePageInstance(id: string): void;
5
+ export declare function safeExecute(path: string, lifecycle: string, ...args: unknown[]): any;
6
+ export declare function stringify(obj?: Record<string, unknown>): string;
7
+ export declare function getPath(id: string, options?: Record<string, unknown>): string;
8
+ export declare function getOnReadyEventKey(path: string): string;
9
+ export declare function getOnShowEventKey(path: string): string;
10
+ export declare function getOnHideEventKey(path: string): string;
11
+ export declare function createPageConfig(component: any, pageName?: string, pageConfig?: PageConfig): {
12
+ [x: string]: (options?: Readonly<Record<string, unknown>>, cb?: (...args: any[]) => any) => void;
13
+ };
@@ -0,0 +1,8 @@
1
+ /// <reference types="types/runtime" />
2
+ import { TaroNode } from '@tarojs/runtime';
3
+ import type { Accessor } from 'solid-js';
4
+ import type { ResolvedChildren } from 'solid-js/types/reactive/signal';
5
+ export type Component = (props?: any) => TaroNode;
6
+ type Children = undefined | string | number | TaroNode | TaroNode[] | Component | Component[] | Accessor<ResolvedChildren> | (() => Component[]);
7
+ export declare function h(tagName: string, props?: any, children?: Children): TaroNode;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './h';
2
+ export * from './render';
3
+ export * from './use';
@@ -0,0 +1,7 @@
1
+ /// <reference types="types/runtime" />
2
+ import type { TaroElement } from '@tarojs/runtime';
3
+ export type Props = Record<string, unknown>;
4
+ export declare function updateProps(dom: TaroElement, oldProps: Props, newProps: Props): void;
5
+ export declare function updatePropsByPayload(dom: TaroElement, oldProps: Props, updatePayload: any[]): void;
6
+ export declare function getUpdatePayload(dom: TaroElement, oldProps: Props, newProps: Props): any[] | null;
7
+ export declare function setProperty(dom: TaroElement, name: string, value: unknown, oldValue?: unknown): void;