@jvs-milkdown/crepe 1.2.11 → 1.2.12
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.
- package/lib/cjs/index.js +84 -83
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +145 -144
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/feature/attachment/view/components/attachment-block.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/component.d.ts.map +1 -1
- package/lib/types/feature/fixed-toolbar/document-header.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/feature/attachment/view/components/attachment-block.tsx +1 -1
- package/src/feature/fixed-toolbar/component.tsx +1 -1
- package/src/feature/fixed-toolbar/document-header.tsx +5 -0
- package/src/feature/fixed-toolbar/menu-bar.tsx +1 -1
- package/src/feature/fixed-toolbar/outline-panel.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-block.d.ts","sourceRoot":"","sources":["../../../../../../src/feature/attachment/view/components/attachment-block.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"attachment-block.d.ts","sourceRoot":"","sources":["../../../../../../src/feature/attachment/view/components/attachment-block.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,GAAG,EAAiD,MAAM,KAAK,CAAA;AAE7E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAQ3D,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACtB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACtB,OAAO,EAAE,CAAC,CAAC,SAAS,MAAM,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;IAClE,MAAM,EAAE,uBAAuB,CAAA;CAChC,GAAG;KACD,CAAC,IAAI,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;CAC9C,CAAA;AAWD,eAAO,MAAM,uBAAuB,0YAkPhC,CAAA"}
|
|
@@ -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,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAI9D,OAAO,EAAmB,KAAK,UAAU,EAAE,KAAK,GAAG,
|
|
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,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAI9D,OAAO,EAAmB,KAAK,UAAU,EAAE,KAAK,GAAG,EAAU,MAAM,KAAK,CAAA;AAExE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,GAAG,CAAA;AAQlD,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,yBAAyB,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,qBAAqB,oXAiEhC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-header.d.ts","sourceRoot":"","sources":["../../../../src/feature/fixed-toolbar/document-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"document-header.d.ts","sourceRoot":"","sources":["../../../../src/feature/fixed-toolbar/document-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAchD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAKjD,eAAO,MAAM,cAAc;;cAEA,MAAM,GAAG;;;;cACN,MAAM,kBAAkB;;;;;cAD3B,MAAM,GAAG;;;;cACN,MAAM,kBAAkB;;;+GAoTpD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jvs-milkdown/crepe",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"crepe",
|
|
6
6
|
"editor",
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
98
98
|
"@codemirror/view": "^6.26.0",
|
|
99
99
|
"@floating-ui/dom": "^1.7.6",
|
|
100
|
-
"@jvs-milkdown/kit": "^1.2.
|
|
101
|
-
"@jvs-milkdown/prose": "^1.2.
|
|
102
|
-
"@jvs-milkdown/utils": "^1.2.
|
|
100
|
+
"@jvs-milkdown/kit": "^1.2.12",
|
|
101
|
+
"@jvs-milkdown/prose": "^1.2.12",
|
|
102
|
+
"@jvs-milkdown/utils": "^1.2.12",
|
|
103
103
|
"@types/lodash-es": "^4.17.12",
|
|
104
104
|
"clsx": "^2.0.0",
|
|
105
105
|
"codemirror": "^6.0.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Icon } from '@jvs-milkdown/kit/component'
|
|
2
2
|
// @ts-ignore
|
|
3
|
-
import { type Ref, defineComponent, shallowRef, computed, ref } from 'vue'
|
|
3
|
+
import { type Ref, defineComponent, shallowRef, computed, ref, h } from 'vue'
|
|
4
4
|
|
|
5
5
|
import type { AttachmentFeatureConfig } from '../../config'
|
|
6
6
|
|
|
@@ -3,7 +3,7 @@ import type { Selection } from '@jvs-milkdown/kit/prose/state'
|
|
|
3
3
|
|
|
4
4
|
import { Icon } from '@jvs-milkdown/kit/component'
|
|
5
5
|
// @ts-ignore
|
|
6
|
-
import { defineComponent, type ShallowRef, type Ref, ref } from 'vue'
|
|
6
|
+
import { defineComponent, type ShallowRef, type Ref, ref, h } from 'vue'
|
|
7
7
|
|
|
8
8
|
import type { FixedToolbarFeatureConfig } from '.'
|
|
9
9
|
|
|
@@ -9,8 +9,13 @@ import {
|
|
|
9
9
|
watch,
|
|
10
10
|
onMounted,
|
|
11
11
|
onUnmounted,
|
|
12
|
+
h,
|
|
12
13
|
} from 'vue'
|
|
13
14
|
|
|
15
|
+
import { keepAlive } from '../../utils/keep-alive'
|
|
16
|
+
|
|
17
|
+
keepAlive(h)
|
|
18
|
+
|
|
14
19
|
import type { FixedToolbarConfig } from './index'
|
|
15
20
|
|
|
16
21
|
import { builtInCoverImages, randomCover } from './cover-defaults'
|
|
@@ -2,7 +2,7 @@ import type { Ctx } from '@jvs-milkdown/kit/ctx'
|
|
|
2
2
|
|
|
3
3
|
import { Icon } from '@jvs-milkdown/kit/component'
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
import { defineComponent, ref, onUnmounted, computed, onMounted } from 'vue'
|
|
5
|
+
import { defineComponent, ref, onUnmounted, computed, onMounted, h } from 'vue'
|
|
6
6
|
|
|
7
7
|
import type { FixedToolbarConfig } from './index'
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import type { Ctx } from '@jvs-milkdown/kit/ctx'
|
|
|
2
2
|
|
|
3
3
|
import { editorViewCtx } from '@jvs-milkdown/kit/core'
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
import { defineComponent, onMounted, onUnmounted, ref, computed } from 'vue'
|
|
5
|
+
import { defineComponent, onMounted, onUnmounted, ref, computed, h } from 'vue'
|
|
6
6
|
|
|
7
7
|
import { i18n } from '../../core/locale'
|
|
8
8
|
import { viewMenuStateCtx } from './view-menu-state'
|