@gravity-ui/dashkit 8.26.1 → 8.27.0

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.
@@ -16,6 +16,7 @@ export interface PluginTextProps extends PluginWidgetProps {
16
16
  text: string;
17
17
  } & PluginWidgetProps['data'];
18
18
  onBeforeRender: () => () => void;
19
+ qa?: string;
19
20
  }
20
21
  interface PluginTextState {
21
22
  htmlText: string;
@@ -72,7 +72,7 @@ class PluginText extends react_1.default.PureComponent {
72
72
  react_1.default.createElement("br", null)));
73
73
  }
74
74
  renderText() {
75
- return (react_1.default.createElement("div", { className: b({ withMarkdown: this.withMarkdown }), [constants_1.PLUGIN_ROOT_ATTR_NAME]: 'text' }, this.withMarkdown ? (react_1.default.createElement("div", { className: "yfm" // className из стилей для markdown
75
+ return (react_1.default.createElement("div", { className: b({ withMarkdown: this.withMarkdown }), "data-qa": this.props.qa, [constants_1.PLUGIN_ROOT_ATTR_NAME]: 'text' }, this.withMarkdown ? (react_1.default.createElement("div", { className: "yfm" // className из стилей для markdown
76
76
  , dangerouslySetInnerHTML: { __html: this.state.htmlText } })) : (this.state.text)));
77
77
  }
78
78
  async getMarkdown() {
@@ -17,6 +17,7 @@ export interface PluginTextProps extends PluginWidgetProps {
17
17
  text: string;
18
18
  } & PluginWidgetProps['data'];
19
19
  onBeforeRender: () => () => void;
20
+ qa?: string;
20
21
  }
21
22
  interface PluginTextState {
22
23
  htmlText: string;
@@ -69,7 +69,7 @@ export class PluginText extends React.PureComponent {
69
69
  React.createElement("br", null)));
70
70
  }
71
71
  renderText() {
72
- return (React.createElement("div", { className: b({ withMarkdown: this.withMarkdown }), [PLUGIN_ROOT_ATTR_NAME]: 'text' }, this.withMarkdown ? (React.createElement("div", { className: "yfm" // className из стилей для markdown
72
+ return (React.createElement("div", { className: b({ withMarkdown: this.withMarkdown }), "data-qa": this.props.qa, [PLUGIN_ROOT_ATTR_NAME]: 'text' }, this.withMarkdown ? (React.createElement("div", { className: "yfm" // className из стилей для markdown
73
73
  , dangerouslySetInnerHTML: { __html: this.state.htmlText } })) : (this.state.text)));
74
74
  }
75
75
  async getMarkdown() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/dashkit",
3
- "version": "8.26.1",
3
+ "version": "8.27.0",
4
4
  "description": "Library for rendering dashboard grid layout",
5
5
  "license": "MIT",
6
6
  "repository": {