@ash-qw/dsh-theme-prts 1.1.0 → 1.2.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.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@ash-qw/dsh-theme-prts",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "type": "module",
6
- "description": "Unofficial Arknights P.R.T.S.-inspired UI theme for DeepSeek Harness Web",
6
+ "description": "Unofficial Arknights P.R.T.S.-inspired UI theme for DeepSeek Harness Web and the official desktop client",
7
7
  "keywords": [
8
8
  "deepseek-harness",
9
9
  "dsh",
@@ -506,5 +506,61 @@
506
506
  "duration": 60000.0
507
507
  }
508
508
  ]
509
+ },
510
+ "states": {
511
+ "grab": {
512
+ "file": "prts-grab.png",
513
+ "source": "PRTS-Replica-v8-96x-grab_enter_0011.cur",
514
+ "crop": [
515
+ 18,
516
+ 40,
517
+ 86,
518
+ 96
519
+ ],
520
+ "size": [
521
+ 45,
522
+ 37
523
+ ],
524
+ "hotspot": [
525
+ 22,
526
+ 19
527
+ ]
528
+ },
529
+ "grabbing": {
530
+ "file": "prts-grabbing.png",
531
+ "source": "PRTS-Replica-v8-96x-grab_loop_0000.cur",
532
+ "crop": [
533
+ 18,
534
+ 40,
535
+ 86,
536
+ 96
537
+ ],
538
+ "size": [
539
+ 45,
540
+ 37
541
+ ],
542
+ "hotspot": [
543
+ 22,
544
+ 19
545
+ ]
546
+ },
547
+ "not-allowed": {
548
+ "file": "prts-not-allowed.png",
549
+ "source": "PRTS-Replica-v8-96x-unavail1_static.cur",
550
+ "crop": [
551
+ 18,
552
+ 10,
553
+ 96,
554
+ 96
555
+ ],
556
+ "size": [
557
+ 51,
558
+ 56
559
+ ],
560
+ "hotspot": [
561
+ 7,
562
+ 7
563
+ ]
564
+ }
509
565
  }
510
566
  }
Binary file
@@ -107,7 +107,7 @@ export function createCursorAdapter({ document, window, assets }) {
107
107
  restoreHandTarget()
108
108
  if (!canAnimate(target) || !handCursor || target === textTarget) return
109
109
  const cursor = window.getComputedStyle(target).cursor
110
- if (!cursor.includes('data:image/png') || /(?:,\s*text|resize)$/.test(cursor)) return
110
+ if (!cursor.includes('data:image/png') || /(?:,\s*(?:text|grab|grabbing|not-allowed|no-drop)|resize)$/.test(cursor)) return
111
111
  handTarget = target
112
112
  originalCursor = target.style.getPropertyValue('cursor')
113
113
  originalPriority = target.style.getPropertyPriority('cursor')
@@ -160,7 +160,7 @@ export function createCursorAdapter({ document, window, assets }) {
160
160
  reset()
161
161
  const cursor = target ? window.getComputedStyle(target).cursor : ''
162
162
  if (!cursor.includes('data:image/png')) return
163
- if (/(?:,\s*text|resize)$/.test(cursor) || !canAnimate(target)) return
163
+ if (/(?:,\s*(?:text|grab|grabbing|not-allowed|no-drop)|resize)$/.test(cursor) || !canAnimate(target)) return
164
164
  gestureAssets = /,\s*pointer$/.test(cursor) && assets.link ? assets.link : assets
165
165
  pointerId = event.pointerId
166
166
  handCursor = cursor