@difizen/libro-core 0.3.10 → 0.3.11

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":"libro-cell-view.d.ts","sourceRoot":"","sources":["../../src/cell/libro-cell-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAkC,MAAM,mBAAmB,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAI1D,eAAO,MAAM,kBAAkB,+DAG7B,CAAC;AAEH,qBACa,aAAc,SAAQ,QAAS,YAAW,QAAQ;IAC7D,UAAmB,SAAS,uBAA8B;IAC1D,OAAO,EAAE,eAAe,CAAC;IAGzB,kBAAkB,SAAK;IAGvB,cAAc,SAAK;IAGnB,2BAA2B,UAAS;IAGpC,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAsB;IAElD,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC;IAEhC,IAAI,MAAM,IAGQ,YAAY,CAD7B;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,YAAY,EAG7B;IAED,SAAS,CAAC,WAAW,iDAAgC;IAErD,IAAI,WAAW,kDAEd;IAGQ,SAAS,CAAC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GzB,kBAAkB,SAAK;IAGvB,cAAc,SAAK;IAGnB,2BAA2B,UAAS;IAGpC,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAsB;IAElD,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC;IAEhC,IAAI,MAAM,IAGQ,YAAY,CAD7B;IACD,IAAI,MAAM,CAAC,KAAK,EAAE,YAAY,EAG7B;IAED,SAAS,CAAC,WAAW,iDAAgC;IAErD,IAAI,WAAW,kDAEd;IAGQ,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAA+B;IAGtE,cAAc,EAAE,OAAO,CAAC;IAGxB,eAAe,UAAS;IAGxB,QAAQ,UAAS;gBAGK,OAAO,EAAE,eAAe,EACvB,WAAW,EAAE,WAAW;IAetC,WAAW,IAAI,IAAI;IAkBnB,aAAa,IAAI,IAAI;IAiB9B,SAAS;IAuBT,gBAAgB;IAIhB,aAAa;IAIP,GAAG;IAKT,qBAAqB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC;IAItD,IAAI;IAIJ,KAAK,CAAC,MAAM,EAAE,OAAO;IAIrB,QAAQ,UAAS;IACR,OAAO;IAIhB,MAAM,IAAI,SAAS;IAUnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAMb;CACH"}
@@ -98,9 +98,10 @@ export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec
98
98
  }, {
99
99
  key: "onViewMount",
100
100
  value: function onViewMount() {
101
- if (this.cellService.libroViewTracker.isEnabledSpmReporter && this.options.id) {
101
+ var id = this.options.id + this.parent.id + 'add';
102
+ if (this.cellService.libroViewTracker.isEnabledSpmReporter && this.options.id && this.cellService.libroViewTracker.hasTracker(id)) {
102
103
  var cellTracker = this.cellService.libroViewTracker.getOrCreateSpmTracker({
103
- id: this.options.id + this.parent.id
104
+ id: id
104
105
  });
105
106
  cellTracker.endTime = Date.now();
106
107
  cellTracker.extra.cellType = this.model.type;
@@ -110,9 +111,10 @@ export var LibroCellView = (_dec = view('libro-cell-view'), _dec2 = prop(), _dec
110
111
  }, {
111
112
  key: "onViewUnmount",
112
113
  value: function onViewUnmount() {
113
- if (this.cellService.libroViewTracker.isEnabledSpmReporter) {
114
+ var id = this.model.id + this.parent.id + 'delete';
115
+ if (this.cellService.libroViewTracker.isEnabledSpmReporter && this.cellService.libroViewTracker.hasTracker(id)) {
114
116
  var cellTracker = this.cellService.libroViewTracker.getOrCreateSpmTracker({
115
- id: this.model.id + this.parent.id
117
+ id: id
116
118
  });
117
119
  cellTracker.endTime = Date.now();
118
120
  cellTracker.extra.cellType = this.model.type;
@@ -1,4 +1,4 @@
1
- import { Emitter, ConfigurationService } from '@difizen/mana-app';
1
+ import { Emitter } from '@difizen/mana-app';
2
2
  import type { ITracker, NotebookModel, NotebookView, Options } from './libro-protocol.js';
3
3
  export declare class Tracker implements ITracker {
4
4
  [key: string]: any;
@@ -21,11 +21,11 @@ export declare class LibroViewTracker {
21
21
  viewCache: Map<string, NotebookView>;
22
22
  modelCache: Map<string, NotebookModel>;
23
23
  spmTracker: Map<string, Tracker>;
24
- protected configurationService: ConfigurationService;
25
24
  isEnabledSpmReporter: boolean;
26
25
  protected onTrackerEmitter: Emitter<ITracker>;
27
26
  get onTracker(): import("@difizen/mana-app").Event<ITracker>;
28
27
  getOrCreateSpmTracker(options: Options): Tracker;
29
28
  tracker(tracker: Tracker): void;
29
+ hasTracker(id: string): boolean;
30
30
  }
31
31
  //# sourceMappingURL=libro-view-tracker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"libro-view-tracker.d.ts","sourceRoot":"","sources":["../src/libro-view-tracker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,OAAO,EAAE,oBAAoB,EAAU,MAAM,mBAAmB,CAAC;AAGrF,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,OAAO,EACR,MA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E,EAAE,MAAM,CAAC;gBAEC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG;IAMpC,QAAQ;IAKR,WAAW;IAOX,GAAG;;;;;;;CAWJ;AAED,qBACa,gBAAgB;IAC3B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAa;IACjD,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAa;IACnD,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAa;IAC7C,oBAAoB,EAAE,OAAO,CAAC;IAE9B,SAAS,CAAC,gBAAgB,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAiB;IAC9D,IAAI,SAAS,gDAEZ;IAED,qBAAqB,CAAC,OAAO,EAAE,OAAO;IActC,OAAO,CAAC,OAAO,EAAE,OAAO;IAKxB,UAAU,CAAC,EAAE,EAAE,MAAM;CAGtB"}
@@ -1,14 +1,11 @@
1
- var _dec, _dec2, _class, _class2, _descriptor;
1
+ var _dec, _class;
2
2
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
- function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
4
- 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; }
5
- 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.'); }
6
3
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
4
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
8
5
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
9
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
- import { singleton, Emitter, ConfigurationService, inject } from '@difizen/mana-app';
8
+ import { singleton, Emitter } from '@difizen/mana-app';
12
9
  import { v4 } from 'uuid';
13
10
  export var Tracker = /*#__PURE__*/function () {
14
11
  function Tracker(id, extra) {
@@ -51,13 +48,12 @@ export var Tracker = /*#__PURE__*/function () {
51
48
  }]);
52
49
  return Tracker;
53
50
  }();
54
- export var LibroViewTracker = (_dec = singleton(), _dec2 = inject(ConfigurationService), _dec(_class = (_class2 = /*#__PURE__*/function () {
51
+ export var LibroViewTracker = (_dec = singleton(), _dec(_class = /*#__PURE__*/function () {
55
52
  function LibroViewTracker() {
56
53
  _classCallCheck(this, LibroViewTracker);
57
54
  this.viewCache = new Map();
58
55
  this.modelCache = new Map();
59
56
  this.spmTracker = new Map();
60
- _initializerDefineProperty(this, "configurationService", _descriptor, this);
61
57
  this.isEnabledSpmReporter = void 0;
62
58
  this.onTrackerEmitter = new Emitter();
63
59
  }
@@ -87,11 +83,11 @@ export var LibroViewTracker = (_dec = singleton(), _dec2 = inject(ConfigurationS
87
83
  var trackerLog = _tracker.log();
88
84
  this.onTrackerEmitter.fire(trackerLog);
89
85
  }
86
+ }, {
87
+ key: "hasTracker",
88
+ value: function hasTracker(id) {
89
+ return this.spmTracker.has(id);
90
+ }
90
91
  }]);
91
92
  return LibroViewTracker;
92
- }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "configurationService", [_dec2], {
93
- configurable: true,
94
- enumerable: true,
95
- writable: true,
96
- initializer: null
97
- })), _class2)) || _class);
93
+ }()) || _class);
package/es/libro-view.js CHANGED
@@ -329,7 +329,7 @@ export var LibroView = (_dec = transient(), _dec2 = view(notebookViewFactoryId),
329
329
  if (_this.libroViewTracker.isEnabledSpmReporter && option.id) {
330
330
  id = option.id + _this.id;
331
331
  libroTracker = _this.libroViewTracker.getOrCreateSpmTracker({
332
- id: id
332
+ id: id + 'add'
333
333
  });
334
334
  libroTracker.extra.cellsCount = _this.model.cells.length;
335
335
  libroTracker.extra.cellOperation = 'add';
@@ -358,7 +358,7 @@ export var LibroView = (_dec = transient(), _dec2 = view(notebookViewFactoryId),
358
358
  if (_this.libroViewTracker.isEnabledSpmReporter && option.id) {
359
359
  id = option.id + _this.id;
360
360
  libroTracker = _this.libroViewTracker.getOrCreateSpmTracker({
361
- id: id
361
+ id: id + 'add'
362
362
  });
363
363
  libroTracker.extra.cellsCount = _this.model.cells.length;
364
364
  libroTracker.extra.cellOperation = 'add';
@@ -392,7 +392,7 @@ export var LibroView = (_dec = transient(), _dec2 = view(notebookViewFactoryId),
392
392
  if (_this.libroViewTracker.isEnabledSpmReporter && cell.model.id) {
393
393
  var id = cell.model.id + _this.id;
394
394
  var libroTracker = _this.libroViewTracker.getOrCreateSpmTracker({
395
- id: id
395
+ id: id + 'delete'
396
396
  });
397
397
  libroTracker.extra.cellsCount = _this.model.cells.length;
398
398
  libroTracker.extra.cellOperation = 'delete';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-core",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@ant-design/icons": "^5.1.0",
37
- "@difizen/libro-code-editor": "^0.3.10",
38
- "@difizen/libro-common": "^0.3.10",
39
- "@difizen/libro-shared-model": "^0.3.10",
40
- "@difizen/libro-virtualized": "^0.3.10",
37
+ "@difizen/libro-code-editor": "^0.3.11",
38
+ "@difizen/libro-common": "^0.3.11",
39
+ "@difizen/libro-shared-model": "^0.3.11",
40
+ "@difizen/libro-virtualized": "^0.3.11",
41
41
  "@difizen/mana-app": "latest",
42
42
  "@difizen/mana-l10n": "latest",
43
43
  "@difizen/mana-react": "latest",
@@ -85,14 +85,16 @@ export class LibroCellView extends BaseView implements CellView {
85
85
  }
86
86
 
87
87
  override onViewMount(): void {
88
+ const id = this.options.id + this.parent.id + 'add';
88
89
  if (
89
90
  (this.cellService as LibroCellService).libroViewTracker.isEnabledSpmReporter &&
90
- this.options.id
91
+ this.options.id &&
92
+ (this.cellService as LibroCellService).libroViewTracker.hasTracker(id)
91
93
  ) {
92
94
  const cellTracker = (
93
95
  this.cellService as LibroCellService
94
96
  ).libroViewTracker.getOrCreateSpmTracker({
95
- id: this.options.id + this.parent.id,
97
+ id,
96
98
  });
97
99
  cellTracker.endTime = Date.now();
98
100
  cellTracker.extra.cellType = this.model.type;
@@ -101,11 +103,15 @@ export class LibroCellView extends BaseView implements CellView {
101
103
  }
102
104
 
103
105
  override onViewUnmount(): void {
104
- if ((this.cellService as LibroCellService).libroViewTracker.isEnabledSpmReporter) {
106
+ const id = this.model.id + this.parent.id + 'delete';
107
+ if (
108
+ (this.cellService as LibroCellService).libroViewTracker.isEnabledSpmReporter &&
109
+ (this.cellService as LibroCellService).libroViewTracker.hasTracker(id)
110
+ ) {
105
111
  const cellTracker = (
106
112
  this.cellService as LibroCellService
107
113
  ).libroViewTracker.getOrCreateSpmTracker({
108
- id: this.model.id + this.parent.id,
114
+ id,
109
115
  });
110
116
  cellTracker.endTime = Date.now();
111
117
  cellTracker.extra.cellType = this.model.type;
@@ -1,4 +1,4 @@
1
- import { singleton, Emitter, ConfigurationService, inject } from '@difizen/mana-app';
1
+ import { singleton, Emitter } from '@difizen/mana-app';
2
2
  import { v4 } from 'uuid';
3
3
 
4
4
  import type {
@@ -51,7 +51,6 @@ export class LibroViewTracker {
51
51
  viewCache: Map<string, NotebookView> = new Map();
52
52
  modelCache: Map<string, NotebookModel> = new Map();
53
53
  spmTracker: Map<string, Tracker> = new Map();
54
- @inject(ConfigurationService) protected configurationService: ConfigurationService;
55
54
  isEnabledSpmReporter: boolean;
56
55
 
57
56
  protected onTrackerEmitter: Emitter<ITracker> = new Emitter();
@@ -77,4 +76,8 @@ export class LibroViewTracker {
77
76
  const trackerLog = tracker.log();
78
77
  this.onTrackerEmitter.fire(trackerLog);
79
78
  }
79
+
80
+ hasTracker(id: string) {
81
+ return this.spmTracker.has(id);
82
+ }
80
83
  }
@@ -531,7 +531,7 @@ export class LibroView extends BaseView implements NotebookView {
531
531
  if (this.libroViewTracker.isEnabledSpmReporter && option.id) {
532
532
  const id = option.id + this.id;
533
533
  const libroTracker = this.libroViewTracker.getOrCreateSpmTracker({
534
- id,
534
+ id: id + 'add',
535
535
  });
536
536
  libroTracker.extra.cellsCount = this.model.cells.length;
537
537
  libroTracker.extra.cellOperation = 'add';
@@ -544,7 +544,7 @@ export class LibroView extends BaseView implements NotebookView {
544
544
  if (this.libroViewTracker.isEnabledSpmReporter && option.id) {
545
545
  const id = option.id + this.id;
546
546
  const libroTracker = this.libroViewTracker.getOrCreateSpmTracker({
547
- id,
547
+ id: id + 'add',
548
548
  });
549
549
  libroTracker.extra.cellsCount = this.model.cells.length;
550
550
  libroTracker.extra.cellOperation = 'add';
@@ -576,7 +576,7 @@ export class LibroView extends BaseView implements NotebookView {
576
576
  if (this.libroViewTracker.isEnabledSpmReporter && cell.model.id) {
577
577
  const id = cell.model.id + this.id;
578
578
  const libroTracker = this.libroViewTracker.getOrCreateSpmTracker({
579
- id,
579
+ id: id + 'delete',
580
580
  });
581
581
  libroTracker.extra.cellsCount = this.model.cells.length;
582
582
  libroTracker.extra.cellOperation = 'delete';