rankrunners-cms 0.0.7 → 0.0.9

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.7",
4
+ "version": "0.0.9",
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": {
@@ -0,0 +1,2 @@
1
+ export * from "./public";
2
+ export * from "./sitemap";
@@ -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> => {
@@ -0,0 +1,3 @@
1
+ export * from "./constants";
2
+ export * from "./client/index";
3
+ export * from "./types/index";
@@ -0,0 +1,2 @@
1
+ export * from "./common";
2
+ export * from "./public";
@@ -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";
package/src/index.ts CHANGED
@@ -1,8 +1,5 @@
1
- import "./index.css";
2
- export * from "./CaptchaBadge";
3
- export * from "./editor";
4
- export * from "./next/sitemap";
5
1
  export * from "./api";
6
- export * from "./tanstack";
2
+ export * from "./editor";
3
+ export * from "./libs";
7
4
  export * from "./next";
8
- //export * from './captcha';
5
+ export * from "./tanstack";
@@ -0,0 +1,4 @@
1
+ export * from './cache';
2
+ export * from './redirect';
3
+ export * from './validator';
4
+ export * from './parser/index';
@@ -0,0 +1 @@
1
+ export * from './parseScripts';
@@ -0,0 +1,7 @@
1
+ import { BaseEditor } from "../../editor/preview/Preview";
2
+ import { usePathnameNext, useSearchParamsNext } from "../hooks";
3
+
4
+ export const EditorNext = BaseEditor({
5
+ usePathname: usePathnameNext,
6
+ useSearchParams: useSearchParamsNext,
7
+ });
@@ -0,0 +1 @@
1
+ export * from "./Editor";
package/src/next/hooks.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type {
2
2
  PathnameExtractorHook,
3
3
  SearchParamsExtractorHook,
4
- } from "src/types";
5
- import { usePathname as usePathnameNext } from "next/navigation";
6
- import { useSearchParams as useSearchParamsNext } from "next/navigation";
4
+ } from "../types";
5
+ import { usePathname } from "next/navigation";
6
+ import { useSearchParams } from "next/navigation";
7
7
 
8
- export const usePathname: PathnameExtractorHook = () => usePathnameNext();
9
- export const useSearchParams: SearchParamsExtractorHook = () =>
10
- useSearchParamsNext();
8
+ export const usePathnameNext: PathnameExtractorHook = () => usePathname();
9
+ export const useSearchParamsNext: SearchParamsExtractorHook = () =>
10
+ useSearchParams();
@@ -0,0 +1,3 @@
1
+ export * from "./hooks";
2
+ export * from "./editor/index";
3
+ export * from "./sitemap/index";
@@ -0,0 +1,7 @@
1
+ import { BaseEditor } from "../../editor/preview/Preview";
2
+ import { usePathnameTanstack, useSearchParamsTanstack } from "../hooks";
3
+
4
+ export const EditorTanstack = BaseEditor({
5
+ usePathname: usePathnameTanstack,
6
+ useSearchParams: useSearchParamsTanstack,
7
+ });
@@ -0,0 +1 @@
1
+ export * from "./Editor";
@@ -2,14 +2,14 @@ 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
- export const usePathname: PathnameExtractorHook = () =>
7
+ export const usePathnameTanstack: PathnameExtractorHook = () =>
8
8
  useLocation({
9
9
  select: (location) => location.pathname,
10
10
  });
11
11
 
12
- export const useSearchParams: SearchParamsExtractorHook = () => {
12
+ export const useSearchParamsTanstack: SearchParamsExtractorHook = () => {
13
13
  const search = useLocation({
14
14
  select: (location) => location.search,
15
15
  });
@@ -0,0 +1,3 @@
1
+ export * from "./seo/index";
2
+ export * from "./editor/index";
3
+ export * from "./hooks";
@@ -0,0 +1,4 @@
1
+ export * from "./extractors";
2
+ export * from "./head";
3
+ export * from "./scripts";
4
+ export * from "./types";
package/src/index.css DELETED
@@ -1 +0,0 @@
1
- @import 'tailwindcss';
@@ -1,4 +0,0 @@
1
- import { BaseEditor } from "../../editor/preview/Preview";
2
- import { usePathname, useSearchParams } from "../hooks";
3
-
4
- export const Editor = BaseEditor({ usePathname, useSearchParams });
@@ -1,4 +0,0 @@
1
- import { BaseEditor } from "../../editor/preview/Preview";
2
- import { usePathname, useSearchParams } from "../hooks";
3
-
4
- export const Editor = BaseEditor({ usePathname, useSearchParams });