@terrafirmagreg-team/recipe 1.2.15 → 1.2.17

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.15",
3
+ "version": "1.2.17",
4
4
  "type": "module",
5
5
  "description": "Recipe viewer and calculator",
6
6
  "license": "LGPL-3.0-only",
@@ -23,29 +23,29 @@
23
23
  "./styles.css": "./styles.css"
24
24
  },
25
25
  "dependencies": {
26
- "@terrafirmagreg-team/data": "^1.2.4",
26
+ "@terrafirmagreg-team/data": "^1.2.5",
27
27
  "@terrafirmagreg-team/dump": "^1.2.12",
28
28
  "@terrafirmagreg-team/game": "^1.2.6",
29
- "@terrafirmagreg-team/kit": "^1.2.16",
29
+ "@terrafirmagreg-team/kit": "^1.2.18",
30
30
  "@terrafirmagreg-team/mdx": "^1.2.8",
31
31
  "@terrafirmagreg-team/preview": "^1.2.4",
32
32
  "@terrafirmagreg-team/sites": "^1.2.3",
33
- "@terrafirmagreg-team/translate": "^1.2.8",
34
- "@terrafirmagreg-team/ui": "^1.2.11",
33
+ "@terrafirmagreg-team/translate": "^1.2.9",
34
+ "@terrafirmagreg-team/ui": "^1.2.12",
35
35
  "@types/pathfinding": "^0.1.0",
36
36
  "comlink": "^4.4.2",
37
37
  "fflate": "0.8.3",
38
- "fumadocs-core": "16.17.10",
39
- "lucide-react": "^1.63.0",
38
+ "lucide-react": "^1.70.0",
40
39
  "pathfinding": "0.4.18",
41
40
  "server-only": "^0.0.1"
42
41
  },
43
42
  "peerDependencies": {
43
+ "fumadocs-core": ">=16",
44
44
  "next": ">=15",
45
45
  "react": ">=19"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^26.6.5",
48
+ "@types/node": "^26.6.6",
49
49
  "@types/react": "^19.3.0",
50
50
  "@types/react-dom": "^19.3.0"
51
51
  },
@@ -6,6 +6,7 @@ import { useTranslations } from '@terrafirmagreg-team/translate/hooks/use-transl
6
6
  import { RecipeToolbar } from '@terrafirmagreg-team/recipe/components/views/browser/toolbar';
7
7
  import type { RecipeSession } from '@terrafirmagreg-team/recipe/types';
8
8
  import { CalcHelp } from './help';
9
+ import { useFeatureFlags } from '@terrafirmagreg-team/kit/hooks/use-features';
9
10
 
10
11
  export function CalcActions({
11
12
  session,
@@ -21,11 +22,13 @@ export function CalcActions({
21
22
  onClear: () => void;
22
23
  }) {
23
24
  const t = useTranslations();
25
+ const flags = useFeatureFlags();
24
26
  return (
25
27
  <>
26
28
  <RecipeToolbar session={session} />
27
29
  <IconButton
28
30
  overlay
31
+ disabled={flags?.share === false}
29
32
  label={shared ? t('Copied', { note: 'recipe.copied' }) : t('Share', { note: 'recipe.calc.share' })}
30
33
  onClick={onShare}
31
34
  >
@@ -78,7 +78,7 @@ export function CalcTrees({
78
78
  {t('Schemes', { note: 'recipe.calc.trees' })}
79
79
  </LeftSidebarFolderTrigger>
80
80
  <LeftSidebarFolderContent>
81
- <ul className="flex flex-col">
81
+ <ul className="flex max-h-60 flex-col overflow-y-auto">
82
82
  {tabs.map((tab) => (
83
83
  <TabRow
84
84
  key={tab.id}
@@ -1,6 +1,6 @@
1
1
  import type { CalculatorState } from '@terrafirmagreg-team/recipe/types/calc';
2
2
 
3
- const MAX_HISTORY = 20;
3
+ const MAX_HISTORY = 5;
4
4
 
5
5
  export type CalcTreeEntry = {
6
6
  id: string;