rspress-plugin-api-extractor 0.8.0 → 0.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rspress-plugin-api-extractor",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "private": false,
5
5
  "description": "RSPress plugin for generating API documentation from TypeScript API Extractor models",
6
6
  "keywords": [
@@ -16,7 +16,7 @@ function SignatureCode({ hast, wrapped }) {
16
16
  const container = containerRef.current;
17
17
  if (!container) return;
18
18
  const handleMouseOver = (e) => {
19
- const hover = e.target.closest?.(".twoslash-hover");
19
+ const hover = e.target.closest?.(".twoslash-hover, .twoslash-query-persisted, .twoslash-query-line, .twoslash-error-hover");
20
20
  if (!hover) return;
21
21
  const popup = hover.querySelector(".twoslash-popup-container");
22
22
  if (!popup) return;
@@ -134,7 +134,7 @@ html.rp-dark {
134
134
  border-color: var(--twoslash-underline-color);
135
135
  }
136
136
 
137
- & .twoslash-hover:hover .twoslash-popup-container, & .twoslash-error-hover:hover .twoslash-popup-container, & .twoslash-query-persisted .twoslash-popup-container, & .twoslash-query-line .twoslash-popup-container {
137
+ & .twoslash-hover:hover .twoslash-popup-container, & .twoslash-error-hover:hover .twoslash-popup-container, & .twoslash-query-persisted:hover .twoslash-popup-container, & .twoslash-query-line:hover .twoslash-popup-container {
138
138
  opacity: 1;
139
139
  pointer-events: auto;
140
140
  width: max-content;
@@ -150,14 +150,14 @@ html.rp-dark {
150
150
  transform: none;
151
151
  }
152
152
 
153
- & .twoslash-query-persisted .twoslash-popup-container {
153
+ & .twoslash-query-persisted:hover .twoslash-popup-container {
154
154
  z-index: 999;
155
155
  position: absolute;
156
156
  left: 0;
157
157
  transform: translateY(1.5em);
158
158
  }
159
159
 
160
- & .twoslash-query-line .twoslash-popup-container {
160
+ & .twoslash-query-line:hover .twoslash-popup-container {
161
161
  margin-bottom: 1.4em;
162
162
  position: relative;
163
163
  top: auto;