@strifeapp/strife 1.11.0 → 1.12.0

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.
@@ -189,6 +189,9 @@ button:focus-visible {
189
189
  inline-size: 100%;
190
190
  padding: 0;
191
191
  color: var(--_muted);
192
+ /* The mark is the handle, not a button into Strife: a pointer gets the plain arrow, since
193
+ clicking it does nothing. Touch, where the tap unfolds the island, shows no cursor. */
194
+ cursor: default;
192
195
  }
193
196
  .mark svg {
194
197
  display: block;
@@ -508,10 +511,10 @@ export class StrifeToolbarElement extends HTMLElement {
508
511
  this.#mark = root.querySelector('.mark');
509
512
  this.#tip = root.querySelector('.tip');
510
513
  this.#mark?.addEventListener('click', () => {
511
- // Pointer devices: the mark is a one-click shortcut. Touch: first tap unfolds.
512
- if (hoverCapable())
513
- this.open();
514
- else
514
+ // The mark is the toolbar's handle, not a shortcut into Strife: only "Edit in Strife"
515
+ // opens a document. On touch the first tap unfolds the island; with a pointer, hover
516
+ // (and keyboard focus) already does that, so a click has nothing left to do.
517
+ if (!hoverCapable())
515
518
  this.expanded = !this.expanded;
516
519
  });
517
520
  root.querySelector('.edit')?.addEventListener('click', () => this.open());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strifeapp/strife",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -65,6 +65,6 @@
65
65
  "rimraf": "^6.1.3",
66
66
  "rollup": "^4.0.0",
67
67
  "typescript": "^5.7.3",
68
- "vitest": "^2.1.9"
68
+ "vitest": "^4.1.11"
69
69
  }
70
70
  }