@apexcura/core 0.0.17-Beta60 → 0.0.17-Beta62
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/dist/index.js +5 -0
- package/dist/index.mjs +6 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -117,6 +117,11 @@ var ElementExecutor = (props) => {
|
|
|
117
117
|
setSchema(updatedSchema);
|
|
118
118
|
props.setData && props.setData({ ...props.data, schema: updatedSchema });
|
|
119
119
|
};
|
|
120
|
+
(0, import_react.useEffect)(() => {
|
|
121
|
+
if (props?.data?.schema) {
|
|
122
|
+
setSchema([...props.data.schema]);
|
|
123
|
+
}
|
|
124
|
+
}, [props.data]);
|
|
120
125
|
const handleSelectData = async () => {
|
|
121
126
|
try {
|
|
122
127
|
const response = await postService("/products/", "POST", []);
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/libraries/element-executor.tsx
|
|
2
|
-
import React, { useState } from "react";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
3
|
import {
|
|
4
4
|
TextElement,
|
|
5
5
|
NumberElement,
|
|
@@ -115,6 +115,11 @@ var ElementExecutor = (props) => {
|
|
|
115
115
|
setSchema(updatedSchema);
|
|
116
116
|
props.setData && props.setData({ ...props.data, schema: updatedSchema });
|
|
117
117
|
};
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
if (props?.data?.schema) {
|
|
120
|
+
setSchema([...props.data.schema]);
|
|
121
|
+
}
|
|
122
|
+
}, [props.data]);
|
|
118
123
|
const handleSelectData = async () => {
|
|
119
124
|
try {
|
|
120
125
|
const response = await postService("/products/", "POST", []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexcura/core",
|
|
3
|
-
"version": "0.0.17-
|
|
3
|
+
"version": "0.0.17-Beta62",
|
|
4
4
|
"description": "Apex cura React components library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex cura",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build": "tsup"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@apexcura/ui-components": "^0.0.15-
|
|
31
|
+
"@apexcura/ui-components": "^0.0.15-Beta52",
|
|
32
32
|
"@testing-library/jest-dom": "^6.4.2",
|
|
33
33
|
"@testing-library/react": "^15.0.6",
|
|
34
34
|
"@types/react-global-configuration": "^1.3.3",
|