@cakemail-org/ui-components-v2 2.0.77 → 2.0.78

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.
@@ -7,6 +7,6 @@ export declare class FormsFactory {
7
7
  static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<FormModel | SummaryEnhancedFormModel>>;
8
8
  static create({ form }: {
9
9
  form: Partial<TEnhancedFormModel>;
10
- }): Promise<EnhancedFormModel | FormModel>;
10
+ }): Promise<EnhancedFormModel>;
11
11
  }
12
12
  export * from "./types";
package/dist/cjs/index.js CHANGED
@@ -17053,10 +17053,7 @@ var FormsFactory = /** @class */ (function () {
17053
17053
  var form = _b.form;
17054
17054
  return __generator(this, function (_c) {
17055
17055
  return [2 /*return*/, createForm({ form: form }).then(function (data) {
17056
- if ("enabled" in data.data) {
17057
- return new EnhancedFormModel(data.data);
17058
- }
17059
- return new FormModel(data.data);
17056
+ return new EnhancedFormModel(data.data);
17060
17057
  })];
17061
17058
  });
17062
17059
  });
@@ -7,6 +7,6 @@ export declare class FormsFactory {
7
7
  static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<FormModel | SummaryEnhancedFormModel>>;
8
8
  static create({ form }: {
9
9
  form: Partial<TEnhancedFormModel>;
10
- }): Promise<EnhancedFormModel | FormModel>;
10
+ }): Promise<EnhancedFormModel>;
11
11
  }
12
12
  export * from "./types";
package/dist/esm/index.js CHANGED
@@ -17033,10 +17033,7 @@ var FormsFactory = /** @class */ (function () {
17033
17033
  var form = _b.form;
17034
17034
  return __generator(this, function (_c) {
17035
17035
  return [2 /*return*/, createForm({ form: form }).then(function (data) {
17036
- if ("enabled" in data.data) {
17037
- return new EnhancedFormModel(data.data);
17038
- }
17039
- return new FormModel(data.data);
17036
+ return new EnhancedFormModel(data.data);
17040
17037
  })];
17041
17038
  });
17042
17039
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.0.77",
3
+ "version": "2.0.78",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",