ultimate-jekyll-manager 1.7.1 → 1.7.2

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/CHANGELOG.md CHANGED
@@ -14,6 +14,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
14
14
  - `Fixed` for any bug fixes.
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
+ ---
18
+ ## [1.7.2] - 2026-06-09
19
+
20
+ ### Added
21
+
22
+ - **Push notification subscribe on payment confirmation CTA click** — hooks `subscribe()` onto CTA button clicks on the payment confirmation page. Requires a user gesture for the browser permission prompt, so uses `{ once: true }` click listeners.
23
+
17
24
  ---
18
25
  ## [1.7.1] - 2026-06-09
19
26
 
@@ -813,7 +813,10 @@ export class FormManager {
813
813
  if (show) {
814
814
  // Store original content
815
815
  $btn._originalHTML = $btn.innerHTML;
816
- $btn.innerHTML = `<span class="spinner-border spinner-border-sm me-2"></span>${webManager.utilities().escapeHTML(this.config.submittingText)}`;
816
+ const text = this.config.submittingText;
817
+ $btn.innerHTML = text
818
+ ? `<span class="spinner-border spinner-border-sm me-2"></span>${webManager.utilities().escapeHTML(text)}`
819
+ : '<span class="spinner-border spinner-border-sm"></span>';
817
820
  } else if ($btn._originalHTML) {
818
821
  $btn.innerHTML = $btn._originalHTML;
819
822
  }
@@ -35,6 +35,15 @@ async function initializeConfirmation() {
35
35
 
36
36
  // Trigger celebration animation
37
37
  await triggerCelebration();
38
+
39
+ // Subscribe to push notifications on CTA click (requires user gesture)
40
+ document.querySelectorAll('.btn').forEach(($btn) => {
41
+ $btn.addEventListener('click', () => {
42
+ webManager.notifications().subscribe().catch((e) => {
43
+ console.warn('[Confirmation] Notification subscribe failed:', e.message);
44
+ });
45
+ }, { once: true });
46
+ });
38
47
  }
39
48
 
40
49
  // Parse URL parameters into minimal state
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {