@almadar/ui 2.11.5 → 2.11.7
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/dist/{chunk-GTIAVPI5.js → chunk-3FENGM4Y.js} +1 -1
- package/dist/{chunk-4LBNLALH.js → chunk-4NAQLJ2M.js} +5 -5
- package/dist/{chunk-A2NPH2P3.js → chunk-5K3GTPBX.js} +3 -3
- package/dist/{chunk-WGJIL4YR.js → chunk-RUL35VPK.js} +524 -524
- package/dist/{chunk-DKQN5FVU.js → chunk-YLKXEXBP.js} +24 -24
- package/dist/components/index.js +8 -8
- package/dist/context/index.js +2 -2
- package/dist/hooks/index.d.ts +61 -61
- package/dist/hooks/index.js +2 -2
- package/dist/providers/index.js +5 -5
- package/dist/runtime/index.js +9 -7
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { subscribe, getSnapshot, clearEntities, removeEntity, updateSingleton, updateEntity, spawnEntity, getSingleton, getAllEntities, getByType, getEntity } from './chunk-N7MVUW4R.js';
|
|
2
2
|
import { apiClient } from './chunk-3HJHHULT.js';
|
|
3
|
-
import { SelectionContext, entityDataKeys, useEntityList } from './chunk-
|
|
3
|
+
import { SelectionContext, entityDataKeys, useEntityList } from './chunk-RUL35VPK.js';
|
|
4
4
|
import { useEventBus } from './chunk-YXZM3WCF.js';
|
|
5
5
|
import { useCallback, useState, useEffect, useMemo, useContext, useSyncExternalStore, useRef } from 'react';
|
|
6
6
|
import { useQueryClient, useMutation, useQuery } from '@tanstack/react-query';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useTheme, useUISlots } from './chunk-
|
|
2
|
-
import { useTranslate, useInfiniteScroll, useQuerySingleton, useLongPress, useSwipeGesture, useDragReorder, usePullToRefresh } from './chunk-
|
|
1
|
+
import { useTheme, useUISlots } from './chunk-YLKXEXBP.js';
|
|
2
|
+
import { useTranslate, useInfiniteScroll, useQuerySingleton, useLongPress, useSwipeGesture, useDragReorder, usePullToRefresh } from './chunk-RUL35VPK.js';
|
|
3
3
|
import { useEventBus } from './chunk-YXZM3WCF.js';
|
|
4
4
|
import { cn, debugGroup, debug, debugGroupEnd, updateAssetStatus, bindCanvasCapture, getNestedValue, isDebugEnabled } from './chunk-WCTZ7WZX.js';
|
|
5
5
|
import { isPortalSlot } from './chunk-K2D5D3WK.js';
|
|
@@ -9614,17 +9614,17 @@ function InventoryPanel({
|
|
|
9614
9614
|
onMouseEnter: (e) => handleMouseEnter(e, index),
|
|
9615
9615
|
onMouseLeave: handleMouseLeave,
|
|
9616
9616
|
tabIndex: 0,
|
|
9617
|
-
"aria-label": item ? `${item.name || item.type}, quantity: ${item.quantity}` : `Empty slot ${index + 1}`,
|
|
9617
|
+
"aria-label": item ? `${item.name || item.type || "Item"}, quantity: ${item.quantity}` : `Empty slot ${index + 1}`,
|
|
9618
9618
|
children: item && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9619
9619
|
item.sprite ? /* @__PURE__ */ jsx(
|
|
9620
9620
|
"img",
|
|
9621
9621
|
{
|
|
9622
9622
|
src: item.sprite,
|
|
9623
|
-
alt: item.name || item.type,
|
|
9623
|
+
alt: item.name || item.type || "Item",
|
|
9624
9624
|
className: "w-8 h-8 object-contain",
|
|
9625
9625
|
style: { imageRendering: "pixelated" }
|
|
9626
9626
|
}
|
|
9627
|
-
) : /* @__PURE__ */ jsx("div", { className: "w-8 h-8 bg-gray-600 rounded flex items-center justify-center text-xs text-gray-300", children: item.type.charAt(0).toUpperCase() }),
|
|
9627
|
+
) : /* @__PURE__ */ jsx("div", { className: "w-8 h-8 bg-gray-600 rounded flex items-center justify-center text-xs text-gray-300", children: (item.type ?? item.name ?? "I").charAt(0).toUpperCase() }),
|
|
9628
9628
|
item.quantity > 1 && /* @__PURE__ */ jsx("span", { className: "absolute bottom-0 right-0 bg-black bg-opacity-70 text-white text-xs px-1 rounded-tl", children: item.quantity })
|
|
9629
9629
|
] })
|
|
9630
9630
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SuspenseConfigProvider } from './chunk-
|
|
2
|
-
import { ThemeProvider } from './chunk-
|
|
3
|
-
import { SelectionProvider, EntityDataProvider } from './chunk-
|
|
1
|
+
import { SuspenseConfigProvider } from './chunk-4NAQLJ2M.js';
|
|
2
|
+
import { ThemeProvider } from './chunk-YLKXEXBP.js';
|
|
3
|
+
import { SelectionProvider, EntityDataProvider } from './chunk-RUL35VPK.js';
|
|
4
4
|
import { useEventBus, EventBusProvider } from './chunk-YXZM3WCF.js';
|
|
5
5
|
import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from './chunk-WCTZ7WZX.js';
|
|
6
6
|
import { useOfflineExecutor } from './chunk-K2D5D3WK.js';
|