seemore 1.10.0 → 1.10.1

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/README.md CHANGED
@@ -61,7 +61,7 @@ And whichever preview is open, the page is also an editor: **double-click any pa
61
61
  ## Who is seemore for?
62
62
 
63
63
  <p align="center">
64
- <video src="https://github.com/user-attachments/assets/8142fcb4-2a1f-4e48-82b5-059a28fc0cf2" width="640" controls muted></video>
64
+ <video src="https://github.com/user-attachments/assets/248032a6-7e25-4f9f-8d73-089b5302afb0" width="640" controls muted></video>
65
65
  </p>
66
66
 
67
67
  Typical use cases include:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seemore",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Let AI write the Markdown. Let seemore show it better — zero config documentation framework.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -260,6 +260,23 @@ const RUNTIME = `(function () {
260
260
  });
261
261
  });
262
262
 
263
+ document.querySelectorAll('button[aria-label="Copy Anchor Link"]').forEach(function (button) {
264
+ var heading = button.closest('h1, h2, h3, h4, h5, h6');
265
+ var svg = button.querySelector('svg');
266
+ if (!heading || !heading.id || !navigator.clipboard) return;
267
+ var revert;
268
+ button.addEventListener('click', function () {
269
+ var url = new URL(window.location.href);
270
+ url.hash = heading.id;
271
+ navigator.clipboard.writeText(url.href);
272
+ if (!svg) return;
273
+ clearTimeout(revert);
274
+ var original = svg.innerHTML;
275
+ svg.innerHTML = '<polyline points="20 6 9 17 4 12"></polyline>';
276
+ revert = setTimeout(function () { svg.innerHTML = original; }, 1500);
277
+ });
278
+ });
279
+
263
280
  // The live site's TOC follows the reader with fumadocs' own scroll tracking; in the file,
264
281
  // the plainest version of the same behaviour — last heading above the fold wins.
265
282
  var tocLinks = [].slice.call(document.querySelectorAll('.seemore-export-toc a'));