@terrafirmagreg-team/recipe 1.2.24 → 1.2.25
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": "@terrafirmagreg-team/recipe",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Recipe viewer and calculator",
|
|
6
6
|
"license": "LGPL-3.0-only",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"./styles.css": "./styles.css"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@terrafirmagreg-team/data": "^1.2.
|
|
27
|
-
"@terrafirmagreg-team/dump": "^1.2.
|
|
26
|
+
"@terrafirmagreg-team/data": "^1.2.12",
|
|
27
|
+
"@terrafirmagreg-team/dump": "^1.2.19",
|
|
28
28
|
"@terrafirmagreg-team/game": "^1.2.10",
|
|
29
|
-
"@terrafirmagreg-team/kit": "^1.2.
|
|
29
|
+
"@terrafirmagreg-team/kit": "^1.2.27",
|
|
30
30
|
"@terrafirmagreg-team/mdx": "^1.2.12",
|
|
31
31
|
"@terrafirmagreg-team/preview": "^1.2.7",
|
|
32
32
|
"@terrafirmagreg-team/sites": "^1.2.4",
|
|
33
33
|
"@terrafirmagreg-team/translate": "^1.2.12",
|
|
34
|
-
"@terrafirmagreg-team/ui": "^1.2.
|
|
34
|
+
"@terrafirmagreg-team/ui": "^1.2.18",
|
|
35
35
|
"@types/pathfinding": "^0.1.0",
|
|
36
36
|
"comlink": "^4.4.2",
|
|
37
37
|
"fflate": "0.8.3",
|
|
@@ -11,7 +11,6 @@ import { useCycleIndex } from '@terrafirmagreg-team/ui/hooks/use-cycle-index';
|
|
|
11
11
|
import { stackDisplayName } from '@terrafirmagreg-team/game/lib/entry/display';
|
|
12
12
|
import { entryHref } from '@terrafirmagreg-team/game/lib/entry/href';
|
|
13
13
|
import { loadStackDisplay } from '@terrafirmagreg-team/game/lib/entry/tooltip';
|
|
14
|
-
import { texturePublicUrl } from '@terrafirmagreg-team/dump/lib/dump/assets/urls';
|
|
15
14
|
import { favoriteHover } from '@terrafirmagreg-team/recipe/lib/browser/favorite-hover';
|
|
16
15
|
import { useAsyncResult } from '@terrafirmagreg-team/ui/hooks/use-async-value';
|
|
17
16
|
import type { ReferenceKind } from '@terrafirmagreg-team/dump/lib/dump/contract/ref';
|
|
@@ -115,11 +114,6 @@ export function SlotHitbox({
|
|
|
115
114
|
? widget.tagKind
|
|
116
115
|
: undefined
|
|
117
116
|
: widgetRefKind(widget);
|
|
118
|
-
const chanceUrl =
|
|
119
|
-
dataset && (alternatives?.length ?? 0) > 1
|
|
120
|
-
? texturePublicUrl(dataset, 'emi:textures/gui/widgets.png')
|
|
121
|
-
: undefined;
|
|
122
|
-
const chance = widget.w >= 26 ? { u: 19, v: 27 } : { u: 1, v: 19 };
|
|
123
117
|
const icon = (
|
|
124
118
|
<span className="pointer-events-none flex size-full items-center justify-center">
|
|
125
119
|
{alternatives && alternatives.length > 1 ? (
|
|
@@ -127,19 +121,7 @@ export function SlotHitbox({
|
|
|
127
121
|
aria-hidden
|
|
128
122
|
className="absolute bg-mc-inset"
|
|
129
123
|
style={{ inset: scale }}
|
|
130
|
-
|
|
131
|
-
{chanceUrl ? (
|
|
132
|
-
<span
|
|
133
|
-
className="absolute inset-0 block"
|
|
134
|
-
style={{
|
|
135
|
-
backgroundImage: `url(${chanceUrl})`,
|
|
136
|
-
backgroundSize: `${256 * scale}px ${256 * scale}px`,
|
|
137
|
-
backgroundPosition: `-${chance.u * scale}px -${chance.v * scale}px`,
|
|
138
|
-
imageRendering: 'pixelated',
|
|
139
|
-
}}
|
|
140
|
-
/>
|
|
141
|
-
) : null}
|
|
142
|
-
</span>
|
|
124
|
+
/>
|
|
143
125
|
) : null}
|
|
144
126
|
<EntryIcon
|
|
145
127
|
id={iconId}
|