@rxdrag/website-lib-core 0.0.4 → 0.0.7

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.
Files changed (168) hide show
  1. package/index.ts +1 -0
  2. package/package.json +12 -13
  3. package/src/entify/Entify.ts +365 -0
  4. package/{dist/entify/index.d.ts → src/entify/index.ts} +4 -4
  5. package/src/entify/lib/createEntifyClient.ts +23 -0
  6. package/{dist/entify/lib/index.d.ts → src/entify/lib/index.ts} +29 -29
  7. package/src/entify/lib/langFields.ts +12 -0
  8. package/src/entify/lib/newAvatarQueryOptions.ts +5 -0
  9. package/src/entify/lib/newOgImageQueryOptions.ts +6 -0
  10. package/src/entify/lib/newPageMetaOptions.ts +20 -0
  11. package/src/entify/lib/newQueryPostOptions.ts +41 -0
  12. package/src/entify/lib/newQueryProductOptions.ts +90 -0
  13. package/src/entify/lib/newQueryProductsMediaOptions.ts +26 -0
  14. package/src/entify/lib/queryAllProducts.ts +27 -0
  15. package/src/entify/lib/queryEntityList.ts +44 -0
  16. package/src/entify/lib/queryFeaturedProducts.ts +47 -0
  17. package/src/entify/lib/queryLangs.ts +47 -0
  18. package/src/entify/lib/queryLatestPosts.ts +65 -0
  19. package/src/entify/lib/queryOneEntity.ts +67 -0
  20. package/src/entify/lib/queryOnePostById.ts +21 -0
  21. package/src/entify/lib/queryOnePostBySlug.ts +21 -0
  22. package/src/entify/lib/queryOnePostCategoryBySlug.ts +30 -0
  23. package/src/entify/lib/queryOneProductById.ts +20 -0
  24. package/src/entify/lib/queryOneProductBySlug.ts +21 -0
  25. package/src/entify/lib/queryOneProductCategoryBySlug.ts +30 -0
  26. package/src/entify/lib/queryOneTheme.ts +76 -0
  27. package/src/entify/lib/queryOneUser.ts +38 -0
  28. package/src/entify/lib/queryPostCategories.ts +48 -0
  29. package/src/entify/lib/queryPostSlugs.ts +32 -0
  30. package/src/entify/lib/queryPosts.ts +92 -0
  31. package/src/entify/lib/queryProductCategories.ts +44 -0
  32. package/src/entify/lib/queryProducts.ts +69 -0
  33. package/src/entify/lib/queryProductsInMenu.ts +31 -0
  34. package/src/entify/lib/queryUserIds.ts +24 -0
  35. package/src/entify/lib/queryUserPosts.ts +74 -0
  36. package/src/entify/lib/queryWebSiteSettings.ts +29 -0
  37. package/src/entify/lib/searchProducts.ts +70 -0
  38. package/src/entify/lib/sendEmail.ts +8 -0
  39. package/src/entify/lib/toQueryOptions.ts +20 -0
  40. package/src/entify/lib/upsertEntity.ts +9 -0
  41. package/src/entify/types/index.ts +2 -0
  42. package/src/entify/types/utils.ts +4 -0
  43. package/src/entify/types/variables.ts +7 -0
  44. package/src/entify/view-model/funcs.ts +271 -0
  45. package/src/entify/view-model/index.ts +2 -0
  46. package/src/entify/view-model/models.ts +143 -0
  47. package/{dist/index.d.ts → src/index.ts} +5 -5
  48. package/src/motion/consts.ts +598 -0
  49. package/{dist/motion/index.d.ts → src/motion/index.ts} +2 -2
  50. package/src/motion/types.ts +46 -0
  51. package/src/react/components/EnquiryForm/Input.tsx +52 -0
  52. package/src/react/components/EnquiryForm/Submit.tsx +30 -0
  53. package/src/react/components/EnquiryForm/Textarea.tsx +51 -0
  54. package/src/react/components/EnquiryForm/index.tsx +334 -0
  55. package/src/react/components/GoogleConsent/CookieItemPanel.tsx +81 -0
  56. package/src/react/components/GoogleConsent/CumtomizedModal.tsx +149 -0
  57. package/src/react/components/GoogleConsent/GoogleConsent.tsx +101 -0
  58. package/src/react/components/GoogleConsent/README.md +1 -0
  59. package/src/react/components/GoogleConsent/gtags.ts +68 -0
  60. package/src/react/components/GoogleConsent/index.ts +3 -0
  61. package/src/react/components/GoogleConsent/types.ts +18 -0
  62. package/src/react/components/GoogleConsent//345/217/202/350/200/203.md +4 -0
  63. package/src/react/components/Medias/index.tsx +347 -0
  64. package/src/react/components/ProductCard/ProductCard.tsx +23 -0
  65. package/src/react/components/ProductCard/ProductCardPreview.tsx +12 -0
  66. package/src/react/components/ProductCard/ProductCta/index.tsx +41 -0
  67. package/src/react/components/ProductCard/ProductCta/style.css +4 -0
  68. package/src/react/components/ProductCard/ProductDescription/index.tsx +13 -0
  69. package/src/react/components/ProductCard/ProductDescription/style.css +6 -0
  70. package/src/react/components/ProductCard/ProductMedia/index.tsx +34 -0
  71. package/src/react/components/ProductCard/ProductMedia/style.css +6 -0
  72. package/src/react/components/ProductCard/ProductTitle/index.tsx +7 -0
  73. package/src/react/components/ProductCard/ProductTitle/style.css +4 -0
  74. package/src/react/components/ProductCard/ProductView.tsx +35 -0
  75. package/{dist/react/components/ProductCard/index.d.ts → src/react/components/ProductCard/index.ts} +6 -6
  76. package/src/react/components/ProductCard/useQueryProduct.ts +32 -0
  77. package/src/react/components/RichTextOutline/index.tsx +76 -0
  78. package/src/react/components/RichTextOutline/useAcitviedHeading.ts +54 -0
  79. package/src/react/components/RichTextOutline/useAnchorScroll.ts +24 -0
  80. package/src/react/components/Scroller.tsx +7 -0
  81. package/src/react/components/SearchInput.tsx +34 -0
  82. package/src/react/components/Share/index.tsx +69 -0
  83. package/src/react/components/Share/socials.tsx +79 -0
  84. package/src/react/components/Share//350/265/204/346/226/231.md +7 -0
  85. package/src/react/components/ToTop/index.tsx +33 -0
  86. package/src/react/components/ToTop.tsx +33 -0
  87. package/{dist/react/components/index.d.ts → src/react/components/index.ts} +8 -8
  88. package/src/react/hooks/index.ts +1 -0
  89. package/src/react/hooks/useScroll.ts +23 -0
  90. package/{dist/react/index.d.ts → src/react/index.ts} +2 -2
  91. package/src/robots.ts +4 -0
  92. package/src/scripts/actions.ts +304 -0
  93. package/src/scripts/consts.ts +32 -0
  94. package/src/scripts/events.ts +33 -0
  95. package/{dist/scripts/index.d.ts → src/scripts/index.ts} +3 -3
  96. package/dist/entify/Entify.d.ts +0 -138
  97. package/dist/entify/lib/createEntifyClient.d.ts +0 -3
  98. package/dist/entify/lib/langFields.d.ts +0 -2
  99. package/dist/entify/lib/newAvatarQueryOptions.d.ts +0 -2
  100. package/dist/entify/lib/newOgImageQueryOptions.d.ts +0 -2
  101. package/dist/entify/lib/newPageMetaOptions.d.ts +0 -2
  102. package/dist/entify/lib/newQueryPostOptions.d.ts +0 -3
  103. package/dist/entify/lib/newQueryProductOptions.d.ts +0 -3
  104. package/dist/entify/lib/newQueryProductsMediaOptions.d.ts +0 -3
  105. package/dist/entify/lib/queryAllProducts.d.ts +0 -4
  106. package/dist/entify/lib/queryEntityList.d.ts +0 -3
  107. package/dist/entify/lib/queryFeaturedProducts.d.ts +0 -4
  108. package/dist/entify/lib/queryLangs.d.ts +0 -4
  109. package/dist/entify/lib/queryLatestPosts.d.ts +0 -4
  110. package/dist/entify/lib/queryOneEntity.d.ts +0 -5
  111. package/dist/entify/lib/queryOnePostById.d.ts +0 -3
  112. package/dist/entify/lib/queryOnePostBySlug.d.ts +0 -3
  113. package/dist/entify/lib/queryOnePostCategoryBySlug.d.ts +0 -3
  114. package/dist/entify/lib/queryOneProductById.d.ts +0 -3
  115. package/dist/entify/lib/queryOneProductBySlug.d.ts +0 -3
  116. package/dist/entify/lib/queryOneProductCategoryBySlug.d.ts +0 -3
  117. package/dist/entify/lib/queryOneTheme.d.ts +0 -3
  118. package/dist/entify/lib/queryOneUser.d.ts +0 -3
  119. package/dist/entify/lib/queryPostCategories.d.ts +0 -4
  120. package/dist/entify/lib/queryPostSlugs.d.ts +0 -4
  121. package/dist/entify/lib/queryPosts.d.ts +0 -10
  122. package/dist/entify/lib/queryProductCategories.d.ts +0 -4
  123. package/dist/entify/lib/queryProducts.d.ts +0 -6
  124. package/dist/entify/lib/queryProductsInMenu.d.ts +0 -2
  125. package/dist/entify/lib/queryUserIds.d.ts +0 -4
  126. package/dist/entify/lib/queryUserPosts.d.ts +0 -9
  127. package/dist/entify/lib/queryWebSiteSettings.d.ts +0 -3
  128. package/dist/entify/lib/searchProducts.d.ts +0 -4
  129. package/dist/entify/lib/sendEmail.d.ts +0 -3
  130. package/dist/entify/lib/toQueryOptions.d.ts +0 -3
  131. package/dist/entify/lib/upsertEntity.d.ts +0 -2
  132. package/dist/entify/types/index.d.ts +0 -2
  133. package/dist/entify/types/utils.d.ts +0 -4
  134. package/dist/entify/types/variables.d.ts +0 -7
  135. package/dist/entify/view-model/funcs.d.ts +0 -20
  136. package/dist/entify/view-model/index.d.ts +0 -2
  137. package/dist/entify/view-model/models.d.ts +0 -119
  138. package/dist/index.mjs +0 -40514
  139. package/dist/index.mjs.map +0 -1
  140. package/dist/motion/consts.d.ts +0 -77
  141. package/dist/motion/types.d.ts +0 -26
  142. package/dist/react/components/EnquiryForm/Input.d.ts +0 -15
  143. package/dist/react/components/EnquiryForm/Submit.d.ts +0 -8
  144. package/dist/react/components/EnquiryForm/Textarea.d.ts +0 -13
  145. package/dist/react/components/EnquiryForm/index.d.ts +0 -22
  146. package/dist/react/components/Medias/index.d.ts +0 -8
  147. package/dist/react/components/ProductCard/ProductCard.d.ts +0 -15
  148. package/dist/react/components/ProductCard/ProductCardPreview.d.ts +0 -2
  149. package/dist/react/components/ProductCard/ProductCta/index.d.ts +0 -5
  150. package/dist/react/components/ProductCard/ProductDescription/index.d.ts +0 -2
  151. package/dist/react/components/ProductCard/ProductMedia/index.d.ts +0 -7
  152. package/dist/react/components/ProductCard/ProductTitle/index.d.ts +0 -2
  153. package/dist/react/components/ProductCard/ProductView.d.ts +0 -5
  154. package/dist/react/components/ProductCard/useQueryProduct.d.ts +0 -2
  155. package/dist/react/components/RichTextOutline/index.d.ts +0 -8
  156. package/dist/react/components/RichTextOutline/useAcitviedHeading.d.ts +0 -1
  157. package/dist/react/components/Scroller.d.ts +0 -3
  158. package/dist/react/components/SearchInput.d.ts +0 -2
  159. package/dist/react/components/Share/index.d.ts +0 -6
  160. package/dist/react/components/Share/socials.d.ts +0 -10
  161. package/dist/react/components/ToTop.d.ts +0 -5
  162. package/dist/react/hooks/index.d.ts +0 -1
  163. package/dist/react/hooks/useScroll.d.ts +0 -2
  164. package/dist/robots.d.ts +0 -2
  165. package/dist/scripts/actions.d.ts +0 -85
  166. package/dist/scripts/consts.d.ts +0 -21
  167. package/dist/scripts/events.d.ts +0 -11
  168. package/dist/style.css +0 -98
@@ -0,0 +1,271 @@
1
+ import {
2
+ AttachmentOnProduct,
3
+ Media,
4
+ MediaOnProduct,
5
+ Post,
6
+ PostCategory,
7
+ Product,
8
+ ProductCategory,
9
+ ProductRelatedPivot,
10
+ User,
11
+ WebsiteSettings,
12
+ } from "@rxdrag/rxcms-models";
13
+ import {
14
+ TMedia,
15
+ TMedias,
16
+ TPost,
17
+ TPostCategory,
18
+ TProduct,
19
+ TProductCategory,
20
+ TUser,
21
+ TWebsiteSettings,
22
+ } from "./models";
23
+ import { ListResult } from "@rxdrag/entify-hooks";
24
+
25
+ export function mediaToViewModel(media?: Media): TMedia | undefined {
26
+ if (!media) {
27
+ return undefined;
28
+ }
29
+ return {
30
+ ...media,
31
+ ...media?.file,
32
+ };
33
+ }
34
+
35
+ export function mediasToViewModel(product?: Product): TMedias | undefined {
36
+ if (!product) {
37
+ return undefined;
38
+ }
39
+ return {
40
+ externalVideoUrl: product?.externalVideoUrl,
41
+ medias: product?.mediaPivots?.map((mediaOnProduct) => {
42
+ return {
43
+ alt: mediaOnProduct.altText,
44
+ seqValue: mediaOnProduct.seqValue,
45
+ ...mediaToViewModel(mediaOnProduct.media)!,
46
+ };
47
+ }),
48
+ };
49
+ }
50
+
51
+ export function attachmentsToViewModel(
52
+ attachments?: AttachmentOnProduct[]
53
+ ): TMedia[] | undefined {
54
+ if (!attachments) {
55
+ return undefined;
56
+ }
57
+ return attachments?.map((attachPovit) => {
58
+ return {
59
+ seqValue: attachPovit.seqValue,
60
+ ...mediaToViewModel(attachPovit.attachment)!,
61
+ };
62
+ });
63
+ }
64
+
65
+ export function websiteSettingsToViewModel(
66
+ websiteSettings?: WebsiteSettings
67
+ ): TWebsiteSettings | undefined {
68
+ if (!websiteSettings) {
69
+ return undefined;
70
+ }
71
+ return {
72
+ ...websiteSettings,
73
+ };
74
+ }
75
+
76
+ export function productCategoryToViewModel(
77
+ productCategory?: ProductCategory
78
+ ): TProductCategory | undefined {
79
+ if (!productCategory) {
80
+ return undefined;
81
+ }
82
+ return {
83
+ ...productCategory,
84
+ media: productCategory?.media && mediaToViewModel(productCategory?.media),
85
+ children: productCategory?.children?.length
86
+ ? (productCategory?.children?.map(productCategoryToViewModel) as
87
+ | TProductCategory[]
88
+ | undefined)
89
+ : undefined,
90
+ parent:
91
+ productCategory?.parent &&
92
+ productCategoryToViewModel(productCategory?.parent),
93
+ products: productCategory?.products?.length
94
+ ? (productCategory?.products?.map(productToViewModel) as
95
+ | TProduct[]
96
+ | undefined)
97
+ : undefined,
98
+ };
99
+ }
100
+
101
+ export function productToViewModel(product?: Product): TProduct | undefined {
102
+ if (!product) {
103
+ return undefined;
104
+ }
105
+ const medias = mediasToViewModel(product);
106
+ return {
107
+ ...product,
108
+ content: product?.content,
109
+ content2: product?.content2,
110
+ content3: product?.content3,
111
+ meta: product?.meta,
112
+ category:
113
+ product?.category && productCategoryToViewModel(product?.category),
114
+ cover: medias?.medias?.[0],
115
+ medias: medias,
116
+ attachments:
117
+ product?.attachmentPivots &&
118
+ attachmentsToViewModel(product?.attachmentPivots),
119
+ related: relatedPovitToViewModel(product?.relatedPivot),
120
+ };
121
+ }
122
+
123
+ export function relatedPovitToViewModel(
124
+ related?: ProductRelatedPivot[]
125
+ ): TProduct[] | undefined {
126
+ if (!related) {
127
+ return undefined;
128
+ }
129
+ return related.map((relatedPivot) => {
130
+ return productToViewModel({
131
+ ...relatedPivot.target,
132
+ seqValue: relatedPivot.seqValue,
133
+ })!;
134
+ });
135
+ }
136
+
137
+ export function productListToViewModel(
138
+ products?: ListResult<Product>
139
+ ): ListResult<TProduct> | undefined {
140
+ if (!products) {
141
+ return undefined;
142
+ }
143
+ return {
144
+ ...products,
145
+ items: products?.items?.map(productToViewModel) as TProduct[] | undefined,
146
+ };
147
+ }
148
+
149
+ export function productCategoriesToViewModel(
150
+ productCategories?: ListResult<ProductCategory>
151
+ ): ListResult<TProductCategory> | undefined {
152
+ if (!productCategories) {
153
+ return undefined;
154
+ }
155
+ return {
156
+ ...productCategories,
157
+ items: productCategories?.items?.map(productCategoryToViewModel) as
158
+ | TProductCategory[]
159
+ | undefined,
160
+ };
161
+ }
162
+
163
+ export function postCategoryToViewModel(
164
+ postCategory?: PostCategory
165
+ ): TPostCategory | undefined {
166
+ if (!postCategory) {
167
+ return undefined;
168
+ }
169
+ return {
170
+ ...postCategory,
171
+ media: postCategory?.media && mediaToViewModel(postCategory?.media),
172
+ children: postCategory?.children?.length
173
+ ? (postCategory?.children?.map(postCategoryToViewModel) as
174
+ | TPostCategory[]
175
+ | undefined)
176
+ : undefined,
177
+ parent:
178
+ postCategory?.parent && postCategoryToViewModel(postCategory?.parent),
179
+ posts: postCategory?.posts?.length
180
+ ? (postCategory?.posts?.map(postToViewModel) as TPost[] | undefined)
181
+ : undefined,
182
+ };
183
+ }
184
+
185
+ export function postCategoriesToViewModel(
186
+ postCategories?: ListResult<PostCategory>
187
+ ): ListResult<TPostCategory> | undefined {
188
+ if (!postCategories) {
189
+ return undefined;
190
+ }
191
+ return {
192
+ ...postCategories,
193
+ items: postCategories?.items?.map(postCategoryToViewModel) as
194
+ | TPostCategory[]
195
+ | undefined,
196
+ };
197
+ }
198
+
199
+ export function postToViewModel(post?: Post): TPost | undefined {
200
+ if (!post) {
201
+ return undefined;
202
+ }
203
+ return {
204
+ ...post,
205
+ author: post?.author && userToViewModel(post?.author),
206
+ content: post?.content,
207
+ meta: post?.meta,
208
+ category: post?.category && postCategoryToViewModel(post?.category),
209
+ cover: post?.cover && mediaToViewModel(post?.cover),
210
+ };
211
+ }
212
+
213
+ export function postListToViewModel(
214
+ posts?: ListResult<Post>
215
+ ): ListResult<TPost> | undefined {
216
+ if (!posts) {
217
+ return undefined;
218
+ }
219
+ return {
220
+ ...posts,
221
+ items: posts?.items?.map(postToViewModel) as TPost[] | undefined,
222
+ };
223
+ }
224
+
225
+ export function postCategoryListToViewModel(
226
+ postCategories?: ListResult<PostCategory>
227
+ ): ListResult<TPostCategory> | undefined {
228
+ if (!postCategories) {
229
+ return undefined;
230
+ }
231
+ return {
232
+ ...postCategories,
233
+ items: postCategories?.items?.map(postCategoryToViewModel) as
234
+ | TPostCategory[]
235
+ | undefined,
236
+ };
237
+ }
238
+
239
+ export function userToViewModel(user?: User): TUser | undefined {
240
+ if (!user) {
241
+ return undefined;
242
+ }
243
+ return {
244
+ ...user,
245
+ avatar: user?.avatar && mediaToViewModel(user?.avatar),
246
+ };
247
+ }
248
+
249
+ export function userListToViewModel(
250
+ users?: ListResult<User>
251
+ ): ListResult<TUser> | undefined {
252
+ if (!users) {
253
+ return undefined;
254
+ }
255
+ return {
256
+ ...users,
257
+ items: users?.items?.map(userToViewModel) as TUser[] | undefined,
258
+ };
259
+ }
260
+
261
+ export function mediaListToViewModel(
262
+ medias?: ListResult<Media>
263
+ ): ListResult<TMedia> | undefined {
264
+ if (!medias) {
265
+ return undefined;
266
+ }
267
+ return {
268
+ ...medias,
269
+ items: medias?.items?.map(mediaToViewModel) as TMedia[] | undefined,
270
+ };
271
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./funcs"
2
+ export * from "./models"
@@ -0,0 +1,143 @@
1
+ import { MediaType, PageMeta } from "@rxdrag/rxcms-models";
2
+
3
+ /**
4
+ * 定义数据绑定用的类型,需要从@rxdrag/rxcms-models的类型进行转换
5
+ */
6
+
7
+ export type TMedia = {
8
+ id?: string | null;
9
+ name?: string;
10
+ mimeType?: string;
11
+ extName?: string;
12
+ thumbnail?: string;
13
+ resize?: string;
14
+ url?: string;
15
+ alt?: string;
16
+ createdAt?: Date;
17
+ updatedAt?: Date;
18
+ mediaType?: MediaType;
19
+ };
20
+
21
+ export type TMedias = {
22
+ externalVideoUrl?: string;
23
+ medias?: TMedia[];
24
+ };
25
+
26
+ export type TProductCategory = {
27
+ id?: string | null;
28
+ slug?: string;
29
+ name?: string;
30
+ children?: TProductCategory[];
31
+ media?: TMedia;
32
+ parent?: TProductCategory;
33
+ products?: TProduct[];
34
+ };
35
+
36
+ export type TProduct = {
37
+ id?: string | null;
38
+ slug?: string;
39
+ title?: string;
40
+ shortTitle?: string;
41
+ description?: string;
42
+ features?: string;
43
+ medias?: TMedias;
44
+ //从头medias中获取第一个不是视频的图片
45
+ cover?: TMedia;
46
+ content?: string;
47
+ content2?: string;
48
+ content3?: string;
49
+ extends?: object;
50
+ publishedAt?: Date;
51
+ createdAt?: Date;
52
+ updatedAt?: Date;
53
+ category?: TProductCategory;
54
+ related?: TProduct[];
55
+ attachments?: TMedia[];
56
+ meta?: PageMeta;
57
+ };
58
+
59
+ export type TPostCategory = {
60
+ id?: string | null;
61
+ slug?: string;
62
+ name?: string;
63
+ children?: TProductCategory[];
64
+ media?: TMedia;
65
+ parent?: TProductCategory;
66
+ posts?: TPost[];
67
+ };
68
+
69
+ export type TUser = {
70
+ id?: string | null;
71
+ name?: string;
72
+ avatar?: TMedia;
73
+ position?: string;
74
+ profile?: string;
75
+ email?: string;
76
+ tel?: string;
77
+ mobile?: string;
78
+ linkedin?: string;
79
+ facebook?: string;
80
+ twitter?: string;
81
+ instagram?: string;
82
+ };
83
+
84
+ export type TPost = {
85
+ id?: string | null;
86
+ slug?: string;
87
+ title?: string;
88
+ description?: string;
89
+ cover?: TMedia;
90
+ content?: string;
91
+ extends?: object;
92
+ publishedAt?: Date;
93
+ createdAt?: Date;
94
+ updatedAt?: Date;
95
+ category?: TPostCategory;
96
+ author?: TUser;
97
+ meta?: PageMeta;
98
+ };
99
+
100
+ export type TWebsiteSettings = {
101
+ id?: string | null;
102
+ contact?: string;
103
+ contactAvatar?: TMedia;
104
+ address?: string;
105
+ email?: string;
106
+ tel?: string;
107
+ mobile?: string;
108
+ //以下字段 暂时用不上,预留
109
+ linkedin?: string;
110
+ facebook?: string;
111
+ twitter?: string;
112
+ instagram?: string;
113
+ footerCode?: string;
114
+ websiteName?: string;
115
+ map301?: string;
116
+ };
117
+
118
+ export type TBreadcrumbItem = {
119
+ title: string;
120
+ href?: string;
121
+ };
122
+
123
+ export type TPage = {
124
+ title?: string;
125
+ breadcrumbs?: TBreadcrumbItem[];
126
+ };
127
+
128
+ export type TPagination = {
129
+ urlPrefix?: string;
130
+ current?: number;
131
+ total?: number;
132
+ };
133
+
134
+ export const entityMaps: Record<string, string> = {
135
+ ProductCategory: "TProductCategory",
136
+ Product: "TProduct",
137
+ Post: "TPost",
138
+ PostCategory: "TPostCategory",
139
+ User: "TUser",
140
+ Media: "TMedia",
141
+ Page: "TPage",
142
+ WebsiteSettings: "TWebsiteSettings",
143
+ };
@@ -1,5 +1,5 @@
1
- export * from "./entify";
2
- export * from "./motion";
3
- export * from "./react";
4
- export * from "./scripts";
5
- export * from "./robots";
1
+ export * from "./entify";
2
+ export * from "./motion";
3
+ export * from "./react";
4
+ export * from "./scripts";
5
+ export * from "./robots";