@weapp-vite/web 1.4.19 → 1.4.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/compiler/wxml/types.d.mts +1 -2
- package/dist/css/wxss.d.mts +3 -4
- package/dist/plugin/assets.d.mts +1 -2
- package/dist/plugin/index.d.mts +2 -2
- package/dist/plugin/types.d.mts +5 -6
- package/dist/runtime/button/index.d.mts +3 -4
- package/dist/runtime/component/index.d.mts +2 -2
- package/dist/runtime/component/types.d.mts +13 -14
- package/dist/runtime/execution.d.mts +3 -4
- package/dist/runtime/host/index.d.mts +9 -9
- package/dist/runtime/host/types.d.mts +4 -5
- package/dist/runtime/hostGlobals.d.mts +1 -2
- package/dist/runtime/legacyTemplate/index.d.mts +2 -3
- package/dist/runtime/legacyTemplate/types.d.mts +2 -3
- package/dist/runtime/nativeComponents/form.d.mts +1 -2
- package/dist/runtime/nativeComponents/image.d.mts +1 -2
- package/dist/runtime/nativeComponents/index.d.mts +2 -2
- package/dist/runtime/nativeComponents/input.d.mts +1 -2
- package/dist/runtime/nativeComponents/scrollView.d.mts +1 -2
- package/dist/runtime/nativeComponents/switch.d.mts +1 -2
- package/dist/runtime/nativeComponents/textarea.d.mts +1 -2
- package/dist/runtime/nativeComponents/video/helpers.d.mts +3 -4
- package/dist/runtime/navigationBar/index.d.mts +2 -2
- package/dist/runtime/pageLayout.d.mts +2 -3
- package/dist/runtime/polyfill/async.d.mts +1 -2
- package/dist/runtime/polyfill/deviceAuthSystemApi.d.mts +27 -28
- package/dist/runtime/polyfill/index.d.mts +15 -15
- package/dist/runtime/polyfill/routeRuntime/history.d.mts +8 -9
- package/dist/runtime/polyfill/routeRuntime/options.d.mts +8 -9
- package/dist/runtime/polyfill/routeRuntime.d.mts +11 -12
- package/dist/runtime/polyfill/runtimeDataApi.d.mts +28 -29
- package/dist/runtime/polyfill/types/base.d.mts +2 -3
- package/dist/runtime/polyfill/types/common.d.mts +26 -27
- package/dist/runtime/polyfill/types/locationRuntime.d.mts +34 -35
- package/dist/runtime/polyfill/types/mediaAuth.d.mts +34 -35
- package/dist/runtime/polyfill/types/platformRuntime.d.mts +25 -26
- package/dist/runtime/polyfill/types/systemAuth.d.mts +22 -23
- package/dist/runtime/polyfill/types/tabBarRuntime.d.mts +5 -6
- package/dist/runtime/polyfill/uiMediaApi.d.mts +42 -43
- package/dist/runtime/renderContext.d.mts +2 -3
- package/dist/runtime/rpx.d.mts +2 -3
- package/dist/runtime/seo/index.d.mts +11 -11
- package/dist/runtime/style.d.mts +2 -3
- package/dist/runtime/template.d.mts +3 -3
- package/dist/runtime/viewport/index.d.mts +4 -4
- package/dist/runtime/viewport/types.d.mts +2 -3
- package/dist/runtime/warning.d.mts +3 -4
- package/dist/runtime/wevu.d.mts +3 -4
- package/dist/shared/tabBar.d.mts +2 -3
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/compiler/wxml/types.d.ts
|
|
2
|
-
interface NavigationBarConfig {
|
|
2
|
+
export interface NavigationBarConfig {
|
|
3
3
|
title?: string;
|
|
4
4
|
backgroundColor?: string;
|
|
5
5
|
textStyle?: string;
|
|
@@ -8,5 +8,4 @@ interface NavigationBarConfig {
|
|
|
8
8
|
navigationStyle?: string;
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { NavigationBarConfig };
|
|
12
11
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/css/wxss.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import postcss from "postcss";
|
|
2
2
|
//#region src/css/wxss.d.ts
|
|
3
|
-
interface WxssTransformOptions {
|
|
3
|
+
export interface WxssTransformOptions {
|
|
4
4
|
/**
|
|
5
5
|
* 1rpx 对应的 CSS 像素数。
|
|
6
6
|
* 默认值近似于 750rpx 设计稿在 375px 屏幕上的换算。
|
|
@@ -17,10 +17,9 @@ interface WxssTransformOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
rpxVar?: string;
|
|
19
19
|
}
|
|
20
|
-
interface WxssTransformResult {
|
|
20
|
+
export interface WxssTransformResult {
|
|
21
21
|
css: string;
|
|
22
22
|
}
|
|
23
|
-
declare function transformWxssToCss(source: string, options?: WxssTransformOptions): WxssTransformResult;
|
|
23
|
+
export declare function transformWxssToCss(source: string, options?: WxssTransformOptions): WxssTransformResult;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { WxssTransformOptions, WxssTransformResult, transformWxssToCss };
|
|
26
25
|
//# sourceMappingURL=wxss.d.mts.map
|
package/dist/plugin/assets.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
2
2
|
//#region src/plugin/assets.d.ts
|
|
3
3
|
type WebAssetNext = (error?: unknown) => void;
|
|
4
|
-
declare function createWebAssetMiddleware(srcRoot: string): (request: IncomingMessage, response: ServerResponse, next: WebAssetNext) => void;
|
|
4
|
+
export declare function createWebAssetMiddleware(srcRoot: string): (request: IncomingMessage, response: ServerResponse, next: WebAssetNext) => void;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { createWebAssetMiddleware };
|
|
7
6
|
//# sourceMappingURL=assets.d.mts.map
|
package/dist/plugin/index.d.mts
CHANGED
|
@@ -61,7 +61,7 @@ interface WeappWebVitePlugin {
|
|
|
61
61
|
handleHotUpdate?: (this: WebPluginContext, ctx: WebHmrContext) => void | Promise<void>;
|
|
62
62
|
transform?: (this: WebPluginContext, code: string, id: string) => WebTransformResult | Promise<WebTransformResult>;
|
|
63
63
|
}
|
|
64
|
-
declare function weappWebPlugin(options?: WeappWebPluginOptions): WeappWebVitePlugin;
|
|
64
|
+
export declare function weappWebPlugin(options?: WeappWebPluginOptions): WeappWebVitePlugin;
|
|
65
65
|
//#endregion
|
|
66
|
-
export {
|
|
66
|
+
export type { WeappWebPluginOptions };
|
|
67
67
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/plugin/types.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { WebRoutingConfig } from "../runtime/polyfill/routeRuntime/history.mjs";
|
|
|
3
3
|
import { WebResourceHintsConfig, WebRuntimeSeoConfig as WebSeoConfig } from "../runtime/seo/index.mjs";
|
|
4
4
|
import "wevu/compiler";
|
|
5
5
|
//#region src/plugin/types.d.ts
|
|
6
|
-
interface WeappWebPluginOptions {
|
|
6
|
+
export interface WeappWebPluginOptions {
|
|
7
7
|
wxss?: WxssTransformOptions;
|
|
8
8
|
/**
|
|
9
9
|
* 小程序项目的源代码根目录,默认 `<root>/src`。
|
|
@@ -74,18 +74,17 @@ interface WeappWebPluginOptions {
|
|
|
74
74
|
/** @internal */
|
|
75
75
|
__resolveAppConfig?: (appConfigPath: string) => Promise<Record<string, unknown> | undefined>;
|
|
76
76
|
}
|
|
77
|
-
type WebStylePreprocessOptions = Record<string, Record<string, unknown>>;
|
|
78
|
-
interface WebResolvedComponent {
|
|
77
|
+
export type WebStylePreprocessOptions = Record<string, Record<string, unknown>>;
|
|
78
|
+
export interface WebResolvedComponent {
|
|
79
79
|
name: string;
|
|
80
80
|
from: string;
|
|
81
81
|
resolvedId?: string;
|
|
82
82
|
sourceType?: 'wevu-sfc' | 'native';
|
|
83
83
|
}
|
|
84
|
-
type WebComponentResolver = {
|
|
84
|
+
export type WebComponentResolver = {
|
|
85
85
|
components?: Record<string, string>;
|
|
86
86
|
resolve?: (componentName: string, baseName: string) => WebResolvedComponent | void;
|
|
87
87
|
} | ((componentName: string, baseName: string) => WebResolvedComponent | void);
|
|
88
|
-
type ResolveWebModuleId = (source: string, importer?: string) => Promise<string | undefined>;
|
|
88
|
+
export type ResolveWebModuleId = (source: string, importer?: string) => Promise<string | undefined>;
|
|
89
89
|
//#endregion
|
|
90
|
-
export { ResolveWebModuleId, WeappWebPluginOptions, WebComponentResolver, WebResolvedComponent, WebStylePreprocessOptions };
|
|
91
90
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FormConfig } from "../nativeComponents/form.mjs";
|
|
2
2
|
//#region src/runtime/button/index.d.ts
|
|
3
|
-
declare function ensureButtonDefined(): void;
|
|
4
|
-
declare function setButtonFormConfig(next: FormConfig): void;
|
|
5
|
-
type ButtonFormConfig = FormConfig;
|
|
3
|
+
export declare function ensureButtonDefined(): void;
|
|
4
|
+
export declare function setButtonFormConfig(next: FormConfig): void;
|
|
5
|
+
export type ButtonFormConfig = FormConfig;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { ButtonFormConfig, ensureButtonDefined, setButtonFormConfig };
|
|
8
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentConstructor, ComponentOptions, ComponentPublicInstance, DefineComponentOptions, PropertyOption } from "./types.mjs";
|
|
2
2
|
//#region src/runtime/component/index.d.ts
|
|
3
|
-
declare function defineComponent(tagName: string, options: DefineComponentOptions): ComponentConstructor;
|
|
3
|
+
export declare function defineComponent(tagName: string, options: DefineComponentOptions): ComponentConstructor;
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
5
|
+
export type { ComponentOptions, ComponentPublicInstance };
|
|
6
6
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { TemplateRenderer } from "../template.mjs";
|
|
2
2
|
//#region src/runtime/component/types.d.ts
|
|
3
|
-
type DataRecord = Record<string, any>;
|
|
4
|
-
interface PropertyOption {
|
|
3
|
+
export type DataRecord = Record<string, any>;
|
|
4
|
+
export interface PropertyOption {
|
|
5
5
|
type?: StringConstructor | NumberConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor | null;
|
|
6
6
|
optionalTypes?: Array<StringConstructor | NumberConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor>;
|
|
7
7
|
value?: any;
|
|
8
8
|
observer?: (this: ComponentPublicInstance, newValue: any, oldValue: any) => void;
|
|
9
9
|
}
|
|
10
|
-
type PropertyDeclaration = PropertyOption | StringConstructor | NumberConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor | null;
|
|
11
|
-
interface LifeTimeHooks {
|
|
10
|
+
export type PropertyDeclaration = PropertyOption | StringConstructor | NumberConstructor | BooleanConstructor | ObjectConstructor | ArrayConstructor | null;
|
|
11
|
+
export interface LifeTimeHooks {
|
|
12
12
|
created?: (this: ComponentPublicInstance) => void;
|
|
13
13
|
attached?: (this: ComponentPublicInstance) => void;
|
|
14
14
|
ready?: (this: ComponentPublicInstance) => void;
|
|
15
15
|
detached?: (this: ComponentPublicInstance) => void;
|
|
16
16
|
}
|
|
17
|
-
interface PageLifeTimeHooks {
|
|
17
|
+
export interface PageLifeTimeHooks {
|
|
18
18
|
show?: (this: ComponentPublicInstance) => void;
|
|
19
19
|
hide?: (this: ComponentPublicInstance) => void;
|
|
20
20
|
resize?: (this: ComponentPublicInstance) => void;
|
|
21
21
|
}
|
|
22
|
-
type RelationType = 'parent' | 'child' | 'ancestor' | 'descendant';
|
|
23
|
-
interface RelationOption {
|
|
22
|
+
export type RelationType = 'parent' | 'child' | 'ancestor' | 'descendant';
|
|
23
|
+
export interface RelationOption {
|
|
24
24
|
type: RelationType;
|
|
25
25
|
linked?: (this: ComponentPublicInstance, target: ComponentPublicInstance) => void;
|
|
26
26
|
linkChanged?: (this: ComponentPublicInstance, target: ComponentPublicInstance) => void;
|
|
27
27
|
unlinked?: (this: ComponentPublicInstance, target: ComponentPublicInstance) => void;
|
|
28
28
|
}
|
|
29
|
-
interface ComponentBehaviorOptions {
|
|
29
|
+
export interface ComponentBehaviorOptions {
|
|
30
30
|
addGlobalClass?: boolean;
|
|
31
31
|
styleIsolation?: 'isolated' | 'apply-shared' | 'shared';
|
|
32
32
|
virtualHost?: boolean;
|
|
33
33
|
[key: string]: unknown;
|
|
34
34
|
}
|
|
35
|
-
interface ComponentOptions {
|
|
35
|
+
export interface ComponentOptions {
|
|
36
36
|
properties?: Record<string, PropertyDeclaration>;
|
|
37
37
|
data?: DataRecord | (() => DataRecord);
|
|
38
38
|
methods?: Record<string, (this: ComponentPublicInstance, event: any) => any>;
|
|
@@ -43,19 +43,19 @@ interface ComponentOptions {
|
|
|
43
43
|
behaviors?: ComponentOptions[];
|
|
44
44
|
options?: ComponentBehaviorOptions;
|
|
45
45
|
}
|
|
46
|
-
interface DefineComponentOptions {
|
|
46
|
+
export interface DefineComponentOptions {
|
|
47
47
|
id?: string;
|
|
48
48
|
template: TemplateRenderer;
|
|
49
49
|
style?: string;
|
|
50
50
|
component?: ComponentOptions;
|
|
51
51
|
observerInit?: boolean;
|
|
52
52
|
}
|
|
53
|
-
interface TriggerEventOptions {
|
|
53
|
+
export interface TriggerEventOptions {
|
|
54
54
|
bubbles?: boolean;
|
|
55
55
|
composed?: boolean;
|
|
56
56
|
capturePhase?: boolean;
|
|
57
57
|
}
|
|
58
|
-
interface ComponentPublicInstance extends HTMLElement {
|
|
58
|
+
export interface ComponentPublicInstance extends HTMLElement {
|
|
59
59
|
readonly data: DataRecord;
|
|
60
60
|
readonly properties: DataRecord;
|
|
61
61
|
setData: (patch: DataRecord, callback?: () => void) => void | Promise<void>;
|
|
@@ -70,9 +70,8 @@ interface ComponentPublicInstance extends HTMLElement {
|
|
|
70
70
|
selectAllComponents: (selector: string) => ComponentPublicInstance[];
|
|
71
71
|
getRelationNodes: (relationPath: string) => ComponentPublicInstance[];
|
|
72
72
|
}
|
|
73
|
-
type ComponentConstructor = CustomElementConstructor & {
|
|
73
|
+
export type ComponentConstructor = CustomElementConstructor & {
|
|
74
74
|
__weappUpdate?: (options: DefineComponentOptions) => void;
|
|
75
75
|
};
|
|
76
76
|
//#endregion
|
|
77
|
-
export { ComponentBehaviorOptions, ComponentConstructor, ComponentOptions, ComponentPublicInstance, DataRecord, DefineComponentOptions, LifeTimeHooks, PageLifeTimeHooks, PropertyDeclaration, PropertyOption, RelationOption, RelationType, TriggerEventOptions };
|
|
78
77
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//#region src/runtime/execution.d.ts
|
|
2
|
-
type RuntimeExecutionMode = 'compat' | 'safe' | 'strict';
|
|
3
|
-
declare function getRuntimeExecutionMode(): RuntimeExecutionMode;
|
|
4
|
-
declare function setRuntimeExecutionMode(mode?: RuntimeExecutionMode | string): void;
|
|
2
|
+
export type RuntimeExecutionMode = 'compat' | 'safe' | 'strict';
|
|
3
|
+
export declare function getRuntimeExecutionMode(): RuntimeExecutionMode;
|
|
4
|
+
export declare function setRuntimeExecutionMode(mode?: RuntimeExecutionMode | string): void;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { RuntimeExecutionMode, getRuntimeExecutionMode, setRuntimeExecutionMode };
|
|
7
6
|
//# sourceMappingURL=execution.d.mts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { WebRuntimeClipboard, WebRuntimeDialogs, WebRuntimeHost, WebRuntimeStorage } from "./types.mjs";
|
|
2
2
|
//#region src/runtime/host/index.d.ts
|
|
3
|
-
declare function getWebRuntimeHost(): Readonly<WebRuntimeHost>;
|
|
4
|
-
declare function setWebRuntimeHost(host?: WebRuntimeHost): void;
|
|
5
|
-
declare function resetWebRuntimeHost(): void;
|
|
6
|
-
declare function getRuntimeFetch(): ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
|
|
7
|
-
declare function getRuntimeStorage(): WebRuntimeStorage | undefined;
|
|
8
|
-
declare function getRuntimeClipboard(): WebRuntimeClipboard | undefined;
|
|
9
|
-
declare function getRuntimeDialogs(): WebRuntimeDialogs;
|
|
10
|
-
declare function openRuntimeUrl(url?: string, target?: string, features?: string): unknown;
|
|
3
|
+
export declare function getWebRuntimeHost(): Readonly<WebRuntimeHost>;
|
|
4
|
+
export declare function setWebRuntimeHost(host?: WebRuntimeHost): void;
|
|
5
|
+
export declare function resetWebRuntimeHost(): void;
|
|
6
|
+
export declare function getRuntimeFetch(): ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
|
|
7
|
+
export declare function getRuntimeStorage(): WebRuntimeStorage | undefined;
|
|
8
|
+
export declare function getRuntimeClipboard(): WebRuntimeClipboard | undefined;
|
|
9
|
+
export declare function getRuntimeDialogs(): WebRuntimeDialogs;
|
|
10
|
+
export declare function openRuntimeUrl(url?: string, target?: string, features?: string): unknown;
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export type { WebRuntimeClipboard, WebRuntimeDialogs, WebRuntimeHost, WebRuntimeStorage };
|
|
13
13
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/runtime/host/types.d.ts
|
|
2
|
-
interface WebRuntimeStorage {
|
|
2
|
+
export interface WebRuntimeStorage {
|
|
3
3
|
readonly length: number;
|
|
4
4
|
clear: () => void;
|
|
5
5
|
getItem: (key: string) => string | null;
|
|
@@ -7,16 +7,16 @@ interface WebRuntimeStorage {
|
|
|
7
7
|
removeItem: (key: string) => void;
|
|
8
8
|
setItem: (key: string, value: string) => void;
|
|
9
9
|
}
|
|
10
|
-
interface WebRuntimeClipboard {
|
|
10
|
+
export interface WebRuntimeClipboard {
|
|
11
11
|
readText: () => string | Promise<string>;
|
|
12
12
|
writeText: (value: string) => void | Promise<void>;
|
|
13
13
|
}
|
|
14
|
-
interface WebRuntimeDialogs {
|
|
14
|
+
export interface WebRuntimeDialogs {
|
|
15
15
|
alert?: (message?: string) => void;
|
|
16
16
|
confirm?: (message?: string) => boolean;
|
|
17
17
|
prompt?: (message?: string, defaultValue?: string) => string | null;
|
|
18
18
|
}
|
|
19
|
-
interface WebRuntimeHost {
|
|
19
|
+
export interface WebRuntimeHost {
|
|
20
20
|
clipboard?: WebRuntimeClipboard;
|
|
21
21
|
dialogs?: WebRuntimeDialogs;
|
|
22
22
|
fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
@@ -24,5 +24,4 @@ interface WebRuntimeHost {
|
|
|
24
24
|
storage?: WebRuntimeStorage;
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
export { WebRuntimeClipboard, WebRuntimeDialogs, WebRuntimeHost, WebRuntimeStorage };
|
|
28
27
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -3,7 +3,6 @@ type HostGlobalsTarget = Record<PropertyKey, any>;
|
|
|
3
3
|
/**
|
|
4
4
|
* 安装第三方库在模块求值阶段可能读取的小程序宿主全局。
|
|
5
5
|
*/
|
|
6
|
-
declare function installWebHostGlobals(target?: HostGlobalsTarget): void;
|
|
6
|
+
export declare function installWebHostGlobals(target?: HostGlobalsTarget): void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { installWebHostGlobals };
|
|
9
8
|
//# sourceMappingURL=hostGlobals.d.mts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { LegacyTemplateRenderer, LegacyTemplateScope } from "./types.mjs";
|
|
2
2
|
import { ChildNode } from "domhandler";
|
|
3
3
|
//#region src/runtime/legacyTemplate/index.d.ts
|
|
4
|
-
declare function renderTemplate(nodes: ChildNode[], scope?: LegacyTemplateScope): string;
|
|
5
|
-
declare function createTemplate(source: string): LegacyTemplateRenderer;
|
|
4
|
+
export declare function renderTemplate(nodes: ChildNode[], scope?: LegacyTemplateScope): string;
|
|
5
|
+
export declare function createTemplate(source: string): LegacyTemplateRenderer;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { createTemplate, renderTemplate };
|
|
8
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region src/runtime/legacyTemplate/types.d.ts
|
|
2
|
-
type LegacyTemplateScope = Record<string, any>;
|
|
3
|
-
type LegacyTemplateRenderer = (scope?: LegacyTemplateScope) => string;
|
|
2
|
+
export type LegacyTemplateScope = Record<string, any>;
|
|
3
|
+
export type LegacyTemplateRenderer = (scope?: LegacyTemplateScope) => string;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { LegacyTemplateRenderer, LegacyTemplateScope };
|
|
6
5
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
//#region src/runtime/nativeComponents/image.d.ts
|
|
2
|
-
declare function resolveImageModeStyle(mode: string | null): {
|
|
2
|
+
export declare function resolveImageModeStyle(mode: string | null): {
|
|
3
3
|
fit: string;
|
|
4
4
|
position: string;
|
|
5
5
|
};
|
|
6
6
|
//#endregion
|
|
7
|
-
export { resolveImageModeStyle };
|
|
8
7
|
//# sourceMappingURL=image.d.mts.map
|
|
@@ -5,7 +5,7 @@ import { createSwitchEventDetail } from "./switch.mjs";
|
|
|
5
5
|
import { createTextareaLineChangeDetail } from "./textarea.mjs";
|
|
6
6
|
import { createVideoProgressDetail, createVideoTimeUpdateDetail, resolveVideoObjectFit } from "./video/helpers.mjs";
|
|
7
7
|
//#region src/runtime/nativeComponents/index.d.ts
|
|
8
|
-
declare function ensureNativeComponentsDefined(): void;
|
|
8
|
+
export declare function ensureNativeComponentsDefined(): void;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { createInputEventDetail, createScrollEventDetail, createSwitchEventDetail, createTextareaLineChangeDetail, createVideoProgressDetail, createVideoTimeUpdateDetail,
|
|
10
|
+
export { createInputEventDetail, createScrollEventDetail, createSwitchEventDetail, createTextareaLineChangeDetail, createVideoProgressDetail, createVideoTimeUpdateDetail, resolveImageModeStyle, resolveVideoObjectFit };
|
|
11
11
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
//#region src/runtime/nativeComponents/input.d.ts
|
|
2
|
-
declare function createInputEventDetail(input: Pick<HTMLInputElement, 'selectionStart' | 'value'>): {
|
|
2
|
+
export declare function createInputEventDetail(input: Pick<HTMLInputElement, 'selectionStart' | 'value'>): {
|
|
3
3
|
value: string;
|
|
4
4
|
cursor: number;
|
|
5
5
|
};
|
|
6
6
|
//#endregion
|
|
7
|
-
export { createInputEventDetail };
|
|
8
7
|
//# sourceMappingURL=input.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/runtime/nativeComponents/scrollView.d.ts
|
|
2
|
-
declare function createScrollEventDetail(viewport: Pick<HTMLDivElement, 'scrollHeight' | 'scrollLeft' | 'scrollTop' | 'scrollWidth'>, previous: {
|
|
2
|
+
export declare function createScrollEventDetail(viewport: Pick<HTMLDivElement, 'scrollHeight' | 'scrollLeft' | 'scrollTop' | 'scrollWidth'>, previous: {
|
|
3
3
|
scrollLeft: number;
|
|
4
4
|
scrollTop: number;
|
|
5
5
|
}): {
|
|
@@ -11,5 +11,4 @@ declare function createScrollEventDetail(viewport: Pick<HTMLDivElement, 'scrollH
|
|
|
11
11
|
deltaY: number;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
|
-
export { createScrollEventDetail };
|
|
15
14
|
//# sourceMappingURL=scrollView.d.mts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//#region src/runtime/nativeComponents/switch.d.ts
|
|
2
|
-
declare function createSwitchEventDetail(checked: boolean): {
|
|
2
|
+
export declare function createSwitchEventDetail(checked: boolean): {
|
|
3
3
|
value: boolean;
|
|
4
4
|
};
|
|
5
5
|
//#endregion
|
|
6
|
-
export { createSwitchEventDetail };
|
|
7
6
|
//# sourceMappingURL=switch.d.mts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
//#region src/runtime/nativeComponents/textarea.d.ts
|
|
2
|
-
declare function createTextareaLineChangeDetail(textarea: Pick<HTMLTextAreaElement, 'scrollHeight' | 'value'>): {
|
|
2
|
+
export declare function createTextareaLineChangeDetail(textarea: Pick<HTMLTextAreaElement, 'scrollHeight' | 'value'>): {
|
|
3
3
|
height: number;
|
|
4
4
|
heightRpx: number;
|
|
5
5
|
lineCount: number;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
8
|
-
export { createTextareaLineChangeDetail };
|
|
9
8
|
//# sourceMappingURL=textarea.d.mts.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
//#region src/runtime/nativeComponents/video/helpers.d.ts
|
|
2
|
-
declare function resolveVideoObjectFit(value: string | null): "fill" | "cover" | "contain";
|
|
3
|
-
declare function createVideoTimeUpdateDetail(currentTime: number, duration: number): {
|
|
2
|
+
export declare function resolveVideoObjectFit(value: string | null): "fill" | "cover" | "contain";
|
|
3
|
+
export declare function createVideoTimeUpdateDetail(currentTime: number, duration: number): {
|
|
4
4
|
currentTime: number;
|
|
5
5
|
duration: number;
|
|
6
6
|
};
|
|
7
|
-
declare function createVideoProgressDetail(bufferedEnd: number, duration: number): {
|
|
7
|
+
export declare function createVideoProgressDetail(bufferedEnd: number, duration: number): {
|
|
8
8
|
buffered: number;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
export { createVideoProgressDetail, createVideoTimeUpdateDetail, resolveVideoObjectFit };
|
|
12
11
|
//# sourceMappingURL=helpers.d.mts.map
|
|
@@ -4,7 +4,7 @@ interface NavigationBarMetrics {
|
|
|
4
4
|
navContentHeight?: number;
|
|
5
5
|
safeAreaTop?: number;
|
|
6
6
|
}
|
|
7
|
-
declare function setNavigationBarMetrics(next: NavigationBarMetrics): void;
|
|
7
|
+
export declare function setNavigationBarMetrics(next: NavigationBarMetrics): void;
|
|
8
8
|
//#endregion
|
|
9
|
-
export {
|
|
9
|
+
export type { NavigationBarMetrics };
|
|
10
10
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -2,8 +2,7 @@ import { WevuPageLayoutMap } from "wevu";
|
|
|
2
2
|
//#region src/runtime/pageLayout.d.ts
|
|
3
3
|
type ResolveTypedPageLayoutName = keyof WevuPageLayoutMap extends never ? string : Extract<keyof WevuPageLayoutMap, string>;
|
|
4
4
|
type ResolveTypedPageLayoutProps<Name extends string> = Name extends keyof WevuPageLayoutMap ? WevuPageLayoutMap[Name] : Record<string, any>;
|
|
5
|
-
declare function setPageLayout(layout: false): void;
|
|
6
|
-
declare function setPageLayout<Name extends ResolveTypedPageLayoutName>(layout: Name, props?: ResolveTypedPageLayoutProps<Name>): void;
|
|
5
|
+
export declare function setPageLayout(layout: false): void;
|
|
6
|
+
export declare function setPageLayout<Name extends ResolveTypedPageLayoutName>(layout: Name, props?: ResolveTypedPageLayoutProps<Name>): void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { setPageLayout };
|
|
9
8
|
//# sourceMappingURL=pageLayout.d.mts.map
|
|
@@ -4,16 +4,16 @@ import { AuthorizeOptions, GetSettingOptions, OpenSettingOptions } from "./types
|
|
|
4
4
|
import { BatteryInfo, GetBatteryInfoSuccessResult, VibrateShortOptions } from "./types/platformRuntime.mjs";
|
|
5
5
|
import { AccountInfoSync, AppAuthorizeSetting, AppBaseInfo, CheckSessionOptions, DeviceInfo, GetSystemInfoOptions, GetUserInfoOptions, GetUserProfileOptions, LoginOptions, MenuButtonBoundingClientRect, OpenAppAuthorizeSettingOptions, SystemInfo, SystemSetting, WindowInfo } from "./types/systemAuth.mjs";
|
|
6
6
|
//#region src/runtime/polyfill/deviceAuthSystemApi.d.ts
|
|
7
|
-
declare function vibrateShort(options?: VibrateShortOptions): Promise<{
|
|
7
|
+
export declare function vibrateShort(options?: VibrateShortOptions): Promise<{
|
|
8
8
|
errMsg: string;
|
|
9
9
|
}>;
|
|
10
|
-
declare function getBatteryInfoSync(): BatteryInfo;
|
|
11
|
-
declare function getBatteryInfo(options?: MiniProgramAsyncOptions<GetBatteryInfoSuccessResult>): Promise<{
|
|
10
|
+
export declare function getBatteryInfoSync(): BatteryInfo;
|
|
11
|
+
export declare function getBatteryInfo(options?: MiniProgramAsyncOptions<GetBatteryInfoSuccessResult>): Promise<{
|
|
12
12
|
level: number;
|
|
13
13
|
isCharging: boolean;
|
|
14
14
|
errMsg: string;
|
|
15
15
|
}>;
|
|
16
|
-
declare function getLocation(options?: GetLocationOptions): Promise<{
|
|
16
|
+
export declare function getLocation(options?: GetLocationOptions): Promise<{
|
|
17
17
|
latitude: number;
|
|
18
18
|
longitude: number;
|
|
19
19
|
speed: number;
|
|
@@ -23,45 +23,45 @@ declare function getLocation(options?: GetLocationOptions): Promise<{
|
|
|
23
23
|
horizontalAccuracy: number;
|
|
24
24
|
errMsg: string;
|
|
25
25
|
}>;
|
|
26
|
-
declare function getFuzzyLocation(options?: GetFuzzyLocationOptions): Promise<{
|
|
26
|
+
export declare function getFuzzyLocation(options?: GetFuzzyLocationOptions): Promise<{
|
|
27
27
|
latitude: number;
|
|
28
28
|
longitude: number;
|
|
29
29
|
accuracy: number;
|
|
30
30
|
errMsg: string;
|
|
31
31
|
}>;
|
|
32
|
-
declare function getSetting(options?: GetSettingOptions): Promise<{
|
|
32
|
+
export declare function getSetting(options?: GetSettingOptions): Promise<{
|
|
33
33
|
errMsg: string;
|
|
34
34
|
authSetting: Record<string, boolean>;
|
|
35
35
|
}>;
|
|
36
|
-
declare function authorize(options?: AuthorizeOptions): Promise<{
|
|
36
|
+
export declare function authorize(options?: AuthorizeOptions): Promise<{
|
|
37
37
|
errMsg: string;
|
|
38
38
|
}>;
|
|
39
|
-
declare function openSetting(options?: OpenSettingOptions): Promise<{
|
|
39
|
+
export declare function openSetting(options?: OpenSettingOptions): Promise<{
|
|
40
40
|
errMsg: string;
|
|
41
41
|
authSetting: Record<string, boolean>;
|
|
42
42
|
}>;
|
|
43
|
-
declare function getAppAuthorizeSetting(): AppAuthorizeSetting;
|
|
44
|
-
declare function openAppAuthorizeSetting(options?: OpenAppAuthorizeSettingOptions): Promise<{
|
|
43
|
+
export declare function getAppAuthorizeSetting(): AppAuthorizeSetting;
|
|
44
|
+
export declare function openAppAuthorizeSetting(options?: OpenAppAuthorizeSettingOptions): Promise<{
|
|
45
45
|
errMsg: string;
|
|
46
46
|
}>;
|
|
47
|
-
declare function getNetworkType(options?: GetNetworkTypeOptions): Promise<any>;
|
|
48
|
-
declare function onNetworkStatusChange(callback: NetworkStatusChangeCallback): void;
|
|
49
|
-
declare function offNetworkStatusChange(callback?: NetworkStatusChangeCallback): void;
|
|
50
|
-
declare function getWindowInfo(): WindowInfo;
|
|
51
|
-
declare function onWindowResize(callback: WindowResizeCallback): void;
|
|
52
|
-
declare function offWindowResize(callback?: WindowResizeCallback): void;
|
|
53
|
-
declare function getSystemInfoSync(): SystemInfo;
|
|
54
|
-
declare function getSystemInfo(options?: GetSystemInfoOptions): Promise<any>;
|
|
55
|
-
declare function getDeviceInfo(): DeviceInfo;
|
|
56
|
-
declare function getSystemSetting(): SystemSetting;
|
|
57
|
-
declare function login(options?: LoginOptions): Promise<{
|
|
47
|
+
export declare function getNetworkType(options?: GetNetworkTypeOptions): Promise<any>;
|
|
48
|
+
export declare function onNetworkStatusChange(callback: NetworkStatusChangeCallback): void;
|
|
49
|
+
export declare function offNetworkStatusChange(callback?: NetworkStatusChangeCallback): void;
|
|
50
|
+
export declare function getWindowInfo(): WindowInfo;
|
|
51
|
+
export declare function onWindowResize(callback: WindowResizeCallback): void;
|
|
52
|
+
export declare function offWindowResize(callback?: WindowResizeCallback): void;
|
|
53
|
+
export declare function getSystemInfoSync(): SystemInfo;
|
|
54
|
+
export declare function getSystemInfo(options?: GetSystemInfoOptions): Promise<any>;
|
|
55
|
+
export declare function getDeviceInfo(): DeviceInfo;
|
|
56
|
+
export declare function getSystemSetting(): SystemSetting;
|
|
57
|
+
export declare function login(options?: LoginOptions): Promise<{
|
|
58
58
|
errMsg: string;
|
|
59
59
|
code: string;
|
|
60
60
|
}>;
|
|
61
|
-
declare function checkSession(options?: CheckSessionOptions): Promise<{
|
|
61
|
+
export declare function checkSession(options?: CheckSessionOptions): Promise<{
|
|
62
62
|
errMsg: string;
|
|
63
63
|
}>;
|
|
64
|
-
declare function getUserInfo(options?: GetUserInfoOptions): Promise<{
|
|
64
|
+
export declare function getUserInfo(options?: GetUserInfoOptions): Promise<{
|
|
65
65
|
errMsg: "getUserInfo:ok" | "getUserProfile:ok";
|
|
66
66
|
userInfo: {
|
|
67
67
|
nickName: string;
|
|
@@ -77,7 +77,7 @@ declare function getUserInfo(options?: GetUserInfoOptions): Promise<{
|
|
|
77
77
|
encryptedData: string;
|
|
78
78
|
iv: string;
|
|
79
79
|
}>;
|
|
80
|
-
declare function getUserProfile(options?: GetUserProfileOptions): Promise<{
|
|
80
|
+
export declare function getUserProfile(options?: GetUserProfileOptions): Promise<{
|
|
81
81
|
errMsg: "getUserInfo:ok" | "getUserProfile:ok";
|
|
82
82
|
userInfo: {
|
|
83
83
|
nickName: string;
|
|
@@ -93,9 +93,8 @@ declare function getUserProfile(options?: GetUserProfileOptions): Promise<{
|
|
|
93
93
|
encryptedData: string;
|
|
94
94
|
iv: string;
|
|
95
95
|
}>;
|
|
96
|
-
declare function getAccountInfoSync(): AccountInfoSync;
|
|
97
|
-
declare function getAppBaseInfo(): AppBaseInfo;
|
|
98
|
-
declare function getMenuButtonBoundingClientRect(): MenuButtonBoundingClientRect;
|
|
96
|
+
export declare function getAccountInfoSync(): AccountInfoSync;
|
|
97
|
+
export declare function getAppBaseInfo(): AppBaseInfo;
|
|
98
|
+
export declare function getMenuButtonBoundingClientRect(): MenuButtonBoundingClientRect;
|
|
99
99
|
//#endregion
|
|
100
|
-
export { authorize, checkSession, getAccountInfoSync, getAppAuthorizeSetting, getAppBaseInfo, getBatteryInfo, getBatteryInfoSync, getDeviceInfo, getFuzzyLocation, getLocation, getMenuButtonBoundingClientRect, getNetworkType, getSetting, getSystemInfo, getSystemInfoSync, getSystemSetting, getUserInfo, getUserProfile, getWindowInfo, login, offNetworkStatusChange, offWindowResize, onNetworkStatusChange, onWindowResize, openAppAuthorizeSetting, openSetting, vibrateShort };
|
|
101
100
|
//# sourceMappingURL=deviceAuthSystemApi.d.mts.map
|
|
@@ -5,10 +5,10 @@ import { getEnterOptionsSync, getLaunchOptionsSync, initializePageRoutes, naviga
|
|
|
5
5
|
import { clearStorage, clearStorageSync, createCanvasContext, createSelectorQuery, createVKSession, createVideoContext, createWorker, downloadFile, exitMiniProgram, getFileSystemManager, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, hideKeyboard, loadSubPackage, navigateToMiniProgram, nextTick, pageScrollTo, preloadSubpackage, removeStorage, removeStorageSync, request, setStorage, setStorageSync, startPullDownRefresh, stopPullDownRefresh, uploadFile } from "./runtimeDataApi.mjs";
|
|
6
6
|
import { chooseAddress, chooseFile, chooseImage, chooseLocation, chooseMedia, chooseMessageFile, chooseVideo, compressImage, compressVideo, getClipboardData, getImageInfo, getVideoInfo, hideLoading, hideTabBar, hideTabBarRedDot, makePhoneCall, openCustomerServiceChat, openDocument, openLocation, openVideoEditor, previewImage, previewMedia, removeTabBarBadge, requestPayment, requestSubscribeMessage, saveFile, saveFileToDisk, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, setClipboardData, setTabBarBadge, setTabBarItem, setTabBarStyle, showActionSheet, showLoading, showModal, showShareMenu, showTabBar, showTabBarRedDot, showToast, updateShareMenu } from "./uiMediaApi.mjs";
|
|
7
7
|
//#region src/runtime/polyfill/index.d.ts
|
|
8
|
-
declare function setNavigationBarTitle(options: {
|
|
8
|
+
export declare function setNavigationBarTitle(options: {
|
|
9
9
|
title: string;
|
|
10
10
|
}): Promise<void>;
|
|
11
|
-
declare function setNavigationBarColor(options: {
|
|
11
|
+
export declare function setNavigationBarColor(options: {
|
|
12
12
|
frontColor?: string;
|
|
13
13
|
backgroundColor?: string;
|
|
14
14
|
animation?: {
|
|
@@ -16,24 +16,24 @@ declare function setNavigationBarColor(options: {
|
|
|
16
16
|
timingFunction?: string;
|
|
17
17
|
};
|
|
18
18
|
}): Promise<void>;
|
|
19
|
-
declare function showNavigationBarLoading(): Promise<void>;
|
|
20
|
-
declare function hideNavigationBarLoading(): Promise<void>;
|
|
21
|
-
declare function setBackgroundColor(options?: SetBackgroundColorOptions): Promise<{
|
|
19
|
+
export declare function showNavigationBarLoading(): Promise<void>;
|
|
20
|
+
export declare function hideNavigationBarLoading(): Promise<void>;
|
|
21
|
+
export declare function setBackgroundColor(options?: SetBackgroundColorOptions): Promise<{
|
|
22
22
|
errMsg: string;
|
|
23
23
|
}>;
|
|
24
|
-
declare function setBackgroundTextStyle(options?: SetBackgroundTextStyleOptions): Promise<{
|
|
24
|
+
export declare function setBackgroundTextStyle(options?: SetBackgroundTextStyleOptions): Promise<{
|
|
25
25
|
errMsg: string;
|
|
26
26
|
}>;
|
|
27
|
-
declare function canIUse(schema: string): boolean;
|
|
28
|
-
declare function createRewardedVideoAd(options?: AdBaseOptions): RewardedVideoAd;
|
|
29
|
-
declare function createInterstitialAd(options?: AdBaseOptions): InterstitialAd;
|
|
30
|
-
declare function getExtConfigSync(): {
|
|
27
|
+
export declare function canIUse(schema: string): boolean;
|
|
28
|
+
export declare function createRewardedVideoAd(options?: AdBaseOptions): RewardedVideoAd;
|
|
29
|
+
export declare function createInterstitialAd(options?: AdBaseOptions): InterstitialAd;
|
|
30
|
+
export declare function getExtConfigSync(): {
|
|
31
31
|
[x: string]: unknown;
|
|
32
32
|
};
|
|
33
|
-
declare function getExtConfig(options?: GetExtConfigOptions): Promise<any>;
|
|
34
|
-
declare function getUpdateManager(): UpdateManager;
|
|
35
|
-
declare function getLogManager(options?: LogManagerOptions): LogManager;
|
|
36
|
-
declare function reportAnalytics(eventName: string, data?: Record<string, unknown>): void;
|
|
33
|
+
export declare function getExtConfig(options?: GetExtConfigOptions): Promise<any>;
|
|
34
|
+
export declare function getUpdateManager(): UpdateManager;
|
|
35
|
+
export declare function getLogManager(options?: LogManagerOptions): LogManager;
|
|
36
|
+
export declare function reportAnalytics(eventName: string, data?: Record<string, unknown>): void;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { authorize,
|
|
38
|
+
export { authorize, checkSession, chooseAddress, chooseFile, chooseImage, chooseLocation, chooseMedia, chooseMessageFile, chooseVideo, clearStorage, clearStorageSync, compressImage, compressVideo, createCanvasContext, createSelectorQuery, createVKSession, createVideoContext, createWorker, downloadFile, exitMiniProgram, getAccountInfoSync, getAppAuthorizeSetting, getAppBaseInfo, getBatteryInfo, getBatteryInfoSync, getClipboardData, getDeviceInfo, getEnterOptionsSync, getFileSystemManager, getFuzzyLocation, getImageInfo, getLaunchOptionsSync, getLocation, getMenuButtonBoundingClientRect, getNetworkType, getSetting, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getSystemSetting, getUserInfo, getUserProfile, getVideoInfo, getWindowInfo, hideKeyboard, hideLoading, hideTabBar, hideTabBarRedDot, initializePageRoutes, loadSubPackage, login, makePhoneCall, navigateBack, navigateTo, navigateToMiniProgram, nextTick, offNetworkStatusChange, offWindowResize, onNetworkStatusChange, onWindowResize, openAppAuthorizeSetting, openCustomerServiceChat, openDocument, openLocation, openSetting, openVideoEditor, pageScrollTo, preloadSubpackage, previewImage, previewMedia, reLaunch, redirectTo, registerApp, registerComponent, registerPage, removeStorage, removeStorageSync, removeTabBarBadge, request, requestPayment, requestSubscribeMessage, saveFile, saveFileToDisk, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, setClipboardData, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, showActionSheet, showLoading, showModal, showShareMenu, showTabBar, showTabBarRedDot, showToast, startPullDownRefresh, stopPullDownRefresh, switchTab, updateShareMenu, uploadFile, vibrateShort };
|
|
39
39
|
//# sourceMappingURL=index.d.mts.map
|