@zjy4fun/json-open 0.3.2 → 0.3.3

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.
Files changed (2) hide show
  1. package/index.html +0 -13
  2. package/package.json +1 -1
package/index.html CHANGED
@@ -479,7 +479,6 @@
479
479
  <span class="label">Input</span>
480
480
  <button id="btn-format" class="primary">✨ Format</button>
481
481
  <button id="btn-copy">📋 Copy</button>
482
- <button id="btn-clear">Clear</button>
483
482
  <button id="btn-share">🔗 Share</button>
484
483
  </div>
485
484
  <textarea class="input-area" id="json-input" placeholder="Paste or type JSON here..." spellcheck="false"></textarea>
@@ -663,7 +662,6 @@
663
662
  var viewer = document.getElementById('viewer')
664
663
  var btnFormat = document.getElementById('btn-format')
665
664
  var btnCopy = document.getElementById('btn-copy')
666
- var btnClear = document.getElementById('btn-clear')
667
665
  var btnShare = document.getElementById('btn-share')
668
666
  var btnExpandAll = document.getElementById('expand-all')
669
667
  var btnCollapseAll = document.getElementById('collapse-all')
@@ -743,17 +741,6 @@
743
741
  })
744
742
  })
745
743
 
746
- btnClear.addEventListener('click', function () {
747
- jsonInput.value = ''
748
- viewer.innerHTML = '<div class="empty-state"><div class="icon">{ }</div><div>Paste JSON on the left and click <b>Format</b></div><div style="font-size:12px">or press Ctrl+Enter</div></div>'
749
- statusInfo.textContent = 'Ready'
750
- statusSize.textContent = ''
751
- toggleWrap.classList.add('hidden')
752
- currentParsed = null
753
- currentDeepParsed = null
754
- clearSearch()
755
- })
756
-
757
744
  // ===== Share =====
758
745
  btnShare.addEventListener('click', function () {
759
746
  var input = jsonInput.value.trim()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zjy4fun/json-open",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "JSON Formatter — A fast, zero-dependency JSON formatter & viewer (CLI + Web)",
5
5
  "type": "module",
6
6
  "bin": {