@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/plugin-platform-harmony-ets",
3
- "version": "4.1.4-beta.0",
3
+ "version": "4.1.4-beta.2",
4
4
  "description": "OpenHarmony & 鸿蒙系统插件",
5
5
  "author": "O2Team",
6
6
  "homepage": "https://gitee.com/openharmony-sig/taro",
@@ -28,13 +28,13 @@
28
28
  "webpack-sources": "^3.2.3",
29
29
  "@babel/preset-react": "^7.24.1",
30
30
  "webpack": "5.91.0",
31
- "@tarojs/helper": "4.1.4-beta.0",
32
- "@tarojs/components": "4.1.4-beta.0",
33
- "@tarojs/runner-utils": "4.1.4-beta.0",
34
- "@tarojs/runtime": "4.1.4-beta.0",
35
- "@tarojs/service": "4.1.4-beta.0",
36
- "@tarojs/taro": "4.1.4-beta.0",
37
- "@tarojs/shared": "4.1.4-beta.0"
31
+ "@tarojs/components": "4.1.4-beta.2",
32
+ "@tarojs/runner-utils": "4.1.4-beta.2",
33
+ "@tarojs/helper": "4.1.4-beta.2",
34
+ "@tarojs/runtime": "4.1.4-beta.2",
35
+ "@tarojs/service": "4.1.4-beta.2",
36
+ "@tarojs/shared": "4.1.4-beta.2",
37
+ "@tarojs/taro": "4.1.4-beta.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "fast-glob": "^3.3.1",
@@ -43,7 +43,7 @@
43
43
  "@rollup/plugin-typescript": "^12.1.2",
44
44
  "solid-js": "^1.8.16",
45
45
  "tslib": "^2.4.0",
46
- "rollup-plugin-copy": "4.1.4-beta.0"
46
+ "rollup-plugin-copy": "4.1.4-beta.2"
47
47
  },
48
48
  "scripts": {
49
49
  "prod": "pnpm run build",
@@ -1,16 +0,0 @@
1
- import type Taro from '@tarojs/taro/types';
2
- export declare class EditorContext implements Taro.EditorContext {
3
- blur: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
4
- clear: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
5
- format: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
6
- getContents: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
7
- getSelectionText: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
8
- insertDivider: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
9
- insertImage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
10
- insertText: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
11
- redo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
12
- removeFormat: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
13
- scrollIntoView: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
14
- setContents: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
15
- undo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
16
- }
@@ -1,5 +0,0 @@
1
- export declare const READ_IMAGEVIDEO_PERMISSIONS = "ohos.permission.READ_IMAGEVIDEO";
2
- export declare const READ_MEDIA_PERMISSIONS = "ohos.permission.READ_MEDIA";
3
- export declare const WRITE_MEDIA_PERMISSIONS = "ohos.permission.WRITE_MEDIA";
4
- export declare const MEDIA_LOCATION_PERMISSIONS = "ohos.permission.MEDIA_LOCATION";
5
- export declare const IMAGE_PERMISSION: string[];
@@ -1,53 +0,0 @@
1
- export declare const TaroViewTagName = "view";
2
- export declare const TaroIconTagName = "icon";
3
- export declare const TaroProgressTagName = "progress";
4
- export declare const TaroRichTextTagName = "rich-text";
5
- export declare const TaroTextTagName = "text";
6
- export declare const TaroButtonTagName = "button";
7
- export declare const TaroCheckboxTagName = "checkbox";
8
- export declare const TaroCheckboxGroupTagName = "checkbox-group";
9
- export declare const TaroFormTagName = "form";
10
- export declare const TaroInputTagName = "input";
11
- export declare const TaroLabelTagName = "label";
12
- export declare const TaroPickerTagName = "picker";
13
- export declare const TaroPickerViewTagName = "picker-view";
14
- export declare const TaroPickerViewColumnTagName = "picker-view-column";
15
- export declare const TaroRadioTagName = "radio";
16
- export declare const TaroRadioGroupTagName = "radio-group";
17
- export declare const TaroSliderTagName = "slider";
18
- export declare const TaroSwitchTagName = "switch";
19
- export declare const TaroCoverImageTagName = "cover-image";
20
- export declare const TaroTextareaTagName = "textarea";
21
- export declare const TaroCoverViewTagName = "cover-view";
22
- export declare const TaroMovableAreaTagName = "movable-area";
23
- export declare const TaroMovableViewTagName = "movable-view";
24
- export declare const TaroScrollViewTagName = "scroll-view";
25
- export declare const TaroSwiperTagName = "swiper";
26
- export declare const TaroSwiperItemTagName = "swiper-item";
27
- export declare const TaroNavigatorTagName = "navigator";
28
- export declare const TaroAudioTagName = "audio";
29
- export declare const TaroCameraTagName = "camera";
30
- export declare const TaroImageTagName = "image";
31
- export declare const TaroLivePlayerTagName = "live-player";
32
- export declare const TaroVideoTagName = "video";
33
- export declare const TaroCanvasTagName = "canvas";
34
- export declare const TaroAdTagName = "ad";
35
- export declare const TaroWebViewTagName = "web-view";
36
- export declare const TaroBlockTagName = "block";
37
- export declare const TaroMapTagName = "map";
38
- export declare const TaroPageMetaTagName = "page-meta";
39
- export declare const TaroNavigationBarTagName = "navigation-bar";
40
- export declare const TaroSlotTagName = "slot";
41
- export declare const TaroNativeSlotTagName = "native-slot";
42
- export declare const TaroCustomWrapperTagName = "custom-wrapper";
43
- export declare const TaroSpanTagName = "span";
44
- export declare const TaroTabsTagName = "tabs";
45
- export declare const TaroTabBarTagName = "tab-bar";
46
- export declare const TaroTabContentTagName = "tab-content";
47
- export declare const TaroListTagName = "list";
48
- export declare const TaroListItemTagName = "list-item";
49
- export declare const TaroOpenDataTagName = "open-data";
50
- export declare const TaroIgnoreTagName = "ignore";
51
- export declare const TaroStickySectionTagName = "sticky-section";
52
- export declare const TaroStickyHeaderTagName = "sticky-header";
53
- export declare const TaroListViewTagName = "list-view";
@@ -1,7 +0,0 @@
1
- /// <reference types="types/runtime" />
2
- import { TaroAny, TaroElement } from '@tarojs/runtime';
3
- export declare class DynamicCenter {
4
- install(node: TaroElement, parentNode: TaroElement): void;
5
- uninstall(node: TaroElement): void;
6
- bindComponentToNodeWithDFS(node: TaroElement, component: TaroAny): void;
7
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="types/runtime" />
2
- import { EventOptions, TaroElement, TaroEvent } from '@tarojs/runtime';
3
- export declare function createTaroEvent(type: string, opts?: Partial<EventOptions>, node?: TaroElement): TaroEvent;
@@ -1,11 +0,0 @@
1
- export type TTreeNode = {
2
- type: string;
3
- name?: string;
4
- content?: string;
5
- attributes?: Record<string, string>;
6
- children?: TTreeNode[];
7
- endIndex?: number;
8
- selfClosing?: boolean;
9
- };
10
- declare function parseHTML(htmlString: string): TTreeNode[];
11
- export default parseHTML;
@@ -1,3 +0,0 @@
1
- /// <reference types="types/runtime" />
2
- import { TaroElement } from '@tarojs/runtime';
3
- export default function htmlParser(htmlString: string): TaroElement;
@@ -1,11 +0,0 @@
1
- /// <reference types="types/runtime" />
2
- import type { TaroRichTextElement } from '@tarojs/runtime';
3
- export declare function getSingleSelector(range: any, rangeKey: any): any[];
4
- export declare function getMultiSelector(ctx: any, range: any, rangeKey: any, value: any): any;
5
- export declare function getUnit(val: string | number): string;
6
- export declare function generateText(node: TaroRichTextElement): string;
7
- export declare function computeBackgroundPosition(style: any): {
8
- offsetX: any;
9
- offsetY: any;
10
- };
11
- export declare function convertVp2Px(val: string | number): number;
@@ -1,7 +0,0 @@
1
- export * from '@tarojs/components/mini';
2
- export declare const Span = "span";
3
- export declare const Tabs = "tabs";
4
- export declare const TabBar = "tab-bar";
5
- export declare const TabContent = "tab-content";
6
- export declare const List = "list";
7
- export declare const ListItem = "list-item";
@@ -1,2 +0,0 @@
1
- export { parseUrl, URL } from '@tarojs/runtime/dist/runtime.esm';
2
- export { URLSearchParams } from '@tarojs/runtime/dist/runtime.esm';
@@ -1,2 +0,0 @@
1
- import { TaroDocument } from '../dom/document';
2
- export declare const document: TaroDocument;
@@ -1 +0,0 @@
1
- export declare function getComputedStyle(node: any): any;
@@ -1 +0,0 @@
1
- export { History } from '@tarojs/runtime/dist/runtime.esm';
@@ -1 +0,0 @@
1
- export { Location } from '@tarojs/runtime/dist/runtime.esm';
@@ -1 +0,0 @@
1
- export { navigator } from '@tarojs/runtime/dist/runtime.esm';
@@ -1 +0,0 @@
1
- export { cancelAnimationFrame, now, requestAnimationFrame } from '@tarojs/runtime/dist/runtime.esm';
@@ -1,20 +0,0 @@
1
- import { TaroEventTarget } from '../dom/eventTarget';
2
- import { getComputedStyle } from './getComputedStyle';
3
- import type { TaroDocument } from '../dom/document';
4
- export declare class Window extends TaroEventTarget {
5
- _doc: TaroDocument;
6
- __taroAppConfig: any;
7
- __ohos: any;
8
- location: any;
9
- history: any;
10
- navigator: Navigator;
11
- getComputedStyle: typeof getComputedStyle;
12
- constructor();
13
- get document(): TaroDocument;
14
- get devicePixelRatio(): number;
15
- setTimeout(...args: Parameters<typeof setTimeout>): void;
16
- clearTimeout(...args: Parameters<typeof clearTimeout>): void;
17
- }
18
- export declare const window: Window;
19
- export declare const location: any;
20
- export declare const history: any;
@@ -1,17 +0,0 @@
1
- export { A, APP, BEHAVIORS, BODY, CATCH_VIEW, CATCHMOVE, CHANGE, CLASS, COMMENT, COMPILE_MODE, CONFIRM, CONTAINER, CONTEXT_ACTIONS, CURRENT_TARGET, CUSTOM_WRAPPER, DATASET, DATE, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, EVENT_CALLBACK_RESULT, EXTERNAL_CLASSES, FOCUS, HEAD, HOOKS_APP_ID, HTML, ID, INPUT, KEY_CODE, OBJECT, ON_HIDE, ON_LOAD, ON_READY, ON_SHOW, OPTIONS, PAGE_INIT, PROPERTY_THRESHOLD, PROPS, PURE_VIEW, ROOT_STR, SET_DATA, SET_TIMEOUT, STATIC_VIEW, STYLE, TARGET, TARO_RUNTIME, TIME_STAMP, TOUCHMOVE, TYPE, UID, VALUE, VIEW } from '@tarojs/runtime/dist/runtime.esm';
2
- export declare const ATTRIBUTES_CALLBACK_TRIGGER_MAP: {
3
- scrollTop: {
4
- triggerName: string;
5
- valueInspect: (value: any) => boolean;
6
- };
7
- scrollLeft: {
8
- triggerName: string;
9
- valueInspect: (value: any) => boolean;
10
- };
11
- focus: {
12
- triggerName: string;
13
- };
14
- animation: {
15
- triggerName: string;
16
- };
17
- };
@@ -1,4 +0,0 @@
1
- export declare const context: any;
2
- export declare const uiContext: any;
3
- export declare const Current: any;
4
- export declare const getCurrentInstance: () => any;
@@ -1,4 +0,0 @@
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;
@@ -1,15 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- import { TaroTextNode } from './node';
2
- declare class TaroComment extends TaroTextNode {
3
- constructor(data: string);
4
- }
5
- export { TaroComment };
@@ -1,7 +0,0 @@
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>>;
@@ -1,14 +0,0 @@
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 };
@@ -1,20 +0,0 @@
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 };
@@ -1,14 +0,0 @@
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 };
@@ -1,5 +0,0 @@
1
- import { TaroElement } from './element';
2
- import type { MovableAreaProps } from '@tarojs/components/types';
3
- export declare class TaroMovableAreaElement extends TaroElement<MovableAreaProps> {
4
- constructor();
5
- }
@@ -1,5 +0,0 @@
1
- import { TaroElement } from './element';
2
- import type { ProgressProps } from '@tarojs/components/types';
3
- export declare class TaroProgressElement extends TaroElement<ProgressProps> {
4
- constructor();
5
- }
@@ -1,5 +0,0 @@
1
- import { TaroElement } from './element';
2
- import type { TextProps } from '@tarojs/components/types';
3
- export declare class TaroTextElement extends TaroElement<TextProps> {
4
- constructor();
5
- }
@@ -1,15 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export { eventSource } from '@tarojs/runtime/dist/runtime.esm';
@@ -1,24 +0,0 @@
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>;
@@ -1,17 +0,0 @@
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 };
@@ -1,62 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { TaroElement } from '../element/element';
3
- export default function convertWebStyle2HmStyle(webStyle: CSSProperties, node?: TaroElement): Record<string, any>;
@@ -1,83 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export { eventCenter, Events, EventsType } from '@tarojs/runtime/dist/runtime.esm';
@@ -1 +0,0 @@
1
- export { env } from '@tarojs/runtime/dist/runtime.esm';
@@ -1,22 +0,0 @@
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';
@@ -1,9 +0,0 @@
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
- }
@@ -1,6 +0,0 @@
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>;