@copylee/dsh-computer-use 0.8.4 → 0.8.5
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/lib/client.js +3 -1
- package/lib/types/client/nav-icon.d.ts +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -231,7 +231,9 @@ window.__ModuleLoader__.load({
|
|
|
231
231
|
const MARKER = "data-dsh-computer-use-settings-nav";
|
|
232
232
|
const POINTER_SVG = "%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z'/%3E%3C/svg%3E";
|
|
233
233
|
const navIconCss = `
|
|
234
|
-
|
|
234
|
+
/* Older shells render the SVG directly; newer shells wrap it in a decorative span. */
|
|
235
|
+
[${MARKER}] > svg:first-child,
|
|
236
|
+
[${MARKER}] > span[aria-hidden="true"]:first-child { display: none; }
|
|
235
237
|
[${MARKER}]::before {
|
|
236
238
|
content: '';
|
|
237
239
|
flex: none;
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
* our own row by its label and let CSS swap the glyph (Lucide mouse-pointer-2,
|
|
8
8
|
* drawn as a currentColor mask so hover / active colors still apply).
|
|
9
9
|
*/
|
|
10
|
-
export declare const navIconCss = "\n[data-dsh-computer-use-settings-nav] > svg:first-child { display: none; }\n[data-dsh-computer-use-settings-nav]::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background: currentColor;\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z'/%3E%3C/svg%3E\") center / contain no-repeat;\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z'/%3E%3C/svg%3E\") center / contain no-repeat;\n}\n";
|
|
10
|
+
export declare const navIconCss = "\n/* Older shells render the SVG directly; newer shells wrap it in a decorative span. */\n[data-dsh-computer-use-settings-nav] > svg:first-child,\n[data-dsh-computer-use-settings-nav] > span[aria-hidden=\"true\"]:first-child { display: none; }\n[data-dsh-computer-use-settings-nav]::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background: currentColor;\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z'/%3E%3C/svg%3E\") center / contain no-repeat;\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z'/%3E%3C/svg%3E\") center / contain no-repeat;\n}\n";
|
|
11
11
|
/** Keep the marker on the settings-nav button labelled `label`; returns a disposer. */
|
|
12
12
|
export declare function registerNavIcon(label: string): () => void;
|
package/package.json
CHANGED