ultimate-jekyll-manager 0.0.288 → 0.0.290

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.
@@ -21,6 +21,7 @@ export default (Manager) => {
21
21
  setupDownloadTracking();
22
22
  setupCopyButtons();
23
23
  setupMobileEmailForms();
24
+ setupAutoDownload();
24
25
 
25
26
  // Expose modal function globally for testing
26
27
  window.showDownloadModal = showOnboardingModal;
@@ -293,6 +294,47 @@ function setupCopyButtons() {
293
294
  });
294
295
  }
295
296
 
297
+ // Setup auto-download when ?auto=true is in the URL
298
+ function setupAutoDownload() {
299
+ const params = new URLSearchParams(window.location.search);
300
+
301
+ if (params.get('auto') !== 'true') {
302
+ return;
303
+ }
304
+
305
+ // Find the first download link in the active platform's tab pane
306
+ const detectedPlatform = webManager.utilities().getPlatform();
307
+ const $pane = document.querySelector(`#${detectedPlatform}-pane`);
308
+
309
+ if (!$pane) {
310
+ return;
311
+ }
312
+
313
+ const $downloadLink = $pane.querySelector('a.btn-primary');
314
+
315
+ if (!$downloadLink) {
316
+ return;
317
+ }
318
+
319
+ // Trigger the download and show onboarding modal
320
+ const downloadUrl = $downloadLink.getAttribute('href');
321
+ const downloadName = $downloadLink.textContent.trim();
322
+
323
+ trackDownloadClick(detectedPlatform, downloadName, downloadUrl);
324
+ showOnboardingModal(detectedPlatform);
325
+
326
+ // Trigger the actual download via a hidden iframe to avoid navigating away
327
+ const $iframe = document.createElement('iframe');
328
+ $iframe.style.display = 'none';
329
+ $iframe.src = downloadUrl;
330
+ document.body.appendChild($iframe);
331
+
332
+ // Clean up URL so refreshing doesn't re-trigger
333
+ const url = new URL(window.location);
334
+ url.searchParams.delete('auto');
335
+ window.history.replaceState({}, '', url);
336
+ }
337
+
296
338
  // Setup mobile email forms
297
339
  function setupMobileEmailForms() {
298
340
  const $forms = document.querySelectorAll('.mobile-email-form');
@@ -150,7 +150,7 @@ badges:
150
150
  <div class="d-flex align-items-center justify-content-between py-3">
151
151
  <!-- Left: Brand -->
152
152
  <a href="/" class="d-flex align-items-center text-decoration-none text-body">
153
- <span class="avatar avatar-md me-3">
153
+ <span class="avatar avatar-md me-3 filter-adaptive">
154
154
  <img src="{{ site.brand.images.brandmark }}?cb={{ site.uj.cache_breaker }}" alt="{{ site.brand.name }}"/>
155
155
  </span>
156
156
  <h1 class="h5 mb-0 fw-semibold">{{ site.brand.name }} Account</h1>
@@ -181,25 +181,6 @@ cta:
181
181
  <!-- Downloads Section -->
182
182
  <section class="pt-0">
183
183
  <div class="container">
184
- <div class="text-center mb-5" data-lazy="@class animation-slide-up">
185
- {% iftruthy page.resolved.downloads.superheadline.text %}
186
- <span class="badge bg-body-tertiary border-gradient-rainbow border-1 text-body p-2 mb-1 fw-semibold small">
187
- {% iftruthy page.resolved.downloads.superheadline.icon %}
188
- {% uj_icon page.resolved.downloads.superheadline.icon, "me-1" %}
189
- {% endiftruthy %}
190
- {{ page.resolved.downloads.superheadline.text }}
191
- </span>
192
- {% endiftruthy %}
193
- <h2 class="h2 mb-2">
194
- {{ page.resolved.downloads.headline }}
195
- {% iftruthy page.resolved.downloads.headline_accent %}
196
- <span class="text-accent">{{ page.resolved.downloads.headline_accent }}</span>
197
- {% endiftruthy %}
198
- </h2>
199
- {% iftruthy page.resolved.downloads.subheadline %}
200
- <p class="fs-5 text-muted">{{ page.resolved.downloads.subheadline }}</p>
201
- {% endiftruthy %}
202
- </div>
203
184
 
204
185
  <!-- Platform Selector -->
205
186
  <div class="row justify-content-center mb-5">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.288",
3
+ "version": "0.0.290",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -71,13 +71,13 @@
71
71
  "@popperjs/core": "^2.11.8",
72
72
  "@prettier/plugin-xml": "^3.4.2",
73
73
  "adm-zip": "^0.5.16",
74
- "babel-loader": "^10.0.0",
74
+ "babel-loader": "^10.1.0",
75
75
  "browser-sync": "^3.0.4",
76
76
  "chalk": "^5.6.2",
77
77
  "cheerio": "^1.2.0",
78
78
  "chrome-launcher": "^1.2.1",
79
79
  "dotenv": "^17.3.1",
80
- "fast-xml-parser": "^5.4.1",
80
+ "fast-xml-parser": "^5.4.2",
81
81
  "fs-jetpack": "^5.1.0",
82
82
  "glob": "^13.0.6",
83
83
  "gulp-clean-css": "^4.3.0",
@@ -87,7 +87,7 @@
87
87
  "gulp-responsive-modern": "^1.0.0",
88
88
  "gulp-sass": "^6.0.1",
89
89
  "html-minifier-terser": "^7.2.0",
90
- "html-validate": "^10.9.0",
90
+ "html-validate": "^10.11.1",
91
91
  "itwcw-package-analytics": "^1.0.8",
92
92
  "js-yaml": "^4.1.1",
93
93
  "json5": "^2.2.3",
@@ -96,13 +96,13 @@
96
96
  "minimatch": "^10.2.4",
97
97
  "node-powertools": "^2.3.2",
98
98
  "npm-api": "^1.0.1",
99
- "postcss": "^8.5.6",
99
+ "postcss": "^8.5.8",
100
100
  "prettier": "^3.8.1",
101
101
  "sass": "^1.97.3",
102
102
  "spellchecker": "^3.7.1",
103
103
  "through2": "^4.0.2",
104
104
  "web-manager": "^4.1.15",
105
- "webpack": "^5.105.2",
105
+ "webpack": "^5.105.4",
106
106
  "wonderful-fetch": "^1.3.4",
107
107
  "wonderful-version": "^1.3.2",
108
108
  "yargs": "^18.0.0"