@jupyterlab/apputils 4.4.0-alpha.1 → 4.4.0-beta.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/src/testutils.ts CHANGED
@@ -18,6 +18,7 @@ export async function createSessionContext(
18
18
 
19
19
  await Promise.all([manager.ready, specsManager.ready]);
20
20
  return new SessionContext({
21
+ kernelManager: options.kernelManager ?? Private.getManager().kernels,
21
22
  sessionManager: manager,
22
23
  specsManager,
23
24
  path: options.path ?? UUID.uuid4(),
@@ -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':
@@ -29,7 +29,7 @@
29
29
  | Modal variant
30
30
  |----------------------------------------------------------------------------*/
31
31
 
32
- .jp-ModalCommandPalette {
32
+ .jp-ModalCommandPalette.jp-ThemedContainer {
33
33
  position: absolute;
34
34
  z-index: 10000;
35
35
  top: 38px;
package/style/dialog.css CHANGED
@@ -3,7 +3,7 @@
3
3
  | Distributed under the terms of the Modified BSD License.
4
4
  |----------------------------------------------------------------------------*/
5
5
 
6
- .jp-Dialog {
6
+ .jp-Dialog.jp-ThemedContainer {
7
7
  position: absolute;
8
8
  z-index: 10000;
9
9
  display: flex;