@terrafirmagreg-team/recipe 1.2.3 → 1.2.5
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 +14 -14
- package/src/components/cards/card/index.tsx +2 -2
- package/src/components/cards/card/strip.tsx +1 -1
- package/src/components/cards/paged-card.tsx +1 -1
- package/src/components/cards/slot-hitbox.tsx +1 -1
- package/src/components/cards/strip-card/index.tsx +1 -1
- package/src/components/cards/strip-card/member-cell.tsx +1 -1
- package/src/components/views/browser/card-grid.tsx +1 -1
- package/src/components/views/browser/item-panel/index.tsx +2 -2
- package/src/components/views/browser/item-panel-grid/cell.tsx +1 -1
- package/src/components/views/browser/item-panel-grid/index.tsx +1 -1
- package/src/components/views/calc/edge.tsx +1 -1
- package/src/components/views/calc/flow/index.tsx +1 -1
- package/src/components/views/calc/node-card/far.tsx +1 -1
- package/src/components/views/calc/node-card/full.tsx +1 -1
- package/src/hooks/use-favorite-hotkey.ts +1 -1
- package/src/hooks/use-group-outlines.ts +1 -1
- package/src/hooks/use-index.ts +1 -1
- package/src/hooks/use-item-feeds.ts +1 -1
- package/src/hooks/use-item-tag-groups.ts +1 -1
- package/src/hooks/use-left-sidebar-tree.ts +1 -1
- package/src/hooks/use-panel-cells.ts +3 -3
- package/src/hooks/use-panel-tabs.ts +1 -1
- package/src/hooks/use-session.ts +2 -2
- package/src/hooks/use-type-filter.ts +1 -1
- package/src/lib/{lookup.ts → browser/lookup.ts} +1 -1
- package/src/lib/{used-items.ts → browser/used-items.ts} +1 -1
- package/src/lib/calc/resolve.ts +1 -1
- package/src/lib/config.ts +1 -0
- package/src/lib/embed.ts +3 -0
- /package/src/hooks/calc/{use-session.ts → use-calc-session.ts} +0 -0
- /package/src/lib/{favorite-hover.ts → browser/favorite-hover.ts} +0 -0
- /package/src/lib/{fluid-outputs.ts → browser/fluid-outputs.ts} +0 -0
- /package/src/lib/{group.ts → browser/group.ts} +0 -0
- /package/src/lib/{panel-outline.ts → browser/panel-outline.ts} +0 -0
- /package/src/lib/{panel.ts → browser/panel.ts} +0 -0
- /package/src/lib/{recipe-slots.ts → browser/recipe-slots.ts} +0 -0
- /package/src/lib/{sidebar.ts → browser/sidebar.ts} +0 -0
- /package/src/lib/{card-model.ts → cards/model.ts} +0 -0
- /package/src/lib/{index-store.ts → client-index/store.ts} +0 -0
- /package/src/lib/{search.ts → search/index.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrafirmagreg-team/recipe",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Recipe viewer and calculator",
|
|
6
6
|
"license": "LGPL-3.0-only",
|
|
@@ -23,20 +23,21 @@
|
|
|
23
23
|
"./styles.css": "./styles.css"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@terrafirmagreg-team/data": "1.2.1",
|
|
27
|
-
"@terrafirmagreg-team/dump": "1.2.
|
|
28
|
-
"@terrafirmagreg-team/game": "1.2.
|
|
29
|
-
"@terrafirmagreg-team/kit": "1.2.
|
|
30
|
-
"@terrafirmagreg-team/mdx": "1.2.
|
|
31
|
-
"@terrafirmagreg-team/preview": "1.2.1",
|
|
32
|
-
"@terrafirmagreg-team/sites": "1.2.1",
|
|
33
|
-
"@terrafirmagreg-team/translate": "1.2.
|
|
34
|
-
"@terrafirmagreg-team/ui": "1.2.
|
|
26
|
+
"@terrafirmagreg-team/data": "^1.2.1",
|
|
27
|
+
"@terrafirmagreg-team/dump": "^1.2.2",
|
|
28
|
+
"@terrafirmagreg-team/game": "^1.2.3",
|
|
29
|
+
"@terrafirmagreg-team/kit": "^1.2.5",
|
|
30
|
+
"@terrafirmagreg-team/mdx": "^1.2.2",
|
|
31
|
+
"@terrafirmagreg-team/preview": "^1.2.1",
|
|
32
|
+
"@terrafirmagreg-team/sites": "^1.2.1",
|
|
33
|
+
"@terrafirmagreg-team/translate": "^1.2.4",
|
|
34
|
+
"@terrafirmagreg-team/ui": "^1.2.4",
|
|
35
35
|
"comlink": "^4.4.2",
|
|
36
36
|
"fflate": "0.8.3",
|
|
37
|
-
"fumadocs-core": "16.17.
|
|
38
|
-
"lucide-react": "^
|
|
39
|
-
"pathfinding": "0.4.18"
|
|
37
|
+
"fumadocs-core": "16.17.10",
|
|
38
|
+
"lucide-react": "^1.63.0",
|
|
39
|
+
"pathfinding": "0.4.18",
|
|
40
|
+
"@types/pathfinding": "^0.1.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"next": ">=15",
|
|
@@ -44,7 +45,6 @@
|
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@types/node": "^26.6.5",
|
|
47
|
-
"@types/pathfinding": "^0.1.0",
|
|
48
48
|
"@types/react": "^19.3.0",
|
|
49
49
|
"@types/react-dom": "^19.3.0"
|
|
50
50
|
},
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
cardStripGeo,
|
|
8
8
|
countCoveredText,
|
|
9
9
|
textInStrip,
|
|
10
|
-
} from '@terrafirmagreg-team/recipe/lib/
|
|
10
|
+
} from '@terrafirmagreg-team/recipe/lib/cards/model';
|
|
11
11
|
import { CardText } from '@terrafirmagreg-team/recipe/components/cards/card/text';
|
|
12
12
|
import { CardSceneOverlay } from '@terrafirmagreg-team/recipe/components/cards/card/scene';
|
|
13
13
|
import { CardWidgetTips } from '@terrafirmagreg-team/recipe/components/cards/card/tips';
|
|
14
14
|
import { CardStrip } from '@terrafirmagreg-team/recipe/components/cards/card/strip';
|
|
15
|
-
import { recipeSlots } from '@terrafirmagreg-team/recipe/lib/recipe-slots';
|
|
15
|
+
import { recipeSlots } from '@terrafirmagreg-team/recipe/lib/browser/recipe-slots';
|
|
16
16
|
import {
|
|
17
17
|
recipeMultiblock,
|
|
18
18
|
recipeSceneEntities,
|
|
@@ -5,7 +5,7 @@ import { Fragment, useRef, useState } from 'react';
|
|
|
5
5
|
import { SlotHitbox } from '@terrafirmagreg-team/recipe/components/cards/slot-hitbox';
|
|
6
6
|
import { CardText } from '@terrafirmagreg-team/recipe/components/cards/card/text';
|
|
7
7
|
import { formatCount } from '@terrafirmagreg-team/ui/lib/utils/format';
|
|
8
|
-
import type { CardStripGeo } from '@terrafirmagreg-team/recipe/lib/
|
|
8
|
+
import type { CardStripGeo } from '@terrafirmagreg-team/recipe/lib/cards/model';
|
|
9
9
|
import type { EntryTooltipLevel } from '@terrafirmagreg-team/game/components/entry/tooltip';
|
|
10
10
|
import type { RecipeTextWidget } from '@terrafirmagreg-team/recipe/lib/data/dto';
|
|
11
11
|
import type { RecipeHrefOpts } from '@terrafirmagreg-team/recipe/types';
|
|
@@ -6,7 +6,7 @@ import { SlotHitbox } from './slot-hitbox';
|
|
|
6
6
|
import { StripCard } from './strip-card';
|
|
7
7
|
import { recipeGlareFilter } from './glare-filter';
|
|
8
8
|
import { recipeGrid } from '@terrafirmagreg-team/recipe/lib/data/grid';
|
|
9
|
-
import { recipeSlots } from '@terrafirmagreg-team/recipe/lib/recipe-slots';
|
|
9
|
+
import { recipeSlots } from '@terrafirmagreg-team/recipe/lib/browser/recipe-slots';
|
|
10
10
|
import { PagerArrow } from '@terrafirmagreg-team/ui/components/blocks/page/pager';
|
|
11
11
|
import { useInView } from '@terrafirmagreg-team/ui/hooks/use-in-view';
|
|
12
12
|
import { useSwipe } from '@terrafirmagreg-team/ui/hooks/use-swipe';
|
|
@@ -11,7 +11,7 @@ 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 { favoriteHover } from '@terrafirmagreg-team/recipe/lib/favorite-hover';
|
|
14
|
+
import { favoriteHover } from '@terrafirmagreg-team/recipe/lib/browser/favorite-hover';
|
|
15
15
|
import { useAsyncResult } from '@terrafirmagreg-team/ui/hooks/use-async-value';
|
|
16
16
|
import type { ReferenceKind } from '@terrafirmagreg-team/dump/lib/dump/contract/ref';
|
|
17
17
|
import type { RecipeSlotWidget } from '@terrafirmagreg-team/recipe/lib/data/dto';
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@terrafirmagreg-team/recipe/components/cards/strip-card/buttons';
|
|
12
12
|
import { StripCardMember } from '@terrafirmagreg-team/recipe/components/cards/strip-card/member-cell';
|
|
13
13
|
import { recipeGrid } from '@terrafirmagreg-team/recipe/lib/data/grid';
|
|
14
|
-
import { recipeSlots } from '@terrafirmagreg-team/recipe/lib/recipe-slots';
|
|
14
|
+
import { recipeSlots } from '@terrafirmagreg-team/recipe/lib/browser/recipe-slots';
|
|
15
15
|
import { cn } from '@terrafirmagreg-team/ui/lib/utils/cn';
|
|
16
16
|
import { useInView } from '@terrafirmagreg-team/ui/hooks/use-in-view';
|
|
17
17
|
import { Hint } from '@terrafirmagreg-team/ui/components/blocks/tooltip/hint';
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import { stackDisplayName } from '@terrafirmagreg-team/game/lib/entry/display';
|
|
11
11
|
import { entryHref } from '@terrafirmagreg-team/game/lib/entry/href';
|
|
12
12
|
import { loadStackDisplay } from '@terrafirmagreg-team/game/lib/entry/tooltip';
|
|
13
|
-
import { favoriteHover } from '@terrafirmagreg-team/recipe/lib/favorite-hover';
|
|
13
|
+
import { favoriteHover } from '@terrafirmagreg-team/recipe/lib/browser/favorite-hover';
|
|
14
14
|
import { useAsyncResult } from '@terrafirmagreg-team/ui/hooks/use-async-value';
|
|
15
15
|
import type { ReferenceKind } from '@terrafirmagreg-team/dump/lib/dump/contract/ref';
|
|
16
16
|
import type { RecipeGridMember } from '@terrafirmagreg-team/recipe/lib/data/dto';
|
|
@@ -18,7 +18,7 @@ import { recipeItemName } from '@terrafirmagreg-team/recipe/lib/client-index';
|
|
|
18
18
|
import { loadClientRecipe } from '@terrafirmagreg-team/recipe/lib/client/recipe';
|
|
19
19
|
import { pushUrlState } from '@terrafirmagreg-team/ui/lib/utils/history';
|
|
20
20
|
import { useSwipe } from '@terrafirmagreg-team/ui/hooks/use-swipe';
|
|
21
|
-
import { favoriteHover } from '@terrafirmagreg-team/recipe/lib/favorite-hover';
|
|
21
|
+
import { favoriteHover } from '@terrafirmagreg-team/recipe/lib/browser/favorite-hover';
|
|
22
22
|
import { recipeTitle } from '@terrafirmagreg-team/recipe/lib/data/parse';
|
|
23
23
|
import { cn } from '@terrafirmagreg-team/ui/lib/utils/cn';
|
|
24
24
|
import type { FitDim } from '@terrafirmagreg-team/ui/hooks/page/use-fit-pages';
|
|
@@ -17,10 +17,10 @@ import { usePagedList } from '@terrafirmagreg-team/ui/hooks/page/use-paged-list'
|
|
|
17
17
|
import { useSwipe } from '@terrafirmagreg-team/ui/hooks/use-swipe';
|
|
18
18
|
import { useElementSize } from '@terrafirmagreg-team/ui/hooks/use-element-size';
|
|
19
19
|
import { EmptyState } from '@terrafirmagreg-team/ui/components/blocks/page/empty-state';
|
|
20
|
-
import { type ItemPanelMode } from '@terrafirmagreg-team/recipe/lib/panel';
|
|
20
|
+
import { type ItemPanelMode } from '@terrafirmagreg-team/recipe/lib/browser/panel';
|
|
21
21
|
import { recipeHref } from '@terrafirmagreg-team/recipe/lib/links';
|
|
22
22
|
import { replaceUrlState } from '@terrafirmagreg-team/ui/lib/utils/history';
|
|
23
|
-
import { favoriteHover } from '@terrafirmagreg-team/recipe/lib/favorite-hover';
|
|
23
|
+
import { favoriteHover } from '@terrafirmagreg-team/recipe/lib/browser/favorite-hover';
|
|
24
24
|
import { IconPager } from '@terrafirmagreg-team/ui/components/blocks/page/pager';
|
|
25
25
|
import { FavoriteButton } from '@terrafirmagreg-team/recipe/components/views/browser/favorite-button';
|
|
26
26
|
import { ItemPanelGrid } from '@terrafirmagreg-team/recipe/components/views/browser/item-panel-grid';
|
|
@@ -15,7 +15,7 @@ import { cn } from '@terrafirmagreg-team/ui/lib/utils/cn';
|
|
|
15
15
|
import { RecipeFavoriteCell } from '@terrafirmagreg-team/recipe/components/views/browser/item-panel-grid/favorite-cell';
|
|
16
16
|
import type { Lang } from '@terrafirmagreg-team/translate/types/locale';
|
|
17
17
|
import type { EntrySize } from '@terrafirmagreg-team/game/types/entry';
|
|
18
|
-
import type { FavoriteHoverTarget } from '@terrafirmagreg-team/recipe/lib/favorite-hover';
|
|
18
|
+
import type { FavoriteHoverTarget } from '@terrafirmagreg-team/recipe/lib/browser/favorite-hover';
|
|
19
19
|
import type { ItemPanelCell, RecipeHrefOpts } from '@terrafirmagreg-team/recipe/types';
|
|
20
20
|
|
|
21
21
|
function PanelChip({
|
|
@@ -8,7 +8,7 @@ import { useMountLimit } from '@terrafirmagreg-team/recipe/hooks/use-mount-limit
|
|
|
8
8
|
import { useGroupOutlines } from '@terrafirmagreg-team/recipe/hooks/use-group-outlines';
|
|
9
9
|
import { Skeleton } from '@terrafirmagreg-team/ui/components/ui/skeleton';
|
|
10
10
|
import type { Lang } from '@terrafirmagreg-team/translate/types/locale';
|
|
11
|
-
import type { FavoriteHoverTarget } from '@terrafirmagreg-team/recipe/lib/favorite-hover';
|
|
11
|
+
import type { FavoriteHoverTarget } from '@terrafirmagreg-team/recipe/lib/browser/favorite-hover';
|
|
12
12
|
import type { ItemPanelCell, RecipeHrefOpts } from '@terrafirmagreg-team/recipe/types';
|
|
13
13
|
|
|
14
14
|
const CELL = 36;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from '@terrafirmagreg-team/ui/lib/canvas/edge';
|
|
13
13
|
import { Entry } from '@terrafirmagreg-team/game/components/entry/entry';
|
|
14
14
|
import type { DatasetRef } from '@terrafirmagreg-team/sites/location';
|
|
15
|
-
import { useCalcSession } from '@terrafirmagreg-team/recipe/hooks/calc/use-session';
|
|
15
|
+
import { useCalcSession } from '@terrafirmagreg-team/recipe/hooks/calc/use-calc-session';
|
|
16
16
|
import { recipeItemName } from '@terrafirmagreg-team/recipe/lib/client-index';
|
|
17
17
|
import { formatCount } from '@terrafirmagreg-team/ui/lib/utils/format';
|
|
18
18
|
import type { FlowPoint } from '@terrafirmagreg-team/ui/types/canvas';
|
|
@@ -26,7 +26,7 @@ import { CalcNodeCard } from '@terrafirmagreg-team/recipe/components/views/calc/
|
|
|
26
26
|
import { CalcDotOverlay } from '@terrafirmagreg-team/recipe/components/views/calc/dot-overlay';
|
|
27
27
|
import { EmptyState } from '@terrafirmagreg-team/ui/components/blocks/page/empty-state';
|
|
28
28
|
import { CalcEdge } from '@terrafirmagreg-team/recipe/components/views/calc/edge';
|
|
29
|
-
import { CalcSessionProvider } from '@terrafirmagreg-team/recipe/hooks/calc/use-session';
|
|
29
|
+
import { CalcSessionProvider } from '@terrafirmagreg-team/recipe/hooks/calc/use-calc-session';
|
|
30
30
|
import { CalcFarProvider } from '@terrafirmagreg-team/recipe/hooks/calc/use-far-mode';
|
|
31
31
|
import { CalcTierProvider } from '@terrafirmagreg-team/recipe/hooks/calc/use-tier';
|
|
32
32
|
import { useFlowPickers } from '@terrafirmagreg-team/recipe/hooks/calc/flow/use-pickers';
|
|
@@ -8,7 +8,7 @@ import { useTranslations } from '@terrafirmagreg-team/translate/hooks/use-transl
|
|
|
8
8
|
import { StackCount } from '@terrafirmagreg-team/game/components/entry/stack-count';
|
|
9
9
|
import { PagedCard } from '@terrafirmagreg-team/recipe/components/cards/paged-card';
|
|
10
10
|
import { Skeleton } from '@terrafirmagreg-team/ui/components/ui/skeleton';
|
|
11
|
-
import { useCalcSession } from '@terrafirmagreg-team/recipe/hooks/calc/use-session';
|
|
11
|
+
import { useCalcSession } from '@terrafirmagreg-team/recipe/hooks/calc/use-calc-session';
|
|
12
12
|
import { recipeItemName } from '@terrafirmagreg-team/recipe/lib/client-index';
|
|
13
13
|
import {
|
|
14
14
|
recipeCardImageUrl,
|
|
@@ -19,7 +19,7 @@ import { Entry } from '@terrafirmagreg-team/game/components/entry/entry';
|
|
|
19
19
|
import { StackCount } from '@terrafirmagreg-team/game/components/entry/stack-count';
|
|
20
20
|
import { PagedCard } from '@terrafirmagreg-team/recipe/components/cards/paged-card';
|
|
21
21
|
import { Skeleton } from '@terrafirmagreg-team/ui/components/ui/skeleton';
|
|
22
|
-
import { useCalcSession } from '@terrafirmagreg-team/recipe/hooks/calc/use-session';
|
|
22
|
+
import { useCalcSession } from '@terrafirmagreg-team/recipe/hooks/calc/use-calc-session';
|
|
23
23
|
import { useCalcFar } from '@terrafirmagreg-team/recipe/hooks/calc/use-far-mode';
|
|
24
24
|
import { useCalcTier } from '@terrafirmagreg-team/recipe/hooks/calc/use-tier';
|
|
25
25
|
import { recipeItemName } from '@terrafirmagreg-team/recipe/lib/client-index';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
4
|
import { useFavorites } from '@terrafirmagreg-team/recipe/hooks/use-favorites';
|
|
5
|
-
import { favoriteHoverTarget } from '@terrafirmagreg-team/recipe/lib/favorite-hover';
|
|
5
|
+
import { favoriteHoverTarget } from '@terrafirmagreg-team/recipe/lib/browser/favorite-hover';
|
|
6
6
|
|
|
7
7
|
export function useFavoriteHotkey() {
|
|
8
8
|
const { toggleItem, toggleRecipe } = useFavorites();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
4
|
-
import { groupOutlines } from '@terrafirmagreg-team/recipe/lib/panel-outline';
|
|
4
|
+
import { groupOutlines } from '@terrafirmagreg-team/recipe/lib/browser/panel-outline';
|
|
5
5
|
import type { ItemPanelCell } from '@terrafirmagreg-team/recipe/types';
|
|
6
6
|
|
|
7
7
|
const CELL = 36;
|
package/src/hooks/use-index.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
loadRecipeCompactIndex,
|
|
10
10
|
loadRecipeSkeletonIndex,
|
|
11
11
|
} from '@terrafirmagreg-team/recipe/lib/client-index';
|
|
12
|
-
import { publishRecipeIndex } from '@terrafirmagreg-team/recipe/lib/index
|
|
12
|
+
import { publishRecipeIndex } from '@terrafirmagreg-team/recipe/lib/client-index/store';
|
|
13
13
|
import type { RecipeCompactIndex } from '@terrafirmagreg-team/recipe/types';
|
|
14
14
|
|
|
15
15
|
type LoadedIndex = { key: string; index: RecipeCompactIndex };
|
|
@@ -5,7 +5,7 @@ import { useAsyncResult } from '@terrafirmagreg-team/ui/hooks/use-async-value';
|
|
|
5
5
|
import {
|
|
6
6
|
recipesForOutput,
|
|
7
7
|
usesForInput,
|
|
8
|
-
} from '@terrafirmagreg-team/recipe/lib/lookup';
|
|
8
|
+
} from '@terrafirmagreg-team/recipe/lib/browser/lookup';
|
|
9
9
|
import type { RecipeCompactIndex, RecipeCompactRow } from '@terrafirmagreg-team/recipe/types';
|
|
10
10
|
|
|
11
11
|
export const EMPTY_ROWS: RecipeCompactRow[] = [];
|
|
@@ -4,7 +4,7 @@ import type { DatasetRef } from '@terrafirmagreg-team/sites/location';
|
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import { useAsyncValue } from '@terrafirmagreg-team/ui/hooks/use-async-value';
|
|
6
6
|
import { loadTagSlice } from '@terrafirmagreg-team/recipe/lib/client-index';
|
|
7
|
-
import { registryId } from '@terrafirmagreg-team/recipe/lib/lookup';
|
|
7
|
+
import { registryId } from '@terrafirmagreg-team/recipe/lib/browser/lookup';
|
|
8
8
|
import { splitDumpId } from '@terrafirmagreg-team/dump/lib/dump/paths';
|
|
9
9
|
import type { RecipeCompactIndex } from '@terrafirmagreg-team/recipe/types';
|
|
10
10
|
|
|
@@ -7,7 +7,7 @@ import { useResolvedLang } from '@terrafirmagreg-team/translate/hooks/use-resolv
|
|
|
7
7
|
import { useLastValue } from '@terrafirmagreg-team/ui/hooks/use-last-value';
|
|
8
8
|
import { useRecipeModNames } from '@terrafirmagreg-team/recipe/hooks/use-mod-names';
|
|
9
9
|
import { useSidebarGroup } from '@terrafirmagreg-team/recipe/hooks/use-sidebar-group';
|
|
10
|
-
import { groupRecipeSidebarByMod } from '@terrafirmagreg-team/recipe/lib/sidebar';
|
|
10
|
+
import { groupRecipeSidebarByMod } from '@terrafirmagreg-team/recipe/lib/browser/sidebar';
|
|
11
11
|
import { parseSectionLocation } from '@terrafirmagreg-team/sites/location';
|
|
12
12
|
|
|
13
13
|
export function useRecipeLeftSidebarTree(tree: PageTree.Root): PageTree.Root {
|
|
@@ -4,17 +4,17 @@ import type { DatasetRef } from '@terrafirmagreg-team/sites/location';
|
|
|
4
4
|
import { useDeferredValue, useMemo } from 'react';
|
|
5
5
|
import { useItemTooltips } from '@terrafirmagreg-team/recipe/hooks/use-item-tooltips';
|
|
6
6
|
import { useTagMembers } from '@terrafirmagreg-team/recipe/hooks/use-tag-members';
|
|
7
|
-
import { filterCatalogItemIds } from '@terrafirmagreg-team/recipe/lib/search';
|
|
7
|
+
import { filterCatalogItemIds } from '@terrafirmagreg-team/recipe/lib/search/index';
|
|
8
8
|
import {
|
|
9
9
|
buildPanelCells,
|
|
10
10
|
panelPool,
|
|
11
11
|
type ItemPanelMode,
|
|
12
|
-
} from '@terrafirmagreg-team/recipe/lib/panel';
|
|
12
|
+
} from '@terrafirmagreg-team/recipe/lib/browser/panel';
|
|
13
13
|
import {
|
|
14
14
|
filterUsedIds,
|
|
15
15
|
hasRecipeUsage,
|
|
16
16
|
recipeUsedItems,
|
|
17
|
-
} from '@terrafirmagreg-team/recipe/lib/used-items';
|
|
17
|
+
} from '@terrafirmagreg-team/recipe/lib/browser/used-items';
|
|
18
18
|
import type { Lang } from '@terrafirmagreg-team/translate/types/locale';
|
|
19
19
|
import type {
|
|
20
20
|
FavoriteEntry,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { createElement, useMemo } from 'react';
|
|
4
4
|
import { Entry } from '@terrafirmagreg-team/game/components/entry/entry';
|
|
5
5
|
import { useTranslations } from '@terrafirmagreg-team/translate/hooks/use-translations';
|
|
6
|
-
import { panelTabRows } from '@terrafirmagreg-team/recipe/lib/panel';
|
|
6
|
+
import { panelTabRows } from '@terrafirmagreg-team/recipe/lib/browser/panel';
|
|
7
7
|
import type { Lang } from '@terrafirmagreg-team/translate/types/locale';
|
|
8
8
|
import type { RecipeCompactIndex } from '@terrafirmagreg-team/recipe/types';
|
|
9
9
|
|
package/src/hooks/use-session.ts
CHANGED
|
@@ -7,13 +7,13 @@ import { useRecipeQuery } from '@terrafirmagreg-team/recipe/hooks/use-query';
|
|
|
7
7
|
import { useAsyncValue } from '@terrafirmagreg-team/ui/hooks/use-async-value';
|
|
8
8
|
import { useResolvedLang } from '@terrafirmagreg-team/translate/hooks/use-resolved-lang';
|
|
9
9
|
import { clientDumpLang } from '@terrafirmagreg-team/dump/lib/dump/client/dump';
|
|
10
|
-
import { useRecipeIndexNames } from '@terrafirmagreg-team/recipe/lib/index
|
|
10
|
+
import { useRecipeIndexNames } from '@terrafirmagreg-team/recipe/lib/client-index/store';
|
|
11
11
|
import {
|
|
12
12
|
RECIPE_ALL_TYPE,
|
|
13
13
|
recipeHref,
|
|
14
14
|
recipePlaceOpts,
|
|
15
15
|
} from '@terrafirmagreg-team/recipe/lib/links';
|
|
16
|
-
import { recipeUsedItems } from '@terrafirmagreg-team/recipe/lib/used-items';
|
|
16
|
+
import { recipeUsedItems } from '@terrafirmagreg-team/recipe/lib/browser/used-items';
|
|
17
17
|
import { replaceUrlState } from '@terrafirmagreg-team/ui/lib/utils/history';
|
|
18
18
|
import type {
|
|
19
19
|
RecipeHrefOpts,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useEffect, useMemo } from 'react';
|
|
4
|
-
import { groupByCategory } from '@terrafirmagreg-team/recipe/lib/group';
|
|
4
|
+
import { groupByCategory } from '@terrafirmagreg-team/recipe/lib/browser/group';
|
|
5
5
|
import { TAG_RECIPE_TYPE } from '@terrafirmagreg-team/recipe/lib/client-index';
|
|
6
6
|
import { RECIPE_ALL_TYPE, recipeHref } from '@terrafirmagreg-team/recipe/lib/links';
|
|
7
7
|
import { useResolvedLang } from '@terrafirmagreg-team/translate/hooks/use-resolved-lang';
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
resolveRecipeRows,
|
|
11
11
|
} from '@terrafirmagreg-team/recipe/lib/client-index';
|
|
12
12
|
import { stackIdFromRef } from '@terrafirmagreg-team/dump/lib/dump/contract/ref';
|
|
13
|
-
import { loadFluidIoIndex } from '@terrafirmagreg-team/recipe/lib/fluid-outputs';
|
|
13
|
+
import { loadFluidIoIndex } from '@terrafirmagreg-team/recipe/lib/browser/fluid-outputs';
|
|
14
14
|
|
|
15
15
|
export { registryId, tagPseudoId } from '@terrafirmagreg-team/dump/lib/dump/paths';
|
|
16
16
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { registryId } from '@terrafirmagreg-team/recipe/lib/lookup';
|
|
1
|
+
import { registryId } from '@terrafirmagreg-team/recipe/lib/browser/lookup';
|
|
2
2
|
import type { RecipeCompactIndex, UsedItems } from '@terrafirmagreg-team/recipe/types';
|
|
3
3
|
|
|
4
4
|
export function recipeUsedItems(index: RecipeCompactIndex | null): UsedItems {
|
package/src/lib/calc/resolve.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { DatasetRef } from '@terrafirmagreg-team/sites/location';
|
|
|
2
2
|
import type { Recipe } from '@terrafirmagreg-team/recipe/lib/data/dto';
|
|
3
3
|
import { loadClientRecipe } from '@terrafirmagreg-team/recipe/lib/client/recipe';
|
|
4
4
|
import { resolveClientTag } from '@terrafirmagreg-team/dump/lib/dump/client/tags';
|
|
5
|
-
import { recipesForOutput } from '@terrafirmagreg-team/recipe/lib/lookup';
|
|
5
|
+
import { recipesForOutput } from '@terrafirmagreg-team/recipe/lib/browser/lookup';
|
|
6
6
|
import { recipeDivisor, toCalcRecipe } from './tree';
|
|
7
7
|
import type { RecipeCompactIndex, RecipeCompactRow } from '@terrafirmagreg-team/recipe/types';
|
|
8
8
|
import type {
|
package/src/lib/config.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { createConfigRegistry, uiConfig } from '@terrafirmagreg-team/ui/lib/conf
|
|
|
2
2
|
import { registerMdxComponents } from '@terrafirmagreg-team/mdx/components/mdx-components';
|
|
3
3
|
import { Recipe } from '@terrafirmagreg-team/recipe/components/mdx/recipe';
|
|
4
4
|
import '@terrafirmagreg-team/recipe/lib/preview';
|
|
5
|
+
import '@terrafirmagreg-team/recipe/lib/embed';
|
|
5
6
|
|
|
6
7
|
export type RecipeConfigInput = {
|
|
7
8
|
appName?: string;
|
package/src/lib/embed.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
} from '@terrafirmagreg-team/recipe/lib/links';
|
|
7
7
|
import { recipeTitle } from '@terrafirmagreg-team/recipe/lib/data/parse';
|
|
8
8
|
import type { Recipe } from '@terrafirmagreg-team/recipe/lib/data/dto';
|
|
9
|
+
import { registerSectionEmbed } from '@terrafirmagreg-team/kit/lib/embeds';
|
|
9
10
|
import type {
|
|
10
11
|
EmbedRecipe,
|
|
11
12
|
SectionEmbeds,
|
|
@@ -20,3 +21,5 @@ export const recipeSectionEmbed: NonNullable<SectionEmbeds['recipe']> = {
|
|
|
20
21
|
recipeTitle(recipe as unknown as Recipe, langMap),
|
|
21
22
|
Card: RecipeEmbedCard,
|
|
22
23
|
};
|
|
24
|
+
|
|
25
|
+
registerSectionEmbed('recipe', recipeSectionEmbed);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|