xtralab 0.1.0 → 0.1.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.
@@ -528,7 +528,7 @@ function DiffViewer(props) {
528
528
  writeStoredSplitRatio(DEFAULT_SPLIT_RATIO);
529
529
  }, []);
530
530
  if (state.loading) {
531
- return (React.createElement("div", { className: "jp-xtralab-DiffWidget-status" }, "Loading diff\u2026"));
531
+ return React.createElement("div", { className: "jp-xtralab-DiffWidget-status" }, "Loading diff\u2026");
532
532
  }
533
533
  if (state.error !== null) {
534
534
  return (React.createElement("div", { className: "jp-xtralab-DiffWidget-status", "data-error": "true" }, state.error));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xtralab",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "An opinionated JupyterLab meta-package that bundles a curated set of extensions, ships a path-first file browser and a VS Code-style git changes panel, and applies a quieter default workspace configuration.",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -123,7 +123,10 @@ function getOpenPaths(
123
123
  }
124
124
 
125
125
  /** True iff there is an actionable target for a command on the right-click. */
126
- function hasTarget(app: JupyterFrontEnd, browser: IXtralabFileBrowser): boolean {
126
+ function hasTarget(
127
+ app: JupyterFrontEnd,
128
+ browser: IXtralabFileBrowser
129
+ ): boolean {
127
130
  return getTargetPath(app, browser) !== undefined;
128
131
  }
129
132
 
@@ -247,10 +247,7 @@ export function FileBrowserComponent(
247
247
  try {
248
248
  model.add(canonicalPath);
249
249
  } catch (err) {
250
- console.error(
251
- `xtralab: failed to add path "${canonicalPath}"`,
252
- err
253
- );
250
+ console.error(`xtralab: failed to add path "${canonicalPath}"`, err);
254
251
  return;
255
252
  }
256
253
  }
@@ -99,8 +99,7 @@ function writeStoredSplitRatio(ratio: number): void {
99
99
  */
100
100
  type NotebookDiffViewMode = 'notebook' | 'json';
101
101
 
102
- const NOTEBOOK_DIFF_VIEW_MODE_STORAGE_KEY =
103
- 'xtralab:notebook-diff-view-mode';
102
+ const NOTEBOOK_DIFF_VIEW_MODE_STORAGE_KEY = 'xtralab:notebook-diff-view-mode';
104
103
 
105
104
  function readStoredNotebookViewMode(): NotebookDiffViewMode {
106
105
  try {
@@ -720,9 +719,7 @@ function DiffViewer(
720
719
  }, []);
721
720
 
722
721
  if (state.loading) {
723
- return (
724
- <div className="jp-xtralab-DiffWidget-status">Loading diff…</div>
725
- );
722
+ return <div className="jp-xtralab-DiffWidget-status">Loading diff…</div>;
726
723
  }
727
724
  if (state.error !== null) {
728
725
  return (
@@ -748,9 +745,7 @@ function DiffViewer(
748
745
 
749
746
  if (!showNotebookView && !showFileDiff) {
750
747
  return (
751
- <div className="jp-xtralab-DiffWidget-status">
752
- No content to diff.
753
- </div>
748
+ <div className="jp-xtralab-DiffWidget-status">No content to diff.</div>
754
749
  );
755
750
  }
756
751
 
@@ -623,10 +623,7 @@ function LuminoWidget(props: {
623
623
  MessageLoop.sendMessage(widget, Widget.Msg.BeforeDetach);
624
624
  MessageLoop.sendMessage(widget, Widget.Msg.AfterDetach);
625
625
  } catch (err) {
626
- console.warn(
627
- 'xtralab: Widget detach messaging failed',
628
- err
629
- );
626
+ console.warn('xtralab: Widget detach messaging failed', err);
630
627
  }
631
628
  }
632
629
  }
@@ -367,10 +367,7 @@ function PanelHeader(props: {
367
367
  <div className="jp-xtralab-GitPanel-headerInfo">
368
368
  <div className="jp-xtralab-GitPanel-title">Source Control</div>
369
369
  {repoName !== null ? (
370
- <div
371
- className="jp-xtralab-GitPanel-repo"
372
- title={topLevel ?? ''}
373
- >
370
+ <div className="jp-xtralab-GitPanel-repo" title={topLevel ?? ''}>
374
371
  {repoName}
375
372
  </div>
376
373
  ) : null}
@@ -414,9 +411,7 @@ function ChangeSection(props: {
414
411
  <span className="jp-xtralab-GitPanel-sectionChevron">
415
412
  {collapsed ? '▸' : '▾'}
416
413
  </span>
417
- <span className="jp-xtralab-GitPanel-sectionLabel">
418
- {label}
419
- </span>
414
+ <span className="jp-xtralab-GitPanel-sectionLabel">{label}</span>
420
415
  {actions !== undefined ? (
421
416
  <span className="jp-xtralab-GitPanel-sectionActions">
422
417
  {actions.map(action => (
@@ -435,14 +430,10 @@ function ChangeSection(props: {
435
430
  ))}
436
431
  </span>
437
432
  ) : null}
438
- <span className="jp-xtralab-GitPanel-sectionCount">
439
- {count}
440
- </span>
433
+ <span className="jp-xtralab-GitPanel-sectionCount">{count}</span>
441
434
  </div>
442
435
  {!collapsed ? (
443
- <div className="jp-xtralab-GitPanel-sectionBody">
444
- {children}
445
- </div>
436
+ <div className="jp-xtralab-GitPanel-sectionBody">{children}</div>
446
437
  ) : null}
447
438
  </div>
448
439
  );
package/style/base.css CHANGED
@@ -80,9 +80,7 @@
80
80
  height: unset;
81
81
  }
82
82
 
83
- .jp-xtralab-FileBrowser-toolbar
84
- > .jp-Toolbar-item
85
- .jp-ToolbarButtonComponent {
83
+ .jp-xtralab-FileBrowser-toolbar > .jp-Toolbar-item .jp-ToolbarButtonComponent {
86
84
  width: 28px;
87
85
  }
88
86
 
package/style/git.css CHANGED
@@ -142,8 +142,7 @@
142
142
  visibility: hidden;
143
143
  }
144
144
 
145
- .jp-xtralab-GitPanel-sectionHeader:hover
146
- .jp-xtralab-GitPanel-sectionActions {
145
+ .jp-xtralab-GitPanel-sectionHeader:hover .jp-xtralab-GitPanel-sectionActions {
147
146
  visibility: visible;
148
147
  }
149
148