@difizen/libro-code-cell 0.2.35-next.0 → 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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-cell-view.d.ts","sourceRoot":"","sources":["../src/code-cell-view.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"code-cell-view.d.ts","sourceRoot":"","sources":["../src/code-cell-view.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAa,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAEV,SAAS,EACT,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,YAAY,EACZ,+BAA+B,EAC/B,eAAe,EAEhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAQL,WAAW,EAIX,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AA2C/D,eAAO,MAAM,cAAc,0CAAmB,CAAC;AAmB/C,qBAEa,iBAAkB,SAAQ,+BAA+B;IAC3D,IAAI,2FAA2B;IAExC,WAAW,EAAE,WAAW,CAAC;IAEjB,KAAK,EAAE,kBAAkB,CAAC;IAElC,OAAO,EAAE,OAAO,EAAE,CAAC;IAGnB,gBAAgB,SAAK;IAGZ,kBAAkB,SAAK;IAGvB,cAAc,SAAK;IAGnB,YAAY,EAAE,YAAY,CAA0B;IAE7D,SAAS,CAAC,kBAAkB,4BAAmC;IAC/D,IAAI,eAAe,6BAElB;IAEQ,YAAY,uDAKnB;IAEO,YAAY,CAAC,IAAI,EAAE,QAAQ;IAMpC,oBAAoB;gBAqBE,OAAO,EAAE,eAAe,EACvB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EAClB,iBAAiB,EAAE,iBAAiB;IA6BxD,WAAW;IAQX,MAAM,IAAI,SAAS;IAQnB,WAAW;IAIpB,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;cAK/B,eAAe,IAAI,qBAAqB;IAclD,cAAc,aAGrB;CACH"}
|
package/es/code-cell-view.js
CHANGED
|
@@ -23,7 +23,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
23
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
24
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
25
25
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
26
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
27
26
|
/* eslint-disable @typescript-eslint/no-parameter-properties */
|
|
28
27
|
/* eslint-disable @typescript-eslint/parameter-properties */
|
|
29
28
|
|
|
@@ -32,6 +31,7 @@ import { CellUri } from '@difizen/libro-common';
|
|
|
32
31
|
import { isOutput } from '@difizen/libro-common';
|
|
33
32
|
import { CellService, EditorStatus, LibroEditableExecutableCellView, LibroOutputArea, VirtualizedManagerHelper } from '@difizen/libro-core';
|
|
34
33
|
import { getOrigin, inject, prop, transient, useInject, view, ViewInstance, ViewManager, ViewOption, ViewRender, watch, Deferred } from '@difizen/mana-app';
|
|
34
|
+
import { l10n } from '@difizen/mana-l10n'; /* eslint-disable react-hooks/exhaustive-deps */
|
|
35
35
|
import { useEffect, useRef, memo, forwardRef } from 'react';
|
|
36
36
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
37
37
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -225,7 +225,7 @@ export var LibroCodeCellView = (_dec = transient(), _dec2 = view('code-editor-ce
|
|
|
225
225
|
config: {
|
|
226
226
|
readOnly: !this.parent.model.inputEditable,
|
|
227
227
|
editable: this.parent.model.inputEditable,
|
|
228
|
-
placeholder: '请输入代码'
|
|
228
|
+
placeholder: l10n.t('请输入代码')
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
return option;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-code-cell",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -32,10 +32,11 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/libro-code-editor": "^0.2.35
|
|
36
|
-
"@difizen/libro-common": "^0.2.35
|
|
37
|
-
"@difizen/libro-core": "^0.2.
|
|
38
|
-
"@difizen/mana-app": "latest"
|
|
35
|
+
"@difizen/libro-code-editor": "^0.2.35",
|
|
36
|
+
"@difizen/libro-common": "^0.2.35",
|
|
37
|
+
"@difizen/libro-core": "^0.2.36",
|
|
38
|
+
"@difizen/mana-app": "latest",
|
|
39
|
+
"@difizen/mana-l10n": "latest"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
42
|
"react": ">=16"
|
package/src/code-cell-view.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2
1
|
/* eslint-disable @typescript-eslint/no-parameter-properties */
|
|
3
2
|
/* eslint-disable @typescript-eslint/parameter-properties */
|
|
4
3
|
import type { CodeEditorViewOptions } from '@difizen/libro-code-editor';
|
|
@@ -33,6 +32,7 @@ import {
|
|
|
33
32
|
watch,
|
|
34
33
|
Deferred,
|
|
35
34
|
} from '@difizen/mana-app';
|
|
35
|
+
import { l10n } from '@difizen/mana-l10n'; /* eslint-disable react-hooks/exhaustive-deps */
|
|
36
36
|
import { useEffect, useRef, memo, forwardRef } from 'react';
|
|
37
37
|
|
|
38
38
|
import type { LibroCodeCellModel } from './code-cell-model.js';
|
|
@@ -224,7 +224,7 @@ export class LibroCodeCellView extends LibroEditableExecutableCellView {
|
|
|
224
224
|
config: {
|
|
225
225
|
readOnly: !this.parent.model.inputEditable,
|
|
226
226
|
editable: this.parent.model.inputEditable,
|
|
227
|
-
placeholder: '请输入代码',
|
|
227
|
+
placeholder: l10n.t('请输入代码'),
|
|
228
228
|
},
|
|
229
229
|
};
|
|
230
230
|
return option;
|