@gravity-ui/markdown-editor 15.28.1 → 15.29.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.
@@ -1 +1 @@
1
- {"version":3,"file":"gravity.js","sourceRoot":"../../../../src","sources":["markup/codemirror/gravity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,IAAI,IAAI,CAAC,EAAC,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAC,UAAU,IAAI,EAAE,EAAC,iBAAc;AAEvC,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC,MAAM,CACtD,qBAAqB,CAAC,KAAK,CAAC,MAAM,CAC9B,EAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAC,EAChD,EAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAC,EAChD,EAAC,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,gCAAgC,EAAC,EACrD,EAAC,GAAG,EAAE,CAAC,CAAC,gBAAgB,EAAE,KAAK,EAAE,+BAA+B,EAAC,EACjE,EAAC,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,4BAA4B,EAAC,EACjE,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,kCAAkC,EAAC,EAC1D,EAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,oCAAoC,EAAC,EAC9D,EAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,gCAAgC,EAAC,EACtD,EAAC,GAAG,EAAE,CAAC,CAAC,SAAS,EAAE,KAAK,E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uC;aACxD;YAED,cAAc,EAAE;gBACZ,eAAe,EAAE,kCAAkC;aACtD;YAED,uBAAuB,EAAE;gBACrB,eAAe,EAAE,+BAA+B;gBAChD,KAAK,EAAE,QAAQ;aAClB;SACJ;KACJ;CACJ,CAAC,CAAC","sourcesContent":["import {HighlightStyle, defaultHighlightStyle} from '@codemirror/language';\nimport {EditorView} from '@codemirror/view';\nimport {tags as t} from '@lezer/highlight';\n\nimport {customTags as ct} from './yfm';\n\nexport const gravityHighlightStyle = HighlightStyle.define(\n defaultHighlightStyle.specs.concat(\n {tag: t.meta, color: 'var(--g-color-text-hint)'},\n {tag: t.link, color: 'var(--g-color-text-link)'},\n {tag: t.url, color: 'var(--g-color-text-link-hover)'},\n {tag: t.contentSeparator, color: 'var(--g-color-text-secondary)'},\n {tag: [t.string, t.deleted], color: 'var(--g-color-text-danger)'},\n {tag: t.escape, color: 'var(--g-color-text-danger-heavy)'},\n {tag: t.typeName, color: 'var(--g-color-text-positive-heavy)'},\n {tag: t.atom, color: 'var(--g-color-text-info-heavy)'},\n {tag: t.labelName, color: 'var(--g-color-text-complementary)'},\n {tag: t.heading, fontWeight: 'bold'},\n // custom tags\n {tag: ct.underline, textDecoration: 'underline'},\n {tag: ct.monospace, fontFamily: 'monospace'},\n {tag: ct.marked, color: 'marktext', backgroundColor: 'mark'},\n ),\n);\n\nexport const gravityTheme = EditorView.baseTheme({\n '&': {\n overflow: 'hidden',\n height: '100%',\n },\n '&.cm-focused': {\n outline: 'none',\n },\n '.cm-placeholder': {\n color: 'var(--g-color-text-secondary)',\n },\n '.cm-content': {\n color: 'var(--g-color-text-primary)',\n caretColor: 'currentColor',\n fontSize: 'var(--g-text-code-2-font-size)',\n fontWeight: 'var(--g-text-code-font-weight)',\n fontFamily: 'var(--g-font-family-monospace)',\n lineHeight: 'var(--g-text-code-2-line-height)',\n },\n '&.cm-focused .cm-cursor': {\n borderLeftColor: 'currentColor',\n },\n '&.cm-focused .cm-selectionBackground, &.cm-focused ::selection': {\n background: 'var(--g-color-base-misc-medium)',\n },\n '.cm-tooltip.cm-tooltip-autocomplete': {\n padding: '4px 0',\n lineHeight: '24px',\n color: 'var(--g-color-text-primary)',\n fontFamily: 'var(--g-font-family-monospace)',\n fontSize: 'var(--g-text-body-1-font-size)',\n backgroundColor: 'var(--g-color-base-float)',\n border: '1px solid var(--g-color-line-generic-solid)',\n borderRadius: '4px',\n\n '& > ul': {\n '& > completion-section': {\n color: 'var(--g-color-text-hint)',\n fontWeight: 'var(--g-text-accent-font-weight)',\n borderBottom: '1px solid var(--g-color-line-generic)',\n },\n\n '& > li:hover': {\n backgroundColor: 'var(--g-color-base-simple-hover)',\n },\n\n '& > li[aria-selected]': {\n backgroundColor: 'var(--g-color-base-selection)',\n color: 'revert',\n },\n },\n },\n});\n"]}
1
+ {"version":3,"file":"gravity.js","sourceRoot":"../../../../src","sources":["markup/codemirror/gravity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,IAAI,IAAI,CAAC,EAAC,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAC,UAAU,IAAI,EAAE,EAAC,iBAAc;AAEvC,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAAC,MAAM,CACtD,qBAAqB,CAAC,KAAK,CAAC,MAAM,CAC9B,EAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAC,EAChD,EAAC,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,0BAA0B,EAAC,EAChD,EAAC,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,gCAAgC,EAAC,EACrD,EAAC,GAAG,EAAE,CAAC,CAAC,gBAAgB,EAAE,KAAK,EAAE,+BAA+B,EAAC,EACjE,EAAC,GAAG,EAAE,CAAC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C,EAAE;QACnC,OAAO,EAAE,OAAO;QAChB,UAAU,EAAE,MAAM;QAClB,KAAK,EAAE,6BAA6B;QACpC,UAAU,EAAE,gCAAgC;QAC5C,QAAQ,EAAE,gCAAgC;QAC1C,eAAe,EAAE,2BAA2B;QAC5C,MAAM,EAAE,6CAA6C;QACrD,YAAY,EAAE,KAAK;QAEnB,QAAQ,EAAE;YACN,wBAAwB,EAAE;gBACtB,KAAK,EAAE,0BAA0B;gBACjC,UAAU,EAAE,kCAAkC;gBAC9C,YAAY,EAAE,uCAAuC;aACxD;YAED,cAAc,EAAE;gBACZ,eAAe,EAAE,kCAAkC;aACtD;YAED,uBAAuB,EAAE;gBACrB,eAAe,EAAE,+BAA+B;gBAChD,KAAK,EAAE,QAAQ;aAClB;SACJ;KACJ;CACJ,CAAC,CAAC","sourcesContent":["import {HighlightStyle, defaultHighlightStyle} from '@codemirror/language';\nimport {EditorView} from '@codemirror/view';\nimport {tags as t} from '@lezer/highlight';\n\nimport {customTags as ct} from './yfm';\n\nexport const gravityHighlightStyle = HighlightStyle.define(\n defaultHighlightStyle.specs.concat(\n {tag: t.meta, color: 'var(--g-color-text-hint)'},\n {tag: t.link, color: 'var(--g-color-text-link)'},\n {tag: t.url, color: 'var(--g-color-text-link-hover)'},\n {tag: t.contentSeparator, color: 'var(--g-color-text-secondary)'},\n {tag: [t.string, t.deleted], color: 'var(--g-color-text-danger)'},\n {tag: t.escape, color: 'var(--g-color-text-danger-heavy)'},\n {tag: t.typeName, color: 'var(--g-color-text-positive-heavy)'},\n {tag: t.atom, color: 'var(--g-color-text-info-heavy)'},\n {tag: t.labelName, color: 'var(--g-color-text-complementary)'},\n {tag: t.heading, fontWeight: 'bold'},\n // custom tags\n {tag: ct.underline, textDecoration: 'underline'},\n {tag: ct.monospace, fontFamily: 'monospace'},\n {tag: ct.marked, color: 'marktext', backgroundColor: 'mark'},\n ),\n);\n\nexport const gravityTheme = EditorView.baseTheme({\n '&': {\n height: '100%',\n },\n '&.cm-focused': {\n outline: 'none',\n },\n '.cm-placeholder': {\n color: 'var(--g-color-text-secondary)',\n },\n '.cm-content': {\n color: 'var(--g-color-text-primary)',\n caretColor: 'currentColor',\n fontSize: 'var(--g-text-code-2-font-size)',\n fontWeight: 'var(--g-text-code-font-weight)',\n fontFamily: 'var(--g-font-family-monospace)',\n lineHeight: 'var(--g-text-code-2-line-height)',\n },\n '&.cm-focused .cm-cursor': {\n borderLeftColor: 'currentColor',\n },\n '&.cm-focused .cm-selectionBackground, &.cm-focused ::selection': {\n background: 'var(--g-color-base-misc-medium)',\n },\n '.cm-tooltip.cm-tooltip-autocomplete': {\n padding: '4px 0',\n lineHeight: '24px',\n color: 'var(--g-color-text-primary)',\n fontFamily: 'var(--g-font-family-monospace)',\n fontSize: 'var(--g-text-body-1-font-size)',\n backgroundColor: 'var(--g-color-base-float)',\n border: '1px solid var(--g-color-line-generic-solid)',\n borderRadius: '4px',\n\n '& > ul': {\n '& > completion-section': {\n color: 'var(--g-color-text-hint)',\n fontWeight: 'var(--g-text-accent-font-weight)',\n borderBottom: '1px solid var(--g-color-line-generic)',\n },\n\n '& > li:hover': {\n backgroundColor: 'var(--g-color-base-simple-hover)',\n },\n\n '& > li[aria-selected]': {\n backgroundColor: 'var(--g-color-base-selection)',\n color: 'revert',\n },\n },\n },\n});\n"]}
@@ -1,3 +1,3 @@
1
1
  /** During build process, the current version will be injected here */
2
- export const VERSION = typeof '15.28.1' !== 'undefined' ? '15.28.1' : 'unknown';
2
+ export const VERSION = typeof '15.29.0' !== 'undefined' ? '15.29.0' : 'unknown';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"../../src","sources":["version.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC","sourcesContent":["/** During build process, the current version will be injected here */\nexport const VERSION = typeof '15.28.1' !== 'undefined' ? '15.28.1' : 'unknown';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"../../src","sources":["version.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC","sourcesContent":["/** During build process, the current version will be injected here */\nexport const VERSION = typeof '15.29.0' !== 'undefined' ? '15.29.0' : 'unknown';\n"]}
package/build/styles.css CHANGED
@@ -990,9 +990,6 @@
990
990
  display: flex;
991
991
  flex-wrap: nowrap;
992
992
  }
993
- .g-md-editor-settings__mode-button {
994
- margin-right: 1px;
995
- }
996
993
  .g-md-editor-settings__preview-button {
997
994
  margin: 0 2px;
998
995
  }
@@ -1005,6 +1002,10 @@
1005
1002
  .g-md-settings-content {
1006
1003
  width: 300px;
1007
1004
  }
1005
+ .g-md-settings-content__mode {
1006
+ border-start-start-radius: inherit;
1007
+ border-start-end-radius: inherit;
1008
+ }
1008
1009
  .g-md-settings-content__mode-help {
1009
1010
  position: relative;
1010
1011
  top: 8px;
@@ -1013,13 +1014,8 @@
1013
1014
  .g-md-settings-content__separator {
1014
1015
  border-bottom: 1px solid var(--g-color-line-generic);
1015
1016
  }
1016
- .g-md-settings-content__toolbar, .g-md-settings-content__split-mode {
1017
- padding: 8px 16px 12px;
1018
- }
1019
- .g-md-settings-content__toolbar-hint {
1020
- margin-top: 3px;
1021
- padding-left: 19px;
1022
- color: var(--g-color-text-secondary);
1017
+ .g-md-settings-content__check-box .g-control-label__text {
1018
+ margin-left: calc(var(--g-spacing-2) + var(--g-spacing-half));
1023
1019
  }
1024
1020
  .g-md-settings-content__version {
1025
1021
  position: absolute;
@@ -1027,10 +1023,6 @@
1027
1023
  left: 50%;
1028
1024
  opacity: 0.03;
1029
1025
  transform: translateX(-50%);
1030
- font-family: var(--g-text-code-font-family);
1031
- font-weight: var(--g-text-code-font-weight);
1032
- font-size: var(--g-text-code-inline-1-font-size);
1033
- line-height: var(--g-text-code-inline-1-line-height);
1034
1026
  }
1035
1027
  .g-md-editor-sticky {
1036
1028
  display: grid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/markdown-editor",
3
- "version": "15.28.1",
3
+ "version": "15.29.0",
4
4
  "description": "Markdown wysiwyg and markup editor",
5
5
  "license": "MIT",
6
6
  "repository": {