@commonpub/editor 0.7.4 → 0.7.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/editor",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "type": "module",
5
5
  "description": "TipTap block editor with 18+ maker-focused extensions for CommonPub",
6
6
  "license": "AGPL-3.0-or-later",
@@ -50,8 +50,8 @@
50
50
  "remark-rehype": "^11.1.2",
51
51
  "unified": "^11.0.5",
52
52
  "zod": "^4.3.6",
53
- "@commonpub/config": "0.9.0",
54
- "@commonpub/schema": "0.9.4"
53
+ "@commonpub/schema": "0.9.5",
54
+ "@commonpub/config": "0.9.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "vue": "^3.4.0",
@@ -394,6 +394,13 @@ function onKeydown(event: KeyboardEvent): void {
394
394
 
395
395
  onMounted(() => { document.addEventListener('keydown', onKeydown); });
396
396
  onUnmounted(() => { document.removeEventListener('keydown', onKeydown); });
397
+
398
+ /** Expose formatting commands for external toolbar integration */
399
+ defineExpose({
400
+ toggleMark,
401
+ toggleLink,
402
+ getActiveMarks: () => floatingToolbar.value.activeMarks,
403
+ });
397
404
  </script>
398
405
 
399
406
  <template>
@@ -55,7 +55,7 @@ function onDragLeave(): void {
55
55
  right: 0;
56
56
  top: 50%;
57
57
  height: 1px;
58
- background: var(--border2, rgba(0, 0, 0, 0.06));
58
+ background: var(--border, rgba(0, 0, 0, 0.1));
59
59
  pointer-events: none;
60
60
  }
61
61