@knovator/pagecreator-admin 1.7.4 → 1.7.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/index.cjs +7 -8
- package/index.js +7 -8
- package/package.json +1 -1
- package/src/lib/api/list.d.ts +0 -4
package/index.cjs
CHANGED
|
@@ -2765,12 +2765,6 @@ const apiList = {
|
|
|
2765
2765
|
url: `${prefix}/languages`,
|
|
2766
2766
|
method: 'GET'
|
|
2767
2767
|
}),
|
|
2768
|
-
BLOG_CATEGORIES: ({
|
|
2769
|
-
prefix
|
|
2770
|
-
}) => ({
|
|
2771
|
-
url: `${prefix}/blog-categories`,
|
|
2772
|
-
method: 'GET'
|
|
2773
|
-
}),
|
|
2774
2768
|
// Image Upload API
|
|
2775
2769
|
IMAGE_UPLOAD: ({
|
|
2776
2770
|
prefix
|
|
@@ -7290,8 +7284,13 @@ const WidgetForm = ({
|
|
|
7290
7284
|
const response = yield commonApi({
|
|
7291
7285
|
baseUrl,
|
|
7292
7286
|
token,
|
|
7293
|
-
method: '
|
|
7294
|
-
url: `${widgetRoutesPrefix}/
|
|
7287
|
+
method: 'POST',
|
|
7288
|
+
url: `${widgetRoutesPrefix}/collection-data`,
|
|
7289
|
+
data: {
|
|
7290
|
+
search: '',
|
|
7291
|
+
collectionName: 'blog',
|
|
7292
|
+
collectionItems: []
|
|
7293
|
+
},
|
|
7295
7294
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7296
7295
|
onError: error => console.error('Error fetching blog categories:', error)
|
|
7297
7296
|
});
|
package/index.js
CHANGED
|
@@ -2753,12 +2753,6 @@ const apiList = {
|
|
|
2753
2753
|
url: `${prefix}/languages`,
|
|
2754
2754
|
method: 'GET'
|
|
2755
2755
|
}),
|
|
2756
|
-
BLOG_CATEGORIES: ({
|
|
2757
|
-
prefix
|
|
2758
|
-
}) => ({
|
|
2759
|
-
url: `${prefix}/blog-categories`,
|
|
2760
|
-
method: 'GET'
|
|
2761
|
-
}),
|
|
2762
2756
|
// Image Upload API
|
|
2763
2757
|
IMAGE_UPLOAD: ({
|
|
2764
2758
|
prefix
|
|
@@ -7278,8 +7272,13 @@ const WidgetForm = ({
|
|
|
7278
7272
|
const response = yield commonApi({
|
|
7279
7273
|
baseUrl,
|
|
7280
7274
|
token,
|
|
7281
|
-
method: '
|
|
7282
|
-
url: `${widgetRoutesPrefix}/
|
|
7275
|
+
method: 'POST',
|
|
7276
|
+
url: `${widgetRoutesPrefix}/collection-data`,
|
|
7277
|
+
data: {
|
|
7278
|
+
search: '',
|
|
7279
|
+
collectionName: 'blog',
|
|
7280
|
+
collectionItems: []
|
|
7281
|
+
},
|
|
7283
7282
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7284
7283
|
onError: error => console.error('Error fetching blog categories:', error)
|
|
7285
7284
|
});
|
package/package.json
CHANGED
package/src/lib/api/list.d.ts
CHANGED