@ember-eui/core 4.2.0 → 4.2.2
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/CHANGELOG.md +10 -0
- package/addon/components/eui-markdown-format/markdown-code/index.d.ts +3 -0
- package/addon/components/eui-markdown-format/markdown-code-block/index.d.ts +3 -0
- package/addon/components/eui-markdown-format/markdown-tooltip/index.d.ts +3 -0
- package/addon/styles/ember-eui.css +12 -0
- package/addon/utils/markdown/plugins/markdown-add-components.ts +4 -3
- package/addon/utils/markdown/plugins/markdown-checkbox.ts +3 -2
- package/addon/utils/markdown/plugins/markdown-tooltip.ts +2 -1
- package/package.json +2 -2
- package/addon/components/eui-markdown-editor-toolbar/icons/markdown-checkmark/index.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
.euiIcon {
|
|
2
2
|
line-height: 1; /* added while we support back hbs svgs components */
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.euiMarkdownEditor--fullHeight {
|
|
6
|
+
display: -webkit-flex;
|
|
7
|
+
display: flex;
|
|
8
|
+
-webkit-flex-direction: column;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.euiMarkdownEditor--isPreviewing .euiMarkdownEditor__toggleContainer {
|
|
14
|
+
display: none;
|
|
3
15
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { RehypeNode } from '../markdown-types';
|
|
2
|
+
import EuiMarkdownFormatMarkdownCode from '../../../components/eui-markdown-format/markdown-code';
|
|
3
|
+
import EuiMarkdownFormatMarkdownCodeBlock from '../../../components/eui-markdown-format/markdown-code-block';
|
|
2
4
|
|
|
3
5
|
type Visitor = (node: RehypeNode) => RehypeNode;
|
|
4
6
|
|
|
@@ -48,12 +50,11 @@ export default function MarkdownAddComponents(): (tree: RehypeNode) => void {
|
|
|
48
50
|
/\r|\n/.exec(child.value)
|
|
49
51
|
);
|
|
50
52
|
if (hasBreaks) {
|
|
51
|
-
node.properties.componentName =
|
|
52
|
-
'eui-markdown-format/markdown-code-block';
|
|
53
|
+
node.properties.componentName = EuiMarkdownFormatMarkdownCodeBlock;
|
|
53
54
|
node.properties.fontSize = 'm';
|
|
54
55
|
node.properties.paddingSize = 's';
|
|
55
56
|
} else {
|
|
56
|
-
node.properties.componentName =
|
|
57
|
+
node.properties.componentName = EuiMarkdownFormatMarkdownCode;
|
|
57
58
|
node.properties.inline = true;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -19,10 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
import { RemarkTokenizer } from '../markdown-types';
|
|
21
21
|
import { Plugin } from 'unified';
|
|
22
|
+
import EuiMarkdownFormatMarkdownCheckbox from '../../../components/eui-markdown-format/markdown-checkbox';
|
|
22
23
|
|
|
23
24
|
interface CheckboxNodeDetails {
|
|
24
25
|
type: 'component';
|
|
25
|
-
componentName:
|
|
26
|
+
componentName: any;
|
|
26
27
|
lead: string;
|
|
27
28
|
label: string;
|
|
28
29
|
isChecked: boolean;
|
|
@@ -64,7 +65,7 @@ const CheckboxParser: Plugin = function CheckboxParser() {
|
|
|
64
65
|
|
|
65
66
|
return add({
|
|
66
67
|
type: 'component',
|
|
67
|
-
componentName:
|
|
68
|
+
componentName: EuiMarkdownFormatMarkdownCheckbox,
|
|
68
69
|
lead,
|
|
69
70
|
label: text,
|
|
70
71
|
isChecked,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RemarkTokenizer } from '../markdown-types';
|
|
2
2
|
import { Plugin } from 'unified';
|
|
3
|
+
import EuiMarkdownFormatMarkdownTooltip from '../../../components/eui-markdown-format/markdown-tooltip';
|
|
3
4
|
|
|
4
5
|
interface TooltipNodeDetails {
|
|
5
6
|
type: 'component';
|
|
@@ -95,7 +96,7 @@ const TooltipParser: Plugin = function TooltipParser() {
|
|
|
95
96
|
|
|
96
97
|
return eat(`!{tooltip[${tooltipAnchor}](${tooltipText})}`)({
|
|
97
98
|
type: 'component',
|
|
98
|
-
componentName:
|
|
99
|
+
componentName: EuiMarkdownFormatMarkdownTooltip,
|
|
99
100
|
tooltipText: tooltipText,
|
|
100
101
|
children
|
|
101
102
|
} as TooltipNodeDetails);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -176,5 +176,5 @@
|
|
|
176
176
|
"volta": {
|
|
177
177
|
"extends": "../../package.json"
|
|
178
178
|
},
|
|
179
|
-
"gitHead": "
|
|
179
|
+
"gitHead": "275e6432ca59bbf59d05f0dd4809238c3abaec19"
|
|
180
180
|
}
|