@difizen/libro-jupyter 0.3.17 → 0.3.18

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":"content-contribution.d.ts","sourceRoot":"","sources":["../../src/contents/content-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAM1D,qBACa,+BAAgC,YAAW,mBAAmB;IACzE,SAAS,eAEP;IACI,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa;CAehE"}
1
+ {"version":3,"file":"content-contribution.d.ts","sourceRoot":"","sources":["../../src/contents/content-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAM1D,qBACa,+BAAgC,YAAW,mBAAmB;IACzE,SAAS,eAEP;IACI,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa;CAgBhE"}
@@ -36,15 +36,16 @@ export var LibroJupyterContentContribution = (_dec = singleton({
36
36
  case 5:
37
37
  currentFileContents = _context.sent;
38
38
  if (!currentFileContents) {
39
- _context.next = 12;
39
+ _context.next = 13;
40
40
  break;
41
41
  }
42
+ model.options['fileSize'] = currentFileContents.size;
42
43
  currentFileContents.content.nbformat_minor = 5;
43
44
  jupyterModel.currentFileContents = currentFileContents;
44
45
  jupyterModel.filePath = currentFileContents.path;
45
46
  jupyterModel.lastModified = jupyterModel.currentFileContents.last_modified;
46
47
  return _context.abrupt("return", jupyterModel.currentFileContents.content);
47
- case 12:
48
+ case 13:
48
49
  case "end":
49
50
  return _context.stop();
50
51
  }
@@ -18,7 +18,6 @@ export declare class LibroNavigatableView extends BaseView implements Navigatabl
18
18
  autoSaveDelay: number;
19
19
  get onDirtyChanged(): import("@difizen/mana-app").Event<void>;
20
20
  autoSave: 'on' | 'off';
21
- fileSize?: number;
22
21
  dirty: boolean;
23
22
  libroView?: LibroView;
24
23
  protected defer: Deferred<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"navigatable-view.d.ts","sourceRoot":"","sources":["../../src/file/navigatable-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAoB,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAc,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EACL,QAAQ,EAER,aAAa,EAUb,QAAQ,EACR,GAAG,EACH,eAAe,EACf,OAAO,EACR,MAAM,mBAAmB,CAAC;AAK3B,eAAO,MAAM,oBAAoB,mFAQ/B,CAAC;AAEH,eAAO,MAAM,6BAA6B,mCAAmC,CAAC;AAC9E,qBAEa,oBACX,SAAQ,QACR,YAAW,eAAe,EAAE,QAAQ;IAEd,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAElC,eAAe,EAAE,eAAe,CAAC;IAE1D,SAAS,CAAC,QAAQ,CAAC,mBAAmB,uBAA8B;IAE3D,IAAI,oFAAwB;IAErC,OAAO,4CAA+B;IAE9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE1B,YAAY,gBAAuB;IAEnC,aAAa,SAAQ;IAErB,IAAI,cAAc,4CAEjB;IAED,QAAQ,EAAE,IAAI,GAAG,KAAK,CAAS;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,EAAE,OAAO,CAAC;IAGf,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,SAA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AE,MAAM,CAAC;IAE1B,YAAY,gBAAuB;IAEnC,aAAa,SAAQ;IAErB,IAAI,cAAc,4CAEjB;IAED,QAAQ,EAAE,IAAI,GAAG,KAAK,CAAS;IAG/B,KAAK,EAAE,OAAO,CAAC;IAGf,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,SAAS,CAAC,KAAK,iBAAwB;IAEvC,IAAI,KAAK,kBAER;gBAGqB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAC1C,aAAa,EAAE,aAAa,EACrB,oBAAoB,EAAE,oBAAoB;IA2B3D,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3C,IAAI,aAQF;IAEF,SAAS,CAAC,UAAU,IAAI,IAAI;cAYZ,oBAAoB;IAyBpC,cAAc,IAAI,GAAG,GAAG,SAAS;IAIjC,eAAe,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG,GAAG,SAAS;CAKnD"}
@@ -51,7 +51,6 @@ export var LibroNavigatableView = (_dec = transient(), _dec2 = view(LibroNavigat
51
51
  _this.dirtyEmitter = new Emitter();
52
52
  _this.autoSaveDelay = 1000;
53
53
  _this.autoSave = 'off';
54
- _this.fileSize = void 0;
55
54
  _initializerDefineProperty(_this, "dirty", _descriptor4, _assertThisInitialized(_this));
56
55
  _initializerDefineProperty(_this, "libroView", _descriptor5, _assertThisInitialized(_this));
57
56
  _this.defer = new Deferred();
@@ -63,7 +62,6 @@ export var LibroNavigatableView = (_dec = transient(), _dec2 = view(LibroNavigat
63
62
  _this.filePath = options.path;
64
63
  _this.dirty = false;
65
64
  _this.title.caption = options.path;
66
- _this.fileSize = options['fileSize'];
67
65
  var uri = new URI(options.path);
68
66
  var uriRef = URIIconReference.create('file', new VScodeURI(options.path));
69
67
  var iconClass = labelProvider.getIcon(uriRef);
@@ -143,8 +141,7 @@ export var LibroNavigatableView = (_dec = transient(), _dec2 = view(LibroNavigat
143
141
  _context2.next = 2;
144
142
  return this.libroService.getOrCreateView({
145
143
  id: this.filePath,
146
- resource: this.filePath,
147
- fileSize: this.fileSize
144
+ resource: this.filePath
148
145
  });
149
146
  case 2:
150
147
  libroView = _context2.sent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-jupyter",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
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.3.17",
41
- "@difizen/libro-code-editor": "^0.3.17",
42
- "@difizen/libro-codemirror": "^0.3.17",
43
- "@difizen/libro-cofine-editor": "^0.3.17",
44
- "@difizen/libro-common": "^0.3.17",
45
- "@difizen/libro-core": "^0.3.17",
46
- "@difizen/libro-kernel": "^0.3.17",
47
- "@difizen/libro-l10n": "^0.3.17",
48
- "@difizen/libro-language-client": "^0.3.17",
49
- "@difizen/libro-lsp": "^0.3.17",
50
- "@difizen/libro-markdown-cell": "^0.3.17",
51
- "@difizen/libro-output": "^0.3.17",
52
- "@difizen/libro-raw-cell": "^0.3.17",
53
- "@difizen/libro-rendermime": "^0.3.17",
54
- "@difizen/libro-search": "^0.3.17",
55
- "@difizen/libro-search-code-cell": "^0.3.17",
40
+ "@difizen/libro-code-cell": "^0.3.18",
41
+ "@difizen/libro-code-editor": "^0.3.18",
42
+ "@difizen/libro-codemirror": "^0.3.18",
43
+ "@difizen/libro-cofine-editor": "^0.3.18",
44
+ "@difizen/libro-common": "^0.3.18",
45
+ "@difizen/libro-core": "^0.3.18",
46
+ "@difizen/libro-kernel": "^0.3.18",
47
+ "@difizen/libro-l10n": "^0.3.18",
48
+ "@difizen/libro-language-client": "^0.3.18",
49
+ "@difizen/libro-lsp": "^0.3.18",
50
+ "@difizen/libro-markdown-cell": "^0.3.18",
51
+ "@difizen/libro-output": "^0.3.18",
52
+ "@difizen/libro-raw-cell": "^0.3.18",
53
+ "@difizen/libro-rendermime": "^0.3.18",
54
+ "@difizen/libro-search": "^0.3.18",
55
+ "@difizen/libro-search-code-cell": "^0.3.18",
56
56
  "@difizen/mana-app": "latest",
57
57
  "@difizen/mana-l10n": "latest",
58
58
  "uuid": "^9.0.0",
@@ -17,6 +17,7 @@ export class LibroJupyterContentContribution implements ContentContribution {
17
17
 
18
18
  const currentFileContents = await jupyterModel.fileService.read(filePath);
19
19
  if (currentFileContents) {
20
+ model.options['fileSize'] = currentFileContents.size;
20
21
  currentFileContents.content.nbformat_minor = 5;
21
22
  jupyterModel.currentFileContents = currentFileContents;
22
23
  jupyterModel.filePath = currentFileContents.path;
@@ -63,7 +63,6 @@ export class LibroNavigatableView
63
63
  }
64
64
 
65
65
  autoSave: 'on' | 'off' = 'off';
66
- fileSize?: number;
67
66
 
68
67
  @prop()
69
68
  dirty: boolean;
@@ -86,7 +85,6 @@ export class LibroNavigatableView
86
85
  this.filePath = options.path;
87
86
  this.dirty = false;
88
87
  this.title.caption = options.path;
89
- this.fileSize = options['fileSize'];
90
88
  const uri = new URI(options.path);
91
89
  const uriRef = URIIconReference.create('file', new VScodeURI(options.path));
92
90
  const iconClass = labelProvider.getIcon(uriRef);
@@ -138,7 +136,6 @@ export class LibroNavigatableView
138
136
  const libroView = await this.libroService.getOrCreateView({
139
137
  id: this.filePath,
140
138
  resource: this.filePath,
141
- fileSize: this.fileSize,
142
139
  });
143
140
  if (!libroView) {
144
141
  return;