ultimate-jekyll-manager 0.0.123 → 0.0.125

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.
@@ -630,11 +630,20 @@ export class FormManager {
630
630
  });
631
631
  }
632
632
 
633
+ /**
634
+ * Get all submit buttons in the form
635
+ * Note: Uses button.type property instead of [type="submit"] selector
636
+ * because HTML minifiers may strip the attribute (it's the default)
637
+ */
638
+ _getSubmitButtons() {
639
+ return Array.from(this.$form.querySelectorAll('button')).filter($btn => $btn.type === 'submit');
640
+ }
641
+
633
642
  /**
634
643
  * Show/hide spinner on submit buttons
635
644
  */
636
645
  _showSpinner(show) {
637
- this.$form.querySelectorAll('button[type="submit"]').forEach(($btn) => {
646
+ this._getSubmitButtons().forEach(($btn) => {
638
647
  if (show) {
639
648
  // Store original content
640
649
  $btn._originalHTML = $btn.innerHTML;
@@ -649,7 +658,7 @@ export class FormManager {
649
658
  * Show submitted text on submit buttons (when allowResubmit: false)
650
659
  */
651
660
  _showSubmittedText() {
652
- this.$form.querySelectorAll('button[type="submit"]').forEach(($btn) => {
661
+ this._getSubmitButtons().forEach(($btn) => {
653
662
  const $buttonText = $btn.querySelector('.button-text');
654
663
  if ($buttonText) {
655
664
  $buttonText.textContent = this.config.submittedText;
@@ -57,8 +57,7 @@ function setupResetApiKeyForm() {
57
57
 
58
58
  formManager.on('submit', async () => {
59
59
  // 1ms wait for dialog to appear properly
60
- // await new Promise(resolve => setTimeout(resolve, 1));
61
- await new Promise(resolve => setTimeout(resolve, 1000));
60
+ await new Promise(resolve => setTimeout(resolve, 1));
62
61
 
63
62
  // Show confirmation dialog
64
63
  if (!confirm('Are you sure you want to reset your API key? This will invalidate your current key and any applications using it will stop working.')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.123",
3
+ "version": "0.0.125",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -97,7 +97,7 @@
97
97
  "sass": "^1.94.2",
98
98
  "spellchecker": "^3.7.1",
99
99
  "through2": "^4.0.2",
100
- "web-manager": "^4.0.29",
100
+ "web-manager": "^4.0.30",
101
101
  "webpack": "^5.103.0",
102
102
  "wonderful-fetch": "^1.3.4",
103
103
  "wonderful-version": "^1.3.2",