@difizen/libro-lab 0.2.39 → 0.2.40-next.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":"current-file-footer-view.d.ts","sourceRoot":"","sources":["../../../src/layout/footer/current-file-footer-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAMT,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,cAAc,CAAC;AAoBtB,qBAEa,6BAA8B,SAAQ,QAAQ;IAChD,IAAI,uEAA8B;IACpB,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IAE9D,IAAI,eAAe,iDAGlB;CACF"}
1
+ {"version":3,"file":"current-file-footer-view.d.ts","sourceRoot":"","sources":["../../../src/layout/footer/current-file-footer-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAMT,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,cAAc,CAAC;AAiBtB,qBAEa,6BAA8B,SAAQ,QAAQ;IAChD,IAAI,uEAA8B;IACpB,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IAE9D,IAAI,eAAe,iDAGlB;CACF"}
@@ -22,18 +22,15 @@ import { LayoutService } from "../layout-service.js";
22
22
  import { LibroLabLayoutSlots } from "../protocol.js";
23
23
  import "./index.less";
24
24
  import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
26
25
  var CurrentFileFooterComponent = /*#__PURE__*/React.forwardRef(function CurrentFileFooterComponent(_props, ref) {
27
26
  var _currentFileFooterVie;
28
27
  var currentFileFooterView = useInject(ViewInstance);
29
- var label = (_currentFileFooterVie = currentFileFooterView.navigatableView) === null || _currentFileFooterVie === void 0 ? void 0 : _currentFileFooterVie.title.label;
30
- return /*#__PURE__*/_jsxs("div", {
28
+ return /*#__PURE__*/_jsx("div", {
31
29
  className: "libro-lab-current-file-footer",
32
30
  ref: ref,
33
- children: [/*#__PURE__*/_jsx("span", {
34
- children: l10n.t('当前文件:')
35
- }), typeof label === 'function' ? /*#__PURE__*/React.createElement(label) // 如果是 React.FC,调用它
36
- : label /* 如果是 ReactNode,直接渲染 */]
31
+ children: /*#__PURE__*/_jsx("span", {
32
+ children: "".concat(l10n.t('当前文件:')).concat(((_currentFileFooterVie = currentFileFooterView.navigatableView) === null || _currentFileFooterVie === void 0 ? void 0 : _currentFileFooterVie.title.label) || '')
33
+ })
37
34
  });
38
35
  });
39
36
  export var LibroLabCurrentFileFooterView = (_dec = singleton(), _dec2 = view('libro-lab-current-file-footer-view'), _dec3 = inject(LayoutService), _dec(_class = _dec2(_class = (_class2 = /*#__PURE__*/function (_BaseView) {
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EAKX,MAAM,mBAAmB,CAAC;AAoB3B,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,YA6FxB,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,UAAU,EAKX,MAAM,mBAAmB,CAAC;AAoB3B,OAAO,cAAc,CAAC;AAMtB,eAAO,MAAM,cAAc,YA8FxB,CAAC"}
package/es/module.js CHANGED
@@ -5,7 +5,7 @@ import { LibroSqlCellModule } from '@difizen/libro-sql-cell';
5
5
  import { TerminalModule } from '@difizen/libro-terminal';
6
6
  import { CommonWidgetsModule } from '@difizen/libro-widget';
7
7
  import { ManaModule, createSlotPreference, RootSlotId, createViewPreference, HeaderArea } from '@difizen/mana-app';
8
- import { l10n } from '@difizen/mana-l10n';
8
+ import { l10n, L10nLang } from '@difizen/mana-l10n';
9
9
  import { LibroLabHeaderMenuModule } from "./command/module.js";
10
10
  import { LabConfigAppContribution } from "./config/config-contribution.js";
11
11
  import { CodeEditorViewerModule } from "./editor-viewer/index.js";
@@ -26,6 +26,7 @@ import { EntryPointView } from "./welcome/entry-point-view.js";
26
26
  import { WelcomeView } from "./welcome/index.js";
27
27
  export var LibroLabModule = ManaModule.create().preload(function () {
28
28
  l10n.loadLangBundles(langBundles);
29
+ l10n.changeLang(L10nLang.enUS);
29
30
  return Promise.resolve();
30
31
  }).register(LibroLabApp, LibroLabLayoutView, GithubLinkView, LabConfigAppContribution, LibroLabSideTabView, LabColorContribution, LangSwitcherView, createViewPreference({
31
32
  view: GithubLinkView,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-lab",
3
- "version": "0.2.39",
3
+ "version": "0.2.40-next.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -34,17 +34,17 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@ant-design/icons": "^5.1.0",
37
- "@difizen/libro-core": "^0.2.39",
38
- "@difizen/libro-jupyter": "^0.2.39",
39
- "@difizen/libro-kernel": "^0.2.39",
40
- "@difizen/libro-prompt-cell": "^0.2.39",
41
- "@difizen/libro-sql-cell": "^0.2.39",
42
- "@difizen/libro-terminal": "^0.2.39",
43
- "@difizen/libro-toc": "^0.2.39",
44
- "@difizen/libro-cofine-editor-core": "^0.2.39",
45
- "@difizen/libro-language-client": "^0.2.39",
46
- "@difizen/libro-widget": "^0.2.39",
47
- "@difizen/libro-l10n": "^0.2.39",
37
+ "@difizen/libro-core": "^0.2.40",
38
+ "@difizen/libro-jupyter": "^0.2.40",
39
+ "@difizen/libro-kernel": "^0.2.40",
40
+ "@difizen/libro-prompt-cell": "^0.2.40",
41
+ "@difizen/libro-sql-cell": "^0.2.40",
42
+ "@difizen/libro-terminal": "^0.2.40",
43
+ "@difizen/libro-toc": "^0.2.40",
44
+ "@difizen/libro-cofine-editor-core": "^0.2.40",
45
+ "@difizen/libro-language-client": "^0.2.40",
46
+ "@difizen/libro-widget": "^0.2.40",
47
+ "@difizen/libro-l10n": "^0.2.40",
48
48
  "@difizen/mana-app": "latest",
49
49
  "@difizen/mana-l10n": "latest",
50
50
  "@difizen/mana-common": "latest",