@opentinyvue/vue-guide 2.24.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/pc.js +14 -15
  2. package/package.json +5 -5
package/lib/pc.js CHANGED
@@ -38,14 +38,14 @@ function _regenerator() {
38
38
  var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
39
39
  function i(r2, n2, o2, i2) {
40
40
  var c2 = n2 && n2.prototype instanceof Generator ? n2 : Generator, u2 = Object.create(c2.prototype);
41
- return _regeneratorDefine2(u2, "_invoke", function(r3, n3, o3) {
41
+ return _regeneratorDefine2(u2, "_invoke", (function(r3, n3, o3) {
42
42
  var i3, c3, u3, f2 = 0, p = o3 || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d2(t2, r4) {
43
43
  return i3 = t2, c3 = 0, u3 = e, G.n = r4, a;
44
44
  } };
45
45
  function d(r4, n4) {
46
46
  for (c3 = r4, u3 = n4, t = 0; !y && f2 && !o4 && t < p.length; t++) {
47
47
  var o4, i4 = p[t], d2 = G.p, l = i4[2];
48
- r4 > 3 ? (o4 = l === n4) && (c3 = i4[4] || 3, u3 = i4[5] === e ? i4[3] : i4[5], i4[4] = 3, i4[5] = e) : i4[0] <= d2 && ((o4 = r4 < 2 && d2 < i4[1]) ? (c3 = 0, G.v = n4, G.n = i4[1]) : d2 < l && (o4 = r4 < 3 || i4[0] > n4 || n4 > l) && (i4[4] = r4, i4[5] = n4, G.n = l, c3 = 0));
48
+ r4 > 3 ? (o4 = l === n4) && (u3 = i4[(c3 = i4[4]) ? 5 : (c3 = 3, 3)], i4[4] = i4[5] = e) : i4[0] <= d2 && ((o4 = r4 < 2 && d2 < i4[1]) ? (c3 = 0, G.v = n4, G.n = i4[1]) : d2 < l && (o4 = r4 < 3 || i4[0] > n4 || n4 > l) && (i4[4] = r4, i4[5] = n4, G.n = l, c3 = 0));
49
49
  }
50
50
  if (o4 || r4 > 1) return a;
51
51
  throw y = true, n4;
@@ -71,7 +71,7 @@ function _regenerator() {
71
71
  }
72
72
  return { value: t, done: y };
73
73
  };
74
- }(r2, o2, i2), true), u2;
74
+ })(r2, o2, i2), true), u2;
75
75
  }
76
76
  var a = {};
77
77
  function Generator() {
@@ -103,15 +103,12 @@ function _regeneratorDefine2(e, r, n, t) {
103
103
  i = 0;
104
104
  }
105
105
  _regeneratorDefine2 = function _regeneratorDefine(e2, r2, n2, t2) {
106
- if (r2) i ? i(e2, r2, { value: n2, enumerable: !t2, configurable: !t2, writable: !t2 }) : e2[r2] = n2;
107
- else {
108
- var o = function o2(r3, n3) {
109
- _regeneratorDefine2(e2, r3, function(e3) {
110
- return this._invoke(r3, n3, e3);
111
- });
112
- };
113
- o("next", 0), o("throw", 1), o("return", 2);
106
+ function o(r3, n3) {
107
+ _regeneratorDefine2(e2, r3, function(e3) {
108
+ return this._invoke(r3, n3, e3);
109
+ });
114
110
  }
111
+ r2 ? i ? i(e2, r2, { value: n2, enumerable: !t2, configurable: !t2, writable: !t2 }) : e2[r2] = n2 : (o("next", 0), o("throw", 1), o("return", 2));
115
112
  }, _regeneratorDefine2(e, r, n, t);
116
113
  }
117
114
  function _extends() {
@@ -155,9 +152,11 @@ function getSide(placement) {
155
152
  function getAlignment(placement) {
156
153
  return placement.split("-")[1];
157
154
  }
155
+ var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
158
156
  function getSideAxis(placement) {
159
- return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
157
+ return yAxisSides.has(getSide(placement)) ? "y" : "x";
160
158
  }
159
+ var originSides = /* @__PURE__ */ new Set(["left", "top"]);
161
160
  function convertValueToCoords(_x, _x2) {
162
161
  return _convertValueToCoords.apply(this, arguments);
163
162
  }
@@ -175,7 +174,7 @@ function _convertValueToCoords() {
175
174
  side = getSide(placement);
176
175
  alignment = getAlignment(placement);
177
176
  isVertical = getSideAxis(placement) === "y";
178
- mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
177
+ mainAxisMulti = originSides.has(side) ? -1 : 1;
179
178
  crossAxisMulti = rtl && isVertical ? -1 : 1;
180
179
  rawValue = evaluate(options, state);
181
180
  _ref = typeof rawValue === "number" ? {
@@ -271,8 +270,8 @@ function __vue2_injectStyles(context) {
271
270
  this[o] = __cssModules[o];
272
271
  }
273
272
  }
274
- var pc = /* @__PURE__ */ function() {
273
+ var pc = /* @__PURE__ */ (function() {
275
274
  return __component__.exports;
276
- }();
275
+ })();
277
276
 
278
277
  export { pc as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-guide",
3
3
  "type": "module",
4
- "version": "2.24.0",
4
+ "version": "2.26.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
@@ -9,10 +9,10 @@
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
11
  "@floating-ui/dom": "^1.0.10",
12
- "@opentinyvue/utils": "~3.24.0",
13
- "@opentinyvue/vue-common": "~2.24.0",
14
- "@opentinyvue/vue-renderless": "~3.24.0",
15
- "@opentinyvue/vue-theme": "~3.24.0",
12
+ "@opentinyvue/utils": "~3.26.0",
13
+ "@opentinyvue/vue-common": "~2.26.0",
14
+ "@opentinyvue/vue-renderless": "~3.26.0",
15
+ "@opentinyvue/vue-theme": "~3.26.0",
16
16
  "shepherd.js": "11.1.1"
17
17
  },
18
18
  "types": "index.d.ts"