@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.
@@ -1,4 +1,4 @@
1
- import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
  import { getMobileDetect } from '@tarojs/router/dist/utils/navigate';
3
3
  import { temporarilyNotSupport } from '../../utils/index.js';
4
4
  import { MethodHandler } from '../../utils/handler.js';
@@ -1,4 +1,4 @@
1
- import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
 
3
3
  const TextBaseLineMap = {
4
4
  top: 'top',
@@ -1,4 +1,4 @@
1
- import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
  import { permanentlyNotSupport } from '../../utils/index.js';
3
3
  import { MethodHandler } from '../../utils/handler.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
  import { isFunction } from '@tarojs/shared';
3
3
  import { MethodHandler } from '../../utils/handler.js';
4
4
  import { setStorage, setStorageSync, getStorageSync } from '../storage/index.js';
@@ -1,4 +1,4 @@
1
- import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
  import { temporarilyNotSupport } from '../../utils/index.js';
3
3
  import { MethodHandler, CallbackManager } from '../../utils/handler.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __rest } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __rest } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
  import './style.scss.js';
3
3
  import { stringify } from 'query-string';
4
4
  import { MethodHandler } from '../../utils/handler.js';
@@ -1,4 +1,4 @@
1
- import { __awaiter } from '../../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __awaiter } from '../../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
  import { defineCustomElementTaroSwiperCore, defineCustomElementTaroSwiperItemCore } from '@tarojs/components/dist/components';
3
3
  import { isFunction } from '@tarojs/shared';
4
4
  import { shouldBeObject } from '../../../utils/index.js';
@@ -1,4 +1,4 @@
1
- import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __awaiter } from '../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
  import { MethodHandler } from '../../utils/handler.js';
3
3
 
4
4
  // 字体
@@ -1,4 +1,4 @@
1
- import { __awaiter } from '../../../node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js';
1
+ import { __awaiter } from '../../../node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js';
2
2
  import Taro from '@tarojs/api';
3
3
  import { Current } from '@tarojs/runtime';
4
4
  import { getParameterError, temporarilyNotSupport } from '../../../utils/index.js';
package/dist/index.cjs.js CHANGED
@@ -381,7 +381,7 @@ const getLogManager = temporarilyNotSupport('getLogManager');
381
381
  const reportPerformance = temporarilyNotSupport('reportPerformance');
382
382
  const getPerformance = temporarilyNotSupport('getPerformance');
383
383
 
384
- /*! *****************************************************************************
384
+ /******************************************************************************
385
385
  Copyright (c) Microsoft Corporation.
386
386
 
387
387
  Permission to use, copy, modify, and/or distribute this software for any
@@ -400,11 +400,13 @@ PERFORMANCE OF THIS SOFTWARE.
400
400
  var extendStatics = function(d, b) {
401
401
  extendStatics = Object.setPrototypeOf ||
402
402
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
403
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
403
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
404
404
  return extendStatics(d, b);
405
405
  };
406
406
 
407
407
  function __extends(d, b) {
408
+ if (typeof b !== "function" && b !== null)
409
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
408
410
  extendStatics(d, b);
409
411
  function __() { this.constructor = d; }
410
412
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -444,6 +446,51 @@ function __param(paramIndex, decorator) {
444
446
  return function (target, key) { decorator(target, key, paramIndex); }
445
447
  }
446
448
 
449
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
450
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
451
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
452
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
453
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
454
+ var _, done = false;
455
+ for (var i = decorators.length - 1; i >= 0; i--) {
456
+ var context = {};
457
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
458
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
459
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
460
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
461
+ if (kind === "accessor") {
462
+ if (result === void 0) continue;
463
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
464
+ if (_ = accept(result.get)) descriptor.get = _;
465
+ if (_ = accept(result.set)) descriptor.set = _;
466
+ if (_ = accept(result.init)) initializers.push(_);
467
+ }
468
+ else if (_ = accept(result)) {
469
+ if (kind === "field") initializers.push(_);
470
+ else descriptor[key] = _;
471
+ }
472
+ }
473
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
474
+ done = true;
475
+ };
476
+
477
+ function __runInitializers(thisArg, initializers, value) {
478
+ var useValue = arguments.length > 2;
479
+ for (var i = 0; i < initializers.length; i++) {
480
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
481
+ }
482
+ return useValue ? value : void 0;
483
+ };
484
+
485
+ function __propKey(x) {
486
+ return typeof x === "symbol" ? x : "".concat(x);
487
+ };
488
+
489
+ function __setFunctionName(f, name, prefix) {
490
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
491
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
492
+ };
493
+
447
494
  function __metadata(metadataKey, metadataValue) {
448
495
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
449
496
  }
@@ -464,7 +511,7 @@ function __generator(thisArg, body) {
464
511
  function verb(n) { return function (v) { return step([n, v]); }; }
465
512
  function step(op) {
466
513
  if (f) throw new TypeError("Generator is already executing.");
467
- while (_) try {
514
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
468
515
  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;
469
516
  if (y = 0, t) op = [op[0] & 2, t.value];
470
517
  switch (op[0]) {
@@ -486,13 +533,20 @@ function __generator(thisArg, body) {
486
533
  }
487
534
  }
488
535
 
489
- function __createBinding(o, m, k, k2) {
536
+ var __createBinding = Object.create ? (function(o, m, k, k2) {
537
+ if (k2 === undefined) k2 = k;
538
+ var desc = Object.getOwnPropertyDescriptor(m, k);
539
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
540
+ desc = { enumerable: true, get: function() { return m[k]; } };
541
+ }
542
+ Object.defineProperty(o, k2, desc);
543
+ }) : (function(o, m, k, k2) {
490
544
  if (k2 === undefined) k2 = k;
491
545
  o[k2] = m[k];
492
- }
546
+ });
493
547
 
494
- function __exportStar(m, exports) {
495
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
548
+ function __exportStar(m, o) {
549
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
496
550
  }
497
551
 
498
552
  function __values(o) {
@@ -524,19 +578,31 @@ function __read(o, n) {
524
578
  return ar;
525
579
  }
526
580
 
581
+ /** @deprecated */
527
582
  function __spread() {
528
583
  for (var ar = [], i = 0; i < arguments.length; i++)
529
584
  ar = ar.concat(__read(arguments[i]));
530
585
  return ar;
531
586
  }
532
587
 
588
+ /** @deprecated */
533
589
  function __spreadArrays() {
534
590
  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
535
591
  for (var r = Array(s), k = 0, i = 0; i < il; i++)
536
592
  for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
537
593
  r[k] = a[j];
538
594
  return r;
539
- };
595
+ }
596
+
597
+ function __spreadArray(to, from, pack) {
598
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
599
+ if (ar || !(i in from)) {
600
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
601
+ ar[i] = from[i];
602
+ }
603
+ }
604
+ return to.concat(ar || Array.prototype.slice.call(from));
605
+ }
540
606
 
541
607
  function __await(v) {
542
608
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -557,7 +623,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
557
623
  function __asyncDelegator(o) {
558
624
  var i, p;
559
625
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
560
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
626
+ 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; }
561
627
  }
562
628
 
563
629
  function __asyncValues(o) {
@@ -573,11 +639,17 @@ function __makeTemplateObject(cooked, raw) {
573
639
  return cooked;
574
640
  };
575
641
 
642
+ var __setModuleDefault = Object.create ? (function(o, v) {
643
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
644
+ }) : function(o, v) {
645
+ o["default"] = v;
646
+ };
647
+
576
648
  function __importStar(mod) {
577
649
  if (mod && mod.__esModule) return mod;
578
650
  var result = {};
579
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
580
- result.default = mod;
651
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
652
+ __setModuleDefault(result, mod);
581
653
  return result;
582
654
  }
583
655
 
@@ -585,19 +657,22 @@ function __importDefault(mod) {
585
657
  return (mod && mod.__esModule) ? mod : { default: mod };
586
658
  }
587
659
 
588
- function __classPrivateFieldGet(receiver, privateMap) {
589
- if (!privateMap.has(receiver)) {
590
- throw new TypeError("attempted to get private field on non-instance");
591
- }
592
- return privateMap.get(receiver);
660
+ function __classPrivateFieldGet(receiver, state, kind, f) {
661
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
662
+ 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");
663
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
593
664
  }
594
665
 
595
- function __classPrivateFieldSet(receiver, privateMap, value) {
596
- if (!privateMap.has(receiver)) {
597
- throw new TypeError("attempted to set private field on non-instance");
598
- }
599
- privateMap.set(receiver, value);
600
- return value;
666
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
667
+ if (kind === "m") throw new TypeError("Private method is not writable");
668
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
669
+ 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");
670
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
671
+ }
672
+
673
+ function __classPrivateFieldIn(state, receiver) {
674
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
675
+ return typeof state === "function" ? receiver === state : state.has(receiver);
601
676
  }
602
677
 
603
678
  /** 跳转系统蓝牙设置页 */