@leavepulse/ui 0.58.0 → 0.58.1

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.
@@ -159,7 +159,7 @@ function createHintSystem(options) {
159
159
  );
160
160
  const hasTour = (page = state.page) => Object.values(features).some((f) => f.page === page);
161
161
  function startTour(page = state.page, only) {
162
- const entries = Object.entries(features).filter(([id, f]) => f.page === page && (!only || only.includes(id))).sort(([, a], [, b]) => (a.order ?? 0) - (b.order ?? 0));
162
+ const entries = Object.entries(features).filter(([id, f]) => f.page === page && (!only || only.includes(id)) && (!!f.target || !!f.enter || hints.present(id))).sort(([, a], [, b]) => (a.order ?? 0) - (b.order ?? 0));
163
163
  if (!entries.length) return;
164
164
  state.offer = null;
165
165
  Object.assign(state.tour, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/ui",
3
- "version": "0.58.0",
3
+ "version": "0.58.1",
4
4
  "type": "module",
5
5
  "description": "LeavePulse token-driven Vue component kit.",
6
6
  "repository": {
@@ -326,7 +326,7 @@ export function createHintSystem(options: HintSystemOptions) {
326
326
 
327
327
  function startTour(page = state.page, only?: string[]): void {
328
328
  const entries = Object.entries(features)
329
- .filter(([id, f]) => f.page === page && (!only || only.includes(id)))
329
+ .filter(([id, f]) => f.page === page && (!only || only.includes(id)) && (!!f.target || !!f.enter || hints.present(id)))
330
330
  .sort(([, a], [, b]) => (a.order ?? 0) - (b.order ?? 0))
331
331
  if (!entries.length) return
332
332
  state.offer = null