@uiw/react-md-editor 3.17.0 → 3.17.1

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 (37) hide show
  1. package/dist/mdeditor.css +15 -5
  2. package/dist/mdeditor.js +69 -652
  3. package/dist/mdeditor.min.css +1 -1
  4. package/dist/mdeditor.min.js +1 -1
  5. package/esm/Editor.d.ts +3 -0
  6. package/esm/Editor.js +1 -7
  7. package/esm/Editor.js.map +2 -3
  8. package/esm/components/DragBar/index.css +1 -0
  9. package/esm/components/DragBar/index.less +1 -0
  10. package/esm/components/Toolbar/Child.js +0 -1
  11. package/esm/components/Toolbar/Child.js.map +2 -2
  12. package/esm/components/Toolbar/index.css +2 -1
  13. package/esm/components/Toolbar/index.d.ts +0 -2
  14. package/esm/components/Toolbar/index.js +0 -4
  15. package/esm/components/Toolbar/index.js.map +2 -3
  16. package/esm/components/Toolbar/index.less +2 -1
  17. package/esm/index.css +10 -3
  18. package/esm/index.less +9 -3
  19. package/lib/Editor.d.ts +3 -0
  20. package/lib/Editor.js +1 -8
  21. package/lib/Editor.js.map +2 -3
  22. package/lib/components/DragBar/index.less +1 -0
  23. package/lib/components/Toolbar/Child.js +0 -1
  24. package/lib/components/Toolbar/Child.js.map +2 -2
  25. package/lib/components/Toolbar/index.d.ts +0 -2
  26. package/lib/components/Toolbar/index.js +0 -5
  27. package/lib/components/Toolbar/index.js.map +2 -3
  28. package/lib/components/Toolbar/index.less +2 -1
  29. package/lib/index.less +9 -3
  30. package/markdown-editor.css +13 -4
  31. package/package.json +2 -2
  32. package/src/Editor.tsx +6 -9
  33. package/src/components/DragBar/index.less +1 -0
  34. package/src/components/Toolbar/Child.tsx +1 -1
  35. package/src/components/Toolbar/index.less +2 -1
  36. package/src/components/Toolbar/index.tsx +2 -3
  37. package/src/index.less +9 -3
package/dist/mdeditor.css CHANGED
@@ -278,12 +278,12 @@ body[data-color-mode*='light'] {
278
278
  box-sizing: content-box;
279
279
  overflow: hidden;
280
280
  background: transparent;
281
+ border: 0;
281
282
  border-bottom: 1px solid var(--color-border-muted);
282
283
  height: 0.25em;
283
284
  padding: 0;
284
285
  margin: 24px 0;
285
286
  background-color: var(--color-border-default);
286
- border: 0;
287
287
  }
288
288
  .wmde-markdown input {
289
289
  font: inherit;
@@ -1166,7 +1166,7 @@ body[data-color-mode*='light'] {
1166
1166
  .w-md-editor-toolbar {
1167
1167
  border-bottom: 1px solid var(--color-border-default);
1168
1168
  background-color: var(--color-canvas-default);
1169
- padding: 0 5px 0 5px;
1169
+ padding: 5px;
1170
1170
  display: flex;
1171
1171
  justify-content: space-between;
1172
1172
  align-items: center;
@@ -1174,6 +1174,7 @@ body[data-color-mode*='light'] {
1174
1174
  -webkit-user-select: none;
1175
1175
  -moz-user-select: none;
1176
1176
  user-select: none;
1177
+ flex-wrap: wrap;
1177
1178
  }
1178
1179
  .w-md-editor-toolbar.bottom {
1179
1180
  border-bottom: 0px;
@@ -1240,6 +1241,7 @@ body[data-color-mode*='light'] {
1240
1241
  position: absolute;
1241
1242
  cursor: s-resize;
1242
1243
  right: 0;
1244
+ bottom: 0;
1243
1245
  margin-top: -11px;
1244
1246
  margin-right: 0;
1245
1247
  width: 14px;
@@ -1264,14 +1266,22 @@ body[data-color-mode*='light'] {
1264
1266
  box-shadow: 0 0 0 1px var(--color-border-default), 0 0 0 var(--color-border-default), 0 1px 1px var(--color-border-default);
1265
1267
  background-color: var(--color-canvas-default);
1266
1268
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1269
+ display: flex;
1270
+ flex-direction: column;
1267
1271
  }
1268
- .w-md-editor .copied {
1269
- display: none !important;
1272
+ .w-md-editor-toolbar {
1273
+ height: -webkit-fit-content;
1274
+ height: -moz-fit-content;
1275
+ height: fit-content;
1270
1276
  }
1271
1277
  .w-md-editor-content {
1278
+ height: 100%;
1279
+ overflow: auto;
1272
1280
  position: relative;
1273
1281
  border-radius: 0 0 3px 0;
1274
- height: calc(100% - 39.1px);
1282
+ }
1283
+ .w-md-editor .copied {
1284
+ display: none !important;
1275
1285
  }
1276
1286
  .w-md-editor-input {
1277
1287
  width: 50%;