namirasoft-site-react 1.4.502 → 1.4.503

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.
@@ -1,5 +1,5 @@
1
1
  import { IImageProps, ILinkProps } from "../main";
2
- export interface NSListProductCartProps {
2
+ export interface NSListProductCardProps {
3
3
  title: string;
4
4
  description?: string;
5
5
  link: ILinkProps;
@@ -8,8 +8,8 @@ export interface NSListProductCartProps {
8
8
  export interface NSListProductProps {
9
9
  scope: string;
10
10
  name: string;
11
- getChildrenBefore?: () => NSListProductCartProps[];
12
- getChildrenAfter?: () => NSListProductCartProps[];
11
+ getChildrenBefore?: () => NSListProductCardProps[];
12
+ getChildrenAfter?: () => NSListProductCardProps[];
13
13
  search?: string;
14
14
  }
15
15
  export declare function NSListProduct(props: NSListProductProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.502",
11
+ "version": "1.4.503",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -5,7 +5,7 @@ import { IImageProps, ILinkProps } from "../main";
5
5
  import { NSCard } from "./NSCard";
6
6
  import { NSSection } from "./NSSection";
7
7
 
8
- export interface NSListProductCartProps
8
+ export interface NSListProductCardProps
9
9
  {
10
10
  title: string;
11
11
  description?: string;
@@ -16,8 +16,8 @@ export interface NSListProductProps
16
16
  {
17
17
  scope: string;
18
18
  name: string;
19
- getChildrenBefore?: () => NSListProductCartProps[];
20
- getChildrenAfter?: () => NSListProductCartProps[];
19
+ getChildrenBefore?: () => NSListProductCardProps[];
20
+ getChildrenAfter?: () => NSListProductCardProps[];
21
21
  search?: string;
22
22
  }
23
23
 
@@ -40,8 +40,8 @@ export function NSListProduct(props: NSListProductProps)
40
40
  }).catch(() => { });
41
41
  // eslint-disable-next-line
42
42
  }, []);
43
- let items_before: NSListProductCartProps[] = props.getChildrenBefore?.() ?? [];
44
- let items_after: NSListProductCartProps[] = props.getChildrenAfter?.() ?? [];
43
+ let items_before: NSListProductCardProps[] = props.getChildrenBefore?.() ?? [];
44
+ let items_after: NSListProductCardProps[] = props.getChildrenAfter?.() ?? [];
45
45
 
46
46
  return (
47
47
  <NSSection style={{ gap: "16px" }}>