@ikas/storefront-providers 4.0.0-alpha.41 → 4.0.0-alpha.43
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-providers",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.43",
|
|
4
4
|
"description": "Data providers for ikas storefront theme components.",
|
|
5
5
|
"author": "Umut Ozan Yıldırım",
|
|
6
6
|
"license": "ISC",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
20
|
-
"@ikas/storefront-api": "^4.0.0-alpha.
|
|
21
|
-
"@ikas/storefront-config": "^4.0.0-alpha.
|
|
22
|
-
"@ikas/storefront-model-functions": "^4.0.0-alpha.
|
|
23
|
-
"@ikas/storefront-models": "^4.0.0-alpha.
|
|
20
|
+
"@ikas/storefront-api": "^4.0.0-alpha.43",
|
|
21
|
+
"@ikas/storefront-config": "^4.0.0-alpha.43",
|
|
22
|
+
"@ikas/storefront-model-functions": "^4.0.0-alpha.43",
|
|
23
|
+
"@ikas/storefront-models": "^4.0.0-alpha.43",
|
|
24
24
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
25
25
|
"@types/lodash": "^4.14.168",
|
|
26
26
|
"@types/react": "^16.9.55",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"mobx": "^6.1.3",
|
|
40
|
-
"@ikas/storefront-api": "^4.0.0-alpha.
|
|
41
|
-
"@ikas/storefront-config": "^4.0.0-alpha.
|
|
42
|
-
"@ikas/storefront-model-functions": "^4.0.0-alpha.
|
|
43
|
-
"@ikas/storefront-models": "^4.0.0-alpha.
|
|
40
|
+
"@ikas/storefront-api": "^4.0.0-alpha.43",
|
|
41
|
+
"@ikas/storefront-config": "^4.0.0-alpha.43",
|
|
42
|
+
"@ikas/storefront-model-functions": "^4.0.0-alpha.43",
|
|
43
|
+
"@ikas/storefront-models": "^4.0.0-alpha.43",
|
|
44
44
|
"lodash": "^4.17.20"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -349,11 +349,12 @@ export class IkasPageDataProvider {
|
|
|
349
349
|
};
|
|
350
350
|
|
|
351
351
|
const handleBlogPage = async () => {
|
|
352
|
-
const
|
|
352
|
+
const blogsResponse = await listBlog({
|
|
353
353
|
id: { eq: metaData.targetId },
|
|
354
354
|
});
|
|
355
|
-
if (!
|
|
355
|
+
if (!blogsResponse.isSuccess || !blogsResponse.data?.data?.length) return;
|
|
356
356
|
|
|
357
|
+
const blog = blogsResponse.data.data[0];
|
|
357
358
|
this.pageSpecificData = blog;
|
|
358
359
|
this.pageType = IkasThemeJsonPageType.BLOG;
|
|
359
360
|
this.setPageMetaData(metaData);
|
|
@@ -375,7 +376,6 @@ export class IkasPageDataProvider {
|
|
|
375
376
|
return;
|
|
376
377
|
|
|
377
378
|
const blogCategory = blogCategoriesResponse.data.data[0];
|
|
378
|
-
|
|
379
379
|
this.pageSpecificData = blogCategory;
|
|
380
380
|
this.pageType = IkasThemeJsonPageType.BLOG_CATEGORY;
|
|
381
381
|
this.setPageMetaData(metaData);
|