@tarojs/taro-h5 4.0.0-beta.0 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/base/system.js +7 -7
- package/dist/api/base/system.js.map +1 -1
- package/dist/api/canvas/CanvasContext.js +5 -2
- package/dist/api/canvas/CanvasContext.js.map +1 -1
- package/dist/api/device/battery.js +1 -1
- package/dist/api/device/clipboard.js +1 -1
- package/dist/api/device/network.js +1 -1
- package/dist/api/index.js +2 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/location/chooseLocation.js +1 -1
- package/dist/api/location/style.scss.js +2 -2
- package/dist/api/media/image/chooseImage.js +1 -1
- package/dist/api/media/image/previewImage.js +1 -1
- package/dist/api/media/video/chooseMedia.js +3 -4
- package/dist/api/media/video/chooseMedia.js.map +1 -1
- package/dist/api/media/video/getVideoInfo.js +1 -1
- package/dist/api/network/request/index.js +30 -7
- package/dist/api/network/request/index.js.map +1 -1
- package/dist/api/qq/index.d.ts +9 -1
- package/dist/api/qq/index.js +9 -1
- package/dist/api/qq/index.js.map +1 -1
- package/dist/api/ui/fonts.js +1 -1
- package/dist/api/ui/interaction/index.js +1 -1
- package/dist/api/ui/navigation-bar/index.js +1 -1
- package/dist/api/ui/navigation-bar/index.js.map +1 -1
- package/dist/api/wxml/IntersectionObserver.js +0 -1
- package/dist/api/wxml/IntersectionObserver.js.map +1 -1
- package/dist/api/wxml/index.d.ts +2 -1
- package/dist/api/wxml/index.js +1 -0
- package/dist/api/wxml/index.js.map +1 -1
- package/dist/index.cjs.d.ts +42 -1
- package/dist/index.cjs.js +83 -335
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts +42 -1
- package/dist/index.esm.js +55 -316
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/index.js +1 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +18 -12
- package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js +0 -296
- package/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5,15 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var Taro = require('@tarojs/api');
|
|
6
6
|
var router = require('@tarojs/router');
|
|
7
7
|
var shared = require('@tarojs/shared');
|
|
8
|
-
var utils = require('@tarojs/router/dist/utils');
|
|
9
8
|
var runtime = require('@tarojs/runtime');
|
|
10
9
|
var base64Js = require('base64-js');
|
|
11
|
-
var
|
|
10
|
+
var tslib = require('tslib');
|
|
11
|
+
var platform = require('platform');
|
|
12
12
|
var isNil = require('lodash-es/isNil');
|
|
13
13
|
var queryString = require('query-string');
|
|
14
14
|
var throttle = require('lodash-es/throttle');
|
|
15
15
|
var ics = require('ics');
|
|
16
16
|
var components = require('@tarojs/components/dist/components');
|
|
17
|
+
var isMobile = require('is-mobile');
|
|
17
18
|
require('whatwg-fetch');
|
|
18
19
|
require('abortcontroller-polyfill/dist/abortcontroller-polyfill-only');
|
|
19
20
|
var jsonpRetry = require('jsonp-retry');
|
|
@@ -302,8 +303,8 @@ function processOpenApi({ name, defaultOptions, standardMethod, formatOptions =
|
|
|
302
303
|
function getCurrentPath() {
|
|
303
304
|
var _a, _b, _c, _d, _e, _f;
|
|
304
305
|
const appConfig = window.__taroAppConfig || {};
|
|
305
|
-
const routePath =
|
|
306
|
-
const homePath =
|
|
306
|
+
const routePath = runtime.getCurrentPage((_a = appConfig.router) === null || _a === void 0 ? void 0 : _a.mode, (_b = appConfig.router) === null || _b === void 0 ? void 0 : _b.basename);
|
|
307
|
+
const homePath = runtime.getHomePage((_d = (_c = appConfig.routes) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.path, (_e = appConfig.router) === null || _e === void 0 ? void 0 : _e.basename, (_f = appConfig.router) === null || _f === void 0 ? void 0 : _f.customRoutes, appConfig.entryPagePath);
|
|
307
308
|
/**
|
|
308
309
|
* createPageConfig 时根据 stack 的长度来设置 stamp 以保证页面 path 的唯一,此函数是在 createPageConfig 之前调用,预先设置 stamp=1
|
|
309
310
|
* url 上没有指定应用的启动页面时使用 homePath
|
|
@@ -347,300 +348,6 @@ const preloadWebview = /* @__PURE__ */ temporarilyNotSupport('preloadWebview');
|
|
|
347
348
|
const preloadSkylineView = /* @__PURE__ */ temporarilyNotSupport('preloadSkylineView');
|
|
348
349
|
const preloadAssets = /* @__PURE__ */ temporarilyNotSupport('preloadAssets');
|
|
349
350
|
|
|
350
|
-
/******************************************************************************
|
|
351
|
-
Copyright (c) Microsoft Corporation.
|
|
352
|
-
|
|
353
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
354
|
-
purpose with or without fee is hereby granted.
|
|
355
|
-
|
|
356
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
357
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
358
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
359
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
360
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
361
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
362
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
363
|
-
***************************************************************************** */
|
|
364
|
-
/* global Reflect, Promise */
|
|
365
|
-
|
|
366
|
-
var extendStatics = function(d, b) {
|
|
367
|
-
extendStatics = Object.setPrototypeOf ||
|
|
368
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
369
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
370
|
-
return extendStatics(d, b);
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
function __extends(d, b) {
|
|
374
|
-
if (typeof b !== "function" && b !== null)
|
|
375
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
376
|
-
extendStatics(d, b);
|
|
377
|
-
function __() { this.constructor = d; }
|
|
378
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
var __assign = function() {
|
|
382
|
-
__assign = Object.assign || function __assign(t) {
|
|
383
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
384
|
-
s = arguments[i];
|
|
385
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
386
|
-
}
|
|
387
|
-
return t;
|
|
388
|
-
};
|
|
389
|
-
return __assign.apply(this, arguments);
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
function __rest(s, e) {
|
|
393
|
-
var t = {};
|
|
394
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
395
|
-
t[p] = s[p];
|
|
396
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
397
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
398
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
399
|
-
t[p[i]] = s[p[i]];
|
|
400
|
-
}
|
|
401
|
-
return t;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
function __decorate(decorators, target, key, desc) {
|
|
405
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
406
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
407
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
408
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
function __param(paramIndex, decorator) {
|
|
412
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
416
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
417
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
418
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
419
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
420
|
-
var _, done = false;
|
|
421
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
422
|
-
var context = {};
|
|
423
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
424
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
425
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
426
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
427
|
-
if (kind === "accessor") {
|
|
428
|
-
if (result === void 0) continue;
|
|
429
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
430
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
431
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
432
|
-
if (_ = accept(result.init)) initializers.push(_);
|
|
433
|
-
}
|
|
434
|
-
else if (_ = accept(result)) {
|
|
435
|
-
if (kind === "field") initializers.push(_);
|
|
436
|
-
else descriptor[key] = _;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
440
|
-
done = true;
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
444
|
-
var useValue = arguments.length > 2;
|
|
445
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
446
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
447
|
-
}
|
|
448
|
-
return useValue ? value : void 0;
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
function __propKey(x) {
|
|
452
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
function __setFunctionName(f, name, prefix) {
|
|
456
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
457
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
function __metadata(metadataKey, metadataValue) {
|
|
461
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
465
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
466
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
467
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
468
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
469
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
470
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
function __generator(thisArg, body) {
|
|
475
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
476
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
477
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
478
|
-
function step(op) {
|
|
479
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
480
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
481
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
482
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
483
|
-
switch (op[0]) {
|
|
484
|
-
case 0: case 1: t = op; break;
|
|
485
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
486
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
487
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
488
|
-
default:
|
|
489
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
490
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
491
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
492
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
493
|
-
if (t[2]) _.ops.pop();
|
|
494
|
-
_.trys.pop(); continue;
|
|
495
|
-
}
|
|
496
|
-
op = body.call(thisArg, _);
|
|
497
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
498
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
503
|
-
if (k2 === undefined) k2 = k;
|
|
504
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
505
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
506
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
507
|
-
}
|
|
508
|
-
Object.defineProperty(o, k2, desc);
|
|
509
|
-
}) : (function(o, m, k, k2) {
|
|
510
|
-
if (k2 === undefined) k2 = k;
|
|
511
|
-
o[k2] = m[k];
|
|
512
|
-
});
|
|
513
|
-
|
|
514
|
-
function __exportStar(m, o) {
|
|
515
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
function __values(o) {
|
|
519
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
520
|
-
if (m) return m.call(o);
|
|
521
|
-
if (o && typeof o.length === "number") return {
|
|
522
|
-
next: function () {
|
|
523
|
-
if (o && i >= o.length) o = void 0;
|
|
524
|
-
return { value: o && o[i++], done: !o };
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
function __read(o, n) {
|
|
531
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
532
|
-
if (!m) return o;
|
|
533
|
-
var i = m.call(o), r, ar = [], e;
|
|
534
|
-
try {
|
|
535
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
536
|
-
}
|
|
537
|
-
catch (error) { e = { error: error }; }
|
|
538
|
-
finally {
|
|
539
|
-
try {
|
|
540
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
541
|
-
}
|
|
542
|
-
finally { if (e) throw e.error; }
|
|
543
|
-
}
|
|
544
|
-
return ar;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
/** @deprecated */
|
|
548
|
-
function __spread() {
|
|
549
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
550
|
-
ar = ar.concat(__read(arguments[i]));
|
|
551
|
-
return ar;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/** @deprecated */
|
|
555
|
-
function __spreadArrays() {
|
|
556
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
557
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
558
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
559
|
-
r[k] = a[j];
|
|
560
|
-
return r;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
function __spreadArray(to, from, pack) {
|
|
564
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
565
|
-
if (ar || !(i in from)) {
|
|
566
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
567
|
-
ar[i] = from[i];
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
function __await(v) {
|
|
574
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
578
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
579
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
580
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
581
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
582
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
583
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
584
|
-
function fulfill(value) { resume("next", value); }
|
|
585
|
-
function reject(value) { resume("throw", value); }
|
|
586
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
function __asyncDelegator(o) {
|
|
590
|
-
var i, p;
|
|
591
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
592
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
function __asyncValues(o) {
|
|
596
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
597
|
-
var m = o[Symbol.asyncIterator], i;
|
|
598
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
599
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
600
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
function __makeTemplateObject(cooked, raw) {
|
|
604
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
605
|
-
return cooked;
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
609
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
610
|
-
}) : function(o, v) {
|
|
611
|
-
o["default"] = v;
|
|
612
|
-
};
|
|
613
|
-
|
|
614
|
-
function __importStar(mod) {
|
|
615
|
-
if (mod && mod.__esModule) return mod;
|
|
616
|
-
var result = {};
|
|
617
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
618
|
-
__setModuleDefault(result, mod);
|
|
619
|
-
return result;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
function __importDefault(mod) {
|
|
623
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
627
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
628
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
629
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
633
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
634
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
635
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
636
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
640
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
641
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
642
|
-
}
|
|
643
|
-
|
|
644
351
|
/** 跳转系统蓝牙设置页 */
|
|
645
352
|
const openSystemBluetoothSetting = /* @__PURE__ */ temporarilyNotSupport('openSystemBluetoothSetting');
|
|
646
353
|
/** 跳转系统微信授权管理页 */
|
|
@@ -689,7 +396,7 @@ const getSystemSetting = () => {
|
|
|
689
396
|
};
|
|
690
397
|
/** 获取设备设置 */
|
|
691
398
|
const getDeviceInfo = () => {
|
|
692
|
-
|
|
399
|
+
var _a, _b;
|
|
693
400
|
const info = {
|
|
694
401
|
/** 应用二进制接口类型(仅 Android 支持) */
|
|
695
402
|
abi: '',
|
|
@@ -698,13 +405,13 @@ const getDeviceInfo = () => {
|
|
|
698
405
|
/** 设备性能等级(仅Android小游戏)。取值为:-2 或 0(该设备无法运行小游戏),-1(性能未知),>=1(设备性能值,该值越高,设备性能越好,目前最高不到50) */
|
|
699
406
|
benchmarkLevel: -1,
|
|
700
407
|
/** 设备品牌 */
|
|
701
|
-
brand:
|
|
408
|
+
brand: platform.manufacturer || 'unknown',
|
|
702
409
|
/** 设备型号 */
|
|
703
|
-
model:
|
|
410
|
+
model: platform.product || 'unknown',
|
|
704
411
|
/** 操作系统及版本 */
|
|
705
|
-
system:
|
|
412
|
+
system: ((_a = platform.os) === null || _a === void 0 ? void 0 : _a.toString()) || 'unknown',
|
|
706
413
|
/** 客户端平台 */
|
|
707
|
-
platform:
|
|
414
|
+
platform: ((_b = platform.os) === null || _b === void 0 ? void 0 : _b.family) || 'unknown',
|
|
708
415
|
/** 设备二进制接口类型(仅 Android 支持) */
|
|
709
416
|
CPUType: '',
|
|
710
417
|
};
|
|
@@ -797,7 +504,7 @@ const getSystemInfoSync = () => {
|
|
|
797
504
|
return info;
|
|
798
505
|
};
|
|
799
506
|
/** 获取系统信息 */
|
|
800
|
-
const getSystemInfoAsync = (options = {}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
507
|
+
const getSystemInfoAsync = (options = {}) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
801
508
|
const { success, fail, complete } = options;
|
|
802
509
|
const handle = new MethodHandler({ name: 'getSystemInfoAsync', success, fail, complete });
|
|
803
510
|
try {
|
|
@@ -811,7 +518,7 @@ const getSystemInfoAsync = (options = {}) => __awaiter(void 0, void 0, void 0, f
|
|
|
811
518
|
}
|
|
812
519
|
});
|
|
813
520
|
/** 获取系统信息 */
|
|
814
|
-
const getSystemInfo = (options = {}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
521
|
+
const getSystemInfo = (options = {}) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
815
522
|
const { success, fail, complete } = options;
|
|
816
523
|
const handle = new MethodHandler({ name: 'getSystemInfo', success, fail, complete });
|
|
817
524
|
try {
|
|
@@ -1001,7 +708,10 @@ const TextBaseLineMap = {
|
|
|
1001
708
|
top: 'top',
|
|
1002
709
|
bottom: 'bottom',
|
|
1003
710
|
middle: 'middle',
|
|
1004
|
-
normal: 'alphabetic'
|
|
711
|
+
normal: 'alphabetic',
|
|
712
|
+
hanging: 'hanging',
|
|
713
|
+
alphabetic: 'alphabetic',
|
|
714
|
+
ideographic: 'ideographic'
|
|
1005
715
|
};
|
|
1006
716
|
class CanvasContext {
|
|
1007
717
|
constructor(canvas, ctx) {
|
|
@@ -1092,7 +802,7 @@ class CanvasContext {
|
|
|
1092
802
|
* @todo 每次 draw 都会读取 width 和 height
|
|
1093
803
|
*/
|
|
1094
804
|
draw(reserve, callback) {
|
|
1095
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
805
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1096
806
|
try {
|
|
1097
807
|
if (!reserve) {
|
|
1098
808
|
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
@@ -1400,7 +1110,7 @@ const checkIsOpenAccessibility = /* @__PURE__ */ temporarilyNotSupport('checkIsO
|
|
|
1400
1110
|
// 电量
|
|
1401
1111
|
// Note: 浏览器标准下不支持,其他实现方案不准确,不建议开发者使用
|
|
1402
1112
|
const getBatteryInfoSync = /* @__PURE__ */ permanentlyNotSupport('getBatteryInfoSync');
|
|
1403
|
-
const getBatteryInfo = ({ success, fail, complete } = {}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1113
|
+
const getBatteryInfo = ({ success, fail, complete } = {}) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
1404
1114
|
var _a;
|
|
1405
1115
|
const handle = new MethodHandler({ name: 'getBatteryInfo', success, fail, complete });
|
|
1406
1116
|
try {
|
|
@@ -1783,7 +1493,7 @@ document.addEventListener('copy', () => {
|
|
|
1783
1493
|
/**
|
|
1784
1494
|
* 设置系统剪贴板的内容
|
|
1785
1495
|
*/
|
|
1786
|
-
const setClipboardData = ({ data, success, fail, complete }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1496
|
+
const setClipboardData = ({ data, success, fail, complete }) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
1787
1497
|
const handle = new MethodHandler({ name: 'setClipboardData', success, fail, complete });
|
|
1788
1498
|
try {
|
|
1789
1499
|
setStorageSync(CLIPBOARD_STORAGE_NAME, data);
|
|
@@ -1817,7 +1527,7 @@ const setClipboardData = ({ data, success, fail, complete }) => __awaiter(void 0
|
|
|
1817
1527
|
/**
|
|
1818
1528
|
* 获取系统剪贴板的内容
|
|
1819
1529
|
*/
|
|
1820
|
-
const getClipboardData = ({ success, fail, complete } = {}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1530
|
+
const getClipboardData = ({ success, fail, complete } = {}) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
1821
1531
|
const handle = new MethodHandler({ name: 'getClipboardData', success, fail, complete });
|
|
1822
1532
|
try {
|
|
1823
1533
|
const data = getStorageSync(CLIPBOARD_STORAGE_NAME);
|
|
@@ -2053,7 +1763,7 @@ const getNetworkType = (options = {}) => {
|
|
|
2053
1763
|
return handle.success({ networkType });
|
|
2054
1764
|
};
|
|
2055
1765
|
const networkStatusManager = new CallbackManager();
|
|
2056
|
-
const networkStatusListener = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1766
|
+
const networkStatusListener = () => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
2057
1767
|
const { networkType } = yield getNetworkType();
|
|
2058
1768
|
const isConnected = networkType !== 'none';
|
|
2059
1769
|
const obj = { isConnected, networkType };
|
|
@@ -2297,14 +2007,14 @@ function styleInject(css, ref) {
|
|
|
2297
2007
|
}
|
|
2298
2008
|
}
|
|
2299
2009
|
|
|
2300
|
-
var css_248z = ".taro_choose_location
|
|
2301
|
-
var stylesheet=".taro_choose_location
|
|
2010
|
+
var css_248z = ".taro_choose_location{background-color:#fff;display:flex;flex-direction:column;height:100%;position:fixed;top:100%;transition:top .3s ease;width:100%;z-index:1}.taro_choose_location_bar{background-color:#ededed;color:#090909;display:flex;flex:0 95px;height:95px}.taro_choose_location_back{flex:0 45px;height:30px;margin-top:30px;position:relative;width:33px}.taro_choose_location_back:before{border:15px solid transparent;border-right-color:#090909;content:\"\";display:block;height:0;left:0;position:absolute;top:0;width:0}.taro_choose_location_back:after{border:15px solid transparent;border-right-color:#ededed;content:\"\";display:block;height:0;left:3px;position:absolute;top:0;width:0}.taro_choose_location_title{flex:1;line-height:95px;padding-left:30px}.taro_choose_location_submit{background-color:#08bf62;border:none;color:#fff;font-size:28px;height:60px;line-height:60px;margin:18px 30px 0 0;padding:0;width:110px}.taro_choose_location_frame{flex:1}";
|
|
2011
|
+
var stylesheet=".taro_choose_location{background-color:#fff;display:flex;flex-direction:column;height:100%;position:fixed;top:100%;transition:top .3s ease;width:100%;z-index:1}.taro_choose_location_bar{background-color:#ededed;color:#090909;display:flex;flex:0 95px;height:95px}.taro_choose_location_back{flex:0 45px;height:30px;margin-top:30px;position:relative;width:33px}.taro_choose_location_back:before{border:15px solid transparent;border-right-color:#090909;content:\"\";display:block;height:0;left:0;position:absolute;top:0;width:0}.taro_choose_location_back:after{border:15px solid transparent;border-right-color:#ededed;content:\"\";display:block;height:0;left:3px;position:absolute;top:0;width:0}.taro_choose_location_title{flex:1;line-height:95px;padding-left:30px}.taro_choose_location_submit{background-color:#08bf62;border:none;color:#fff;font-size:28px;height:60px;line-height:60px;margin:18px 30px 0 0;padding:0;width:110px}.taro_choose_location_frame{flex:1}";
|
|
2302
2012
|
styleInject(css_248z,{"insertAt":"top"});
|
|
2303
2013
|
|
|
2304
2014
|
let container = null;
|
|
2305
2015
|
function createLocationChooser(handler, key = LOCATION_APIKEY, mapOpt = {}) {
|
|
2306
2016
|
var _a, _b, _c;
|
|
2307
|
-
const { latitude, longitude } = mapOpt, opts = __rest(mapOpt, ["latitude", "longitude"]);
|
|
2017
|
+
const { latitude, longitude } = mapOpt, opts = tslib.__rest(mapOpt, ["latitude", "longitude"]);
|
|
2308
2018
|
const query = Object.assign({ key, type: 1, coord: ((_a = mapOpt.coord) !== null && _a !== void 0 ? _a : [latitude, longitude].every(e => Number(e) >= 0)) ? `${latitude},${longitude}` : undefined, referer: 'myapp' }, opts);
|
|
2309
2019
|
if (!container) {
|
|
2310
2020
|
const html = `
|
|
@@ -2711,7 +2421,7 @@ const getImageInfo = (options) => {
|
|
|
2711
2421
|
/**
|
|
2712
2422
|
* 在新页面中全屏预览图片。预览的过程中用户可以进行保存图片、发送给朋友等操作。
|
|
2713
2423
|
*/
|
|
2714
|
-
const previewImage = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2424
|
+
const previewImage = (options) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
2715
2425
|
// TODO 改为通过 window.__taroAppConfig 获取配置的 Swiper 插件创建节点
|
|
2716
2426
|
components.defineCustomElementTaroSwiperCore();
|
|
2717
2427
|
components.defineCustomElementTaroSwiperItemCore();
|
|
@@ -3078,7 +2788,7 @@ const setBackgroundColor = /* @__PURE__ */ temporarilyNotSupport('setBackgroundC
|
|
|
3078
2788
|
const nextTick = Taro.nextTick;
|
|
3079
2789
|
|
|
3080
2790
|
// 字体
|
|
3081
|
-
const loadFontFace = (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2791
|
+
const loadFontFace = (options) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
3082
2792
|
options = Object.assign({ global: false }, options);
|
|
3083
2793
|
const { success, fail, complete, family, source, desc = {} } = options;
|
|
3084
2794
|
const handle = new MethodHandler({ name: 'loadFontFace', success, fail, complete });
|
|
@@ -3797,7 +3507,7 @@ const hideLoading = ({ noConflict = false, success, fail, complete } = {}) => {
|
|
|
3797
3507
|
toast.hide(0, noConflict ? 'loading' : '');
|
|
3798
3508
|
return handle.success();
|
|
3799
3509
|
};
|
|
3800
|
-
const showModal = (options = {}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3510
|
+
const showModal = (options = {}) => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
3801
3511
|
init(document);
|
|
3802
3512
|
options = Object.assign({
|
|
3803
3513
|
title: '',
|
|
@@ -3891,7 +3601,7 @@ function hideModal() {
|
|
|
3891
3601
|
return;
|
|
3892
3602
|
modal.hide();
|
|
3893
3603
|
}
|
|
3894
|
-
const showActionSheet = (options = { itemList: [] }, methodName = 'showActionSheet') => __awaiter(void 0, void 0, void 0, function* () {
|
|
3604
|
+
const showActionSheet = (options = { itemList: [] }, methodName = 'showActionSheet') => tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
3895
3605
|
init(document);
|
|
3896
3606
|
options = Object.assign({
|
|
3897
3607
|
itemColor: '#000000',
|
|
@@ -3986,7 +3696,7 @@ function setNavigationBarTitle(options) {
|
|
|
3986
3696
|
})
|
|
3987
3697
|
});
|
|
3988
3698
|
}
|
|
3989
|
-
|
|
3699
|
+
router.setTitle(title);
|
|
3990
3700
|
return handle.success();
|
|
3991
3701
|
}
|
|
3992
3702
|
/**
|
|
@@ -4430,7 +4140,7 @@ const checkIsPictureInPictureActive = /* @__PURE__ */ temporarilyNotSupport('che
|
|
|
4430
4140
|
*/
|
|
4431
4141
|
const chooseMedia = function (options, methodName = 'chooseMedia') {
|
|
4432
4142
|
var _a;
|
|
4433
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4143
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4434
4144
|
// options must be an Object
|
|
4435
4145
|
const isObject = shouldBeObject(options);
|
|
4436
4146
|
if (!isObject.flag) {
|
|
@@ -4471,8 +4181,7 @@ const chooseMedia = function (options, methodName = 'chooseMedia') {
|
|
|
4471
4181
|
el.removeAttribute('multiple');
|
|
4472
4182
|
}
|
|
4473
4183
|
// Note: Input 仅在移动端支持 capture 属性,可以使用 getUserMedia 替代(暂不考虑)
|
|
4474
|
-
|
|
4475
|
-
if (md.mobile()) {
|
|
4184
|
+
if (isMobile.isMobile()) {
|
|
4476
4185
|
if (sourceType.length > 1 || sourceType.length < 1) {
|
|
4477
4186
|
try {
|
|
4478
4187
|
const { tapIndex } = yield showActionSheet({
|
|
@@ -4507,12 +4216,12 @@ const chooseMedia = function (options, methodName = 'chooseMedia') {
|
|
|
4507
4216
|
return;
|
|
4508
4217
|
document.body.appendChild(el);
|
|
4509
4218
|
el.onchange = function (e) {
|
|
4510
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4219
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4511
4220
|
const target = e.target;
|
|
4512
4221
|
if (target) {
|
|
4513
4222
|
const files = target.files || [];
|
|
4514
4223
|
const arr = [...files];
|
|
4515
|
-
yield Promise.all(arr.map((item) => __awaiter(this, void 0, void 0, function* () {
|
|
4224
|
+
yield Promise.all(arr.map((item) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4516
4225
|
var _a;
|
|
4517
4226
|
try {
|
|
4518
4227
|
(_a = res.tempFiles) === null || _a === void 0 ? void 0 : _a.push(yield loadMedia(item));
|
|
@@ -4637,7 +4346,7 @@ const chooseImage = function (options) {
|
|
|
4637
4346
|
return Promise.reject(res);
|
|
4638
4347
|
}
|
|
4639
4348
|
let camera = 'back';
|
|
4640
|
-
const { sourceType = ['album', 'camera'], success, complete, fail } = options, args = __rest(options, ["sourceType", "success", "complete", "fail"]);
|
|
4349
|
+
const { sourceType = ['album', 'camera'], success, complete, fail } = options, args = tslib.__rest(options, ["sourceType", "success", "complete", "fail"]);
|
|
4641
4350
|
if (sourceType.includes('camera') && sourceType.indexOf('user') > -1) {
|
|
4642
4351
|
camera = 'front';
|
|
4643
4352
|
}
|
|
@@ -4710,7 +4419,7 @@ const saveVideoToPhotosAlbum = (options) => {
|
|
|
4710
4419
|
};
|
|
4711
4420
|
|
|
4712
4421
|
const getVideoInfo = function (options) {
|
|
4713
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4422
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4714
4423
|
// options must be an Object
|
|
4715
4424
|
const isObject = shouldBeObject(options);
|
|
4716
4425
|
if (!isObject.flag) {
|
|
@@ -4748,7 +4457,7 @@ const getVideoInfo = function (options) {
|
|
|
4748
4457
|
res.height = video.videoHeight;
|
|
4749
4458
|
res.width = video.videoWidth;
|
|
4750
4459
|
fetch(src)
|
|
4751
|
-
.then((e) => __awaiter(this, void 0, void 0, function* () {
|
|
4460
|
+
.then((e) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4752
4461
|
const blob = yield e.blob();
|
|
4753
4462
|
res.type = blob.type;
|
|
4754
4463
|
res.size = blob.size;
|
|
@@ -5072,7 +4781,7 @@ function _request(options = {}) {
|
|
|
5072
4781
|
const { success, complete, fail } = options;
|
|
5073
4782
|
const params = {};
|
|
5074
4783
|
const res = {};
|
|
5075
|
-
let { cache = 'default', credentials, data, dataType, header = {}, jsonp, method = 'GET', mode, responseType, signal, timeout = 60000, url = '' } = options, opts = __rest(options, ["cache", "credentials", "data", "dataType", "header", "jsonp", "method", "mode", "responseType", "signal", "timeout", "url"]);
|
|
4784
|
+
let { cache = 'default', credentials, data, dataType, header = {}, jsonp, method = 'GET', mode, responseType, signal, timeout = 60000, url = '' } = options, opts = tslib.__rest(options, ["cache", "credentials", "data", "dataType", "header", "jsonp", "method", "mode", "responseType", "signal", "timeout", "url"]);
|
|
5076
4785
|
Object.assign(params, opts);
|
|
5077
4786
|
if (jsonp) {
|
|
5078
4787
|
// @ts-ignore
|
|
@@ -5131,23 +4840,30 @@ function _request(options = {}) {
|
|
|
5131
4840
|
params.mode = mode;
|
|
5132
4841
|
}
|
|
5133
4842
|
let timeoutTimer = null;
|
|
4843
|
+
let controller = null;
|
|
5134
4844
|
if (signal) {
|
|
5135
4845
|
params.signal = signal;
|
|
5136
4846
|
}
|
|
5137
|
-
else
|
|
5138
|
-
|
|
4847
|
+
else {
|
|
4848
|
+
controller = new window.AbortController();
|
|
5139
4849
|
params.signal = controller.signal;
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
4850
|
+
if (typeof timeout === 'number') {
|
|
4851
|
+
timeoutTimer = setTimeout(function () {
|
|
4852
|
+
if (controller)
|
|
4853
|
+
controller.abort();
|
|
4854
|
+
}, timeout);
|
|
4855
|
+
}
|
|
5143
4856
|
}
|
|
5144
4857
|
params.credentials = credentials;
|
|
5145
|
-
|
|
4858
|
+
const p = fetch(url, params)
|
|
5146
4859
|
.then(response => {
|
|
5147
4860
|
if (timeoutTimer) {
|
|
5148
4861
|
clearTimeout(timeoutTimer);
|
|
5149
4862
|
timeoutTimer = null;
|
|
5150
4863
|
}
|
|
4864
|
+
if (controller) {
|
|
4865
|
+
controller = null;
|
|
4866
|
+
}
|
|
5151
4867
|
if (!response) {
|
|
5152
4868
|
const errorResponse = { ok: false };
|
|
5153
4869
|
throw errorResponse;
|
|
@@ -5183,12 +4899,28 @@ function _request(options = {}) {
|
|
|
5183
4899
|
clearTimeout(timeoutTimer);
|
|
5184
4900
|
timeoutTimer = null;
|
|
5185
4901
|
}
|
|
4902
|
+
if (controller) {
|
|
4903
|
+
controller = null;
|
|
4904
|
+
}
|
|
5186
4905
|
shared.isFunction(fail) && fail(err);
|
|
5187
4906
|
shared.isFunction(complete) && complete(res);
|
|
5188
4907
|
err.statusCode = res.statusCode;
|
|
5189
4908
|
err.errMsg = err.message;
|
|
5190
4909
|
return Promise.reject(err);
|
|
5191
4910
|
});
|
|
4911
|
+
if (!p.abort && controller) {
|
|
4912
|
+
p.abort = cb => {
|
|
4913
|
+
if (controller) {
|
|
4914
|
+
cb && cb();
|
|
4915
|
+
controller.abort();
|
|
4916
|
+
if (timeoutTimer) {
|
|
4917
|
+
clearTimeout(timeoutTimer);
|
|
4918
|
+
timeoutTimer = null;
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4921
|
+
};
|
|
4922
|
+
}
|
|
4923
|
+
return p;
|
|
5192
4924
|
}
|
|
5193
4925
|
function taroInterceptor(chain) {
|
|
5194
4926
|
return _request(chain.requestParams);
|
|
@@ -5596,6 +5328,14 @@ const requestOrderPayment = /* @__PURE__ */ temporarilyNotSupport('requestOrderP
|
|
|
5596
5328
|
|
|
5597
5329
|
// 打开手Q说说发表界面
|
|
5598
5330
|
const openQzonePublish = /* @__PURE__ */ temporarilyNotSupport('openQzonePublish');
|
|
5331
|
+
const getQQRunData = /* @__PURE__ */ temporarilyNotSupport('getQQRunData');
|
|
5332
|
+
const setOfficialDress = /* @__PURE__ */ temporarilyNotSupport('setOfficialDress');
|
|
5333
|
+
const setCustomDress = /* @__PURE__ */ temporarilyNotSupport('setCustomDress');
|
|
5334
|
+
const updateQQApp = /* @__PURE__ */ temporarilyNotSupport('updateQQApp');
|
|
5335
|
+
const addRecentColorSign = /* @__PURE__ */ temporarilyNotSupport('addRecentColorSign');
|
|
5336
|
+
const getGuildInfo = /* @__PURE__ */ temporarilyNotSupport('getGuildInfo');
|
|
5337
|
+
const applyAddToMyApps = /* @__PURE__ */ temporarilyNotSupport('applyAddToMyApps');
|
|
5338
|
+
const isAddedToMyApps = /* @__PURE__ */ temporarilyNotSupport('isAddedToMyApps');
|
|
5599
5339
|
|
|
5600
5340
|
// 路由
|
|
5601
5341
|
// FIXME 方法导出类型未对齐,后续修复
|
|
@@ -5651,7 +5391,6 @@ const preloadSubPackage = /* @__PURE__ */ temporarilyNotSupport('preloadSubPacka
|
|
|
5651
5391
|
// Worker
|
|
5652
5392
|
const createWorker = /* @__PURE__ */ temporarilyNotSupport('createWorker');
|
|
5653
5393
|
|
|
5654
|
-
import('intersection-observer');
|
|
5655
5394
|
class TaroH5IntersectionObserver {
|
|
5656
5395
|
// selector 的容器节点
|
|
5657
5396
|
get container() {
|
|
@@ -6198,15 +5937,18 @@ exports.Current = Current;
|
|
|
6198
5937
|
exports.ENV_TYPE = ENV_TYPE;
|
|
6199
5938
|
exports.Events = Events;
|
|
6200
5939
|
exports.Link = Link;
|
|
5940
|
+
exports.NodesRef = NodesRef;
|
|
6201
5941
|
exports.addCard = addCard;
|
|
6202
5942
|
exports.addFileToFavorites = addFileToFavorites;
|
|
6203
5943
|
exports.addInterceptor = addInterceptor;
|
|
6204
5944
|
exports.addPhoneCalendar = addPhoneCalendar;
|
|
6205
5945
|
exports.addPhoneContact = addPhoneContact;
|
|
6206
5946
|
exports.addPhoneRepeatCalendar = addPhoneRepeatCalendar;
|
|
5947
|
+
exports.addRecentColorSign = addRecentColorSign;
|
|
6207
5948
|
exports.addVideoToFavorites = addVideoToFavorites;
|
|
6208
5949
|
exports.advancedGeneralIdentify = advancedGeneralIdentify;
|
|
6209
5950
|
exports.animalClassify = animalClassify;
|
|
5951
|
+
exports.applyAddToMyApps = applyAddToMyApps;
|
|
6210
5952
|
exports.arrayBufferToBase64 = arrayBufferToBase64;
|
|
6211
5953
|
exports.authPrivateMessage = authPrivateMessage;
|
|
6212
5954
|
exports.authorize = authorize;
|
|
@@ -6329,6 +6071,7 @@ exports.getFileInfo = getFileInfo;
|
|
|
6329
6071
|
exports.getFileSystemManager = getFileSystemManager;
|
|
6330
6072
|
exports.getFuzzyLocation = getFuzzyLocation;
|
|
6331
6073
|
exports.getGroupEnterInfo = getGroupEnterInfo;
|
|
6074
|
+
exports.getGuildInfo = getGuildInfo;
|
|
6332
6075
|
exports.getHCEState = getHCEState;
|
|
6333
6076
|
exports.getImageInfo = getImageInfo;
|
|
6334
6077
|
exports.getInferenceEnvInfo = getInferenceEnvInfo;
|
|
@@ -6342,6 +6085,7 @@ exports.getNetworkType = getNetworkType;
|
|
|
6342
6085
|
exports.getOpenUserInfo = getOpenUserInfo;
|
|
6343
6086
|
exports.getPerformance = getPerformance;
|
|
6344
6087
|
exports.getPrivacySetting = getPrivacySetting;
|
|
6088
|
+
exports.getQQRunData = getQQRunData;
|
|
6345
6089
|
exports.getRandomValues = getRandomValues;
|
|
6346
6090
|
exports.getRealtimeLogManager = getRealtimeLogManager;
|
|
6347
6091
|
exports.getRecorderManager = getRecorderManager;
|
|
@@ -6386,6 +6130,7 @@ exports.initPxTransform = initPxTransform;
|
|
|
6386
6130
|
exports.initTabBarApis = initTabBarApis;
|
|
6387
6131
|
exports.interceptorify = interceptorify;
|
|
6388
6132
|
exports.interceptors = interceptors;
|
|
6133
|
+
exports.isAddedToMyApps = isAddedToMyApps;
|
|
6389
6134
|
exports.isBluetoothDevicePaired = isBluetoothDevicePaired;
|
|
6390
6135
|
exports.isVKSupport = isVKSupport;
|
|
6391
6136
|
exports.join1v1Chat = join1v1Chat;
|
|
@@ -6572,12 +6317,14 @@ exports.setBackgroundColor = setBackgroundColor;
|
|
|
6572
6317
|
exports.setBackgroundFetchToken = setBackgroundFetchToken;
|
|
6573
6318
|
exports.setBackgroundTextStyle = setBackgroundTextStyle;
|
|
6574
6319
|
exports.setClipboardData = setClipboardData;
|
|
6320
|
+
exports.setCustomDress = setCustomDress;
|
|
6575
6321
|
exports.setEnable1v1Chat = setEnable1v1Chat;
|
|
6576
6322
|
exports.setEnableDebug = setEnableDebug;
|
|
6577
6323
|
exports.setInnerAudioOption = setInnerAudioOption;
|
|
6578
6324
|
exports.setKeepScreenOn = setKeepScreenOn;
|
|
6579
6325
|
exports.setNavigationBarColor = setNavigationBarColor;
|
|
6580
6326
|
exports.setNavigationBarTitle = setNavigationBarTitle;
|
|
6327
|
+
exports.setOfficialDress = setOfficialDress;
|
|
6581
6328
|
exports.setPageInfo = setPageInfo;
|
|
6582
6329
|
exports.setScreenBrightness = setScreenBrightness;
|
|
6583
6330
|
exports.setStorage = setStorage;
|
|
@@ -6637,6 +6384,7 @@ exports.subscribeVoIPVideoMembers = subscribeVoIPVideoMembers;
|
|
|
6637
6384
|
exports.textReview = textReview;
|
|
6638
6385
|
exports.textToAudio = textToAudio;
|
|
6639
6386
|
exports.tradePay = tradePay;
|
|
6387
|
+
exports.updateQQApp = updateQQApp;
|
|
6640
6388
|
exports.updateShareMenu = updateShareMenu;
|
|
6641
6389
|
exports.updateVoIPChatMuteConfig = updateVoIPChatMuteConfig;
|
|
6642
6390
|
exports.updateWeChatApp = updateWeChatApp;
|