@knovator/pagecreator-admin 1.7.3 → 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 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: 'GET',
7294
- url: `${widgetRoutesPrefix}/blog-categories`,
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: 'GET',
7282
- url: `${widgetRoutesPrefix}/blog-categories`,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knovator/pagecreator-admin",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "dependencies": {
5
5
  "classnames": "^2.3.1",
6
6
  "react-beautiful-dnd": "^13.1.0",
@@ -44,10 +44,6 @@ declare const apiList: {
44
44
  url: string;
45
45
  method: string;
46
46
  };
47
- BLOG_CATEGORIES: ({ prefix }: API_INPUT_TYPE) => {
48
- url: string;
49
- method: string;
50
- };
51
47
  IMAGE_UPLOAD: ({ prefix }: API_INPUT_TYPE) => {
52
48
  url: string;
53
49
  method: string;