@difizen/libro-prompt-cell 0.2.28 → 0.2.29
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":"prompt-cell-view.d.ts","sourceRoot":"","sources":["../src/prompt-cell-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EACrB,MAAM,EACN,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAa,OAAO,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-cell-view.d.ts","sourceRoot":"","sources":["../src/prompt-cell-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EACrB,MAAM,EACN,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAa,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhE,OAAO,KAAK,EAEV,SAAS,EACT,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,gBAAgB,EAEhB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAiB,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAQL,WAAW,EAIZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,c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,CAAC,WAAW;IAgBZ,KAAK,WAAY,OAAO,UAS/B;IAEO,cAAc,aAGrB;IAEF,aAAa,QAAO,EAAE,CAEpB;IAEF,qBAAqB,cAAe,MAAM;;;MAKxC;IAEa,GAAG;IA4ElB,KAAK,YACM,cAAc,kBAAkB,CAAC,SAAS,CAAC,oBAClC,cAAc,aAAa,KAAK,GAAG,6CAUrD;IAEF,iBAAiB,gDAmBf;IACF,iBAAiB,gDAef;IAEF,iBAAiB,SAAU,UAAU;;;;MAMnC;IAEF,mBAAmB,aACP,cAAc,aAAa,eACxB,MAAM,KAAK,IAAI,UA6B5B;IAEF,0BAA0B,iBAAkB,MAAM,aAQhD;IACF,qBAAqB,UAAW,MAAM,UAEpC;IACF,wBAAwB,UAAW,MAAM,UAEvC;IACF,kBAAkB,UAAW,MAAM,GAAG,SAAS,UAE7C;CACH"}
|
package/es/prompt-cell-view.js
CHANGED
|
@@ -34,6 +34,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
34
34
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
35
35
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
36
36
|
import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
37
|
+
import { CellUri } from '@difizen/libro-common';
|
|
37
38
|
import { isOutput } from '@difizen/libro-common';
|
|
38
39
|
import { LibroOutputArea } from '@difizen/libro-core';
|
|
39
40
|
import { CellService, LibroExecutableCellView, LibroViewTracker, EditorStatus, LibroContextKey } from '@difizen/libro-core';
|
|
@@ -522,7 +523,7 @@ export var LibroPromptCellView = (_dec = transient(), _dec2 = view('prompt-edito
|
|
|
522
523
|
key: "getEditorOption",
|
|
523
524
|
value: function getEditorOption() {
|
|
524
525
|
var option = {
|
|
525
|
-
uuid:
|
|
526
|
+
uuid: CellUri.from(this.parent.model.id, this.model.id).toString(),
|
|
526
527
|
editorHostId: this.parent.id + this.id,
|
|
527
528
|
model: this.model,
|
|
528
529
|
config: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-prompt-cell",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/libro-code-editor": "^0.2.
|
|
36
|
-
"@difizen/libro-jupyter": "^0.2.
|
|
37
|
-
"@difizen/libro-rendermime": "^0.2.
|
|
38
|
-
"@difizen/libro-codemirror": "^0.2.
|
|
39
|
-
"@difizen/libro-common": "^0.2.
|
|
40
|
-
"@difizen/libro-core": "^0.2.
|
|
35
|
+
"@difizen/libro-code-editor": "^0.2.29",
|
|
36
|
+
"@difizen/libro-jupyter": "^0.2.29",
|
|
37
|
+
"@difizen/libro-rendermime": "^0.2.29",
|
|
38
|
+
"@difizen/libro-codemirror": "^0.2.29",
|
|
39
|
+
"@difizen/libro-common": "^0.2.29",
|
|
40
|
+
"@difizen/libro-core": "^0.2.29",
|
|
41
41
|
"@ant-design/icons": "^5.1.0",
|
|
42
42
|
"@difizen/mana-l10n": "latest",
|
|
43
43
|
"@difizen/mana-app": "latest",
|
package/src/prompt-cell-view.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
CodeEditorView,
|
|
6
6
|
} from '@difizen/libro-code-editor';
|
|
7
7
|
import type { ICodeCell, IOutput } from '@difizen/libro-common';
|
|
8
|
+
import { CellUri } from '@difizen/libro-common';
|
|
8
9
|
import { isOutput } from '@difizen/libro-common';
|
|
9
10
|
import type {
|
|
10
11
|
IOutputAreaOption,
|
|
@@ -351,7 +352,7 @@ export class LibroPromptCellView extends LibroExecutableCellView {
|
|
|
351
352
|
|
|
352
353
|
protected getEditorOption(): CodeEditorViewOptions {
|
|
353
354
|
const option: CodeEditorViewOptions = {
|
|
354
|
-
uuid:
|
|
355
|
+
uuid: CellUri.from(this.parent.model.id, this.model.id).toString(),
|
|
355
356
|
editorHostId: this.parent.id + this.id,
|
|
356
357
|
model: this.model,
|
|
357
358
|
config: {
|