@akanjs/ui 0.9.1 → 0.9.3

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/Load/Page.d.ts CHANGED
@@ -6,5 +6,5 @@ export interface PageProps<Return> {
6
6
  loading?: () => ReactNode;
7
7
  noCache?: boolean;
8
8
  }
9
- declare const Page: <Return>({ of, loader, render, loading, noCache, header, pageContent, }: import("./PageCSR").PageProps<Return>) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<import("react").AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
9
+ declare const Page: <Return>(props: PageProps<Return>) => ReactNode;
10
10
  export default Page;
package/Load/PageCSR.d.ts CHANGED
@@ -1,11 +1,3 @@
1
1
  import { ReactNode } from "react";
2
- export interface PageProps<Return> {
3
- of: (props: any) => ReactNode | null;
4
- loader: () => Promise<Return>;
5
- render: (data: Return) => ReactNode;
6
- noCache?: boolean;
7
- header?: any;
8
- pageContent?: boolean;
9
- loading?: () => ReactNode;
10
- }
11
- export declare const PageCSR: <Return>({ of, loader, render, loading, noCache, header, pageContent, }: PageProps<Return>) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<import("react").AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
2
+ import type { PageProps } from "./Page";
3
+ export declare const PageCSR: <Return>({ of, loader, render, loading, noCache }: PageProps<Return>) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<import("react").AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
package/Load/index.d.ts CHANGED
@@ -4,5 +4,5 @@ export declare const Load: {
4
4
  Pagination: typeof import("./Pagination").default;
5
5
  Units: typeof import("./Units").default;
6
6
  View: typeof import("./View").default;
7
- Page: <Return>({ of, loader, render, loading, noCache, header, pageContent, }: import("./PageCSR").PageProps<Return>) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<import("react").AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
7
+ Page: <Return>(props: import("./Page").PageProps<Return>) => import("react").ReactNode;
8
8
  };
@@ -30,15 +30,7 @@ const getFetchedData = (target) => {
30
30
  const data = Reflect.getMetadata("fetchedData", target);
31
31
  return data ?? null;
32
32
  };
33
- const PageCSR = ({
34
- of,
35
- loader,
36
- render,
37
- loading,
38
- noCache = false,
39
- header,
40
- pageContent = true
41
- }) => {
33
+ const PageCSR = ({ of, loader, render, loading, noCache = false }) => {
42
34
  const fetchData = (0, import_react.useMemo)(() => {
43
35
  const cachedData = getFetchedData(of);
44
36
  if (!noCache && cachedData)
@@ -8,15 +8,7 @@ const getFetchedData = (target) => {
8
8
  const data = Reflect.getMetadata("fetchedData", target);
9
9
  return data ?? null;
10
10
  };
11
- const PageCSR = ({
12
- of,
13
- loader,
14
- render,
15
- loading,
16
- noCache = false,
17
- header,
18
- pageContent = true
19
- }) => {
11
+ const PageCSR = ({ of, loader, render, loading, noCache = false }) => {
20
12
  const fetchData = useMemo(() => {
21
13
  const cachedData = getFetchedData(of);
22
14
  if (!noCache && cachedData)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/ui",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"