@jvs-milkdown/crepe 1.2.37 → 1.2.39

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":"component.d.ts","sourceRoot":"","sources":["../../../../src/feature/fixed-toolbar/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAGhE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,GAAG,EAMT,MAAM,KAAK,CAAA;AAEZ,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,GAAG,CAAA;AAalD,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,yBAAyB,CAAA;IAClC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,qBAAqB,oXAkPhC,CAAA"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/feature/fixed-toolbar/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAGhE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,GAAG,EAOT,MAAM,KAAK,CAAA;AAEZ,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,GAAG,CAAA;AAalD,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,yBAAyB,CAAA;IAClC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,qBAAqB,oXAkPhC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jvs-milkdown/crepe",
3
- "version": "1.2.37",
3
+ "version": "1.2.39",
4
4
  "keywords": [
5
5
  "crepe",
6
6
  "editor",
@@ -107,9 +107,9 @@
107
107
  "@codemirror/theme-one-dark": "^6.1.2",
108
108
  "@codemirror/view": "^6.26.0",
109
109
  "@floating-ui/dom": "^1.7.6",
110
- "@jvs-milkdown/kit": "^1.2.37",
111
- "@jvs-milkdown/prose": "^1.2.37",
112
- "@jvs-milkdown/utils": "^1.2.37",
110
+ "@jvs-milkdown/kit": "^1.2.39",
111
+ "@jvs-milkdown/prose": "^1.2.39",
112
+ "@jvs-milkdown/utils": "^1.2.39",
113
113
  "@types/lodash-es": "^4.17.12",
114
114
  "clsx": "^2.0.0",
115
115
  "codemirror": "^6.0.1",
@@ -11,6 +11,7 @@ import {
11
11
  onMounted,
12
12
  onUnmounted,
13
13
  h,
14
+ Fragment,
14
15
  } from 'vue'
15
16
 
16
17
  import type { FixedToolbarFeatureConfig } from '.'
@@ -47,7 +48,7 @@ export const FixedToolbarComponent = defineComponent<FixedToolbarProps>({
47
48
  canRedo: { type: Object, required: true },
48
49
  },
49
50
  setup(props: any) {
50
- keepAlive(h)
51
+ keepAlive(h, Fragment)
51
52
  const showShortcuts = ref(false)
52
53
 
53
54
  onMounted(() => {
@@ -120,27 +120,27 @@
120
120
  }
121
121
 
122
122
  ol > .milkdown-list-item-block li .label-wrapper .label.ordered {
123
- font-size: inherit;
123
+ font-size: var(--list-item-font-size, inherit);
124
124
  visibility: hidden;
125
125
  }
126
126
  ol > .milkdown-list-item-block li .label-wrapper .label.ordered::before {
127
127
  content: counter(crepe-ol-level, decimal) '.';
128
- font-size: inherit;
128
+ font-size: var(--list-item-font-size, inherit);
129
129
  visibility: visible;
130
130
  }
131
131
 
132
132
  ol ol > .milkdown-list-item-block li .label-wrapper .label.ordered {
133
- font-size: inherit;
133
+ font-size: var(--list-item-font-size, inherit);
134
134
  visibility: hidden;
135
135
  }
136
136
  ol ol > .milkdown-list-item-block li .label-wrapper .label.ordered::before {
137
137
  content: counter(crepe-ol-level-2, lower-latin) '.';
138
- font-size: inherit;
138
+ font-size: var(--list-item-font-size, inherit);
139
139
  visibility: visible;
140
140
  }
141
141
 
142
142
  ol ol ol > .milkdown-list-item-block li .label-wrapper .label.ordered {
143
- font-size: inherit;
143
+ font-size: var(--list-item-font-size, inherit);
144
144
  visibility: hidden;
145
145
  }
146
146
  ol
@@ -151,12 +151,12 @@
151
151
  .label-wrapper
152
152
  .label.ordered::before {
153
153
  content: counter(crepe-ol-level-3, lower-roman) '.';
154
- font-size: inherit;
154
+ font-size: var(--list-item-font-size, inherit);
155
155
  visibility: visible;
156
156
  }
157
157
 
158
158
  ol ol ol ol > .milkdown-list-item-block li .label-wrapper .label.ordered {
159
- font-size: inherit;
159
+ font-size: var(--list-item-font-size, inherit);
160
160
  visibility: hidden;
161
161
  }
162
162
  ol
@@ -168,7 +168,7 @@
168
168
  .label-wrapper
169
169
  .label.ordered::before {
170
170
  content: counter(crepe-ol-level-4, decimal) '.';
171
- font-size: inherit;
171
+ font-size: var(--list-item-font-size, inherit);
172
172
  visibility: visible;
173
173
  }
174
174
  }
@@ -17,6 +17,7 @@
17
17
 
18
18
  .table-wrapper {
19
19
  overflow-x: auto;
20
+ padding: 0 2px;
20
21
  }
21
22
 
22
23
  th,