@tarojs/taro-h5 4.0.0-beta.1 → 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/index.js +1 -1
- package/dist/api/base/index.js.map +1 -1
- 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 +3 -3
- 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 +84 -413
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.d.ts +42 -1
- package/dist/index.esm.js +56 -394
- 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 +17 -11
- package/dist/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +0 -373
- package/dist/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js.map +0 -1
- /package/dist/node_modules/.pnpm/{style-inject@0.3.0 → registry.npmjs.org_style-inject@0.3.0}/node_modules/style-inject/dist/style-inject.es.js +0 -0
- /package/dist/node_modules/.pnpm/{style-inject@0.3.0 → registry.npmjs.org_style-inject@0.3.0}/node_modules/style-inject/dist/style-inject.es.js.map +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import Taro from '@tarojs/api';
|
|
2
|
-
import { history, navigateBack, navigateTo, reLaunch, redirectTo, getCurrentPages, switchTab } from '@tarojs/router';
|
|
2
|
+
import { setTitle, history, navigateBack, navigateTo, reLaunch, redirectTo, getCurrentPages, switchTab } from '@tarojs/router';
|
|
3
3
|
export { getCurrentPages, history, navigateBack, navigateTo, reLaunch, redirectTo, switchTab } from '@tarojs/router';
|
|
4
4
|
import { isFunction, toKebabCase, PLATFORM_TYPE } from '@tarojs/shared';
|
|
5
|
-
import { getCurrentPage, getHomePage } from '@tarojs/
|
|
6
|
-
import { hooks, Current as Current$1, eventCenter as eventCenter$1 } from '@tarojs/runtime';
|
|
5
|
+
import { hooks, Current as Current$1, getCurrentPage, getHomePage, eventCenter as eventCenter$1 } from '@tarojs/runtime';
|
|
7
6
|
import { fromByteArray, toByteArray } from 'base64-js';
|
|
8
|
-
import {
|
|
7
|
+
import { __awaiter, __rest } from 'tslib';
|
|
8
|
+
import platform from 'platform';
|
|
9
9
|
import isNil from 'lodash-es/isNil';
|
|
10
10
|
import { parse, stringify } from 'query-string';
|
|
11
11
|
import throttle from 'lodash-es/throttle';
|
|
12
12
|
import * as ics from 'ics';
|
|
13
13
|
import { defineCustomElementTaroSwiperCore, defineCustomElementTaroSwiperItemCore } from '@tarojs/components/dist/components';
|
|
14
|
+
import { isMobile } from 'is-mobile';
|
|
14
15
|
import 'whatwg-fetch';
|
|
15
16
|
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only';
|
|
16
17
|
import jsonpRetry from 'jsonp-retry';
|
|
@@ -325,377 +326,6 @@ const preloadWebview = /* @__PURE__ */ temporarilyNotSupport('preloadWebview');
|
|
|
325
326
|
const preloadSkylineView = /* @__PURE__ */ temporarilyNotSupport('preloadSkylineView');
|
|
326
327
|
const preloadAssets = /* @__PURE__ */ temporarilyNotSupport('preloadAssets');
|
|
327
328
|
|
|
328
|
-
/******************************************************************************
|
|
329
|
-
Copyright (c) Microsoft Corporation.
|
|
330
|
-
|
|
331
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
332
|
-
purpose with or without fee is hereby granted.
|
|
333
|
-
|
|
334
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
335
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
336
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
337
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
338
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
339
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
340
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
341
|
-
***************************************************************************** */
|
|
342
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
343
|
-
|
|
344
|
-
var extendStatics = function(d, b) {
|
|
345
|
-
extendStatics = Object.setPrototypeOf ||
|
|
346
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
347
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
348
|
-
return extendStatics(d, b);
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
function __extends(d, b) {
|
|
352
|
-
if (typeof b !== "function" && b !== null)
|
|
353
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
354
|
-
extendStatics(d, b);
|
|
355
|
-
function __() { this.constructor = d; }
|
|
356
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
var __assign = function() {
|
|
360
|
-
__assign = Object.assign || function __assign(t) {
|
|
361
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
362
|
-
s = arguments[i];
|
|
363
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
364
|
-
}
|
|
365
|
-
return t;
|
|
366
|
-
};
|
|
367
|
-
return __assign.apply(this, arguments);
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
function __rest(s, e) {
|
|
371
|
-
var t = {};
|
|
372
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
373
|
-
t[p] = s[p];
|
|
374
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
375
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
376
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
377
|
-
t[p[i]] = s[p[i]];
|
|
378
|
-
}
|
|
379
|
-
return t;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
function __decorate(decorators, target, key, desc) {
|
|
383
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
384
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
385
|
-
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;
|
|
386
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
function __param(paramIndex, decorator) {
|
|
390
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
394
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
395
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
396
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
397
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
398
|
-
var _, done = false;
|
|
399
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
400
|
-
var context = {};
|
|
401
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
402
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
403
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
404
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
405
|
-
if (kind === "accessor") {
|
|
406
|
-
if (result === void 0) continue;
|
|
407
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
408
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
409
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
410
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
411
|
-
}
|
|
412
|
-
else if (_ = accept(result)) {
|
|
413
|
-
if (kind === "field") initializers.unshift(_);
|
|
414
|
-
else descriptor[key] = _;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
418
|
-
done = true;
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
422
|
-
var useValue = arguments.length > 2;
|
|
423
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
424
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
425
|
-
}
|
|
426
|
-
return useValue ? value : void 0;
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
function __propKey(x) {
|
|
430
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
function __setFunctionName(f, name, prefix) {
|
|
434
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
435
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
function __metadata(metadataKey, metadataValue) {
|
|
439
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
443
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
444
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
445
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
446
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
447
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
448
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
function __generator(thisArg, body) {
|
|
453
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
454
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
455
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
456
|
-
function step(op) {
|
|
457
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
458
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
459
|
-
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;
|
|
460
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
461
|
-
switch (op[0]) {
|
|
462
|
-
case 0: case 1: t = op; break;
|
|
463
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
464
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
465
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
466
|
-
default:
|
|
467
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
468
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
469
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
470
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
471
|
-
if (t[2]) _.ops.pop();
|
|
472
|
-
_.trys.pop(); continue;
|
|
473
|
-
}
|
|
474
|
-
op = body.call(thisArg, _);
|
|
475
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
476
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
481
|
-
if (k2 === undefined) k2 = k;
|
|
482
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
483
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
484
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
485
|
-
}
|
|
486
|
-
Object.defineProperty(o, k2, desc);
|
|
487
|
-
}) : (function(o, m, k, k2) {
|
|
488
|
-
if (k2 === undefined) k2 = k;
|
|
489
|
-
o[k2] = m[k];
|
|
490
|
-
});
|
|
491
|
-
|
|
492
|
-
function __exportStar(m, o) {
|
|
493
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
function __values(o) {
|
|
497
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
498
|
-
if (m) return m.call(o);
|
|
499
|
-
if (o && typeof o.length === "number") return {
|
|
500
|
-
next: function () {
|
|
501
|
-
if (o && i >= o.length) o = void 0;
|
|
502
|
-
return { value: o && o[i++], done: !o };
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
function __read(o, n) {
|
|
509
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
510
|
-
if (!m) return o;
|
|
511
|
-
var i = m.call(o), r, ar = [], e;
|
|
512
|
-
try {
|
|
513
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
514
|
-
}
|
|
515
|
-
catch (error) { e = { error: error }; }
|
|
516
|
-
finally {
|
|
517
|
-
try {
|
|
518
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
519
|
-
}
|
|
520
|
-
finally { if (e) throw e.error; }
|
|
521
|
-
}
|
|
522
|
-
return ar;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
/** @deprecated */
|
|
526
|
-
function __spread() {
|
|
527
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
528
|
-
ar = ar.concat(__read(arguments[i]));
|
|
529
|
-
return ar;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/** @deprecated */
|
|
533
|
-
function __spreadArrays() {
|
|
534
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
535
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
536
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
537
|
-
r[k] = a[j];
|
|
538
|
-
return r;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
function __spreadArray(to, from, pack) {
|
|
542
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
543
|
-
if (ar || !(i in from)) {
|
|
544
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
545
|
-
ar[i] = from[i];
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
function __await(v) {
|
|
552
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
556
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
557
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
558
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
559
|
-
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); }); }; }
|
|
560
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
561
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
562
|
-
function fulfill(value) { resume("next", value); }
|
|
563
|
-
function reject(value) { resume("throw", value); }
|
|
564
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
function __asyncDelegator(o) {
|
|
568
|
-
var i, p;
|
|
569
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
570
|
-
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; }
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
function __asyncValues(o) {
|
|
574
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
575
|
-
var m = o[Symbol.asyncIterator], i;
|
|
576
|
-
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);
|
|
577
|
-
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); }); }; }
|
|
578
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
function __makeTemplateObject(cooked, raw) {
|
|
582
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
583
|
-
return cooked;
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
587
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
588
|
-
}) : function(o, v) {
|
|
589
|
-
o["default"] = v;
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
function __importStar(mod) {
|
|
593
|
-
if (mod && mod.__esModule) return mod;
|
|
594
|
-
var result = {};
|
|
595
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
596
|
-
__setModuleDefault(result, mod);
|
|
597
|
-
return result;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
function __importDefault(mod) {
|
|
601
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
605
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
606
|
-
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");
|
|
607
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
611
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
612
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
613
|
-
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");
|
|
614
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
618
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
619
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
function __addDisposableResource(env, value, async) {
|
|
623
|
-
if (value !== null && value !== void 0) {
|
|
624
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
625
|
-
var dispose;
|
|
626
|
-
if (async) {
|
|
627
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
628
|
-
dispose = value[Symbol.asyncDispose];
|
|
629
|
-
}
|
|
630
|
-
if (dispose === void 0) {
|
|
631
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
632
|
-
dispose = value[Symbol.dispose];
|
|
633
|
-
}
|
|
634
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
635
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
636
|
-
}
|
|
637
|
-
else if (async) {
|
|
638
|
-
env.stack.push({ async: true });
|
|
639
|
-
}
|
|
640
|
-
return value;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
644
|
-
var e = new Error(message);
|
|
645
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
646
|
-
};
|
|
647
|
-
|
|
648
|
-
function __disposeResources(env) {
|
|
649
|
-
function fail(e) {
|
|
650
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
651
|
-
env.hasError = true;
|
|
652
|
-
}
|
|
653
|
-
function next() {
|
|
654
|
-
while (env.stack.length) {
|
|
655
|
-
var rec = env.stack.pop();
|
|
656
|
-
try {
|
|
657
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
658
|
-
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
659
|
-
}
|
|
660
|
-
catch (e) {
|
|
661
|
-
fail(e);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
if (env.hasError) throw env.error;
|
|
665
|
-
}
|
|
666
|
-
return next();
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
var tslib_es6 = {
|
|
670
|
-
__extends: __extends,
|
|
671
|
-
__assign: __assign,
|
|
672
|
-
__rest: __rest,
|
|
673
|
-
__decorate: __decorate,
|
|
674
|
-
__param: __param,
|
|
675
|
-
__metadata: __metadata,
|
|
676
|
-
__awaiter: __awaiter,
|
|
677
|
-
__generator: __generator,
|
|
678
|
-
__createBinding: __createBinding,
|
|
679
|
-
__exportStar: __exportStar,
|
|
680
|
-
__values: __values,
|
|
681
|
-
__read: __read,
|
|
682
|
-
__spread: __spread,
|
|
683
|
-
__spreadArrays: __spreadArrays,
|
|
684
|
-
__spreadArray: __spreadArray,
|
|
685
|
-
__await: __await,
|
|
686
|
-
__asyncGenerator: __asyncGenerator,
|
|
687
|
-
__asyncDelegator: __asyncDelegator,
|
|
688
|
-
__asyncValues: __asyncValues,
|
|
689
|
-
__makeTemplateObject: __makeTemplateObject,
|
|
690
|
-
__importStar: __importStar,
|
|
691
|
-
__importDefault: __importDefault,
|
|
692
|
-
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
693
|
-
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
694
|
-
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
695
|
-
__addDisposableResource: __addDisposableResource,
|
|
696
|
-
__disposeResources: __disposeResources,
|
|
697
|
-
};
|
|
698
|
-
|
|
699
329
|
/** 跳转系统蓝牙设置页 */
|
|
700
330
|
const openSystemBluetoothSetting = /* @__PURE__ */ temporarilyNotSupport('openSystemBluetoothSetting');
|
|
701
331
|
/** 跳转系统微信授权管理页 */
|
|
@@ -744,7 +374,7 @@ const getSystemSetting = () => {
|
|
|
744
374
|
};
|
|
745
375
|
/** 获取设备设置 */
|
|
746
376
|
const getDeviceInfo = () => {
|
|
747
|
-
|
|
377
|
+
var _a, _b;
|
|
748
378
|
const info = {
|
|
749
379
|
/** 应用二进制接口类型(仅 Android 支持) */
|
|
750
380
|
abi: '',
|
|
@@ -753,13 +383,13 @@ const getDeviceInfo = () => {
|
|
|
753
383
|
/** 设备性能等级(仅Android小游戏)。取值为:-2 或 0(该设备无法运行小游戏),-1(性能未知),>=1(设备性能值,该值越高,设备性能越好,目前最高不到50) */
|
|
754
384
|
benchmarkLevel: -1,
|
|
755
385
|
/** 设备品牌 */
|
|
756
|
-
brand:
|
|
386
|
+
brand: platform.manufacturer || 'unknown',
|
|
757
387
|
/** 设备型号 */
|
|
758
|
-
model:
|
|
388
|
+
model: platform.product || 'unknown',
|
|
759
389
|
/** 操作系统及版本 */
|
|
760
|
-
system:
|
|
390
|
+
system: ((_a = platform.os) === null || _a === void 0 ? void 0 : _a.toString()) || 'unknown',
|
|
761
391
|
/** 客户端平台 */
|
|
762
|
-
platform:
|
|
392
|
+
platform: ((_b = platform.os) === null || _b === void 0 ? void 0 : _b.family) || 'unknown',
|
|
763
393
|
/** 设备二进制接口类型(仅 Android 支持) */
|
|
764
394
|
CPUType: '',
|
|
765
395
|
};
|
|
@@ -1044,7 +674,7 @@ const env = {
|
|
|
1044
674
|
TARO_VERSION: process.env.TARO_VERSION,
|
|
1045
675
|
};
|
|
1046
676
|
// Note: 该方法由 taro-plugin-platform-h5 实现
|
|
1047
|
-
|
|
677
|
+
|
|
1048
678
|
function arrayBufferToBase64(arrayBuffer) {
|
|
1049
679
|
return fromByteArray(arrayBuffer);
|
|
1050
680
|
}
|
|
@@ -1056,7 +686,10 @@ const TextBaseLineMap = {
|
|
|
1056
686
|
top: 'top',
|
|
1057
687
|
bottom: 'bottom',
|
|
1058
688
|
middle: 'middle',
|
|
1059
|
-
normal: 'alphabetic'
|
|
689
|
+
normal: 'alphabetic',
|
|
690
|
+
hanging: 'hanging',
|
|
691
|
+
alphabetic: 'alphabetic',
|
|
692
|
+
ideographic: 'ideographic'
|
|
1060
693
|
};
|
|
1061
694
|
class CanvasContext {
|
|
1062
695
|
constructor(canvas, ctx) {
|
|
@@ -2352,8 +1985,8 @@ function styleInject(css, ref) {
|
|
|
2352
1985
|
}
|
|
2353
1986
|
}
|
|
2354
1987
|
|
|
2355
|
-
var css_248z = ".taro_choose_location
|
|
2356
|
-
var stylesheet=".taro_choose_location
|
|
1988
|
+
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}";
|
|
1989
|
+
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}";
|
|
2357
1990
|
styleInject(css_248z,{"insertAt":"top"});
|
|
2358
1991
|
|
|
2359
1992
|
let container = null;
|
|
@@ -4526,8 +4159,7 @@ const chooseMedia = function (options, methodName = 'chooseMedia') {
|
|
|
4526
4159
|
el.removeAttribute('multiple');
|
|
4527
4160
|
}
|
|
4528
4161
|
// Note: Input 仅在移动端支持 capture 属性,可以使用 getUserMedia 替代(暂不考虑)
|
|
4529
|
-
|
|
4530
|
-
if (md.mobile()) {
|
|
4162
|
+
if (isMobile()) {
|
|
4531
4163
|
if (sourceType.length > 1 || sourceType.length < 1) {
|
|
4532
4164
|
try {
|
|
4533
4165
|
const { tapIndex } = yield showActionSheet({
|
|
@@ -5186,23 +4818,30 @@ function _request(options = {}) {
|
|
|
5186
4818
|
params.mode = mode;
|
|
5187
4819
|
}
|
|
5188
4820
|
let timeoutTimer = null;
|
|
4821
|
+
let controller = null;
|
|
5189
4822
|
if (signal) {
|
|
5190
4823
|
params.signal = signal;
|
|
5191
4824
|
}
|
|
5192
|
-
else
|
|
5193
|
-
|
|
4825
|
+
else {
|
|
4826
|
+
controller = new window.AbortController();
|
|
5194
4827
|
params.signal = controller.signal;
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
4828
|
+
if (typeof timeout === 'number') {
|
|
4829
|
+
timeoutTimer = setTimeout(function () {
|
|
4830
|
+
if (controller)
|
|
4831
|
+
controller.abort();
|
|
4832
|
+
}, timeout);
|
|
4833
|
+
}
|
|
5198
4834
|
}
|
|
5199
4835
|
params.credentials = credentials;
|
|
5200
|
-
|
|
4836
|
+
const p = fetch(url, params)
|
|
5201
4837
|
.then(response => {
|
|
5202
4838
|
if (timeoutTimer) {
|
|
5203
4839
|
clearTimeout(timeoutTimer);
|
|
5204
4840
|
timeoutTimer = null;
|
|
5205
4841
|
}
|
|
4842
|
+
if (controller) {
|
|
4843
|
+
controller = null;
|
|
4844
|
+
}
|
|
5206
4845
|
if (!response) {
|
|
5207
4846
|
const errorResponse = { ok: false };
|
|
5208
4847
|
throw errorResponse;
|
|
@@ -5238,12 +4877,28 @@ function _request(options = {}) {
|
|
|
5238
4877
|
clearTimeout(timeoutTimer);
|
|
5239
4878
|
timeoutTimer = null;
|
|
5240
4879
|
}
|
|
4880
|
+
if (controller) {
|
|
4881
|
+
controller = null;
|
|
4882
|
+
}
|
|
5241
4883
|
isFunction(fail) && fail(err);
|
|
5242
4884
|
isFunction(complete) && complete(res);
|
|
5243
4885
|
err.statusCode = res.statusCode;
|
|
5244
4886
|
err.errMsg = err.message;
|
|
5245
4887
|
return Promise.reject(err);
|
|
5246
4888
|
});
|
|
4889
|
+
if (!p.abort && controller) {
|
|
4890
|
+
p.abort = cb => {
|
|
4891
|
+
if (controller) {
|
|
4892
|
+
cb && cb();
|
|
4893
|
+
controller.abort();
|
|
4894
|
+
if (timeoutTimer) {
|
|
4895
|
+
clearTimeout(timeoutTimer);
|
|
4896
|
+
timeoutTimer = null;
|
|
4897
|
+
}
|
|
4898
|
+
}
|
|
4899
|
+
};
|
|
4900
|
+
}
|
|
4901
|
+
return p;
|
|
5247
4902
|
}
|
|
5248
4903
|
function taroInterceptor(chain) {
|
|
5249
4904
|
return _request(chain.requestParams);
|
|
@@ -5651,6 +5306,14 @@ const requestOrderPayment = /* @__PURE__ */ temporarilyNotSupport('requestOrderP
|
|
|
5651
5306
|
|
|
5652
5307
|
// 打开手Q说说发表界面
|
|
5653
5308
|
const openQzonePublish = /* @__PURE__ */ temporarilyNotSupport('openQzonePublish');
|
|
5309
|
+
const getQQRunData = /* @__PURE__ */ temporarilyNotSupport('getQQRunData');
|
|
5310
|
+
const setOfficialDress = /* @__PURE__ */ temporarilyNotSupport('setOfficialDress');
|
|
5311
|
+
const setCustomDress = /* @__PURE__ */ temporarilyNotSupport('setCustomDress');
|
|
5312
|
+
const updateQQApp = /* @__PURE__ */ temporarilyNotSupport('updateQQApp');
|
|
5313
|
+
const addRecentColorSign = /* @__PURE__ */ temporarilyNotSupport('addRecentColorSign');
|
|
5314
|
+
const getGuildInfo = /* @__PURE__ */ temporarilyNotSupport('getGuildInfo');
|
|
5315
|
+
const applyAddToMyApps = /* @__PURE__ */ temporarilyNotSupport('applyAddToMyApps');
|
|
5316
|
+
const isAddedToMyApps = /* @__PURE__ */ temporarilyNotSupport('isAddedToMyApps');
|
|
5654
5317
|
|
|
5655
5318
|
// 路由
|
|
5656
5319
|
// FIXME 方法导出类型未对齐,后续修复
|
|
@@ -5706,7 +5369,6 @@ const preloadSubPackage = /* @__PURE__ */ temporarilyNotSupport('preloadSubPacka
|
|
|
5706
5369
|
// Worker
|
|
5707
5370
|
const createWorker = /* @__PURE__ */ temporarilyNotSupport('createWorker');
|
|
5708
5371
|
|
|
5709
|
-
import('intersection-observer');
|
|
5710
5372
|
class TaroH5IntersectionObserver {
|
|
5711
5373
|
// selector 的容器节点
|
|
5712
5374
|
get container() {
|
|
@@ -6220,5 +5882,5 @@ taro.initPxTransform = initPxTransform;
|
|
|
6220
5882
|
taro.canIUseWebp = canIUseWebp;
|
|
6221
5883
|
taro.getAppInfo = getAppInfo;
|
|
6222
5884
|
|
|
6223
|
-
export { Behavior, Current, ENV_TYPE, Events, Link, addCard, addFileToFavorites, addInterceptor, addPhoneCalendar, addPhoneContact, addPhoneRepeatCalendar, addVideoToFavorites, advancedGeneralIdentify, animalClassify, arrayBufferToBase64, authPrivateMessage, authorize, authorizeForMiniProgram, base64ToArrayBuffer, batchGetStorage, batchGetStorageSync, batchSetStorage, batchSetStorageSync, canIUseWebp, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, carClassify, checkIsAddedToMyMiniProgram, checkIsOpenAccessibility, checkIsPictureInPictureActive, checkIsSoterEnrolledInDevice, checkIsSupportFacialRecognition, checkIsSupportSoterAuthentication, checkSession, chooseAddress, chooseContact, chooseImage, chooseInvoice, chooseInvoiceTitle, chooseLicensePlate, chooseLocation, chooseMedia, chooseMessageFile, choosePoi, chooseVideo, cleanInterceptors, clearStorage, clearStorageSync, closeBLEConnection, closeBluetoothAdapter, closeSocket, cloud, compressImage, compressVideo, connectSocket, connectWifi, createAnimation, createAudioContext, createBLEConnection, createBLEPeripheralServer, createBufferURL, createCacheManager, createCameraContext, createCanvasContext, createInferenceSession, createInnerAudioContext, createIntersectionObserver, createInterstitialAd, createLivePlayerContext, createLivePusherContext, createMapContext, createMediaAudioPlayer, createMediaContainer, createMediaQueryObserver, createMediaRecorder, createOffscreenCanvas, createRewardedVideoAd, createSelectorQuery, createTCPSocket, createUDPSocket, createVKSession, createVideoContext, createVideoDecoder, createWebAudioContext, createWorker, cropImage, taro as default, disableAlertBeforeUnload, dishClassify, downloadFile, editImage, enableAlertBeforeUnload, env, eventCenter, exitMiniProgram, exitVoIPChat, faceDetect, faceVerifyForPay, getAccountInfoSync, getApp, getAppAuthorizeSetting, getAppBaseInfo, getAppInfo, getAvailableAudioSources, getBLEDeviceCharacteristics, getBLEDeviceRSSI, getBLEDeviceServices, getBLEMTU, getBackgroundAudioManager, getBackgroundAudioPlayerState, getBackgroundFetchData, getBackgroundFetchToken, getBatteryInfo, getBatteryInfoSync, getBeacons, getBluetoothAdapterState, getBluetoothDevices, getChannelsLiveInfo, getChannelsLiveNoticeInfo, getChannelsShareKey, getClipboardData, getConnectedBluetoothDevices, getConnectedWifi, getCurrentInstance, getDeviceInfo, getDeviceVoIPList, getEnterOptionsSync, getEnv, getExptInfoSync, getExtConfig, getExtConfigSync, getFileInfo, getFileSystemManager, getFuzzyLocation, getGroupEnterInfo, getHCEState, getImageInfo, getInferenceEnvInfo, getLaunchOptionsSync, getLocalIPAddress, getLocation, getLogManager, getMenuButtonBoundingClientRect, getNFCAdapter, getNetworkType, getOpenUserInfo, getPerformance, getPrivacySetting, getRandomValues, getRealtimeLogManager, getRecorderManager, getRendererUserAgent, getSavedFileInfo, getSavedFileList, getScreenBrightness, getScreenRecordingState, getSelectedTextRange, getSetting, getShareInfo, getSkylineInfo, getSkylineInfoSync, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSwanId, getSystemInfo, getSystemInfoAsync, getSystemInfoSync, getSystemSetting, getUpdateManager, getUserCryptoManager, getUserInfo, getUserProfile, getVideoInfo, getWeRunData, getWifiList, getWindowInfo, hideHomeButton, hideKeyboard, hideLoading, hideNavigationBarLoading, hideShareMenu, hideTabBar, hideTabBarRedDot, hideToast, imageAudit, initFaceDetect, initPxTransform, initTabBarApis, interceptorify, interceptors, isBluetoothDevicePaired, isVKSupport, join1v1Chat, joinVoIPChat, loadFontFace, login, logoClassify, makeBluetoothPair, makePhoneCall, navigateBackMiniProgram, navigateBackSmartProgram, navigateToMiniProgram, navigateToSmartGameProgram, navigateToSmartProgram, nextTick, notifyBLECharacteristicValueChange, objectDetectIdentify, ocrBankCard, ocrDrivingLicense, ocrIdCard, ocrVehicleLicense, offAccelerometerChange, offAppHide, offAppShow, offAudioInterruptionBegin, offAudioInterruptionEnd, offBLECharacteristicValueChange, offBLEConnectionStateChange, offBLEMTUChange, offBLEPeripheralConnectionStateChanged, offBeaconServiceChange, offBeaconUpdate, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offCopyUrl, offDeviceMotionChange, offError, offGetWifiList, offGyroscopeChange, offHCEMessage, offKeyboardHeightChange, offLazyLoadError, offLocalServiceDiscoveryStop, offLocalServiceFound, offLocalServiceLost, offLocalServiceResolveFail, offLocationChange, offLocationChangeError, offMemoryWarning, offNetworkStatusChange, offNetworkWeakChange, offPageNotFound, offScreenRecordingStateChanged, offThemeChange, offUnhandledRejection, offUserCaptureScreen, offVoIPChatInterrupted, offVoIPChatMembersChanged, offVoIPChatSpeakersChanged, offVoIPChatStateChanged, offVoIPVideoMembersChanged, offWifiConnected, offWifiConnectedWithPartialInfo, offWindowResize, onAccelerometerChange, onAppHide, onAppShow, onAudioInterruptionBegin, onAudioInterruptionEnd, onBLECharacteristicValueChange, onBLEConnectionStateChange, onBLEMTUChange, onBLEPeripheralConnectionStateChanged, onBackgroundAudioPause, onBackgroundAudioPlay, onBackgroundAudioStop, onBackgroundFetchData, onBeaconServiceChange, onBeaconUpdate, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onCopyUrl, onDeviceMotionChange, onError, onGetWifiList, onGyroscopeChange, onHCEMessage, onKeyboardHeightChange, onLazyLoadError, onLocalServiceDiscoveryStop, onLocalServiceFound, onLocalServiceLost, onLocalServiceResolveFail, onLocationChange, onLocationChangeError, onMemoryWarning, onNeedPrivacyAuthorization, onNetworkStatusChange, onNetworkWeakChange, onPageNotFound, onScreenRecordingStateChanged, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onThemeChange, onUnhandledRejection, onUserCaptureScreen, onVoIPChatInterrupted, onVoIPChatMembersChanged, onVoIPChatSpeakersChanged, onVoIPChatStateChanged, onVoIPVideoMembersChanged, onWifiConnected, onWifiConnectedWithPartialInfo, onWindowResize, openAppAuthorizeSetting, openBluetoothAdapter, openBusinessView, openCard, openChannelsActivity, openChannelsEvent, openChannelsLive, openChannelsUserProfile, openCustomerServiceChat, openDocument, openEmbeddedMiniProgram, openLocation, openPrivacyContract, openQzonePublish, openSetting, openSystemBluetoothSetting, openVideoEditor, options, pageScrollTo, pauseBackgroundAudio, pauseVoice, plantClassify, playBackgroundAudio, playVoice, pluginLogin, preload, preloadAssets, preloadSkylineView, preloadSubPackage, preloadWebview, previewImage, previewMedia, pxTransform, readBLECharacteristicValue, removeSavedFile, removeStorage, removeStorageSync, removeTabBarBadge, reportAnalytics, reportEvent, reportMonitor, reportPerformance, request, requestDeviceVoIP, requestOrderPayment, requestPayment, requestPluginPayment, requestPolymerPayment, requestSubscribeDeviceMessage, requestSubscribeMessage, requirePlugin, requirePrivacyAuthorize, reserveChannelsLive, revokeBufferURL, saveFile, saveFileToDisk, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, seekBackgroundAudio, sendHCEMessage, sendSms, sendSocketMessage, setBLEMTU, setBackgroundColor, setBackgroundFetchToken, setBackgroundTextStyle, setClipboardData, setEnable1v1Chat, setEnableDebug, setInnerAudioOption, setKeepScreenOn, setNavigationBarColor, setNavigationBarTitle, setPageInfo, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopBarText, setVisualEffectOnCapture, setWifiList, setWindowSize, shareFileMessage, shareToWeRun, shareVideoMessage, showActionSheet, showLoading, showModal, showNavigationBarLoading, showRedPackage, showShareImageMenu, showShareMenu, showTabBar, showTabBarRedDot, showToast, startAccelerometer, startBeaconDiscovery, startBluetoothDevicesDiscovery, startCompass, startDeviceMotionListening, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, startGyroscope, startHCE, startLocalServiceDiscovery, startLocationUpdate, startLocationUpdateBackground, startPullDownRefresh, startRecord, startSoterAuthentication, startWifi, stopAccelerometer, stopBackgroundAudio, stopBeaconDiscovery, stopBluetoothDevicesDiscovery, stopCompass, stopDeviceMotionListening, stopFaceDetect, stopGyroscope, stopHCE, stopLocalServiceDiscovery, stopLocationUpdate, stopPullDownRefresh, stopRecord, stopVoice, stopWifi, subscribeVoIPVideoMembers, textReview, textToAudio, tradePay, updateShareMenu, updateVoIPChatMuteConfig, updateWeChatApp, uploadFile, vibrateLong, vibrateShort, writeBLECharacteristicValue };
|
|
5885
|
+
export { Behavior, Current, ENV_TYPE, Events, Link, NodesRef, addCard, addFileToFavorites, addInterceptor, addPhoneCalendar, addPhoneContact, addPhoneRepeatCalendar, addRecentColorSign, addVideoToFavorites, advancedGeneralIdentify, animalClassify, applyAddToMyApps, arrayBufferToBase64, authPrivateMessage, authorize, authorizeForMiniProgram, base64ToArrayBuffer, batchGetStorage, batchGetStorageSync, batchSetStorage, batchSetStorageSync, canIUseWebp, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, carClassify, checkIsAddedToMyMiniProgram, checkIsOpenAccessibility, checkIsPictureInPictureActive, checkIsSoterEnrolledInDevice, checkIsSupportFacialRecognition, checkIsSupportSoterAuthentication, checkSession, chooseAddress, chooseContact, chooseImage, chooseInvoice, chooseInvoiceTitle, chooseLicensePlate, chooseLocation, chooseMedia, chooseMessageFile, choosePoi, chooseVideo, cleanInterceptors, clearStorage, clearStorageSync, closeBLEConnection, closeBluetoothAdapter, closeSocket, cloud, compressImage, compressVideo, connectSocket, connectWifi, createAnimation, createAudioContext, createBLEConnection, createBLEPeripheralServer, createBufferURL, createCacheManager, createCameraContext, createCanvasContext, createInferenceSession, createInnerAudioContext, createIntersectionObserver, createInterstitialAd, createLivePlayerContext, createLivePusherContext, createMapContext, createMediaAudioPlayer, createMediaContainer, createMediaQueryObserver, createMediaRecorder, createOffscreenCanvas, createRewardedVideoAd, createSelectorQuery, createTCPSocket, createUDPSocket, createVKSession, createVideoContext, createVideoDecoder, createWebAudioContext, createWorker, cropImage, taro as default, disableAlertBeforeUnload, dishClassify, downloadFile, editImage, enableAlertBeforeUnload, env, eventCenter, exitMiniProgram, exitVoIPChat, faceDetect, faceVerifyForPay, getAccountInfoSync, getApp, getAppAuthorizeSetting, getAppBaseInfo, getAppInfo, getAvailableAudioSources, getBLEDeviceCharacteristics, getBLEDeviceRSSI, getBLEDeviceServices, getBLEMTU, getBackgroundAudioManager, getBackgroundAudioPlayerState, getBackgroundFetchData, getBackgroundFetchToken, getBatteryInfo, getBatteryInfoSync, getBeacons, getBluetoothAdapterState, getBluetoothDevices, getChannelsLiveInfo, getChannelsLiveNoticeInfo, getChannelsShareKey, getClipboardData, getConnectedBluetoothDevices, getConnectedWifi, getCurrentInstance, getDeviceInfo, getDeviceVoIPList, getEnterOptionsSync, getEnv, getExptInfoSync, getExtConfig, getExtConfigSync, getFileInfo, getFileSystemManager, getFuzzyLocation, getGroupEnterInfo, getGuildInfo, getHCEState, getImageInfo, getInferenceEnvInfo, getLaunchOptionsSync, getLocalIPAddress, getLocation, getLogManager, getMenuButtonBoundingClientRect, getNFCAdapter, getNetworkType, getOpenUserInfo, getPerformance, getPrivacySetting, getQQRunData, getRandomValues, getRealtimeLogManager, getRecorderManager, getRendererUserAgent, getSavedFileInfo, getSavedFileList, getScreenBrightness, getScreenRecordingState, getSelectedTextRange, getSetting, getShareInfo, getSkylineInfo, getSkylineInfoSync, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSwanId, getSystemInfo, getSystemInfoAsync, getSystemInfoSync, getSystemSetting, getUpdateManager, getUserCryptoManager, getUserInfo, getUserProfile, getVideoInfo, getWeRunData, getWifiList, getWindowInfo, hideHomeButton, hideKeyboard, hideLoading, hideNavigationBarLoading, hideShareMenu, hideTabBar, hideTabBarRedDot, hideToast, imageAudit, initFaceDetect, initPxTransform, initTabBarApis, interceptorify, interceptors, isAddedToMyApps, isBluetoothDevicePaired, isVKSupport, join1v1Chat, joinVoIPChat, loadFontFace, login, logoClassify, makeBluetoothPair, makePhoneCall, navigateBackMiniProgram, navigateBackSmartProgram, navigateToMiniProgram, navigateToSmartGameProgram, navigateToSmartProgram, nextTick, notifyBLECharacteristicValueChange, objectDetectIdentify, ocrBankCard, ocrDrivingLicense, ocrIdCard, ocrVehicleLicense, offAccelerometerChange, offAppHide, offAppShow, offAudioInterruptionBegin, offAudioInterruptionEnd, offBLECharacteristicValueChange, offBLEConnectionStateChange, offBLEMTUChange, offBLEPeripheralConnectionStateChanged, offBeaconServiceChange, offBeaconUpdate, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offCopyUrl, offDeviceMotionChange, offError, offGetWifiList, offGyroscopeChange, offHCEMessage, offKeyboardHeightChange, offLazyLoadError, offLocalServiceDiscoveryStop, offLocalServiceFound, offLocalServiceLost, offLocalServiceResolveFail, offLocationChange, offLocationChangeError, offMemoryWarning, offNetworkStatusChange, offNetworkWeakChange, offPageNotFound, offScreenRecordingStateChanged, offThemeChange, offUnhandledRejection, offUserCaptureScreen, offVoIPChatInterrupted, offVoIPChatMembersChanged, offVoIPChatSpeakersChanged, offVoIPChatStateChanged, offVoIPVideoMembersChanged, offWifiConnected, offWifiConnectedWithPartialInfo, offWindowResize, onAccelerometerChange, onAppHide, onAppShow, onAudioInterruptionBegin, onAudioInterruptionEnd, onBLECharacteristicValueChange, onBLEConnectionStateChange, onBLEMTUChange, onBLEPeripheralConnectionStateChanged, onBackgroundAudioPause, onBackgroundAudioPlay, onBackgroundAudioStop, onBackgroundFetchData, onBeaconServiceChange, onBeaconUpdate, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onCopyUrl, onDeviceMotionChange, onError, onGetWifiList, onGyroscopeChange, onHCEMessage, onKeyboardHeightChange, onLazyLoadError, onLocalServiceDiscoveryStop, onLocalServiceFound, onLocalServiceLost, onLocalServiceResolveFail, onLocationChange, onLocationChangeError, onMemoryWarning, onNeedPrivacyAuthorization, onNetworkStatusChange, onNetworkWeakChange, onPageNotFound, onScreenRecordingStateChanged, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onThemeChange, onUnhandledRejection, onUserCaptureScreen, onVoIPChatInterrupted, onVoIPChatMembersChanged, onVoIPChatSpeakersChanged, onVoIPChatStateChanged, onVoIPVideoMembersChanged, onWifiConnected, onWifiConnectedWithPartialInfo, onWindowResize, openAppAuthorizeSetting, openBluetoothAdapter, openBusinessView, openCard, openChannelsActivity, openChannelsEvent, openChannelsLive, openChannelsUserProfile, openCustomerServiceChat, openDocument, openEmbeddedMiniProgram, openLocation, openPrivacyContract, openQzonePublish, openSetting, openSystemBluetoothSetting, openVideoEditor, options, pageScrollTo, pauseBackgroundAudio, pauseVoice, plantClassify, playBackgroundAudio, playVoice, pluginLogin, preload, preloadAssets, preloadSkylineView, preloadSubPackage, preloadWebview, previewImage, previewMedia, pxTransform, readBLECharacteristicValue, removeSavedFile, removeStorage, removeStorageSync, removeTabBarBadge, reportAnalytics, reportEvent, reportMonitor, reportPerformance, request, requestDeviceVoIP, requestOrderPayment, requestPayment, requestPluginPayment, requestPolymerPayment, requestSubscribeDeviceMessage, requestSubscribeMessage, requirePlugin, requirePrivacyAuthorize, reserveChannelsLive, revokeBufferURL, saveFile, saveFileToDisk, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, seekBackgroundAudio, sendHCEMessage, sendSms, sendSocketMessage, setBLEMTU, setBackgroundColor, setBackgroundFetchToken, setBackgroundTextStyle, setClipboardData, setCustomDress, setEnable1v1Chat, setEnableDebug, setInnerAudioOption, setKeepScreenOn, setNavigationBarColor, setNavigationBarTitle, setOfficialDress, setPageInfo, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopBarText, setVisualEffectOnCapture, setWifiList, setWindowSize, shareFileMessage, shareToWeRun, shareVideoMessage, showActionSheet, showLoading, showModal, showNavigationBarLoading, showRedPackage, showShareImageMenu, showShareMenu, showTabBar, showTabBarRedDot, showToast, startAccelerometer, startBeaconDiscovery, startBluetoothDevicesDiscovery, startCompass, startDeviceMotionListening, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, startGyroscope, startHCE, startLocalServiceDiscovery, startLocationUpdate, startLocationUpdateBackground, startPullDownRefresh, startRecord, startSoterAuthentication, startWifi, stopAccelerometer, stopBackgroundAudio, stopBeaconDiscovery, stopBluetoothDevicesDiscovery, stopCompass, stopDeviceMotionListening, stopFaceDetect, stopGyroscope, stopHCE, stopLocalServiceDiscovery, stopLocationUpdate, stopPullDownRefresh, stopRecord, stopVoice, stopWifi, subscribeVoIPVideoMembers, textReview, textToAudio, tradePay, updateQQApp, updateShareMenu, updateVoIPChatMuteConfig, updateWeChatApp, uploadFile, vibrateLong, vibrateShort, writeBLECharacteristicValue };
|
|
6224
5886
|
//# sourceMappingURL=index.esm.js.map
|