@uxf/cms 11.0.0 → 11.1.0

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/api/index.d.ts CHANGED
@@ -154,6 +154,10 @@ export declare function saveFormValues<T extends Record<string, any>>(ctx: any,
154
154
  entityAlias: string;
155
155
  id?: number | null;
156
156
  }, body: T): Promise<import("axios").AxiosResponse<T, any>>;
157
+ export declare function removeEntity(ctx: any, path: {
158
+ entityAlias: string;
159
+ id: number;
160
+ }): Promise<import("axios").AxiosResponse<undefined, any>>;
157
161
  export declare function userConfigSave(name: string, data: any): Promise<import("axios").AxiosResponse<UserConfigBagResponse, any>>;
158
162
  export declare function userConfigGetAll(ctx: any): Promise<import("axios").AxiosResponse<UserConfigBagResponse, any>>;
159
163
  export declare function userConfigGet<T>(ctx: any, name: string, defaultValue?: T): Promise<T | undefined>;
package/api/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uploadFile = exports.userConfigGet = exports.userConfigGetAll = exports.userConfigSave = exports.saveFormValues = exports.autocomplete = exports.login = exports.getFormValues = exports.getFormSchema = exports.getEntityMetaSchemas = exports.getLoggedUser = exports.forgottenPassword = exports.dataGridAutocompleteGet = exports.dataGridSchemaGet = exports.contentUpdate = exports.contentCreate = exports.contentGet = void 0;
3
+ exports.uploadFile = exports.userConfigGet = exports.userConfigGetAll = exports.userConfigSave = exports.removeEntity = exports.saveFormValues = exports.autocomplete = exports.login = exports.getFormValues = exports.getFormSchema = exports.getEntityMetaSchemas = exports.getLoggedUser = exports.forgottenPassword = exports.dataGridAutocompleteGet = exports.dataGridSchemaGet = exports.contentUpdate = exports.contentCreate = exports.contentGet = void 0;
4
4
  // eslint-disable-next-line import/no-cycle
5
5
  const api_1 = require("../lib/api");
6
6
  const { axiosRequest, axiosInstance } = (0, api_1.createAxiosInstance)();
@@ -58,6 +58,10 @@ function saveFormValues(ctx, path, body) {
58
58
  : axiosRequest(ctx, `/api/cms/form/${path.entityAlias}`, "post", body, null);
59
59
  }
60
60
  exports.saveFormValues = saveFormValues;
61
+ function removeEntity(ctx, path) {
62
+ return axiosRequest(ctx, `/api/cms/form/${path.entityAlias}/${path.id}`, "delete", null, null);
63
+ }
64
+ exports.removeEntity = removeEntity;
61
65
  async function userConfigSave(name, data) {
62
66
  return axiosRequest(null, "/api/cms/user-config", "post", { name, data }, null);
63
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/cms",
3
- "version": "11.0.0",
3
+ "version": "11.1.0",
4
4
  "description": "UXF Cms",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/cms#readme",
@@ -31,11 +31,11 @@
31
31
  "@floating-ui/react": "0.26.0",
32
32
  "@redux-devtools/extension": "3.2.5",
33
33
  "@uxf/core": "10.10.1",
34
- "@uxf/data-grid": "11.0.0",
35
- "@uxf/form": "11.0.0",
34
+ "@uxf/data-grid": "11.1.0",
35
+ "@uxf/form": "11.1.0",
36
36
  "@uxf/router": "10.0.0",
37
- "@uxf/ui": "11.0.0",
38
- "@uxf/wysiwyg": "11.0.0",
37
+ "@uxf/ui": "11.1.0",
38
+ "@uxf/wysiwyg": "11.1.0",
39
39
  "axios": "1.5.1",
40
40
  "axios-hooks": "5.0.0",
41
41
  "es6-error": "4.1.1",