elseware-ui 3.0.7 → 3.0.8
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/dist/index.css +376 -61
- package/dist/index.css.map +1 -1
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58159,9 +58159,14 @@ function createDefaultPlugins({
|
|
|
58159
58159
|
defaultCodeBlockLanguage,
|
|
58160
58160
|
codeMirrorOptions,
|
|
58161
58161
|
imageOptions,
|
|
58162
|
-
linkDialogOptions
|
|
58162
|
+
linkDialogOptions,
|
|
58163
|
+
dark
|
|
58163
58164
|
}) {
|
|
58164
58165
|
const codeBlockLanguages = codeMirrorOptions?.codeBlockLanguages ?? DEFAULT_CODE_BLOCK_LANGUAGES;
|
|
58166
|
+
const codeMirrorExtensions = [
|
|
58167
|
+
...dark ? [themeOneDark.oneDark] : [],
|
|
58168
|
+
...codeMirrorOptions?.codeMirrorExtensions ?? []
|
|
58169
|
+
];
|
|
58165
58170
|
return [
|
|
58166
58171
|
editor.headingsPlugin(),
|
|
58167
58172
|
editor.listsPlugin(),
|
|
@@ -58177,7 +58182,8 @@ function createDefaultPlugins({
|
|
|
58177
58182
|
}),
|
|
58178
58183
|
editor.codeMirrorPlugin({
|
|
58179
58184
|
...codeMirrorOptions,
|
|
58180
|
-
codeBlockLanguages
|
|
58185
|
+
codeBlockLanguages,
|
|
58186
|
+
...codeMirrorExtensions.length > 0 ? { codeMirrorExtensions } : {}
|
|
58181
58187
|
}),
|
|
58182
58188
|
...showToolbar ? [
|
|
58183
58189
|
editor.toolbarPlugin({
|
|
@@ -58235,11 +58241,13 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
58235
58241
|
defaultCodeBlockLanguage,
|
|
58236
58242
|
codeMirrorOptions,
|
|
58237
58243
|
imageOptions,
|
|
58238
|
-
linkDialogOptions
|
|
58244
|
+
linkDialogOptions,
|
|
58245
|
+
dark
|
|
58239
58246
|
}),
|
|
58240
58247
|
[
|
|
58241
58248
|
codeMirrorOptions,
|
|
58242
58249
|
defaultCodeBlockLanguage,
|
|
58250
|
+
dark,
|
|
58243
58251
|
imageOptions,
|
|
58244
58252
|
linkDialogOptions,
|
|
58245
58253
|
showToolbar,
|
|
@@ -58298,6 +58306,7 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
58298
58306
|
"aria-readonly": readOnly || void 0,
|
|
58299
58307
|
"aria-required": required || void 0,
|
|
58300
58308
|
"aria-invalid": invalid || void 0,
|
|
58309
|
+
"data-theme": dark ? "dark" : void 0,
|
|
58301
58310
|
onBlurCapture: handleBlur,
|
|
58302
58311
|
className: classNames69__default.default(
|
|
58303
58312
|
"eui-markdown-adapter",
|
|
@@ -58317,7 +58326,11 @@ var MDXMarkdownEditor = React26.forwardRef(
|
|
|
58317
58326
|
markdown: currentValue ?? "",
|
|
58318
58327
|
readOnly: disabled || readOnly,
|
|
58319
58328
|
plugins: plugins ?? defaultPlugins,
|
|
58320
|
-
className: classNames69__default.default(
|
|
58329
|
+
className: classNames69__default.default(
|
|
58330
|
+
"eui-markdown-mdx-editor",
|
|
58331
|
+
dark && ["dark", "dark-theme"],
|
|
58332
|
+
editorClassName
|
|
58333
|
+
),
|
|
58321
58334
|
contentEditableClassName: classNames69__default.default(
|
|
58322
58335
|
"eui-markdown-mdx-content",
|
|
58323
58336
|
contentEditableClassName
|