@alpaca-headless/alpaca-headless-nextjs 1.0.2687 → 1.0.2688

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.
@@ -62,6 +62,7 @@ const fetchRouteData = (0, react_1.cache)((path, host, mode, itemId, language) =
62
62
  pageEditing: true,
63
63
  pageState: "",
64
64
  };
65
+ context.fields = data.page.fields;
65
66
  return Object.assign(Object.assign({}, data.page), { type: "page" });
66
67
  }));
67
68
  function loadRouteData(params, searchParams, host) {
@@ -59,6 +59,7 @@ const fetchRouteData = cache((path, host, mode, itemId, language) => __awaiter(v
59
59
  pageEditing: true,
60
60
  pageState: "",
61
61
  };
62
+ context.fields = data.page.fields;
62
63
  return Object.assign(Object.assign({}, data.page), { type: "page" });
63
64
  }));
64
65
  export function loadRouteData(params, searchParams, host) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpaca-headless/alpaca-headless-nextjs",
3
- "version": "1.0.2687",
3
+ "version": "1.0.2688",
4
4
  "description": "Alpaca Headless NextJs Integration",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -9,6 +9,7 @@ type AlpacaContext = {
9
9
  name: string;
10
10
  };
11
11
  };
12
+ fields: unknown;
12
13
  };
13
14
  export declare function useAlpacaContext(): AlpacaContext;
14
15
  export {};