@tarojs/plugin-platform-harmony-ets 4.1.4-beta.2 → 4.1.4-beta.21
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/apis/framework/index.d.ts +1 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/media/EditorContext.d.ts +16 -0
- package/dist/apis/utils/handler.d.ts +1 -0
- package/dist/apis/utils/permissions.d.ts +5 -0
- package/dist/components/components-harmony-ets/tag.d.ts +53 -0
- package/dist/components/components-harmony-ets/utils/DynamicCenter.d.ts +7 -0
- package/dist/components/components-harmony-ets/utils/events.d.ts +3 -0
- package/dist/components/components-harmony-ets/utils/htmlParser/HarmonyHTMLParser.d.ts +11 -0
- package/dist/components/components-harmony-ets/utils/htmlParser/index.d.ts +3 -0
- package/dist/components/components-harmony-ets/utils/index.d.ts +11 -0
- package/dist/components/components-react.d.ts +7 -0
- package/dist/components/components-react.js +2 -41
- package/dist/components/components-react.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime-ets/bom/URL.d.ts +2 -0
- package/dist/runtime-ets/bom/document.d.ts +2 -0
- package/dist/runtime-ets/bom/getComputedStyle.d.ts +1 -0
- package/dist/runtime-ets/bom/history.d.ts +1 -0
- package/dist/runtime-ets/bom/location.d.ts +1 -0
- package/dist/runtime-ets/bom/navigator.d.ts +1 -0
- package/dist/runtime-ets/bom/raf.d.ts +1 -0
- package/dist/runtime-ets/bom/window.d.ts +20 -0
- package/dist/runtime-ets/constant.d.ts +17 -0
- package/dist/runtime-ets/current.d.ts +4 -0
- package/dist/runtime-ets/dom/bind.d.ts +4 -0
- package/dist/runtime-ets/dom/class-list.d.ts +15 -0
- package/dist/runtime-ets/dom/comment.d.ts +5 -0
- package/dist/runtime-ets/dom/cssNesting.d.ts +7 -0
- package/dist/runtime-ets/dom/cssStyleDeclaration.d.ts +14 -0
- package/dist/runtime-ets/dom/document.d.ts +20 -0
- package/dist/runtime-ets/dom/element/index.d.ts +14 -0
- package/dist/runtime-ets/dom/element/movableArea.d.ts +5 -0
- package/dist/runtime-ets/dom/element/progress.d.ts +5 -0
- package/dist/runtime-ets/dom/element/text.d.ts +5 -0
- package/dist/runtime-ets/dom/element/webView.d.ts +15 -0
- package/dist/runtime-ets/dom/event-source.d.ts +1 -0
- package/dist/runtime-ets/dom/event.d.ts +24 -0
- package/dist/runtime-ets/dom/eventTarget.d.ts +17 -0
- package/dist/runtime-ets/dom/node.d.ts +62 -0
- package/dist/runtime-ets/dom/stylesheet/covertWeb2Hm.d.ts +3 -0
- package/dist/runtime-ets/dom/stylesheet/index.d.ts +83 -0
- package/dist/runtime-ets/emitter/emitter.d.ts +1 -0
- package/dist/runtime-ets/env.d.ts +1 -0
- package/dist/runtime-ets/index.d.ts +22 -0
- package/dist/runtime-ets/interface/event.d.ts +9 -0
- package/dist/runtime-ets/interface/index.d.ts +6 -0
- package/dist/runtime-ets/utils/index.d.ts +26 -0
- package/dist/runtime-ets/utils/info.d.ts +11 -0
- package/dist/runtime-ets/utils/router.d.ts +1 -0
- package/dist/runtime-framework/react/app.d.ts +12 -0
- package/dist/runtime-framework/react/connect.d.ts +1 -0
- package/dist/runtime-framework/react/constant.d.ts +5 -0
- package/dist/runtime-framework/react/hooks.d.ts +30 -0
- package/dist/runtime-framework/react/index.d.ts +5 -0
- package/dist/runtime-framework/react/native-page.d.ts +8 -0
- package/dist/runtime-framework/react/native-page.ts +6 -6
- package/dist/runtime-framework/react/page.d.ts +13 -0
- package/dist/runtime-framework/react/utils/index.d.ts +7 -0
- package/dist/runtime-framework/react/utils/is.d.ts +10 -0
- package/dist/runtime-framework/solid/app.d.ts +10 -0
- package/dist/runtime-framework/solid/connect.d.ts +4 -0
- package/dist/runtime-framework/solid/constant.d.ts +5 -0
- package/dist/runtime-framework/solid/hooks.d.ts +30 -0
- package/dist/runtime-framework/solid/index.d.ts +4 -0
- package/dist/runtime-framework/solid/page.d.ts +13 -0
- package/dist/runtime-framework/solid/reconciler/h.d.ts +8 -0
- package/dist/runtime-framework/solid/reconciler/index.d.ts +3 -0
- package/dist/runtime-framework/solid/reconciler/props.d.ts +7 -0
- package/dist/runtime-framework/solid/reconciler/render.d.ts +16 -0
- package/dist/runtime-framework/solid/reconciler/use.d.ts +1 -0
- package/dist/runtime-framework/solid/utils/index.d.ts +16 -0
- package/dist/runtime-framework/solid/utils/is.d.ts +10 -0
- package/dist/runtime-utils.js.map +1 -1
- package/dist/runtime.js.map +1 -1
- package/package.json +10 -10
|
@@ -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,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;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="types/runtime" />
|
|
2
|
+
import type { TaroNode } from '@tarojs/runtime';
|
|
3
|
+
export declare const render: (code: () => TaroNode, node: TaroNode) => () => void;
|
|
4
|
+
export declare const effect: <T>(fn: (prev?: T | undefined) => T, init?: T | undefined) => void;
|
|
5
|
+
export declare const memo: <T>(fn: () => T, equal: boolean) => () => T;
|
|
6
|
+
export declare const createComponent: (type: any, props?: any) => TaroNode;
|
|
7
|
+
export declare const createElement: (tag: string) => TaroNode;
|
|
8
|
+
export declare const createTextNode: (value: string) => TaroNode;
|
|
9
|
+
export declare const insertNode: (parent: TaroNode, node: TaroNode, anchor?: TaroNode | undefined) => void;
|
|
10
|
+
export declare const insert: <T>(parent: any, accessor: T | (() => T), marker?: any) => TaroNode;
|
|
11
|
+
export declare const spread: <T>(node: any, accessor: T | (() => T), skipChildren?: Boolean | undefined) => void;
|
|
12
|
+
export declare const setProp: <T>(node: TaroNode, name: string, value: T, prev?: T | undefined) => T;
|
|
13
|
+
export declare const mergeProps: (...sources: unknown[]) => unknown;
|
|
14
|
+
declare function Fragment(props: any): any;
|
|
15
|
+
declare function jsx(type: any, props: any): TaroNode;
|
|
16
|
+
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function use(fn: any, ele: any, accessor: any): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './is';
|
|
2
|
+
export declare const noop: (..._: unknown[]) => void;
|
|
3
|
+
export declare function capitalize(s: string): string;
|
|
4
|
+
export declare const incrementId: (init?: number) => () => number;
|
|
5
|
+
export declare const EMPTY_OBJ: any;
|
|
6
|
+
export declare const HOOKS_APP_ID = "taro-app";
|
|
7
|
+
export declare function ensureIsArray<T>(item: T | T[]): T[];
|
|
8
|
+
/**
|
|
9
|
+
* set writable, enumerable to true
|
|
10
|
+
*/
|
|
11
|
+
export declare function setDefaultDescriptor(obj: Record<string, any>): Record<string, any>;
|
|
12
|
+
/**
|
|
13
|
+
* 设置入口的路由参数
|
|
14
|
+
* @param options 小程序传入的参数
|
|
15
|
+
*/
|
|
16
|
+
export declare function setRouterParams(options: any): void;
|
|
@@ -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[];
|