@agilemotion/oui-react-js 1.8.16 → 1.8.17

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.
@@ -22,6 +22,7 @@ const View = props => {
22
22
  const [layoutHandle] = _react.default.useState({});
23
23
  const [model] = _react.default.useState({});
24
24
  const loadingRef = _react.default.useRef(true);
25
+ const paramsLoaded = _react.default.useRef(false);
25
26
  function registerInlineScriptLibraries() {
26
27
  if (!_Utils.default.isNull(props.config.lib)) {
27
28
  let libName = props.config.id + '_lib';
@@ -116,11 +117,18 @@ const View = props => {
116
117
  });
117
118
  }
118
119
  const api = () => {
120
+ if (!paramsLoaded.current && !_Utils.default.isNull(props.parameters)) {
121
+ doUpdateModel(props.parameters);
122
+ paramsLoaded.current = true;
123
+ }
119
124
  return {
120
125
  get id() {
121
126
  // View
122
127
  return props.config.id;
123
128
  },
129
+ get parameters() {
130
+ return props.parameters;
131
+ },
124
132
  get model() {
125
133
  let children = layoutHandle.api.getChildren();
126
134
  for (const child of children) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilemotion/oui-react-js",
3
- "version": "1.8.16",
3
+ "version": "1.8.17",
4
4
  "files": [
5
5
  "dist"
6
6
  ],