@tarojs/plugin-platform-harmony-ets 4.1.4-beta.0 → 4.1.4-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.
Files changed (75) hide show
  1. package/dist/apis/framework/index.d.ts +0 -1
  2. package/dist/apis/index.d.ts +0 -1
  3. package/dist/apis/utils/handler.d.ts +0 -1
  4. package/dist/components/components-react.js +41 -2
  5. package/dist/components/components-react.js.map +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/runtime-utils.js.map +1 -1
  8. package/dist/runtime.js.map +1 -1
  9. package/package.json +9 -9
  10. package/dist/apis/media/EditorContext.d.ts +0 -16
  11. package/dist/apis/utils/permissions.d.ts +0 -5
  12. package/dist/components/components-harmony-ets/tag.d.ts +0 -53
  13. package/dist/components/components-harmony-ets/utils/DynamicCenter.d.ts +0 -7
  14. package/dist/components/components-harmony-ets/utils/events.d.ts +0 -3
  15. package/dist/components/components-harmony-ets/utils/htmlParser/HarmonyHTMLParser.d.ts +0 -11
  16. package/dist/components/components-harmony-ets/utils/htmlParser/index.d.ts +0 -3
  17. package/dist/components/components-harmony-ets/utils/index.d.ts +0 -11
  18. package/dist/components/components-react.d.ts +0 -7
  19. package/dist/runtime-ets/bom/URL.d.ts +0 -2
  20. package/dist/runtime-ets/bom/document.d.ts +0 -2
  21. package/dist/runtime-ets/bom/getComputedStyle.d.ts +0 -1
  22. package/dist/runtime-ets/bom/history.d.ts +0 -1
  23. package/dist/runtime-ets/bom/location.d.ts +0 -1
  24. package/dist/runtime-ets/bom/navigator.d.ts +0 -1
  25. package/dist/runtime-ets/bom/raf.d.ts +0 -1
  26. package/dist/runtime-ets/bom/window.d.ts +0 -20
  27. package/dist/runtime-ets/constant.d.ts +0 -17
  28. package/dist/runtime-ets/current.d.ts +0 -4
  29. package/dist/runtime-ets/dom/bind.d.ts +0 -4
  30. package/dist/runtime-ets/dom/class-list.d.ts +0 -15
  31. package/dist/runtime-ets/dom/comment.d.ts +0 -5
  32. package/dist/runtime-ets/dom/cssNesting.d.ts +0 -7
  33. package/dist/runtime-ets/dom/cssStyleDeclaration.d.ts +0 -14
  34. package/dist/runtime-ets/dom/document.d.ts +0 -20
  35. package/dist/runtime-ets/dom/element/index.d.ts +0 -14
  36. package/dist/runtime-ets/dom/element/movableArea.d.ts +0 -5
  37. package/dist/runtime-ets/dom/element/progress.d.ts +0 -5
  38. package/dist/runtime-ets/dom/element/text.d.ts +0 -5
  39. package/dist/runtime-ets/dom/element/webView.d.ts +0 -15
  40. package/dist/runtime-ets/dom/event-source.d.ts +0 -1
  41. package/dist/runtime-ets/dom/event.d.ts +0 -24
  42. package/dist/runtime-ets/dom/eventTarget.d.ts +0 -17
  43. package/dist/runtime-ets/dom/node.d.ts +0 -62
  44. package/dist/runtime-ets/dom/stylesheet/covertWeb2Hm.d.ts +0 -3
  45. package/dist/runtime-ets/dom/stylesheet/index.d.ts +0 -83
  46. package/dist/runtime-ets/emitter/emitter.d.ts +0 -1
  47. package/dist/runtime-ets/env.d.ts +0 -1
  48. package/dist/runtime-ets/index.d.ts +0 -22
  49. package/dist/runtime-ets/interface/event.d.ts +0 -9
  50. package/dist/runtime-ets/interface/index.d.ts +0 -6
  51. package/dist/runtime-ets/utils/index.d.ts +0 -26
  52. package/dist/runtime-ets/utils/info.d.ts +0 -11
  53. package/dist/runtime-ets/utils/router.d.ts +0 -1
  54. package/dist/runtime-framework/react/app.d.ts +0 -12
  55. package/dist/runtime-framework/react/connect.d.ts +0 -1
  56. package/dist/runtime-framework/react/constant.d.ts +0 -5
  57. package/dist/runtime-framework/react/hooks.d.ts +0 -30
  58. package/dist/runtime-framework/react/index.d.ts +0 -5
  59. package/dist/runtime-framework/react/native-page.d.ts +0 -8
  60. package/dist/runtime-framework/react/page.d.ts +0 -13
  61. package/dist/runtime-framework/react/utils/index.d.ts +0 -7
  62. package/dist/runtime-framework/react/utils/is.d.ts +0 -10
  63. package/dist/runtime-framework/solid/app.d.ts +0 -10
  64. package/dist/runtime-framework/solid/connect.d.ts +0 -4
  65. package/dist/runtime-framework/solid/constant.d.ts +0 -5
  66. package/dist/runtime-framework/solid/hooks.d.ts +0 -30
  67. package/dist/runtime-framework/solid/index.d.ts +0 -4
  68. package/dist/runtime-framework/solid/page.d.ts +0 -13
  69. package/dist/runtime-framework/solid/reconciler/h.d.ts +0 -8
  70. package/dist/runtime-framework/solid/reconciler/index.d.ts +0 -3
  71. package/dist/runtime-framework/solid/reconciler/props.d.ts +0 -7
  72. package/dist/runtime-framework/solid/reconciler/render.d.ts +0 -16
  73. package/dist/runtime-framework/solid/reconciler/use.d.ts +0 -1
  74. package/dist/runtime-framework/solid/utils/index.d.ts +0 -16
  75. package/dist/runtime-framework/solid/utils/is.d.ts +0 -10
@@ -1,26 +0,0 @@
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';
@@ -1,11 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { addLeadingSlash, getCurrentPage, getHomePage, hasBasename, stripBasename, stripSuffix, stripTrailing } from '@tarojs/runtime/dist/runtime.esm';
@@ -1,12 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export declare function setReconciler(ReactDOM: any): void;
@@ -1,5 +0,0 @@
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";
@@ -1,30 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- export * from './app';
2
- export * from './connect';
3
- export * from './hooks';
4
- export * from './native-page';
5
- export * from './page';
@@ -1,8 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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";
@@ -1,10 +0,0 @@
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[];
@@ -1,10 +0,0 @@
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;
@@ -1,4 +0,0 @@
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;
@@ -1,5 +0,0 @@
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";
@@ -1,30 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- export * from './app';
2
- export * from './connect';
3
- export * from './hooks';
4
- export * from './page';
@@ -1,13 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- export * from './h';
2
- export * from './render';
3
- export * from './use';
@@ -1,7 +0,0 @@
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;
@@ -1,16 +0,0 @@
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 };
@@ -1 +0,0 @@
1
- export declare function use(fn: any, ele: any, accessor: any): void;
@@ -1,16 +0,0 @@
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;
@@ -1,10 +0,0 @@
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[];