@difizen/libro-markdown-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":"markdown-cell-view.d.ts","sourceRoot":"","sources":["../src/markdown-cell-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,OAAO,EACP,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"markdown-cell-view.d.ts","sourceRoot":"","sources":["../src/markdown-cell-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,OAAO,EACP,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAGL,WAAW,EAGZ,MAAM,mBAAmB,CAAC;AAI3B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,YAAY,0FAmCxB,CAAC;AAEF,qBAEa,gBAAiB,SAAQ,mBAAoB,YAAW,eAAe;IAClF,IAAa,UAAU,iCAKtB;IACQ,IAAI,2FAAgB;IAE7B,WAAW,EAAE,WAAW,CAAC;IAEzB,iBAAiB,EAAE,iBAAiB,CAAC;IAGrC,UAAU,CAAC,EAAE,cAAc,CAAC;IAG5B,gBAAgB,SAAK;IAGZ,kBAAkB,SAAK;IAExB,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAGpC,gBAAgB,UAAS;IAGzB,sBAAsB,SAAK;IAGlB,YAAY,EAAE,YAAY,CAA0B;IAE7D,IAAI,MAAM,wBAIT;IAED,IAAI,SAAS,sBAEZ;IAED,cAAc,EAAE,cAAc,CAAC;gBAGT,OAAO,EAAE,eAAe,EACvB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EAClB,iBAAiB,EAAE,iBAAiB,EACvC,cAAc,EAAE,cAAc;IAS/C,WAAW;IAWX,YAAY,CAAC,IAAI,EAAE,QAAQ;IAMpC,oBAAoB;IAIpB,SAAS,CAAC,eAAe,IAAI,qBAAqB;IAgB5C,YAAY;cAwBF,gBAAgB;IAKvB,qBAAqB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC;IAOtD,KAAK,CAAC,MAAM,EAAE,OAAO;IAWrB,IAAI;IAIJ,IAAI,IAAI,IAAI;IAKZ,IAAI,IAAI,IAAI;CAItB"}
|
package/es/markdown-cell-view.js
CHANGED
|
@@ -19,6 +19,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
19
19
|
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; }
|
|
20
20
|
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.'); }
|
|
21
21
|
import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
22
|
+
import { CellUri } from '@difizen/libro-common';
|
|
22
23
|
import { CellService, EditorStatus, LibroEditorCellView } from '@difizen/libro-core';
|
|
23
24
|
import { MarkdownParser } from '@difizen/libro-markdown';
|
|
24
25
|
import { getOrigin, prop, useInject, watch } from '@difizen/mana-app';
|
|
@@ -137,7 +138,7 @@ export var MarkdownCellView = (_dec = transient(), _dec2 = view('libro-markdown-
|
|
|
137
138
|
key: "getEditorOption",
|
|
138
139
|
value: function getEditorOption() {
|
|
139
140
|
var option = {
|
|
140
|
-
uuid:
|
|
141
|
+
uuid: CellUri.from(this.parent.model.id, this.model.id).toString(),
|
|
141
142
|
model: this.model,
|
|
142
143
|
config: {
|
|
143
144
|
lineNumbers: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-markdown-cell",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@types/react": "^18.2.25"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@difizen/libro-core": "^0.2.
|
|
43
|
-
"@difizen/libro-common": "^0.2.
|
|
44
|
-
"@difizen/libro-code-editor": "^0.2.
|
|
45
|
-
"@difizen/libro-markdown": "^0.2.
|
|
42
|
+
"@difizen/libro-core": "^0.2.29",
|
|
43
|
+
"@difizen/libro-common": "^0.2.29",
|
|
44
|
+
"@difizen/libro-code-editor": "^0.2.29",
|
|
45
|
+
"@difizen/libro-markdown": "^0.2.29",
|
|
46
46
|
"@difizen/mana-app": "latest",
|
|
47
47
|
"@types/markdown-it": "^12.2.3",
|
|
48
48
|
"markdown-it": "^13.0.1",
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
CodeEditorView,
|
|
5
5
|
} from '@difizen/libro-code-editor';
|
|
6
6
|
import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
7
|
+
import { CellUri } from '@difizen/libro-common';
|
|
7
8
|
import type { CellCollapsible, CellViewOptions } from '@difizen/libro-core';
|
|
8
9
|
import { CellService, EditorStatus, LibroEditorCellView } from '@difizen/libro-core';
|
|
9
10
|
import { MarkdownParser } from '@difizen/libro-markdown';
|
|
@@ -144,7 +145,7 @@ export class MarkdownCellView extends LibroEditorCellView implements CellCollaps
|
|
|
144
145
|
|
|
145
146
|
protected getEditorOption(): CodeEditorViewOptions {
|
|
146
147
|
const option: CodeEditorViewOptions = {
|
|
147
|
-
uuid:
|
|
148
|
+
uuid: CellUri.from(this.parent.model.id, this.model.id).toString(),
|
|
148
149
|
model: this.model,
|
|
149
150
|
config: {
|
|
150
151
|
lineNumbers: false,
|