@commonpub/layer 0.7.9 → 0.7.11

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.
@@ -290,6 +290,7 @@ onUnmounted(() => {
290
290
  </button>
291
291
  <span v-else class="cpub-tree-toggle-spacer" />
292
292
 
293
+ <i class="fa-solid fa-grip-vertical cpub-tree-drag-handle" />
293
294
  <i class="fa-solid fa-file-lines cpub-tree-icon" />
294
295
  <span class="cpub-tree-title">{{ node.title || 'Untitled' }}</span>
295
296
 
@@ -424,6 +425,19 @@ onUnmounted(() => {
424
425
  flex-shrink: 0;
425
426
  }
426
427
 
428
+ .cpub-tree-drag-handle {
429
+ font-size: 9px;
430
+ color: var(--text-faint);
431
+ opacity: 0;
432
+ cursor: grab;
433
+ flex-shrink: 0;
434
+ transition: opacity 0.12s;
435
+ }
436
+
437
+ .cpub-tree-drag-handle:active { cursor: grabbing; }
438
+ .cpub-tree-item:hover .cpub-tree-drag-handle { opacity: 0.6; }
439
+ .cpub-tree-item-selected .cpub-tree-drag-handle { opacity: 0.8; }
440
+
427
441
  .cpub-tree-icon {
428
442
  font-size: 11px;
429
443
  color: var(--text-faint);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/layer",
3
- "version": "0.7.9",
3
+ "version": "0.7.11",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
@@ -50,16 +50,16 @@
50
50
  "vue": "^3.4.0",
51
51
  "vue-router": "^4.3.0",
52
52
  "zod": "^4.3.6",
53
- "@commonpub/config": "0.9.0",
54
- "@commonpub/editor": "0.7.2",
55
- "@commonpub/explainer": "0.7.5",
56
- "@commonpub/schema": "0.9.4",
57
53
  "@commonpub/auth": "0.5.0",
58
- "@commonpub/learning": "0.5.0",
59
- "@commonpub/ui": "0.8.5",
54
+ "@commonpub/config": "0.9.0",
55
+ "@commonpub/editor": "0.7.4",
60
56
  "@commonpub/docs": "0.6.2",
57
+ "@commonpub/explainer": "0.7.6",
58
+ "@commonpub/learning": "0.5.0",
59
+ "@commonpub/protocol": "0.9.7",
60
+ "@commonpub/schema": "0.9.4",
61
61
  "@commonpub/server": "2.27.6",
62
- "@commonpub/protocol": "0.9.7"
62
+ "@commonpub/ui": "0.8.5"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@testing-library/jest-dom": "^6.9.1",