eis-ui-render 0.27.2 → 0.28.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/README.md CHANGED
@@ -115,5 +115,5 @@ Due to limitations in Genesis UI (no static asset folder), the build of this pac
115
115
  2. Inside `/repos/npm/` run `yarn build`
116
116
  3. Then navigate to `/repos/policy/` folder and follow `README.md` instructions
117
117
  4. Copy generated `/repos/policy/dist/static` folder to `/repos/npm/dist/static`
118
- 5. Add `/repos/npm/dist/.npmrc` with the content `//registry.npmjs.org/:_authToken=<npm_your_private_tocken>
118
+ 5. Add `/repos/npm/dist/.npmrc` with the content `//registry.npmjs.org/:_authToken=<npm_your_private_tocken>`
119
119
  6. Then publish to npm: `npm run push`
package/UIRender.d.ts CHANGED
@@ -8,9 +8,17 @@ interface Props {
8
8
  onSubmit(formValues: object): void;
9
9
  getFormData?(fn: Function): void;
10
10
  onDataChanged?(): void;
11
+ getValidationErrors?(errors: object): void;
12
+ methods?: Record<string, Function>;
13
+ apiCalls?: {
14
+ updateExperienceRating: Promise<any>;
15
+ downloadFile: Promise<any>;
16
+ uploadFile: Promise<any>;
17
+ };
11
18
  className?: string;
12
19
  style?: object;
13
20
  id?: string;
21
+ translate(v: string): string;
14
22
  }
15
23
  /**
16
24
  * Thin wrapper to avoid compiling UI Render inside Genesis UI Build process,
package/UIRender.js CHANGED
@@ -110,7 +110,7 @@ var UIRender = /** @class */ (function (_super) {
110
110
  };
111
111
  UIRender.prototype.render = function () {
112
112
  var _a = this.props, className = _a.className, style = _a.style;
113
- return react_1.default.createElement("div", { id: this.id, "data-version": '0.27.2', className: UI_RENDER + " " + (className || ''), style: style });
113
+ return react_1.default.createElement("div", { id: this.id, "data-version": '0.28.0', className: UI_RENDER + " " + (className || ''), style: style });
114
114
  };
115
115
  return UIRender;
116
116
  }(react_1.Component));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eis-ui-render",
3
- "version": "0.27.2",
3
+ "version": "0.28.0",
4
4
  "description": "UI Render for EIS Integration",
5
5
  "homepage": ".",
6
6
  "sideEffects": false,