@difizen/libro-jupyter 0.2.45 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"kernel-selector-dropdown.d.ts","sourceRoot":"","sources":["../../src/toolbar/kernel-selector-dropdown.tsx"],"names":[],"mappings":";AAUA,OAAO,cAAc,CAAC;AAGtB,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AA2FD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EA2HlC,CAAC"}
1
+ {"version":3,"file":"kernel-selector-dropdown.d.ts","sourceRoot":"","sources":["../../src/toolbar/kernel-selector-dropdown.tsx"],"names":[],"mappings":";AAWA,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AA2FD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EA2HlC,CAAC"}
@@ -8,12 +8,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
8
8
  import { CaretDownOutlined } from '@ant-design/icons';
9
9
  import { LibroKernelConnectionManager, KernelSpecManager } from '@difizen/libro-kernel';
10
10
  import { ConfigurationService, useInject, ViewInstance } from '@difizen/mana-app';
11
+ import { l10n } from '@difizen/mana-l10n';
11
12
  import { Dropdown, Space } from 'antd';
12
13
  import { useCallback, useEffect, useState } from 'react';
13
14
  import { LibroJupyterConfiguration } from "../config/index.js";
14
15
  import { LibroJupyterModel } from "../libro-jupyter-model.js";
15
16
  import "./index.less";
16
- import { l10n } from '@difizen/mana-l10n';
17
17
  import { jsx as _jsx } from "react/jsx-runtime";
18
18
  import { jsxs as _jsxs } from "react/jsx-runtime";
19
19
  function getKernelList(kernelConnectionManager, kernelSpecManager) {
@@ -53,7 +53,7 @@ function getKernelListItems(preferredSessionKernelList, otherKernelList, allowPr
53
53
  var array = [{
54
54
  key: 'StartPreferredKernel',
55
55
  type: 'group',
56
- label: l10n.t('启动首选的 Kernel'),
56
+ label: l10n.t('启动新的 Kernel'),
57
57
  children: otherKernelList.map(function (item) {
58
58
  return {
59
59
  key: item.name,
@@ -82,7 +82,7 @@ function getKernelListItems(preferredSessionKernelList, otherKernelList, allowPr
82
82
  array.splice(2, 0, {
83
83
  key: 'UseKernelFromPreferredSession',
84
84
  type: 'group',
85
- label: l10n.t('使用首选 Session 的 Kernel'),
85
+ label: l10n.t('使用运行中的 Kernel'),
86
86
  children: preferredSessionKernelList.map(function (item) {
87
87
  return {
88
88
  key: item.fileName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-jupyter",
3
- "version": "0.2.45",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro"
@@ -37,22 +37,22 @@
37
37
  "dependencies": {
38
38
  "@ant-design/colors": "^7.0.0",
39
39
  "@ant-design/icons": "^5.1.0",
40
- "@difizen/libro-code-cell": "^0.2.45",
41
- "@difizen/libro-code-editor": "^0.2.45",
42
- "@difizen/libro-codemirror": "^0.2.45",
43
- "@difizen/libro-cofine-editor": "^0.2.45",
44
- "@difizen/libro-common": "^0.2.45",
45
- "@difizen/libro-core": "^0.2.45",
46
- "@difizen/libro-kernel": "^0.2.45",
47
- "@difizen/libro-l10n": "^0.2.45",
48
- "@difizen/libro-language-client": "^0.2.45",
49
- "@difizen/libro-lsp": "^0.2.45",
50
- "@difizen/libro-markdown-cell": "^0.2.45",
51
- "@difizen/libro-output": "^0.2.45",
52
- "@difizen/libro-raw-cell": "^0.2.45",
53
- "@difizen/libro-rendermime": "^0.2.45",
54
- "@difizen/libro-search": "^0.2.45",
55
- "@difizen/libro-search-code-cell": "^0.2.45",
40
+ "@difizen/libro-code-cell": "^0.3.0",
41
+ "@difizen/libro-code-editor": "^0.3.0",
42
+ "@difizen/libro-codemirror": "^0.3.0",
43
+ "@difizen/libro-cofine-editor": "^0.3.0",
44
+ "@difizen/libro-common": "^0.3.0",
45
+ "@difizen/libro-core": "^0.3.0",
46
+ "@difizen/libro-kernel": "^0.3.0",
47
+ "@difizen/libro-l10n": "^0.3.0",
48
+ "@difizen/libro-language-client": "^0.3.0",
49
+ "@difizen/libro-lsp": "^0.3.0",
50
+ "@difizen/libro-markdown-cell": "^0.3.0",
51
+ "@difizen/libro-output": "^0.3.0",
52
+ "@difizen/libro-raw-cell": "^0.3.0",
53
+ "@difizen/libro-rendermime": "^0.3.0",
54
+ "@difizen/libro-search": "^0.3.0",
55
+ "@difizen/libro-search-code-cell": "^0.3.0",
56
56
  "@difizen/mana-app": "latest",
57
57
  "@difizen/mana-l10n": "latest",
58
58
  "classnames": "^2.3.2",
@@ -2,6 +2,7 @@ import { CaretDownOutlined } from '@ant-design/icons';
2
2
  import type { LibroView } from '@difizen/libro-core';
3
3
  import { LibroKernelConnectionManager, KernelSpecManager } from '@difizen/libro-kernel';
4
4
  import { ConfigurationService, useInject, ViewInstance } from '@difizen/mana-app';
5
+ import { l10n } from '@difizen/mana-l10n';
5
6
  import { Dropdown, Space } from 'antd';
6
7
  import type { MenuProps } from 'antd';
7
8
  import { useCallback, useEffect, useState } from 'react';
@@ -9,7 +10,6 @@ import { useCallback, useEffect, useState } from 'react';
9
10
  import { LibroJupyterConfiguration } from '../config/index.js';
10
11
  import { LibroJupyterModel } from '../libro-jupyter-model.js';
11
12
  import './index.less';
12
- import { l10n } from '@difizen/mana-l10n';
13
13
 
14
14
  export interface PreferredSessionKernelListElem {
15
15
  name: string;
@@ -63,7 +63,7 @@ function getKernelListItems(
63
63
  {
64
64
  key: 'StartPreferredKernel',
65
65
  type: 'group',
66
- label: l10n.t('启动首选的 Kernel'),
66
+ label: l10n.t('启动新的 Kernel'),
67
67
  children: otherKernelList.map((item) => {
68
68
  return {
69
69
  key: item.name,
@@ -99,7 +99,7 @@ function getKernelListItems(
99
99
  array.splice(2, 0, {
100
100
  key: 'UseKernelFromPreferredSession',
101
101
  type: 'group',
102
- label: l10n.t('使用首选 Session 的 Kernel'),
102
+ label: l10n.t('使用运行中的 Kernel'),
103
103
  children: preferredSessionKernelList.map((item) => {
104
104
  return {
105
105
  key: item.fileName,