@ember-eui/core 7.0.8 → 7.0.10
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.
|
@@ -8,6 +8,8 @@ import unified, { Processor } from 'unified';
|
|
|
8
8
|
import { toDOM } from '../../utils/markdown/plugins/to-dom';
|
|
9
9
|
import type { RehypeNode } from '../../utils/markdown/markdown-types';
|
|
10
10
|
import type EuiMarkdownEditorComponent from '../eui-markdown-editor';
|
|
11
|
+
import { isArray } from '@ember/array';
|
|
12
|
+
|
|
11
13
|
export interface EuiMarkdownEditorToolbarArgs {
|
|
12
14
|
parsingPluginList?: typeof defaultParsingPlugins;
|
|
13
15
|
processingPluginList?: typeof defaultProcessingPlugins;
|
|
@@ -45,7 +47,11 @@ export default class EuiMarkdownEditorToolbarComponent extends Component<EuiMark
|
|
|
45
47
|
get rootClasses(): string[] {
|
|
46
48
|
let baseClasses = ['euiMarkdownFormat', 'euiText', 'euiText--medium'];
|
|
47
49
|
if (this.args.rootClasses) {
|
|
48
|
-
|
|
50
|
+
let rootClasses = isArray(this.args.rootClasses)
|
|
51
|
+
? this.args.rootClasses
|
|
52
|
+
: (this.args.rootClasses as string)?.split(' ') || [];
|
|
53
|
+
|
|
54
|
+
baseClasses = baseClasses.concat(rootClasses);
|
|
49
55
|
}
|
|
50
56
|
return baseClasses;
|
|
51
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.10",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -186,5 +186,5 @@
|
|
|
186
186
|
"volta": {
|
|
187
187
|
"extends": "../../package.json"
|
|
188
188
|
},
|
|
189
|
-
"gitHead": "
|
|
189
|
+
"gitHead": "9e59f7fbc0b7b95d81d2d7f87eb52a709f2137f0"
|
|
190
190
|
}
|