@difizen/libro-lab 0.1.9 → 0.1.11

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 (89) hide show
  1. package/es/command/index.d.ts +5 -0
  2. package/es/command/index.d.ts.map +1 -0
  3. package/es/command/index.js +4 -0
  4. package/es/{menu/menu-command.d.ts → command/lab-command.d.ts} +6 -6
  5. package/es/command/lab-command.d.ts.map +1 -0
  6. package/es/{menu/menu-command.js → command/lab-command.js} +9 -5
  7. package/es/{menu/menu-contribution.d.ts → command/lab-menu-contribution.d.ts} +3 -3
  8. package/es/command/lab-menu-contribution.d.ts.map +1 -0
  9. package/es/{menu/menu-contribution.js → command/lab-menu-contribution.js} +242 -241
  10. package/es/command/menu-bar-view.d.ts.map +1 -0
  11. package/es/{menu → command}/menu-bar-view.js +2 -2
  12. package/es/command/module.d.ts.map +1 -0
  13. package/es/{menu → command}/module.js +2 -2
  14. package/es/config/config-contribution.js +2 -2
  15. package/es/editor-viewer/code-editor-open-handler.d.ts.map +1 -1
  16. package/es/editor-viewer/code-editor-open-handler.js +4 -4
  17. package/es/editor-viewer/code-editor-viewer.d.ts +1 -0
  18. package/es/editor-viewer/code-editor-viewer.d.ts.map +1 -1
  19. package/es/editor-viewer/code-editor-viewer.js +8 -2
  20. package/es/editor-viewer/index.less +16 -0
  21. package/es/editor-viewer/libro-default-open-handler.d.ts +11 -0
  22. package/es/editor-viewer/libro-default-open-handler.d.ts.map +1 -0
  23. package/es/editor-viewer/libro-default-open-handler.js +97 -0
  24. package/es/editor-viewer/libro-default-viewer.d.ts +14 -0
  25. package/es/editor-viewer/libro-default-viewer.d.ts.map +1 -0
  26. package/es/editor-viewer/libro-default-viewer.js +78 -0
  27. package/es/editor-viewer/module.d.ts.map +1 -1
  28. package/es/editor-viewer/module.js +3 -1
  29. package/es/editor-viewer/protocol.d.ts +2 -0
  30. package/es/editor-viewer/protocol.d.ts.map +1 -1
  31. package/es/editor-viewer/protocol.js +3 -1
  32. package/es/github-link/index.js +2 -2
  33. package/es/image-viewer/open-handler.js +2 -2
  34. package/es/image-viewer/viewer.js +2 -2
  35. package/es/index.d.ts +1 -1
  36. package/es/index.d.ts.map +1 -1
  37. package/es/index.js +1 -1
  38. package/es/index.less +17 -5
  39. package/es/kernel-manager/index.js +2 -2
  40. package/es/lab-app.d.ts.map +1 -1
  41. package/es/lab-app.js +6 -4
  42. package/es/layout/brand/brand.js +2 -2
  43. package/es/layout/container.js +2 -2
  44. package/es/layout/content-bottom-tab-view.js +2 -2
  45. package/es/layout/footer/current-file-footer-view.js +2 -2
  46. package/es/layout/footer/footer-view.js +2 -2
  47. package/es/layout/footer/status-footer-view.js +2 -2
  48. package/es/layout/layout-service.d.ts +2 -1
  49. package/es/layout/layout-service.d.ts.map +1 -1
  50. package/es/layout/layout-service.js +59 -25
  51. package/es/layout/layout.js +3 -4
  52. package/es/layout/main.js +2 -2
  53. package/es/layout/saveable-tab-view.js +2 -2
  54. package/es/layout/side-tab-view.js +2 -2
  55. package/es/module.d.ts.map +1 -1
  56. package/es/module.js +1 -1
  57. package/es/toc/libro-toc-panel-view.js +2 -2
  58. package/es/welcome/entry-point-view.d.ts.map +1 -1
  59. package/es/welcome/entry-point-view.js +4 -4
  60. package/es/welcome/welcome-view.js +2 -2
  61. package/package.json +8 -8
  62. package/src/command/index.ts +4 -0
  63. package/src/{menu/menu-command.ts → command/lab-command.ts} +9 -5
  64. package/src/{menu/menu-contribution.ts → command/lab-menu-contribution.ts} +228 -230
  65. package/src/{menu → command}/module.ts +2 -2
  66. package/src/editor-viewer/code-editor-open-handler.ts +2 -5
  67. package/src/editor-viewer/code-editor-viewer.tsx +7 -0
  68. package/src/editor-viewer/index.less +16 -0
  69. package/src/editor-viewer/libro-default-open-handler.ts +34 -0
  70. package/src/editor-viewer/libro-default-viewer.tsx +60 -0
  71. package/src/editor-viewer/module.ts +8 -1
  72. package/src/editor-viewer/protocol.ts +25 -0
  73. package/src/index.less +17 -5
  74. package/src/index.ts +1 -1
  75. package/src/lab-app.ts +6 -1
  76. package/src/layout/layout-service.ts +25 -3
  77. package/src/module.tsx +1 -1
  78. package/src/welcome/entry-point-view.tsx +2 -2
  79. package/es/menu/index.d.ts +0 -5
  80. package/es/menu/index.d.ts.map +0 -1
  81. package/es/menu/index.js +0 -4
  82. package/es/menu/menu-bar-view.d.ts.map +0 -1
  83. package/es/menu/menu-command.d.ts.map +0 -1
  84. package/es/menu/menu-contribution.d.ts.map +0 -1
  85. package/es/menu/module.d.ts.map +0 -1
  86. package/src/menu/index.ts +0 -4
  87. /package/es/{menu → command}/menu-bar-view.d.ts +0 -0
  88. /package/es/{menu → command}/module.d.ts +0 -0
  89. /package/src/{menu → command}/menu-bar-view.tsx +0 -0
@@ -0,0 +1,5 @@
1
+ export * from './menu-bar-view.js';
2
+ export * from './lab-command.js';
3
+ export * from './lab-menu-contribution.js';
4
+ export * from './module.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./menu-bar-view.js";
2
+ export * from "./lab-command.js";
3
+ export * from "./lab-menu-contribution.js";
4
+ export * from "./module.js";
@@ -1,12 +1,8 @@
1
- export declare const MenuCommands: {
1
+ export declare const LabCommands: {
2
2
  About: {
3
3
  id: string;
4
4
  label: string;
5
5
  };
6
- OpenTerminal: {
7
- id: string;
8
- label: string;
9
- };
10
6
  Save: {
11
7
  id: string;
12
8
  label: string;
@@ -135,5 +131,9 @@ export declare const MenuCommands: {
135
131
  id: string;
136
132
  label: string;
137
133
  };
134
+ ToggleBottom: {
135
+ id: string;
136
+ label: string;
137
+ };
138
138
  };
139
- //# sourceMappingURL=menu-command.d.ts.map
139
+ //# sourceMappingURL=lab-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lab-command.d.ts","sourceRoot":"","sources":["../../src/command/lab-command.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IvB,CAAC"}
@@ -1,12 +1,12 @@
1
- export var MenuCommands = {
1
+ export var LabCommands = {
2
2
  About: {
3
3
  id: 'libro-lab-header-menu-help-about',
4
4
  label: '关于'
5
5
  },
6
- OpenTerminal: {
7
- id: 'libro-lab-header-menu-terminal-open',
8
- label: '新建终端'
9
- },
6
+ // OpenTerminal: {
7
+ // id: 'libro-lab-header-menu-terminal-open',
8
+ // label: '新建终端',
9
+ // },
10
10
  Save: {
11
11
  id: 'libro-lab-header-menu-file-save',
12
12
  label: '保存'
@@ -134,5 +134,9 @@ export var MenuCommands = {
134
134
  RunCellAndSelectNext: {
135
135
  id: 'libro-lab-header-menu-run-cell-and-select-next',
136
136
  label: "\u6267\u884C\u5E76\u9009\u4E2D\u4E0B\u4E00\u4E2A\u5355\u5143\u683C"
137
+ },
138
+ ToggleBottom: {
139
+ id: 'libro-lab-toggle-bottom',
140
+ label: "\u5207\u6362\u5E95\u90E8\u9762\u677F"
137
141
  }
138
142
  };
@@ -3,7 +3,7 @@ import { TerminalManager } from '@difizen/libro-terminal';
3
3
  import type { MenuRegistry } from '@difizen/mana-app';
4
4
  import { CommandContribution, CommandRegistry, MenuContribution, ViewManager } from '@difizen/mana-app';
5
5
  import { LayoutService } from '../layout/layout-service.js';
6
- export declare namespace HeaderMenus {
6
+ export declare namespace LabMenus {
7
7
  const FILE: string[];
8
8
  const EDIT: string[];
9
9
  const VIEW: string[];
@@ -11,7 +11,7 @@ export declare namespace HeaderMenus {
11
11
  const TERMINAL: string[];
12
12
  const HELP: string[];
13
13
  }
14
- export declare class HeaderMenu implements MenuContribution, CommandContribution {
14
+ export declare class LabMenu implements MenuContribution, CommandContribution {
15
15
  protected commandRegistry: CommandRegistry;
16
16
  protected libroService: LibroService;
17
17
  protected layoutService: LayoutService;
@@ -20,4 +20,4 @@ export declare class HeaderMenu implements MenuContribution, CommandContribution
20
20
  registerMenus(menu: MenuRegistry): void;
21
21
  registerCommands(commands: CommandRegistry): void;
22
22
  }
23
- //# sourceMappingURL=menu-contribution.d.ts.map
23
+ //# sourceMappingURL=lab-menu-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lab-menu-contribution.d.ts","sourceRoot":"","sources":["../../src/command/lab-menu-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAoB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,mBAAmB,EACnB,eAAe,EAGf,gBAAgB,EAEhB,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,yBAAiB,QAAQ,CAAC;IACjB,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,IAAI,UAA+B,CAAC;IAC1C,MAAM,GAAG,UAA8B,CAAC;IACxC,MAAM,QAAQ,UAAmC,CAAC;IAClD,MAAM,IAAI,UAA+B,CAAC;CAClD;AAED,qBACa,OAAQ,YAAW,gBAAgB,EAAE,mBAAmB;IAC1C,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAC9C,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACrC,eAAe,EAAE,eAAe,CAAC;IACrC,WAAW,EAAE,WAAW,CAAC;IAE9C,aAAa,CAAC,IAAI,EAAE,YAAY;IAkLhC,gBAAgB,CAAC,QAAQ,EAAE,eAAe;CAgmB3C"}