@tarojs/plugin-platform-harmony-ets 4.1.0-alpha.0 → 4.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/components-react.js +2 -41
- package/dist/components/components-react.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/rollup.config.d.mts +3 -0
- package/dist/runtime-framework/solid/reconciler/props.ts +1 -1
- package/dist/runtime-utils.js +394 -394
- package/dist/runtime-utils.js.map +1 -1
- package/dist/runtime.js +394 -394
- package/dist/runtime.js.map +1 -1
- package/dist/src/apis/apis.d.ts +19 -0
- package/dist/src/apis/base/crypto.d.ts +1 -0
- package/dist/src/apis/base/debug.d.ts +3 -0
- package/dist/src/apis/base/index.d.ts +10 -0
- package/dist/src/apis/base/performance.d.ts +5 -0
- package/dist/src/apis/base/system.d.ts +3 -0
- package/dist/src/apis/base/update.d.ts +2 -0
- package/dist/src/apis/base/weapp/app-event.d.ts +19 -0
- package/dist/src/apis/base/weapp/life-cycle.d.ts +3 -0
- package/dist/src/apis/canvas/index.d.ts +10 -0
- package/dist/src/apis/data-analysis/index.d.ts +4 -0
- package/dist/src/apis/device/accelerometer.d.ts +17 -0
- package/dist/src/apis/device/accessibility.d.ts +1 -0
- package/dist/src/apis/device/battery.d.ts +3 -0
- package/dist/src/apis/device/bluetooth-ble.d.ts +16 -0
- package/dist/src/apis/device/bluetooth-peripheral.d.ts +3 -0
- package/dist/src/apis/device/bluetooth.d.ts +13 -0
- package/dist/src/apis/device/calendar.d.ts +2 -0
- package/dist/src/apis/device/clipboard.d.ts +9 -0
- package/dist/src/apis/device/compass.d.ts +16 -0
- package/dist/src/apis/device/contact.d.ts +2 -0
- package/dist/src/apis/device/crypto.d.ts +1 -0
- package/dist/src/apis/device/gyroscope.d.ts +4 -0
- package/dist/src/apis/device/iBeacon.d.ts +7 -0
- package/dist/src/apis/device/index.d.ts +24 -0
- package/dist/src/apis/device/keyboard.d.ts +5 -0
- package/dist/src/apis/device/memory.d.ts +2 -0
- package/dist/src/apis/device/motion.d.ts +4 -0
- package/dist/src/apis/device/network.d.ts +14 -0
- package/dist/src/apis/device/nfc.d.ts +7 -0
- package/dist/src/apis/device/phone.d.ts +2 -0
- package/dist/src/apis/device/scan.d.ts +1 -0
- package/dist/src/apis/device/screen.d.ts +10 -0
- package/dist/src/apis/device/sms.d.ts +1 -0
- package/dist/src/apis/device/vibrate.d.ts +3 -0
- package/dist/src/apis/device/wifi.d.ts +12 -0
- package/dist/src/apis/ext/index.d.ts +2 -0
- package/dist/src/apis/files/index.d.ts +32 -0
- package/dist/src/apis/files/manager.d.ts +28 -0
- package/dist/src/apis/framework/index.d.ts +18 -0
- package/dist/src/apis/index.d.ts +22 -0
- package/dist/src/apis/location/index.d.ts +13 -0
- package/dist/src/apis/media/EditorContext.d.ts +16 -0
- package/dist/src/apis/media/audio/index.d.ts +12 -0
- package/dist/src/apis/media/background-audio/index.d.ts +12 -0
- package/dist/src/apis/media/camera.d.ts +2 -0
- package/dist/src/apis/media/common.d.ts +3 -0
- package/dist/src/apis/media/image/index.d.ts +6 -0
- package/dist/src/apis/media/index.d.ts +13 -0
- package/dist/src/apis/media/live.d.ts +2 -0
- package/dist/src/apis/media/map.d.ts +1 -0
- package/dist/src/apis/media/media-recorder.d.ts +1 -0
- package/dist/src/apis/media/recorder.d.ts +3 -0
- package/dist/src/apis/media/video/index.d.ts +7 -0
- package/dist/src/apis/media/video-decoder.d.ts +1 -0
- package/dist/src/apis/media/video-processing.d.ts +1 -0
- package/dist/src/apis/media/voip.d.ts +16 -0
- package/dist/src/apis/navigate/index.d.ts +5 -0
- package/dist/src/apis/network/downloadFile.d.ts +2 -0
- package/dist/src/apis/network/index.d.ts +7 -0
- package/dist/src/apis/network/mdns.d.ts +10 -0
- package/dist/src/apis/network/request.d.ts +2 -0
- package/dist/src/apis/network/tcp.d.ts +1 -0
- package/dist/src/apis/network/udp.d.ts +1 -0
- package/dist/src/apis/network/uploadFile.d.ts +2 -0
- package/dist/src/apis/network/webSocket.d.ts +2 -0
- package/dist/src/apis/open-api/account.d.ts +1 -0
- package/dist/src/apis/open-api/address.d.ts +1 -0
- package/dist/src/apis/open-api/authorize.d.ts +2 -0
- package/dist/src/apis/open-api/card.d.ts +2 -0
- package/dist/src/apis/open-api/channels-live.d.ts +8 -0
- package/dist/src/apis/open-api/customer-service.d.ts +1 -0
- package/dist/src/apis/open-api/device-voip.d.ts +2 -0
- package/dist/src/apis/open-api/facial.d.ts +4 -0
- package/dist/src/apis/open-api/favorites.d.ts +2 -0
- package/dist/src/apis/open-api/group.d.ts +1 -0
- package/dist/src/apis/open-api/index.d.ts +21 -0
- package/dist/src/apis/open-api/invoice.d.ts +2 -0
- package/dist/src/apis/open-api/license-plate.d.ts +1 -0
- package/dist/src/apis/open-api/login.d.ts +3 -0
- package/dist/src/apis/open-api/my-miniprogram.d.ts +1 -0
- package/dist/src/apis/open-api/privacy.d.ts +4 -0
- package/dist/src/apis/open-api/red-package.d.ts +1 -0
- package/dist/src/apis/open-api/settings.d.ts +2 -0
- package/dist/src/apis/open-api/soter.d.ts +3 -0
- package/dist/src/apis/open-api/subscribe-message.d.ts +2 -0
- package/dist/src/apis/open-api/user-info.d.ts +15 -0
- package/dist/src/apis/open-api/werun.d.ts +2 -0
- package/dist/src/apis/payment/index.d.ts +3 -0
- package/dist/src/apis/route/index.d.ts +10 -0
- package/dist/src/apis/share/index.d.ts +20 -0
- package/dist/src/apis/storage/background-fetch.d.ts +4 -0
- package/dist/src/apis/storage/cache-manager.d.ts +1 -0
- package/dist/src/apis/storage/index.d.ts +19 -0
- package/dist/src/apis/ui/animation/animation.d.ts +56 -0
- package/dist/src/apis/ui/animation/index.d.ts +3 -0
- package/dist/src/apis/ui/background.d.ts +2 -0
- package/dist/src/apis/ui/custom-component.d.ts +2 -0
- package/dist/src/apis/ui/fonts.d.ts +1 -0
- package/dist/src/apis/ui/index.d.ts +12 -0
- package/dist/src/apis/ui/interaction/index.d.ts +8 -0
- package/dist/src/apis/ui/menu.d.ts +1 -0
- package/dist/src/apis/ui/navigation-bar/index.d.ts +6 -0
- package/dist/src/apis/ui/pull-down-refresh.d.ts +3 -0
- package/dist/src/apis/ui/scroll/index.d.ts +5 -0
- package/dist/src/apis/ui/sticky.d.ts +1 -0
- package/dist/src/apis/ui/tab-bar.d.ts +9 -0
- package/dist/src/apis/ui/window.d.ts +14 -0
- package/dist/src/apis/utils/handler.d.ts +46 -0
- package/dist/src/apis/utils/index.d.ts +17 -0
- package/dist/src/apis/utils/permissions.d.ts +5 -0
- package/dist/src/apis/utils/types.d.ts +11 -0
- package/dist/src/apis/utils/validate.d.ts +39 -0
- package/dist/src/apis/worker/index.d.ts +1 -0
- package/dist/src/apis/wxml/IntersectionObserver.d.ts +12 -0
- package/dist/src/apis/wxml/index.d.ts +7 -0
- package/dist/src/apis/wxml/nodesRef.d.ts +14 -0
- package/dist/src/apis/wxml/selectorQuery.d.ts +39 -0
- package/dist/src/components/components-harmony-ets/tag.d.ts +53 -0
- package/dist/src/components/components-harmony-ets/utils/DynamicCenter.d.ts +7 -0
- package/dist/src/components/components-harmony-ets/utils/events.d.ts +3 -0
- package/dist/src/components/components-harmony-ets/utils/htmlParser/HarmonyHTMLParser.d.ts +11 -0
- package/dist/src/components/components-harmony-ets/utils/htmlParser/index.d.ts +3 -0
- package/dist/src/components/components-harmony-ets/utils/index.d.ts +11 -0
- package/dist/src/components/components-react.d.ts +7 -0
- package/dist/src/components/index.d.ts +119 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/program/arkTS.d.ts +40 -0
- package/dist/src/program/harmony.d.ts +36 -0
- package/dist/src/program/jsUI.d.ts +60 -0
- package/dist/src/runtime-ets/bom/URL.d.ts +2 -0
- package/dist/src/runtime-ets/bom/document.d.ts +2 -0
- package/dist/src/runtime-ets/bom/getComputedStyle.d.ts +1 -0
- package/dist/src/runtime-ets/bom/history.d.ts +1 -0
- package/dist/src/runtime-ets/bom/location.d.ts +1 -0
- package/dist/src/runtime-ets/bom/navigator.d.ts +1 -0
- package/dist/src/runtime-ets/bom/raf.d.ts +1 -0
- package/dist/src/runtime-ets/bom/window.d.ts +20 -0
- package/dist/src/runtime-ets/constant.d.ts +17 -0
- package/dist/src/runtime-ets/current.d.ts +4 -0
- package/dist/src/runtime-ets/dom/bind.d.ts +4 -0
- package/dist/src/runtime-ets/dom/class-list.d.ts +15 -0
- package/dist/src/runtime-ets/dom/comment.d.ts +5 -0
- package/dist/src/runtime-ets/dom/cssNesting.d.ts +7 -0
- package/dist/src/runtime-ets/dom/cssStyleDeclaration.d.ts +14 -0
- package/dist/src/runtime-ets/dom/document.d.ts +20 -0
- package/dist/src/runtime-ets/dom/element/index.d.ts +14 -0
- package/dist/src/runtime-ets/dom/element/movableArea.d.ts +5 -0
- package/dist/src/runtime-ets/dom/element/progress.d.ts +5 -0
- package/dist/src/runtime-ets/dom/element/text.d.ts +5 -0
- package/dist/src/runtime-ets/dom/element/webView.d.ts +15 -0
- package/dist/src/runtime-ets/dom/event-source.d.ts +1 -0
- package/dist/src/runtime-ets/dom/event.d.ts +24 -0
- package/dist/src/runtime-ets/dom/eventTarget.d.ts +17 -0
- package/dist/src/runtime-ets/dom/node.d.ts +62 -0
- package/dist/src/runtime-ets/dom/stylesheet/covertWeb2Hm.d.ts +3 -0
- package/dist/src/runtime-ets/dom/stylesheet/index.d.ts +83 -0
- package/dist/src/runtime-ets/emitter/emitter.d.ts +1 -0
- package/dist/src/runtime-ets/env.d.ts +1 -0
- package/dist/src/runtime-ets/index.d.ts +22 -0
- package/dist/src/runtime-ets/interface/event.d.ts +9 -0
- package/dist/src/runtime-ets/interface/index.d.ts +6 -0
- package/dist/src/runtime-ets/utils/index.d.ts +26 -0
- package/dist/src/runtime-ets/utils/info.d.ts +11 -0
- package/dist/src/runtime-ets/utils/router.d.ts +1 -0
- package/dist/src/runtime-framework/react/app.d.ts +12 -0
- package/dist/src/runtime-framework/react/connect.d.ts +1 -0
- package/dist/src/runtime-framework/react/constant.d.ts +5 -0
- package/dist/src/runtime-framework/react/hooks.d.ts +30 -0
- package/dist/src/runtime-framework/react/index.d.ts +5 -0
- package/dist/src/runtime-framework/react/native-page.d.ts +8 -0
- package/dist/src/runtime-framework/react/page.d.ts +13 -0
- package/dist/src/runtime-framework/react/utils/index.d.ts +7 -0
- package/dist/src/runtime-framework/react/utils/is.d.ts +10 -0
- package/dist/src/runtime-framework/solid/app.d.ts +10 -0
- package/dist/src/runtime-framework/solid/connect.d.ts +4 -0
- package/dist/src/runtime-framework/solid/constant.d.ts +5 -0
- package/dist/src/runtime-framework/solid/hooks.d.ts +30 -0
- package/dist/src/runtime-framework/solid/index.d.ts +4 -0
- package/dist/src/runtime-framework/solid/page.d.ts +13 -0
- package/dist/src/runtime-framework/solid/reconciler/h.d.ts +8 -0
- package/dist/src/runtime-framework/solid/reconciler/index.d.ts +3 -0
- package/dist/src/runtime-framework/solid/reconciler/props.d.ts +7 -0
- package/dist/src/runtime-framework/solid/reconciler/render.d.ts +16 -0
- package/dist/src/runtime-framework/solid/reconciler/use.d.ts +1 -0
- package/dist/src/runtime-framework/solid/utils/index.d.ts +16 -0
- package/dist/src/runtime-framework/solid/utils/is.d.ts +10 -0
- package/dist/src/runtime-utils.d.ts +12 -0
- package/dist/src/template.d.ts +43 -0
- package/dist/src/utils/api-loader.d.ts +1 -0
- package/dist/src/utils/constants.d.ts +4 -0
- package/dist/src/utils/index.d.ts +3 -0
- package/package.json +10 -10
- package/dist/index.d.ts +0 -152
- package/dist/runtime-utils.d.ts +0 -826
- /package/dist/{runtime.d.ts → src/runtime.d.ts} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Attributes, RecursiveTemplate } from '@tarojs/shared/dist/template';
|
|
2
|
+
interface Component {
|
|
3
|
+
nodeName: string;
|
|
4
|
+
nodeAlias: string;
|
|
5
|
+
attributes: Attributes;
|
|
6
|
+
}
|
|
7
|
+
interface Components {
|
|
8
|
+
[key: string]: Record<string, string>;
|
|
9
|
+
}
|
|
10
|
+
interface ComponentConfig {
|
|
11
|
+
includes: Set<string>;
|
|
12
|
+
exclude: Set<string>;
|
|
13
|
+
thirdPartyComponents: Map<string, Set<string>>;
|
|
14
|
+
includeAll: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class Template extends RecursiveTemplate {
|
|
17
|
+
Adapter: {
|
|
18
|
+
if: string;
|
|
19
|
+
else: string;
|
|
20
|
+
elseif: string;
|
|
21
|
+
for: string;
|
|
22
|
+
forItem: string;
|
|
23
|
+
forIndex: string;
|
|
24
|
+
key: string;
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
nativeComps: string[];
|
|
28
|
+
usedNativeComps: string[];
|
|
29
|
+
patchVoidElements: string[];
|
|
30
|
+
constructor();
|
|
31
|
+
buildHeaderTemplate: (componentConfig: any) => string;
|
|
32
|
+
createMiniComponents(components: Components): Components;
|
|
33
|
+
buildTemplate: (componentConfig: ComponentConfig) => string;
|
|
34
|
+
buildFocusComponentTemplate(comp: Component): string;
|
|
35
|
+
buildStandardComponentTemplate(comp: Component): string;
|
|
36
|
+
generateComponentTemplateSrc(comp: Component, nodeName?: any): string;
|
|
37
|
+
buildPlainTextTemplate(): string;
|
|
38
|
+
buildAttrs(attrs: any, nodeName: any): string;
|
|
39
|
+
replacePropName(name: string, value: string, componentName?: string): string;
|
|
40
|
+
getEvents(): any;
|
|
41
|
+
buildPageTemplate: (baseTempPath: string) => string;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function apiLoader(str: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/plugin-platform-harmony-ets",
|
|
3
|
-
"version": "4.1.0-alpha.
|
|
3
|
+
"version": "4.1.0-alpha.2",
|
|
4
4
|
"description": "OpenHarmony & 鸿蒙系统插件",
|
|
5
5
|
"author": "O2Team",
|
|
6
6
|
"homepage": "https://gitee.com/openharmony-sig/taro",
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
"webpack-sources": "^3.2.3",
|
|
29
29
|
"@babel/preset-react": "^7.24.1",
|
|
30
30
|
"webpack": "5.91.0",
|
|
31
|
-
"@tarojs/components": "4.1.0-alpha.
|
|
32
|
-
"@tarojs/
|
|
33
|
-
"@tarojs/
|
|
34
|
-
"@tarojs/
|
|
35
|
-
"@tarojs/shared": "4.1.0-alpha.
|
|
36
|
-
"@tarojs/
|
|
37
|
-
"@tarojs/helper": "4.1.0-alpha.
|
|
31
|
+
"@tarojs/components": "4.1.0-alpha.2",
|
|
32
|
+
"@tarojs/runner-utils": "4.1.0-alpha.2",
|
|
33
|
+
"@tarojs/service": "4.1.0-alpha.2",
|
|
34
|
+
"@tarojs/taro": "4.1.0-alpha.2",
|
|
35
|
+
"@tarojs/shared": "4.1.0-alpha.2",
|
|
36
|
+
"@tarojs/runtime": "4.1.0-alpha.2",
|
|
37
|
+
"@tarojs/helper": "4.1.0-alpha.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"fast-glob": "^3.3.1",
|
|
41
41
|
"rollup": "^3.29.4",
|
|
42
42
|
"rollup-plugin-node-externals": "^5.0.0",
|
|
43
|
-
"rollup
|
|
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.0-alpha.
|
|
46
|
+
"rollup-plugin-copy": "4.1.0-alpha.2"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"prod": "pnpm run build",
|
package/dist/index.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { IFileType, TConfig, TaroPlatform, IPluginContext, TaroPlatformBase } from "@tarojs/service";
|
|
3
|
-
import { PLATFORM_TYPE } from "@tarojs/shared";
|
|
4
|
-
declare abstract class TaroPlatformHarmony<T extends TConfig = TConfig> extends TaroPlatform<T> {
|
|
5
|
-
platformType: PLATFORM_TYPE;
|
|
6
|
-
globalObject: string;
|
|
7
|
-
abstract fileType: IFileType;
|
|
8
|
-
abstract useETS: boolean;
|
|
9
|
-
abstract useJSON5: boolean;
|
|
10
|
-
taroComponentsPath: string;
|
|
11
|
-
/**
|
|
12
|
-
* 1. 清空 dist 文件夹
|
|
13
|
-
* 2. 输出编译提示
|
|
14
|
-
*/
|
|
15
|
-
private setup;
|
|
16
|
-
private setupHarmonyApp;
|
|
17
|
-
protected printDevelopmentTip(): void;
|
|
18
|
-
/**
|
|
19
|
-
* 返回当前项目内的 runner 包
|
|
20
|
-
*/
|
|
21
|
-
protected getRunner(): Promise<any>;
|
|
22
|
-
/**
|
|
23
|
-
* 准备 runner 参数
|
|
24
|
-
* @param extraOptions 需要额外合入 Options 的配置项
|
|
25
|
-
*/
|
|
26
|
-
protected getOptions(extraOptions?: {}): any;
|
|
27
|
-
/**
|
|
28
|
-
* 调用 runner 开始编译
|
|
29
|
-
* @param extraOptions 需要额外传入 runner 的配置项
|
|
30
|
-
*/
|
|
31
|
-
private build;
|
|
32
|
-
private buildHarmonyApp;
|
|
33
|
-
/**
|
|
34
|
-
* 调用 runner 开启编译
|
|
35
|
-
*/
|
|
36
|
-
start(): Promise<void>;
|
|
37
|
-
}
|
|
38
|
-
declare class Harmony extends TaroPlatformHarmony {
|
|
39
|
-
#private;
|
|
40
|
-
platform: string;
|
|
41
|
-
globalObject: string;
|
|
42
|
-
fileType: {
|
|
43
|
-
templ: string;
|
|
44
|
-
style: string;
|
|
45
|
-
config: string;
|
|
46
|
-
script: string;
|
|
47
|
-
};
|
|
48
|
-
useETS: boolean;
|
|
49
|
-
useJSON5: boolean;
|
|
50
|
-
runtimePath: string[] | string;
|
|
51
|
-
taroComponentsPath: string;
|
|
52
|
-
apiEntryList: RegExp[];
|
|
53
|
-
constructor(ctx: IPluginContext, config: TConfig);
|
|
54
|
-
get framework(): "solid" | "vue3" | "react" | "preact" | "none";
|
|
55
|
-
get aliasFramework(): string;
|
|
56
|
-
get apiLibrary(): string;
|
|
57
|
-
get apiEntry(): RegExp[];
|
|
58
|
-
get componentLibrary(): string;
|
|
59
|
-
get runtimeLibrary(): string;
|
|
60
|
-
get runtimeFrameworkLibrary(): string;
|
|
61
|
-
get defineConstants(): Record<string, string>;
|
|
62
|
-
extensions: string[];
|
|
63
|
-
excludeLibraries: (string | RegExp)[];
|
|
64
|
-
externalDeps: [
|
|
65
|
-
string,
|
|
66
|
-
RegExp,
|
|
67
|
-
string?
|
|
68
|
-
][];
|
|
69
|
-
harmonyScope: RegExp[];
|
|
70
|
-
indexOfLibraries(lib: string): number;
|
|
71
|
-
removeFromLibraries(lib: string): void;
|
|
72
|
-
moveLibraries(lib: string, target?: string, basedir?: string, sync?: boolean): void;
|
|
73
|
-
replaceDefineValue(code: string, define: Record<string, string>, ext?: string): string;
|
|
74
|
-
/**
|
|
75
|
-
* 修改 Vite 配置
|
|
76
|
-
*/
|
|
77
|
-
modifyViteConfig(): void;
|
|
78
|
-
handleResourceEmit(outDir: string, basedir?: string): void;
|
|
79
|
-
}
|
|
80
|
-
declare module HarmonyWrapper {
|
|
81
|
-
export { Harmony };
|
|
82
|
-
}
|
|
83
|
-
import HarmonyOS_ArkTS = HarmonyWrapper.Harmony;
|
|
84
|
-
declare class Harmony$0 extends TaroPlatformBase {
|
|
85
|
-
platform: string;
|
|
86
|
-
globalObject: string;
|
|
87
|
-
runtimePath: string;
|
|
88
|
-
taroComponentsPath: string;
|
|
89
|
-
fileType: {
|
|
90
|
-
templ: string;
|
|
91
|
-
style: string;
|
|
92
|
-
config: string;
|
|
93
|
-
script: string;
|
|
94
|
-
};
|
|
95
|
-
template: any;
|
|
96
|
-
/**
|
|
97
|
-
* 1. setupTransaction - init
|
|
98
|
-
* 2. setup
|
|
99
|
-
* 3. setupTransaction - close
|
|
100
|
-
* 4. buildTransaction - init
|
|
101
|
-
* 5. build
|
|
102
|
-
* 6. buildTransaction - close
|
|
103
|
-
*/
|
|
104
|
-
constructor(ctx: any, config: any);
|
|
105
|
-
/**
|
|
106
|
-
* 增加组件或修改组件属性
|
|
107
|
-
*/
|
|
108
|
-
modifyComponents(): void;
|
|
109
|
-
/**
|
|
110
|
-
* 不需要转 rpx
|
|
111
|
-
*/
|
|
112
|
-
modifyPostcssConfigs(config: Record<string, any>): void;
|
|
113
|
-
/**
|
|
114
|
-
* 模板自定义组件 js
|
|
115
|
-
* 等鸿蒙支持 template 后需要重构
|
|
116
|
-
*/
|
|
117
|
-
addEntry(): void;
|
|
118
|
-
/**
|
|
119
|
-
* 把 app、pages、自定义组件的 js 改造为鸿蒙的 export default 导出形式
|
|
120
|
-
*/
|
|
121
|
-
modifyTaroExport(): void;
|
|
122
|
-
/**
|
|
123
|
-
* 修改最终的编译产物
|
|
124
|
-
* 1. 生成模板自定义组件的 xml、css 文件
|
|
125
|
-
* 2. 删除多余的文件
|
|
126
|
-
* 3. 把 components-harmony 中被使用到的组件移动到输出目录
|
|
127
|
-
*/
|
|
128
|
-
modifyBuildAssets(ctx: any, config: any): void;
|
|
129
|
-
modifyWebpackConfig(): void;
|
|
130
|
-
modifyHarmonyConfig(pages: any, { projectPath, hapName, name }: {
|
|
131
|
-
projectPath: any;
|
|
132
|
-
hapName: any;
|
|
133
|
-
name: any;
|
|
134
|
-
}): void;
|
|
135
|
-
modifyHostPackage({ projectPath, hapName }: {
|
|
136
|
-
projectPath: any;
|
|
137
|
-
hapName?: string | undefined;
|
|
138
|
-
}): Promise<any>;
|
|
139
|
-
getChunkEntryModule(compilation: any, chunk: any, compiler?: string): any;
|
|
140
|
-
checkMetaType(entryModule: any): boolean;
|
|
141
|
-
isHarmonyRequest(request: string): boolean;
|
|
142
|
-
}
|
|
143
|
-
declare module HarmonyWrapper {
|
|
144
|
-
export { Harmony$0 as Harmony };
|
|
145
|
-
}
|
|
146
|
-
import HarmonyOS_JSUI = HarmonyWrapper.Harmony;
|
|
147
|
-
interface IOptions {
|
|
148
|
-
disableArkTS?: boolean;
|
|
149
|
-
useConfigName?: string;
|
|
150
|
-
}
|
|
151
|
-
declare const _default: (ctx: IPluginContext, options?: IOptions) => void;
|
|
152
|
-
export { _default as default, HarmonyOS_ArkTS, HarmonyOS_JSUI, IOptions };
|