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 +1 -1
- package/src/api/client/index.ts +2 -0
- package/src/api/index.ts +3 -0
- package/src/api/types/index.ts +2 -0
- package/src/index.ts +3 -6
- package/src/libs/index.ts +4 -0
- package/src/libs/parser/index.ts +1 -0
- package/src/next/editor/Editor.tsx +7 -0
- package/src/next/editor/index.ts +1 -0
- package/src/next/hooks.ts +5 -5
- package/src/next/index.ts +3 -0
- package/src/tanstack/editor/Editor.tsx +7 -0
- package/src/tanstack/editor/index.ts +1 -0
- package/src/tanstack/hooks.ts +2 -2
- package/src/tanstack/index.ts +3 -0
- package/src/tanstack/seo/index.ts +4 -0
- package/src/index.css +0 -1
- package/src/next/editor/Preview.tsx +0 -4
- package/src/tanstack/editor/Preview.tsx +0 -4
package/package.json
CHANGED
package/src/api/index.ts
ADDED
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 "./
|
|
2
|
+
export * from "./editor";
|
|
3
|
+
export * from "./libs";
|
|
7
4
|
export * from "./next";
|
|
8
|
-
|
|
5
|
+
export * from "./tanstack";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './parseScripts';
|
|
@@ -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
|
|
6
|
-
import { useSearchParams
|
|
5
|
+
import { usePathname } from "next/navigation";
|
|
6
|
+
import { useSearchParams } from "next/navigation";
|
|
7
7
|
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
|
|
8
|
+
export const usePathnameNext: PathnameExtractorHook = () => usePathname();
|
|
9
|
+
export const useSearchParamsNext: SearchParamsExtractorHook = () =>
|
|
10
|
+
useSearchParams();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Editor";
|
package/src/tanstack/hooks.ts
CHANGED
|
@@ -4,12 +4,12 @@ import type {
|
|
|
4
4
|
SearchParamsExtractorHook,
|
|
5
5
|
} from "src/types";
|
|
6
6
|
|
|
7
|
-
export const
|
|
7
|
+
export const usePathnameTanstack: PathnameExtractorHook = () =>
|
|
8
8
|
useLocation({
|
|
9
9
|
select: (location) => location.pathname,
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const useSearchParamsTanstack: SearchParamsExtractorHook = () => {
|
|
13
13
|
const search = useLocation({
|
|
14
14
|
select: (location) => location.search,
|
|
15
15
|
});
|
package/src/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'tailwindcss';
|