@weapp-vite/web 1.4.20 → 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 +5 -5
|
@@ -6,18 +6,18 @@ import { OpenDocumentOptions, ShowActionSheetOptions, ShowModalOptions } from ".
|
|
|
6
6
|
import { SetTabBarBadgeOptions, SetTabBarItemOptions, SetTabBarStyleOptions, TabBarIndexOptions, TabBarOptions } from "./types/tabBarRuntime.mjs";
|
|
7
7
|
import { MiniProgramBaseResultLike } from "./async.mjs";
|
|
8
8
|
//#region src/runtime/polyfill/uiMediaApi.d.ts
|
|
9
|
-
declare function showToast(options?: ShowToastOptions): Promise<any>;
|
|
10
|
-
declare function showLoading(options?: ShowLoadingOptions): Promise<any>;
|
|
11
|
-
declare function hideLoading(options?: MiniProgramAsyncOptions<MiniProgramBaseResult>): Promise<any>;
|
|
12
|
-
declare function showShareMenu(options?: ShareMenuOptions): Promise<any>;
|
|
13
|
-
declare function updateShareMenu(options?: ShareMenuOptions): Promise<any>;
|
|
14
|
-
declare function openCustomerServiceChat(options?: OpenCustomerServiceChatOptions): Promise<{
|
|
9
|
+
export declare function showToast(options?: ShowToastOptions): Promise<any>;
|
|
10
|
+
export declare function showLoading(options?: ShowLoadingOptions): Promise<any>;
|
|
11
|
+
export declare function hideLoading(options?: MiniProgramAsyncOptions<MiniProgramBaseResult>): Promise<any>;
|
|
12
|
+
export declare function showShareMenu(options?: ShareMenuOptions): Promise<any>;
|
|
13
|
+
export declare function updateShareMenu(options?: ShareMenuOptions): Promise<any>;
|
|
14
|
+
export declare function openCustomerServiceChat(options?: OpenCustomerServiceChatOptions): Promise<{
|
|
15
15
|
errMsg: string;
|
|
16
16
|
}>;
|
|
17
|
-
declare function makePhoneCall(options?: MakePhoneCallOptions): Promise<{
|
|
17
|
+
export declare function makePhoneCall(options?: MakePhoneCallOptions): Promise<{
|
|
18
18
|
errMsg: string;
|
|
19
19
|
}>;
|
|
20
|
-
declare function chooseAddress(options?: ChooseAddressOptions): Promise<{
|
|
20
|
+
export declare function chooseAddress(options?: ChooseAddressOptions): Promise<{
|
|
21
21
|
userName: string;
|
|
22
22
|
postalCode: string;
|
|
23
23
|
provinceName: string;
|
|
@@ -28,18 +28,18 @@ declare function chooseAddress(options?: ChooseAddressOptions): Promise<{
|
|
|
28
28
|
telNumber: string;
|
|
29
29
|
errMsg: string;
|
|
30
30
|
}>;
|
|
31
|
-
declare function chooseLocation(options?: ChooseLocationOptions): Promise<{
|
|
31
|
+
export declare function chooseLocation(options?: ChooseLocationOptions): Promise<{
|
|
32
32
|
name: string;
|
|
33
33
|
address: string;
|
|
34
34
|
latitude: number;
|
|
35
35
|
longitude: number;
|
|
36
36
|
errMsg: string;
|
|
37
37
|
}>;
|
|
38
|
-
declare function openLocation(options?: OpenLocationOptions): Promise<{
|
|
38
|
+
export declare function openLocation(options?: OpenLocationOptions): Promise<{
|
|
39
39
|
errMsg: string;
|
|
40
40
|
}>;
|
|
41
|
-
declare function getImageInfo(options?: GetImageInfoOptions): Promise<MiniProgramBaseResultLike>;
|
|
42
|
-
declare function getVideoInfo(options?: GetVideoInfoOptions): Promise<{
|
|
41
|
+
export declare function getImageInfo(options?: GetImageInfoOptions): Promise<MiniProgramBaseResultLike>;
|
|
42
|
+
export declare function getVideoInfo(options?: GetVideoInfoOptions): Promise<{
|
|
43
43
|
errMsg: string;
|
|
44
44
|
orientation: string;
|
|
45
45
|
type: string;
|
|
@@ -50,19 +50,19 @@ declare function getVideoInfo(options?: GetVideoInfoOptions): Promise<{
|
|
|
50
50
|
bitrate: number;
|
|
51
51
|
fps: number;
|
|
52
52
|
}>;
|
|
53
|
-
declare function showTabBar(options?: TabBarOptions): Promise<any>;
|
|
54
|
-
declare function hideTabBar(options?: TabBarOptions): Promise<any>;
|
|
55
|
-
declare function setTabBarItem(options: SetTabBarItemOptions): Promise<any>;
|
|
56
|
-
declare function setTabBarStyle(options: SetTabBarStyleOptions): Promise<any>;
|
|
57
|
-
declare function setTabBarBadge(options: SetTabBarBadgeOptions): Promise<any>;
|
|
58
|
-
declare function removeTabBarBadge(options: TabBarIndexOptions): Promise<any>;
|
|
59
|
-
declare function showTabBarRedDot(options: TabBarIndexOptions): Promise<any>;
|
|
60
|
-
declare function hideTabBarRedDot(options: TabBarIndexOptions): Promise<any>;
|
|
61
|
-
declare function requestPayment(options?: RequestPaymentOptions): Promise<any>;
|
|
62
|
-
declare function requestSubscribeMessage(options?: RequestSubscribeMessageOptions): Promise<RequestSubscribeMessageSuccessResult>;
|
|
63
|
-
declare function showModal(options?: ShowModalOptions): Promise<any>;
|
|
64
|
-
declare function showActionSheet(options?: ShowActionSheetOptions): Promise<any>;
|
|
65
|
-
declare function chooseImage(options?: ChooseImageOptions): Promise<{
|
|
53
|
+
export declare function showTabBar(options?: TabBarOptions): Promise<any>;
|
|
54
|
+
export declare function hideTabBar(options?: TabBarOptions): Promise<any>;
|
|
55
|
+
export declare function setTabBarItem(options: SetTabBarItemOptions): Promise<any>;
|
|
56
|
+
export declare function setTabBarStyle(options: SetTabBarStyleOptions): Promise<any>;
|
|
57
|
+
export declare function setTabBarBadge(options: SetTabBarBadgeOptions): Promise<any>;
|
|
58
|
+
export declare function removeTabBarBadge(options: TabBarIndexOptions): Promise<any>;
|
|
59
|
+
export declare function showTabBarRedDot(options: TabBarIndexOptions): Promise<any>;
|
|
60
|
+
export declare function hideTabBarRedDot(options: TabBarIndexOptions): Promise<any>;
|
|
61
|
+
export declare function requestPayment(options?: RequestPaymentOptions): Promise<any>;
|
|
62
|
+
export declare function requestSubscribeMessage(options?: RequestSubscribeMessageOptions): Promise<RequestSubscribeMessageSuccessResult>;
|
|
63
|
+
export declare function showModal(options?: ShowModalOptions): Promise<any>;
|
|
64
|
+
export declare function showActionSheet(options?: ShowActionSheetOptions): Promise<any>;
|
|
65
|
+
export declare function chooseImage(options?: ChooseImageOptions): Promise<{
|
|
66
66
|
errMsg: string;
|
|
67
67
|
tempFilePaths: string[];
|
|
68
68
|
tempFiles: {
|
|
@@ -72,7 +72,7 @@ declare function chooseImage(options?: ChooseImageOptions): Promise<{
|
|
|
72
72
|
name: string;
|
|
73
73
|
}[];
|
|
74
74
|
}>;
|
|
75
|
-
declare function chooseMedia(options?: ChooseMediaOptions): Promise<{
|
|
75
|
+
export declare function chooseMedia(options?: ChooseMediaOptions): Promise<{
|
|
76
76
|
errMsg: string;
|
|
77
77
|
type: "image" | "video";
|
|
78
78
|
tempFiles: {
|
|
@@ -84,11 +84,11 @@ declare function chooseMedia(options?: ChooseMediaOptions): Promise<{
|
|
|
84
84
|
duration: number;
|
|
85
85
|
}[];
|
|
86
86
|
}>;
|
|
87
|
-
declare function compressImage(options?: CompressImageOptions): Promise<{
|
|
87
|
+
export declare function compressImage(options?: CompressImageOptions): Promise<{
|
|
88
88
|
errMsg: string;
|
|
89
89
|
tempFilePath: string;
|
|
90
90
|
}>;
|
|
91
|
-
declare function compressVideo(options?: CompressVideoOptions): Promise<{
|
|
91
|
+
export declare function compressVideo(options?: CompressVideoOptions): Promise<{
|
|
92
92
|
tempFilePath: any;
|
|
93
93
|
size: number;
|
|
94
94
|
duration: number;
|
|
@@ -98,7 +98,7 @@ declare function compressVideo(options?: CompressVideoOptions): Promise<{
|
|
|
98
98
|
fps: number;
|
|
99
99
|
errMsg: string;
|
|
100
100
|
}>;
|
|
101
|
-
declare function chooseVideo(options?: ChooseVideoOptions): Promise<{
|
|
101
|
+
export declare function chooseVideo(options?: ChooseVideoOptions): Promise<{
|
|
102
102
|
tempFilePath: string;
|
|
103
103
|
duration: number;
|
|
104
104
|
size: number;
|
|
@@ -106,7 +106,7 @@ declare function chooseVideo(options?: ChooseVideoOptions): Promise<{
|
|
|
106
106
|
width: number;
|
|
107
107
|
errMsg: string;
|
|
108
108
|
}>;
|
|
109
|
-
declare function chooseMessageFile(options?: ChooseMessageFileOptions): Promise<{
|
|
109
|
+
export declare function chooseMessageFile(options?: ChooseMessageFileOptions): Promise<{
|
|
110
110
|
errMsg: string;
|
|
111
111
|
tempFiles: {
|
|
112
112
|
path: string;
|
|
@@ -116,7 +116,7 @@ declare function chooseMessageFile(options?: ChooseMessageFileOptions): Promise<
|
|
|
116
116
|
time: number;
|
|
117
117
|
}[];
|
|
118
118
|
}>;
|
|
119
|
-
declare function chooseFile(options?: ChooseFileOptions): Promise<{
|
|
119
|
+
export declare function chooseFile(options?: ChooseFileOptions): Promise<{
|
|
120
120
|
errMsg: string;
|
|
121
121
|
tempFiles: {
|
|
122
122
|
path: string;
|
|
@@ -126,33 +126,33 @@ declare function chooseFile(options?: ChooseFileOptions): Promise<{
|
|
|
126
126
|
time: number;
|
|
127
127
|
}[];
|
|
128
128
|
}>;
|
|
129
|
-
declare function previewImage(options?: PreviewImageOptions): Promise<{
|
|
129
|
+
export declare function previewImage(options?: PreviewImageOptions): Promise<{
|
|
130
130
|
errMsg: string;
|
|
131
131
|
}>;
|
|
132
|
-
declare function previewMedia(options?: PreviewMediaOptions): Promise<{
|
|
132
|
+
export declare function previewMedia(options?: PreviewMediaOptions): Promise<{
|
|
133
133
|
errMsg: string;
|
|
134
134
|
}>;
|
|
135
|
-
declare function openVideoEditor(options?: OpenVideoEditorOptions): Promise<{
|
|
135
|
+
export declare function openVideoEditor(options?: OpenVideoEditorOptions): Promise<{
|
|
136
136
|
errMsg: string;
|
|
137
137
|
tempFilePath: any;
|
|
138
138
|
}>;
|
|
139
|
-
declare function saveImageToPhotosAlbum(options?: SaveImageToPhotosAlbumOptions): Promise<{
|
|
139
|
+
export declare function saveImageToPhotosAlbum(options?: SaveImageToPhotosAlbumOptions): Promise<{
|
|
140
140
|
errMsg: string;
|
|
141
141
|
}>;
|
|
142
|
-
declare function saveVideoToPhotosAlbum(options?: SaveVideoToPhotosAlbumOptions): Promise<{
|
|
142
|
+
export declare function saveVideoToPhotosAlbum(options?: SaveVideoToPhotosAlbumOptions): Promise<{
|
|
143
143
|
errMsg: string;
|
|
144
144
|
}>;
|
|
145
|
-
declare function saveFile(options?: SaveFileOptions): Promise<{
|
|
145
|
+
export declare function saveFile(options?: SaveFileOptions): Promise<{
|
|
146
146
|
errMsg: string;
|
|
147
147
|
savedFilePath: string;
|
|
148
148
|
}>;
|
|
149
|
-
declare function saveFileToDisk(options?: SaveFileToDiskOptions): Promise<{
|
|
149
|
+
export declare function saveFileToDisk(options?: SaveFileToDiskOptions): Promise<{
|
|
150
150
|
errMsg: string;
|
|
151
151
|
}>;
|
|
152
|
-
declare function openDocument(options?: OpenDocumentOptions): Promise<{
|
|
152
|
+
export declare function openDocument(options?: OpenDocumentOptions): Promise<{
|
|
153
153
|
errMsg: string;
|
|
154
154
|
}>;
|
|
155
|
-
declare function scanCode(options?: ScanCodeOptions): Promise<{
|
|
155
|
+
export declare function scanCode(options?: ScanCodeOptions): Promise<{
|
|
156
156
|
errMsg: string;
|
|
157
157
|
result: string;
|
|
158
158
|
scanType: string;
|
|
@@ -160,13 +160,12 @@ declare function scanCode(options?: ScanCodeOptions): Promise<{
|
|
|
160
160
|
path: string;
|
|
161
161
|
rawData: string;
|
|
162
162
|
}>;
|
|
163
|
-
declare function setClipboardData(options?: SetClipboardDataOptions): Promise<{
|
|
163
|
+
export declare function setClipboardData(options?: SetClipboardDataOptions): Promise<{
|
|
164
164
|
errMsg: string;
|
|
165
165
|
}>;
|
|
166
|
-
declare function getClipboardData(options?: GetClipboardDataOptions): Promise<{
|
|
166
|
+
export declare function getClipboardData(options?: GetClipboardDataOptions): Promise<{
|
|
167
167
|
errMsg: string;
|
|
168
168
|
data: string;
|
|
169
169
|
}>;
|
|
170
170
|
//#endregion
|
|
171
|
-
export { 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 };
|
|
172
171
|
//# sourceMappingURL=uiMediaApi.d.mts.map
|
|
@@ -2,7 +2,7 @@ import { TemplateScope } from "./template.mjs";
|
|
|
2
2
|
import { ComponentPublicInstance } from "./component/types.mjs";
|
|
3
3
|
import "./component/index.mjs";
|
|
4
4
|
//#region src/runtime/renderContext.d.ts
|
|
5
|
-
interface RenderContext {
|
|
5
|
+
export interface RenderContext {
|
|
6
6
|
instance: ComponentPublicInstance;
|
|
7
7
|
eval: (expression: string, scope: TemplateScope, wxs?: Record<string, any>) => any;
|
|
8
8
|
createScope: (parent: TemplateScope, locals?: Record<string, any>) => TemplateScope;
|
|
@@ -16,7 +16,6 @@ interface RenderContext {
|
|
|
16
16
|
}) => (event: Event) => void;
|
|
17
17
|
createWxsModule: (code: string, id: string, requireMap?: Record<string, any>) => Record<string, any>;
|
|
18
18
|
}
|
|
19
|
-
declare function createRenderContext(instance: ComponentPublicInstance, methods: Record<string, (event: any) => any>): RenderContext;
|
|
19
|
+
export declare function createRenderContext(instance: ComponentPublicInstance, methods: Record<string, (event: any) => any>): RenderContext;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { RenderContext, createRenderContext };
|
|
22
21
|
//# sourceMappingURL=renderContext.d.mts.map
|
package/dist/runtime/rpx.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
//#region src/runtime/rpx.d.ts
|
|
2
|
-
interface RpxConfig {
|
|
2
|
+
export interface RpxConfig {
|
|
3
3
|
designWidth?: number;
|
|
4
4
|
varName?: string;
|
|
5
5
|
}
|
|
6
|
-
declare function setupRpx(config?: RpxConfig): void;
|
|
6
|
+
export declare function setupRpx(config?: RpxConfig): void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { RpxConfig, setupRpx };
|
|
9
8
|
//# sourceMappingURL=rpx.d.mts.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
//#region src/runtime/seo/index.d.ts
|
|
2
|
-
type WebResourceHintRelation = 'preconnect' | 'dns-prefetch' | 'prefetch' | 'preload';
|
|
3
|
-
interface WebResourceHint {
|
|
2
|
+
export type WebResourceHintRelation = 'preconnect' | 'dns-prefetch' | 'prefetch' | 'preload';
|
|
3
|
+
export interface WebResourceHint {
|
|
4
4
|
href: string;
|
|
5
5
|
rel: WebResourceHintRelation;
|
|
6
6
|
as?: string;
|
|
7
7
|
type?: string;
|
|
8
8
|
crossOrigin?: 'anonymous' | 'use-credentials';
|
|
9
9
|
}
|
|
10
|
-
interface WebResourceHintsConfig {
|
|
10
|
+
export interface WebResourceHintsConfig {
|
|
11
11
|
links?: WebResourceHint[];
|
|
12
12
|
}
|
|
13
|
-
interface WebSeoConfig {
|
|
13
|
+
export interface WebSeoConfig {
|
|
14
14
|
enabled?: boolean;
|
|
15
15
|
defaultTitle?: string;
|
|
16
16
|
titleTemplate?: string;
|
|
17
17
|
description?: string;
|
|
18
18
|
canonical?: boolean;
|
|
19
19
|
}
|
|
20
|
-
interface WebPageHead {
|
|
20
|
+
export interface WebPageHead {
|
|
21
21
|
route?: string;
|
|
22
22
|
title?: string;
|
|
23
23
|
}
|
|
24
|
-
declare function configureWebSeo(next?: WebSeoConfig): void;
|
|
25
|
-
declare function syncWebDocumentHead(head: WebPageHead): void;
|
|
26
|
-
declare function updateWebDocumentTitle(title: string): void;
|
|
27
|
-
declare function setupWebResourceHints(config?: WebResourceHintsConfig): void;
|
|
28
|
-
declare function resetWebDocumentHead(): void;
|
|
24
|
+
export declare function configureWebSeo(next?: WebSeoConfig): void;
|
|
25
|
+
export declare function syncWebDocumentHead(head: WebPageHead): void;
|
|
26
|
+
export declare function updateWebDocumentTitle(title: string): void;
|
|
27
|
+
export declare function setupWebResourceHints(config?: WebResourceHintsConfig): void;
|
|
28
|
+
export declare function resetWebDocumentHead(): void;
|
|
29
29
|
//#endregion
|
|
30
|
-
export {
|
|
30
|
+
export type { WebSeoConfig as WebRuntimeSeoConfig };
|
|
31
31
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/runtime/style.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region src/runtime/style.d.ts
|
|
2
|
-
declare function removeStyle(id: string): void;
|
|
3
|
-
declare function injectStyle(css: string, id?: string): () => void;
|
|
2
|
+
export declare function removeStyle(id: string): void;
|
|
3
|
+
export declare function injectStyle(css: string, id?: string): () => void;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { injectStyle, removeStyle };
|
|
6
5
|
//# sourceMappingURL=style.d.mts.map
|
|
@@ -2,8 +2,8 @@ import { RenderContext } from "./renderContext.mjs";
|
|
|
2
2
|
import { createTemplate, renderTemplate } from "./legacyTemplate/index.mjs";
|
|
3
3
|
import { TemplateResult } from "lit";
|
|
4
4
|
//#region src/runtime/template.d.ts
|
|
5
|
-
type TemplateScope = Record<string, any>;
|
|
6
|
-
type TemplateRenderer = (scope: TemplateScope, ctx: RenderContext) => TemplateResult | string | unknown;
|
|
5
|
+
export type TemplateScope = Record<string, any>;
|
|
6
|
+
export type TemplateRenderer = (scope: TemplateScope, ctx: RenderContext) => TemplateResult | string | unknown;
|
|
7
7
|
//#endregion
|
|
8
|
-
export {
|
|
8
|
+
export { createTemplate, renderTemplate };
|
|
9
9
|
//# sourceMappingURL=template.d.mts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ResolvedWebViewportConfig, WebViewportConfig } from "./types.mjs";
|
|
2
2
|
//#region src/runtime/viewport/index.d.ts
|
|
3
|
-
declare function resolveWebViewportConfig(config?: WebViewportConfig): ResolvedWebViewportConfig;
|
|
4
|
-
declare function setupWebViewport(config?: WebViewportConfig): {
|
|
3
|
+
export declare function resolveWebViewportConfig(config?: WebViewportConfig): ResolvedWebViewportConfig;
|
|
4
|
+
export declare function setupWebViewport(config?: WebViewportConfig): {
|
|
5
5
|
mode: "mini-program" | "responsive";
|
|
6
6
|
maxWidth: number;
|
|
7
7
|
desktopBreakpoint: number;
|
|
8
8
|
};
|
|
9
|
-
declare function getWebViewportWidth(): number;
|
|
9
|
+
export declare function getWebViewportWidth(): number;
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export type { ResolvedWebViewportConfig, WebViewportConfig };
|
|
12
12
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
//#region src/runtime/viewport/types.d.ts
|
|
2
|
-
interface WebViewportConfig {
|
|
2
|
+
export interface WebViewportConfig {
|
|
3
3
|
mode?: 'mini-program' | 'responsive';
|
|
4
4
|
maxWidth?: number;
|
|
5
5
|
desktopBreakpoint?: number;
|
|
6
6
|
}
|
|
7
|
-
interface ResolvedWebViewportConfig {
|
|
7
|
+
export interface ResolvedWebViewportConfig {
|
|
8
8
|
mode: 'mini-program' | 'responsive';
|
|
9
9
|
maxWidth: number;
|
|
10
10
|
desktopBreakpoint: number;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { ResolvedWebViewportConfig, WebViewportConfig };
|
|
14
13
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/runtime/warning.d.ts
|
|
2
|
-
type RuntimeWarningLevel = 'off' | 'warn' | 'error';
|
|
3
|
-
interface RuntimeWarningOptions {
|
|
2
|
+
export type RuntimeWarningLevel = 'off' | 'warn' | 'error';
|
|
3
|
+
export interface RuntimeWarningOptions {
|
|
4
4
|
level?: RuntimeWarningLevel;
|
|
5
5
|
dedupe?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare function setRuntimeWarningOptions(options?: RuntimeWarningOptions): void;
|
|
7
|
+
export declare function setRuntimeWarningOptions(options?: RuntimeWarningOptions): void;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { RuntimeWarningLevel, RuntimeWarningOptions, setRuntimeWarningOptions };
|
|
10
9
|
//# sourceMappingURL=warning.d.mts.map
|
package/dist/runtime/wevu.d.mts
CHANGED
|
@@ -6,15 +6,14 @@ interface WevuRegisterMeta extends RegisterMeta {
|
|
|
6
6
|
/**
|
|
7
7
|
* 将 Wevu App 注册过程接入 Web 页面栈。
|
|
8
8
|
*/
|
|
9
|
-
declare function registerWebWevuApp(options: Record<string, any>, meta: WevuRegisterMeta): void;
|
|
9
|
+
export declare function registerWebWevuApp(options: Record<string, any>, meta: WevuRegisterMeta): void;
|
|
10
10
|
/**
|
|
11
11
|
* 将 Wevu 页面或组件注册过程接入 Web 自定义元素。
|
|
12
12
|
*/
|
|
13
|
-
declare function registerWebWevuComponent(options: Record<string, any>, meta: WevuRegisterMeta): void;
|
|
13
|
+
export declare function registerWebWevuComponent(options: Record<string, any>, meta: WevuRegisterMeta): void;
|
|
14
14
|
/**
|
|
15
15
|
* 在原生模块同步求值期间安装带页面元数据的宿主注册函数。
|
|
16
16
|
*/
|
|
17
|
-
declare function installWebModuleRegistration(meta: WevuRegisterMeta, target?: Record<string, any>): () => void;
|
|
17
|
+
export declare function installWebModuleRegistration(meta: WevuRegisterMeta, target?: Record<string, any>): () => void;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { installWebModuleRegistration, registerWebWevuApp, registerWebWevuComponent };
|
|
20
19
|
//# sourceMappingURL=wevu.d.mts.map
|
package/dist/shared/tabBar.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//#region src/shared/tabBar.d.ts
|
|
2
|
-
interface WebTabBarItem {
|
|
2
|
+
export interface WebTabBarItem {
|
|
3
3
|
pagePath: string;
|
|
4
4
|
text: string;
|
|
5
5
|
iconPath?: string;
|
|
6
6
|
selectedIconPath?: string;
|
|
7
7
|
}
|
|
8
|
-
interface WebTabBarConfig {
|
|
8
|
+
export interface WebTabBarConfig {
|
|
9
9
|
color: string;
|
|
10
10
|
selectedColor: string;
|
|
11
11
|
backgroundColor: string;
|
|
@@ -15,5 +15,4 @@ interface WebTabBarConfig {
|
|
|
15
15
|
list: WebTabBarItem[];
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
|
-
export { WebTabBarConfig, WebTabBarItem };
|
|
19
18
|
//# sourceMappingURL=tabBar.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.21",
|
|
5
5
|
"description": "Experimental web runtime for weapp-vite templates",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"lit": "^3.3.3",
|
|
60
60
|
"magic-string": "^1.2.3",
|
|
61
61
|
"pathe": "^2.0.3",
|
|
62
|
-
"postcss": "^8.5.
|
|
63
|
-
"postcss-selector-parser": "^7.1.
|
|
62
|
+
"postcss": "^8.5.28",
|
|
63
|
+
"postcss-selector-parser": "^7.1.6",
|
|
64
64
|
"rolldown": "1.2.7",
|
|
65
65
|
"rolldown-require": "2.0.28",
|
|
66
|
-
"wevu": "7.0.
|
|
66
|
+
"wevu": "7.0.4"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"happy-dom": "^20.
|
|
69
|
+
"happy-dom": "^20.14.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"dev": "tsdown -w --sourcemap",
|