@riebeckite/plugin-share 0.0.15 → 0.0.16

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/dist/index.js CHANGED
@@ -246,7 +246,8 @@ ${html}`;
246
246
  }
247
247
  const closeIndex = html.toLowerCase().lastIndexOf("</article>");
248
248
  if (closeIndex !== -1) {
249
- return `${html.slice(0, closeIndex)}${block}${html.slice(closeIndex)}`;
249
+ const articleEnd = closeIndex + "</article>".length;
250
+ return `${html.slice(0, articleEnd)}${block}${html.slice(articleEnd)}`;
250
251
  }
251
252
  return `${html}
252
253
  ${block}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-share",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "./style.css": "./style.css"
22
22
  },
23
23
  "dependencies": {
24
- "@riebeckite/core": "0.0.15"
24
+ "@riebeckite/core": "0.0.16"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsx": "^4.22.4"
package/style.css CHANGED
@@ -72,8 +72,3 @@
72
72
  .rr-share__status:empty {
73
73
  display: none;
74
74
  }
75
-
76
- html[data-theme="dark"] .rr-share,
77
- html.dark .rr-share {
78
- --rr-share-ink: var(--rb-color-paper, #ffffff);
79
- }