droplinked-editor-configs 1.8.3 → 1.8.5
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/dist/apis/blogs/interfaces.d.ts +0 -38
- package/dist/apis/blogs/services.d.ts +1 -6
- package/dist/apis/product/interface.d.ts +12 -100
- package/dist/apis/product/services.d.ts +1 -6
- package/dist/apis/shop/interface.d.ts +0 -3
- package/dist/apis/shop/service.d.ts +1 -2
- package/dist/components/header/Header.d.ts +2 -3
- package/dist/components/header/HeaderIcons.d.ts +3 -2
- package/dist/components/header/Sidebar.d.ts +3 -3
- package/dist/droplinked-editor.es.js +8746 -8748
- package/dist/droplinked-editor.umd.js +70 -70
- package/dist/lib/models/user.d.ts +1 -1
- package/dist/lib/stores/app/appStore.d.ts +2 -2
- package/dist/lib/stores/app/interfaces.d.ts +138 -2
- package/dist/types/renderersProps.d.ts +2 -2
- package/package.json +2 -2
- package/src/PageHeader.tsx +3 -4
- package/src/apis/blogs/interfaces.ts +0 -39
- package/src/apis/blogs/services.ts +2 -5
- package/src/apis/product/interface.ts +14 -291
- package/src/apis/product/services.ts +2 -33
- package/src/apis/shop/interface.ts +0 -4
- package/src/apis/shop/service.ts +3 -7
- package/src/components/header/Header.tsx +4 -6
- package/src/components/header/HeaderIcons.tsx +13 -5
- package/src/components/header/Sidebar.tsx +20 -8
- package/src/components/productGrid/components/ProductGrid/GridViewProductCard.tsx +2 -2
- package/src/components/productGrid/components/ProductGrid/ListViewProductCard.tsx +4 -4
- package/src/components/productGrid/components/ProductGrid/ProductGrid.tsx +2 -2
- package/src/components/productGrid/components/ProductGrid/Slider/ProductImageSlider.tsx +4 -4
- package/src/configured-components/layout/headerConfig.tsx +2 -2
- package/src/lib/models/user.ts +1 -1
- package/src/lib/stores/app/appStore.ts +2 -2
- package/src/lib/stores/app/interfaces.ts +149 -2
- package/src/types/renderersProps.ts +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/lib/models/product.d.ts +0 -97
- package/src/lib/models/product.ts +0 -104
|
@@ -9,44 +9,6 @@ export interface BlogPost {
|
|
|
9
9
|
tags: string[];
|
|
10
10
|
slug: string;
|
|
11
11
|
}
|
|
12
|
-
export interface IBlogContent {
|
|
13
|
-
_id: string;
|
|
14
|
-
shopID: string;
|
|
15
|
-
author: string;
|
|
16
|
-
content: string;
|
|
17
|
-
title: string;
|
|
18
|
-
writer: string;
|
|
19
|
-
isVisible: boolean;
|
|
20
|
-
category: string[];
|
|
21
|
-
tags: string[];
|
|
22
|
-
commentsCount: number;
|
|
23
|
-
image: string;
|
|
24
|
-
likes: number;
|
|
25
|
-
readTime: number;
|
|
26
|
-
version: number;
|
|
27
|
-
isFeatured: boolean;
|
|
28
|
-
seoData: {
|
|
29
|
-
metaDescription: string;
|
|
30
|
-
keywords: string[];
|
|
31
|
-
slug: string;
|
|
32
|
-
canonicalUrl: string;
|
|
33
|
-
ogTitle: string;
|
|
34
|
-
ogDescription: string;
|
|
35
|
-
ogImage: string;
|
|
36
|
-
structuredData: string;
|
|
37
|
-
_id: string;
|
|
38
|
-
};
|
|
39
|
-
mediaData: {
|
|
40
|
-
url: string;
|
|
41
|
-
title: string;
|
|
42
|
-
positionIndex: number;
|
|
43
|
-
_id: string;
|
|
44
|
-
}[];
|
|
45
|
-
publishedDate: string;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
updatedAt: Date;
|
|
48
|
-
__v: number;
|
|
49
|
-
}
|
|
50
12
|
export interface Blog {
|
|
51
13
|
featured: BlogPost[];
|
|
52
14
|
recent: BlogPost[];
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { Blog
|
|
1
|
+
import { Blog } from './interfaces';
|
|
2
2
|
|
|
3
3
|
export declare const getShopBlogsService: (shopName: string) => Promise<{
|
|
4
4
|
data: Blog;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const getBlogByIdService: ({ slug }: {
|
|
7
|
-
slug: string;
|
|
8
|
-
}) => Promise<{
|
|
9
|
-
data: IBlogContent;
|
|
10
|
-
}>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IRuleSetID, IMedia as Media } from 'lib/models/product';
|
|
2
1
|
import { ProductQuery } from 'lib/stores/productQueryStore/productQueryStore';
|
|
3
2
|
|
|
4
3
|
export interface IGetProductsRequest extends ProductQuery {
|
|
@@ -7,107 +6,20 @@ export interface IGetProductsRequest extends ProductQuery {
|
|
|
7
6
|
limit: number;
|
|
8
7
|
}
|
|
9
8
|
export interface IHomePageProduct {
|
|
10
|
-
|
|
9
|
+
id: string;
|
|
11
10
|
title: string;
|
|
12
11
|
slug: string;
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
type: string;
|
|
13
|
+
status: string;
|
|
14
|
+
images: {
|
|
15
|
+
original: string;
|
|
16
|
+
thumbnail: string;
|
|
17
|
+
alt: string;
|
|
15
18
|
}[];
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
isPurchasable: boolean;
|
|
20
|
+
lowestPrice: number;
|
|
21
|
+
collectionName: string;
|
|
19
22
|
discountRuleset: boolean;
|
|
23
|
+
gatedRuleset: boolean;
|
|
24
|
+
nftRecording: any;
|
|
20
25
|
}
|
|
21
|
-
export interface IgetProductPublicService {
|
|
22
|
-
shopname: string;
|
|
23
|
-
productID: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IGetProductBySlugService {
|
|
26
|
-
shopname: string;
|
|
27
|
-
slug: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IGetProductByLinkId {
|
|
30
|
-
linkId: string;
|
|
31
|
-
}
|
|
32
|
-
interface IMedia {
|
|
33
|
-
isMain: boolean;
|
|
34
|
-
thumbnail: string;
|
|
35
|
-
url: string;
|
|
36
|
-
_id: string;
|
|
37
|
-
}
|
|
38
|
-
interface IProductCollection {
|
|
39
|
-
title: string;
|
|
40
|
-
ruleSetID?: IRuleSetID;
|
|
41
|
-
}
|
|
42
|
-
interface IRuleSet {
|
|
43
|
-
gated?: boolean;
|
|
44
|
-
redeemedNFTs?: any;
|
|
45
|
-
rules?: any;
|
|
46
|
-
}
|
|
47
|
-
export interface IOption {
|
|
48
|
-
variantName: string;
|
|
49
|
-
value: string;
|
|
50
|
-
caption: string;
|
|
51
|
-
}
|
|
52
|
-
export interface ISku {
|
|
53
|
-
_id: string;
|
|
54
|
-
price: number;
|
|
55
|
-
quantity: number;
|
|
56
|
-
image?: string;
|
|
57
|
-
weight: number;
|
|
58
|
-
dimensions: {
|
|
59
|
-
height: number;
|
|
60
|
-
length: number;
|
|
61
|
-
width: number;
|
|
62
|
-
};
|
|
63
|
-
options?: IOption[];
|
|
64
|
-
}
|
|
65
|
-
export interface IProduct {
|
|
66
|
-
description: string;
|
|
67
|
-
media: IMedia[];
|
|
68
|
-
productCollectionID: IProductCollection;
|
|
69
|
-
ruleSet?: IRuleSet;
|
|
70
|
-
slug: string | null;
|
|
71
|
-
title: string;
|
|
72
|
-
_id: string | null;
|
|
73
|
-
ownerID: string | null;
|
|
74
|
-
product_type: "NORMAL" | "PRINT_ON_DEMAND" | "DIGITAL";
|
|
75
|
-
skuIDs: ISku[];
|
|
76
|
-
launchDate?: string;
|
|
77
|
-
purchaseAvailable: boolean;
|
|
78
|
-
pod_blank_product_id: string;
|
|
79
|
-
nftData?: INftData;
|
|
80
|
-
m2m_positions: IM2MPosition[];
|
|
81
|
-
m2m_services: IM2MService[];
|
|
82
|
-
shippingType: string;
|
|
83
|
-
}
|
|
84
|
-
export interface IM2MPosition {
|
|
85
|
-
placement: string;
|
|
86
|
-
variantIDs: number[];
|
|
87
|
-
url: string;
|
|
88
|
-
}
|
|
89
|
-
export interface IM2MService {
|
|
90
|
-
_id: string;
|
|
91
|
-
name: string;
|
|
92
|
-
chain: string;
|
|
93
|
-
}
|
|
94
|
-
export interface INftData {
|
|
95
|
-
deployHash: string;
|
|
96
|
-
transactionUrl: string;
|
|
97
|
-
networkName: string;
|
|
98
|
-
}
|
|
99
|
-
export interface IShippingAvailbilityData {
|
|
100
|
-
statusCode: number;
|
|
101
|
-
message: string | null;
|
|
102
|
-
data: string[];
|
|
103
|
-
}
|
|
104
|
-
export declare const convertProductDataToModel: (data: any) => IProduct;
|
|
105
|
-
export interface ISemanticSearchParams {
|
|
106
|
-
query: string;
|
|
107
|
-
limit?: number;
|
|
108
|
-
}
|
|
109
|
-
export interface NftImagesData {
|
|
110
|
-
nfts: string[];
|
|
111
|
-
domains: string[];
|
|
112
|
-
}
|
|
113
|
-
export {};
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IGetProductsRequest } from './interface';
|
|
2
2
|
|
|
3
3
|
export declare const getProductsService: (params: IGetProductsRequest) => Promise<any>;
|
|
4
|
-
export declare const getProductPublicService: ({ productID, shopname }: IgetProductPublicService) => Promise<IProduct>;
|
|
5
|
-
export declare const getProductBySlugService: ({ slug, shopname }: IGetProductBySlugService) => Promise<import('axios').AxiosResponse<any, any>>;
|
|
6
|
-
export declare const getProductByLinkId: ({ linkId }: IGetProductByLinkId) => Promise<import('axios').AxiosResponse<any, any>>;
|
|
7
|
-
export declare const getShippingAvailability: (productId: string) => Promise<IShippingAvailbilityData>;
|
|
8
|
-
export declare const semanticSearchService: ({ query, limit }: ISemanticSearchParams) => Promise<import('axios').AxiosResponse<any, any>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IgetShopService,
|
|
1
|
+
import { IgetShopService, ProductFiltersResponse } from './interface';
|
|
2
2
|
|
|
3
|
-
export declare const shopDomainService: ({ domain }: IshopDomainService) => Promise<import('axios').AxiosResponse<any, any>>;
|
|
4
3
|
export declare const getShopService: ({ shopName }: IgetShopService) => Promise<import('axios').AxiosResponse<any, any>>;
|
|
5
4
|
export declare const getAvailableProductFilters: (shopName: string) => Promise<{
|
|
6
5
|
data: ProductFiltersResponse;
|
|
@@ -6,10 +6,9 @@ interface Props {
|
|
|
6
6
|
};
|
|
7
7
|
}[];
|
|
8
8
|
onCartClick?: () => void;
|
|
9
|
-
|
|
9
|
+
ProfileDropdownWrapper?: React.ElementType;
|
|
10
10
|
cartItemCount?: number;
|
|
11
|
-
isLoggedIn?: boolean;
|
|
12
11
|
isRendering?: boolean;
|
|
13
12
|
}
|
|
14
|
-
declare const Header: ({ linkManagement, onCartClick,
|
|
13
|
+
declare const Header: ({ linkManagement, onCartClick, ProfileDropdownWrapper, cartItemCount, isRendering }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export default Header;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
interface Props {
|
|
2
3
|
iconColor: string;
|
|
3
4
|
onCartClick?: () => void;
|
|
4
|
-
onProfileClick?: () => void;
|
|
5
5
|
cartItemCount?: number;
|
|
6
|
+
ProfileDropdownWrapper?: React.ElementType;
|
|
6
7
|
}
|
|
7
|
-
declare function HeaderIcons({ iconColor, onCartClick,
|
|
8
|
+
declare function HeaderIcons({ iconColor, onCartClick, ProfileDropdownWrapper, cartItemCount }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default HeaderIcons;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
interface Props {
|
|
2
3
|
iconColor: string;
|
|
3
4
|
linkManagement?: {
|
|
@@ -6,8 +7,7 @@ interface Props {
|
|
|
6
7
|
url: string;
|
|
7
8
|
};
|
|
8
9
|
}[];
|
|
9
|
-
|
|
10
|
-
isLoggedIn?: boolean;
|
|
10
|
+
ProfileDropdownWrapper?: React.ElementType;
|
|
11
11
|
}
|
|
12
|
-
declare function Sidebar({ iconColor, linkManagement,
|
|
12
|
+
declare function Sidebar({ iconColor, linkManagement, ProfileDropdownWrapper }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default Sidebar;
|