rankrunners-cms 0.0.8 → 0.0.10

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.8",
4
+ "version": "0.0.10",
5
5
  "peerDependencies": {
6
6
  "@puckeditor/core": "^0.21.0",
7
7
  "next": "^16.1.2",
@@ -25,7 +25,7 @@
25
25
  "optional": false
26
26
  },
27
27
  "react": {
28
- "optional": true
28
+ "optional": false
29
29
  }
30
30
  },
31
31
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import { fetchWithCache } from "src/libs/cache";
1
+ import { fetchWithCache } from "../../libs/cache";
2
2
  import { CMS_BASE_URL, SITE_ID } from "../constants";
3
3
 
4
4
  export const downloadSitemap = async (sitemap: string): Promise<string> => {
@@ -14,7 +14,7 @@ import { CMS_BASE_URL } from "../../api/constants";
14
14
  import type {
15
15
  PathnameExtractorHook,
16
16
  SearchParamsExtractorHook,
17
- } from "src/types";
17
+ } from "../../types";
18
18
 
19
19
  // @ts-ignore
20
20
  import "@puckeditor/core/no-external.css";
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { BaseEditor } from "../../editor/preview/Preview";
2
4
  import { usePathnameNext, useSearchParamsNext } from "../hooks";
3
5
 
package/src/next/hooks.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type {
2
2
  PathnameExtractorHook,
3
3
  SearchParamsExtractorHook,
4
- } from "src/types";
4
+ } from "../types";
5
5
  import { usePathname } from "next/navigation";
6
6
  import { useSearchParams } from "next/navigation";
7
7
 
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { BaseEditor } from "../../editor/preview/Preview";
2
4
  import { usePathnameTanstack, useSearchParamsTanstack } from "../hooks";
3
5
 
@@ -2,7 +2,7 @@ import { useLocation } from "@tanstack/react-router";
2
2
  import type {
3
3
  PathnameExtractorHook,
4
4
  SearchParamsExtractorHook,
5
- } from "src/types";
5
+ } from "../types";
6
6
 
7
7
  export const usePathnameTanstack: PathnameExtractorHook = () =>
8
8
  useLocation({