@gravity-ui/markdown-editor 13.4.1 → 13.4.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.
@@ -7,7 +7,6 @@ const uikit_1 = require("@gravity-ui/uikit");
7
7
  const md_hints_1 = require(".././../../i18n/md-hints");
8
8
  const classname_1 = require("../../../classname");
9
9
  const b = (0, classname_1.cn)('markdown-hints');
10
- const YFM_DOCS_HREF = 'https://ydocs.tech';
11
10
  exports.MarkdownHints = react_1.default.memo(function MarkdownHints() {
12
11
  const hints = [
13
12
  { title: (0, md_hints_1.i18n)('header_title'), hint: (0, md_hints_1.i18n)('header_hint') },
@@ -25,6 +24,6 @@ exports.MarkdownHints = react_1.default.memo(function MarkdownHints() {
25
24
  react_1.default.createElement("div", { className: b('grid') }, hints.map((hint, index) => (react_1.default.createElement(react_1.default.Fragment, { key: `md-hint-${index}` },
26
25
  react_1.default.createElement("span", { className: b('title') }, hint.title),
27
26
  react_1.default.createElement("span", { className: b('hint') }, hint.hint))))),
28
- react_1.default.createElement(uikit_1.Link, { href: YFM_DOCS_HREF, target: "_blank", className: b('docs-link') }, (0, md_hints_1.i18n)('documentation'))));
27
+ react_1.default.createElement(uikit_1.Link, { href: (0, md_hints_1.i18n)('documentation_link'), target: "_blank", className: b('docs-link') }, (0, md_hints_1.i18n)('documentation'))));
29
28
  });
30
29
  exports.MarkdownHints.displayName = 'MarkdownHints';
@@ -78,5 +78,6 @@
78
78
 
79
79
  .g-md-table-wrapper {
80
80
  display: inline-block;
81
+ width: 100%;
81
82
  margin-right: 2px;
82
83
  }
@@ -19,5 +19,6 @@
19
19
  "list_hint": "- Your text",
20
20
  "numbered-list_title": "Numbered list",
21
21
  "numbered-list_hint": "1. Your text",
22
- "documentation": "Documentation"
22
+ "documentation": "Documentation",
23
+ "documentation_link": " https://diplodoc.com/docs/en/syntax/"
23
24
  }
@@ -1,4 +1,4 @@
1
- export declare const i18n: <G extends "header_title" | "header_hint" | "italic_title" | "italic_hint" | "bold_title" | "bold_hint" | "strikethrough_title" | "strikethrough_hint" | "blockquote_title" | "blockquote_hint" | "code_title" | "code_hint" | "link_title" | "link_hint" | "image_title" | "image_hint" | "list_title" | "list_hint" | "numbered-list_title" | "numbered-list_hint" | "documentation", S extends string>(key: G | (string extends S ? S : never), params?: {
1
+ export declare const i18n: <G extends "header_title" | "header_hint" | "italic_title" | "italic_hint" | "bold_title" | "bold_hint" | "strikethrough_title" | "strikethrough_hint" | "blockquote_title" | "blockquote_hint" | "code_title" | "code_hint" | "link_title" | "link_hint" | "image_title" | "image_hint" | "list_title" | "list_hint" | "numbered-list_title" | "numbered-list_hint" | "documentation" | "documentation_link", S extends string>(key: G | (string extends S ? S : never), params?: {
2
2
  [key: string]: any;
3
3
  } | undefined) => S extends G ? {
4
4
  header_title: string;
@@ -22,4 +22,5 @@ export declare const i18n: <G extends "header_title" | "header_hint" | "italic_t
22
22
  "numbered-list_title": string;
23
23
  "numbered-list_hint": string;
24
24
  documentation: string;
25
+ documentation_link: string;
25
26
  }[G] : string;
@@ -19,5 +19,6 @@
19
19
  "list_hint": "- Ваш текст",
20
20
  "numbered-list_title": "Нумерованный список",
21
21
  "numbered-list_hint": "1. Ваш текст",
22
- "documentation": "Документация"
22
+ "documentation": "Документация",
23
+ "documentation_link": " https://diplodoc.com/docs/ru/syntax/"
23
24
  }
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  /** During build process, the current version will be injected here */
5
- exports.VERSION = typeof '13.4.1' !== 'undefined' ? '13.4.1' : 'unknown';
5
+ exports.VERSION = typeof '13.4.2' !== 'undefined' ? '13.4.2' : 'unknown';
@@ -4,7 +4,6 @@ import { i18n } from '.././../../i18n/md-hints';
4
4
  import { cn } from '../../../classname';
5
5
  import './MarkdownHints.css';
6
6
  const b = cn('markdown-hints');
7
- const YFM_DOCS_HREF = 'https://ydocs.tech';
8
7
  export const MarkdownHints = React.memo(function MarkdownHints() {
9
8
  const hints = [
10
9
  { title: i18n('header_title'), hint: i18n('header_hint') },
@@ -22,6 +21,6 @@ export const MarkdownHints = React.memo(function MarkdownHints() {
22
21
  React.createElement("div", { className: b('grid') }, hints.map((hint, index) => (React.createElement(React.Fragment, { key: `md-hint-${index}` },
23
22
  React.createElement("span", { className: b('title') }, hint.title),
24
23
  React.createElement("span", { className: b('hint') }, hint.hint))))),
25
- React.createElement(Link, { href: YFM_DOCS_HREF, target: "_blank", className: b('docs-link') }, i18n('documentation'))));
24
+ React.createElement(Link, { href: i18n('documentation_link'), target: "_blank", className: b('docs-link') }, i18n('documentation'))));
26
25
  });
27
26
  MarkdownHints.displayName = 'MarkdownHints';
@@ -78,5 +78,6 @@
78
78
 
79
79
  .g-md-table-wrapper {
80
80
  display: inline-block;
81
+ width: 100%;
81
82
  margin-right: 2px;
82
83
  }
@@ -19,5 +19,6 @@
19
19
  "list_hint": "- Your text",
20
20
  "numbered-list_title": "Numbered list",
21
21
  "numbered-list_hint": "1. Your text",
22
- "documentation": "Documentation"
22
+ "documentation": "Documentation",
23
+ "documentation_link": " https://diplodoc.com/docs/en/syntax/"
23
24
  }
@@ -1,4 +1,4 @@
1
- export declare const i18n: <G extends "header_title" | "header_hint" | "italic_title" | "italic_hint" | "bold_title" | "bold_hint" | "strikethrough_title" | "strikethrough_hint" | "blockquote_title" | "blockquote_hint" | "code_title" | "code_hint" | "link_title" | "link_hint" | "image_title" | "image_hint" | "list_title" | "list_hint" | "numbered-list_title" | "numbered-list_hint" | "documentation", S extends string>(key: G | (string extends S ? S : never), params?: {
1
+ export declare const i18n: <G extends "header_title" | "header_hint" | "italic_title" | "italic_hint" | "bold_title" | "bold_hint" | "strikethrough_title" | "strikethrough_hint" | "blockquote_title" | "blockquote_hint" | "code_title" | "code_hint" | "link_title" | "link_hint" | "image_title" | "image_hint" | "list_title" | "list_hint" | "numbered-list_title" | "numbered-list_hint" | "documentation" | "documentation_link", S extends string>(key: G | (string extends S ? S : never), params?: {
2
2
  [key: string]: any;
3
3
  } | undefined) => S extends G ? {
4
4
  header_title: string;
@@ -22,4 +22,5 @@ export declare const i18n: <G extends "header_title" | "header_hint" | "italic_t
22
22
  "numbered-list_title": string;
23
23
  "numbered-list_hint": string;
24
24
  documentation: string;
25
+ documentation_link: string;
25
26
  }[G] : string;
@@ -19,5 +19,6 @@
19
19
  "list_hint": "- Ваш текст",
20
20
  "numbered-list_title": "Нумерованный список",
21
21
  "numbered-list_hint": "1. Ваш текст",
22
- "documentation": "Документация"
22
+ "documentation": "Документация",
23
+ "documentation_link": " https://diplodoc.com/docs/ru/syntax/"
23
24
  }
@@ -1,2 +1,2 @@
1
1
  /** During build process, the current version will be injected here */
2
- export const VERSION = typeof '13.4.1' !== 'undefined' ? '13.4.1' : 'unknown';
2
+ export const VERSION = typeof '13.4.2' !== 'undefined' ? '13.4.2' : 'unknown';
package/build/styles.css CHANGED
@@ -1477,6 +1477,7 @@ img.ProseMirror-separator {
1477
1477
 
1478
1478
  .g-md-table-wrapper {
1479
1479
  display: inline-block;
1480
+ width: 100%;
1480
1481
  margin-right: 2px;
1481
1482
  }
1482
1483
  .g-md-table-cell-view__left-button {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/markdown-editor",
3
- "version": "13.4.1",
3
+ "version": "13.4.2",
4
4
  "description": "Markdown wysiwyg and markup editor",
5
5
  "license": "MIT",
6
6
  "repository": {