wevu 6.15.8 → 6.15.10
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/chunk-D1SwGrFN.mjs +27 -0
- package/dist/fetch.d.mts +9 -27
- package/dist/fetch.mjs +1 -356
- package/dist/{index-CiGRePUA.d.mts → index-BwVHsSCe.d.mts} +1 -1
- package/dist/{index-BZFxlr4a.d.mts → index-D9k9y3GQ.d.mts} +4 -2
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +5 -4
- package/dist/{ref-mshhFqmk.mjs → ref-C8almzLH.mjs} +62 -37
- package/dist/{router-B43fz4cM.mjs → router-Brjo9NKc.mjs} +7 -7
- package/dist/router.d.mts +1 -1
- package/dist/router.mjs +2 -2
- package/dist/{src-C66cvILG.mjs → src-C_ZbpJIB.mjs} +6 -4
- package/dist/{store-fwgCLl_K.mjs → store-Cqeyitcj.mjs} +1 -1
- package/dist/store.d.mts +1 -1
- package/dist/store.mjs +1 -1
- package/dist/vue-demi.d.mts +7 -3
- package/dist/vue-demi.mjs +6 -5
- package/dist/{vue-types-DTCZBnfZ.d.mts → vue-types-hsjLkWTv.d.mts} +5 -16
- package/dist/web-apis.d.mts +3 -0
- package/dist/web-apis.mjs +3 -0
- package/package.json +11 -3
- package/dist/defineProperty-BewxOmW8.mjs +0 -39
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __exportAll = (all, no_symbols) => {
|
|
7
|
+
let target = {};
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
return target;
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
17
|
+
key = keys[i];
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
19
|
+
get: ((k) => from[k]).bind(null, key),
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
26
|
+
//#endregion
|
|
27
|
+
export { __reExport as n, __exportAll as t };
|
package/dist/fetch.d.mts
CHANGED
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
interface RequestLikeInput {
|
|
10
|
-
url: string;
|
|
11
|
-
method?: string;
|
|
12
|
-
headers?: unknown;
|
|
13
|
-
signal?: AbortSignal | null;
|
|
14
|
-
bodyUsed?: boolean;
|
|
15
|
-
clone?: () => {
|
|
16
|
-
arrayBuffer?: () => Promise<ArrayBuffer>;
|
|
17
|
-
text?: () => Promise<string>;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
type WevuFetchInput = string | URL | RequestLikeInput;
|
|
1
|
+
import { WeapiMiniProgramRequestMethod } from "@wevu/api";
|
|
2
|
+
import * as _$_wevu_web_apis_fetch0 from "@wevu/web-apis/fetch";
|
|
3
|
+
import { RequestGlobalsFetchInit as WevuFetchInit, fetch } from "@wevu/web-apis/fetch";
|
|
4
|
+
|
|
5
|
+
//#region src/fetch.d.ts
|
|
6
|
+
type WevuFetchInput = Parameters<typeof _$_wevu_web_apis_fetch0.fetch>[0];
|
|
7
|
+
type MiniProgramRequestMethod = WeapiMiniProgramRequestMethod;
|
|
8
|
+
type WxRequestMethod = MiniProgramRequestMethod;
|
|
21
9
|
//#endregion
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @description 使用 @wevu/api 的 request 能力实现 fetch 语义对齐
|
|
25
|
-
*/
|
|
26
|
-
declare function fetch(input: WevuFetchInput, init?: WevuFetchInit): Promise<Response>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { type WevuFetchInit, type WevuFetchInput, fetch };
|
|
10
|
+
export { MiniProgramRequestMethod, type WevuFetchInit, WevuFetchInput, WxRequestMethod, fetch };
|
package/dist/fetch.mjs
CHANGED
|
@@ -1,357 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { wpi } from "@wevu/api";
|
|
3
|
-
//#region src/fetch/shared.ts
|
|
4
|
-
const hasOwn = Object.prototype.hasOwnProperty;
|
|
5
|
-
function isObject(value) {
|
|
6
|
-
return typeof value === "object" && value !== null;
|
|
7
|
-
}
|
|
8
|
-
function createAbortError() {
|
|
9
|
-
if (typeof DOMException === "function") return new DOMException("The operation was aborted.", "AbortError");
|
|
10
|
-
const error = /* @__PURE__ */ new Error("The operation was aborted.");
|
|
11
|
-
error.name = "AbortError";
|
|
12
|
-
return error;
|
|
13
|
-
}
|
|
14
|
-
function encodeText(text) {
|
|
15
|
-
if (typeof TextEncoder === "function") return new TextEncoder().encode(text).buffer;
|
|
16
|
-
const bytes = new Uint8Array(text.length);
|
|
17
|
-
for (let i = 0; i < text.length; i++) bytes[i] = text.charCodeAt(i) & 255;
|
|
18
|
-
return bytes.buffer;
|
|
19
|
-
}
|
|
20
|
-
function decodeText(buffer) {
|
|
21
|
-
if (typeof TextDecoder === "function") return new TextDecoder().decode(buffer);
|
|
22
|
-
const view = new Uint8Array(buffer);
|
|
23
|
-
let text = "";
|
|
24
|
-
for (const byte of view) text += String.fromCharCode(byte);
|
|
25
|
-
return text;
|
|
26
|
-
}
|
|
27
|
-
function cloneBuffer(buffer) {
|
|
28
|
-
return buffer.slice(0);
|
|
29
|
-
}
|
|
30
|
-
function cloneViewBuffer(view) {
|
|
31
|
-
const copied = new Uint8Array(view.byteLength);
|
|
32
|
-
copied.set(new Uint8Array(view.buffer, view.byteOffset, view.byteLength));
|
|
33
|
-
return copied.buffer;
|
|
34
|
-
}
|
|
35
|
-
function isRequestLikeInput(input) {
|
|
36
|
-
return isObject(input) && typeof input.url === "string";
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/fetch/types.ts
|
|
40
|
-
const REQUEST_METHODS = [
|
|
41
|
-
"GET",
|
|
42
|
-
"HEAD",
|
|
43
|
-
"OPTIONS",
|
|
44
|
-
"POST",
|
|
45
|
-
"PUT",
|
|
46
|
-
"DELETE",
|
|
47
|
-
"TRACE",
|
|
48
|
-
"CONNECT"
|
|
49
|
-
];
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region src/fetch/headers.ts
|
|
52
|
-
let _Symbol$iterator;
|
|
53
|
-
function normalizeMethod(method) {
|
|
54
|
-
const normalized = (method !== null && method !== void 0 ? method : "GET").toUpperCase();
|
|
55
|
-
if (REQUEST_METHODS.includes(normalized)) return normalized;
|
|
56
|
-
return "GET";
|
|
57
|
-
}
|
|
58
|
-
function setHeader(target, key, value) {
|
|
59
|
-
const headerName = key.trim();
|
|
60
|
-
if (!headerName) return;
|
|
61
|
-
const normalizedValue = String(value);
|
|
62
|
-
for (const existingKey of Object.keys(target)) if (existingKey.toLowerCase() === headerName.toLowerCase() && existingKey !== headerName) {
|
|
63
|
-
delete target[existingKey];
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
target[headerName] = normalizedValue;
|
|
67
|
-
}
|
|
68
|
-
function hasHeader(target, key) {
|
|
69
|
-
const normalized = key.toLowerCase();
|
|
70
|
-
return Object.keys(target).some((item) => item.toLowerCase() === normalized);
|
|
71
|
-
}
|
|
72
|
-
function mergeHeaderSource(target, source) {
|
|
73
|
-
if (!source) return;
|
|
74
|
-
if (typeof source.forEach === "function") {
|
|
75
|
-
source.forEach((value, key) => {
|
|
76
|
-
setHeader(target, key, value);
|
|
77
|
-
});
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
if (typeof source[Symbol.iterator] === "function") {
|
|
81
|
-
for (const item of source) {
|
|
82
|
-
if (!item || item.length < 2) continue;
|
|
83
|
-
setHeader(target, item[0], item[1]);
|
|
84
|
-
}
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
if (isObject(source)) for (const [key, value] of Object.entries(source)) {
|
|
88
|
-
if (Array.isArray(value)) {
|
|
89
|
-
setHeader(target, key, value.join(", "));
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
setHeader(target, key, value);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
function toHeaderMap(source) {
|
|
96
|
-
const headers = {};
|
|
97
|
-
mergeHeaderSource(headers, source);
|
|
98
|
-
return headers;
|
|
99
|
-
}
|
|
100
|
-
_Symbol$iterator = Symbol.iterator;
|
|
101
|
-
var WevuHeadersFallback = class {
|
|
102
|
-
constructor(init) {
|
|
103
|
-
_defineProperty(this, "store", /* @__PURE__ */ new Map());
|
|
104
|
-
if (!init) return;
|
|
105
|
-
for (const [key, value] of Object.entries(init)) this.set(key, value);
|
|
106
|
-
}
|
|
107
|
-
append(key, value) {
|
|
108
|
-
const current = this.get(key);
|
|
109
|
-
if (!current) {
|
|
110
|
-
this.set(key, value);
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
this.set(key, `${current}, ${value}`);
|
|
114
|
-
}
|
|
115
|
-
set(key, value) {
|
|
116
|
-
const normalized = key.toLowerCase();
|
|
117
|
-
this.store.set(normalized, {
|
|
118
|
-
key,
|
|
119
|
-
value
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
get(key) {
|
|
123
|
-
var _this$store$get$value, _this$store$get;
|
|
124
|
-
return (_this$store$get$value = (_this$store$get = this.store.get(key.toLowerCase())) === null || _this$store$get === void 0 ? void 0 : _this$store$get.value) !== null && _this$store$get$value !== void 0 ? _this$store$get$value : null;
|
|
125
|
-
}
|
|
126
|
-
has(key) {
|
|
127
|
-
return this.store.has(key.toLowerCase());
|
|
128
|
-
}
|
|
129
|
-
delete(key) {
|
|
130
|
-
this.store.delete(key.toLowerCase());
|
|
131
|
-
}
|
|
132
|
-
forEach(callback) {
|
|
133
|
-
for (const item of this.store.values()) callback(item.value, item.key);
|
|
134
|
-
}
|
|
135
|
-
entries() {
|
|
136
|
-
return Array.from(this.store.values(), (item) => [item.key, item.value])[Symbol.iterator]();
|
|
137
|
-
}
|
|
138
|
-
keys() {
|
|
139
|
-
return Array.from(this.store.values(), (item) => item.key)[Symbol.iterator]();
|
|
140
|
-
}
|
|
141
|
-
values() {
|
|
142
|
-
return Array.from(this.store.values(), (item) => item.value)[Symbol.iterator]();
|
|
143
|
-
}
|
|
144
|
-
[_Symbol$iterator]() {
|
|
145
|
-
return this.entries();
|
|
146
|
-
}
|
|
147
|
-
};
|
|
148
|
-
function createHeadersContainer(headers) {
|
|
149
|
-
if (typeof Headers === "function") return new Headers(headers);
|
|
150
|
-
return new WevuHeadersFallback(headers);
|
|
151
|
-
}
|
|
152
|
-
function cloneHeadersToMap(headers) {
|
|
153
|
-
const result = {};
|
|
154
|
-
headers.forEach((value, key) => {
|
|
155
|
-
setHeader(result, key, value);
|
|
156
|
-
});
|
|
157
|
-
return result;
|
|
158
|
-
}
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region src/fetch/body.ts
|
|
161
|
-
async function extractRequestBodyFromInput(input) {
|
|
162
|
-
if (!input || typeof input.clone !== "function") return;
|
|
163
|
-
if (input.bodyUsed) throw new TypeError("Failed to execute fetch: request body is already used");
|
|
164
|
-
const cloned = input.clone();
|
|
165
|
-
if (cloned === null || cloned === void 0 ? void 0 : cloned.arrayBuffer) return cloned.arrayBuffer();
|
|
166
|
-
if (cloned === null || cloned === void 0 ? void 0 : cloned.text) return cloned.text();
|
|
167
|
-
}
|
|
168
|
-
async function normalizeRequestBody(body, headers) {
|
|
169
|
-
if (body == null) return;
|
|
170
|
-
if (typeof body === "string") {
|
|
171
|
-
if (!hasHeader(headers, "content-type")) headers["content-type"] = "text/plain;charset=UTF-8";
|
|
172
|
-
return body;
|
|
173
|
-
}
|
|
174
|
-
if (typeof URLSearchParams !== "undefined" && body instanceof URLSearchParams) {
|
|
175
|
-
if (!hasHeader(headers, "content-type")) headers["content-type"] = "application/x-www-form-urlencoded;charset=UTF-8";
|
|
176
|
-
return body.toString();
|
|
177
|
-
}
|
|
178
|
-
if (body instanceof ArrayBuffer) return cloneBuffer(body);
|
|
179
|
-
if (ArrayBuffer.isView(body)) return cloneViewBuffer(body);
|
|
180
|
-
if (typeof Blob !== "undefined" && body instanceof Blob) {
|
|
181
|
-
if (body.type && !hasHeader(headers, "content-type")) headers["content-type"] = body.type;
|
|
182
|
-
return body.arrayBuffer();
|
|
183
|
-
}
|
|
184
|
-
if (typeof FormData !== "undefined" && body instanceof FormData) throw new TypeError("Failed to execute fetch: FormData body is not supported in wevu/fetch");
|
|
185
|
-
return String(body);
|
|
186
|
-
}
|
|
187
|
-
async function resolveRequestMeta(input, init = {}) {
|
|
188
|
-
var _init$method, _ref, _init$signal;
|
|
189
|
-
const requestInput = isRequestLikeInput(input) ? input : void 0;
|
|
190
|
-
const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : requestInput === null || requestInput === void 0 ? void 0 : requestInput.url;
|
|
191
|
-
if (!url) throw new TypeError("Failed to execute fetch: invalid request url");
|
|
192
|
-
const method = normalizeMethod((_init$method = init.method) !== null && _init$method !== void 0 ? _init$method : requestInput === null || requestInput === void 0 ? void 0 : requestInput.method);
|
|
193
|
-
const headers = toHeaderMap(requestInput === null || requestInput === void 0 ? void 0 : requestInput.headers);
|
|
194
|
-
mergeHeaderSource(headers, init.headers);
|
|
195
|
-
const rawBody = hasOwn.call(init, "body") ? init.body : await extractRequestBodyFromInput(requestInput);
|
|
196
|
-
if ((method === "GET" || method === "HEAD") && rawBody != null) throw new TypeError("Failed to execute fetch: GET/HEAD request cannot have body");
|
|
197
|
-
return {
|
|
198
|
-
url,
|
|
199
|
-
method,
|
|
200
|
-
headers,
|
|
201
|
-
body: await normalizeRequestBody(rawBody, headers),
|
|
202
|
-
signal: (_ref = (_init$signal = init.signal) !== null && _init$signal !== void 0 ? _init$signal : requestInput === null || requestInput === void 0 ? void 0 : requestInput.signal) !== null && _ref !== void 0 ? _ref : null
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region src/fetch/response.ts
|
|
207
|
-
let _Symbol$toStringTag;
|
|
208
|
-
function readResponseDataAsArrayBuffer(data) {
|
|
209
|
-
if (data == null) return Promise.resolve(/* @__PURE__ */ new ArrayBuffer(0));
|
|
210
|
-
if (data instanceof ArrayBuffer) return Promise.resolve(cloneBuffer(data));
|
|
211
|
-
if (ArrayBuffer.isView(data)) return Promise.resolve(cloneViewBuffer(data));
|
|
212
|
-
if (typeof data === "string") return Promise.resolve(encodeText(data));
|
|
213
|
-
if (typeof Blob !== "undefined" && data instanceof Blob) return data.arrayBuffer();
|
|
214
|
-
return Promise.resolve(encodeText(JSON.stringify(data)));
|
|
215
|
-
}
|
|
216
|
-
_Symbol$toStringTag = Symbol.toStringTag;
|
|
217
|
-
var WevuResponseFallback = class WevuResponseFallback {
|
|
218
|
-
constructor(data, options) {
|
|
219
|
-
_defineProperty(this, "consumed", false);
|
|
220
|
-
_defineProperty(this, "responseData", void 0);
|
|
221
|
-
_defineProperty(this, "headers", void 0);
|
|
222
|
-
_defineProperty(this, "ok", void 0);
|
|
223
|
-
_defineProperty(this, "redirected", false);
|
|
224
|
-
_defineProperty(this, "status", void 0);
|
|
225
|
-
_defineProperty(this, "statusText", "");
|
|
226
|
-
_defineProperty(this, "type", "basic");
|
|
227
|
-
_defineProperty(this, "url", void 0);
|
|
228
|
-
_defineProperty(this, "body", null);
|
|
229
|
-
_defineProperty(this, _Symbol$toStringTag, "Response");
|
|
230
|
-
this.responseData = data;
|
|
231
|
-
this.status = options.status;
|
|
232
|
-
this.url = options.url;
|
|
233
|
-
this.ok = this.status >= 200 && this.status < 300;
|
|
234
|
-
this.headers = createHeadersContainer(options.headers);
|
|
235
|
-
}
|
|
236
|
-
get bodyUsed() {
|
|
237
|
-
return this.consumed;
|
|
238
|
-
}
|
|
239
|
-
consumeBody(reader) {
|
|
240
|
-
if (this.consumed) return Promise.reject(/* @__PURE__ */ new TypeError("Failed to execute fetch: body stream already read"));
|
|
241
|
-
this.consumed = true;
|
|
242
|
-
return reader();
|
|
243
|
-
}
|
|
244
|
-
arrayBuffer() {
|
|
245
|
-
return this.consumeBody(() => readResponseDataAsArrayBuffer(this.responseData));
|
|
246
|
-
}
|
|
247
|
-
blob() {
|
|
248
|
-
return this.consumeBody(async () => {
|
|
249
|
-
if (typeof Blob !== "function") throw new TypeError("Blob is unavailable in current runtime");
|
|
250
|
-
const arrayBuffer = await readResponseDataAsArrayBuffer(this.responseData);
|
|
251
|
-
return new Blob([arrayBuffer]);
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
formData() {
|
|
255
|
-
return this.consumeBody(async () => {
|
|
256
|
-
throw new TypeError("formData is not supported in wevu/fetch response fallback");
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
json() {
|
|
260
|
-
return this.consumeBody(async () => {
|
|
261
|
-
if (isObject(this.responseData) || Array.isArray(this.responseData)) return this.responseData;
|
|
262
|
-
const text = await this.textFromRaw();
|
|
263
|
-
return JSON.parse(text);
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
text() {
|
|
267
|
-
return this.consumeBody(() => this.textFromRaw());
|
|
268
|
-
}
|
|
269
|
-
clone() {
|
|
270
|
-
return new WevuResponseFallback(this.responseData, {
|
|
271
|
-
headers: cloneHeadersToMap(this.headers),
|
|
272
|
-
status: this.status,
|
|
273
|
-
url: this.url
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
async textFromRaw() {
|
|
277
|
-
if (typeof this.responseData === "string") return this.responseData;
|
|
278
|
-
return decodeText(await readResponseDataAsArrayBuffer(this.responseData));
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
function createFetchResponse(data, status, headers, url) {
|
|
282
|
-
if (typeof Response === "function") {
|
|
283
|
-
const nativeBody = typeof data === "string" ? data : data instanceof ArrayBuffer ? data : ArrayBuffer.isView(data) ? cloneViewBuffer(data) : JSON.stringify(data !== null && data !== void 0 ? data : "");
|
|
284
|
-
const normalizedStatus = Number.isFinite(status) && status >= 200 && status <= 599 ? status : 200;
|
|
285
|
-
try {
|
|
286
|
-
return new Response(nativeBody, {
|
|
287
|
-
status: normalizedStatus,
|
|
288
|
-
headers
|
|
289
|
-
});
|
|
290
|
-
} catch (_unused) {}
|
|
291
|
-
}
|
|
292
|
-
return new WevuResponseFallback(data, {
|
|
293
|
-
headers,
|
|
294
|
-
status,
|
|
295
|
-
url
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function normalizeResponseHeaders(headers) {
|
|
299
|
-
return toHeaderMap(headers);
|
|
300
|
-
}
|
|
301
|
-
//#endregion
|
|
302
|
-
//#region src/fetch/index.ts
|
|
303
|
-
function isRequestTask(value) {
|
|
304
|
-
return isObject(value) && typeof value.abort === "function";
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* @description 使用 @wevu/api 的 request 能力实现 fetch 语义对齐
|
|
308
|
-
*/
|
|
309
|
-
function fetch(input, init) {
|
|
310
|
-
return resolveRequestMeta(input, init).then((meta) => {
|
|
311
|
-
var _meta$signal;
|
|
312
|
-
if ((_meta$signal = meta.signal) === null || _meta$signal === void 0 ? void 0 : _meta$signal.aborted) return Promise.reject(createAbortError());
|
|
313
|
-
return new Promise((resolve, reject) => {
|
|
314
|
-
let settled = false;
|
|
315
|
-
let aborted = false;
|
|
316
|
-
let requestTask;
|
|
317
|
-
const onAbort = () => {
|
|
318
|
-
if (settled) return;
|
|
319
|
-
aborted = true;
|
|
320
|
-
requestTask === null || requestTask === void 0 || requestTask.abort();
|
|
321
|
-
settled = true;
|
|
322
|
-
reject(createAbortError());
|
|
323
|
-
};
|
|
324
|
-
if (meta.signal) meta.signal.addEventListener("abort", onAbort, { once: true });
|
|
325
|
-
const cleanup = () => {
|
|
326
|
-
if (meta.signal) meta.signal.removeEventListener("abort", onAbort);
|
|
327
|
-
};
|
|
328
|
-
const requestResult = wpi.request({
|
|
329
|
-
url: meta.url,
|
|
330
|
-
method: meta.method,
|
|
331
|
-
header: meta.headers,
|
|
332
|
-
data: meta.body,
|
|
333
|
-
responseType: "arraybuffer",
|
|
334
|
-
success: (res) => {
|
|
335
|
-
if (settled) return;
|
|
336
|
-
settled = true;
|
|
337
|
-
cleanup();
|
|
338
|
-
resolve(createFetchResponse(res.data, res.statusCode, normalizeResponseHeaders(res.header), meta.url));
|
|
339
|
-
},
|
|
340
|
-
fail: (err) => {
|
|
341
|
-
if (settled) return;
|
|
342
|
-
settled = true;
|
|
343
|
-
cleanup();
|
|
344
|
-
if (aborted) {
|
|
345
|
-
reject(createAbortError());
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
const message = isObject(err) && typeof err.errMsg === "string" ? err.errMsg : String(err);
|
|
349
|
-
reject(new TypeError(message));
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
requestTask = isRequestTask(requestResult) ? requestResult : void 0;
|
|
353
|
-
});
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
//#endregion
|
|
1
|
+
import { fetch } from "@wevu/web-apis/fetch";
|
|
357
2
|
export { fetch };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { n as MiniProgramIntrinsicElements } from "./weappIntrinsicElements-Cdfh6BlL.mjs";
|
|
2
|
-
import { $n as HostMiniProgramNodesRefFields, An as MiniProgramPageLifetimes, Cn as MiniProgramAppOptions, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, E as ModelBindingOptions, En as MiniProgramComponentOptions, Fn as HostMiniProgramBoundingClientRectResult, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, In as HostMiniProgramComponentAllFullProperty, Jn as HostMiniProgramIntersectionObserverOptions, Ln as HostMiniProgramComponentAllProperty, On as MiniProgramComponentRawOptions, Rn as HostMiniProgramComponentBehaviorOptions, T as ModelBinding, Tn as MiniProgramComponentInstance, Ut as ShallowRef, Vn as HostMiniProgramComponentMethodOption, Xn as HostMiniProgramMemoryWarningResult, Yn as HostMiniProgramLaunchOptions, _ as RuntimeApp, b as ComponentPublicInstance, c as ShallowUnwrapRef, cr as HostMiniProgramSaveExitState, d as SetupContext, dr as HostMiniProgramShareAppMessageOption, er as HostMiniProgramPageLifetime, f as SetupContextNativeInstance, gr as HostMiniProgramUnhandledRejectionResult, h as InternalRuntimeState, hr as HostMiniProgramTriggerEventOptions, i as DefineComponent, jn as HostMiniProgramAddToFavoritesOption, lr as HostMiniProgramScrollOffsetResult, mn as InferProps, mr as HostMiniProgramThemeChangeResult, nr as HostMiniProgramPageResizeOption, p as SetupFunction, pr as HostMiniProgramTabItemTapOption, qn as HostMiniProgramIntersectionObserver, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, sn as ComponentPropsOptions, tr as HostMiniProgramPageNotFoundOptions, v as RuntimeInstance, w as MethodDefinitions, x as ComputedDefinitions, y as WevuPlugin, zn as HostMiniProgramComponentEmptyArray } from "./vue-types-
|
|
1
|
+
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-Cdfh6BlL.mjs";
|
|
2
|
+
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes$1, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-hsjLkWTv.mjs";
|
|
3
|
+
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-BwVHsSCe.mjs";
|
|
4
|
+
|
|
3
5
|
//#region src/runtime/types/setData.d.ts
|
|
4
6
|
interface SetDataSnapshotOptions {
|
|
5
7
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-Cdfh6BlL.mjs";
|
|
2
|
-
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-
|
|
3
|
-
import { $ as PageLayoutState, $t as onTabItemTap, A as defineAppSetup, An as MiniProgramTemplateRefValue, At as onServerPrefetch, B as setRuntimeSetDataVisibility, Bn as SetDataDebugInfo, Bt as onMemoryWarning, C as UseModelOptions, Cn as defineComponent, Ct as onActivated, D as useAttrs, Dn as createApp, Dt as onDeactivated, E as useModel, En as setWevuDefaults, Et as onBeforeUpdate, F as useUpdatePerformanceListener, Fn as CreateAppOptions, Ft as onDetached, G as inject, Gt as onReachBottom, H as registerComponent, Ht as onPageNotFound, I as normalizeClass, In as DataOption, It as onError, J as provideGlobal, Jt as onRouteDone, K as injectGlobal, Kt as onReady, L as normalizeStyle, Ln as DefineAppOptions, Lt as onHide, M as UpdatePerformanceListener, Mn as TemplateRefs, Mt as onUpdated, N as UpdatePerformanceListenerResult, Nn as WevuGlobalComponents, Nt as onAddToFavorites, O as useNativeInstance, On as GlobalComponents, Ot as onErrorCaptured, P as UseUpdatePerformanceListenerStopHandle, Pn as WevuGlobalDirectives, Pt as onAttached, Q as usePageScrollThrottle, Qt as onShow, R as runSetupFunction, Rn as DefineComponentOptions, Rt as onLaunch, S as ModelModifiers, Sn as createWevuScopedSlotComponent, St as callUpdateHooks, T as useBindModel, Tn as resetWevuDefaults, Tt as onBeforeUnmount, U as registerApp, Ut as onPageScroll, V as teardownRuntimeInstance, Vn as SetDataSnapshotOptions, Vt as onMoved, W as hasInjectionContext, Wt as onPullDownRefresh, X as UsePageScrollThrottleOptions, Xt as onShareAppMessage, Y as setGlobalProvidedValue, Yt as onSaveExitState, Z as UsePageScrollThrottleStopHandle, Zt as onShareTimeline, _ as EmitsOptions, _n as SetupContextWithTypeProps, _t as useLayoutHosts, a as PageLayoutMeta, an as getCurrentInstance, at as usePageLayout, b as useNativePageRouter, bn as WevuDefinedComponent, bt as UseIntersectionObserverResult, c as defineExpose, cn as setCurrentSetupContext, ct as LayoutBridgeInstance, d as definePageMeta, dn as DisposableMethodName, dt as registerRuntimeLayoutHosts, en as onThemeChange, et as WevuPageLayoutMap, f as defineProps, fn as DisposableObject, ft as resolveLayoutBridge, g as EmitFn, gn as DefineComponentWithTypeProps, gt as useLayoutBridge, h as ComponentTypeEmits, hn as DefineComponentTypePropsOptions, ht as unregisterRuntimeLayoutHosts, i as ModelRef, in as callHookReturn, it as syncRuntimePageLayoutStateFromRuntime, j as use, jn as TemplateRefValue, jt as onUnmounted, k as useSlots, kn as GlobalDirectives, kt as onMounted, l as defineModel, ln as DisposableBag, lt as LayoutHostBinding, m as withDefaults, mn as ComponentDefinition, mt as unregisterPageLayoutBridge, n as DefineModelModifiers, nn as onUnload, nt as setPageLayout, o as PageMeta, on as getCurrentSetupContext, ot as isNoSetData, p as defineSlots, pn as useDisposables, pt as resolveLayoutHost, q as provide, qt as onResize, r as DefineModelTransformOptions, rn as callHookList, rt as syncRuntimePageLayoutState, s as defineEmits, sn as setCurrentInstance, st as markNoSetData, t as version, tn as onUnhandledRejection, tt as resolveRuntimePageLayoutName, u as defineOptions, un as DisposableLike, ut as registerPageLayoutBridge, v as TemplateRef, vn as SetupFunctionWithTypeProps, vt as waitForLayoutHost, w as mergeModels, wn as WevuDefaults, wt as onBeforeMount, x as useNativeRouter, xn as createWevuComponent, xt as useIntersectionObserver, y as useTemplateRef, yn as WevuComponentConstructor, yt as UseIntersectionObserverOptions, z as mountRuntimeInstance, zn as PageFeatures, zt as onLoad } from "./index-
|
|
4
|
-
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-
|
|
2
|
+
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-hsjLkWTv.mjs";
|
|
3
|
+
import { $ as PageLayoutState, $t as onTabItemTap, A as defineAppSetup, An as MiniProgramTemplateRefValue, At as onServerPrefetch, B as setRuntimeSetDataVisibility, Bn as SetDataDebugInfo, Bt as onMemoryWarning, C as UseModelOptions, Cn as defineComponent, Ct as onActivated, D as useAttrs, Dn as createApp, Dt as onDeactivated, E as useModel, En as setWevuDefaults, Et as onBeforeUpdate, F as useUpdatePerformanceListener, Fn as CreateAppOptions, Ft as onDetached, G as inject, Gt as onReachBottom, H as registerComponent, Ht as onPageNotFound, I as normalizeClass, In as DataOption, It as onError, J as provideGlobal, Jt as onRouteDone, K as injectGlobal, Kt as onReady, L as normalizeStyle, Ln as DefineAppOptions, Lt as onHide, M as UpdatePerformanceListener, Mn as TemplateRefs, Mt as onUpdated, N as UpdatePerformanceListenerResult, Nn as WevuGlobalComponents, Nt as onAddToFavorites, O as useNativeInstance, On as GlobalComponents, Ot as onErrorCaptured, P as UseUpdatePerformanceListenerStopHandle, Pn as WevuGlobalDirectives, Pt as onAttached, Q as usePageScrollThrottle, Qt as onShow, R as runSetupFunction, Rn as DefineComponentOptions, Rt as onLaunch, S as ModelModifiers, Sn as createWevuScopedSlotComponent, St as callUpdateHooks, T as useBindModel, Tn as resetWevuDefaults, Tt as onBeforeUnmount, U as registerApp, Ut as onPageScroll, V as teardownRuntimeInstance, Vn as SetDataSnapshotOptions, Vt as onMoved, W as hasInjectionContext, Wt as onPullDownRefresh, X as UsePageScrollThrottleOptions, Xt as onShareAppMessage, Y as setGlobalProvidedValue, Yt as onSaveExitState, Z as UsePageScrollThrottleStopHandle, Zt as onShareTimeline, _ as EmitsOptions, _n as SetupContextWithTypeProps, _t as useLayoutHosts, a as PageLayoutMeta, an as getCurrentInstance, at as usePageLayout, b as useNativePageRouter, bn as WevuDefinedComponent, bt as UseIntersectionObserverResult, c as defineExpose, cn as setCurrentSetupContext, ct as LayoutBridgeInstance, d as definePageMeta, dn as DisposableMethodName, dt as registerRuntimeLayoutHosts, en as onThemeChange, et as WevuPageLayoutMap, f as defineProps, fn as DisposableObject, ft as resolveLayoutBridge, g as EmitFn, gn as DefineComponentWithTypeProps, gt as useLayoutBridge, h as ComponentTypeEmits, hn as DefineComponentTypePropsOptions, ht as unregisterRuntimeLayoutHosts, i as ModelRef, in as callHookReturn, it as syncRuntimePageLayoutStateFromRuntime, j as use, jn as TemplateRefValue, jt as onUnmounted, k as useSlots, kn as GlobalDirectives, kt as onMounted, l as defineModel, ln as DisposableBag, lt as LayoutHostBinding, m as withDefaults, mn as ComponentDefinition, mt as unregisterPageLayoutBridge, n as DefineModelModifiers, nn as onUnload, nt as setPageLayout, o as PageMeta, on as getCurrentSetupContext, ot as isNoSetData, p as defineSlots, pn as useDisposables, pt as resolveLayoutHost, q as provide, qt as onResize, r as DefineModelTransformOptions, rn as callHookList, rt as syncRuntimePageLayoutState, s as defineEmits, sn as setCurrentInstance, st as markNoSetData, t as version, tn as onUnhandledRejection, tt as resolveRuntimePageLayoutName, u as defineOptions, un as DisposableLike, ut as registerPageLayoutBridge, v as TemplateRef, vn as SetupFunctionWithTypeProps, vt as waitForLayoutHost, w as mergeModels, wn as WevuDefaults, wt as onBeforeMount, x as useNativeRouter, xn as createWevuComponent, xt as useIntersectionObserver, y as useTemplateRef, yn as WevuComponentConstructor, yt as UseIntersectionObserverOptions, z as mountRuntimeInstance, zn as PageFeatures, zt as onLoad } from "./index-D9k9y3GQ.mjs";
|
|
4
|
+
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-BwVHsSCe.mjs";
|
|
5
|
+
export * from "@wevu/web-apis";
|
|
5
6
|
export { ActionContext, ActionSubscriber, AlipayMiniProgramHostNamespace, AlipayMiniProgramHostSourceContract, AllowedComponentProps, AppConfig, ComponentCustomProps, ComponentDefinition, ComponentOptionsMixin, ComponentPropsOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, DataOption, DefaultMiniProgramHostNamespace, DefaultMiniProgramHostSourceContract, DefineAppOptions, DefineComponent, DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, DouyinMiniProgramHostNamespace, DouyinMiniProgramHostSourceContract, EffectScope, EmitFn, EmitsOptions, ExtractComputed, ExtractDefaultPropTypes, ExtractMethods, ExtractPropTypes, ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, HostMiniProgramAddToFavoritesOption, HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, HostMiniProgramAppOptions, HostMiniProgramAppTrivialInstance, HostMiniProgramBehaviorIdentifier, HostMiniProgramBoundingClientRectResult, HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, HostMiniProgramComponentAllFullProperty, HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, HostMiniProgramComponentAllProperty, HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, HostMiniProgramComponentBehaviorOptions, HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, HostMiniProgramComponentEmptyArray, HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, HostMiniProgramComponentInstance, HostMiniProgramComponentMethodOption, HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, HostMiniProgramComponentPropertyOption, HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, HostMiniProgramComponentPropertyValue, HostMiniProgramComponentShortProperty, HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, HostMiniProgramComponentTrivialInstance, HostMiniProgramComponentTrivialOption, HostMiniProgramIntersectionObserver, HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions, HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, HostMiniProgramLaunchOptions, HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, HostMiniProgramMemoryWarningResult, HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, HostMiniProgramNavigateToOption, HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, HostMiniProgramNodesRef, HostMiniProgramNodesRef as MiniProgramNodesRef, HostMiniProgramNodesRefFields, HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, HostMiniProgramPageLifetime, HostMiniProgramPageLifetime as MiniProgramPageLifetime, HostMiniProgramPageNotFoundOptions, HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, HostMiniProgramPageResizeOption, HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, HostMiniProgramPageScrollOption, HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, HostMiniProgramPageTrivialInstance, HostMiniProgramReLaunchOption, HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, HostMiniProgramRedirectToOption, HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, HostMiniProgramRouter, HostMiniProgramRouter as MiniProgramRouter, HostMiniProgramSaveExitState, HostMiniProgramSaveExitState as MiniProgramSaveExitState, HostMiniProgramScrollOffsetResult, HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, HostMiniProgramSelectorQuery, HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, HostMiniProgramShareAppMessageOption, HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, HostMiniProgramSwitchTabOption, HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, HostMiniProgramTabItemTapOption, HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, HostMiniProgramThemeChangeResult, HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, HostMiniProgramTriggerEventOptions, HostMiniProgramTriggerEventOptions as TriggerEventOptions, HostMiniProgramUnhandledRejectionResult, HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, InferNativePropType, InferNativeProps, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, LayoutBridgeInstance, LayoutHostBinding, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, MethodDefinitions, MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramCSSProperties, MiniProgramComponentInstance, MiniProgramComponentOptions, MiniProgramComponentPropertyValue, MiniProgramComponentRawOptions, MiniProgramDatasetAttributes, MiniProgramHostNamespace, MiniProgramHostNamespaceBySource, MiniProgramHostSourceName, MiniProgramHostSourceRegistry, MiniProgramHtmlAliasIntrinsicElements, MiniProgramInstance, MiniProgramIntrinsicElementBaseAttributes, MiniProgramIntrinsicElements, MiniProgramIntrinsicEventHandler, MiniProgramPageLifetimes, MiniProgramPlatformHostNamespaceBySource, MiniProgramPlatformHostSourceName, MiniProgramPlatformHostSourceRegistry, MiniProgramRouterNavigateToOption, MiniProgramRouterReLaunchOption, MiniProgramRouterRedirectToOption, MiniProgramRouterSwitchTabOption, MiniProgramRuntimeHostNamespaceBySource, MiniProgramRuntimeHostSourceName, MiniProgramRuntimeHostSourceRegistry, MiniProgramTemplateRefValue, ModelBinding, ModelBindingOptions, ModelBindingPayload, ModelModifiers, ModelRef, MultiWatchSources, MutationKind, MutationOp, MutationRecord, MutationType, NativeComponent, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, ObjectDirective, OnCleanup, PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PrelinkReactiveTreeOptions, PropConstructor, PropOptions, PropType, PublicProps, Ref, RuntimeApp, RuntimeInstance, SetDataDebugInfo, SetDataSnapshotOptions, SetupContext, SetupContextNativeInstance, SetupContextRouter, SetupContextWithTypeProps, SetupFunction, SetupFunctionWithTypeProps, ShallowRef, ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, TtMiniProgramHostNamespace, TtMiniProgramHostSourceContract, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseIntersectionObserverOptions, UseIntersectionObserverResult, UseModelOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UseUpdatePerformanceListenerStopHandle, VNode, VNodeProps, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WeappCSSProperties, WeappDatasetAttributes, WeappHtmlAliasIntrinsicElements, WeappIntrinsicElementBaseAttributes, WeappIntrinsicElements, WeappIntrinsicEventHandler, WechatMiniProgramHostNamespace, WechatMiniProgramHostSourceContract, WevuComponentConstructor, WevuDefaults, WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, WevuPlugin, WevuTypedRouterRouteMap, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, hasInjectionContext, inject, injectGlobal, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, removeMutationRecorder, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, storeToRefs, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAttrs, useBindModel, useDisposables, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, usePageLayout, usePageScrollThrottle, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-
|
|
3
|
-
import { A as onPageScroll, B as onTabItemTap, C as onError, D as onMemoryWarning, E as onLoad, F as onRouteDone, G as callHookList, H as onUnhandledRejection, I as onSaveExitState, J as getCurrentSetupContext, K as callHookReturn, L as onShareAppMessage, M as onReachBottom, N as onReady, O as onMoved, P as onResize, R as onShareTimeline, S as onDetached, T as onLaunch, U as onUnload, V as onThemeChange, X as setCurrentInstance, Z as setCurrentSetupContext, _ as provide, at as isReadonly, b as onAddToFavorites, g as injectGlobal, h as inject, it as isProxy, j as onPullDownRefresh, k as onPageNotFound, m as hasInjectionContext, n as useNativeRouter, ot as readonly, q as getCurrentInstance, st as shallowReadonly, t as useNativePageRouter, v as provideGlobal, w as onHide, x as onAttached, y as setGlobalProvidedValue, z as onShow } from "./router-
|
|
4
|
-
import { $ as onBeforeMount, A as registerApp, B as resetWevuDefaults, C as resolveLayoutBridge, D as useLayoutBridge, E as unregisterRuntimeLayoutHosts, F as resolveRuntimePageLayoutName, G as watch, H as isNoSetData, I as setPageLayout, J as watchSyncEffect, K as watchEffect, L as syncRuntimePageLayoutState, M as setRuntimeSetDataVisibility, N as teardownRuntimeInstance, O as useLayoutHosts, P as runSetupFunction, Q as onActivated, R as syncRuntimePageLayoutStateFromRuntime, S as registerRuntimeLayoutHosts, T as unregisterPageLayoutBridge, U as markNoSetData, V as setWevuDefaults, W as version, X as setDeepWatchStrategy, Y as getDeepWatchStrategy, Z as callUpdateHooks, _ as createWevuScopedSlotComponent, a as useAttrs, at as onServerPrefetch, b as registerComponent, c as defineAppSetup, ct as traverse, d as normalizeClass, dt as isShallowRef, et as onBeforeUnmount, f as normalizeStyle, ft as shallowRef, g as createWevuComponent, h as useDisposables, i as useModel, it as onMounted, j as mountRuntimeInstance, k as waitForLayoutHost, l as use, lt as toRef, m as useIntersectionObserver, n as mergeModels, nt as onDeactivated, o as useNativeInstance, ot as onUnmounted, p as usePageScrollThrottle, pt as triggerRef, q as watchPostEffect, r as useBindModel, rt as onErrorCaptured, s as useSlots, st as onUpdated, t as useTemplateRef, tt as onBeforeUpdate, u as useUpdatePerformanceListener, ut as toRefs, v as defineComponent, w as resolveLayoutHost, x as registerPageLayoutBridge, y as createApp, z as usePageLayout } from "./src-
|
|
1
|
+
import { C as effect, D as onScopeDispose, E as getCurrentScope, N as nextTick, O as startBatch, S as batch, T as endBatch, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, k as stop, l as isReactive, n as isRef, o as unref, p as shallowReactive, s as getReactiveVersion, t as customRef, u as markRaw, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-C8almzLH.mjs";
|
|
2
|
+
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-Cqeyitcj.mjs";
|
|
3
|
+
import { A as onPageScroll, B as onTabItemTap, C as onError, D as onMemoryWarning, E as onLoad, F as onRouteDone, G as callHookList, H as onUnhandledRejection, I as onSaveExitState, J as getCurrentSetupContext, K as callHookReturn, L as onShareAppMessage, M as onReachBottom, N as onReady, O as onMoved, P as onResize, R as onShareTimeline, S as onDetached, T as onLaunch, U as onUnload, V as onThemeChange, X as setCurrentInstance, Z as setCurrentSetupContext, _ as provide, at as isReadonly, b as onAddToFavorites, g as injectGlobal, h as inject, it as isProxy, j as onPullDownRefresh, k as onPageNotFound, m as hasInjectionContext, n as useNativeRouter, ot as readonly, q as getCurrentInstance, st as shallowReadonly, t as useNativePageRouter, v as provideGlobal, w as onHide, x as onAttached, y as setGlobalProvidedValue, z as onShow } from "./router-Brjo9NKc.mjs";
|
|
4
|
+
import { $ as onBeforeMount, A as registerApp, B as resetWevuDefaults, C as resolveLayoutBridge, D as useLayoutBridge, E as unregisterRuntimeLayoutHosts, F as resolveRuntimePageLayoutName, G as watch, H as isNoSetData, I as setPageLayout, J as watchSyncEffect, K as watchEffect, L as syncRuntimePageLayoutState, M as setRuntimeSetDataVisibility, N as teardownRuntimeInstance, O as useLayoutHosts, P as runSetupFunction, Q as onActivated, R as syncRuntimePageLayoutStateFromRuntime, S as registerRuntimeLayoutHosts, T as unregisterPageLayoutBridge, U as markNoSetData, V as setWevuDefaults, W as version, X as setDeepWatchStrategy, Y as getDeepWatchStrategy, Z as callUpdateHooks, _ as createWevuScopedSlotComponent, a as useAttrs, at as onServerPrefetch, b as registerComponent, c as defineAppSetup, ct as traverse, d as normalizeClass, dt as isShallowRef, et as onBeforeUnmount, f as normalizeStyle, ft as shallowRef, g as createWevuComponent, h as useDisposables, i as useModel, it as onMounted, j as mountRuntimeInstance, k as waitForLayoutHost, l as use, lt as toRef, m as useIntersectionObserver, n as mergeModels, nt as onDeactivated, o as useNativeInstance, ot as onUnmounted, p as usePageScrollThrottle, pt as triggerRef, q as watchPostEffect, r as useBindModel, rt as onErrorCaptured, s as useSlots, st as onUpdated, t as useTemplateRef, tt as onBeforeUpdate, u as useUpdatePerformanceListener, ut as toRefs, v as defineComponent, w as resolveLayoutHost, x as registerPageLayoutBridge, y as createApp, z as usePageLayout } from "./src-C_ZbpJIB.mjs";
|
|
5
|
+
export * from "@wevu/web-apis";
|
|
5
6
|
export { addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, hasInjectionContext, inject, injectGlobal, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, removeMutationRecorder, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, storeToRefs, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAttrs, useBindModel, useDisposables, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, usePageLayout, usePageScrollThrottle, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as _defineProperty } from "./defineProperty-BewxOmW8.mjs";
|
|
2
1
|
//#region src/scheduler.ts
|
|
3
2
|
const resolvedPromise = Promise.resolve();
|
|
4
3
|
const jobQueue = /* @__PURE__ */ new Set();
|
|
@@ -25,6 +24,44 @@ function nextTick(fn) {
|
|
|
25
24
|
return fn ? resolvedPromise.then(fn) : resolvedPromise;
|
|
26
25
|
}
|
|
27
26
|
//#endregion
|
|
27
|
+
//#region \0@oxc-project+runtime@0.126.0/helpers/typeof.js
|
|
28
|
+
function _typeof(o) {
|
|
29
|
+
"@babel/helpers - typeof";
|
|
30
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
31
|
+
return typeof o;
|
|
32
|
+
} : function(o) {
|
|
33
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
34
|
+
}, _typeof(o);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region \0@oxc-project+runtime@0.126.0/helpers/toPrimitive.js
|
|
38
|
+
function toPrimitive(t, r) {
|
|
39
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
40
|
+
var e = t[Symbol.toPrimitive];
|
|
41
|
+
if (void 0 !== e) {
|
|
42
|
+
var i = e.call(t, r || "default");
|
|
43
|
+
if ("object" != _typeof(i)) return i;
|
|
44
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45
|
+
}
|
|
46
|
+
return ("string" === r ? String : Number)(t);
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region \0@oxc-project+runtime@0.126.0/helpers/toPropertyKey.js
|
|
50
|
+
function toPropertyKey(t) {
|
|
51
|
+
var i = toPrimitive(t, "string");
|
|
52
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region \0@oxc-project+runtime@0.126.0/helpers/defineProperty.js
|
|
56
|
+
function _defineProperty(e, r, t) {
|
|
57
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
58
|
+
value: t,
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
configurable: !0,
|
|
61
|
+
writable: !0
|
|
62
|
+
}) : e[r] = t, e;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
28
65
|
//#region src/reactivity/core.ts
|
|
29
66
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
30
67
|
let activeEffect = null;
|
|
@@ -336,18 +373,6 @@ function resolvePathToTarget(root, target) {
|
|
|
336
373
|
}
|
|
337
374
|
//#endregion
|
|
338
375
|
//#region src/reactivity/reactive/shared.ts
|
|
339
|
-
let ReactiveFlags = /* @__PURE__ */ function(ReactiveFlags) {
|
|
340
|
-
ReactiveFlags["IS_REACTIVE"] = "__r_isReactive";
|
|
341
|
-
ReactiveFlags["IS_READONLY"] = "__r_isReadonly";
|
|
342
|
-
ReactiveFlags["RAW"] = "__r_raw";
|
|
343
|
-
ReactiveFlags["SKIP"] = "__r_skip";
|
|
344
|
-
return ReactiveFlags;
|
|
345
|
-
}({});
|
|
346
|
-
let TargetType = /* @__PURE__ */ function(TargetType) {
|
|
347
|
-
TargetType[TargetType["INVALID"] = 0] = "INVALID";
|
|
348
|
-
TargetType[TargetType["COMMON"] = 1] = "COMMON";
|
|
349
|
-
return TargetType;
|
|
350
|
-
}({});
|
|
351
376
|
function isObject(value) {
|
|
352
377
|
return typeof value === "object" && value !== null;
|
|
353
378
|
}
|
|
@@ -357,16 +382,16 @@ function toRawType(value) {
|
|
|
357
382
|
function targetTypeMap(rawType) {
|
|
358
383
|
switch (rawType) {
|
|
359
384
|
case "Object":
|
|
360
|
-
case "Array": return
|
|
385
|
+
case "Array": return 1;
|
|
361
386
|
case "Map":
|
|
362
387
|
case "Set":
|
|
363
388
|
case "WeakMap":
|
|
364
|
-
case "WeakSet": return
|
|
365
|
-
default: return
|
|
389
|
+
case "WeakSet": return 0;
|
|
390
|
+
default: return 0;
|
|
366
391
|
}
|
|
367
392
|
}
|
|
368
393
|
function getTargetType(value) {
|
|
369
|
-
return value[
|
|
394
|
+
return value["__r_skip"] ? 0 : targetTypeMap(toRawType(value));
|
|
370
395
|
}
|
|
371
396
|
const VERSION_KEY = Symbol("wevu.version");
|
|
372
397
|
function isArrayIndexKey(key) {
|
|
@@ -378,7 +403,7 @@ function isArrayIndexKey(key) {
|
|
|
378
403
|
}
|
|
379
404
|
function toRaw(observed) {
|
|
380
405
|
var _ReactiveFlags$RAW;
|
|
381
|
-
return (_ReactiveFlags$RAW = observed === null || observed === void 0 ? void 0 : observed[
|
|
406
|
+
return (_ReactiveFlags$RAW = observed === null || observed === void 0 ? void 0 : observed["__r_raw"]) !== null && _ReactiveFlags$RAW !== void 0 ? _ReactiveFlags$RAW : observed;
|
|
382
407
|
}
|
|
383
408
|
//#endregion
|
|
384
409
|
//#region src/reactivity/reactive/state.ts
|
|
@@ -419,7 +444,7 @@ function prelinkReactiveTree(root, options) {
|
|
|
419
444
|
for (const [key, value] of entries) {
|
|
420
445
|
if (node.path === "" && shouldIncludeTopKey && !shouldIncludeTopKey(key)) continue;
|
|
421
446
|
if (!isObject(value)) continue;
|
|
422
|
-
if (value[
|
|
447
|
+
if (value["__r_skip"]) continue;
|
|
423
448
|
const childRaw = toRaw(value);
|
|
424
449
|
if (!rawRootMap.has(childRaw)) rawRootMap.set(childRaw, rootRaw);
|
|
425
450
|
recordParentLink(childRaw, node.current, key);
|
|
@@ -468,8 +493,8 @@ function touchReactive(target) {
|
|
|
468
493
|
//#region src/reactivity/reactive/shallow.ts
|
|
469
494
|
const shallowHandlers = {
|
|
470
495
|
get(target, key, receiver) {
|
|
471
|
-
if (key ===
|
|
472
|
-
if (key ===
|
|
496
|
+
if (key === "__r_isReactive") return true;
|
|
497
|
+
if (key === "__r_raw") return target;
|
|
473
498
|
const res = Reflect.get(target, key, receiver);
|
|
474
499
|
track(target, key);
|
|
475
500
|
return res;
|
|
@@ -516,10 +541,10 @@ const shallowHandlers = {
|
|
|
516
541
|
*/
|
|
517
542
|
function shallowReactive(target) {
|
|
518
543
|
if (!isObject(target)) return target;
|
|
519
|
-
if (target[
|
|
544
|
+
if (target["__r_isReactive"]) return target;
|
|
520
545
|
const existingProxy = shallowReactiveMap.get(target);
|
|
521
546
|
if (existingProxy) return existingProxy;
|
|
522
|
-
if (getTargetType(target) ===
|
|
547
|
+
if (getTargetType(target) === 0) return target;
|
|
523
548
|
const proxy = new Proxy(target, shallowHandlers);
|
|
524
549
|
shallowReactiveMap.set(target, proxy);
|
|
525
550
|
rawMap.set(proxy, target);
|
|
@@ -596,15 +621,15 @@ function emitMutation(target, key, op) {
|
|
|
596
621
|
}
|
|
597
622
|
const mutableHandlers = {
|
|
598
623
|
get(target, key, receiver) {
|
|
599
|
-
if (key ===
|
|
600
|
-
if (key ===
|
|
624
|
+
if (key === "__r_isReactive") return true;
|
|
625
|
+
if (key === "__r_raw") return target;
|
|
601
626
|
const res = Reflect.get(target, key, receiver);
|
|
602
627
|
track(target, key);
|
|
603
628
|
if (isObject(res)) {
|
|
604
629
|
var _rawRootMap$get2, _ReactiveFlags$RAW;
|
|
605
|
-
if (res[
|
|
630
|
+
if (res["__r_skip"]) return res;
|
|
606
631
|
const parentRoot = (_rawRootMap$get2 = rawRootMap.get(target)) !== null && _rawRootMap$get2 !== void 0 ? _rawRootMap$get2 : target;
|
|
607
|
-
const childRaw = (_ReactiveFlags$RAW = res === null || res === void 0 ? void 0 : res[
|
|
632
|
+
const childRaw = (_ReactiveFlags$RAW = res === null || res === void 0 ? void 0 : res["__r_raw"]) !== null && _ReactiveFlags$RAW !== void 0 ? _ReactiveFlags$RAW : res;
|
|
608
633
|
if (!rawRootMap.has(childRaw)) rawRootMap.set(childRaw, parentRoot);
|
|
609
634
|
recordParentLink(childRaw, target, key);
|
|
610
635
|
const parentPath = rawPathMap.get(target);
|
|
@@ -623,12 +648,12 @@ const mutableHandlers = {
|
|
|
623
648
|
const result = Reflect.set(target, key, value, receiver);
|
|
624
649
|
if (!Object.is(oldValue, value)) {
|
|
625
650
|
var _ReactiveFlags$RAW2;
|
|
626
|
-
const oldRaw = isObject(oldValue) ? (_ReactiveFlags$RAW2 = oldValue === null || oldValue === void 0 ? void 0 : oldValue[
|
|
651
|
+
const oldRaw = isObject(oldValue) ? (_ReactiveFlags$RAW2 = oldValue === null || oldValue === void 0 ? void 0 : oldValue["__r_raw"]) !== null && _ReactiveFlags$RAW2 !== void 0 ? _ReactiveFlags$RAW2 : oldValue : void 0;
|
|
627
652
|
if (oldRaw) removeParentLink(oldRaw, target, key);
|
|
628
|
-
if (isObject(value) && !value[
|
|
653
|
+
if (isObject(value) && !value["__r_skip"]) {
|
|
629
654
|
var _rawRootMap$get3, _ReactiveFlags$RAW3;
|
|
630
655
|
const root = (_rawRootMap$get3 = rawRootMap.get(target)) !== null && _rawRootMap$get3 !== void 0 ? _rawRootMap$get3 : target;
|
|
631
|
-
const childRaw = (_ReactiveFlags$RAW3 = value === null || value === void 0 ? void 0 : value[
|
|
656
|
+
const childRaw = (_ReactiveFlags$RAW3 = value === null || value === void 0 ? void 0 : value["__r_raw"]) !== null && _ReactiveFlags$RAW3 !== void 0 ? _ReactiveFlags$RAW3 : value;
|
|
632
657
|
if (!rawRootMap.has(childRaw)) rawRootMap.set(childRaw, root);
|
|
633
658
|
recordParentLink(childRaw, target, key);
|
|
634
659
|
const parentPath = rawPathMap.get(target);
|
|
@@ -657,7 +682,7 @@ const mutableHandlers = {
|
|
|
657
682
|
const result = Reflect.deleteProperty(target, key);
|
|
658
683
|
if (hadKey && result) {
|
|
659
684
|
var _ReactiveFlags$RAW4;
|
|
660
|
-
const oldRaw = isObject(oldValue) ? (_ReactiveFlags$RAW4 = oldValue === null || oldValue === void 0 ? void 0 : oldValue[
|
|
685
|
+
const oldRaw = isObject(oldValue) ? (_ReactiveFlags$RAW4 = oldValue === null || oldValue === void 0 ? void 0 : oldValue["__r_raw"]) !== null && _ReactiveFlags$RAW4 !== void 0 ? _ReactiveFlags$RAW4 : oldValue : void 0;
|
|
661
686
|
if (oldRaw) removeParentLink(oldRaw, target, key);
|
|
662
687
|
trigger(target, key);
|
|
663
688
|
trigger(target, VERSION_KEY);
|
|
@@ -680,10 +705,10 @@ const mutableHandlers = {
|
|
|
680
705
|
};
|
|
681
706
|
function reactive(target) {
|
|
682
707
|
if (!isObject(target)) return target;
|
|
683
|
-
if (target[
|
|
708
|
+
if (target["__r_isReactive"]) return target;
|
|
684
709
|
const existingProxy = reactiveMap.get(target);
|
|
685
710
|
if (existingProxy) return existingProxy;
|
|
686
|
-
if (getTargetType(target) ===
|
|
711
|
+
if (getTargetType(target) === 0) return target;
|
|
687
712
|
const proxy = new Proxy(target, mutableHandlers);
|
|
688
713
|
reactiveMap.set(target, proxy);
|
|
689
714
|
rawMap.set(proxy, target);
|
|
@@ -692,7 +717,7 @@ function reactive(target) {
|
|
|
692
717
|
return proxy;
|
|
693
718
|
}
|
|
694
719
|
function isReactive(value) {
|
|
695
|
-
return Boolean(value && value[
|
|
720
|
+
return Boolean(value && value["__r_isReactive"]);
|
|
696
721
|
}
|
|
697
722
|
function convertToReactive(value) {
|
|
698
723
|
return isObject(value) ? reactive(value) : value;
|
|
@@ -718,7 +743,7 @@ function convertToReactive(value) {
|
|
|
718
743
|
*/
|
|
719
744
|
function markRaw(value) {
|
|
720
745
|
if (!isObject(value)) return value;
|
|
721
|
-
Object.defineProperty(value,
|
|
746
|
+
Object.defineProperty(value, "__r_skip", {
|
|
722
747
|
value: true,
|
|
723
748
|
configurable: true,
|
|
724
749
|
enumerable: false,
|
|
@@ -733,7 +758,7 @@ function markRaw(value) {
|
|
|
733
758
|
* @returns 若含有跳过标记则返回 true
|
|
734
759
|
*/
|
|
735
760
|
function isRaw(value) {
|
|
736
|
-
return isObject(value) &&
|
|
761
|
+
return isObject(value) && "__r_skip" in value;
|
|
737
762
|
}
|
|
738
763
|
//#endregion
|
|
739
764
|
//#region src/reactivity/ref.ts
|
|
@@ -826,4 +851,4 @@ function customRef(factory, defaultValue) {
|
|
|
826
851
|
return markRaw(new CustomRefImpl(factory, defaultValue));
|
|
827
852
|
}
|
|
828
853
|
//#endregion
|
|
829
|
-
export {
|
|
854
|
+
export { track as A, effect as C, onScopeDispose as D, getCurrentScope as E, triggerEffects as M, nextTick as N, startBatch as O, queueJob as P, batch as S, endBatch as T, getTargetType as _, toValue as a, addMutationRecorder as b, isRaw as c, reactive as d, isShallowReactive as f, touchReactive as g, prelinkReactiveTree as h, ref as i, trigger as j, stop as k, isReactive as l, clearPatchIndices as m, isRef as n, unref as o, shallowReactive as p, markAsRef as r, getReactiveVersion as s, customRef as t, markRaw as u, isObject as v, effectScope as w, removeMutationRecorder as x, toRaw as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as getTargetType, l as isReactive, n as isRef, r as markAsRef, v as isObject } from "./ref-C8almzLH.mjs";
|
|
2
2
|
import { WEVU_HOOKS_KEY, WEVU_IS_APP_INSTANCE_KEY } from "@weapp-core/constants";
|
|
3
3
|
import { getMiniProgramPlatformByRuntimeGlobalKey, getMiniProgramRuntimeCapabilities, getMiniProgramRuntimeGlobalKey, getMiniProgramRuntimeGlobalKeys, getMiniProgramRuntimeHostConfigKey, resolveMiniProgramPlatform, supportsMiniProgramRuntimeCapability } from "@weapp-core/shared";
|
|
4
4
|
//#region src/reactivity/readonly.ts
|
|
@@ -14,11 +14,11 @@ function createReadonlyWrapper(target) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperties(readonlyRef, {
|
|
17
|
-
[
|
|
17
|
+
["__r_isReadonly"]: {
|
|
18
18
|
value: true,
|
|
19
19
|
configurable: true
|
|
20
20
|
},
|
|
21
|
-
[
|
|
21
|
+
["__r_raw"]: {
|
|
22
22
|
value: source,
|
|
23
23
|
configurable: true
|
|
24
24
|
}
|
|
@@ -26,7 +26,7 @@ function createReadonlyWrapper(target) {
|
|
|
26
26
|
return readonlyRef;
|
|
27
27
|
}
|
|
28
28
|
if (!isObject(target)) return target;
|
|
29
|
-
if (getTargetType(target) ===
|
|
29
|
+
if (getTargetType(target) === 0) return target;
|
|
30
30
|
return new Proxy(target, {
|
|
31
31
|
set() {
|
|
32
32
|
throw new Error("无法在只读对象上设置属性");
|
|
@@ -38,8 +38,8 @@ function createReadonlyWrapper(target) {
|
|
|
38
38
|
throw new Error("无法在只读对象上定义属性");
|
|
39
39
|
},
|
|
40
40
|
get(target, key, receiver) {
|
|
41
|
-
if (key ===
|
|
42
|
-
if (key ===
|
|
41
|
+
if (key === "__r_isReadonly") return true;
|
|
42
|
+
if (key === "__r_raw") return target;
|
|
43
43
|
return Reflect.get(target, key, receiver);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
@@ -54,7 +54,7 @@ function shallowReadonly(target) {
|
|
|
54
54
|
* 判断值是否为只读代理或只读 ref 包装。
|
|
55
55
|
*/
|
|
56
56
|
function isReadonly(value) {
|
|
57
|
-
return Boolean(value && value[
|
|
57
|
+
return Boolean(value && value["__r_isReadonly"]);
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* 判断值是否为响应式代理或只读代理。
|
package/dist/router.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as RouterNavigateToOption, an as TypedRouterUrl, en as RouterReLaunchOption, in as TypedRouterTabBarUrl, nn as RouterSwitchTabOption, on as WevuTypedRouterRouteMap, rn as SetupContextRouter, tn as RouterRedirectToOption } from "./vue-types-
|
|
1
|
+
import { $t as RouterNavigateToOption, an as TypedRouterUrl, en as RouterReLaunchOption, in as TypedRouterTabBarUrl, nn as RouterSwitchTabOption, on as WevuTypedRouterRouteMap, rn as SetupContextRouter, tn as RouterRedirectToOption } from "./vue-types-hsjLkWTv.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/routerInternal/types.d.ts
|
|
4
4
|
interface RouteResolveCodec {
|
package/dist/router.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as reactive } from "./ref-
|
|
2
|
-
import { E as onLoad, F as onRouteDone, J as getCurrentSetupContext, a as resolveCurrentRoute, c as normalizeRouteParams, d as createAbsoluteRoutePath, f as isDynamicRoutePath, g as injectGlobal, i as parsePathInput, l as parseQuery, n as useNativeRouter$1, o as normalizeHash, ot as readonly, p as resolvePath, r as createRouteLocation, s as normalizeQuery, t as useNativePageRouter$1, u as stringifyQuery, v as provideGlobal, z as onShow } from "./router-
|
|
1
|
+
import { d as reactive } from "./ref-C8almzLH.mjs";
|
|
2
|
+
import { E as onLoad, F as onRouteDone, J as getCurrentSetupContext, a as resolveCurrentRoute, c as normalizeRouteParams, d as createAbsoluteRoutePath, f as isDynamicRoutePath, g as injectGlobal, i as parsePathInput, l as parseQuery, n as useNativeRouter$1, o as normalizeHash, ot as readonly, p as resolvePath, r as createRouteLocation, s as normalizeQuery, t as useNativePageRouter$1, u as stringifyQuery, v as provideGlobal, z as onShow } from "./router-Brjo9NKc.mjs";
|
|
3
3
|
//#region src/routerInternal/params.ts
|
|
4
4
|
const PATH_PARAM_TOKEN_RE = /^:(\w+)(?:\([^)]*\))?([+*?])?$/;
|
|
5
5
|
function parsePathParamToken(segment) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "./chunk-D1SwGrFN.mjs";
|
|
2
|
+
import { A as track, C as effect, D as onScopeDispose, M as triggerEffects, N as nextTick, P as queueJob, b as addMutationRecorder, d as reactive, g as touchReactive, h as prelinkReactiveTree, i as ref, j as trigger, k as stop, l as isReactive, m as clearPatchIndices, n as isRef, o as unref, p as shallowReactive, r as markAsRef, s as getReactiveVersion, t as customRef, v as isObject$1, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-C8almzLH.mjs";
|
|
3
|
+
import "./store-Cqeyitcj.mjs";
|
|
4
|
+
import { $ as getCurrentMiniProgramPages, A as onPageScroll, G as callHookList, J as getCurrentSetupContext, K as callHookReturn, Q as getCurrentMiniProgramHostConfig, S as onDetached, U as onUnload, W as assertInSetup, X as setCurrentInstance, Y as pushHook, Z as setCurrentSetupContext, et as getCurrentMiniProgramRuntimeCapabilities, nt as getScopedSlotHostGlobalObject, ot as readonly, q as getCurrentInstance, rt as supportsCurrentMiniProgramRuntimeCapability, tt as getMiniProgramGlobalObject, x as onAttached, y as setGlobalProvidedValue } from "./router-Brjo9NKc.mjs";
|
|
3
5
|
import { WEVU_ATTRS_KEY, WEVU_EFFECT_SCOPE_KEY, WEVU_EXPOSED_KEY, WEVU_HOOKS_KEY, WEVU_INLINE_HANDLER, WEVU_INLINE_MAP_KEY, WEVU_IS_APP_INSTANCE_KEY, WEVU_LAYOUT_BRIDGE_PAGE_KEYS, WEVU_LAYOUT_HOST_BRIDGE_KEY, WEVU_MODEL_HANDLER, WEVU_NATIVE_INSTANCE_KEY, WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_LOAD_CALLED_KEY, WEVU_ON_UPDATED_HOOK, WEVU_OWNER_HANDLER, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY, WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY, WEVU_PENDING_PROP_VALUES_KEY, WEVU_PROPS_KEY, WEVU_PROP_KEYS_KEY, WEVU_PUBLIC_RUNTIME_KEY, WEVU_READY_CALLED_KEY, WEVU_RESERVED_METHOD_PREFIX, WEVU_ROUTE_DONE_CALLED_KEY, WEVU_ROUTE_DONE_IN_TICK_KEY, WEVU_RUNTIME_APP_KEY, WEVU_RUNTIME_KEY, WEVU_SCOPED_SLOT_CREATOR_KEY, WEVU_SETUP_CONTEXT_INSTANCE_KEY, WEVU_SLOT_OWNER_ID_KEY, WEVU_SLOT_OWNER_ID_PROP, WEVU_SLOT_OWNER_KEY, WEVU_SLOT_PROPS_DATA_KEY, WEVU_SLOT_PROPS_KEY, WEVU_SLOT_SCOPE_KEY, WEVU_TEMPLATE_REFS_CALLBACKS_KEY, WEVU_TEMPLATE_REFS_KEY, WEVU_TEMPLATE_REFS_PENDING_KEY, WEVU_TEMPLATE_REF_MAP_KEY, WEVU_WATCH_STOPS_KEY } from "@weapp-core/constants";
|
|
4
6
|
import { resolveMiniProgramPageKeys } from "@weapp-core/shared";
|
|
5
7
|
//#region src/reactivity/shallowRef.ts
|
|
@@ -103,7 +105,7 @@ function traverse(value, depth = Infinity, seen = /* @__PURE__ */ new Map()) {
|
|
|
103
105
|
traverse(value.value, depth - 1, seen);
|
|
104
106
|
return value;
|
|
105
107
|
}
|
|
106
|
-
if (value[
|
|
108
|
+
if (value["__r_skip"]) return value;
|
|
107
109
|
const existingDepth = seen.get(value);
|
|
108
110
|
if (existingDepth !== void 0 && existingDepth >= depth) return value;
|
|
109
111
|
seen.set(value, depth);
|
|
@@ -433,7 +435,7 @@ function watchSyncEffect(effectFn, options = {}) {
|
|
|
433
435
|
}
|
|
434
436
|
//#endregion
|
|
435
437
|
//#region src/version.ts
|
|
436
|
-
const version = "6.15.
|
|
438
|
+
const version = "6.15.10";
|
|
437
439
|
//#endregion
|
|
438
440
|
//#region src/utils.ts
|
|
439
441
|
function capitalize(str) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as track, C as effect, d as reactive, g as touchReactive, j as trigger, l as isReactive, n as isRef, r as markAsRef, w as effectScope, y as toRaw } from "./ref-C8almzLH.mjs";
|
|
2
2
|
//#region src/reactivity/computed.ts
|
|
3
3
|
function computed(getterOrOptions) {
|
|
4
4
|
let getter;
|
package/dist/store.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-
|
|
1
|
+
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-BwVHsSCe.mjs";
|
|
2
2
|
export { ActionContext, ActionSubscriber, DefineStoreOptions, MutationType, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, createStore, defineStore, storeToRefs };
|
package/dist/store.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-
|
|
1
|
+
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-Cqeyitcj.mjs";
|
|
2
2
|
export { createStore, defineStore, storeToRefs };
|
package/dist/vue-demi.d.mts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { a as MiniProgramCSSProperties, c as MiniProgramIntrinsicEventHandler, d as WeappIntrinsicElementBaseAttributes, f as WeappIntrinsicEventHandler, i as WeappIntrinsicElements, l as WeappCSSProperties, n as MiniProgramIntrinsicElements, o as MiniProgramDatasetAttributes, r as WeappHtmlAliasIntrinsicElements, s as MiniProgramIntrinsicElementBaseAttributes, t as MiniProgramHtmlAliasIntrinsicElements, u as WeappDatasetAttributes } from "./weappIntrinsicElements-Cdfh6BlL.mjs";
|
|
2
|
-
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-
|
|
3
|
-
import { $ as PageLayoutState, $t as onTabItemTap, A as defineAppSetup, An as MiniProgramTemplateRefValue, At as onServerPrefetch, B as setRuntimeSetDataVisibility, Bn as SetDataDebugInfo, Bt as onMemoryWarning, C as UseModelOptions, Cn as defineComponent, Ct as onActivated, D as useAttrs, Dn as createApp, Dt as onDeactivated, E as useModel, En as setWevuDefaults, Et as onBeforeUpdate, F as useUpdatePerformanceListener, Fn as CreateAppOptions, Ft as onDetached, G as inject, Gt as onReachBottom, H as registerComponent, Ht as onPageNotFound, I as normalizeClass, In as DataOption, It as onError, J as provideGlobal, Jt as onRouteDone, K as injectGlobal, Kt as onReady, L as normalizeStyle, Ln as DefineAppOptions, Lt as onHide, M as UpdatePerformanceListener, Mn as TemplateRefs, Mt as onUpdated, N as UpdatePerformanceListenerResult, Nn as WevuGlobalComponents, Nt as onAddToFavorites, O as useNativeInstance, On as GlobalComponents, Ot as onErrorCaptured, P as UseUpdatePerformanceListenerStopHandle, Pn as WevuGlobalDirectives, Pt as onAttached, Q as usePageScrollThrottle, Qt as onShow, R as runSetupFunction, Rn as DefineComponentOptions, Rt as onLaunch, S as ModelModifiers, Sn as createWevuScopedSlotComponent, St as callUpdateHooks, T as useBindModel, Tn as resetWevuDefaults, Tt as onBeforeUnmount, U as registerApp, Ut as onPageScroll, V as teardownRuntimeInstance, Vn as SetDataSnapshotOptions, Vt as onMoved, W as hasInjectionContext, Wt as onPullDownRefresh, X as UsePageScrollThrottleOptions, Xt as onShareAppMessage, Y as setGlobalProvidedValue, Yt as onSaveExitState, Z as UsePageScrollThrottleStopHandle, Zt as onShareTimeline, _ as EmitsOptions, _n as SetupContextWithTypeProps, _t as useLayoutHosts, a as PageLayoutMeta, an as getCurrentInstance, at as usePageLayout, b as useNativePageRouter, bn as WevuDefinedComponent, bt as UseIntersectionObserverResult, c as defineExpose, cn as setCurrentSetupContext, ct as LayoutBridgeInstance, d as definePageMeta, dn as DisposableMethodName, dt as registerRuntimeLayoutHosts, en as onThemeChange, et as WevuPageLayoutMap, f as defineProps, fn as DisposableObject, ft as resolveLayoutBridge, g as EmitFn, gn as DefineComponentWithTypeProps, gt as useLayoutBridge, h as ComponentTypeEmits, hn as DefineComponentTypePropsOptions, ht as unregisterRuntimeLayoutHosts, i as ModelRef, in as callHookReturn, it as syncRuntimePageLayoutStateFromRuntime, j as use, jn as TemplateRefValue, jt as onUnmounted, k as useSlots, kn as GlobalDirectives, kt as onMounted, l as defineModel, ln as DisposableBag, lt as LayoutHostBinding, m as withDefaults, mn as ComponentDefinition, mt as unregisterPageLayoutBridge, n as DefineModelModifiers, nn as onUnload, nt as setPageLayout, o as PageMeta, on as getCurrentSetupContext, ot as isNoSetData, p as defineSlots, pn as useDisposables, pt as resolveLayoutHost, q as provide, qt as onResize, r as DefineModelTransformOptions, rn as callHookList, rt as syncRuntimePageLayoutState, s as defineEmits, sn as setCurrentInstance, st as markNoSetData, t as version, tn as onUnhandledRejection, tt as resolveRuntimePageLayoutName, u as defineOptions, un as DisposableLike, ut as registerPageLayoutBridge, v as TemplateRef, vn as SetupFunctionWithTypeProps, vt as waitForLayoutHost, w as mergeModels, wn as WevuDefaults, wt as onBeforeMount, x as useNativeRouter, xn as createWevuComponent, xt as useIntersectionObserver, y as useTemplateRef, yn as WevuComponentConstructor, yt as UseIntersectionObserverOptions, z as mountRuntimeInstance, zn as PageFeatures, zt as onLoad } from "./index-
|
|
4
|
-
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-
|
|
2
|
+
import { $ as shallowRef, $n as HostMiniProgramNodesRefFields, A as watchPostEffect, An as MiniProgramPageLifetimes, Ar as MiniProgramRuntimeHostNamespaceBySource, At as nextTick, B as WatchOptions, Bn as HostMiniProgramComponentInstance, Bt as MaybeRef, C as ExtractMethods, Cn as MiniProgramAppOptions, Cr as MiniProgramHostNamespace, Ct as effect, D as ModelBindingPayload, Dn as MiniProgramComponentPropertyValue, Dr as MiniProgramPlatformHostNamespaceBySource, Dt as onScopeDispose, E as ModelBindingOptions, En as MiniProgramComponentOptions, Er as MiniProgramHostSourceRegistry, Et as getCurrentScope, F as OnCleanup, Fn as HostMiniProgramBoundingClientRectResult, Fr as WechatMiniProgramHostNamespace, Ft as WritableComputedRef, G as WatchStopHandle, Gn as HostMiniProgramComponentTrivialInstance, Gt as isRef, H as WatchSource, Hn as HostMiniProgramComponentPropertyOption, Ht as Ref, I as WatchCallback, In as HostMiniProgramComponentAllFullProperty, Ir as WechatMiniProgramHostSourceContract, It as computed, J as traverse, Jn as HostMiniProgramIntersectionObserverOptions, Jt as unref, K as getDeepWatchStrategy, Kn as HostMiniProgramComponentTrivialOption, Kt as ref, L as WatchEffect, Ln as HostMiniProgramComponentAllProperty, Lt as CustomRefFactory, M as MapSources, Mn as HostMiniProgramAppOptions, Mr as MiniProgramRuntimeHostSourceRegistry, Mt as ComputedRef, N as MaybeUndefined, Nn as HostMiniProgramAppTrivialInstance, Nr as TtMiniProgramHostNamespace, Nt as ComputedSetter, O as watch, On as MiniProgramComponentRawOptions, Or as MiniProgramPlatformHostSourceName, Ot as startBatch, P as MultiWatchSources, Pn as HostMiniProgramBehaviorIdentifier, Pr as TtMiniProgramHostSourceContract, Pt as WritableComputedOptions, Q as isShallowRef, Qn as HostMiniProgramNodesRef, Qt as MiniProgramRouterSwitchTabOption, R as WatchEffectOptions, Rn as HostMiniProgramComponentBehaviorOptions, Rt as CustomRefOptions, S as ExtractComputed, Sn as MiniProgramAdapter, Sr as DouyinMiniProgramHostSourceContract, St as batch, T as ModelBinding, Tn as MiniProgramComponentInstance, Tr as MiniProgramHostSourceName, Tt as endBatch, U as WatchSourceValue, Un as HostMiniProgramComponentPropertyValue, Ut as ShallowRef, V as WatchScheduler, Vn as HostMiniProgramComponentMethodOption, Vt as MaybeRefOrGetter, W as WatchSources, Wn as HostMiniProgramComponentShortProperty, Wt as customRef, X as toRef, Xn as HostMiniProgramMemoryWarningResult, Xt as MiniProgramRouterReLaunchOption, Y as ToRefs, Yn as HostMiniProgramLaunchOptions, Yt as MiniProgramRouterNavigateToOption, Z as toRefs, Zn as HostMiniProgramNavigateToOption, Zt as MiniProgramRouterRedirectToOption, _ as RuntimeApp, _n as NativeTypeHint, _r as AlipayMiniProgramHostNamespace, _t as MutationOp, a as NativeComponent, ar as HostMiniProgramReLaunchOption, at as getReactiveVersion, b as ComponentPublicInstance, bn as PropOptions, br as DefaultMiniProgramHostSourceContract, bt as removeMutationRecorder, c as ShallowUnwrapRef, cn as ExtractDefaultPropTypes, cr as HostMiniProgramSaveExitState, ct as markRaw, d as SetupContext, dn as InferNativePropType, dr as HostMiniProgramShareAppMessageOption, dt as isShallowReactive, er as HostMiniProgramPageLifetime, et as triggerRef, f as SetupContextNativeInstance, fn as InferNativeProps, fr as HostMiniProgramSwitchTabOption, ft as shallowReactive, g as InternalRuntimeStateFields, gn as NativePropsOptions, gr as HostMiniProgramUnhandledRejectionResult, gt as MutationKind, h as InternalRuntimeState, hn as NativePropType, hr as HostMiniProgramTriggerEventOptions, ht as touchReactive, i as DefineComponent, ir as HostMiniProgramPageTrivialInstance, it as shallowReadonly, j as watchSyncEffect, jn as HostMiniProgramAddToFavoritesOption, jr as MiniProgramRuntimeHostSourceName, jt as ComputedGetter, k as watchEffect, kn as MiniProgramInstance, kr as MiniProgramPlatformHostSourceRegistry, kt as stop, l as VNode, ln as ExtractPropTypes, lr as HostMiniProgramScrollOffsetResult, lt as reactive, m as AppConfig, mn as InferProps, mr as HostMiniProgramThemeChangeResult, mt as prelinkReactiveTree, n as ComponentCustomProps, nr as HostMiniProgramPageResizeOption, nt as isReadonly, o as ObjectDirective, on as WevuTypedRouterRouteMap, or as HostMiniProgramRedirectToOption, ot as isRaw, p as SetupFunction, pn as InferPropType, pr as HostMiniProgramTabItemTapOption, pt as PrelinkReactiveTreeOptions, q as setDeepWatchStrategy, qn as HostMiniProgramIntersectionObserver, qt as toValue, r as ComponentOptionsMixin, rn as SetupContextRouter, rr as HostMiniProgramPageScrollOption, rt as readonly, s as PublicProps, sn as ComponentPropsOptions, sr as HostMiniProgramRouter, st as isReactive, t as AllowedComponentProps, tr as HostMiniProgramPageNotFoundOptions, tt as isProxy, u as VNodeProps, un as ExtractPublicPropTypes, ur as HostMiniProgramSelectorQuery, ut as toRaw, v as RuntimeInstance, vn as NativeTypedProperty, vr as AlipayMiniProgramHostSourceContract, vt as MutationRecord, w as MethodDefinitions, wn as MiniProgramBehaviorIdentifier, wr as MiniProgramHostNamespaceBySource, wt as effectScope, x as ComputedDefinitions, xn as PropType, xr as DouyinMiniProgramHostNamespace, xt as EffectScope, y as WevuPlugin, yn as PropConstructor, yr as DefaultMiniProgramHostNamespace, yt as addMutationRecorder, z as WatchMultiSources, zn as HostMiniProgramComponentEmptyArray, zt as CustomRefSource } from "./vue-types-hsjLkWTv.mjs";
|
|
3
|
+
import { $ as PageLayoutState, $t as onTabItemTap, A as defineAppSetup, An as MiniProgramTemplateRefValue, At as onServerPrefetch, B as setRuntimeSetDataVisibility, Bn as SetDataDebugInfo, Bt as onMemoryWarning, C as UseModelOptions, Cn as defineComponent, Ct as onActivated, D as useAttrs, Dn as createApp, Dt as onDeactivated, E as useModel, En as setWevuDefaults, Et as onBeforeUpdate, F as useUpdatePerformanceListener, Fn as CreateAppOptions, Ft as onDetached, G as inject, Gt as onReachBottom, H as registerComponent, Ht as onPageNotFound, I as normalizeClass, In as DataOption, It as onError, J as provideGlobal, Jt as onRouteDone, K as injectGlobal, Kt as onReady, L as normalizeStyle, Ln as DefineAppOptions, Lt as onHide, M as UpdatePerformanceListener, Mn as TemplateRefs, Mt as onUpdated, N as UpdatePerformanceListenerResult, Nn as WevuGlobalComponents, Nt as onAddToFavorites, O as useNativeInstance, On as GlobalComponents, Ot as onErrorCaptured, P as UseUpdatePerformanceListenerStopHandle, Pn as WevuGlobalDirectives, Pt as onAttached, Q as usePageScrollThrottle, Qt as onShow, R as runSetupFunction, Rn as DefineComponentOptions, Rt as onLaunch, S as ModelModifiers, Sn as createWevuScopedSlotComponent, St as callUpdateHooks, T as useBindModel, Tn as resetWevuDefaults, Tt as onBeforeUnmount, U as registerApp, Ut as onPageScroll, V as teardownRuntimeInstance, Vn as SetDataSnapshotOptions, Vt as onMoved, W as hasInjectionContext, Wt as onPullDownRefresh, X as UsePageScrollThrottleOptions, Xt as onShareAppMessage, Y as setGlobalProvidedValue, Yt as onSaveExitState, Z as UsePageScrollThrottleStopHandle, Zt as onShareTimeline, _ as EmitsOptions, _n as SetupContextWithTypeProps, _t as useLayoutHosts, a as PageLayoutMeta, an as getCurrentInstance, at as usePageLayout, b as useNativePageRouter, bn as WevuDefinedComponent, bt as UseIntersectionObserverResult, c as defineExpose, cn as setCurrentSetupContext, ct as LayoutBridgeInstance, d as definePageMeta, dn as DisposableMethodName, dt as registerRuntimeLayoutHosts, en as onThemeChange, et as WevuPageLayoutMap, f as defineProps, fn as DisposableObject, ft as resolveLayoutBridge, g as EmitFn, gn as DefineComponentWithTypeProps, gt as useLayoutBridge, h as ComponentTypeEmits, hn as DefineComponentTypePropsOptions, ht as unregisterRuntimeLayoutHosts, i as ModelRef, in as callHookReturn, it as syncRuntimePageLayoutStateFromRuntime, j as use, jn as TemplateRefValue, jt as onUnmounted, k as useSlots, kn as GlobalDirectives, kt as onMounted, l as defineModel, ln as DisposableBag, lt as LayoutHostBinding, m as withDefaults, mn as ComponentDefinition, mt as unregisterPageLayoutBridge, n as DefineModelModifiers, nn as onUnload, nt as setPageLayout, o as PageMeta, on as getCurrentSetupContext, ot as isNoSetData, p as defineSlots, pn as useDisposables, pt as resolveLayoutHost, q as provide, qt as onResize, r as DefineModelTransformOptions, rn as callHookList, rt as syncRuntimePageLayoutState, s as defineEmits, sn as setCurrentInstance, st as markNoSetData, t as version, tn as onUnhandledRejection, tt as resolveRuntimePageLayoutName, u as defineOptions, un as DisposableLike, ut as registerPageLayoutBridge, v as TemplateRef, vn as SetupFunctionWithTypeProps, vt as waitForLayoutHost, w as mergeModels, wn as WevuDefaults, wt as onBeforeMount, x as useNativeRouter, xn as createWevuComponent, xt as useIntersectionObserver, y as useTemplateRef, yn as WevuComponentConstructor, yt as UseIntersectionObserverOptions, z as mountRuntimeInstance, zn as PageFeatures, zt as onLoad } from "./index-D9k9y3GQ.mjs";
|
|
4
|
+
import { a as ActionContext, c as MutationType, d as SubscriptionCallback, i as defineStore, l as StoreManager, n as storeToRefs, o as ActionSubscriber, r as createStore, s as DefineStoreOptions, t as StoreToRefsResult, u as StoreSubscribeOptions } from "./index-BwVHsSCe.mjs";
|
|
5
|
+
export * from "@wevu/web-apis";
|
|
5
6
|
|
|
6
7
|
//#region src/vue-demi.d.ts
|
|
8
|
+
declare namespace vue_demi_d_exports {
|
|
9
|
+
export { ActionContext, ActionSubscriber, AlipayMiniProgramHostNamespace, AlipayMiniProgramHostSourceContract, AllowedComponentProps, AppConfig, ComponentCustomProps, ComponentDefinition, ComponentOptionsMixin, ComponentPropsOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, DataOption, DefaultMiniProgramHostNamespace, DefaultMiniProgramHostSourceContract, DefineAppOptions, DefineComponent, DefineComponentOptions, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, DouyinMiniProgramHostNamespace, DouyinMiniProgramHostSourceContract, EffectScope, EmitFn, EmitsOptions, ExtractComputed, ExtractDefaultPropTypes, ExtractMethods, ExtractPropTypes, ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, HostMiniProgramAddToFavoritesOption, HostMiniProgramAppOptions, HostMiniProgramAppTrivialInstance, HostMiniProgramBehaviorIdentifier, HostMiniProgramBoundingClientRectResult, HostMiniProgramComponentAllFullProperty, HostMiniProgramComponentAllProperty, HostMiniProgramComponentBehaviorOptions, HostMiniProgramComponentEmptyArray, HostMiniProgramComponentInstance, HostMiniProgramComponentMethodOption, HostMiniProgramComponentPropertyOption, HostMiniProgramComponentPropertyValue, HostMiniProgramComponentShortProperty, HostMiniProgramComponentTrivialInstance, HostMiniProgramComponentTrivialOption, HostMiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions, HostMiniProgramLaunchOptions, HostMiniProgramMemoryWarningResult, HostMiniProgramNavigateToOption, HostMiniProgramNodesRef, HostMiniProgramNodesRefFields, HostMiniProgramPageLifetime, HostMiniProgramPageNotFoundOptions, HostMiniProgramPageResizeOption, HostMiniProgramPageScrollOption, HostMiniProgramPageTrivialInstance, HostMiniProgramReLaunchOption, HostMiniProgramRedirectToOption, HostMiniProgramRouter, HostMiniProgramSaveExitState, HostMiniProgramScrollOffsetResult, HostMiniProgramSelectorQuery, HostMiniProgramShareAppMessageOption, HostMiniProgramSwitchTabOption, HostMiniProgramTabItemTapOption, HostMiniProgramThemeChangeResult, HostMiniProgramTriggerEventOptions, HostMiniProgramUnhandledRejectionResult, InferNativePropType, InferNativeProps, InferPropType, InferProps, InternalRuntimeState, InternalRuntimeStateFields, LayoutBridgeInstance, LayoutHostBinding, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, MethodDefinitions, MiniProgramAdapter, HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, MiniProgramCSSProperties, HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, MiniProgramComponentInstance, HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, MiniProgramComponentOptions, HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, MiniProgramComponentPropertyValue, MiniProgramComponentRawOptions, HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, MiniProgramDatasetAttributes, MiniProgramHostNamespace, MiniProgramHostNamespaceBySource, MiniProgramHostSourceName, MiniProgramHostSourceRegistry, MiniProgramHtmlAliasIntrinsicElements, MiniProgramInstance, HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, MiniProgramIntrinsicElementBaseAttributes, MiniProgramIntrinsicElements, MiniProgramIntrinsicEventHandler, HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, HostMiniProgramNodesRef as MiniProgramNodesRef, HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, HostMiniProgramPageLifetime as MiniProgramPageLifetime, MiniProgramPageLifetimes, HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, MiniProgramPlatformHostNamespaceBySource, MiniProgramPlatformHostSourceName, MiniProgramPlatformHostSourceRegistry, HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, HostMiniProgramRouter as MiniProgramRouter, MiniProgramRouterNavigateToOption, MiniProgramRouterReLaunchOption, MiniProgramRouterRedirectToOption, MiniProgramRouterSwitchTabOption, MiniProgramRuntimeHostNamespaceBySource, MiniProgramRuntimeHostSourceName, MiniProgramRuntimeHostSourceRegistry, HostMiniProgramSaveExitState as MiniProgramSaveExitState, HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, MiniProgramTemplateRefValue, HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, ModelBinding, ModelBindingOptions, ModelBindingPayload, ModelModifiers, ModelRef, MultiWatchSources, MutationKind, MutationOp, MutationRecord, MutationType, NativeComponent, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, ObjectDirective, OnCleanup, PageFeatures, PageLayoutMeta, PageLayoutState, PageMeta, PrelinkReactiveTreeOptions, PropConstructor, PropOptions, PropType, PublicProps, Ref, RuntimeApp, RuntimeInstance, SetDataDebugInfo, SetDataSnapshotOptions, SetupContext, SetupContextNativeInstance, SetupContextRouter, SetupContextWithTypeProps, SetupFunction, SetupFunctionWithTypeProps, ShallowRef, ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, HostMiniProgramTriggerEventOptions as TriggerEventOptions, TtMiniProgramHostNamespace, TtMiniProgramHostSourceContract, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseIntersectionObserverOptions, UseIntersectionObserverResult, UseModelOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UseUpdatePerformanceListenerStopHandle, VNode, VNodeProps, Vue2, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WeappCSSProperties, WeappDatasetAttributes, WeappHtmlAliasIntrinsicElements, WeappIntrinsicElementBaseAttributes, WeappIntrinsicElements, WeappIntrinsicEventHandler, WechatMiniProgramHostNamespace, WechatMiniProgramHostSourceContract, WevuComponentConstructor, WevuDefaults, WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, WevuPageLayoutMap, WevuPlugin, WevuTypedRouterRouteMap, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, hasInjectionContext, inject, injectGlobal, install, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, isVue2, isVue3, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, removeMutationRecorder, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, storeToRefs, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAttrs, useBindModel, useDisposables, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, usePageLayout, usePageScrollThrottle, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
|
|
10
|
+
}
|
|
7
11
|
/**
|
|
8
12
|
* 标记当前兼容层运行在 Vue 3 风格分支。
|
|
9
13
|
*/
|
package/dist/vue-demi.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import "./chunk-D1SwGrFN.mjs";
|
|
2
|
+
import { C as effect, D as onScopeDispose, E as getCurrentScope, N as nextTick, O as startBatch, S as batch, T as endBatch, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, k as stop, l as isReactive, n as isRef, o as unref, p as shallowReactive, s as getReactiveVersion, t as customRef, u as markRaw, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-C8almzLH.mjs";
|
|
3
|
+
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-Cqeyitcj.mjs";
|
|
4
|
+
import { A as onPageScroll, B as onTabItemTap, C as onError, D as onMemoryWarning, E as onLoad, F as onRouteDone, G as callHookList, H as onUnhandledRejection, I as onSaveExitState, J as getCurrentSetupContext, K as callHookReturn, L as onShareAppMessage, M as onReachBottom, N as onReady, O as onMoved, P as onResize, R as onShareTimeline, S as onDetached, T as onLaunch, U as onUnload, V as onThemeChange, X as setCurrentInstance, Z as setCurrentSetupContext, _ as provide, at as isReadonly, b as onAddToFavorites, g as injectGlobal, h as inject, it as isProxy, j as onPullDownRefresh, k as onPageNotFound, m as hasInjectionContext, n as useNativeRouter, ot as readonly, q as getCurrentInstance, st as shallowReadonly, t as useNativePageRouter, v as provideGlobal, w as onHide, x as onAttached, y as setGlobalProvidedValue, z as onShow } from "./router-Brjo9NKc.mjs";
|
|
5
|
+
import { $ as onBeforeMount, A as registerApp, B as resetWevuDefaults, C as resolveLayoutBridge, D as useLayoutBridge, E as unregisterRuntimeLayoutHosts, F as resolveRuntimePageLayoutName, G as watch, H as isNoSetData, I as setPageLayout, J as watchSyncEffect, K as watchEffect, L as syncRuntimePageLayoutState, M as setRuntimeSetDataVisibility, N as teardownRuntimeInstance, O as useLayoutHosts, P as runSetupFunction, Q as onActivated, R as syncRuntimePageLayoutStateFromRuntime, S as registerRuntimeLayoutHosts, T as unregisterPageLayoutBridge, U as markNoSetData, V as setWevuDefaults, W as version, X as setDeepWatchStrategy, Y as getDeepWatchStrategy, Z as callUpdateHooks, _ as createWevuScopedSlotComponent, a as useAttrs, at as onServerPrefetch, b as registerComponent, c as defineAppSetup, ct as traverse, d as normalizeClass, dt as isShallowRef, et as onBeforeUnmount, f as normalizeStyle, ft as shallowRef, g as createWevuComponent, h as useDisposables, i as useModel, it as onMounted, j as mountRuntimeInstance, k as waitForLayoutHost, l as use, lt as toRef, m as useIntersectionObserver, n as mergeModels, nt as onDeactivated, o as useNativeInstance, ot as onUnmounted, p as usePageScrollThrottle, pt as triggerRef, q as watchPostEffect, r as useBindModel, rt as onErrorCaptured, s as useSlots, st as onUpdated, t as useTemplateRef, tt as onBeforeUpdate, u as useUpdatePerformanceListener, ut as toRefs, v as defineComponent, w as resolveLayoutHost, x as registerPageLayoutBridge, y as createApp, z as usePageLayout } from "./src-C_ZbpJIB.mjs";
|
|
6
|
+
export * from "@wevu/web-apis";
|
|
6
7
|
/**
|
|
7
8
|
* 标记当前兼容层运行在 Vue 3 风格分支。
|
|
8
9
|
*/
|
|
@@ -79,21 +79,10 @@ interface DefaultMiniProgramHostSourceContract {
|
|
|
79
79
|
RedirectToOption: DefaultMiniProgramHostNamespace.RedirectToOption;
|
|
80
80
|
NavigateToOption: DefaultMiniProgramHostNamespace.NavigateToOption;
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
SelectorQuery: WechatMiniProgramHostNamespace.SelectorQuery;
|
|
87
|
-
CreateIntersectionObserverOption: WechatMiniProgramHostNamespace.CreateIntersectionObserverOption;
|
|
88
|
-
IntersectionObserver: WechatMiniProgramHostNamespace.IntersectionObserver;
|
|
89
|
-
OnUnhandledRejectionListenerResult: WechatMiniProgramHostNamespace.OnUnhandledRejectionListenerResult;
|
|
90
|
-
OnThemeChangeListenerResult: WechatMiniProgramHostNamespace.OnThemeChangeListenerResult;
|
|
91
|
-
OnMemoryWarningListenerResult: WechatMiniProgramHostNamespace.OnMemoryWarningListenerResult;
|
|
92
|
-
SwitchTabOption: WechatMiniProgramHostNamespace.SwitchTabOption;
|
|
93
|
-
ReLaunchOption: WechatMiniProgramHostNamespace.ReLaunchOption;
|
|
94
|
-
RedirectToOption: WechatMiniProgramHostNamespace.RedirectToOption;
|
|
95
|
-
NavigateToOption: WechatMiniProgramHostNamespace.NavigateToOption;
|
|
96
|
-
}
|
|
82
|
+
/**
|
|
83
|
+
* @description 微信平台命名兼容契约;当前默认宿主语义仍复用微信底座,但上层主链路应优先依赖 default。
|
|
84
|
+
*/
|
|
85
|
+
interface WechatMiniProgramHostSourceContract extends DefaultMiniProgramHostSourceContract {}
|
|
97
86
|
/**
|
|
98
87
|
* @description 支付宝宿主类型契约占位;后续接入稳定 typings 时在此扩展。
|
|
99
88
|
*/
|
|
@@ -113,7 +102,7 @@ interface MiniProgramPlatformHostSourceRegistry {
|
|
|
113
102
|
douyin: DouyinMiniProgramHostSourceContract;
|
|
114
103
|
}
|
|
115
104
|
interface MiniProgramRuntimeHostSourceRegistry {
|
|
116
|
-
wx:
|
|
105
|
+
wx: DefaultMiniProgramHostSourceContract;
|
|
117
106
|
my: AlipayMiniProgramHostSourceContract;
|
|
118
107
|
tt: TtMiniProgramHostSourceContract;
|
|
119
108
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wevu",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.15.
|
|
4
|
+
"version": "6.15.10",
|
|
5
5
|
"description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -69,6 +69,13 @@
|
|
|
69
69
|
"default": "./dist/fetch.mjs"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
|
+
"./web-apis": {
|
|
73
|
+
"types": "./dist/web-apis.d.mts",
|
|
74
|
+
"import": {
|
|
75
|
+
"types": "./dist/web-apis.d.mts",
|
|
76
|
+
"default": "./dist/web-apis.mjs"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
72
79
|
"./router": {
|
|
73
80
|
"types": "./dist/router.d.mts",
|
|
74
81
|
"import": {
|
|
@@ -104,8 +111,9 @@
|
|
|
104
111
|
"vue": "^3.5.32",
|
|
105
112
|
"@weapp-core/constants": "^0.1.1",
|
|
106
113
|
"@weapp-core/shared": "3.0.4",
|
|
107
|
-
"@wevu/api": "0.2.
|
|
108
|
-
"@wevu/compiler": "6.15.
|
|
114
|
+
"@wevu/api": "0.2.5",
|
|
115
|
+
"@wevu/compiler": "6.15.10",
|
|
116
|
+
"@wevu/web-apis": "1.2.9"
|
|
109
117
|
},
|
|
110
118
|
"scripts": {
|
|
111
119
|
"dev": "tsdown -w",
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
|
|
2
|
-
function _typeof(o) {
|
|
3
|
-
"@babel/helpers - typeof";
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
5
|
-
return typeof o;
|
|
6
|
-
} : function(o) {
|
|
7
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
-
}, _typeof(o);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
|
|
12
|
-
function toPrimitive(t, r) {
|
|
13
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
14
|
-
var e = t[Symbol.toPrimitive];
|
|
15
|
-
if (void 0 !== e) {
|
|
16
|
-
var i = e.call(t, r || "default");
|
|
17
|
-
if ("object" != _typeof(i)) return i;
|
|
18
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
19
|
-
}
|
|
20
|
-
return ("string" === r ? String : Number)(t);
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
|
|
24
|
-
function toPropertyKey(t) {
|
|
25
|
-
var i = toPrimitive(t, "string");
|
|
26
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
|
|
30
|
-
function _defineProperty(e, r, t) {
|
|
31
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
32
|
-
value: t,
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0
|
|
36
|
-
}) : e[r] = t, e;
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
export { _defineProperty as t };
|