@opentinyvue/vue-guide 2.21.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.
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 - present TinyVue Authors.
4
+ Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import Guide from './src/index';
2
+ export default Guide;
package/lib/index.js ADDED
@@ -0,0 +1,86 @@
1
+ function _extends() {
2
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
3
+ for (var e = 1; e < arguments.length; e++) {
4
+ var t = arguments[e];
5
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
6
+ }
7
+ return n;
8
+ }, _extends.apply(null, arguments);
9
+ }
10
+ import { defineComponent, $prefix, $props, $setup } from "@opentinyvue/vue-common";
11
+ import browser from "@opentinyvue/vue-renderless/common/browser";
12
+ import PcTemplate from "./pc.js";
13
+ var template = function template2(mode) {
14
+ var _process$env;
15
+ typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
16
+ return PcTemplate;
17
+ };
18
+ var Guide = defineComponent({
19
+ name: $prefix + "Guide",
20
+ props: _extends({}, $props, {
21
+ showStep: {
22
+ type: Boolean,
23
+ default: false
24
+ },
25
+ domData: Array,
26
+ mainAxis: {
27
+ type: Number,
28
+ default: 18
29
+ },
30
+ crossAxis: {
31
+ type: Number,
32
+ default: null
33
+ },
34
+ alignmentAxis: {
35
+ type: Number,
36
+ default: null
37
+ },
38
+ popPosition: {
39
+ type: String,
40
+ default: "bottom"
41
+ },
42
+ arrow: {
43
+ type: Boolean,
44
+ default: true
45
+ },
46
+ modalOverlayOpeningPadding: {
47
+ type: Number,
48
+ default: 0
49
+ },
50
+ modalOverlayOpeningRadius: {
51
+ type: Number,
52
+ default: 0
53
+ },
54
+ lightClass: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ width: {
59
+ type: String,
60
+ default: browser.isMobile ? "350" : "510"
61
+ },
62
+ height: {
63
+ type: String,
64
+ default: ""
65
+ }
66
+ }),
67
+ setup: function setup(props, context) {
68
+ return $setup({
69
+ props,
70
+ context,
71
+ template
72
+ });
73
+ }
74
+ });
75
+ var version = "2.21.0";
76
+ Guide.model = {
77
+ prop: "modelValue",
78
+ event: "update:modelValue"
79
+ };
80
+ Guide.install = function(Vue) {
81
+ Vue.component(Guide.name, Guide);
82
+ };
83
+ Guide.version = version;
84
+ export {
85
+ Guide as default
86
+ };
package/lib/pc.js ADDED
@@ -0,0 +1,442 @@
1
+ import { renderless, api } from '@opentinyvue/vue-renderless/guide/vue';
2
+ import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
+ import '@opentinyvue/vue-theme/guide/index.css';
4
+ import Shepherd from 'shepherd.js';
5
+
6
+ function _regeneratorRuntime() {
7
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
8
+ _regeneratorRuntime = function _regeneratorRuntime2() {
9
+ return e;
10
+ };
11
+ var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function(t2, e2, r2) {
12
+ t2[e2] = r2.value;
13
+ }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag";
14
+ function define(t2, e2, r2) {
15
+ return Object.defineProperty(t2, e2, { value: r2, enumerable: true, configurable: true, writable: true }), t2[e2];
16
+ }
17
+ try {
18
+ define({}, "");
19
+ } catch (t2) {
20
+ define = function define2(t3, e2, r2) {
21
+ return t3[e2] = r2;
22
+ };
23
+ }
24
+ function wrap(t2, e2, r2, n2) {
25
+ var i2 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i2.prototype), c2 = new Context(n2 || []);
26
+ return o(a2, "_invoke", { value: makeInvokeMethod(t2, r2, c2) }), a2;
27
+ }
28
+ function tryCatch(t2, e2, r2) {
29
+ try {
30
+ return { type: "normal", arg: t2.call(e2, r2) };
31
+ } catch (t3) {
32
+ return { type: "throw", arg: t3 };
33
+ }
34
+ }
35
+ e.wrap = wrap;
36
+ var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
37
+ function Generator() {
38
+ }
39
+ function GeneratorFunction() {
40
+ }
41
+ function GeneratorFunctionPrototype() {
42
+ }
43
+ var p = {};
44
+ define(p, a, function() {
45
+ return this;
46
+ });
47
+ var d = Object.getPrototypeOf, v = d && d(d(values([])));
48
+ v && v !== r && n.call(v, a) && (p = v);
49
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
50
+ function defineIteratorMethods(t2) {
51
+ ["next", "throw", "return"].forEach(function(e2) {
52
+ define(t2, e2, function(t3) {
53
+ return this._invoke(e2, t3);
54
+ });
55
+ });
56
+ }
57
+ function AsyncIterator(t2, e2) {
58
+ function invoke(r3, o2, i2, a2) {
59
+ var c2 = tryCatch(t2[r3], t2, o2);
60
+ if ("throw" !== c2.type) {
61
+ var u2 = c2.arg, h2 = u2.value;
62
+ return h2 && "object" == typeof h2 && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
63
+ invoke("next", t3, i2, a2);
64
+ }, function(t3) {
65
+ invoke("throw", t3, i2, a2);
66
+ }) : e2.resolve(h2).then(function(t3) {
67
+ u2.value = t3, i2(u2);
68
+ }, function(t3) {
69
+ return invoke("throw", t3, i2, a2);
70
+ });
71
+ }
72
+ a2(c2.arg);
73
+ }
74
+ var r2;
75
+ o(this, "_invoke", { value: function value(t3, n2) {
76
+ function callInvokeWithMethodAndArg() {
77
+ return new e2(function(e3, r3) {
78
+ invoke(t3, n2, e3, r3);
79
+ });
80
+ }
81
+ return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
82
+ } });
83
+ }
84
+ function makeInvokeMethod(e2, r2, n2) {
85
+ var o2 = h;
86
+ return function(i2, a2) {
87
+ if (o2 === f) throw Error("Generator is already running");
88
+ if (o2 === s) {
89
+ if ("throw" === i2) throw a2;
90
+ return { value: t, done: true };
91
+ }
92
+ for (n2.method = i2, n2.arg = a2; ; ) {
93
+ var c2 = n2.delegate;
94
+ if (c2) {
95
+ var u2 = maybeInvokeDelegate(c2, n2);
96
+ if (u2) {
97
+ if (u2 === y) continue;
98
+ return u2;
99
+ }
100
+ }
101
+ if ("next" === n2.method) n2.sent = n2._sent = n2.arg;
102
+ else if ("throw" === n2.method) {
103
+ if (o2 === h) throw o2 = s, n2.arg;
104
+ n2.dispatchException(n2.arg);
105
+ } else "return" === n2.method && n2.abrupt("return", n2.arg);
106
+ o2 = f;
107
+ var p2 = tryCatch(e2, r2, n2);
108
+ if ("normal" === p2.type) {
109
+ if (o2 = n2.done ? s : l, p2.arg === y) continue;
110
+ return { value: p2.arg, done: n2.done };
111
+ }
112
+ "throw" === p2.type && (o2 = s, n2.method = "throw", n2.arg = p2.arg);
113
+ }
114
+ };
115
+ }
116
+ function maybeInvokeDelegate(e2, r2) {
117
+ var n2 = r2.method, o2 = e2.iterator[n2];
118
+ if (o2 === t) return r2.delegate = null, "throw" === n2 && e2.iterator.return && (r2.method = "return", r2.arg = t, maybeInvokeDelegate(e2, r2), "throw" === r2.method) || "return" !== n2 && (r2.method = "throw", r2.arg = new TypeError("The iterator does not provide a '" + n2 + "' method")), y;
119
+ var i2 = tryCatch(o2, e2.iterator, r2.arg);
120
+ if ("throw" === i2.type) return r2.method = "throw", r2.arg = i2.arg, r2.delegate = null, y;
121
+ var a2 = i2.arg;
122
+ return a2 ? a2.done ? (r2[e2.resultName] = a2.value, r2.next = e2.nextLoc, "return" !== r2.method && (r2.method = "next", r2.arg = t), r2.delegate = null, y) : a2 : (r2.method = "throw", r2.arg = new TypeError("iterator result is not an object"), r2.delegate = null, y);
123
+ }
124
+ function pushTryEntry(t2) {
125
+ var e2 = { tryLoc: t2[0] };
126
+ 1 in t2 && (e2.catchLoc = t2[1]), 2 in t2 && (e2.finallyLoc = t2[2], e2.afterLoc = t2[3]), this.tryEntries.push(e2);
127
+ }
128
+ function resetTryEntry(t2) {
129
+ var e2 = t2.completion || {};
130
+ e2.type = "normal", delete e2.arg, t2.completion = e2;
131
+ }
132
+ function Context(t2) {
133
+ this.tryEntries = [{ tryLoc: "root" }], t2.forEach(pushTryEntry, this), this.reset(true);
134
+ }
135
+ function values(e2) {
136
+ if (e2 || "" === e2) {
137
+ var r2 = e2[a];
138
+ if (r2) return r2.call(e2);
139
+ if ("function" == typeof e2.next) return e2;
140
+ if (!isNaN(e2.length)) {
141
+ var o2 = -1, i2 = function next() {
142
+ for (; ++o2 < e2.length; ) if (n.call(e2, o2)) return next.value = e2[o2], next.done = false, next;
143
+ return next.value = t, next.done = true, next;
144
+ };
145
+ return i2.next = i2;
146
+ }
147
+ }
148
+ throw new TypeError(typeof e2 + " is not iterable");
149
+ }
150
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: true }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: true }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function(t2) {
151
+ var e2 = "function" == typeof t2 && t2.constructor;
152
+ return !!e2 && (e2 === GeneratorFunction || "GeneratorFunction" === (e2.displayName || e2.name));
153
+ }, e.mark = function(t2) {
154
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, define(t2, u, "GeneratorFunction")), t2.prototype = Object.create(g), t2;
155
+ }, e.awrap = function(t2) {
156
+ return { __await: t2 };
157
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function() {
158
+ return this;
159
+ }), e.AsyncIterator = AsyncIterator, e.async = function(t2, r2, n2, o2, i2) {
160
+ void 0 === i2 && (i2 = Promise);
161
+ var a2 = new AsyncIterator(wrap(t2, r2, n2, o2), i2);
162
+ return e.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
163
+ return t3.done ? t3.value : a2.next();
164
+ });
165
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function() {
166
+ return this;
167
+ }), define(g, "toString", function() {
168
+ return "[object Generator]";
169
+ }), e.keys = function(t2) {
170
+ var e2 = Object(t2), r2 = [];
171
+ for (var n2 in e2) r2.push(n2);
172
+ return r2.reverse(), function next() {
173
+ for (; r2.length; ) {
174
+ var t3 = r2.pop();
175
+ if (t3 in e2) return next.value = t3, next.done = false, next;
176
+ }
177
+ return next.done = true, next;
178
+ };
179
+ }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e2) {
180
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e2) for (var r2 in this) "t" === r2.charAt(0) && n.call(this, r2) && !isNaN(+r2.slice(1)) && (this[r2] = t);
181
+ }, stop: function stop() {
182
+ this.done = true;
183
+ var t2 = this.tryEntries[0].completion;
184
+ if ("throw" === t2.type) throw t2.arg;
185
+ return this.rval;
186
+ }, dispatchException: function dispatchException(e2) {
187
+ if (this.done) throw e2;
188
+ var r2 = this;
189
+ function handle(n2, o3) {
190
+ return a2.type = "throw", a2.arg = e2, r2.next = n2, o3 && (r2.method = "next", r2.arg = t), !!o3;
191
+ }
192
+ for (var o2 = this.tryEntries.length - 1; o2 >= 0; --o2) {
193
+ var i2 = this.tryEntries[o2], a2 = i2.completion;
194
+ if ("root" === i2.tryLoc) return handle("end");
195
+ if (i2.tryLoc <= this.prev) {
196
+ var c2 = n.call(i2, "catchLoc"), u2 = n.call(i2, "finallyLoc");
197
+ if (c2 && u2) {
198
+ if (this.prev < i2.catchLoc) return handle(i2.catchLoc, true);
199
+ if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
200
+ } else if (c2) {
201
+ if (this.prev < i2.catchLoc) return handle(i2.catchLoc, true);
202
+ } else {
203
+ if (!u2) throw Error("try statement without catch or finally");
204
+ if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
205
+ }
206
+ }
207
+ }
208
+ }, abrupt: function abrupt(t2, e2) {
209
+ for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
210
+ var o2 = this.tryEntries[r2];
211
+ if (o2.tryLoc <= this.prev && n.call(o2, "finallyLoc") && this.prev < o2.finallyLoc) {
212
+ var i2 = o2;
213
+ break;
214
+ }
215
+ }
216
+ i2 && ("break" === t2 || "continue" === t2) && i2.tryLoc <= e2 && e2 <= i2.finallyLoc && (i2 = null);
217
+ var a2 = i2 ? i2.completion : {};
218
+ return a2.type = t2, a2.arg = e2, i2 ? (this.method = "next", this.next = i2.finallyLoc, y) : this.complete(a2);
219
+ }, complete: function complete(t2, e2) {
220
+ if ("throw" === t2.type) throw t2.arg;
221
+ return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type && e2 && (this.next = e2), y;
222
+ }, finish: function finish(t2) {
223
+ for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
224
+ var r2 = this.tryEntries[e2];
225
+ if (r2.finallyLoc === t2) return this.complete(r2.completion, r2.afterLoc), resetTryEntry(r2), y;
226
+ }
227
+ }, catch: function _catch(t2) {
228
+ for (var e2 = this.tryEntries.length - 1; e2 >= 0; --e2) {
229
+ var r2 = this.tryEntries[e2];
230
+ if (r2.tryLoc === t2) {
231
+ var n2 = r2.completion;
232
+ if ("throw" === n2.type) {
233
+ var o2 = n2.arg;
234
+ resetTryEntry(r2);
235
+ }
236
+ return o2;
237
+ }
238
+ }
239
+ throw Error("illegal catch attempt");
240
+ }, delegateYield: function delegateYield(e2, r2, n2) {
241
+ return this.delegate = { iterator: values(e2), resultName: r2, nextLoc: n2 }, "next" === this.method && (this.arg = t), y;
242
+ } }, e;
243
+ }
244
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
245
+ try {
246
+ var i = n[a](c), u = i.value;
247
+ } catch (n2) {
248
+ return void e(n2);
249
+ }
250
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
251
+ }
252
+ function _asyncToGenerator(n) {
253
+ return function() {
254
+ var t = this, e = arguments;
255
+ return new Promise(function(r, o) {
256
+ var a = n.apply(t, e);
257
+ function _next(n2) {
258
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n2);
259
+ }
260
+ function _throw(n2) {
261
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n2);
262
+ }
263
+ _next(void 0);
264
+ });
265
+ };
266
+ }
267
+ function _extends() {
268
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
269
+ for (var e = 1; e < arguments.length; e++) {
270
+ var t = arguments[e];
271
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
272
+ }
273
+ return n;
274
+ }, _extends.apply(null, arguments);
275
+ }
276
+ function evaluate(value, param) {
277
+ return typeof value === "function" ? value(param) : value;
278
+ }
279
+ function getSide(placement) {
280
+ return placement.split("-")[0];
281
+ }
282
+ function getAlignment(placement) {
283
+ return placement.split("-")[1];
284
+ }
285
+ function getSideAxis(placement) {
286
+ return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
287
+ }
288
+ function convertValueToCoords(_x6, _x7) {
289
+ return _convertValueToCoords.apply(this, arguments);
290
+ }
291
+ function _convertValueToCoords() {
292
+ _convertValueToCoords = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee9(state, options) {
293
+ var placement, platform2, elements, rtl, side, alignment, isVertical, mainAxisMulti, crossAxisMulti, rawValue, _ref7, mainAxis, crossAxis, alignmentAxis;
294
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
295
+ while (1) switch (_context9.prev = _context9.next) {
296
+ case 0:
297
+ placement = state.placement, platform2 = state.platform, elements = state.elements;
298
+ _context9.next = 3;
299
+ return platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating);
300
+ case 3:
301
+ rtl = _context9.sent;
302
+ side = getSide(placement);
303
+ alignment = getAlignment(placement);
304
+ isVertical = getSideAxis(placement) === "y";
305
+ mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
306
+ crossAxisMulti = rtl && isVertical ? -1 : 1;
307
+ rawValue = evaluate(options, state);
308
+ _ref7 = typeof rawValue === "number" ? {
309
+ mainAxis: rawValue,
310
+ crossAxis: 0,
311
+ alignmentAxis: null
312
+ } : {
313
+ mainAxis: rawValue.mainAxis || 0,
314
+ crossAxis: rawValue.crossAxis || 0,
315
+ alignmentAxis: rawValue.alignmentAxis
316
+ }, mainAxis = _ref7.mainAxis, crossAxis = _ref7.crossAxis, alignmentAxis = _ref7.alignmentAxis;
317
+ if (alignment && typeof alignmentAxis === "number") {
318
+ crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
319
+ }
320
+ return _context9.abrupt("return", isVertical ? {
321
+ x: crossAxis * crossAxisMulti,
322
+ y: mainAxis * mainAxisMulti
323
+ } : {
324
+ x: mainAxis * mainAxisMulti,
325
+ y: crossAxis * crossAxisMulti
326
+ });
327
+ case 13:
328
+ case "end":
329
+ return _context9.stop();
330
+ }
331
+ }, _callee9);
332
+ }));
333
+ return _convertValueToCoords.apply(this, arguments);
334
+ }
335
+ var offset$1 = function offset$12(options) {
336
+ if (options === void 0) {
337
+ options = 0;
338
+ }
339
+ return {
340
+ name: "offset",
341
+ options,
342
+ fn: function fn(state) {
343
+ return _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee5() {
344
+ var _middlewareData$offse, _middlewareData$arrow, x, y, placement, middlewareData, diffCoords;
345
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
346
+ while (1) switch (_context5.prev = _context5.next) {
347
+ case 0:
348
+ x = state.x, y = state.y, placement = state.placement, middlewareData = state.middlewareData;
349
+ _context5.next = 3;
350
+ return convertValueToCoords(state, options);
351
+ case 3:
352
+ diffCoords = _context5.sent;
353
+ if (!(placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset)) {
354
+ _context5.next = 6;
355
+ break;
356
+ }
357
+ return _context5.abrupt("return", {});
358
+ case 6:
359
+ return _context5.abrupt("return", {
360
+ x: x + diffCoords.x,
361
+ y: y + diffCoords.y,
362
+ data: _extends({}, diffCoords, {
363
+ placement
364
+ })
365
+ });
366
+ case 7:
367
+ case "end":
368
+ return _context5.stop();
369
+ }
370
+ }, _callee5);
371
+ }))();
372
+ }
373
+ };
374
+ };
375
+ var offset = offset$1;
376
+
377
+ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
378
+ var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
379
+ if (render) {
380
+ options.render = render;
381
+ options.staticRenderFns = staticRenderFns;
382
+ options._compiled = true;
383
+ }
384
+ var hook;
385
+ if (injectStyles) {
386
+ hook = injectStyles;
387
+ }
388
+ if (hook) {
389
+ if (options.functional) {
390
+ options._injectStyles = hook;
391
+ var originalRender = options.render;
392
+ options.render = function renderWithStyleInjection(h, context) {
393
+ hook.call(context);
394
+ return originalRender(h, context);
395
+ };
396
+ } else {
397
+ var existing = options.beforeCreate;
398
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
399
+ }
400
+ }
401
+ return {
402
+ exports: scriptExports,
403
+ options
404
+ };
405
+ }
406
+
407
+ var __vue2_script = defineComponent({
408
+ props: [].concat(props, ["showStep", "domData", "mainAxis", "crossAxis", "alignmentAxis", "popPosition", "modalOverlayOpeningPadding", "modalOverlayOpeningRadius", "arrow", "lightClass", "width", "height"]),
409
+ setup: function setup$1(props2, context) {
410
+ return setup({
411
+ props: props2,
412
+ context,
413
+ renderless,
414
+ api,
415
+ extendOptions: {
416
+ Shepherd,
417
+ offset
418
+ }
419
+ });
420
+ }
421
+ });
422
+ var render = function render2() {
423
+ var _vm = this;
424
+ var _h = _vm.$createElement;
425
+ var _c = _vm._self._c || _h;
426
+ return _c("div", {
427
+ staticClass: "tiny-guide"
428
+ }, [_vm._t("main")], 2);
429
+ };
430
+ var staticRenderFns = [];
431
+ var __cssModules = {};
432
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
433
+ function __vue2_injectStyles(context) {
434
+ for (var o in __cssModules) {
435
+ this[o] = __cssModules[o];
436
+ }
437
+ }
438
+ var pc = /* @__PURE__ */ function() {
439
+ return __component__.exports;
440
+ }();
441
+
442
+ export { pc as default };
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@opentinyvue/vue-guide",
3
+ "version": "2.21.0",
4
+ "description": "",
5
+ "main": "./lib/index.js",
6
+ "module": "./lib/index.js",
7
+ "sideEffects": false,
8
+ "type": "module",
9
+ "dependencies": {
10
+ "@opentinyvue/vue-renderless": "~3.21.0",
11
+ "@opentinyvue/vue-common": "~2.21.0",
12
+ "shepherd.js": "11.1.1",
13
+ "@floating-ui/dom": "^1.0.10",
14
+ "@opentinyvue/vue-theme": "~3.21.0"
15
+ },
16
+ "license": "MIT",
17
+ "types": "index.d.ts"
18
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;