@gravity-ui/markdown-editor 15.22.1 → 15.23.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.
Files changed (66) hide show
  1. package/build/cjs/bundle/ToolbarView.js +1 -2
  2. package/build/cjs/bundle/ToolbarView.js.map +1 -1
  3. package/build/cjs/bundle/settings/index.js +1 -4
  4. package/build/cjs/bundle/settings/index.js.map +1 -1
  5. package/build/cjs/bundle/toolbar/ToolbarButtonWithPopupMenu.js +1 -3
  6. package/build/cjs/bundle/toolbar/ToolbarButtonWithPopupMenu.js.map +1 -1
  7. package/build/cjs/extensions/yfm/YfmTable/commands/backspace.d.ts +1 -1
  8. package/build/cjs/extensions/yfm/YfmTable/commands/backspace.js +61 -84
  9. package/build/cjs/extensions/yfm/YfmTable/commands/backspace.js.map +1 -1
  10. package/build/cjs/i18n/search/en.json +5 -2
  11. package/build/cjs/i18n/search/index.d.ts +4 -1
  12. package/build/cjs/i18n/search/ru.json +5 -2
  13. package/build/cjs/markup/codemirror/search-plugin/plugin.d.ts +2 -0
  14. package/build/cjs/markup/codemirror/search-plugin/plugin.js +13 -0
  15. package/build/cjs/markup/codemirror/search-plugin/plugin.js.map +1 -1
  16. package/build/cjs/markup/codemirror/search-plugin/view/ReplaceIcons.d.ts +3 -0
  17. package/build/cjs/markup/codemirror/search-plugin/view/ReplaceIcons.js +9 -0
  18. package/build/cjs/markup/codemirror/search-plugin/view/ReplaceIcons.js.map +1 -0
  19. package/build/cjs/markup/codemirror/search-plugin/view/SearchPopup.css +1 -0
  20. package/build/cjs/markup/codemirror/search-plugin/view/SearchPopup.d.ts +2 -0
  21. package/build/cjs/markup/codemirror/search-plugin/view/SearchPopup.js +12 -2
  22. package/build/cjs/markup/codemirror/search-plugin/view/SearchPopup.js.map +1 -1
  23. package/build/cjs/toolbar/ToolbarListButton.js +1 -3
  24. package/build/cjs/toolbar/ToolbarListButton.js.map +1 -1
  25. package/build/cjs/version.js +1 -1
  26. package/build/cjs/version.js.map +1 -1
  27. package/build/esm/bundle/ToolbarView.js +1 -2
  28. package/build/esm/bundle/ToolbarView.js.map +1 -1
  29. package/build/esm/bundle/settings/index.js +1 -4
  30. package/build/esm/bundle/settings/index.js.map +1 -1
  31. package/build/esm/bundle/toolbar/ToolbarButtonWithPopupMenu.js +1 -3
  32. package/build/esm/bundle/toolbar/ToolbarButtonWithPopupMenu.js.map +1 -1
  33. package/build/esm/extensions/yfm/YfmTable/commands/backspace.d.ts +1 -1
  34. package/build/esm/extensions/yfm/YfmTable/commands/backspace.js +60 -83
  35. package/build/esm/extensions/yfm/YfmTable/commands/backspace.js.map +1 -1
  36. package/build/esm/i18n/search/en.json +5 -2
  37. package/build/esm/i18n/search/index.d.ts +4 -1
  38. package/build/esm/i18n/search/ru.json +5 -2
  39. package/build/esm/markup/codemirror/search-plugin/plugin.d.ts +2 -0
  40. package/build/esm/markup/codemirror/search-plugin/plugin.js +14 -1
  41. package/build/esm/markup/codemirror/search-plugin/plugin.js.map +1 -1
  42. package/build/esm/markup/codemirror/search-plugin/view/ReplaceIcons.d.ts +3 -0
  43. package/build/esm/markup/codemirror/search-plugin/view/ReplaceIcons.js +4 -0
  44. package/build/esm/markup/codemirror/search-plugin/view/ReplaceIcons.js.map +1 -0
  45. package/build/esm/markup/codemirror/search-plugin/view/SearchPopup.css +1 -0
  46. package/build/esm/markup/codemirror/search-plugin/view/SearchPopup.d.ts +2 -0
  47. package/build/esm/markup/codemirror/search-plugin/view/SearchPopup.js +12 -2
  48. package/build/esm/markup/codemirror/search-plugin/view/SearchPopup.js.map +1 -1
  49. package/build/esm/toolbar/ToolbarListButton.js +1 -3
  50. package/build/esm/toolbar/ToolbarListButton.js.map +1 -1
  51. package/build/esm/version.js +1 -1
  52. package/build/esm/version.js.map +1 -1
  53. package/build/styles.css +1 -0
  54. package/package.json +1 -1
  55. package/build/cjs/common/layout.d.ts +0 -3
  56. package/build/cjs/common/layout.js +0 -7
  57. package/build/cjs/common/layout.js.map +0 -1
  58. package/build/cjs/utils/get-target-z-index.d.ts +0 -1
  59. package/build/cjs/utils/get-target-z-index.js +0 -13
  60. package/build/cjs/utils/get-target-z-index.js.map +0 -1
  61. package/build/esm/common/layout.d.ts +0 -3
  62. package/build/esm/common/layout.js +0 -4
  63. package/build/esm/common/layout.js.map +0 -1
  64. package/build/esm/utils/get-target-z-index.d.ts +0 -1
  65. package/build/esm/utils/get-target-z-index.js +0 -10
  66. package/build/esm/utils/get-target-z-index.js.map +0 -1
@@ -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.22.1' !== 'undefined' ? '15.22.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.23.0' !== 'undefined' ? '15.23.0' : 'unknown';\n"]}
package/build/styles.css CHANGED
@@ -1668,6 +1668,7 @@ body :has(.g-md-resizable_resizing) {
1668
1668
  margin-right: 8px;
1669
1669
  }
1670
1670
  .g-md-search-card {
1671
+ width: 450px;
1671
1672
  padding: var(--g-spacing-2) var(--g-spacing-2) var(--g-spacing-3) var(--g-spacing-4);
1672
1673
  }
1673
1674
  .g-md-search-card__header {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/markdown-editor",
3
- "version": "15.22.1",
3
+ "version": "15.23.0",
4
4
  "description": "Markdown wysiwyg and markup editor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,3 +0,0 @@
1
- export declare const LAYOUT: {
2
- STICKY_TOOLBAR: string;
3
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LAYOUT = void 0;
4
- exports.LAYOUT = {
5
- STICKY_TOOLBAR: 'sticky-toolbar',
6
- };
7
- //# sourceMappingURL=layout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.js","sourceRoot":"../../../src","sources":["common/layout.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,cAAc,EAAE,gBAAgB;CACnC,CAAC","sourcesContent":["export const LAYOUT = {\n STICKY_TOOLBAR: 'sticky-toolbar',\n};\n"]}
@@ -1 +0,0 @@
1
- export declare function getTargetZIndex(dataLayoutSelector: string, offset?: number): number;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTargetZIndex = getTargetZIndex;
4
- function getTargetZIndex(dataLayoutSelector, offset = 10) {
5
- const targetLayerElement = document.querySelector(`[data-layout="${dataLayoutSelector}"]`);
6
- if (!targetLayerElement) {
7
- return offset;
8
- }
9
- const computedStyle = window.getComputedStyle(targetLayerElement);
10
- const targetZIndex = parseInt(computedStyle.zIndex, 10);
11
- return Number.isFinite(targetZIndex) ? targetZIndex + offset : offset;
12
- }
13
- //# sourceMappingURL=get-target-z-index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-target-z-index.js","sourceRoot":"../../../src","sources":["utils/get-target-z-index.ts"],"names":[],"mappings":";;AAAA,0CAWC;AAXD,SAAgB,eAAe,CAAC,kBAA0B,EAAE,MAAM,GAAG,EAAE;IACnE,MAAM,kBAAkB,GAAG,QAAQ,CAAC,aAAa,CAAC,iBAAiB,kBAAkB,IAAI,CAAC,CAAC;IAE3F,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;IAClE,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAExD,OAAO,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;AAC1E,CAAC","sourcesContent":["export function getTargetZIndex(dataLayoutSelector: string, offset = 10) {\n const targetLayerElement = document.querySelector(`[data-layout=\"${dataLayoutSelector}\"]`);\n\n if (!targetLayerElement) {\n return offset;\n }\n\n const computedStyle = window.getComputedStyle(targetLayerElement);\n const targetZIndex = parseInt(computedStyle.zIndex, 10);\n\n return Number.isFinite(targetZIndex) ? targetZIndex + offset : offset;\n}\n"]}
@@ -1,3 +0,0 @@
1
- export declare const LAYOUT: {
2
- STICKY_TOOLBAR: string;
3
- };
@@ -1,4 +0,0 @@
1
- export const LAYOUT = {
2
- STICKY_TOOLBAR: 'sticky-toolbar',
3
- };
4
- //# sourceMappingURL=layout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout.js","sourceRoot":"../../../src","sources":["common/layout.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,cAAc,EAAE,gBAAgB;CACnC,CAAC","sourcesContent":["export const LAYOUT = {\n STICKY_TOOLBAR: 'sticky-toolbar',\n};\n"]}
@@ -1 +0,0 @@
1
- export declare function getTargetZIndex(dataLayoutSelector: string, offset?: number): number;
@@ -1,10 +0,0 @@
1
- export function getTargetZIndex(dataLayoutSelector, offset = 10) {
2
- const targetLayerElement = document.querySelector(`[data-layout="${dataLayoutSelector}"]`);
3
- if (!targetLayerElement) {
4
- return offset;
5
- }
6
- const computedStyle = window.getComputedStyle(targetLayerElement);
7
- const targetZIndex = parseInt(computedStyle.zIndex, 10);
8
- return Number.isFinite(targetZIndex) ? targetZIndex + offset : offset;
9
- }
10
- //# sourceMappingURL=get-target-z-index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-target-z-index.js","sourceRoot":"../../../src","sources":["utils/get-target-z-index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAC,kBAA0B,EAAE,MAAM,GAAG,EAAE;IACnE,MAAM,kBAAkB,GAAG,QAAQ,CAAC,aAAa,CAAC,iBAAiB,kBAAkB,IAAI,CAAC,CAAC;IAE3F,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;IAClE,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAExD,OAAO,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;AAC1E,CAAC","sourcesContent":["export function getTargetZIndex(dataLayoutSelector: string, offset = 10) {\n const targetLayerElement = document.querySelector(`[data-layout=\"${dataLayoutSelector}\"]`);\n\n if (!targetLayerElement) {\n return offset;\n }\n\n const computedStyle = window.getComputedStyle(targetLayerElement);\n const targetZIndex = parseInt(computedStyle.zIndex, 10);\n\n return Number.isFinite(targetZIndex) ? targetZIndex + offset : offset;\n}\n"]}