cypress 10.3.1 → 10.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/exec/open.js +6 -0
- package/mount-utils/CHANGELOG.md +0 -1
- package/mount-utils/README.md +7 -0
- package/package.json +10 -5
- package/react/CHANGELOG.md +0 -19
- package/react/README.md +28 -323
- package/react/dist/createMount.d.ts +30 -0
- package/react/dist/cypress-react.cjs.js +59 -78
- package/react/dist/cypress-react.esm-bundler.js +51 -74
- package/react/dist/getDisplayName.d.ts +1 -1
- package/react/dist/index.d.ts +2 -0
- package/react/dist/mount.d.ts +5 -141
- package/react/dist/types.d.ts +50 -0
- package/react/package.json +1 -5
- package/react18/dist/cypress-react.cjs.js +422 -0
- package/react18/dist/cypress-react.esm-bundler.js +394 -0
- package/react18/dist/index.d.ts +5 -0
- package/react18/package.json +59 -0
- package/types/cypress.d.ts +9 -0
- package/types/index.d.ts +1 -1
- package/types/{net-stubbing.ts → net-stubbing.d.ts} +0 -0
- package/vue/CHANGELOG.md +2 -17
- package/vue/README.md +17 -608
- package/vue/dist/@vue/test-utils/baseWrapper.d.ts +3 -1
- package/vue/dist/@vue/test-utils/config.d.ts +4 -2
- package/vue/dist/@vue/test-utils/emit.d.ts +1 -0
- package/vue/dist/@vue/test-utils/index.d.ts +2 -1
- package/vue/dist/@vue/test-utils/interfaces/wrapperLike.d.ts +2 -2
- package/vue/dist/@vue/test-utils/mount.d.ts +2 -0
- package/vue/dist/@vue/test-utils/stubs.d.ts +2 -6
- package/vue/dist/@vue/test-utils/types.d.ts +1 -1
- package/vue/dist/@vue/test-utils/vueWrapper.d.ts +2 -1
- package/vue/dist/cypress-vue.cjs.js +5379 -5090
- package/vue/dist/cypress-vue.esm-bundler.js +5380 -5091
- package/vue/dist/index.d.ts +1 -0
- package/vue/package.json +2 -2
- package/vue2/README.md +11 -627
- package/vue2/dist/cypress-vue2.browser.js +251 -260
- package/vue2/dist/cypress-vue2.cjs.js +250 -259
- package/vue2/dist/cypress-vue2.esm-bundler.js +248 -257
- package/react/dist/cypress-react.browser.js +0 -512
@@ -33,14 +33,14 @@ var __assign = function() {
|
|
33
33
|
return __assign.apply(this, arguments);
|
34
34
|
};
|
35
35
|
|
36
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
36
|
+
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
37
37
|
|
38
|
-
function createCommonjsModule(fn) {
|
38
|
+
function createCommonjsModule$1(fn) {
|
39
39
|
var module = { exports: {} };
|
40
40
|
return fn(module, module.exports), module.exports;
|
41
41
|
}
|
42
42
|
|
43
|
-
var splitRE = /\r?\n/g;
|
43
|
+
var splitRE$1 = /\r?\n/g;
|
44
44
|
var emptyRE = /^\s*$/;
|
45
45
|
var needFixRE = /^(\r?\n)*[\t\s]/;
|
46
46
|
|
@@ -48,7 +48,7 @@ var deIndent = function deindent (str) {
|
|
48
48
|
if (!needFixRE.test(str)) {
|
49
49
|
return str
|
50
50
|
}
|
51
|
-
var lines = str.split(splitRE);
|
51
|
+
var lines = str.split(splitRE$1);
|
52
52
|
var min = Infinity;
|
53
53
|
var type, cur, c;
|
54
54
|
for (var i = 0; i < lines.length; i++) {
|
@@ -88,19 +88,19 @@ function count (line, type) {
|
|
88
88
|
|
89
89
|
/*! https://mths.be/he v1.2.0 by @mathias | MIT license */
|
90
90
|
|
91
|
-
var he = createCommonjsModule(function (module, exports) {
|
91
|
+
var he$1 = createCommonjsModule$1(function (module, exports) {
|
92
92
|
(function(root) {
|
93
93
|
|
94
94
|
// Detect free variables `exports`.
|
95
|
-
var freeExports =
|
95
|
+
var freeExports = exports;
|
96
96
|
|
97
97
|
// Detect free variable `module`.
|
98
|
-
var freeModule =
|
98
|
+
var freeModule = module &&
|
99
99
|
module.exports == freeExports && module;
|
100
100
|
|
101
101
|
// Detect free variable `global`, from Node.js or Browserified code,
|
102
102
|
// and use it as `root`.
|
103
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal;
|
103
|
+
var freeGlobal = typeof commonjsGlobal$1 == 'object' && commonjsGlobal$1;
|
104
104
|
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
105
105
|
root = freeGlobal;
|
106
106
|
}
|
@@ -424,13 +424,13 @@ var he = createCommonjsModule(function (module, exports) {
|
|
424
424
|
root.he = he;
|
425
425
|
}
|
426
426
|
|
427
|
-
}(commonjsGlobal));
|
427
|
+
}(commonjsGlobal$1));
|
428
428
|
});
|
429
429
|
|
430
430
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
431
431
|
|
432
432
|
var deindent = _interopDefault(deIndent);
|
433
|
-
var he
|
433
|
+
var he = _interopDefault(he$1);
|
434
434
|
|
435
435
|
/* */
|
436
436
|
|
@@ -460,7 +460,7 @@ function isPrimitive (value) {
|
|
460
460
|
* Objects from primitive values when we know the value
|
461
461
|
* is a JSON-compliant type.
|
462
462
|
*/
|
463
|
-
function isObject (obj) {
|
463
|
+
function isObject$1 (obj) {
|
464
464
|
return obj !== null && typeof obj === 'object'
|
465
465
|
}
|
466
466
|
|
@@ -477,7 +477,7 @@ function toRawType (value) {
|
|
477
477
|
* Strict object type check. Only returns true
|
478
478
|
* for plain JavaScript objects.
|
479
479
|
*/
|
480
|
-
function isPlainObject (obj) {
|
480
|
+
function isPlainObject$1 (obj) {
|
481
481
|
return _toString.call(obj) === '[object Object]'
|
482
482
|
}
|
483
483
|
|
@@ -493,7 +493,7 @@ function isValidArrayIndex (val) {
|
|
493
493
|
* Make a map and return a function for checking if a key
|
494
494
|
* is in that map.
|
495
495
|
*/
|
496
|
-
function makeMap (
|
496
|
+
function makeMap$1 (
|
497
497
|
str,
|
498
498
|
expectsLowerCase
|
499
499
|
) {
|
@@ -510,12 +510,12 @@ function makeMap (
|
|
510
510
|
/**
|
511
511
|
* Check if a tag is a built-in tag.
|
512
512
|
*/
|
513
|
-
var isBuiltInTag = makeMap('slot,component', true);
|
513
|
+
var isBuiltInTag = makeMap$1('slot,component', true);
|
514
514
|
|
515
515
|
/**
|
516
516
|
* Check if an attribute is a reserved attribute.
|
517
517
|
*/
|
518
|
-
makeMap('key,ref,slot,slot-scope,is');
|
518
|
+
makeMap$1('key,ref,slot,slot-scope,is');
|
519
519
|
|
520
520
|
/**
|
521
521
|
* Remove an item from an array.
|
@@ -532,15 +532,15 @@ function remove (arr, item) {
|
|
532
532
|
/**
|
533
533
|
* Check whether an object has the property.
|
534
534
|
*/
|
535
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
536
|
-
function hasOwn (obj, key) {
|
537
|
-
return hasOwnProperty.call(obj, key)
|
535
|
+
var hasOwnProperty$b = Object.prototype.hasOwnProperty;
|
536
|
+
function hasOwn$1 (obj, key) {
|
537
|
+
return hasOwnProperty$b.call(obj, key)
|
538
538
|
}
|
539
539
|
|
540
540
|
/**
|
541
541
|
* Create a cached version of a pure function.
|
542
542
|
*/
|
543
|
-
function cached (fn) {
|
543
|
+
function cached$1 (fn) {
|
544
544
|
var cache = Object.create(null);
|
545
545
|
return (function cachedFn (str) {
|
546
546
|
var hit = cache[str];
|
@@ -551,23 +551,23 @@ function cached (fn) {
|
|
551
551
|
/**
|
552
552
|
* Camelize a hyphen-delimited string.
|
553
553
|
*/
|
554
|
-
var camelizeRE = /-(\w)/g;
|
555
|
-
var camelize = cached(function (str) {
|
556
|
-
return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
|
554
|
+
var camelizeRE$1 = /-(\w)/g;
|
555
|
+
var camelize$1 = cached$1(function (str) {
|
556
|
+
return str.replace(camelizeRE$1, function (_, c) { return c ? c.toUpperCase() : ''; })
|
557
557
|
});
|
558
558
|
|
559
559
|
/**
|
560
560
|
* Hyphenate a camelCase string.
|
561
561
|
*/
|
562
|
-
var hyphenateRE = /\B([A-Z])/g;
|
563
|
-
var hyphenate = cached(function (str) {
|
564
|
-
return str.replace(hyphenateRE, '-$1').toLowerCase()
|
562
|
+
var hyphenateRE$1 = /\B([A-Z])/g;
|
563
|
+
var hyphenate$1 = cached$1(function (str) {
|
564
|
+
return str.replace(hyphenateRE$1, '-$1').toLowerCase()
|
565
565
|
});
|
566
566
|
|
567
567
|
/**
|
568
568
|
* Mix properties into target object.
|
569
569
|
*/
|
570
|
-
function extend (to, _from) {
|
570
|
+
function extend$1 (to, _from) {
|
571
571
|
for (var key in _from) {
|
572
572
|
to[key] = _from[key];
|
573
573
|
}
|
@@ -606,20 +606,20 @@ function genStaticKeys (modules) {
|
|
606
606
|
|
607
607
|
/* */
|
608
608
|
|
609
|
-
var isUnaryTag = makeMap(
|
609
|
+
var isUnaryTag = makeMap$1(
|
610
610
|
'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
|
611
611
|
'link,meta,param,source,track,wbr'
|
612
612
|
);
|
613
613
|
|
614
614
|
// Elements that you can, intentionally, leave open
|
615
615
|
// (and which close themselves)
|
616
|
-
var canBeLeftOpenTag = makeMap(
|
616
|
+
var canBeLeftOpenTag = makeMap$1(
|
617
617
|
'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
|
618
618
|
);
|
619
619
|
|
620
620
|
// HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
|
621
621
|
// Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content
|
622
|
-
var isNonPhrasingTag = makeMap(
|
622
|
+
var isNonPhrasingTag = makeMap$1(
|
623
623
|
'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +
|
624
624
|
'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +
|
625
625
|
'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +
|
@@ -666,7 +666,7 @@ var comment = /^<!\--/;
|
|
666
666
|
var conditionalComment = /^<!\[/;
|
667
667
|
|
668
668
|
// Special Elements (can contain anything)
|
669
|
-
var isPlainTextElement = makeMap('script,style,textarea', true);
|
669
|
+
var isPlainTextElement = makeMap$1('script,style,textarea', true);
|
670
670
|
var reCache = {};
|
671
671
|
|
672
672
|
var decodingMap = {
|
@@ -682,7 +682,7 @@ var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
|
|
682
682
|
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
|
683
683
|
|
684
684
|
// #5992
|
685
|
-
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
|
685
|
+
var isIgnoreNewlineTag = makeMap$1('pre,textarea', true);
|
686
686
|
var shouldIgnoreFirstNewline = function (tag, html) { return tag && isIgnoreNewlineTag(tag) && html[0] === '\n'; };
|
687
687
|
|
688
688
|
function decodeAttr (value, shouldDecodeNewlines) {
|
@@ -946,9 +946,9 @@ function parseHTML (html, options) {
|
|
946
946
|
|
947
947
|
/* */
|
948
948
|
|
949
|
-
var splitRE
|
949
|
+
var splitRE = /\r?\n/g;
|
950
950
|
var replaceRE = /./g;
|
951
|
-
var isSpecialTag = makeMap('script,style,template', true);
|
951
|
+
var isSpecialTag = makeMap$1('script,style,template', true);
|
952
952
|
|
953
953
|
/**
|
954
954
|
* Parse a single-file component (*.vue) file into an SFC Descriptor Object.
|
@@ -1062,7 +1062,7 @@ function parseComponent (
|
|
1062
1062
|
if (pad === 'space') {
|
1063
1063
|
return content.slice(0, block.start).replace(replaceRE, ' ')
|
1064
1064
|
} else {
|
1065
|
-
var offset = content.slice(0, block.start).split(splitRE
|
1065
|
+
var offset = content.slice(0, block.start).split(splitRE).length;
|
1066
1066
|
var padChar = block.type === 'script' && !block.lang
|
1067
1067
|
? '//\n'
|
1068
1068
|
: '\n';
|
@@ -1089,15 +1089,15 @@ var hasProto = '__proto__' in {};
|
|
1089
1089
|
var inBrowser = typeof window !== 'undefined';
|
1090
1090
|
var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
|
1091
1091
|
var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
|
1092
|
-
var UA = inBrowser && window.navigator.userAgent.toLowerCase();
|
1093
|
-
var isIE = UA && /msie|trident/.test(UA);
|
1094
|
-
UA && UA.indexOf('msie 9.0') > 0;
|
1095
|
-
var isEdge = UA && UA.indexOf('edge/') > 0;
|
1096
|
-
(UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
|
1097
|
-
(UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
|
1098
|
-
UA && /chrome\/\d+/.test(UA) && !isEdge;
|
1099
|
-
UA && /phantomjs/.test(UA);
|
1100
|
-
UA && UA.match(/firefox\/(\d+)/);
|
1092
|
+
var UA$1 = inBrowser && window.navigator.userAgent.toLowerCase();
|
1093
|
+
var isIE = UA$1 && /msie|trident/.test(UA$1);
|
1094
|
+
UA$1 && UA$1.indexOf('msie 9.0') > 0;
|
1095
|
+
var isEdge$1 = UA$1 && UA$1.indexOf('edge/') > 0;
|
1096
|
+
(UA$1 && UA$1.indexOf('android') > 0) || (weexPlatform === 'android');
|
1097
|
+
(UA$1 && /iphone|ipad|ipod|ios/.test(UA$1)) || (weexPlatform === 'ios');
|
1098
|
+
UA$1 && /chrome\/\d+/.test(UA$1) && !isEdge$1;
|
1099
|
+
UA$1 && /phantomjs/.test(UA$1);
|
1100
|
+
UA$1 && UA$1.match(/firefox\/(\d+)/);
|
1101
1101
|
|
1102
1102
|
// Firefox has a "watch" function on Object.prototype...
|
1103
1103
|
var nativeWatch = ({}).watch;
|
@@ -1118,10 +1118,10 @@ var _isServer;
|
|
1118
1118
|
var isServerRendering = function () {
|
1119
1119
|
if (_isServer === undefined) {
|
1120
1120
|
/* istanbul ignore if */
|
1121
|
-
if (!inBrowser && !inWeex && typeof commonjsGlobal !== 'undefined') {
|
1121
|
+
if (!inBrowser && !inWeex && typeof commonjsGlobal$1 !== 'undefined') {
|
1122
1122
|
// detect presence of vue-server-renderer and avoid
|
1123
1123
|
// Webpack shimming the process
|
1124
|
-
_isServer = commonjsGlobal['process'] && commonjsGlobal['process'].env.VUE_ENV === 'server';
|
1124
|
+
_isServer = commonjsGlobal$1['process'] && commonjsGlobal$1['process'].env.VUE_ENV === 'server';
|
1125
1125
|
} else {
|
1126
1126
|
_isServer = false;
|
1127
1127
|
}
|
@@ -1165,7 +1165,7 @@ var LIFECYCLE_HOOKS = [
|
|
1165
1165
|
|
1166
1166
|
|
1167
1167
|
|
1168
|
-
var config = ({
|
1168
|
+
var config$1 = ({
|
1169
1169
|
/**
|
1170
1170
|
* Option merge strategies (used in core/util/options)
|
1171
1171
|
*/
|
@@ -1261,7 +1261,7 @@ var config = ({
|
|
1261
1261
|
|
1262
1262
|
/* */
|
1263
1263
|
|
1264
|
-
var warn = noop;
|
1264
|
+
var warn$1 = noop;
|
1265
1265
|
var tip = noop;
|
1266
1266
|
var generateComponentTrace = (noop); // work around flow check
|
1267
1267
|
var formatComponentName = (noop);
|
@@ -1273,16 +1273,16 @@ if (process.env.NODE_ENV !== 'production') {
|
|
1273
1273
|
.replace(classifyRE, function (c) { return c.toUpperCase(); })
|
1274
1274
|
.replace(/[-_]/g, ''); };
|
1275
1275
|
|
1276
|
-
warn = function (msg, vm) {
|
1276
|
+
warn$1 = function (msg, vm) {
|
1277
1277
|
var trace = vm ? generateComponentTrace(vm) : '';
|
1278
1278
|
|
1279
|
-
if (hasConsole && (!config.silent)) {
|
1279
|
+
if (hasConsole && (!config$1.silent)) {
|
1280
1280
|
console.error(("[Vue warn]: " + msg + trace));
|
1281
1281
|
}
|
1282
1282
|
};
|
1283
1283
|
|
1284
1284
|
tip = function (msg, vm) {
|
1285
|
-
if (hasConsole && (!config.silent)) {
|
1285
|
+
if (hasConsole && (!config$1.silent)) {
|
1286
1286
|
console.warn("[Vue tip]: " + msg + (
|
1287
1287
|
vm ? generateComponentTrace(vm) : ''
|
1288
1288
|
));
|
@@ -1381,7 +1381,7 @@ Dep.prototype.depend = function depend () {
|
|
1381
1381
|
Dep.prototype.notify = function notify () {
|
1382
1382
|
// stabilize the subscriber list first
|
1383
1383
|
var subs = this.subs.slice();
|
1384
|
-
if (process.env.NODE_ENV !== 'production' && !config.async) {
|
1384
|
+
if (process.env.NODE_ENV !== 'production' && !config$1.async) {
|
1385
1385
|
// subs aren't sorted in scheduler if not running async
|
1386
1386
|
// we need to sort them now to make sure they fire in correct
|
1387
1387
|
// order
|
@@ -1449,8 +1449,8 @@ Object.defineProperties( VNode.prototype, prototypeAccessors );
|
|
1449
1449
|
* dynamically accessing methods on Array prototype
|
1450
1450
|
*/
|
1451
1451
|
|
1452
|
-
var arrayProto = Array.prototype;
|
1453
|
-
var arrayMethods = Object.create(arrayProto);
|
1452
|
+
var arrayProto$1 = Array.prototype;
|
1453
|
+
var arrayMethods = Object.create(arrayProto$1);
|
1454
1454
|
|
1455
1455
|
var methodsToPatch = [
|
1456
1456
|
'push',
|
@@ -1467,7 +1467,7 @@ var methodsToPatch = [
|
|
1467
1467
|
*/
|
1468
1468
|
methodsToPatch.forEach(function (method) {
|
1469
1469
|
// cache original method
|
1470
|
-
var original = arrayProto[method];
|
1470
|
+
var original = arrayProto$1[method];
|
1471
1471
|
def(arrayMethods, method, function mutator () {
|
1472
1472
|
var args = [], len = arguments.length;
|
1473
1473
|
while ( len-- ) args[ len ] = arguments[ len ];
|
@@ -1569,16 +1569,15 @@ function copyAugment (target, src, keys) {
|
|
1569
1569
|
* or the existing observer if the value already has one.
|
1570
1570
|
*/
|
1571
1571
|
function observe (value, asRootData) {
|
1572
|
-
if (!isObject(value) || value instanceof VNode) {
|
1572
|
+
if (!isObject$1(value) || value instanceof VNode) {
|
1573
1573
|
return
|
1574
1574
|
}
|
1575
1575
|
var ob;
|
1576
|
-
if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
|
1576
|
+
if (hasOwn$1(value, '__ob__') && value.__ob__ instanceof Observer) {
|
1577
1577
|
ob = value.__ob__;
|
1578
1578
|
} else if (
|
1579
|
-
|
1580
1579
|
!isServerRendering() &&
|
1581
|
-
(Array.isArray(value) || isPlainObject(value)) &&
|
1580
|
+
(Array.isArray(value) || isPlainObject$1(value)) &&
|
1582
1581
|
Object.isExtensible(value) &&
|
1583
1582
|
!value._isVue
|
1584
1583
|
) {
|
@@ -1663,7 +1662,7 @@ function set (target, key, val) {
|
|
1663
1662
|
if (process.env.NODE_ENV !== 'production' &&
|
1664
1663
|
(isUndef(target) || isPrimitive(target))
|
1665
1664
|
) {
|
1666
|
-
warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
|
1665
|
+
warn$1(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
|
1667
1666
|
}
|
1668
1667
|
if (Array.isArray(target) && isValidArrayIndex(key)) {
|
1669
1668
|
target.length = Math.max(target.length, key);
|
@@ -1676,7 +1675,7 @@ function set (target, key, val) {
|
|
1676
1675
|
}
|
1677
1676
|
var ob = (target).__ob__;
|
1678
1677
|
if (target._isVue || (ob && ob.vmCount)) {
|
1679
|
-
process.env.NODE_ENV !== 'production' && warn(
|
1678
|
+
process.env.NODE_ENV !== 'production' && warn$1(
|
1680
1679
|
'Avoid adding reactive properties to a Vue instance or its root $data ' +
|
1681
1680
|
'at runtime - declare it upfront in the data option.'
|
1682
1681
|
);
|
@@ -1712,7 +1711,7 @@ function dependArray (value) {
|
|
1712
1711
|
* how to merge a parent option value and a child option
|
1713
1712
|
* value into the final value.
|
1714
1713
|
*/
|
1715
|
-
var strats = config.optionMergeStrategies;
|
1714
|
+
var strats = config$1.optionMergeStrategies;
|
1716
1715
|
|
1717
1716
|
/**
|
1718
1717
|
* Options with restrictions
|
@@ -1720,7 +1719,7 @@ var strats = config.optionMergeStrategies;
|
|
1720
1719
|
if (process.env.NODE_ENV !== 'production') {
|
1721
1720
|
strats.el = strats.propsData = function (parent, child, vm, key) {
|
1722
1721
|
if (!vm) {
|
1723
|
-
warn(
|
1722
|
+
warn$1(
|
1724
1723
|
"option \"" + key + "\" can only be used during instance " +
|
1725
1724
|
'creation with the `new` keyword.'
|
1726
1725
|
);
|
@@ -1746,12 +1745,12 @@ function mergeData (to, from) {
|
|
1746
1745
|
if (key === '__ob__') { continue }
|
1747
1746
|
toVal = to[key];
|
1748
1747
|
fromVal = from[key];
|
1749
|
-
if (!hasOwn(to, key)) {
|
1748
|
+
if (!hasOwn$1(to, key)) {
|
1750
1749
|
set(to, key, fromVal);
|
1751
1750
|
} else if (
|
1752
1751
|
toVal !== fromVal &&
|
1753
|
-
isPlainObject(toVal) &&
|
1754
|
-
isPlainObject(fromVal)
|
1752
|
+
isPlainObject$1(toVal) &&
|
1753
|
+
isPlainObject$1(fromVal)
|
1755
1754
|
) {
|
1756
1755
|
mergeData(toVal, fromVal);
|
1757
1756
|
}
|
@@ -1811,7 +1810,7 @@ strats.data = function (
|
|
1811
1810
|
) {
|
1812
1811
|
if (!vm) {
|
1813
1812
|
if (childVal && typeof childVal !== 'function') {
|
1814
|
-
process.env.NODE_ENV !== 'production' && warn(
|
1813
|
+
process.env.NODE_ENV !== 'production' && warn$1(
|
1815
1814
|
'The "data" option should be a function ' +
|
1816
1815
|
'that returns a per-instance value in component ' +
|
1817
1816
|
'definitions.',
|
@@ -1875,7 +1874,7 @@ function mergeAssets (
|
|
1875
1874
|
var res = Object.create(parentVal || null);
|
1876
1875
|
if (childVal) {
|
1877
1876
|
process.env.NODE_ENV !== 'production' && assertObjectType(key, childVal, vm);
|
1878
|
-
return extend(res, childVal)
|
1877
|
+
return extend$1(res, childVal)
|
1879
1878
|
} else {
|
1880
1879
|
return res
|
1881
1880
|
}
|
@@ -1907,7 +1906,7 @@ strats.watch = function (
|
|
1907
1906
|
}
|
1908
1907
|
if (!parentVal) { return childVal }
|
1909
1908
|
var ret = {};
|
1910
|
-
extend(ret, parentVal);
|
1909
|
+
extend$1(ret, parentVal);
|
1911
1910
|
for (var key$1 in childVal) {
|
1912
1911
|
var parent = ret[key$1];
|
1913
1912
|
var child = childVal[key$1];
|
@@ -1938,8 +1937,8 @@ strats.computed = function (
|
|
1938
1937
|
}
|
1939
1938
|
if (!parentVal) { return childVal }
|
1940
1939
|
var ret = Object.create(null);
|
1941
|
-
extend(ret, parentVal);
|
1942
|
-
if (childVal) { extend(ret, childVal); }
|
1940
|
+
extend$1(ret, parentVal);
|
1941
|
+
if (childVal) { extend$1(ret, childVal); }
|
1943
1942
|
return ret
|
1944
1943
|
};
|
1945
1944
|
strats.provide = mergeDataOrFn;
|
@@ -1954,8 +1953,8 @@ var defaultStrat = function (parentVal, childVal) {
|
|
1954
1953
|
};
|
1955
1954
|
|
1956
1955
|
function assertObjectType (name, value, vm) {
|
1957
|
-
if (!isPlainObject(value)) {
|
1958
|
-
warn(
|
1956
|
+
if (!isPlainObject$1(value)) {
|
1957
|
+
warn$1(
|
1959
1958
|
"Invalid value for option \"" + name + "\": expected an Object, " +
|
1960
1959
|
"but got " + (toRawType(value)) + ".",
|
1961
1960
|
vm
|
@@ -2008,10 +2007,10 @@ if (typeof Promise !== 'undefined' && isNative(Promise)) ; else if (!isIE && typ
|
|
2008
2007
|
|
2009
2008
|
// these are reserved for web because they are directly compiled away
|
2010
2009
|
// during template compilation
|
2011
|
-
makeMap('style,class');
|
2010
|
+
makeMap$1('style,class');
|
2012
2011
|
|
2013
2012
|
// attributes that should be using props for binding
|
2014
|
-
var acceptValue = makeMap('input,textarea,option,select,progress');
|
2013
|
+
var acceptValue = makeMap$1('input,textarea,option,select,progress');
|
2015
2014
|
var mustUseProp = function (tag, type, attr) {
|
2016
2015
|
return (
|
2017
2016
|
(attr === 'value' && acceptValue(tag)) && type !== 'button' ||
|
@@ -2021,11 +2020,11 @@ var mustUseProp = function (tag, type, attr) {
|
|
2021
2020
|
)
|
2022
2021
|
};
|
2023
2022
|
|
2024
|
-
var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
|
2023
|
+
var isEnumeratedAttr = makeMap$1('contenteditable,draggable,spellcheck');
|
2025
2024
|
|
2026
|
-
makeMap('events,caret,typing,plaintext-only');
|
2025
|
+
makeMap$1('events,caret,typing,plaintext-only');
|
2027
2026
|
|
2028
|
-
var isBooleanAttr = makeMap(
|
2027
|
+
var isBooleanAttr = makeMap$1(
|
2029
2028
|
'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
|
2030
2029
|
'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
|
2031
2030
|
'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
|
@@ -2038,7 +2037,7 @@ var isBooleanAttr = makeMap(
|
|
2038
2037
|
|
2039
2038
|
/* */
|
2040
2039
|
|
2041
|
-
var isHTMLTag = makeMap(
|
2040
|
+
var isHTMLTag$1 = makeMap$1(
|
2042
2041
|
'html,body,base,head,link,meta,style,title,' +
|
2043
2042
|
'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
|
2044
2043
|
'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
|
@@ -2054,7 +2053,7 @@ var isHTMLTag = makeMap(
|
|
2054
2053
|
|
2055
2054
|
// this map is intentionally selective, only covering SVG elements that may
|
2056
2055
|
// contain child elements.
|
2057
|
-
var isSVG = makeMap(
|
2056
|
+
var isSVG$1 = makeMap$1(
|
2058
2057
|
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
|
2059
2058
|
'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
2060
2059
|
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
@@ -2063,12 +2062,12 @@ var isSVG = makeMap(
|
|
2063
2062
|
|
2064
2063
|
var isPreTag = function (tag) { return tag === 'pre'; };
|
2065
2064
|
|
2066
|
-
var isReservedTag = function (tag) {
|
2067
|
-
return isHTMLTag(tag) || isSVG(tag)
|
2065
|
+
var isReservedTag$1 = function (tag) {
|
2066
|
+
return isHTMLTag$1(tag) || isSVG$1(tag)
|
2068
2067
|
};
|
2069
2068
|
|
2070
2069
|
function getTagNamespace (tag) {
|
2071
|
-
if (isSVG(tag)) {
|
2070
|
+
if (isSVG$1(tag)) {
|
2072
2071
|
return 'svg'
|
2073
2072
|
}
|
2074
2073
|
// basic support for MathML
|
@@ -2078,7 +2077,7 @@ function getTagNamespace (tag) {
|
|
2078
2077
|
}
|
2079
2078
|
}
|
2080
2079
|
|
2081
|
-
makeMap('text,number,password,search,email,tel,url');
|
2080
|
+
makeMap$1('text,number,password,search,email,tel,url');
|
2082
2081
|
|
2083
2082
|
/* */
|
2084
2083
|
|
@@ -2185,7 +2184,7 @@ function wrapFilter (exp, filter) {
|
|
2185
2184
|
var defaultTagRE = /\{\{((?:.|\r?\n)+?)\}\}/g;
|
2186
2185
|
var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
|
2187
2186
|
|
2188
|
-
var buildRegex = cached(function (delimiters) {
|
2187
|
+
var buildRegex = cached$1(function (delimiters) {
|
2189
2188
|
var open = delimiters[0].replace(regexEscapeRE, '\\$&');
|
2190
2189
|
var close = delimiters[1].replace(regexEscapeRE, '\\$&');
|
2191
2190
|
return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
|
@@ -2502,7 +2501,7 @@ var klass = {
|
|
2502
2501
|
|
2503
2502
|
/* */
|
2504
2503
|
|
2505
|
-
var parseStyleText = cached(function (cssText) {
|
2504
|
+
var parseStyleText = cached$1(function (cssText) {
|
2506
2505
|
var res = {};
|
2507
2506
|
var listDelimiter = /;(?![^(]*\))/g;
|
2508
2507
|
var propertyDelimiter = /:(.+)/;
|
@@ -2728,12 +2727,12 @@ var whitespaceRE = /\s+/g;
|
|
2728
2727
|
|
2729
2728
|
var invalidAttributeRE = /[\s"'<>\/=]/;
|
2730
2729
|
|
2731
|
-
var decodeHTMLCached = cached(he
|
2730
|
+
var decodeHTMLCached = cached$1(he.decode);
|
2732
2731
|
|
2733
2732
|
var emptySlotScopeToken = "_empty_";
|
2734
2733
|
|
2735
2734
|
// configurable state
|
2736
|
-
var warn$1;
|
2735
|
+
var warn$1$1;
|
2737
2736
|
var delimiters;
|
2738
2737
|
var transforms;
|
2739
2738
|
var preTransforms;
|
@@ -2766,7 +2765,7 @@ function parse (
|
|
2766
2765
|
template,
|
2767
2766
|
options
|
2768
2767
|
) {
|
2769
|
-
warn$1 = options.warn || baseWarn;
|
2768
|
+
warn$1$1 = options.warn || baseWarn;
|
2770
2769
|
|
2771
2770
|
platformIsPreTag = options.isPreTag || no;
|
2772
2771
|
platformMustUseProp = options.mustUseProp || no;
|
@@ -2792,7 +2791,7 @@ function parse (
|
|
2792
2791
|
function warnOnce (msg, range) {
|
2793
2792
|
if (!warned) {
|
2794
2793
|
warned = true;
|
2795
|
-
warn$1(msg, range);
|
2794
|
+
warn$1$1(msg, range);
|
2796
2795
|
}
|
2797
2796
|
}
|
2798
2797
|
|
@@ -2888,7 +2887,7 @@ function parse (
|
|
2888
2887
|
}
|
2889
2888
|
|
2890
2889
|
parseHTML(template, {
|
2891
|
-
warn: warn$1,
|
2890
|
+
warn: warn$1$1,
|
2892
2891
|
expectHTML: options.expectHTML,
|
2893
2892
|
isUnaryTag: options.isUnaryTag,
|
2894
2893
|
canBeLeftOpenTag: options.canBeLeftOpenTag,
|
@@ -2923,7 +2922,7 @@ function parse (
|
|
2923
2922
|
}
|
2924
2923
|
attrs.forEach(function (attr) {
|
2925
2924
|
if (invalidAttributeRE.test(attr.name)) {
|
2926
|
-
warn$1(
|
2925
|
+
warn$1$1(
|
2927
2926
|
"Invalid dynamic argument expression: attribute names cannot contain " +
|
2928
2927
|
"spaces, quotes, <, >, / or =.",
|
2929
2928
|
{
|
@@ -2937,7 +2936,7 @@ function parse (
|
|
2937
2936
|
|
2938
2937
|
if (isForbiddenTag(element) && !isServerRendering()) {
|
2939
2938
|
element.forbidden = true;
|
2940
|
-
process.env.NODE_ENV !== 'production' && warn$1(
|
2939
|
+
process.env.NODE_ENV !== 'production' && warn$1$1(
|
2941
2940
|
'Templates should only be responsible for mapping the state to the ' +
|
2942
2941
|
'UI. Avoid placing tags with side-effects in your templates, such as ' +
|
2943
2942
|
"<" + tag + ">" + ', as they will not be parsed.',
|
@@ -3142,7 +3141,7 @@ function processKey (el) {
|
|
3142
3141
|
if (exp) {
|
3143
3142
|
if (process.env.NODE_ENV !== 'production') {
|
3144
3143
|
if (el.tag === 'template') {
|
3145
|
-
warn$1(
|
3144
|
+
warn$1$1(
|
3146
3145
|
"<template> cannot be keyed. Place the key on real elements instead.",
|
3147
3146
|
getRawBindingAttr(el, 'key')
|
3148
3147
|
);
|
@@ -3151,7 +3150,7 @@ function processKey (el) {
|
|
3151
3150
|
var iterator = el.iterator2 || el.iterator1;
|
3152
3151
|
var parent = el.parent;
|
3153
3152
|
if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
|
3154
|
-
warn$1(
|
3153
|
+
warn$1$1(
|
3155
3154
|
"Do not use v-for index as key on <transition-group> children, " +
|
3156
3155
|
"this is the same as not using keys.",
|
3157
3156
|
getRawBindingAttr(el, 'key'),
|
@@ -3177,9 +3176,9 @@ function processFor (el) {
|
|
3177
3176
|
if ((exp = getAndRemoveAttr(el, 'v-for'))) {
|
3178
3177
|
var res = parseFor(exp);
|
3179
3178
|
if (res) {
|
3180
|
-
extend(el, res);
|
3179
|
+
extend$1(el, res);
|
3181
3180
|
} else if (process.env.NODE_ENV !== 'production') {
|
3182
|
-
warn$1(
|
3181
|
+
warn$1$1(
|
3183
3182
|
("Invalid v-for expression: " + exp),
|
3184
3183
|
el.rawAttrsMap['v-for']
|
3185
3184
|
);
|
@@ -3235,7 +3234,7 @@ function processIfConditions (el, parent) {
|
|
3235
3234
|
block: el
|
3236
3235
|
});
|
3237
3236
|
} else if (process.env.NODE_ENV !== 'production') {
|
3238
|
-
warn$1(
|
3237
|
+
warn$1$1(
|
3239
3238
|
"v-" + (el.elseif ? ('else-if="' + el.elseif + '"') : 'else') + " " +
|
3240
3239
|
"used on element <" + (el.tag) + "> without corresponding v-if.",
|
3241
3240
|
el.rawAttrsMap[el.elseif ? 'v-else-if' : 'v-else']
|
@@ -3250,7 +3249,7 @@ function findPrevElement (children) {
|
|
3250
3249
|
return children[i]
|
3251
3250
|
} else {
|
3252
3251
|
if (process.env.NODE_ENV !== 'production' && children[i].text !== ' ') {
|
3253
|
-
warn$1(
|
3252
|
+
warn$1$1(
|
3254
3253
|
"text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " +
|
3255
3254
|
"will be ignored.",
|
3256
3255
|
children[i]
|
@@ -3283,7 +3282,7 @@ function processSlotContent (el) {
|
|
3283
3282
|
slotScope = getAndRemoveAttr(el, 'scope');
|
3284
3283
|
/* istanbul ignore if */
|
3285
3284
|
if (process.env.NODE_ENV !== 'production' && slotScope) {
|
3286
|
-
warn$1(
|
3285
|
+
warn$1$1(
|
3287
3286
|
"the \"scope\" attribute for scoped slots have been deprecated and " +
|
3288
3287
|
"replaced by \"slot-scope\" since 2.5. The new \"slot-scope\" attribute " +
|
3289
3288
|
"can also be used on plain elements in addition to <template> to " +
|
@@ -3296,7 +3295,7 @@ function processSlotContent (el) {
|
|
3296
3295
|
} else if ((slotScope = getAndRemoveAttr(el, 'slot-scope'))) {
|
3297
3296
|
/* istanbul ignore if */
|
3298
3297
|
if (process.env.NODE_ENV !== 'production' && el.attrsMap['v-for']) {
|
3299
|
-
warn$1(
|
3298
|
+
warn$1$1(
|
3300
3299
|
"Ambiguous combined usage of slot-scope and v-for on <" + (el.tag) + "> " +
|
3301
3300
|
"(v-for takes higher priority). Use a wrapper <template> for the " +
|
3302
3301
|
"scoped slot to make it clearer.",
|
@@ -3327,13 +3326,13 @@ function processSlotContent (el) {
|
|
3327
3326
|
if (slotBinding) {
|
3328
3327
|
if (process.env.NODE_ENV !== 'production') {
|
3329
3328
|
if (el.slotTarget || el.slotScope) {
|
3330
|
-
warn$1(
|
3329
|
+
warn$1$1(
|
3331
3330
|
"Unexpected mixed usage of different slot syntaxes.",
|
3332
3331
|
el
|
3333
3332
|
);
|
3334
3333
|
}
|
3335
3334
|
if (el.parent && !maybeComponent(el.parent)) {
|
3336
|
-
warn$1(
|
3335
|
+
warn$1$1(
|
3337
3336
|
"<template v-slot> can only appear at the root level inside " +
|
3338
3337
|
"the receiving component",
|
3339
3338
|
el
|
@@ -3353,19 +3352,19 @@ function processSlotContent (el) {
|
|
3353
3352
|
if (slotBinding$1) {
|
3354
3353
|
if (process.env.NODE_ENV !== 'production') {
|
3355
3354
|
if (!maybeComponent(el)) {
|
3356
|
-
warn$1(
|
3355
|
+
warn$1$1(
|
3357
3356
|
"v-slot can only be used on components or <template>.",
|
3358
3357
|
slotBinding$1
|
3359
3358
|
);
|
3360
3359
|
}
|
3361
3360
|
if (el.slotScope || el.slotTarget) {
|
3362
|
-
warn$1(
|
3361
|
+
warn$1$1(
|
3363
3362
|
"Unexpected mixed usage of different slot syntaxes.",
|
3364
3363
|
el
|
3365
3364
|
);
|
3366
3365
|
}
|
3367
3366
|
if (el.scopedSlots) {
|
3368
|
-
warn$1(
|
3367
|
+
warn$1$1(
|
3369
3368
|
"To avoid scope ambiguity, the default slot should also use " +
|
3370
3369
|
"<template> syntax when there are other named slots.",
|
3371
3370
|
slotBinding$1
|
@@ -3402,7 +3401,7 @@ function getSlotName (binding) {
|
|
3402
3401
|
if (binding.name[0] !== '#') {
|
3403
3402
|
name = 'default';
|
3404
3403
|
} else if (process.env.NODE_ENV !== 'production') {
|
3405
|
-
warn$1(
|
3404
|
+
warn$1$1(
|
3406
3405
|
"v-slot shorthand syntax requires a slot name.",
|
3407
3406
|
binding
|
3408
3407
|
);
|
@@ -3420,7 +3419,7 @@ function processSlotOutlet (el) {
|
|
3420
3419
|
if (el.tag === 'slot') {
|
3421
3420
|
el.slotName = getBindingAttr(el, 'name');
|
3422
3421
|
if (process.env.NODE_ENV !== 'production' && el.key) {
|
3423
|
-
warn$1(
|
3422
|
+
warn$1$1(
|
3424
3423
|
"`key` does not work on <slot> because slots are abstract outlets " +
|
3425
3424
|
"and can possibly expand into multiple elements. " +
|
3426
3425
|
"Use the key on a wrapping element instead.",
|
@@ -3466,38 +3465,38 @@ function processAttrs (el) {
|
|
3466
3465
|
process.env.NODE_ENV !== 'production' &&
|
3467
3466
|
value.trim().length === 0
|
3468
3467
|
) {
|
3469
|
-
warn$1(
|
3468
|
+
warn$1$1(
|
3470
3469
|
("The value for a v-bind expression cannot be empty. Found in \"v-bind:" + name + "\"")
|
3471
3470
|
);
|
3472
3471
|
}
|
3473
3472
|
if (modifiers) {
|
3474
3473
|
if (modifiers.prop && !isDynamic) {
|
3475
|
-
name = camelize(name);
|
3474
|
+
name = camelize$1(name);
|
3476
3475
|
if (name === 'innerHtml') { name = 'innerHTML'; }
|
3477
3476
|
}
|
3478
3477
|
if (modifiers.camel && !isDynamic) {
|
3479
|
-
name = camelize(name);
|
3478
|
+
name = camelize$1(name);
|
3480
3479
|
}
|
3481
3480
|
if (modifiers.sync) {
|
3482
3481
|
syncGen = genAssignmentCode(value, "$event");
|
3483
3482
|
if (!isDynamic) {
|
3484
3483
|
addHandler(
|
3485
3484
|
el,
|
3486
|
-
("update:" + (camelize(name))),
|
3485
|
+
("update:" + (camelize$1(name))),
|
3487
3486
|
syncGen,
|
3488
3487
|
null,
|
3489
3488
|
false,
|
3490
|
-
warn$1,
|
3489
|
+
warn$1$1,
|
3491
3490
|
list[i]
|
3492
3491
|
);
|
3493
|
-
if (hyphenate(name) !== camelize(name)) {
|
3492
|
+
if (hyphenate$1(name) !== camelize$1(name)) {
|
3494
3493
|
addHandler(
|
3495
3494
|
el,
|
3496
|
-
("update:" + (hyphenate(name))),
|
3495
|
+
("update:" + (hyphenate$1(name))),
|
3497
3496
|
syncGen,
|
3498
3497
|
null,
|
3499
3498
|
false,
|
3500
|
-
warn$1,
|
3499
|
+
warn$1$1,
|
3501
3500
|
list[i]
|
3502
3501
|
);
|
3503
3502
|
}
|
@@ -3509,7 +3508,7 @@ function processAttrs (el) {
|
|
3509
3508
|
syncGen,
|
3510
3509
|
null,
|
3511
3510
|
false,
|
3512
|
-
warn$1,
|
3511
|
+
warn$1$1,
|
3513
3512
|
list[i],
|
3514
3513
|
true // dynamic
|
3515
3514
|
);
|
@@ -3529,7 +3528,7 @@ function processAttrs (el) {
|
|
3529
3528
|
if (isDynamic) {
|
3530
3529
|
name = name.slice(1, -1);
|
3531
3530
|
}
|
3532
|
-
addHandler(el, name, value, modifiers, false, warn$1, list[i], isDynamic);
|
3531
|
+
addHandler(el, name, value, modifiers, false, warn$1$1, list[i], isDynamic);
|
3533
3532
|
} else { // normal directives
|
3534
3533
|
name = name.replace(dirRE, '');
|
3535
3534
|
// parse arg
|
@@ -3553,7 +3552,7 @@ function processAttrs (el) {
|
|
3553
3552
|
if (process.env.NODE_ENV !== 'production') {
|
3554
3553
|
var res = parseText(value, delimiters);
|
3555
3554
|
if (res) {
|
3556
|
-
warn$1(
|
3555
|
+
warn$1$1(
|
3557
3556
|
name + "=\"" + value + "\": " +
|
3558
3557
|
'Interpolation inside attributes has been removed. ' +
|
3559
3558
|
'Use v-bind or the colon shorthand instead. For example, ' +
|
@@ -3599,9 +3598,9 @@ function makeAttrsMap (attrs) {
|
|
3599
3598
|
for (var i = 0, l = attrs.length; i < l; i++) {
|
3600
3599
|
if (
|
3601
3600
|
process.env.NODE_ENV !== 'production' &&
|
3602
|
-
map[attrs[i].name] && !isIE && !isEdge
|
3601
|
+
map[attrs[i].name] && !isIE && !isEdge$1
|
3603
3602
|
) {
|
3604
|
-
warn$1('duplicate attribute: ' + attrs[i].name, attrs[i]);
|
3603
|
+
warn$1$1('duplicate attribute: ' + attrs[i].name, attrs[i]);
|
3605
3604
|
}
|
3606
3605
|
map[attrs[i].name] = attrs[i].value;
|
3607
3606
|
}
|
@@ -3643,7 +3642,7 @@ function checkForAliasModel (el, value) {
|
|
3643
3642
|
var _el = el;
|
3644
3643
|
while (_el) {
|
3645
3644
|
if (_el.for && _el.alias === value) {
|
3646
|
-
warn$1(
|
3645
|
+
warn$1$1(
|
3647
3646
|
"<" + (el.tag) + " v-model=\"" + value + "\">: " +
|
3648
3647
|
"You are binding v-model directly to a v-for iteration alias. " +
|
3649
3648
|
"This will not be able to modify the v-for source array because " +
|
@@ -3777,18 +3776,10 @@ function model$1 (
|
|
3777
3776
|
genRadioModel(el, value, modifiers);
|
3778
3777
|
} else if (tag === 'input' || tag === 'textarea') {
|
3779
3778
|
genDefaultModel(el, value, modifiers);
|
3780
|
-
} else
|
3779
|
+
} else {
|
3781
3780
|
genComponentModel(el, value, modifiers);
|
3782
3781
|
// component v-model doesn't need extra runtime
|
3783
3782
|
return false
|
3784
|
-
} else if (process.env.NODE_ENV !== 'production') {
|
3785
|
-
warn$2(
|
3786
|
-
"<" + (el.tag) + " v-model=\"" + value + "\">: " +
|
3787
|
-
"v-model is not supported on this element type. " +
|
3788
|
-
'If you are working with contenteditable, it\'s recommended to ' +
|
3789
|
-
'wrap a library dedicated for that purpose inside a custom component.',
|
3790
|
-
el.rawAttrsMap['v-model']
|
3791
|
-
);
|
3792
3783
|
}
|
3793
3784
|
|
3794
3785
|
// ensure runtime directive metadata
|
@@ -3918,16 +3909,16 @@ function text (el, dir) {
|
|
3918
3909
|
|
3919
3910
|
/* */
|
3920
3911
|
|
3921
|
-
function html (el, dir) {
|
3912
|
+
function html$2 (el, dir) {
|
3922
3913
|
if (dir.value) {
|
3923
3914
|
addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"), dir);
|
3924
3915
|
}
|
3925
3916
|
}
|
3926
3917
|
|
3927
|
-
var directives = {
|
3918
|
+
var directives$1 = {
|
3928
3919
|
model: model$1,
|
3929
3920
|
text: text,
|
3930
|
-
html: html
|
3921
|
+
html: html$2
|
3931
3922
|
};
|
3932
3923
|
|
3933
3924
|
/* */
|
@@ -3935,12 +3926,12 @@ var directives = {
|
|
3935
3926
|
var baseOptions = {
|
3936
3927
|
expectHTML: true,
|
3937
3928
|
modules: modules,
|
3938
|
-
directives: directives,
|
3929
|
+
directives: directives$1,
|
3939
3930
|
isPreTag: isPreTag,
|
3940
3931
|
isUnaryTag: isUnaryTag,
|
3941
3932
|
mustUseProp: mustUseProp,
|
3942
3933
|
canBeLeftOpenTag: canBeLeftOpenTag,
|
3943
|
-
isReservedTag: isReservedTag,
|
3934
|
+
isReservedTag: isReservedTag$1,
|
3944
3935
|
getTagNamespace: getTagNamespace,
|
3945
3936
|
staticKeys: genStaticKeys(modules)
|
3946
3937
|
};
|
@@ -3950,7 +3941,7 @@ var baseOptions = {
|
|
3950
3941
|
var isStaticKey;
|
3951
3942
|
var isPlatformReservedTag;
|
3952
3943
|
|
3953
|
-
var genStaticKeysCached = cached(genStaticKeys$1);
|
3944
|
+
var genStaticKeysCached = cached$1(genStaticKeys$1);
|
3954
3945
|
|
3955
3946
|
/**
|
3956
3947
|
* Goal of the optimizer: walk the generated template AST tree
|
@@ -3974,7 +3965,7 @@ function optimize (root, options) {
|
|
3974
3965
|
}
|
3975
3966
|
|
3976
3967
|
function genStaticKeys$1 (keys) {
|
3977
|
-
return makeMap(
|
3968
|
+
return makeMap$1(
|
3978
3969
|
'type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap' +
|
3979
3970
|
(keys ? ',' + keys : '')
|
3980
3971
|
)
|
@@ -4239,7 +4230,7 @@ function genFilterCode (key) {
|
|
4239
4230
|
|
4240
4231
|
function on (el, dir) {
|
4241
4232
|
if (process.env.NODE_ENV !== 'production' && dir.modifiers) {
|
4242
|
-
warn("v-on without argument does not support modifiers.");
|
4233
|
+
warn$1("v-on without argument does not support modifiers.");
|
4243
4234
|
}
|
4244
4235
|
el.wrapListeners = function (code) { return ("_g(" + code + "," + (dir.value) + ")"); };
|
4245
4236
|
}
|
@@ -4271,7 +4262,7 @@ var CodegenState = function CodegenState (options) {
|
|
4271
4262
|
this.warn = options.warn || baseWarn;
|
4272
4263
|
this.transforms = pluckModuleFunction(options.modules, 'transformCode');
|
4273
4264
|
this.dataGenFns = pluckModuleFunction(options.modules, 'genData');
|
4274
|
-
this.directives = extend(extend({}, baseDirectives), options.directives);
|
4265
|
+
this.directives = extend$1(extend$1({}, baseDirectives), options.directives);
|
4275
4266
|
var isReservedTag = options.isReservedTag || no;
|
4276
4267
|
this.maybeComponent = function (el) { return !!el.component || !isReservedTag(el.tag); };
|
4277
4268
|
this.onceId = 0;
|
@@ -4755,7 +4746,7 @@ function genSlot (el, state) {
|
|
4755
4746
|
var attrs = el.attrs || el.dynamicAttrs
|
4756
4747
|
? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({
|
4757
4748
|
// slot props are camelized
|
4758
|
-
name: camelize(attr.name),
|
4749
|
+
name: camelize$1(attr.name),
|
4759
4750
|
value: attr.value,
|
4760
4751
|
dynamic: attr.dynamic
|
4761
4752
|
}); }))
|
@@ -5012,8 +5003,8 @@ function createCompileToFunctionFn (compile) {
|
|
5012
5003
|
options,
|
5013
5004
|
vm
|
5014
5005
|
) {
|
5015
|
-
options = extend({}, options);
|
5016
|
-
var warn$$1 = options.warn || warn;
|
5006
|
+
options = extend$1({}, options);
|
5007
|
+
var warn$$1 = options.warn || warn$1;
|
5017
5008
|
delete options.warn;
|
5018
5009
|
|
5019
5010
|
/* istanbul ignore if */
|
@@ -5145,7 +5136,7 @@ function createCompilerCreator (baseCompile) {
|
|
5145
5136
|
}
|
5146
5137
|
// merge custom directives
|
5147
5138
|
if (options.directives) {
|
5148
|
-
finalOptions.directives = extend(
|
5139
|
+
finalOptions.directives = extend$1(
|
5149
5140
|
Object.create(baseOptions.directives || null),
|
5150
5141
|
options.directives
|
5151
5142
|
);
|
@@ -5205,7 +5196,7 @@ var compileToFunctions = ref.compileToFunctions;
|
|
5205
5196
|
|
5206
5197
|
/* */
|
5207
5198
|
|
5208
|
-
var isAttr = makeMap(
|
5199
|
+
var isAttr = makeMap$1(
|
5209
5200
|
'accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' +
|
5210
5201
|
'autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,' +
|
5211
5202
|
'checked,cite,class,code,codebase,color,cols,colspan,content,' +
|
@@ -5472,7 +5463,7 @@ function isUnOptimizableTree (node) {
|
|
5472
5463
|
)
|
5473
5464
|
}
|
5474
5465
|
|
5475
|
-
var isBuiltInDir = makeMap('text,html,show,on,bind,model,pre,cloak,once');
|
5466
|
+
var isBuiltInDir = makeMap$1('text,html,show,on,bind,model,pre,cloak,once');
|
5476
5467
|
|
5477
5468
|
function hasCustomDirective (node) {
|
5478
5469
|
return (
|
@@ -5818,9 +5809,9 @@ function createSlotVNodes(
|
|
5818
5809
|
}, [])
|
5819
5810
|
}
|
5820
5811
|
|
5821
|
-
var commonjsGlobal
|
5812
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof commonjsGlobal$1 !== 'undefined' ? commonjsGlobal$1 : typeof self !== 'undefined' ? self : {};
|
5822
5813
|
|
5823
|
-
function createCommonjsModule
|
5814
|
+
function createCommonjsModule(fn, basedir, module) {
|
5824
5815
|
return module = {
|
5825
5816
|
path: basedir,
|
5826
5817
|
exports: {},
|
@@ -5838,7 +5829,7 @@ function commonjsRequire () {
|
|
5838
5829
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
5839
5830
|
}
|
5840
5831
|
|
5841
|
-
var semver = createCommonjsModule
|
5832
|
+
var semver = createCommonjsModule(function (module, exports) {
|
5842
5833
|
exports = module.exports = SemVer;
|
5843
5834
|
|
5844
5835
|
var debug;
|
@@ -7464,14 +7455,14 @@ function throwError(msg) {
|
|
7464
7455
|
throw new Error(("[vue-test-utils]: " + msg))
|
7465
7456
|
}
|
7466
7457
|
|
7467
|
-
function warn
|
7458
|
+
function warn(msg) {
|
7468
7459
|
console.error(("[vue-test-utils]: " + msg));
|
7469
7460
|
}
|
7470
7461
|
|
7471
|
-
var camelizeRE
|
7462
|
+
var camelizeRE = /-(\w)/g;
|
7472
7463
|
|
7473
|
-
var camelize
|
7474
|
-
var camelizedStr = str.replace(camelizeRE
|
7464
|
+
var camelize = function (str) {
|
7465
|
+
var camelizedStr = str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; }
|
7475
7466
|
);
|
7476
7467
|
return camelizedStr.charAt(0).toLowerCase() + camelizedStr.slice(1)
|
7477
7468
|
};
|
@@ -7484,10 +7475,10 @@ var capitalize = function (str) { return str.charAt(0).toUpperCase() + str.slice
|
|
7484
7475
|
/**
|
7485
7476
|
* Hyphenate a camelCase string.
|
7486
7477
|
*/
|
7487
|
-
var hyphenateRE
|
7488
|
-
var hyphenate
|
7478
|
+
var hyphenateRE = /\B([A-Z])/g;
|
7479
|
+
var hyphenate = function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); };
|
7489
7480
|
|
7490
|
-
function hasOwnProperty
|
7481
|
+
function hasOwnProperty(obj, prop) {
|
7491
7482
|
return Object.prototype.hasOwnProperty.call(obj, prop)
|
7492
7483
|
}
|
7493
7484
|
|
@@ -7501,30 +7492,30 @@ function resolveComponent(id, components) {
|
|
7501
7492
|
return
|
7502
7493
|
}
|
7503
7494
|
// check local registration variations first
|
7504
|
-
if (hasOwnProperty
|
7495
|
+
if (hasOwnProperty(components, id)) {
|
7505
7496
|
return components[id]
|
7506
7497
|
}
|
7507
|
-
var camelizedId = camelize
|
7508
|
-
if (hasOwnProperty
|
7498
|
+
var camelizedId = camelize(id);
|
7499
|
+
if (hasOwnProperty(components, camelizedId)) {
|
7509
7500
|
return components[camelizedId]
|
7510
7501
|
}
|
7511
7502
|
var PascalCaseId = capitalize(camelizedId);
|
7512
|
-
if (hasOwnProperty
|
7503
|
+
if (hasOwnProperty(components, PascalCaseId)) {
|
7513
7504
|
return components[PascalCaseId]
|
7514
7505
|
}
|
7515
7506
|
// fallback to prototype chain
|
7516
7507
|
return components[id] || components[camelizedId] || components[PascalCaseId]
|
7517
7508
|
}
|
7518
7509
|
|
7519
|
-
var UA
|
7510
|
+
var UA =
|
7520
7511
|
typeof window !== 'undefined' &&
|
7521
7512
|
'navigator' in window &&
|
7522
7513
|
navigator.userAgent.toLowerCase();
|
7523
7514
|
|
7524
|
-
var isPhantomJS = UA
|
7515
|
+
var isPhantomJS = UA && UA.includes && UA.match(/phantomjs/i);
|
7525
7516
|
|
7526
|
-
var isEdge
|
7527
|
-
var isChrome = UA
|
7517
|
+
var isEdge = UA && UA.indexOf('edge/') > 0;
|
7518
|
+
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
|
7528
7519
|
|
7529
7520
|
// get the event used to trigger v-model handler that updates bound data
|
7530
7521
|
function getCheckedEvent() {
|
@@ -7557,13 +7548,13 @@ function nextTick() {
|
|
7557
7548
|
function warnDeprecated(method, fallback) {
|
7558
7549
|
if ( fallback === void 0 ) fallback = '';
|
7559
7550
|
|
7560
|
-
if (!config
|
7551
|
+
if (!config.showDeprecationWarnings) { return }
|
7561
7552
|
var msg = method + " is deprecated and will be removed in the next major version.";
|
7562
7553
|
if (fallback) { msg += " " + fallback + "."; }
|
7563
|
-
if (config
|
7564
|
-
config
|
7554
|
+
if (config.deprecationWarningHandler) {
|
7555
|
+
config.deprecationWarningHandler(method, msg);
|
7565
7556
|
} else {
|
7566
|
-
warn
|
7557
|
+
warn(msg);
|
7567
7558
|
}
|
7568
7559
|
}
|
7569
7560
|
|
@@ -7587,7 +7578,7 @@ function addMocks(
|
|
7587
7578
|
// $FlowIgnore
|
7588
7579
|
_Vue.prototype[key] = mockedProperties[key];
|
7589
7580
|
} catch (e) {
|
7590
|
-
warn
|
7581
|
+
warn(
|
7591
7582
|
"could not overwrite property " + key + ", this is " +
|
7592
7583
|
"usually caused by a plugin that has added " +
|
7593
7584
|
"the property as a read-only value"
|
@@ -7742,13 +7733,13 @@ function templateContainsComponent(
|
|
7742
7733
|
template,
|
7743
7734
|
name
|
7744
7735
|
) {
|
7745
|
-
return [capitalize, camelize
|
7736
|
+
return [capitalize, camelize, hyphenate].some(function (format) {
|
7746
7737
|
var re = new RegExp(("<" + (format(name)) + "\\s*(\\s|>|(/>))"), 'g');
|
7747
7738
|
return re.test(template)
|
7748
7739
|
})
|
7749
7740
|
}
|
7750
7741
|
|
7751
|
-
function isPlainObject
|
7742
|
+
function isPlainObject(c) {
|
7752
7743
|
return Object.prototype.toString.call(c) === '[object Object]'
|
7753
7744
|
}
|
7754
7745
|
|
@@ -7760,7 +7751,7 @@ function isHTMLElement(c) {
|
|
7760
7751
|
return c instanceof HTMLElement
|
7761
7752
|
}
|
7762
7753
|
|
7763
|
-
function makeMap
|
7754
|
+
function makeMap(str, expectsLowerCase) {
|
7764
7755
|
var map = Object.create(null);
|
7765
7756
|
var list = str.split(',');
|
7766
7757
|
for (var i = 0; i < list.length; i++) {
|
@@ -7775,7 +7766,7 @@ function makeMap$1(str, expectsLowerCase) {
|
|
7775
7766
|
}
|
7776
7767
|
}
|
7777
7768
|
|
7778
|
-
var isHTMLTag
|
7769
|
+
var isHTMLTag = makeMap(
|
7779
7770
|
'html,body,base,head,link,meta,style,title,' +
|
7780
7771
|
'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
|
7781
7772
|
'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
|
@@ -7791,14 +7782,14 @@ var isHTMLTag$1 = makeMap$1(
|
|
7791
7782
|
|
7792
7783
|
// this map is intentionally selective, only covering SVG elements that may
|
7793
7784
|
// contain child elements.
|
7794
|
-
var isSVG
|
7785
|
+
var isSVG = makeMap(
|
7795
7786
|
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
|
7796
7787
|
'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
7797
7788
|
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
7798
7789
|
true
|
7799
7790
|
);
|
7800
7791
|
|
7801
|
-
var isReservedTag
|
7792
|
+
var isReservedTag = function (tag) { return isHTMLTag(tag) || isSVG(tag); };
|
7802
7793
|
|
7803
7794
|
//
|
7804
7795
|
|
@@ -8027,9 +8018,9 @@ function isValidStub(stub) {
|
|
8027
8018
|
function resolveComponent$1(obj, component) {
|
8028
8019
|
return (
|
8029
8020
|
obj[component] ||
|
8030
|
-
obj[hyphenate
|
8031
|
-
obj[camelize
|
8032
|
-
obj[capitalize(camelize
|
8021
|
+
obj[hyphenate(component)] ||
|
8022
|
+
obj[camelize(component)] ||
|
8023
|
+
obj[capitalize(camelize(component))] ||
|
8033
8024
|
obj[capitalize(component)] ||
|
8034
8025
|
{}
|
8035
8026
|
)
|
@@ -8103,7 +8094,7 @@ function createStubFromComponent(
|
|
8103
8094
|
{$_vueTestUtils_original: originalComponent,
|
8104
8095
|
$_doNotStubChildren: true,
|
8105
8096
|
render: function render(h, context) {
|
8106
|
-
var this$1 = this;
|
8097
|
+
var this$1$1 = this;
|
8107
8098
|
|
8108
8099
|
return h(
|
8109
8100
|
tagName,
|
@@ -8117,7 +8108,7 @@ function createStubFromComponent(
|
|
8117
8108
|
context
|
8118
8109
|
? context.children
|
8119
8110
|
: this.$options._renderChildren ||
|
8120
|
-
getScopedSlotRenderFunctions(this).map(function (x) { return this$1.$options.parent._vnode.data.scopedSlots[x]({}); }
|
8111
|
+
getScopedSlotRenderFunctions(this).map(function (x) { return this$1$1.$options.parent._vnode.data.scopedSlots[x]({}); }
|
8121
8112
|
)
|
8122
8113
|
)
|
8123
8114
|
}})
|
@@ -8224,7 +8215,7 @@ function shouldExtend(component, _Vue) {
|
|
8224
8215
|
return isConstructor(component) || (component && component.extends)
|
8225
8216
|
}
|
8226
8217
|
|
8227
|
-
function extend
|
8218
|
+
function extend(component, _Vue) {
|
8228
8219
|
var componentOptions = component.options ? component.options : component;
|
8229
8220
|
var stub = _Vue.extend(componentOptions);
|
8230
8221
|
stub.options.$_vueTestUtils_original = component;
|
@@ -8238,13 +8229,13 @@ function createStubIfNeeded(shouldStub, component, _Vue, el) {
|
|
8238
8229
|
}
|
8239
8230
|
|
8240
8231
|
if (shouldExtend(component)) {
|
8241
|
-
return extend
|
8232
|
+
return extend(component, _Vue)
|
8242
8233
|
}
|
8243
8234
|
}
|
8244
8235
|
|
8245
8236
|
function shouldNotBeStubbed(el, allowlist, modifiedComponents) {
|
8246
8237
|
return (
|
8247
|
-
(typeof el === 'string' && isReservedTag
|
8238
|
+
(typeof el === 'string' && isReservedTag(el)) ||
|
8248
8239
|
isAllowlisted(el, allowlist) ||
|
8249
8240
|
isAlreadyStubbed(el, modifiedComponents)
|
8250
8241
|
)
|
@@ -8284,7 +8275,7 @@ function patchCreateElement(_Vue, stubs, stubAllComponents) {
|
|
8284
8275
|
var stub = createStubFromComponent(el, el.name || 'anonymous', _Vue);
|
8285
8276
|
return originalCreateElement.apply(void 0, [ stub ].concat( args ))
|
8286
8277
|
}
|
8287
|
-
var Constructor = shouldExtend(el) ? extend
|
8278
|
+
var Constructor = shouldExtend(el) ? extend(el, _Vue) : el;
|
8288
8279
|
|
8289
8280
|
return originalCreateElement.apply(void 0, [ Constructor ].concat( args ))
|
8290
8281
|
}
|
@@ -8496,9 +8487,9 @@ function vmMatchesName(vm, name) {
|
|
8496
8487
|
// testComponent -> TestComponent
|
8497
8488
|
componentName === capitalize(name) ||
|
8498
8489
|
// test-component -> TestComponent
|
8499
|
-
componentName === capitalize(camelize
|
8490
|
+
componentName === capitalize(camelize(name)) ||
|
8500
8491
|
// same match as above, but the component name vs query
|
8501
|
-
capitalize(camelize
|
8492
|
+
capitalize(camelize(componentName)) === name)
|
8502
8493
|
)
|
8503
8494
|
}
|
8504
8495
|
|
@@ -8733,7 +8724,7 @@ function addGlobalErrorHandler(_Vue) {
|
|
8733
8724
|
}
|
8734
8725
|
|
8735
8726
|
if (_Vue.config.errorHandler && !hasWarned) {
|
8736
|
-
warn
|
8727
|
+
warn(
|
8737
8728
|
"Global error handler detected (Vue.config.errorHandler). \n" +
|
8738
8729
|
"Vue Test Utils sets a custom error handler to throw errors " +
|
8739
8730
|
"thrown by instances. If you want this behavior in " +
|
@@ -8751,7 +8742,7 @@ function normalizeStubs(stubs) {
|
|
8751
8742
|
if (stubs === false) {
|
8752
8743
|
return false
|
8753
8744
|
}
|
8754
|
-
if (isPlainObject
|
8745
|
+
if (isPlainObject(stubs)) {
|
8755
8746
|
return stubs
|
8756
8747
|
}
|
8757
8748
|
if (Array.isArray(stubs)) {
|
@@ -8823,7 +8814,7 @@ function mergeOptions(
|
|
8823
8814
|
methods: methods})
|
8824
8815
|
}
|
8825
8816
|
|
8826
|
-
var config
|
8817
|
+
var config = {
|
8827
8818
|
stubs: {
|
8828
8819
|
transition: true,
|
8829
8820
|
'transition-group': true
|
@@ -9287,7 +9278,7 @@ var token = {
|
|
9287
9278
|
Token: Token_1
|
9288
9279
|
};
|
9289
9280
|
|
9290
|
-
var acorn = createCommonjsModule
|
9281
|
+
var acorn = createCommonjsModule(function (module, exports) {
|
9291
9282
|
|
9292
9283
|
// acorn used char codes to squeeze the last bit of performance out
|
9293
9284
|
// Beautifier is okay without that, so we're using regex
|
@@ -10095,7 +10086,7 @@ Directives.prototype.readIgnored = function(input) {
|
|
10095
10086
|
|
10096
10087
|
var Directives_1 = Directives;
|
10097
10088
|
|
10098
|
-
var directives
|
10089
|
+
var directives = {
|
10099
10090
|
Directives: Directives_1
|
10100
10091
|
};
|
10101
10092
|
|
@@ -10265,7 +10256,7 @@ var templatablepattern = {
|
|
10265
10256
|
var InputScanner$2 = inputscanner.InputScanner;
|
10266
10257
|
var BaseTokenizer = tokenizer.Tokenizer;
|
10267
10258
|
var BASETOKEN = tokenizer.TOKEN;
|
10268
|
-
var Directives$1 = directives
|
10259
|
+
var Directives$1 = directives.Directives;
|
10269
10260
|
|
10270
10261
|
var Pattern$3 = pattern.Pattern;
|
10271
10262
|
var TemplatablePattern$1 = templatablepattern.TemplatablePattern;
|
@@ -12231,10 +12222,10 @@ function js_beautify(js_source_text, options) {
|
|
12231
12222
|
}
|
12232
12223
|
|
12233
12224
|
var javascript = js_beautify;
|
12234
|
-
var defaultOptions = function() {
|
12225
|
+
var defaultOptions$1 = function() {
|
12235
12226
|
return new Options$3();
|
12236
12227
|
};
|
12237
|
-
javascript.defaultOptions = defaultOptions;
|
12228
|
+
javascript.defaultOptions = defaultOptions$1;
|
12238
12229
|
|
12239
12230
|
var BaseOptions$1 = options.Options;
|
12240
12231
|
|
@@ -12260,7 +12251,7 @@ var options$2 = {
|
|
12260
12251
|
var Options$5 = options$2.Options;
|
12261
12252
|
var Output$2 = output.Output;
|
12262
12253
|
var InputScanner$3 = inputscanner.InputScanner;
|
12263
|
-
var Directives$2 = directives
|
12254
|
+
var Directives$2 = directives.Directives;
|
12264
12255
|
|
12265
12256
|
var directives_core$1 = new Directives$2(/\/\*/, /\*\//);
|
12266
12257
|
|
@@ -12711,10 +12702,10 @@ function css_beautify(source_text, options) {
|
|
12711
12702
|
}
|
12712
12703
|
|
12713
12704
|
var css = css_beautify;
|
12714
|
-
var defaultOptions$1 = function() {
|
12705
|
+
var defaultOptions$1$1 = function() {
|
12715
12706
|
return new Options$6();
|
12716
12707
|
};
|
12717
|
-
css.defaultOptions = defaultOptions$1;
|
12708
|
+
css.defaultOptions = defaultOptions$1$1;
|
12718
12709
|
|
12719
12710
|
var BaseOptions$2 = options.Options;
|
12720
12711
|
|
@@ -12784,7 +12775,7 @@ var options$3 = {
|
|
12784
12775
|
|
12785
12776
|
var BaseTokenizer$1 = tokenizer.Tokenizer;
|
12786
12777
|
var BASETOKEN$1 = tokenizer.TOKEN;
|
12787
|
-
var Directives$3 = directives
|
12778
|
+
var Directives$3 = directives.Directives;
|
12788
12779
|
var TemplatablePattern$2 = templatablepattern.TemplatablePattern;
|
12789
12780
|
var Pattern$4 = pattern.Pattern;
|
12790
12781
|
|
@@ -13889,30 +13880,30 @@ function style_html(html_source, options, js_beautify, css_beautify) {
|
|
13889
13880
|
return beautifier.beautify();
|
13890
13881
|
}
|
13891
13882
|
|
13892
|
-
var html
|
13883
|
+
var html = style_html;
|
13893
13884
|
var defaultOptions$2 = function() {
|
13894
13885
|
return new Options$9();
|
13895
13886
|
};
|
13896
|
-
html
|
13887
|
+
html.defaultOptions = defaultOptions$2;
|
13897
13888
|
|
13898
13889
|
function style_html$1(html_source, options, js, css$1) {
|
13899
13890
|
js = js || javascript;
|
13900
13891
|
css$1 = css$1 || css;
|
13901
|
-
return html
|
13892
|
+
return html(html_source, options, js, css$1);
|
13902
13893
|
}
|
13903
|
-
style_html$1.defaultOptions = html
|
13894
|
+
style_html$1.defaultOptions = html.defaultOptions;
|
13904
13895
|
|
13905
13896
|
var js = javascript;
|
13906
13897
|
var css$1 = css;
|
13907
|
-
var html$1
|
13898
|
+
var html$1 = style_html$1;
|
13908
13899
|
|
13909
13900
|
var src = {
|
13910
13901
|
js: js,
|
13911
13902
|
css: css$1,
|
13912
|
-
html: html$1
|
13903
|
+
html: html$1
|
13913
13904
|
};
|
13914
13905
|
|
13915
|
-
var js$1 = createCommonjsModule
|
13906
|
+
var js$1 = createCommonjsModule(function (module) {
|
13916
13907
|
|
13917
13908
|
/**
|
13918
13909
|
The following batches are equivalent:
|
@@ -14010,7 +14001,7 @@ var extendShallow = function extend(o/*, objects*/) {
|
|
14010
14001
|
|
14011
14002
|
function assign(a, b) {
|
14012
14003
|
for (var key in b) {
|
14013
|
-
if (hasOwn
|
14004
|
+
if (hasOwn(b, key)) {
|
14014
14005
|
a[key] = b[key];
|
14015
14006
|
}
|
14016
14007
|
}
|
@@ -14020,7 +14011,7 @@ function assign(a, b) {
|
|
14020
14011
|
* Returns true if the given `key` is an own property of `obj`.
|
14021
14012
|
*/
|
14022
14013
|
|
14023
|
-
function hasOwn
|
14014
|
+
function hasOwn(obj, key) {
|
14024
14015
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
14025
14016
|
}
|
14026
14017
|
|
@@ -14820,8 +14811,8 @@ function recursivelySetData(vm, target, data) {
|
|
14820
14811
|
var targetVal = target[key];
|
14821
14812
|
|
14822
14813
|
if (
|
14823
|
-
isPlainObject
|
14824
|
-
isPlainObject
|
14814
|
+
isPlainObject(val) &&
|
14815
|
+
isPlainObject(targetVal) &&
|
14825
14816
|
Object.keys(val).length > 0
|
14826
14817
|
) {
|
14827
14818
|
recursivelySetData(vm, targetVal, val);
|
@@ -14899,7 +14890,7 @@ var boundary = {
|
|
14899
14890
|
bubbles: false,
|
14900
14891
|
cancelable: false
|
14901
14892
|
};
|
14902
|
-
var cached
|
14893
|
+
var cached = {
|
14903
14894
|
eventInterface: "Event",
|
14904
14895
|
bubbles: false,
|
14905
14896
|
cancelable: false
|
@@ -15697,7 +15688,7 @@ var domEventTypes = {
|
|
15697
15688
|
beginEvent: beginEvent,
|
15698
15689
|
blur: blur,
|
15699
15690
|
boundary: boundary,
|
15700
|
-
cached: cached
|
15691
|
+
cached: cached,
|
15701
15692
|
canplay: canplay,
|
15702
15693
|
canplaythrough: canplaythrough,
|
15703
15694
|
change: change,
|
@@ -15873,7 +15864,7 @@ var domEventTypes$1 = /*#__PURE__*/Object.freeze({
|
|
15873
15864
|
beginEvent: beginEvent,
|
15874
15865
|
blur: blur,
|
15875
15866
|
boundary: boundary,
|
15876
|
-
cached: cached
|
15867
|
+
cached: cached,
|
15877
15868
|
canplay: canplay,
|
15878
15869
|
canplaythrough: canplaythrough,
|
15879
15870
|
change: change,
|
@@ -16226,7 +16217,7 @@ var Wrapper = function Wrapper(
|
|
16226
16217
|
*/
|
16227
16218
|
Wrapper.prototype.__warnIfDestroyed = function __warnIfDestroyed () {
|
16228
16219
|
if (!this.exists()) {
|
16229
|
-
warn
|
16220
|
+
warn('Operations on destroyed component are discouraged');
|
16230
16221
|
}
|
16231
16222
|
};
|
16232
16223
|
|
@@ -16256,7 +16247,7 @@ Wrapper.prototype.attributes = function attributes (key) {
|
|
16256
16247
|
* Returns an Array containing all the classes on the element
|
16257
16248
|
*/
|
16258
16249
|
Wrapper.prototype.classes = function classes (className) {
|
16259
|
-
var this$1 = this;
|
16250
|
+
var this$1$1 = this;
|
16260
16251
|
|
16261
16252
|
this.__warnIfDestroyed();
|
16262
16253
|
|
@@ -16267,7 +16258,7 @@ Wrapper.prototype.classes = function classes (className) {
|
|
16267
16258
|
var cssModuleIdentifiers = Object.keys(this.vm.$style).reduce(
|
16268
16259
|
function (acc, key) {
|
16269
16260
|
// $FlowIgnore
|
16270
|
-
var moduleIdent = this$1.vm.$style[key];
|
16261
|
+
var moduleIdent = this$1$1.vm.$style[key];
|
16271
16262
|
if (moduleIdent) {
|
16272
16263
|
acc[moduleIdent.split(' ')[0]] = key;
|
16273
16264
|
}
|
@@ -16467,7 +16458,7 @@ Wrapper.prototype.__findAll = function __findAll (
|
|
16467
16458
|
selector,
|
16468
16459
|
filterFn
|
16469
16460
|
) {
|
16470
|
-
var this$1 = this;
|
16461
|
+
var this$1$1 = this;
|
16471
16462
|
if ( filterFn === void 0 ) filterFn = function () { return true; };
|
16472
16463
|
|
16473
16464
|
var nodes = find(this.rootNode, this.vm, selector);
|
@@ -16475,7 +16466,7 @@ Wrapper.prototype.__findAll = function __findAll (
|
|
16475
16466
|
.map(function (node) {
|
16476
16467
|
// Using CSS Selector, returns a VueWrapper instance if the root element
|
16477
16468
|
// binds a Vue instance.
|
16478
|
-
var wrapper = createWrapper(node, this$1.options);
|
16469
|
+
var wrapper = createWrapper(node, this$1$1.options);
|
16479
16470
|
wrapper.selector = rawSelector;
|
16480
16471
|
return wrapper
|
16481
16472
|
})
|
@@ -16598,7 +16589,7 @@ Wrapper.prototype.name = function name () {
|
|
16598
16589
|
* @deprecated
|
16599
16590
|
*/
|
16600
16591
|
Wrapper.prototype.overview = function overview () {
|
16601
|
-
var this$1 = this;
|
16592
|
+
var this$1$1 = this;
|
16602
16593
|
|
16603
16594
|
warnDeprecated("overview");
|
16604
16595
|
this.__warnIfDestroyed();
|
@@ -16631,7 +16622,7 @@ Wrapper.prototype.overview = function overview () {
|
|
16631
16622
|
void 0, Object.keys(this.vm._computedWatchers).map(function (computedKey) {
|
16632
16623
|
var obj;
|
16633
16624
|
|
16634
|
-
return (( obj = {}, obj[computedKey] = this$1.vm[computedKey], obj ));
|
16625
|
+
return (( obj = {}, obj[computedKey] = this$1$1.vm[computedKey], obj ));
|
16635
16626
|
})
|
16636
16627
|
)
|
16637
16628
|
: // $FlowIgnore
|
@@ -16678,7 +16669,7 @@ Wrapper.prototype.overview = function overview () {
|
|
16678
16669
|
* Returns an Object containing the prop name/value pairs on the element
|
16679
16670
|
*/
|
16680
16671
|
Wrapper.prototype.props = function props (key) {
|
16681
|
-
var this$1 = this;
|
16672
|
+
var this$1$1 = this;
|
16682
16673
|
|
16683
16674
|
if (this.isFunctionalComponent) {
|
16684
16675
|
throwError(
|
@@ -16695,8 +16686,8 @@ Wrapper.prototype.props = function props (key) {
|
|
16695
16686
|
|
16696
16687
|
if (keys) {
|
16697
16688
|
(keys || {}).forEach(function (key) {
|
16698
|
-
if (this$1.vm) {
|
16699
|
-
props[key] = this$1.vm[key];
|
16689
|
+
if (this$1$1.vm) {
|
16690
|
+
props[key] = this$1$1.vm[key];
|
16700
16691
|
}
|
16701
16692
|
});
|
16702
16693
|
}
|
@@ -16824,7 +16815,7 @@ Wrapper.prototype.setData = function setData (data) {
|
|
16824
16815
|
* @deprecated
|
16825
16816
|
*/
|
16826
16817
|
Wrapper.prototype.setMethods = function setMethods (methods) {
|
16827
|
-
var this$1 = this;
|
16818
|
+
var this$1$1 = this;
|
16828
16819
|
|
16829
16820
|
warnDeprecated(
|
16830
16821
|
"setMethods",
|
@@ -16838,9 +16829,9 @@ Wrapper.prototype.setMethods = function setMethods (methods) {
|
|
16838
16829
|
|
16839
16830
|
Object.keys(methods).forEach(function (key) {
|
16840
16831
|
// $FlowIgnore : Problem with possibly null this.vm
|
16841
|
-
this$1.vm[key] = methods[key];
|
16832
|
+
this$1$1.vm[key] = methods[key];
|
16842
16833
|
// $FlowIgnore : Problem with possibly null this.vm
|
16843
|
-
this$1.vm.$options.methods[key] = methods[key];
|
16834
|
+
this$1$1.vm.$options.methods[key] = methods[key];
|
16844
16835
|
});
|
16845
16836
|
|
16846
16837
|
if (this.vnode) {
|
@@ -16853,7 +16844,7 @@ Wrapper.prototype.setMethods = function setMethods (methods) {
|
|
16853
16844
|
* Sets vm props
|
16854
16845
|
*/
|
16855
16846
|
Wrapper.prototype.setProps = function setProps (data) {
|
16856
|
-
var this$1 = this;
|
16847
|
+
var this$1$1 = this;
|
16857
16848
|
|
16858
16849
|
// Validate the setProps method call
|
16859
16850
|
if (this.isFunctionalComponent) {
|
@@ -16881,7 +16872,7 @@ Wrapper.prototype.setProps = function setProps (data) {
|
|
16881
16872
|
typeof data[key] === 'object' &&
|
16882
16873
|
data[key] !== null &&
|
16883
16874
|
// $FlowIgnore : Problem with possibly null this.vm
|
16884
|
-
data[key] === this$1.vm[key]
|
16875
|
+
data[key] === this$1$1.vm[key]
|
16885
16876
|
) {
|
16886
16877
|
throwError(
|
16887
16878
|
"wrapper.setProps() called with the same object of the existing " +
|
@@ -16892,9 +16883,9 @@ Wrapper.prototype.setProps = function setProps (data) {
|
|
16892
16883
|
|
16893
16884
|
if (
|
16894
16885
|
VUE_VERSION <= 2.3 &&
|
16895
|
-
(!this$1.vm ||
|
16896
|
-
!this$1.vm.$options._propKeys ||
|
16897
|
-
!this$1.vm.$options._propKeys.some(function (prop) { return prop === key; }))
|
16886
|
+
(!this$1$1.vm ||
|
16887
|
+
!this$1$1.vm.$options._propKeys ||
|
16888
|
+
!this$1$1.vm.$options._propKeys.some(function (prop) { return prop === key; }))
|
16898
16889
|
) {
|
16899
16890
|
throwError(
|
16900
16891
|
"wrapper.setProps() called with " + key + " property which " +
|
@@ -16903,7 +16894,7 @@ Wrapper.prototype.setProps = function setProps (data) {
|
|
16903
16894
|
}
|
16904
16895
|
|
16905
16896
|
// $FlowIgnore : Problem with possibly null this.vm
|
16906
|
-
var parent = this$1.vm.$parent;
|
16897
|
+
var parent = this$1$1.vm.$parent;
|
16907
16898
|
parent.$set(parent.vueTestUtils_childProps, key, data[key]);
|
16908
16899
|
});
|
16909
16900
|
|
@@ -16979,16 +16970,16 @@ Wrapper.prototype.text = function text () {
|
|
16979
16970
|
* Simulates event triggering
|
16980
16971
|
*/
|
16981
16972
|
Wrapper.prototype.__simulateTrigger = function __simulateTrigger (type, options) {
|
16982
|
-
var this$1 = this;
|
16973
|
+
var this$1$1 = this;
|
16983
16974
|
|
16984
16975
|
var regularEventTrigger = function (type, options) {
|
16985
16976
|
var event = createDOMEvent(type, options);
|
16986
|
-
return this$1.element.dispatchEvent(event)
|
16977
|
+
return this$1$1.element.dispatchEvent(event)
|
16987
16978
|
};
|
16988
16979
|
|
16989
16980
|
var focusEventTrigger = function (type, options) {
|
16990
|
-
if (this$1.element instanceof HTMLElement) {
|
16991
|
-
return this$1.element.focus()
|
16981
|
+
if (this$1$1.element instanceof HTMLElement) {
|
16982
|
+
return this$1$1.element.focus()
|
16992
16983
|
}
|
16993
16984
|
|
16994
16985
|
regularEventTrigger(type, options);
|
@@ -17054,12 +17045,12 @@ Wrapper.prototype.trigger = function trigger (type, options) {
|
|
17054
17045
|
|
17055
17046
|
var VueWrapper = /*@__PURE__*/(function (Wrapper) {
|
17056
17047
|
function VueWrapper(vm, options) {
|
17057
|
-
var this$1 = this;
|
17048
|
+
var this$1$1 = this;
|
17058
17049
|
|
17059
17050
|
Wrapper.call(this, vm._vnode, options, true);
|
17060
17051
|
// $FlowIgnore : issue with defineProperty
|
17061
17052
|
Object.defineProperty(this, 'rootNode', {
|
17062
|
-
get: function () { return vm.$vnode || { child: this$1.vm }; },
|
17053
|
+
get: function () { return vm.$vnode || { child: this$1$1.vm }; },
|
17063
17054
|
set: function () { return throwError('wrapper.vnode is read-only'); }
|
17064
17055
|
});
|
17065
17056
|
// $FlowIgnore : issue with defineProperty
|
@@ -17214,10 +17205,10 @@ function assocIndexOf(array, key) {
|
|
17214
17205
|
var _assocIndexOf = assocIndexOf;
|
17215
17206
|
|
17216
17207
|
/** Used for built-in method references. */
|
17217
|
-
var arrayProto
|
17208
|
+
var arrayProto = Array.prototype;
|
17218
17209
|
|
17219
17210
|
/** Built-in value references. */
|
17220
|
-
var splice = arrayProto
|
17211
|
+
var splice = arrayProto.splice;
|
17221
17212
|
|
17222
17213
|
/**
|
17223
17214
|
* Removes `key` and its value from the list cache.
|
@@ -17396,7 +17387,7 @@ function stackHas(key) {
|
|
17396
17387
|
var _stackHas = stackHas;
|
17397
17388
|
|
17398
17389
|
/** Detect free variable `global` from Node.js. */
|
17399
|
-
var freeGlobal = typeof commonjsGlobal
|
17390
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
17400
17391
|
|
17401
17392
|
var _freeGlobal = freeGlobal;
|
17402
17393
|
|
@@ -17417,7 +17408,7 @@ var _Symbol = Symbol$1;
|
|
17417
17408
|
var objectProto = Object.prototype;
|
17418
17409
|
|
17419
17410
|
/** Used to check objects for own properties. */
|
17420
|
-
var hasOwnProperty$1
|
17411
|
+
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
17421
17412
|
|
17422
17413
|
/**
|
17423
17414
|
* Used to resolve the
|
@@ -17437,7 +17428,7 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
17437
17428
|
* @returns {string} Returns the raw `toStringTag`.
|
17438
17429
|
*/
|
17439
17430
|
function getRawTag(value) {
|
17440
|
-
var isOwn = hasOwnProperty$1
|
17431
|
+
var isOwn = hasOwnProperty$1.call(value, symToStringTag),
|
17441
17432
|
tag = value[symToStringTag];
|
17442
17433
|
|
17443
17434
|
try {
|
@@ -17531,12 +17522,12 @@ var _baseGetTag = baseGetTag;
|
|
17531
17522
|
* _.isObject(null);
|
17532
17523
|
* // => false
|
17533
17524
|
*/
|
17534
|
-
function isObject
|
17525
|
+
function isObject(value) {
|
17535
17526
|
var type = typeof value;
|
17536
17527
|
return value != null && (type == 'object' || type == 'function');
|
17537
17528
|
}
|
17538
17529
|
|
17539
|
-
var isObject_1 = isObject
|
17530
|
+
var isObject_1 = isObject;
|
17540
17531
|
|
17541
17532
|
/** `Object#toString` result references. */
|
17542
17533
|
var asyncTag = '[object AsyncFunction]',
|
@@ -18304,7 +18295,7 @@ function stubFalse() {
|
|
18304
18295
|
|
18305
18296
|
var stubFalse_1 = stubFalse;
|
18306
18297
|
|
18307
|
-
var isBuffer_1$1 = createCommonjsModule
|
18298
|
+
var isBuffer_1$1 = createCommonjsModule(function (module, exports) {
|
18308
18299
|
/** Detect free variable `exports`. */
|
18309
18300
|
var freeExports = exports && !exports.nodeType && exports;
|
18310
18301
|
|
@@ -18476,7 +18467,7 @@ function baseUnary(func) {
|
|
18476
18467
|
|
18477
18468
|
var _baseUnary = baseUnary;
|
18478
18469
|
|
18479
|
-
var _nodeUtil = createCommonjsModule
|
18470
|
+
var _nodeUtil = createCommonjsModule(function (module, exports) {
|
18480
18471
|
/** Detect free variable `exports`. */
|
18481
18472
|
var freeExports = exports && !exports.nodeType && exports;
|
18482
18473
|
|
@@ -18817,7 +18808,7 @@ function baseAssignIn(object, source) {
|
|
18817
18808
|
|
18818
18809
|
var _baseAssignIn = baseAssignIn;
|
18819
18810
|
|
18820
|
-
var _cloneBuffer = createCommonjsModule
|
18811
|
+
var _cloneBuffer = createCommonjsModule(function (module, exports) {
|
18821
18812
|
/** Detect free variable `exports`. */
|
18822
18813
|
var freeExports = exports && !exports.nodeType && exports;
|
18823
18814
|
|
@@ -19752,7 +19743,7 @@ function validateOptions(options, component) {
|
|
19752
19743
|
"options.attachToDocument is deprecated in favor of options.attachTo and will be removed in a future release"
|
19753
19744
|
);
|
19754
19745
|
}
|
19755
|
-
if (options.parentComponent && !isPlainObject
|
19746
|
+
if (options.parentComponent && !isPlainObject(options.parentComponent)) {
|
19756
19747
|
throwError(
|
19757
19748
|
"options.parentComponent should be a valid Vue component options object"
|
19758
19749
|
);
|
@@ -19764,7 +19755,7 @@ function validateOptions(options, component) {
|
|
19764
19755
|
);
|
19765
19756
|
}
|
19766
19757
|
|
19767
|
-
if (options.context && !isPlainObject
|
19758
|
+
if (options.context && !isPlainObject(options.context)) {
|
19768
19759
|
throwError('mount.context must be an object');
|
19769
19760
|
}
|
19770
19761
|
|
@@ -19789,7 +19780,7 @@ function validateOptions(options, component) {
|
|
19789
19780
|
Vue__default['default'].config.productionTip = false;
|
19790
19781
|
Vue__default['default'].config.devtools = false;
|
19791
19782
|
|
19792
|
-
function mount(component, options) {
|
19783
|
+
function mount$1(component, options) {
|
19793
19784
|
if ( options === void 0 ) options = {};
|
19794
19785
|
|
19795
19786
|
warnIfNoWindow();
|
@@ -19803,7 +19794,7 @@ function mount(component, options) {
|
|
19803
19794
|
options.localVue ? options.localVue.config : undefined
|
19804
19795
|
);
|
19805
19796
|
|
19806
|
-
var mergedOptions = mergeOptions(options, config
|
19797
|
+
var mergedOptions = mergeOptions(options, config);
|
19807
19798
|
|
19808
19799
|
validateOptions(mergedOptions, component);
|
19809
19800
|
|
@@ -19844,7 +19835,7 @@ function createLocalVue(config) {
|
|
19844
19835
|
}
|
19845
19836
|
var createLocalVue_1 = createLocalVue;
|
19846
19837
|
var enableAutoDestroy_1 = enableAutoDestroy;
|
19847
|
-
var mount_1 = mount;
|
19838
|
+
var mount_1 = mount$1;
|
19848
19839
|
|
19849
19840
|
const ROOT_SELECTOR = '[data-cy-root]';
|
19850
19841
|
const getContainerEl = () => {
|
@@ -19988,7 +19979,7 @@ function setupHooks(optionalCallback) {
|
|
19988
19979
|
});
|
19989
19980
|
}
|
19990
19981
|
|
19991
|
-
var defaultOptions
|
19982
|
+
var defaultOptions = [
|
19992
19983
|
'vue',
|
19993
19984
|
'extensions',
|
19994
19985
|
];
|
@@ -20113,10 +20104,10 @@ function getComponentDisplayName(componentOptions) {
|
|
20113
20104
|
* cy.get('#greeting').should('be.visible')
|
20114
20105
|
* })
|
20115
20106
|
*/
|
20116
|
-
var mount
|
20107
|
+
var mount = function (component, optionsOrProps) {
|
20117
20108
|
if (optionsOrProps === void 0) { optionsOrProps = {}; }
|
20118
|
-
var options = Cypress._.pick(optionsOrProps, defaultOptions
|
20119
|
-
var props = Cypress._.omit(optionsOrProps, defaultOptions
|
20109
|
+
var options = Cypress._.pick(optionsOrProps, defaultOptions);
|
20110
|
+
var props = Cypress._.omit(optionsOrProps, defaultOptions);
|
20120
20111
|
var componentName = getComponentDisplayName(component);
|
20121
20112
|
var message = "<" + componentName + " ... />";
|
20122
20113
|
return cy
|
@@ -20179,7 +20170,7 @@ var mount$1 = function (component, optionsOrProps) {
|
|
20179
20170
|
* beforeEach(mountVue(component, options))
|
20180
20171
|
*/
|
20181
20172
|
var mountCallback = function (component, options) {
|
20182
|
-
return function () { return mount
|
20173
|
+
return function () { return mount(component, options); };
|
20183
20174
|
};
|
20184
20175
|
// Side effects from "import { mount } from '@cypress/<my-framework>'" are annoying, we should avoid doing this
|
20185
20176
|
// by creating an explicit function/import that the user can register in their 'component.js' support file,
|
@@ -20191,4 +20182,4 @@ var mountCallback = function (component, options) {
|
|
20191
20182
|
// Note: This would be a breaking change
|
20192
20183
|
setupHooks();
|
20193
20184
|
|
20194
|
-
export { mount
|
20185
|
+
export { mount, mountCallback };
|