@akanjs/devkit 2.2.3-rc.0 → 2.2.3-rc.1

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.
@@ -74,7 +74,9 @@ describe("resolveSsrPageEntries", () => {
74
74
  expect(generatedSource).toContain("<System.Provider");
75
75
  expect(generatedSource).toContain("theme={userLayout.theme ?? inheritedLayout.theme}");
76
76
  expect(generatedSource).toContain('import { allDictionary } from "../dict/useDict.ts";');
77
- expect(generatedSource).toContain("dictionary={allDictionary[params.lang]}");
77
+ expect(generatedSource).toContain(
78
+ 'allDictionary={process.env.AKAN_PUBLIC_RENDER_ENV === "ssr" ? allDictionary : undefined}',
79
+ );
78
80
  expect(generatedSource).not.toContain("getAllDictionary");
79
81
  expect(generatedSource).not.toContain("// export default function GeneratedLayout");
80
82
 
@@ -196,7 +196,7 @@ export default function GeneratedLayout({ children, params, searchParams }: Layo
196
196
  gaTrackingId={userLayout.gaTrackingId ?? inheritedLayout.gaTrackingId}
197
197
  layoutStyle={userLayout.layoutStyle ?? inheritedLayout.layoutStyle}
198
198
  reconnect={userLayout.reconnect ?? inheritedLayout.reconnect ?? false}
199
- dictionary={allDictionary[params.lang]}
199
+ allDictionary={process.env.AKAN_PUBLIC_RENDER_ENV === "ssr" ? allDictionary : undefined}
200
200
  >
201
201
  <UserLayout params={params} searchParams={searchParams}>{children}</UserLayout>
202
202
  </System.Provider>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "2.2.3-rc.0",
3
+ "version": "2.2.3-rc.1",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -32,7 +32,7 @@
32
32
  "@langchain/openai": "^1.4.6",
33
33
  "@tailwindcss/node": "^4.3.0",
34
34
  "@trapezedev/project": "^7.1.4",
35
- "akanjs": "2.2.3-rc.0",
35
+ "akanjs": "2.2.3-rc.1",
36
36
  "chalk": "^5.6.2",
37
37
  "commander": "^14.0.3",
38
38
  "daisyui": "^5.5.20",