vue-tippy 6.0.0-alpha.41 → 6.0.0-alpha.45

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * vue-tippy v6.0.0-alpha.41
3
- * (c) 2021
2
+ * vue-tippy v6.0.0-alpha.45
3
+ * (c) 2022
4
4
  * @license MIT
5
5
  */
6
6
  'use strict';
@@ -436,16 +436,7 @@ function effect$1(_ref2) {
436
436
  }
437
437
  }
438
438
 
439
- if (process.env.NODE_ENV !== "production") {
440
- if (!isHTMLElement(arrowElement)) {
441
- console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
442
- }
443
- }
444
-
445
439
  if (!contains(state.elements.popper, arrowElement)) {
446
- if (process.env.NODE_ENV !== "production") {
447
- console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
448
- }
449
440
 
450
441
  return;
451
442
  }
@@ -571,16 +562,6 @@ function computeStyles(_ref4) {
571
562
  _options$roundOffsets = options.roundOffsets,
572
563
  roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
573
564
 
574
- if (process.env.NODE_ENV !== "production") {
575
- var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';
576
-
577
- if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
578
- return transitionProperty.indexOf(property) >= 0;
579
- })) {
580
- console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
581
- }
582
- }
583
-
584
565
  var commonStyles = {
585
566
  placement: getBasePlacement(state.placement),
586
567
  variation: getVariation(state.placement),
@@ -1029,10 +1010,6 @@ function computeAutoPlacement(state, options) {
1029
1010
 
1030
1011
  if (allowedPlacements.length === 0) {
1031
1012
  allowedPlacements = placements$1;
1032
-
1033
- if (process.env.NODE_ENV !== "production") {
1034
- console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
1035
- }
1036
1013
  } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1037
1014
 
1038
1015
 
@@ -1584,108 +1561,6 @@ function debounce(fn) {
1584
1561
  };
1585
1562
  }
1586
1563
 
1587
- function format(str) {
1588
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1589
- args[_key - 1] = arguments[_key];
1590
- }
1591
-
1592
- return [].concat(args).reduce(function (p, c) {
1593
- return p.replace(/%s/, c);
1594
- }, str);
1595
- }
1596
-
1597
- var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
1598
- var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
1599
- var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
1600
- function validateModifiers(modifiers) {
1601
- modifiers.forEach(function (modifier) {
1602
- [].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
1603
- .filter(function (value, index, self) {
1604
- return self.indexOf(value) === index;
1605
- }).forEach(function (key) {
1606
- switch (key) {
1607
- case 'name':
1608
- if (typeof modifier.name !== 'string') {
1609
- console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
1610
- }
1611
-
1612
- break;
1613
-
1614
- case 'enabled':
1615
- if (typeof modifier.enabled !== 'boolean') {
1616
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
1617
- }
1618
-
1619
- break;
1620
-
1621
- case 'phase':
1622
- if (modifierPhases.indexOf(modifier.phase) < 0) {
1623
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
1624
- }
1625
-
1626
- break;
1627
-
1628
- case 'fn':
1629
- if (typeof modifier.fn !== 'function') {
1630
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
1631
- }
1632
-
1633
- break;
1634
-
1635
- case 'effect':
1636
- if (modifier.effect != null && typeof modifier.effect !== 'function') {
1637
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
1638
- }
1639
-
1640
- break;
1641
-
1642
- case 'requires':
1643
- if (modifier.requires != null && !Array.isArray(modifier.requires)) {
1644
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
1645
- }
1646
-
1647
- break;
1648
-
1649
- case 'requiresIfExists':
1650
- if (!Array.isArray(modifier.requiresIfExists)) {
1651
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
1652
- }
1653
-
1654
- break;
1655
-
1656
- case 'options':
1657
- case 'data':
1658
- break;
1659
-
1660
- default:
1661
- console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
1662
- return "\"" + s + "\"";
1663
- }).join(', ') + "; but \"" + key + "\" was provided.");
1664
- }
1665
-
1666
- modifier.requires && modifier.requires.forEach(function (requirement) {
1667
- if (modifiers.find(function (mod) {
1668
- return mod.name === requirement;
1669
- }) == null) {
1670
- console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
1671
- }
1672
- });
1673
- });
1674
- });
1675
- }
1676
-
1677
- function uniqueBy(arr, fn) {
1678
- var identifiers = new Set();
1679
- return arr.filter(function (item) {
1680
- var identifier = fn(item);
1681
-
1682
- if (!identifiers.has(identifier)) {
1683
- identifiers.add(identifier);
1684
- return true;
1685
- }
1686
- });
1687
- }
1688
-
1689
1564
  function mergeByName(modifiers) {
1690
1565
  var merged = modifiers.reduce(function (merged, current) {
1691
1566
  var existing = merged[current.name];
@@ -1701,8 +1576,6 @@ function mergeByName(modifiers) {
1701
1576
  });
1702
1577
  }
1703
1578
 
1704
- var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
1705
- var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
1706
1579
  var DEFAULT_OPTIONS = {
1707
1580
  placement: 'bottom',
1708
1581
  modifiers: [],
@@ -1765,40 +1638,6 @@ function popperGenerator(generatorOptions) {
1765
1638
  state.orderedModifiers = orderedModifiers.filter(function (m) {
1766
1639
  return m.enabled;
1767
1640
  }); // Validate the provided modifiers so that the consumer will get warned
1768
- // if one of the modifiers is invalid for any reason
1769
-
1770
- if (process.env.NODE_ENV !== "production") {
1771
- var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
1772
- var name = _ref.name;
1773
- return name;
1774
- });
1775
- validateModifiers(modifiers);
1776
-
1777
- if (getBasePlacement(state.options.placement) === auto) {
1778
- var flipModifier = state.orderedModifiers.find(function (_ref2) {
1779
- var name = _ref2.name;
1780
- return name === 'flip';
1781
- });
1782
-
1783
- if (!flipModifier) {
1784
- console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
1785
- }
1786
- }
1787
-
1788
- var _getComputedStyle = getComputedStyle(popper),
1789
- marginTop = _getComputedStyle.marginTop,
1790
- marginRight = _getComputedStyle.marginRight,
1791
- marginBottom = _getComputedStyle.marginBottom,
1792
- marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
1793
- // cause bugs with positioning, so we'll warn the consumer
1794
-
1795
-
1796
- if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
1797
- return parseFloat(margin);
1798
- })) {
1799
- console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
1800
- }
1801
- }
1802
1641
 
1803
1642
  runModifierEffects();
1804
1643
  return instance.update();
@@ -1819,9 +1658,6 @@ function popperGenerator(generatorOptions) {
1819
1658
  // anymore
1820
1659
 
1821
1660
  if (!areValidElements(reference, popper)) {
1822
- if (process.env.NODE_ENV !== "production") {
1823
- console.error(INVALID_ELEMENT_ERROR);
1824
- }
1825
1661
 
1826
1662
  return;
1827
1663
  } // Store the reference and popper rects to be read by modifiers
@@ -1845,17 +1681,8 @@ function popperGenerator(generatorOptions) {
1845
1681
  state.orderedModifiers.forEach(function (modifier) {
1846
1682
  return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1847
1683
  });
1848
- var __debug_loops__ = 0;
1849
1684
 
1850
1685
  for (var index = 0; index < state.orderedModifiers.length; index++) {
1851
- if (process.env.NODE_ENV !== "production") {
1852
- __debug_loops__ += 1;
1853
-
1854
- if (__debug_loops__ > 100) {
1855
- console.error(INFINITE_LOOP_ERROR);
1856
- break;
1857
- }
1858
- }
1859
1686
 
1860
1687
  if (state.reset === true) {
1861
1688
  state.reset = false;
@@ -1894,9 +1721,6 @@ function popperGenerator(generatorOptions) {
1894
1721
  };
1895
1722
 
1896
1723
  if (!areValidElements(reference, popper)) {
1897
- if (process.env.NODE_ENV !== "production") {
1898
- console.error(INVALID_ELEMENT_ERROR);
1899
- }
1900
1724
 
1901
1725
  return instance;
1902
1726
  }
@@ -1968,10 +1792,6 @@ var TOUCH_OPTIONS = {
1968
1792
  var TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO() {
1969
1793
  return document.body;
1970
1794
  };
1971
-
1972
- function hasOwnProperty(obj, key) {
1973
- return {}.hasOwnProperty.call(obj, key);
1974
- }
1975
1795
  function getValueAtIndexOrReturn(value, index, defaultValue) {
1976
1796
  if (Array.isArray(value)) {
1977
1797
  var v = value[index];
@@ -2215,61 +2035,6 @@ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined'
2215
2035
  var isIE11 = isBrowser ? // @ts-ignore
2216
2036
  !!window.msCrypto : false;
2217
2037
 
2218
- function createMemoryLeakWarning(method) {
2219
- var txt = method === 'destroy' ? 'n already-' : ' ';
2220
- return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", 'indicates a potential memory leak.'].join(' ');
2221
- }
2222
- function clean(value) {
2223
- var spacesAndTabs = /[ \t]{2,}/g;
2224
- var lineStartWithSpaces = /^[ \t]*/gm;
2225
- return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
2226
- }
2227
-
2228
- function getDevMessage(message) {
2229
- return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");
2230
- }
2231
-
2232
- function getFormattedMessage(message) {
2233
- return [getDevMessage(message), // title
2234
- 'color: #00C584; font-size: 1.3em; font-weight: bold;', // message
2235
- 'line-height: 1.5', // footer
2236
- 'color: #a6a095;'];
2237
- } // Assume warnings and errors never have the same message
2238
-
2239
- var visitedMessages;
2240
-
2241
- if (process.env.NODE_ENV !== "production") {
2242
- resetVisitedMessages();
2243
- }
2244
-
2245
- function resetVisitedMessages() {
2246
- visitedMessages = new Set();
2247
- }
2248
- function warnWhen(condition, message) {
2249
- if (condition && !visitedMessages.has(message)) {
2250
- var _console;
2251
-
2252
- visitedMessages.add(message);
2253
-
2254
- (_console = console).warn.apply(_console, getFormattedMessage(message));
2255
- }
2256
- }
2257
- function errorWhen(condition, message) {
2258
- if (condition && !visitedMessages.has(message)) {
2259
- var _console2;
2260
-
2261
- visitedMessages.add(message);
2262
-
2263
- (_console2 = console).error.apply(_console2, getFormattedMessage(message));
2264
- }
2265
- }
2266
- function validateTargets(targets) {
2267
- var didPassFalsyValue = !targets;
2268
- var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
2269
- errorWhen(didPassFalsyValue, ['tippy() was passed', '`' + String(targets) + '`', 'as its targets (first) argument. Valid types are: String, Element,', 'Element[], or NodeList.'].join(' '));
2270
- errorWhen(didPassPlainObject, ['tippy() was passed a plain object which is not supported as an argument', 'for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));
2271
- }
2272
-
2273
2038
  var pluginProps = {
2274
2039
  animateFill: false,
2275
2040
  followCursor: false,
@@ -2326,10 +2091,6 @@ var defaultProps = Object.assign({
2326
2091
  }, pluginProps, renderProps);
2327
2092
  var defaultKeys = Object.keys(defaultProps);
2328
2093
  var setDefaultProps = function setDefaultProps(partialProps) {
2329
- /* istanbul ignore else */
2330
- if (process.env.NODE_ENV !== "production") {
2331
- validateProps(partialProps, []);
2332
- }
2333
2094
 
2334
2095
  var keys = Object.keys(partialProps);
2335
2096
  keys.forEach(function (key) {
@@ -2388,29 +2149,6 @@ function evaluateProps(reference, props) {
2388
2149
  };
2389
2150
  return out;
2390
2151
  }
2391
- function validateProps(partialProps, plugins) {
2392
- if (partialProps === void 0) {
2393
- partialProps = {};
2394
- }
2395
-
2396
- if (plugins === void 0) {
2397
- plugins = [];
2398
- }
2399
-
2400
- var keys = Object.keys(partialProps);
2401
- keys.forEach(function (prop) {
2402
- var nonPluginProps = removeProperties(defaultProps, Object.keys(pluginProps));
2403
- var didPassUnknownProp = !hasOwnProperty(nonPluginProps, prop); // Check if the prop exists in `plugins`
2404
-
2405
- if (didPassUnknownProp) {
2406
- didPassUnknownProp = plugins.filter(function (plugin) {
2407
- return plugin.name === prop;
2408
- }).length === 0;
2409
- }
2410
-
2411
- warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", 'a plugin, forgot to pass it in an array as props.plugins.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
2412
- });
2413
- }
2414
2152
 
2415
2153
  var innerHTML = function innerHTML() {
2416
2154
  return 'innerHTML';
@@ -2603,9 +2341,6 @@ function createTippy(reference, passedProps) {
2603
2341
  /* istanbul ignore if */
2604
2342
 
2605
2343
  if (!props.render) {
2606
- if (process.env.NODE_ENV !== "production") {
2607
- errorWhen(true, 'render() function has not been supplied.');
2608
- }
2609
2344
 
2610
2345
  return instance;
2611
2346
  } // ===========================================================================
@@ -3152,12 +2887,6 @@ function createTippy(reference, passedProps) {
3152
2887
 
3153
2888
  instance.state.isMounted = true;
3154
2889
  createPopperInstance();
3155
- /* istanbul ignore else */
3156
-
3157
- if (process.env.NODE_ENV !== "production") {
3158
- // Accessibility check
3159
- warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ['Interactive tippy element may not be accessible via keyboard', 'navigation because it is not directly after the reference element', 'in the DOM source order.', '\n\n', 'Using a wrapper <div> or <span> tag around the reference element', 'solves this by creating a new parentNode context.', '\n\n', 'Specifying `appendTo: document.body` silences this warning, but it', 'assumes you are using a focus management solution to handle', 'keyboard navigation.', '\n\n', 'See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity'].join(' '));
3160
- }
3161
2890
  }
3162
2891
 
3163
2892
  function getNestedPopperTree() {
@@ -3246,10 +2975,6 @@ function createTippy(reference, passedProps) {
3246
2975
  }
3247
2976
 
3248
2977
  function setProps(partialProps) {
3249
- /* istanbul ignore else */
3250
- if (process.env.NODE_ENV !== "production") {
3251
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('setProps'));
3252
- }
3253
2978
 
3254
2979
  if (instance.state.isDestroyed) {
3255
2980
  return;
@@ -3308,10 +3033,6 @@ function createTippy(reference, passedProps) {
3308
3033
  }
3309
3034
 
3310
3035
  function show() {
3311
- /* istanbul ignore else */
3312
- if (process.env.NODE_ENV !== "production") {
3313
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('show'));
3314
- } // Early bail-out
3315
3036
 
3316
3037
 
3317
3038
  var isAlreadyVisible = instance.state.isVisible;
@@ -3401,10 +3122,6 @@ function createTippy(reference, passedProps) {
3401
3122
  }
3402
3123
 
3403
3124
  function hide() {
3404
- /* istanbul ignore else */
3405
- if (process.env.NODE_ENV !== "production") {
3406
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hide'));
3407
- } // Early bail-out
3408
3125
 
3409
3126
 
3410
3127
  var isAlreadyHidden = !instance.state.isVisible;
@@ -3459,10 +3176,6 @@ function createTippy(reference, passedProps) {
3459
3176
  }
3460
3177
 
3461
3178
  function hideWithInteractivity(event) {
3462
- /* istanbul ignore else */
3463
- if (process.env.NODE_ENV !== "production") {
3464
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hideWithInteractivity'));
3465
- }
3466
3179
 
3467
3180
  getDocument().addEventListener('mousemove', debouncedOnMouseMove);
3468
3181
  pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
@@ -3470,10 +3183,6 @@ function createTippy(reference, passedProps) {
3470
3183
  }
3471
3184
 
3472
3185
  function unmount() {
3473
- /* istanbul ignore else */
3474
- if (process.env.NODE_ENV !== "production") {
3475
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('unmount'));
3476
- }
3477
3186
 
3478
3187
  if (instance.state.isVisible) {
3479
3188
  instance.hide();
@@ -3503,10 +3212,6 @@ function createTippy(reference, passedProps) {
3503
3212
  }
3504
3213
 
3505
3214
  function destroy() {
3506
- /* istanbul ignore else */
3507
- if (process.env.NODE_ENV !== "production") {
3508
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('destroy'));
3509
- }
3510
3215
 
3511
3216
  if (instance.state.isDestroyed) {
3512
3217
  return;
@@ -3527,25 +3232,12 @@ function tippy(targets, optionalProps) {
3527
3232
  }
3528
3233
 
3529
3234
  var plugins = defaultProps.plugins.concat(optionalProps.plugins || []);
3530
- /* istanbul ignore else */
3531
-
3532
- if (process.env.NODE_ENV !== "production") {
3533
- validateTargets(targets);
3534
- validateProps(optionalProps, plugins);
3535
- }
3536
3235
 
3537
3236
  bindGlobalEventListeners();
3538
3237
  var passedProps = Object.assign({}, optionalProps, {
3539
3238
  plugins: plugins
3540
3239
  });
3541
3240
  var elements = getArrayOfElements(targets);
3542
- /* istanbul ignore else */
3543
-
3544
- if (process.env.NODE_ENV !== "production") {
3545
- var isSingleContentElement = isElement$1(passedProps.content);
3546
- var isMoreThanOneReferenceElement = elements.length > 1;
3547
- warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ['tippy() was passed an Element as the `content` prop, but more than', 'one tippy instance was created by this invocation. This means the', 'content element will only be appended to the last tippy instance.', '\n\n', 'Instead, pass the .innerHTML of the element, or use a function that', 'returns a cloned version of the element instead.', '\n\n', '1) content: element.innerHTML\n', '2) content: () => element.cloneNode(true)'].join(' '));
3548
- }
3549
3241
 
3550
3242
  var instances = elements.reduce(function (acc, reference) {
3551
3243
  var instance = reference && createTippy(reference, passedProps);
@@ -3600,11 +3292,6 @@ var createSingleton = function createSingleton(tippyInstances, optionalProps) {
3600
3292
  optionalProps = {};
3601
3293
  }
3602
3294
 
3603
- /* istanbul ignore else */
3604
- if (process.env.NODE_ENV !== "production") {
3605
- errorWhen(!Array.isArray(tippyInstances), ['The first argument passed to createSingleton() must be an array of', 'tippy instances. The passed value was', String(tippyInstances)].join(' '));
3606
- }
3607
-
3608
3295
  var individualInstances = tippyInstances;
3609
3296
  var references = [];
3610
3297
  var triggerTargets = [];
@@ -3804,9 +3491,6 @@ var animateFill = {
3804
3491
 
3805
3492
  // @ts-ignore
3806
3493
  if (!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy)) {
3807
- if (process.env.NODE_ENV !== "production") {
3808
- errorWhen(instance.props.animateFill, 'The `animateFill` plugin requires the default render function.');
3809
- }
3810
3494
 
3811
3495
  return {};
3812
3496
  }
@@ -4326,8 +4010,13 @@ function useTippy(el, opts = {}, settings = { mount: true }) {
4326
4010
  ? options.triggerTarget.value
4327
4011
  : options.triggerTarget;
4328
4012
  }
4013
+ if (!options.plugins || !Array.isArray(options.plugins)) {
4014
+ options.plugins = [];
4015
+ }
4016
+ options.plugins = options.plugins.filter((plugin) => plugin.name !== 'vueTippyReactiveState');
4329
4017
  options.plugins.push({
4330
- fn() {
4018
+ name: 'vueTippyReactiveState',
4019
+ fn: () => {
4331
4020
  return {
4332
4021
  onCreate() {
4333
4022
  state.value.isEnabled = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tippy",
3
- "version": "6.0.0-alpha.41",
3
+ "version": "6.0.0-alpha.45",
4
4
  "main": "index.js",
5
5
  "module": "dist/vue-tippy.mjs",
6
6
  "unpkg": "dist/vue-tippy.iife.js",