@difizen/libro-jupyter 0.0.2-alpha.0 → 0.1.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.
Files changed (109) hide show
  1. package/es/add-between-cell/add-between-cell-command-contribution.js +2 -2
  2. package/es/add-between-cell/add-between-cell.js +5 -5
  3. package/es/cell/jupyter-code-cell-model.js +1 -1
  4. package/es/cell/jupyter-code-cell-view.js +6 -6
  5. package/es/command/command-contribution.js +2 -2
  6. package/es/command/keybinding-contribution.js +1 -1
  7. package/es/config/config-contribution.js +1 -1
  8. package/es/configuration/libro-configuration-contribution.js +1 -1
  9. package/es/contents/content-contribution.js +2 -2
  10. package/es/file/file-command.d.ts +20 -0
  11. package/es/file/file-command.d.ts.map +1 -0
  12. package/es/file/file-command.js +461 -0
  13. package/es/file/file-create-modal-contribution.d.ts +5 -0
  14. package/es/file/file-create-modal-contribution.d.ts.map +1 -0
  15. package/es/file/file-create-modal-contribution.js +23 -0
  16. package/es/file/file-create-modal.d.ts +8 -0
  17. package/es/file/file-create-modal.d.ts.map +1 -0
  18. package/es/file/file-create-modal.js +101 -0
  19. package/es/file/file-createdir-modal-contribution.d.ts +5 -0
  20. package/es/file/file-createdir-modal-contribution.d.ts.map +1 -0
  21. package/es/file/file-createdir-modal-contribution.js +23 -0
  22. package/es/file/file-createdir-modal.d.ts +8 -0
  23. package/es/file/file-createdir-modal.d.ts.map +1 -0
  24. package/es/file/file-createdir-modal.js +105 -0
  25. package/es/file/file-name-alias.js +1 -1
  26. package/es/file/file-protocol.js +7 -1
  27. package/es/file/file-rename-modal-contribution.d.ts +5 -0
  28. package/es/file/file-rename-modal-contribution.d.ts.map +1 -0
  29. package/es/file/file-rename-modal-contribution.js +23 -0
  30. package/es/file/file-rename-modal.d.ts +9 -0
  31. package/es/file/file-rename-modal.d.ts.map +1 -0
  32. package/es/file/file-rename-modal.js +75 -0
  33. package/es/file/file-service.d.ts +7 -3
  34. package/es/file/file-service.d.ts.map +1 -1
  35. package/es/file/file-service.js +155 -40
  36. package/es/file/file-tree-label-provider.js +1 -1
  37. package/es/file/file-view/index.d.ts +1 -1
  38. package/es/file/file-view/index.d.ts.map +1 -1
  39. package/es/file/file-view/index.js +7 -2
  40. package/es/file/module.d.ts.map +1 -1
  41. package/es/file/module.js +5 -1
  42. package/es/file/navigatable-view.d.ts +5 -1
  43. package/es/file/navigatable-view.d.ts.map +1 -1
  44. package/es/file/navigatable-view.js +33 -11
  45. package/es/file/open-handler-contribution.js +4 -4
  46. package/es/file/utils.js +43 -0
  47. package/es/index.d.ts +1 -0
  48. package/es/index.d.ts.map +1 -1
  49. package/es/index.js +1 -0
  50. package/es/keybind-instructions/keybind-instructions-contribution.js +2 -2
  51. package/es/keybind-instructions/keybind-instructions-items.js +1 -1
  52. package/es/keybind-instructions/keybind-instructions-view.js +2 -2
  53. package/es/libro-jupyter-file-service.js +3 -3
  54. package/es/libro-jupyter-model.js +2 -2
  55. package/es/libro-jupyter-protocol.d.ts +0 -4
  56. package/es/libro-jupyter-protocol.d.ts.map +1 -1
  57. package/es/libro-jupyter-protocol.js +1 -2
  58. package/es/libro-jupyter-server-launch-manager.d.ts +1 -3
  59. package/es/libro-jupyter-server-launch-manager.d.ts.map +1 -1
  60. package/es/libro-jupyter-server-launch-manager.js +4 -11
  61. package/es/libro-jupyter-view.js +1 -1
  62. package/es/output/libro-jupyter-outputarea.js +3 -3
  63. package/es/rendermime/index.less +1 -10
  64. package/es/rendermime/plotly-renderers.js +4 -4
  65. package/es/rendermime/plotly-rendermime-contribution.js +1 -1
  66. package/es/theme/color-registry.js +1 -1
  67. package/es/toolbar/kernel-selector-dropdown.js +3 -3
  68. package/es/toolbar/save-file-error-contribution.js +1 -1
  69. package/es/toolbar/toolbar-contribution.js +1 -1
  70. package/package.json +16 -16
  71. package/src/file/file-command.tsx +320 -0
  72. package/src/file/file-create-modal-contribution.ts +10 -0
  73. package/src/file/file-create-modal.tsx +73 -0
  74. package/src/file/file-createdir-modal-contribution.ts +10 -0
  75. package/src/file/file-createdir-modal.tsx +76 -0
  76. package/src/file/file-protocol.ts +17 -0
  77. package/src/file/file-rename-modal-contribution.ts +10 -0
  78. package/src/file/file-rename-modal.tsx +64 -0
  79. package/src/file/file-service.ts +69 -33
  80. package/src/file/file-view/index.tsx +4 -1
  81. package/src/file/module.ts +8 -0
  82. package/src/file/navigatable-view.tsx +20 -1
  83. package/src/file/utils.ts +51 -0
  84. package/src/index.spec.ts +11 -0
  85. package/src/index.ts +1 -0
  86. package/src/libro-jupyter-protocol.ts +0 -5
  87. package/src/libro-jupyter-server-launch-manager.ts +2 -11
  88. package/es/components/icons.d.ts +0 -5
  89. package/es/components/icons.d.ts.map +0 -1
  90. package/es/config/config.d.ts +0 -3
  91. package/es/config/config.d.ts.map +0 -1
  92. package/es/configuration/index.d.ts +0 -3
  93. package/es/configuration/index.d.ts.map +0 -1
  94. package/es/configuration/libro-configuration-contribution.d.ts +0 -5
  95. package/es/configuration/libro-configuration-contribution.d.ts.map +0 -1
  96. package/es/configuration/libro-configuration.d.ts +0 -3
  97. package/es/configuration/libro-configuration.d.ts.map +0 -1
  98. package/es/file/file-name-alias.d.ts +0 -7
  99. package/es/file/file-name-alias.d.ts.map +0 -1
  100. package/es/file/file-protocol.d.ts +0 -8
  101. package/es/file/file-protocol.d.ts.map +0 -1
  102. package/es/file/file-tree-label-provider.d.ts +0 -13
  103. package/es/file/file-tree-label-provider.d.ts.map +0 -1
  104. package/es/keybind-instructions/keybind-instructions-items.d.ts +0 -14
  105. package/es/keybind-instructions/keybind-instructions-items.d.ts.map +0 -1
  106. package/es/theme/color-registry.d.ts +0 -6
  107. package/es/theme/color-registry.d.ts.map +0 -1
  108. package/es/theme/index.d.ts +0 -2
  109. package/es/theme/index.d.ts.map +0 -1
@@ -1,3 +1,5 @@
1
+ import pathUtil from 'path';
2
+
1
3
  import type { IContentsModel } from '@difizen/libro-kernel';
2
4
  import { ContentsManager } from '@difizen/libro-kernel';
3
5
  import type {
@@ -7,6 +9,7 @@ import type {
7
9
  ResolveFileOptions,
8
10
  } from '@difizen/mana-app';
9
11
  import { FileService, URI, inject, singleton } from '@difizen/mana-app';
12
+ import { message } from 'antd';
10
13
 
11
14
  import { FileNameAlias } from './file-name-alias.js';
12
15
  import type { DirItem } from './file-protocol.js';
@@ -50,41 +53,29 @@ export class JupyterFileService extends FileService {
50
53
  }
51
54
 
52
55
  async write(filePath: string, content: string): Promise<string | undefined> {
53
- try {
54
- await this.contentsManager.save(filePath, {
55
- content,
56
- });
57
- return filePath;
58
- } catch (_e) {
59
- //
60
- }
61
- return undefined;
56
+ await this.contentsManager.save(filePath, {
57
+ content,
58
+ });
59
+ return filePath;
62
60
  }
63
61
 
64
62
  async readDir(dirPath: string): Promise<DirItem[]> {
65
63
  let children: DirItem[] = [];
66
- try {
67
- const res = await this.contentsManager.get(dirPath, { type: 'directory' });
68
- if (res && this.isDirectory(res)) {
69
- const content = res.content;
70
- children = content.map((item) => {
71
- return [item.path, this.isDirectory(item) ? 2 : 1];
72
- });
73
- }
74
- } catch (_e) {
75
- //
64
+ const res = await this.contentsManager.get(dirPath, { type: 'directory' });
65
+ if (res && this.isDirectory(res)) {
66
+ const content = res.content;
67
+ children = content.map((item) => {
68
+ return [item.path, this.isDirectory(item) ? 2 : 1];
69
+ });
76
70
  }
77
71
  return children;
78
72
  }
73
+
79
74
  async read(filePath: string): Promise<string | undefined> {
80
75
  let content: string | undefined = undefined;
81
- try {
82
- const res = await this.contentsManager.get(filePath);
83
- if (res && !this.isDirectory(res)) {
84
- content = res.content as string;
85
- }
86
- } catch (_e) {
87
- //
76
+ const res = await this.contentsManager.get(filePath);
77
+ if (res && !this.isDirectory(res)) {
78
+ content = res.content as string;
88
79
  }
89
80
  return content;
90
81
  }
@@ -94,7 +85,7 @@ export class JupyterFileService extends FileService {
94
85
  try {
95
86
  const res = await this.contentsManager.get(filePath);
96
87
  stat = this.toFileMeta(res);
97
- } catch (_e) {
88
+ } catch {
98
89
  //
99
90
  }
100
91
  return stat;
@@ -132,22 +123,22 @@ export class JupyterFileService extends FileService {
132
123
 
133
124
  override async copy(
134
125
  source: URI,
135
- target: URI,
136
- options?: CopyFileOptions,
126
+ _target: URI,
127
+ _options?: CopyFileOptions,
137
128
  ): Promise<FileStatWithMetadata> {
129
+ await this.contentsManager.copy(source.path.toString(), _target.path.toString());
138
130
  return this.resolve(source);
139
131
  }
140
132
  override async move(
141
133
  source: URI,
142
- target: URI,
143
- options?: MoveFileOptions,
134
+ _target: URI,
135
+ _options?: MoveFileOptions,
144
136
  ): Promise<FileStatWithMetadata> {
145
137
  return this.resolve(source);
146
138
  }
147
139
 
148
140
  toFileStatMeta(meta: FileMeta): FileStatWithMetadata {
149
141
  const uri = URI.withScheme(new URI(meta.resource), 'file');
150
-
151
142
  return {
152
143
  ...meta,
153
144
  resource: uri,
@@ -158,7 +149,7 @@ export class JupyterFileService extends FileService {
158
149
 
159
150
  override async resolve(
160
151
  resource: URI,
161
- options?: ResolveFileOptions | undefined,
152
+ _options?: ResolveFileOptions | undefined,
162
153
  ): Promise<FileStatWithMetadata> {
163
154
  const resolved = await this.doResolve(resource.path.toString());
164
155
  if (resolved) {
@@ -176,4 +167,49 @@ export class JupyterFileService extends FileService {
176
167
  isSymbolicLink: false,
177
168
  };
178
169
  }
170
+
171
+ async delete(
172
+ resource: URI,
173
+ _options?: ResolveFileOptions | undefined,
174
+ ): Promise<FileStatWithMetadata> {
175
+ await this.contentsManager.delete(resource.path.toString());
176
+ return this.resolve(resource);
177
+ }
178
+
179
+ async rename(resource: URI, newName: string): Promise<FileStatWithMetadata> {
180
+ const newPath = pathUtil.join(resource.path.dir.toString(), newName);
181
+ await this.contentsManager.rename(resource.path.toString(), newPath);
182
+
183
+ return this.resolve(resource);
184
+ }
185
+
186
+ async newFile(fileName: string, target: URI): Promise<FileStatWithMetadata> {
187
+ const targetFileUri = new URI(pathUtil.join(target.path.toString(), fileName));
188
+ if ((await this.resolve(targetFileUri)).isFile) {
189
+ message.error('文件名重复');
190
+ return this.resolve(target);
191
+ }
192
+ const fileNameArr = fileName.split('.');
193
+ const ext = fileNameArr[fileNameArr.length - 1];
194
+ const res = await this.contentsManager.newUntitled({
195
+ path: target.path.toString(),
196
+ ext,
197
+ });
198
+ await this.rename(new URI(res.path.toString()), fileName);
199
+ return this.resolve(target);
200
+ }
201
+
202
+ async newFileDir(dirName: string, target: URI): Promise<FileStatWithMetadata> {
203
+ const targetFileUri = new URI(pathUtil.join(target.path.toString(), dirName));
204
+ if ((await this.resolve(targetFileUri)).isDirectory) {
205
+ message.error('文件夹重复');
206
+ return this.resolve(target);
207
+ }
208
+ const res = await this.contentsManager.newUntitled({
209
+ path: target.path.toString(),
210
+ type: 'directory',
211
+ });
212
+ await this.rename(new URI(res.path.toString()), dirName);
213
+ return this.resolve(target);
214
+ }
179
215
  }
@@ -1,3 +1,4 @@
1
+ import { FolderFilled } from '@ant-design/icons';
1
2
  import type { TreeNode, ViewOpenHandler } from '@difizen/mana-app';
2
3
  import { FileTreeViewFactory } from '@difizen/mana-app';
3
4
  import {
@@ -19,7 +20,7 @@ import {
19
20
  inject,
20
21
  singleton,
21
22
  } from '@difizen/mana-app';
22
- import type React from 'react';
23
+ import React from 'react';
23
24
 
24
25
  import type { LibroNavigatableView } from '../navigatable-view.js';
25
26
 
@@ -53,6 +54,8 @@ export class FileView extends FileTreeView {
53
54
  labelProvider,
54
55
  decoratorService,
55
56
  );
57
+ this.title.label = '文件导航';
58
+ this.title.icon = <FolderFilled />;
56
59
  this.toDispose.push(this.model.onOpenNode(this.openNode));
57
60
  }
58
61
 
@@ -1,6 +1,10 @@
1
1
  import { FileTreeModule, ManaModule } from '@difizen/mana-app';
2
2
 
3
+ import { FileCommandContribution } from './file-command.js';
4
+ import { FileCreateModalContribution } from './file-create-modal-contribution.js';
5
+ import { FileCreateDirModalContribution } from './file-createdir-modal-contribution.js';
3
6
  import { FileNameAlias } from './file-name-alias.js';
7
+ import { FileRenameModalContribution } from './file-rename-modal-contribution.js';
4
8
  import { JupyterFileService } from './file-service.js';
5
9
  import { FileTreeLabelProvider } from './file-tree-label-provider.js';
6
10
  import { FileView } from './file-view/index.js';
@@ -15,5 +19,9 @@ export const LibroJupyterFileModule = ManaModule.create()
15
19
  FileTreeLabelProvider,
16
20
  LibroNavigatableView,
17
21
  LibroJupyterOpenHandler,
22
+ FileCommandContribution,
23
+ FileCreateModalContribution,
24
+ FileCreateDirModalContribution,
25
+ FileRenameModalContribution,
18
26
  )
19
27
  .dependOn(FileTreeModule);
@@ -1,6 +1,7 @@
1
1
  import type { LibroView } from '@difizen/libro-core';
2
2
  import { LibroService } from '@difizen/libro-core';
3
3
  import type { NavigatableView } from '@difizen/mana-app';
4
+ import { CommandRegistry } from '@difizen/mana-app';
4
5
  import {
5
6
  BaseView,
6
7
  inject,
@@ -19,6 +20,8 @@ import {
19
20
  } from '@difizen/mana-app';
20
21
  import { createRef, forwardRef } from 'react';
21
22
 
23
+ import type { EditorView } from './file-protocol.js';
24
+
22
25
  export const LibroEditorComponent = forwardRef(function LibroEditorComponent() {
23
26
  const instance = useInject<LibroNavigatableView>(ViewInstance);
24
27
 
@@ -32,15 +35,23 @@ export const LibroEditorComponent = forwardRef(function LibroEditorComponent() {
32
35
  export const LibroNavigatableViewFactoryId = 'libro-navigatable-view-factory';
33
36
  @transient()
34
37
  @view(LibroNavigatableViewFactoryId)
35
- export class LibroNavigatableView extends BaseView implements NavigatableView {
38
+ export class LibroNavigatableView
39
+ extends BaseView
40
+ implements NavigatableView, EditorView
41
+ {
36
42
  @inject(LibroService) protected libroService: LibroService;
37
43
 
44
+ @inject(CommandRegistry) commandRegistry: CommandRegistry;
45
+
38
46
  override view = LibroEditorComponent;
39
47
 
40
48
  codeRef = createRef<HTMLDivElement>();
41
49
 
42
50
  @prop() filePath?: string;
43
51
 
52
+ @prop()
53
+ dirty: boolean;
54
+
44
55
  @prop()
45
56
  libroView?: LibroView;
46
57
 
@@ -56,6 +67,7 @@ export class LibroNavigatableView extends BaseView implements NavigatableView {
56
67
  ) {
57
68
  super();
58
69
  this.filePath = options.path;
70
+ this.dirty = false;
59
71
  this.title.caption = options.path;
60
72
  const uri = new URI(options.path);
61
73
  const uriRef = URIIconReference.create('file', new VScodeURI(options.path));
@@ -77,7 +89,14 @@ export class LibroNavigatableView extends BaseView implements NavigatableView {
77
89
  return;
78
90
  }
79
91
  this.libroView = libroView;
92
+ this.libroView.model.onContentChanged(() => {
93
+ this.dirty = true;
94
+ });
95
+ this.libroView.onSave(() => {
96
+ this.dirty = false;
97
+ });
80
98
  await this.libroView.initialized;
99
+ this.libroView.focus();
81
100
  this.defer.resolve();
82
101
  }
83
102
 
@@ -0,0 +1,51 @@
1
+ import { message } from 'antd';
2
+
3
+ function copyFallback(string: string) {
4
+ function handler(event: ClipboardEvent) {
5
+ const clipboardData = event.clipboardData || (window as any).clipboardData;
6
+ clipboardData.setData('text/plain', string);
7
+ event.preventDefault();
8
+ document.removeEventListener('copy', handler, true);
9
+ }
10
+
11
+ document.addEventListener('copy', handler, true);
12
+ const successful = document.execCommand('copy');
13
+ if (successful) {
14
+ message.success('复制成功');
15
+ } else {
16
+ message.warning('复制失败');
17
+ }
18
+ }
19
+
20
+ // 复制到剪贴板
21
+ export const copy2clipboard = (string: string) => {
22
+ navigator.permissions
23
+ .query({
24
+ name: 'clipboard-write' as any,
25
+ })
26
+ .then((result) => {
27
+ if (result.state === 'granted' || result.state === 'prompt') {
28
+ if (window.navigator && window.navigator.clipboard) {
29
+ window.navigator.clipboard
30
+ .writeText(string)
31
+ .then(() => {
32
+ message.success('复制成功');
33
+ return;
34
+ })
35
+ .catch((err) => {
36
+ message.warning('复制失败');
37
+ console.error('Could not copy text: ', err);
38
+ });
39
+ } else {
40
+ console.warn('navigator is not exist');
41
+ }
42
+ } else {
43
+ console.warn('浏览器权限不允许复制');
44
+ copyFallback(string);
45
+ }
46
+ return;
47
+ })
48
+ .catch(() => {
49
+ //
50
+ });
51
+ };
@@ -0,0 +1,11 @@
1
+ import assert from 'assert';
2
+
3
+ import { JupyterFileService, LibroJupyterModel } from './index.js';
4
+ import 'reflect-metadata';
5
+
6
+ describe('libro-jupyter', () => {
7
+ it('#import', () => {
8
+ assert(JupyterFileService);
9
+ assert(LibroJupyterModel);
10
+ });
11
+ });
package/src/index.ts CHANGED
@@ -26,6 +26,7 @@ export * from './theme/index.js';
26
26
  export * from './toolbar/index.js';
27
27
  export * from './libro-jupyter-protocol.js';
28
28
  export * from './libro-jupyter-model.js';
29
+ export * from './libro-jupyter-view.js';
29
30
  export * from './libro-jupyter-file-service.js';
30
31
  export * from './libro-jupyter-server-launch-manager.js';
31
32
  export * from './file/index.js';
@@ -52,8 +52,3 @@ export interface LibroFileService {
52
52
  currentFileContents: IContentsModel,
53
53
  ) => Promise<IContentsModel | undefined>;
54
54
  }
55
-
56
- export const ServerLaunchManager = Symbol('ServerLaunchManager');
57
- export interface ServerLaunchManager {
58
- launch: () => Promise<any>;
59
- }
@@ -2,12 +2,8 @@ import { ServerManager, ServerConnection } from '@difizen/libro-kernel';
2
2
  import { inject, singleton } from '@difizen/mana-app';
3
3
  import { ApplicationContribution } from '@difizen/mana-app';
4
4
 
5
- import { ServerLaunchManager } from './libro-jupyter-protocol.js';
6
-
7
- @singleton({ contrib: [ServerLaunchManager, ApplicationContribution] })
8
- export class JupyterServerLaunchManager
9
- implements ServerLaunchManager, ApplicationContribution
10
- {
5
+ @singleton({ contrib: [ApplicationContribution] })
6
+ export class JupyterServerLaunchManager implements ApplicationContribution {
11
7
  protected serverManager: ServerManager;
12
8
  protected serverConnection: ServerConnection;
13
9
 
@@ -27,10 +23,5 @@ export class JupyterServerLaunchManager
27
23
  baseUrl: `http://${host}`,
28
24
  wsUrl: `ws://${host}`,
29
25
  });
30
- this.launch();
31
- }
32
-
33
- launch() {
34
- return this.serverManager.launch();
35
26
  }
36
27
  }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const InfoCircle: React.FC;
3
- export declare const WarningIcon: React.FC;
4
- export declare const Location: React.FC;
5
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/components/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EA4C9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAuC/B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EA2B5B,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ConfigurationNode } from '@difizen/mana-app';
2
- export declare const LibroAutosaveSetting: ConfigurationNode<boolean>;
3
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,CAU3D,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './libro-configuration.js';
2
- export * from './libro-configuration-contribution.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configuration/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ConfigurationContribution } from '@difizen/mana-app';
2
- export declare class LibroConfigurationContribution implements ConfigurationContribution {
3
- registerConfigurations(): import("@difizen/mana-app").ConfigurationNode<string>[];
4
- }
5
- //# sourceMappingURL=libro-configuration-contribution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"libro-configuration-contribution.d.ts","sourceRoot":"","sources":["../../src/configuration/libro-configuration-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAK9D,qBACa,8BAA+B,YAAW,yBAAyB;IAC9E,sBAAsB;CAGvB"}
@@ -1,3 +0,0 @@
1
- import type { ConfigurationNode } from '@difizen/mana-app';
2
- export declare const LibroJupyterConfiguration: Record<string, ConfigurationNode<string>>;
3
- //# sourceMappingURL=libro-configuration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"libro-configuration.d.ts","sourceRoot":"","sources":["../../src/configuration/libro-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAW/E,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { URI } from '@difizen/mana-app';
2
- export declare class FileNameAlias {
3
- protected aliases: Map<string, string>;
4
- set(uri: URI, name: string): void;
5
- get(uri: URI): string | undefined;
6
- }
7
- //# sourceMappingURL=file-name-alias.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-name-alias.d.ts","sourceRoot":"","sources":["../../src/file/file-name-alias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAG7C,qBACa,aAAa;IACxB,SAAS,CAAC,OAAO,sBAA6B;IAE9C,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAI1B,GAAG,CAAC,GAAG,EAAE,GAAG;CAGb"}
@@ -1,8 +0,0 @@
1
- export declare enum FileType {
2
- Unknown = 0,
3
- File = 1,
4
- Directory = 2,
5
- SymbolicLink = 64
6
- }
7
- export type DirItem = [string, FileType];
8
- //# sourceMappingURL=file-protocol.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-protocol.d.ts","sourceRoot":"","sources":["../../src/file/file-protocol.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,IAAI;IACX,IAAI,IAAI;IACR,SAAS,IAAI;IACb,YAAY,KAAK;CAClB;AACD,MAAM,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { DidChangeLabelEvent, FileStat, URI } from '@difizen/mana-app';
2
- import { FileStatNode, LabelProvider, LabelProviderContribution, TreeLabelProvider, URIIconReference } from '@difizen/mana-app';
3
- export declare class FileTreeLabelProvider implements LabelProviderContribution {
4
- protected readonly labelProvider: LabelProvider;
5
- protected readonly treeLabelProvider: TreeLabelProvider;
6
- protected asURIIconReference(element: FileStat): URI | URIIconReference;
7
- canHandle(element: object): number;
8
- getIcon(node: FileStatNode): string;
9
- getName(node: FileStatNode): string;
10
- getDescription(node: FileStatNode): string;
11
- affects(node: FileStatNode, event: DidChangeLabelEvent): boolean;
12
- }
13
- //# sourceMappingURL=file-tree-label-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-tree-label-provider.d.ts","sourceRoot":"","sources":["../../src/file/file-tree-label-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EACL,YAAY,EACZ,aAAa,EACb,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAGjB,MAAM,mBAAmB,CAAC;AAE3B,qBACa,qBAAsB,YAAW,yBAAyB;IAC9C,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAC5C,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAEnF,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,GAAG,GAAG,GAAG,gBAAgB;IAMvE,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIlC,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM;IAInC,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM;IAInC,cAAc,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM;IAI1C,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,mBAAmB,GAAG,OAAO;CAGjE"}
@@ -1,14 +0,0 @@
1
- /// <reference types="react" resolution-mode="require"/>
2
- import type { ColumnsType } from 'antd/es/table';
3
- export interface DataType {
4
- key: React.Key;
5
- actionDescription: React.ReactNode;
6
- keybind: React.ReactNode;
7
- }
8
- export declare class LibroKeybindItems {
9
- commandModeActionColumns: ColumnsType<DataType>;
10
- editModeActionColumns: ColumnsType<DataType>;
11
- editModeData: DataType[];
12
- commandModeData: DataType[];
13
- }
14
- //# sourceMappingURL=keybind-instructions-items.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keybind-instructions-items.d.ts","sourceRoot":"","sources":["../../src/keybind-instructions/keybind-instructions-items.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC;IACf,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,qBACa,iBAAiB;IAC5B,wBAAwB,EAAE,WAAW,CAAC,QAAQ,CAAC,CAW7C;IAEF,qBAAqB,EAAE,WAAW,CAAC,QAAQ,CAAC,CAU1C;IAEF,YAAY,EAAE,QAAQ,EAAE,CA4OtB;IAEF,eAAe,EAAE,QAAQ,EAAE,CA+TzB;CACH"}
@@ -1,6 +0,0 @@
1
- import type { ColorRegistry } from '@difizen/mana-app';
2
- import { ColorContribution } from '@difizen/mana-app';
3
- export declare class LibroJupyterColorContribution implements ColorContribution {
4
- registerColors(colors: ColorRegistry): void;
5
- }
6
- //# sourceMappingURL=color-registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-registry.d.ts","sourceRoot":"","sources":["../../src/theme/color-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAS,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,qBACa,6BAA8B,YAAW,iBAAiB;IACrE,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;CAsS5C"}
@@ -1,2 +0,0 @@
1
- export * from './color-registry.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}