rankrunners-cms 0.0.11 → 0.0.13

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,7 +1,7 @@
1
1
  {
2
2
  "name": "rankrunners-cms",
3
3
  "type": "module",
4
- "version": "0.0.11",
4
+ "version": "0.0.13",
5
5
  "peerDependencies": {
6
6
  "@puckeditor/core": "^0.21.0",
7
7
  "next": "^16.1.2",
@@ -2,6 +2,6 @@ export const CMS_BASE_URL = "https://cms.rankrunners.net/api";
2
2
  export const SITE_ID =
3
3
  process.env.NEXT_PUBLIC_SITE_ID ??
4
4
  process.env.NEXT_SITE_ID ??
5
- import.meta.env?.VITE_PUBLIC_SITE_ID ??
6
- import.meta.env?.VITE_SITE_ID ??
5
+ (import.meta as any).env?.VITE_PUBLIC_SITE_ID ??
6
+ (import.meta as any).env?.VITE_SITE_ID ??
7
7
  "unknown";
@@ -4,13 +4,13 @@ import type { CMSUserData } from "../../editor/types";
4
4
  import { EditorNext } from "./Editor";
5
5
  import { PageRendererContent } from "../../editor/render";
6
6
 
7
- export type PageRendererInitializerProps = {
7
+ export type PageRendererNextInitializerProps = {
8
8
  config: Config;
9
9
  allPageData: Record<string, CMSUserData<any>>;
10
10
  };
11
11
 
12
- export const PageRenderer =
13
- ({ config, allPageData }: PageRendererInitializerProps) =>
12
+ export const PageRendererNext =
13
+ ({ config, allPageData }: PageRendererNextInitializerProps) =>
14
14
  () => {
15
15
  const pathname = usePathnameNext();
16
16
  const searchParams = useSearchParamsNext();