@kungal/editor-vue 0.32.0 → 0.32.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.
package/dist/types.d.ts CHANGED
@@ -7,10 +7,10 @@ export interface KunEditorToolbarApi {
7
7
  /** Run a Milkdown command (import its key from the preset/commonmark/gfm). */
8
8
  run: <T>(key: CmdKey<T>, payload?: T) => void;
9
9
  /**
10
- * Reactive active state of the toggle marks at the current cursor. A key is
11
- * `true` while that mark is active (e.g. `bold` is true inside a bold run, or
12
- * when it is the pending stored mark), so a toolbar can highlight its pressed
13
- * buttons the same way it highlights hover.
10
+ * Live toggle-mark state at the caret / selection (bold / italic / strike /
11
+ * code). The same record drives the default toolbar and the selection
12
+ * bubble; a custom `#toolbar` reads it here. Updated on every editor view
13
+ * tick, including stored-mark-only toggles.
14
14
  */
15
15
  activeMarks: Readonly<Record<KunToggleMark, boolean>>;
16
16
  /** Insert plain text at the cursor (e.g. an emoji). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungal/editor-vue",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "KunEditor Vue 3 layer — the headless <KunEditor> component (dual WYSIWYG / markdown-source), toolbar and plugin views. Ships zero CSS and no UI-kit dependency; consumes @kungal/editor-core, and pairs with @kungal/editor-nuxt for optional KunUI chrome.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@prosemirror-adapter/vue": "^0.4.6",
43
- "@kungal/editor-core": "0.32.0"
43
+ "@kungal/editor-core": "0.32.1"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@codemirror/lang-markdown": "^6.0.0",
@@ -80,7 +80,7 @@
80
80
  "vite": "^8.0.16",
81
81
  "vue": "^3.5.35",
82
82
  "vue-tsc": "^3.3.3",
83
- "@kungal/editor-core": "0.32.0"
83
+ "@kungal/editor-core": "0.32.1"
84
84
  },
85
85
  "scripts": {
86
86
  "build": "vite build && vue-tsc -p tsconfig.build.json",
@@ -1,10 +0,0 @@
1
- export declare const useActiveMarks: () => {
2
- activeMarks: {
3
- bold: boolean;
4
- italic: boolean;
5
- strike: boolean;
6
- code: boolean;
7
- };
8
- refresh: () => void;
9
- };
10
- //# sourceMappingURL=useActiveMarks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActiveMarks.d.ts","sourceRoot":"","sources":["../../src/composables/useActiveMarks.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,cAAc;;;;;;;mBAUL,IAAI;CA8BzB,CAAA"}