@opentinyvue/vue-guide 2.24.0 → 2.25.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 +5 -3
  2. package/package.json +5 -5
package/lib/pc.js CHANGED
@@ -45,7 +45,7 @@ function _regenerator() {
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;
@@ -155,9 +155,11 @@ function getSide(placement) {
155
155
  function getAlignment(placement) {
156
156
  return placement.split("-")[1];
157
157
  }
158
+ var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
158
159
  function getSideAxis(placement) {
159
- return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
160
+ return yAxisSides.has(getSide(placement)) ? "y" : "x";
160
161
  }
162
+ var originSides = /* @__PURE__ */ new Set(["left", "top"]);
161
163
  function convertValueToCoords(_x, _x2) {
162
164
  return _convertValueToCoords.apply(this, arguments);
163
165
  }
@@ -175,7 +177,7 @@ function _convertValueToCoords() {
175
177
  side = getSide(placement);
176
178
  alignment = getAlignment(placement);
177
179
  isVertical = getSideAxis(placement) === "y";
178
- mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
180
+ mainAxisMulti = originSides.has(side) ? -1 : 1;
179
181
  crossAxisMulti = rtl && isVertical ? -1 : 1;
180
182
  rawValue = evaluate(options, state);
181
183
  _ref = typeof rawValue === "number" ? {
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.25.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.25.0",
13
+ "@opentinyvue/vue-common": "~2.25.0",
14
+ "@opentinyvue/vue-renderless": "~3.25.0",
15
+ "@opentinyvue/vue-theme": "~3.25.0",
16
16
  "shepherd.js": "11.1.1"
17
17
  },
18
18
  "types": "index.d.ts"