@appcorp/app-corp-vista 0.0.75 → 0.0.77
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.
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.VistaMdxEditorV1 = void 0;
|
|
8
|
+
var react_1 = __importDefault(require("react"));
|
|
9
|
+
var editor_1 = require("@mdxeditor/editor");
|
|
10
|
+
var VistaMdxEditorV1 = function (_a) {
|
|
11
|
+
var contentEditableClassName = _a.contentEditableClassName, _b = _a.editorClassName, editorClassName = _b === void 0 ? 'light-theme light-editor' : _b, markdown = _a.markdown, onChangeHandler = _a.onChangeHandler;
|
|
12
|
+
return (react_1.default.createElement(editor_1.MDXEditor, { autoFocus: true, className: "".concat(editorClassName), contentEditableClassName: "prose ".concat(contentEditableClassName), markdown: markdown, onChange: function (v) { return onChangeHandler('content', v); }, plugins: [
|
|
13
|
+
(0, editor_1.listsPlugin)(),
|
|
14
|
+
(0, editor_1.quotePlugin)(),
|
|
15
|
+
(0, editor_1.headingsPlugin)(),
|
|
16
|
+
(0, editor_1.linkPlugin)(),
|
|
17
|
+
(0, editor_1.linkDialogPlugin)(),
|
|
18
|
+
(0, editor_1.imagePlugin)(),
|
|
19
|
+
(0, editor_1.tablePlugin)(),
|
|
20
|
+
(0, editor_1.thematicBreakPlugin)(),
|
|
21
|
+
(0, editor_1.frontmatterPlugin)(),
|
|
22
|
+
(0, editor_1.codeBlockPlugin)({
|
|
23
|
+
defaultCodeBlockLanguage: 'js',
|
|
24
|
+
}),
|
|
25
|
+
// sandpackPlugin(),
|
|
26
|
+
(0, editor_1.codeMirrorPlugin)({
|
|
27
|
+
codeBlockLanguages: {
|
|
28
|
+
js: 'JavaScript',
|
|
29
|
+
css: 'CSS',
|
|
30
|
+
txt: 'text',
|
|
31
|
+
tsx: 'TypeScript',
|
|
32
|
+
}
|
|
33
|
+
}),
|
|
34
|
+
(0, editor_1.diffSourcePlugin)({ diffMarkdown: '', viewMode: 'rich-text' }),
|
|
35
|
+
(0, editor_1.markdownShortcutPlugin)(),
|
|
36
|
+
(0, editor_1.directivesPlugin)({
|
|
37
|
+
directiveDescriptors: [
|
|
38
|
+
editor_1.AdmonitionDirectiveDescriptor,
|
|
39
|
+
],
|
|
40
|
+
}),
|
|
41
|
+
(0, editor_1.toolbarPlugin)({
|
|
42
|
+
toolbarContents: function () { return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
43
|
+
react_1.default.createElement(editor_1.KitchenSinkToolbar, null))); }
|
|
44
|
+
})
|
|
45
|
+
] }));
|
|
46
|
+
};
|
|
47
|
+
exports.VistaMdxEditorV1 = VistaMdxEditorV1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/app-corp-vista",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.77",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
|
|
6
6
|
"build:next": "next build",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@heroicons/react": "^2.2.0",
|
|
37
37
|
"@mdx-js/loader": "^3.1.0",
|
|
38
38
|
"@mdx-js/react": "^3.1.0",
|
|
39
|
-
"@mdxeditor/editor": "^3.21.
|
|
39
|
+
"@mdxeditor/editor": "^3.21.4",
|
|
40
40
|
"@next/third-parties": "^15",
|
|
41
41
|
"@react-jvectormap/core": "^1.0.4",
|
|
42
42
|
"@react-jvectormap/world": "^1.1.2",
|