@difizen/libro-lab 0.2.35 → 0.2.36

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 (63) hide show
  1. package/es/command/lab-command.d.ts.map +1 -1
  2. package/es/command/lab-command.js +31 -35
  3. package/es/command/lab-menu-contribution.d.ts.map +1 -1
  4. package/es/command/lab-menu-contribution.js +197 -39
  5. package/es/command/menu-bar-view.d.ts.map +1 -1
  6. package/es/command/menu-bar-view.js +6 -1
  7. package/es/common/icon.d.ts.map +1 -1
  8. package/es/common/icon.js +21 -36
  9. package/es/editor-viewer/empty-icon.d.ts +3 -0
  10. package/es/editor-viewer/empty-icon.d.ts.map +1 -0
  11. package/es/editor-viewer/empty-icon.js +495 -0
  12. package/es/editor-viewer/empty.svg +136 -0
  13. package/es/editor-viewer/libro-default-viewer.d.ts.map +1 -1
  14. package/es/editor-viewer/libro-default-viewer.js +4 -6
  15. package/es/kernel-and-terminal-panel/collapse/index.d.ts.map +1 -1
  16. package/es/kernel-and-terminal-panel/collapse/index.js +10 -9
  17. package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.d.ts.map +1 -1
  18. package/es/kernel-and-terminal-panel/kernel-and-terminal-panel-view.js +6 -1
  19. package/es/kernel-and-terminal-panel/panel-command.d.ts.map +1 -1
  20. package/es/kernel-and-terminal-panel/panel-command.js +3 -2
  21. package/es/kernel-manager/index.d.ts.map +1 -1
  22. package/es/kernel-manager/index.js +7 -2
  23. package/es/lang-switcher/index.d.ts +7 -0
  24. package/es/lang-switcher/index.d.ts.map +1 -0
  25. package/es/lang-switcher/index.js +58 -0
  26. package/es/layout/footer/current-file-footer-view.d.ts.map +1 -1
  27. package/es/layout/footer/current-file-footer-view.js +2 -1
  28. package/es/layout/footer/status-footer-view.d.ts.map +1 -1
  29. package/es/layout/footer/status-footer-view.js +12 -11
  30. package/es/layout/layout-service.d.ts +2 -0
  31. package/es/layout/layout-service.d.ts.map +1 -1
  32. package/es/layout/layout-service.js +15 -4
  33. package/es/layout/layout.d.ts.map +1 -1
  34. package/es/layout/layout.js +3 -2
  35. package/es/module.d.ts.map +1 -1
  36. package/es/module.js +14 -1
  37. package/es/toc/libro-toc-panel-view.d.ts.map +1 -1
  38. package/es/toc/libro-toc-panel-view.js +7 -2
  39. package/es/welcome/entry-point-view.d.ts.map +1 -1
  40. package/es/welcome/entry-point-view.js +5 -4
  41. package/es/welcome/welcome-view.d.ts.map +1 -1
  42. package/es/welcome/welcome-view.js +8 -3
  43. package/package.json +8 -6
  44. package/src/command/lab-command.ts +31 -35
  45. package/src/command/{lab-menu-contribution.ts → lab-menu-contribution.tsx} +47 -39
  46. package/src/command/menu-bar-view.tsx +2 -1
  47. package/src/common/icon.tsx +0 -8
  48. package/src/editor-viewer/empty-icon.tsx +425 -0
  49. package/src/editor-viewer/empty.svg +136 -0
  50. package/src/editor-viewer/libro-default-viewer.tsx +7 -7
  51. package/src/kernel-and-terminal-panel/collapse/index.tsx +11 -10
  52. package/src/kernel-and-terminal-panel/kernel-and-terminal-panel-view.tsx +5 -1
  53. package/src/kernel-and-terminal-panel/panel-command.tsx +3 -2
  54. package/src/kernel-manager/index.tsx +3 -2
  55. package/src/lang-switcher/index.tsx +36 -0
  56. package/src/layout/footer/current-file-footer-view.tsx +2 -1
  57. package/src/layout/footer/status-footer-view.tsx +13 -13
  58. package/src/layout/layout-service.ts +7 -0
  59. package/src/layout/layout.tsx +3 -2
  60. package/src/module.tsx +17 -0
  61. package/src/toc/libro-toc-panel-view.tsx +3 -2
  62. package/src/welcome/entry-point-view.tsx +40 -37
  63. package/src/welcome/welcome-view.tsx +8 -3
package/es/common/icon.js CHANGED
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
1
  import { CodeFilled } from '@ant-design/icons';
3
2
  import "./index.less";
4
3
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -79,7 +78,7 @@ export function TocIcon(props) {
79
78
  });
80
79
  }
81
80
  export function Loadding(props) {
82
- return /*#__PURE__*/_jsxs("svg", {
81
+ return /*#__PURE__*/_jsx("svg", {
83
82
  width: "14px",
84
83
  height: "14px",
85
84
  viewBox: "0 0 14 14",
@@ -87,9 +86,7 @@ export function Loadding(props) {
87
86
  xmlns: "http://www.w3.org/2000/svg",
88
87
  xmlnsXlink: "http://www.w3.org/1999/xlink",
89
88
  className: "libro-lab-loadding",
90
- children: [/*#__PURE__*/_jsx("title", {
91
- children: "\u5F62\u72B6\u7ED3\u5408"
92
- }), /*#__PURE__*/_jsx("g", {
89
+ children: /*#__PURE__*/_jsx("g", {
93
90
  id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
94
91
  stroke: "none",
95
92
  strokeWidth: "1",
@@ -112,20 +109,18 @@ export function Loadding(props) {
112
109
  })
113
110
  })
114
111
  })
115
- })]
112
+ })
116
113
  });
117
114
  }
118
115
  export function TerminalIcon(props) {
119
- return /*#__PURE__*/_jsxs("svg", {
116
+ return /*#__PURE__*/_jsx("svg", {
120
117
  width: "32px",
121
118
  height: "25px",
122
119
  viewBox: "0 0 32 25",
123
120
  version: "1.1",
124
121
  xmlns: "http://www.w3.org/2000/svg",
125
122
  xmlnsXlink: "http://www.w3.org/1999/xlink",
126
- children: [/*#__PURE__*/_jsx("title", {
127
- children: "\u7F16\u7EC4"
128
- }), /*#__PURE__*/_jsx("g", {
123
+ children: /*#__PURE__*/_jsx("g", {
129
124
  id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
130
125
  stroke: "none",
131
126
  strokeWidth: "1",
@@ -193,20 +188,18 @@ export function TerminalIcon(props) {
193
188
  })
194
189
  })
195
190
  })
196
- })]
191
+ })
197
192
  });
198
193
  }
199
194
  export function PreferenceIcon(props) {
200
- return /*#__PURE__*/_jsxs("svg", {
195
+ return /*#__PURE__*/_jsx("svg", {
201
196
  width: "16px",
202
197
  height: "16px",
203
198
  viewBox: "0 0 16 16",
204
199
  version: "1.1",
205
200
  xmlns: "http://www.w3.org/2000/svg",
206
201
  xmlnsXlink: "http://www.w3.org/1999/xlink",
207
- children: [/*#__PURE__*/_jsx("title", {
208
- children: "\u653F\u7B56"
209
- }), /*#__PURE__*/_jsx("g", {
202
+ children: /*#__PURE__*/_jsx("g", {
210
203
  id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
211
204
  stroke: "none",
212
205
  strokeWidth: "1",
@@ -241,20 +234,18 @@ export function PreferenceIcon(props) {
241
234
  })
242
235
  })
243
236
  })
244
- })]
237
+ })
245
238
  });
246
239
  }
247
240
  export function KeybindIcon(props) {
248
- return /*#__PURE__*/_jsxs("svg", {
241
+ return /*#__PURE__*/_jsx("svg", {
249
242
  width: "16px",
250
243
  height: "16px",
251
244
  viewBox: "0 0 16 16",
252
245
  version: "1.1",
253
246
  xmlns: "http://www.w3.org/2000/svg",
254
247
  xmlnsXlink: "http://www.w3.org/1999/xlink",
255
- children: [/*#__PURE__*/_jsx("title", {
256
- children: "\u952E\u76D8"
257
- }), /*#__PURE__*/_jsx("g", {
248
+ children: /*#__PURE__*/_jsx("g", {
258
249
  id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
259
250
  stroke: "none",
260
251
  strokeWidth: "1",
@@ -292,11 +283,11 @@ export function KeybindIcon(props) {
292
283
  })
293
284
  })
294
285
  })
295
- })]
286
+ })
296
287
  });
297
288
  }
298
289
  export function SuccIcon(props) {
299
- return /*#__PURE__*/_jsxs("svg", {
290
+ return /*#__PURE__*/_jsx("svg", {
300
291
  width: "24px",
301
292
  height: "12px",
302
293
  viewBox: "0 0 24 12",
@@ -304,9 +295,7 @@ export function SuccIcon(props) {
304
295
  xmlns: "http://www.w3.org/2000/svg",
305
296
  xmlnsXlink: "http://www.w3.org/1999/xlink",
306
297
  className: "libro-lab-success",
307
- children: [/*#__PURE__*/_jsx("title", {
308
- children: "\u7F16\u7EC4 12"
309
- }), /*#__PURE__*/_jsx("g", {
298
+ children: /*#__PURE__*/_jsx("g", {
310
299
  id: "\u6574\u4F53\u6846\u67B6\u90E8\u5206",
311
300
  stroke: "none",
312
301
  strokeWidth: "1",
@@ -365,20 +354,18 @@ export function SuccIcon(props) {
365
354
  })
366
355
  })
367
356
  })
368
- })]
357
+ })
369
358
  });
370
359
  }
371
360
  export function KernelAndTerminal() {
372
- return /*#__PURE__*/_jsxs("svg", {
361
+ return /*#__PURE__*/_jsx("svg", {
373
362
  width: "17px",
374
363
  height: "16px",
375
364
  viewBox: "0 0 17 16",
376
365
  version: "1.1",
377
366
  xmlns: "http://www.w3.org/2000/svg",
378
367
  xmlnsXlink: "http://www.w3.org/1999/xlink",
379
- children: [/*#__PURE__*/_jsx("title", {
380
- children: "app store-fill"
381
- }), /*#__PURE__*/_jsx("g", {
368
+ children: /*#__PURE__*/_jsx("g", {
382
369
  id: "\u4EE3\u7801\u7247\u6BB5",
383
370
  stroke: "none",
384
371
  strokeWidth: "1",
@@ -409,20 +396,18 @@ export function KernelAndTerminal() {
409
396
  })
410
397
  })
411
398
  })
412
- })]
399
+ })
413
400
  });
414
401
  }
415
402
  export function openedPage() {
416
- return /*#__PURE__*/_jsxs("svg", {
403
+ return /*#__PURE__*/_jsx("svg", {
417
404
  width: "12px",
418
405
  height: "12px",
419
406
  viewBox: "0 0 12 12",
420
407
  version: "1.1",
421
408
  xmlns: "http://www.w3.org/2000/svg",
422
409
  xmlnsXlink: "http://www.w3.org/1999/xlink",
423
- children: [/*#__PURE__*/_jsx("title", {
424
- children: "\u5E7F\u544A\u4E3B\u6D41\u6C34@2x"
425
- }), /*#__PURE__*/_jsx("g", {
410
+ children: /*#__PURE__*/_jsx("g", {
426
411
  id: "kernel\u7BA1\u7406\u9762\u677F",
427
412
  stroke: "none",
428
413
  strokeWidth: "1",
@@ -466,7 +451,7 @@ export function openedPage() {
466
451
  })
467
452
  })
468
453
  })
469
- })]
454
+ })
470
455
  });
471
456
  }
472
457
  export function fileUnderKernel() {
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" resolution-mode="require"/>
2
+ export declare const Empty: React.FC;
3
+ //# sourceMappingURL=empty-icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-icon.d.ts","sourceRoot":"","sources":["../../src/editor-viewer/empty-icon.tsx"],"names":[],"mappings":";AAAA,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAwazB,CAAC"}