@mirrordown/sat-copy-code 0.1.0 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+
4
+ ## 0.1.1
5
+ <sub>2026-11-03</sub>
6
+
7
+ - *(patch)*
8
+ Show "Copy code" as the copy button's tooltip by default, in the pill its copied text already uses, so an icon-only button says what it does when hovered or focused. `text: { copy: null }` turns it off.
9
+
3
10
  ## 0.1.0
4
11
  <sub>2026-11-02</sub>
5
12
 
package/README.md CHANGED
@@ -13,6 +13,7 @@ The `copy-code` plugin adds a copy button to every code block. The button goes i
13
13
  </code><button type="button" class="markdown-copy-code" command="--copy" commandfor="code-mxxtmr" aria-label="Copy code" hidden>
14
14
  <span class="markdown-copy-code-icon" data-state="copy" aria-hidden="true"><svg>...</svg></span>
15
15
  <span class="markdown-copy-code-icon" data-state="copied" aria-hidden="true"><svg>...</svg></span>
16
+ <span class="markdown-copy-code-text" data-state="copy" aria-hidden="true">Copy code</span>
16
17
  <span class="markdown-copy-code-text" data-state="copied" aria-hidden="true">Copied!</span>
17
18
  </button></pre>
18
19
  ```
@@ -90,7 +91,7 @@ satteriCopyCode({ icons: { copied: `<svg viewBox="0 0 16 16">...</svg>` } })
90
91
 
91
92
  ### Text
92
93
 
93
- `text` sets the text shown beside the button in each state. The `copied` text, "Copied!" by default, shows once the block is copied. A `copy` text, none by default, shows while the button is hovered or focused. Either one also names the button while it shows, so set them in your page's language. `null` or an empty string shows no text in that state.
94
+ `text` sets the text shown beside the button in each state. The `copied` text, "Copied!" by default, shows once the block is copied. The `copy` text, "Copy code" by default, shows while the button is hovered or focused, as its tooltip. Either one also names the button while it shows, so set them in your page's language. `null` or an empty string shows no text in that state.
94
95
 
95
96
  ```ts
96
97
  satteriCopyCode({ text: { copy: "Copy", copied: "Copied" } })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirrordown/sat-copy-code",
3
3
  "description": "A Sätteri plugin to add a copy button to code blocks, as an invoker command, with a small client script that copies.",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "license": "MIT",
6
6
  "author": "Drake Costa <drake@saeris.io> (https://saeris.gg)",
7
7
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "./*.css": "./dist/*.css"
27
27
  },
28
28
  "dependencies": {
29
- "@mirrordown/core": "^0.1.3"
29
+ "@mirrordown/core": "^0.1.4"
30
30
  },
31
31
  "devDependencies": {
32
32
  "satteri": "^0.11.5"