@jupyterlab/apputils 4.4.0-alpha.2 → 4.4.0-beta.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/lib/domutils.d.ts +1 -0
- package/lib/domutils.js +1 -0
- package/lib/domutils.js.map +1 -1
- package/lib/mainareawidget.js +2 -1
- package/lib/mainareawidget.js.map +1 -1
- package/lib/sanitizer.d.ts +7 -0
- package/lib/sanitizer.js +21 -12
- package/lib/sanitizer.js.map +1 -1
- package/lib/sessioncontext.d.ts +96 -0
- package/lib/sessioncontext.js +248 -203
- package/lib/sessioncontext.js.map +1 -1
- package/lib/testutils.js +5 -4
- package/lib/testutils.js.map +1 -1
- package/lib/toolbar/registry.js +4 -2
- package/lib/toolbar/registry.js.map +1 -1
- package/package.json +11 -11
- package/src/domutils.ts +1 -0
- package/src/mainareawidget.ts +2 -1
- package/src/sanitizer.ts +25 -13
- package/src/sessioncontext.tsx +358 -251
- package/src/testutils.ts +1 -0
- package/src/toolbar/registry.ts +5 -1
package/src/toolbar/registry.ts
CHANGED
|
@@ -149,6 +149,9 @@ export function createDefaultFactory(
|
|
|
149
149
|
const id = tId ?? '';
|
|
150
150
|
const args = { toolbar: true, ...tArgs };
|
|
151
151
|
const icon = tIcon ? LabIcon.resolve({ icon: tIcon }) : undefined;
|
|
152
|
+
|
|
153
|
+
const toolbar = (widget as any).toolbar as Toolbar;
|
|
154
|
+
|
|
152
155
|
// If there is an icon, undefined label will results in no label
|
|
153
156
|
// otherwise the label will be set using the setting or the command label
|
|
154
157
|
const label = icon ?? commands.icon(id, args) ? tLabel ?? '' : tLabel;
|
|
@@ -158,7 +161,8 @@ export function createDefaultFactory(
|
|
|
158
161
|
args,
|
|
159
162
|
icon,
|
|
160
163
|
label,
|
|
161
|
-
caption: tCaption as string
|
|
164
|
+
caption: tCaption as string,
|
|
165
|
+
noFocusOnClick: toolbar?.noFocusOnClick ?? false
|
|
162
166
|
});
|
|
163
167
|
}
|
|
164
168
|
case 'spacer':
|