@tarojs/taro-h5 3.6.5-alpha.2 → 3.6.5
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 +1 -1
- package/dist/api/canvas/CanvasContext.js +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/location/chooseLocation.js +1 -1
- package/dist/api/media/image/previewImage.js +1 -1
- package/dist/api/ui/fonts.js +1 -1
- package/dist/api/ui/interaction/index.js +1 -1
- package/dist/index.cjs.js +97 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +97 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/node_modules/.pnpm/{registry.npmjs.org_tslib@1.14.1 → registry.npmjs.org_tslib@2.5.0}/node_modules/tslib/tslib.es6.js +98 -23
- package/dist/node_modules/.pnpm/{registry.npmjs.org_tslib@1.14.1 → registry.npmjs.org_tslib@2.5.0}/node_modules/tslib/tslib.es6.js.map +1 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -355,7 +355,7 @@ const getLogManager = temporarilyNotSupport('getLogManager');
|
|
|
355
355
|
const reportPerformance = temporarilyNotSupport('reportPerformance');
|
|
356
356
|
const getPerformance = temporarilyNotSupport('getPerformance');
|
|
357
357
|
|
|
358
|
-
|
|
358
|
+
/******************************************************************************
|
|
359
359
|
Copyright (c) Microsoft Corporation.
|
|
360
360
|
|
|
361
361
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -374,11 +374,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
374
374
|
var extendStatics = function(d, b) {
|
|
375
375
|
extendStatics = Object.setPrototypeOf ||
|
|
376
376
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
377
|
-
function (d, b) { for (var p in b) if (
|
|
377
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
378
378
|
return extendStatics(d, b);
|
|
379
379
|
};
|
|
380
380
|
|
|
381
381
|
function __extends(d, b) {
|
|
382
|
+
if (typeof b !== "function" && b !== null)
|
|
383
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
382
384
|
extendStatics(d, b);
|
|
383
385
|
function __() { this.constructor = d; }
|
|
384
386
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -418,6 +420,51 @@ function __param(paramIndex, decorator) {
|
|
|
418
420
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
419
421
|
}
|
|
420
422
|
|
|
423
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
424
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
425
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
426
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
427
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
428
|
+
var _, done = false;
|
|
429
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
430
|
+
var context = {};
|
|
431
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
432
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
433
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
434
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
435
|
+
if (kind === "accessor") {
|
|
436
|
+
if (result === void 0) continue;
|
|
437
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
438
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
439
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
440
|
+
if (_ = accept(result.init)) initializers.push(_);
|
|
441
|
+
}
|
|
442
|
+
else if (_ = accept(result)) {
|
|
443
|
+
if (kind === "field") initializers.push(_);
|
|
444
|
+
else descriptor[key] = _;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
448
|
+
done = true;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
452
|
+
var useValue = arguments.length > 2;
|
|
453
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
454
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
455
|
+
}
|
|
456
|
+
return useValue ? value : void 0;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
function __propKey(x) {
|
|
460
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
function __setFunctionName(f, name, prefix) {
|
|
464
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
465
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
466
|
+
};
|
|
467
|
+
|
|
421
468
|
function __metadata(metadataKey, metadataValue) {
|
|
422
469
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
423
470
|
}
|
|
@@ -438,7 +485,7 @@ function __generator(thisArg, body) {
|
|
|
438
485
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
439
486
|
function step(op) {
|
|
440
487
|
if (f) throw new TypeError("Generator is already executing.");
|
|
441
|
-
while (_) try {
|
|
488
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
442
489
|
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;
|
|
443
490
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
444
491
|
switch (op[0]) {
|
|
@@ -460,13 +507,20 @@ function __generator(thisArg, body) {
|
|
|
460
507
|
}
|
|
461
508
|
}
|
|
462
509
|
|
|
463
|
-
|
|
510
|
+
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
511
|
+
if (k2 === undefined) k2 = k;
|
|
512
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
513
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
514
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
515
|
+
}
|
|
516
|
+
Object.defineProperty(o, k2, desc);
|
|
517
|
+
}) : (function(o, m, k, k2) {
|
|
464
518
|
if (k2 === undefined) k2 = k;
|
|
465
519
|
o[k2] = m[k];
|
|
466
|
-
}
|
|
520
|
+
});
|
|
467
521
|
|
|
468
|
-
function __exportStar(m,
|
|
469
|
-
for (var p in m) if (p !== "default" && !
|
|
522
|
+
function __exportStar(m, o) {
|
|
523
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
470
524
|
}
|
|
471
525
|
|
|
472
526
|
function __values(o) {
|
|
@@ -498,19 +552,31 @@ function __read(o, n) {
|
|
|
498
552
|
return ar;
|
|
499
553
|
}
|
|
500
554
|
|
|
555
|
+
/** @deprecated */
|
|
501
556
|
function __spread() {
|
|
502
557
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
503
558
|
ar = ar.concat(__read(arguments[i]));
|
|
504
559
|
return ar;
|
|
505
560
|
}
|
|
506
561
|
|
|
562
|
+
/** @deprecated */
|
|
507
563
|
function __spreadArrays() {
|
|
508
564
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
509
565
|
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
510
566
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
511
567
|
r[k] = a[j];
|
|
512
568
|
return r;
|
|
513
|
-
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
function __spreadArray(to, from, pack) {
|
|
572
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
573
|
+
if (ar || !(i in from)) {
|
|
574
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
575
|
+
ar[i] = from[i];
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
579
|
+
}
|
|
514
580
|
|
|
515
581
|
function __await(v) {
|
|
516
582
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -531,7 +597,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
|
531
597
|
function __asyncDelegator(o) {
|
|
532
598
|
var i, p;
|
|
533
599
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
534
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
600
|
+
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; }
|
|
535
601
|
}
|
|
536
602
|
|
|
537
603
|
function __asyncValues(o) {
|
|
@@ -547,11 +613,17 @@ function __makeTemplateObject(cooked, raw) {
|
|
|
547
613
|
return cooked;
|
|
548
614
|
};
|
|
549
615
|
|
|
616
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
617
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
618
|
+
}) : function(o, v) {
|
|
619
|
+
o["default"] = v;
|
|
620
|
+
};
|
|
621
|
+
|
|
550
622
|
function __importStar(mod) {
|
|
551
623
|
if (mod && mod.__esModule) return mod;
|
|
552
624
|
var result = {};
|
|
553
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
554
|
-
result
|
|
625
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
626
|
+
__setModuleDefault(result, mod);
|
|
555
627
|
return result;
|
|
556
628
|
}
|
|
557
629
|
|
|
@@ -559,19 +631,22 @@ function __importDefault(mod) {
|
|
|
559
631
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
560
632
|
}
|
|
561
633
|
|
|
562
|
-
function __classPrivateFieldGet(receiver,
|
|
563
|
-
if (!
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
return privateMap.get(receiver);
|
|
634
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
635
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
636
|
+
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");
|
|
637
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
567
638
|
}
|
|
568
639
|
|
|
569
|
-
function __classPrivateFieldSet(receiver,
|
|
570
|
-
if (
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
640
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
641
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
642
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
643
|
+
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");
|
|
644
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
648
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
649
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
575
650
|
}
|
|
576
651
|
|
|
577
652
|
/** 跳转系统蓝牙设置页 */
|