@jvs-milkdown/crepe 1.2.25 → 1.2.27

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 (34) hide show
  1. package/lib/cjs/feature/block-edit/index.js +3 -3
  2. package/lib/cjs/feature/block-edit/index.js.map +1 -1
  3. package/lib/cjs/feature/toolbar/index.js +1 -1
  4. package/lib/cjs/feature/toolbar/index.js.map +1 -1
  5. package/lib/cjs/index.js +420 -6
  6. package/lib/cjs/index.js.map +1 -1
  7. package/lib/esm/feature/block-edit/index.js +3 -3
  8. package/lib/esm/feature/block-edit/index.js.map +1 -1
  9. package/lib/esm/feature/toolbar/index.js +1 -1
  10. package/lib/esm/feature/toolbar/index.js.map +1 -1
  11. package/lib/esm/index.js +421 -7
  12. package/lib/esm/index.js.map +1 -1
  13. package/lib/theme/common/block-edit.css +5 -3
  14. package/lib/theme/common/code-mirror.css +19 -0
  15. package/lib/theme/common/link-tooltip.css +2 -2
  16. package/lib/theme/common/toolbar.css +1 -1
  17. package/lib/tsconfig.tsbuildinfo +1 -1
  18. package/lib/types/default-config/index.d.ts.map +1 -1
  19. package/lib/types/feature/block-edit/handle/index.d.ts.map +1 -1
  20. package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -1
  21. package/lib/types/feature/fixed-toolbar/config.d.ts.map +1 -1
  22. package/lib/types/feature/fixed-toolbar/index.d.ts +2 -0
  23. package/lib/types/feature/fixed-toolbar/index.d.ts.map +1 -1
  24. package/package.json +4 -4
  25. package/src/default-config/default-config.spec.ts +15 -0
  26. package/src/default-config/index.ts +17 -1
  27. package/src/feature/block-edit/handle/index.ts +8 -2
  28. package/src/feature/block-edit/menu/component.tsx +4 -1
  29. package/src/feature/fixed-toolbar/config.ts +482 -3
  30. package/src/feature/fixed-toolbar/index.ts +2 -0
  31. package/src/theme/common/block-edit.css +5 -3
  32. package/src/theme/common/code-mirror.css +19 -0
  33. package/src/theme/common/link-tooltip.css +2 -2
  34. package/src/theme/common/toolbar.css +1 -1
@@ -1,6 +1,8 @@
1
1
  .milkdown {
2
- &:has(.milkdown-slash-menu[data-show='true'][data-mode='block']) .milkdown-block-handle,
3
- &:has(.milkdown-slash-menu[data-show='true'][data-mode='list']) .milkdown-block-handle {
2
+ &:has(.milkdown-slash-menu[data-show='true'][data-mode='block'])
3
+ .milkdown-block-handle,
4
+ &:has(.milkdown-slash-menu[data-show='true'][data-mode='list'])
5
+ .milkdown-block-handle {
4
6
  opacity: 1 !important;
5
7
  pointer-events: auto !important;
6
8
  }
@@ -107,7 +109,7 @@
107
109
  }
108
110
 
109
111
  position: absolute;
110
- z-index: 10;
112
+ z-index: 200;
111
113
  display: block;
112
114
  font-family: var(--crepe-font-default);
113
115
  color: var(--crepe-color-on-surface);
@@ -334,6 +334,25 @@
334
334
  .preview {
335
335
  text-align: center;
336
336
  overflow-x: auto;
337
+ --mermaid-font-family: 'trebuchet ms', verdana, arial, sans-serif;
338
+
339
+ svg * {
340
+ font-family: 'trebuchet ms', verdana, arial, sans-serif !important;
341
+ line-height: normal !important;
342
+ }
343
+
344
+ svg .relationshipLabel,
345
+ svg .relationshipLabel *,
346
+ svg .edgeLabel,
347
+ svg .edgeLabel *,
348
+ svg .edgeLabelText,
349
+ svg .edgeLabelText * {
350
+ font-size: 11px !important;
351
+ }
352
+
353
+ svg foreignObject {
354
+ overflow: visible !important;
355
+ }
337
356
  }
338
357
  }
339
358
  }
@@ -1,7 +1,7 @@
1
1
  .milkdown {
2
2
  .milkdown-link-preview {
3
3
  position: absolute;
4
- z-index: 10;
4
+ z-index: 200;
5
5
  &[data-show='false'] {
6
6
  display: none;
7
7
  }
@@ -71,7 +71,7 @@
71
71
 
72
72
  .milkdown-link-edit {
73
73
  position: absolute;
74
- z-index: 10;
74
+ z-index: 200;
75
75
  &[data-show='false'] {
76
76
  display: none;
77
77
  }
@@ -9,7 +9,7 @@
9
9
  display: none;
10
10
  }
11
11
 
12
- z-index: 110;
12
+ z-index: 200;
13
13
  position: absolute;
14
14
  display: flex;
15
15
  background: var(--crepe-color-surface);