rankrunners-cms 0.0.7 → 0.0.8

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.8",
5
5
  "peerDependencies": {
6
6
  "@puckeditor/core": "^0.21.0",
7
7
  "next": "^16.1.2",
@@ -0,0 +1,2 @@
1
+ export * from "./public";
2
+ export * from "./sitemap";
@@ -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";
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
@@ -2,9 +2,9 @@ import type {
2
2
  PathnameExtractorHook,
3
3
  SearchParamsExtractorHook,
4
4
  } from "src/types";
5
- import { usePathname as usePathnameNext } from "next/navigation";
6
- import { useSearchParams as useSearchParamsNext } from "next/navigation";
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";
@@ -4,12 +4,12 @@ import type {
4
4
  SearchParamsExtractorHook,
5
5
  } from "src/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 });