@difizen/libro-markdown-cell 0.3.16 → 1.0.1
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.
- package/es/markdown-cell-contribution.js +1 -1
- package/es/markdown-cell-model.js +2 -2
- package/es/markdown-cell-module.d.ts +1 -1
- package/es/markdown-cell-module.d.ts.map +1 -1
- package/es/markdown-cell-module.js +1 -1
- package/es/markdown-cell-view.d.ts +2 -2
- package/es/markdown-cell-view.d.ts.map +1 -1
- package/es/markdown-cell-view.js +3 -3
- package/package.json +5 -6
- package/src/markdown-cell-contribution.ts +1 -1
- package/src/markdown-cell-model.ts +2 -2
- package/src/markdown-cell-module.ts +1 -1
- package/src/markdown-cell-view.tsx +4 -4
|
@@ -10,7 +10,7 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
10
10
|
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.'); }
|
|
11
11
|
import { LanguageSpecContribution } from '@difizen/libro-code-editor';
|
|
12
12
|
import { CellModelContribution, CellViewContribution } from '@difizen/libro-core';
|
|
13
|
-
import { singleton, inject } from '@difizen/
|
|
13
|
+
import { singleton, inject } from '@difizen/libro-common/app';
|
|
14
14
|
import { MarkdownCellModelFactory } from "./markdown-cell-protocol.js";
|
|
15
15
|
import { MarkdownCellView } from "./markdown-cell-view.js";
|
|
16
16
|
export var MarkdownCellContribution = (_dec = singleton({
|
|
@@ -17,8 +17,8 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
|
|
17
17
|
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.'); }
|
|
18
18
|
import { concatMultilineString } from '@difizen/libro-common';
|
|
19
19
|
import { CellOptions, LibroCellModel } from '@difizen/libro-core';
|
|
20
|
-
import { prop } from '@difizen/
|
|
21
|
-
import { inject, transient } from '@difizen/
|
|
20
|
+
import { prop } from '@difizen/libro-common/app';
|
|
21
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
22
22
|
export var MarkdownCellModel = (_dec = transient(), _dec2 = prop(), _dec3 = prop(), _dec4 = prop(), _dec(_class = (_class2 = /*#__PURE__*/function (_LibroCellModel) {
|
|
23
23
|
_inherits(MarkdownCellModel, _LibroCellModel);
|
|
24
24
|
var _super = _createSuper(MarkdownCellModel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-cell-module.d.ts","sourceRoot":"","sources":["../src/markdown-cell-module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"markdown-cell-module.d.ts","sourceRoot":"","sources":["../src/markdown-cell-module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAOvD,eAAO,MAAM,kBAAkB,YAgBJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CellOptions } from '@difizen/libro-core';
|
|
2
2
|
import { MarkdownModule } from '@difizen/libro-markdown';
|
|
3
|
-
import { ManaModule } from '@difizen/
|
|
3
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
4
4
|
import { MarkdownCellContribution } from "./markdown-cell-contribution.js";
|
|
5
5
|
import { MarkdownCellModel } from "./markdown-cell-model.js";
|
|
6
6
|
import { MarkdownCellModelFactory } from "./markdown-cell-protocol.js";
|
|
@@ -4,8 +4,8 @@ import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
|
4
4
|
import type { CellCollapsible, CellViewOptions } from '@difizen/libro-core';
|
|
5
5
|
import { CellService, EditorStatus, LibroEditorCellView } from '@difizen/libro-core';
|
|
6
6
|
import { MarkdownParser } from '@difizen/libro-markdown';
|
|
7
|
-
import type { ViewSize } from '@difizen/
|
|
8
|
-
import { ViewManager } from '@difizen/
|
|
7
|
+
import type { ViewSize } from '@difizen/libro-common/app';
|
|
8
|
+
import { ViewManager } from '@difizen/libro-common/app';
|
|
9
9
|
import './index.less';
|
|
10
10
|
import type { MarkdownCellModel } from './markdown-cell-model.js';
|
|
11
11
|
export declare const MarkdownCell: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-cell-view.d.ts","sourceRoot":"","sources":["../src/markdown-cell-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACjF,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,
|
|
1
|
+
{"version":3,"file":"markdown-cell-view.d.ts","sourceRoot":"","sources":["../src/markdown-cell-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACjF,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,2BAA2B,CAAC;AAE1D,OAAO,EAGL,WAAW,EAGZ,MAAM,2BAA2B,CAAC;AAInC,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;IAGzB,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;IAYX,YAAY,CAAC,IAAI,EAAE,QAAQ;IAMpC,oBAAoB;cAID,eAAe,IAAI,qBAAqB;IAiBlD,qBAAqB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC;IAOtD,KAAK,WAAY,OAAO,UAS/B;IAEO,IAAI,aAEX;CACH"}
|
package/es/markdown-cell-view.js
CHANGED
|
@@ -21,9 +21,9 @@ import { CodeEditorManager } from '@difizen/libro-code-editor';
|
|
|
21
21
|
import { CellUri } from '@difizen/libro-common';
|
|
22
22
|
import { CellService, EditorStatus, LibroEditorCellView } from '@difizen/libro-core';
|
|
23
23
|
import { MarkdownParser } from '@difizen/libro-markdown';
|
|
24
|
-
import { getOrigin, prop, useInject, watch } from '@difizen/
|
|
25
|
-
import { view, ViewInstance, ViewManager, ViewOption, ViewRender } from '@difizen/
|
|
26
|
-
import { inject, transient } from '@difizen/
|
|
24
|
+
import { getOrigin, prop, useInject, watch } from '@difizen/libro-common/app';
|
|
25
|
+
import { view, ViewInstance, ViewManager, ViewOption, ViewRender } from '@difizen/libro-common/app';
|
|
26
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
27
27
|
import { forwardRef, useEffect } from 'react';
|
|
28
28
|
import "./index.less";
|
|
29
29
|
import { MarkdownPreview } from "./markdown-preview.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-markdown-cell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -39,11 +39,10 @@
|
|
|
39
39
|
"@types/react": "^18.2.25"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@difizen/libro-core": "^0.
|
|
43
|
-
"@difizen/libro-common": "^0.
|
|
44
|
-
"@difizen/libro-code-editor": "^0.
|
|
45
|
-
"@difizen/libro-markdown": "^0.
|
|
46
|
-
"@difizen/mana-app": "latest",
|
|
42
|
+
"@difizen/libro-core": "^1.0.1",
|
|
43
|
+
"@difizen/libro-common": "^1.0.1",
|
|
44
|
+
"@difizen/libro-code-editor": "^1.0.1",
|
|
45
|
+
"@difizen/libro-markdown": "^1.0.1",
|
|
47
46
|
"@types/markdown-it": "^12.2.3",
|
|
48
47
|
"markdown-it": "^13.0.1",
|
|
49
48
|
"markdown-it-anchor": "^8.6.5"
|
|
@@ -2,7 +2,7 @@ import type { LanguageSpecRegistry } from '@difizen/libro-code-editor';
|
|
|
2
2
|
import { LanguageSpecContribution } from '@difizen/libro-code-editor';
|
|
3
3
|
import type { CellMeta, CellOptions, CellModel } from '@difizen/libro-core';
|
|
4
4
|
import { CellModelContribution, CellViewContribution } from '@difizen/libro-core';
|
|
5
|
-
import { singleton, inject } from '@difizen/
|
|
5
|
+
import { singleton, inject } from '@difizen/libro-common/app';
|
|
6
6
|
|
|
7
7
|
import { MarkdownCellModelFactory } from './markdown-cell-protocol.js';
|
|
8
8
|
import { MarkdownCellView } from './markdown-cell-view.js';
|
|
@@ -2,8 +2,8 @@ import type { IMarkdownCell } from '@difizen/libro-common';
|
|
|
2
2
|
import { concatMultilineString } from '@difizen/libro-common';
|
|
3
3
|
import type { LibroMarkdownCellModel } from '@difizen/libro-core';
|
|
4
4
|
import { CellOptions, LibroCellModel } from '@difizen/libro-core';
|
|
5
|
-
import { prop } from '@difizen/
|
|
6
|
-
import { inject, transient } from '@difizen/
|
|
5
|
+
import { prop } from '@difizen/libro-common/app';
|
|
6
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
7
7
|
|
|
8
8
|
@transient()
|
|
9
9
|
export class MarkdownCellModel
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CellOptions } from '@difizen/libro-core';
|
|
2
2
|
import { MarkdownModule } from '@difizen/libro-markdown';
|
|
3
|
-
import { ManaModule } from '@difizen/
|
|
3
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
import { MarkdownCellContribution } from './markdown-cell-contribution.js';
|
|
6
6
|
import { MarkdownCellModel } from './markdown-cell-model.js';
|
|
@@ -4,16 +4,16 @@ import { CellUri } from '@difizen/libro-common';
|
|
|
4
4
|
import type { CellCollapsible, CellViewOptions } from '@difizen/libro-core';
|
|
5
5
|
import { CellService, EditorStatus, LibroEditorCellView } from '@difizen/libro-core';
|
|
6
6
|
import { MarkdownParser } from '@difizen/libro-markdown';
|
|
7
|
-
import type { ViewSize } from '@difizen/
|
|
8
|
-
import { getOrigin, prop, useInject, watch } from '@difizen/
|
|
7
|
+
import type { ViewSize } from '@difizen/libro-common/app';
|
|
8
|
+
import { getOrigin, prop, useInject, watch } from '@difizen/libro-common/app';
|
|
9
9
|
import {
|
|
10
10
|
view,
|
|
11
11
|
ViewInstance,
|
|
12
12
|
ViewManager,
|
|
13
13
|
ViewOption,
|
|
14
14
|
ViewRender,
|
|
15
|
-
} from '@difizen/
|
|
16
|
-
import { inject, transient } from '@difizen/
|
|
15
|
+
} from '@difizen/libro-common/app';
|
|
16
|
+
import { inject, transient } from '@difizen/libro-common/app';
|
|
17
17
|
import { forwardRef, useEffect } from 'react';
|
|
18
18
|
|
|
19
19
|
import './index.less';
|