@foxglove/extension 2.36.0 → 2.37.0
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 +1 -1
- package/src/experimental.ts +10 -4
- package/src/stable.ts +9 -0
package/package.json
CHANGED
package/src/experimental.ts
CHANGED
|
@@ -118,8 +118,11 @@ export namespace Experimental {
|
|
|
118
118
|
type: "button";
|
|
119
119
|
/** Unique identifier for the button. */
|
|
120
120
|
id: string;
|
|
121
|
-
/**
|
|
122
|
-
|
|
121
|
+
/**
|
|
122
|
+
* The icon to display in the button. It can be a predefined icon name from {@link PanelToolbarPredefinedIcon} or a SVGElement.
|
|
123
|
+
* If passing a SVGElement, it should be 16x16px and use the `currentColor` attribute for variants to work correctly.
|
|
124
|
+
* */
|
|
125
|
+
icon: SVGElement;
|
|
123
126
|
/** Tooltip text to display when hovering over the button. */
|
|
124
127
|
tooltip?: string;
|
|
125
128
|
/** Function to call when the button is clicked. */
|
|
@@ -136,8 +139,11 @@ export namespace Experimental {
|
|
|
136
139
|
type: "link";
|
|
137
140
|
/** Unique identifier for the link. */
|
|
138
141
|
id: string;
|
|
139
|
-
/**
|
|
140
|
-
|
|
142
|
+
/**
|
|
143
|
+
* The icon to display in the button. The SVGElement should be 16x16px and use the `currentColor`
|
|
144
|
+
* attribute for variants to work correctly.
|
|
145
|
+
* */
|
|
146
|
+
icon: SVGElement;
|
|
141
147
|
/** Tooltip text to display when hovering over the button. */
|
|
142
148
|
tooltip?: string;
|
|
143
149
|
/** The URL to navigate to when the link is clicked. */
|
package/src/stable.ts
CHANGED
|
@@ -1354,6 +1354,15 @@ export type SettingsTreeFieldValue =
|
|
|
1354
1354
|
input: "string";
|
|
1355
1355
|
value?: string;
|
|
1356
1356
|
|
|
1357
|
+
/**
|
|
1358
|
+
* Optional placeholder text displayed in the field input when value is undefined
|
|
1359
|
+
*/
|
|
1360
|
+
placeholder?: string;
|
|
1361
|
+
}
|
|
1362
|
+
| {
|
|
1363
|
+
input: "multiline-string";
|
|
1364
|
+
value?: string;
|
|
1365
|
+
|
|
1357
1366
|
/**
|
|
1358
1367
|
* Optional placeholder text displayed in the field input when value is undefined
|
|
1359
1368
|
*/
|