@conduction/nextcloud-vue 2.56.0-beta.3 → 2.56.0-beta.4

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.
@@ -1742,6 +1742,10 @@ var script = {
1742
1742
  * Neither guard subsumes the other — (1) is about steps the server never
1743
1743
  * reports, (2) about steps it can never mark done — so both are needed.
1744
1744
  *
1745
+ * 3. On-demand steps (`onDemand: true`) are excluded too: they run only
1746
+ * when the user asks (learniq's "Remove the example data"), so they
1747
+ * are never outstanding work.
1748
+ *
1745
1749
  * @return {boolean} True when an actionable optional step is genuinely outstanding.
1746
1750
  */
1747
1751
  optionalSetupPending() {
@@ -1761,7 +1765,9 @@ var script = {
1761
1765
  const outstanding = s.completed.value === true
1762
1766
  ? (s.optionalUnmetReported ? s.optionalUnmetReported.value : [])
1763
1767
  : s.optionalUnmet.value;
1764
- return outstanding.some((st) => st.type !== 'info' && st.type !== 'summary')
1768
+ // On-demand steps (`onDemand: true`) run only when the user asks,
1769
+ // so they are never outstanding and never reason to open the wizard.
1770
+ return outstanding.some((st) => st.type !== 'info' && st.type !== 'summary' && st.onDemand !== true)
1765
1771
  },
1766
1772
 
1767
1773
  /**
@@ -1844,6 +1850,20 @@ var script = {
1844
1850
  return (w && typeof w.completionConfigKey === 'string' && w.completionConfigKey) || ''
1845
1851
  },
1846
1852
 
1853
+ /**
1854
+ * Whether the setup flow holds the walkthrough back: the setup status
1855
+ * has not settled yet (an outstanding optional step may still open the
1856
+ * wizard), or the non-gating setup wizard is open. The gating setup
1857
+ * phase needs no check here, it replaces the shell (and the tour with
1858
+ * it) outright. Apps without a `setup` block settle immediately, so
1859
+ * this is `false` for them from the first render.
1860
+ *
1861
+ * @return {boolean} True while the tour must wait for setup.
1862
+ */
1863
+ walkthroughHeldForSetup() {
1864
+ return !this.setupStatusSettled || this.setupWizardOpen
1865
+ },
1866
+
1847
1867
  /**
1848
1868
  * The user's last-seen app version for walkthrough composition. Resolved
1849
1869
  * from the per-user `completionConfigKey` preference (cross-device) with