@lv-x-software-house/x_view 1.2.5-dev.6 → 1.2.5-dev.7
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 +16 -14
- package/dist/index.mjs +16 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5488,7 +5488,7 @@ function AncestryRelationshipPanel({
|
|
|
5488
5488
|
}, 100);
|
|
5489
5489
|
};
|
|
5490
5490
|
const handleRemoveProp = (i) => setCustomProps((p) => p.filter((_, idx) => idx !== i));
|
|
5491
|
-
const
|
|
5491
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
5492
5492
|
setCustomProps((props) => {
|
|
5493
5493
|
const newProps = [...props];
|
|
5494
5494
|
newProps[index] = updatedProp;
|
|
@@ -5600,7 +5600,7 @@ function AncestryRelationshipPanel({
|
|
|
5600
5600
|
{
|
|
5601
5601
|
key: prop.id,
|
|
5602
5602
|
prop,
|
|
5603
|
-
onUpdate: (updatedProp) =>
|
|
5603
|
+
onUpdate: (updatedProp) => handleUpdateProp(idx, updatedProp),
|
|
5604
5604
|
onRemove: () => handleRemoveProp(idx),
|
|
5605
5605
|
onOpenImageViewer,
|
|
5606
5606
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -6102,7 +6102,7 @@ function CreateAncestryPanel({
|
|
|
6102
6102
|
setCustomProps(newProps);
|
|
6103
6103
|
setHasUnsavedChanges2(true);
|
|
6104
6104
|
};
|
|
6105
|
-
const
|
|
6105
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
6106
6106
|
const newProps = [...customProps];
|
|
6107
6107
|
newProps[index] = updatedProp;
|
|
6108
6108
|
setCustomProps(newProps);
|
|
@@ -7172,7 +7172,7 @@ function CreateAncestryPanel({
|
|
|
7172
7172
|
{
|
|
7173
7173
|
key: prop.id,
|
|
7174
7174
|
prop,
|
|
7175
|
-
onUpdate: (updatedProp) =>
|
|
7175
|
+
onUpdate: (updatedProp) => handleUpdateProp(idx, updatedProp),
|
|
7176
7176
|
onRemove: () => handleRemoveProp(idx),
|
|
7177
7177
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
7178
7178
|
onUploadFile
|
|
@@ -7654,7 +7654,7 @@ function InSceneCreationForm({
|
|
|
7654
7654
|
}, 100);
|
|
7655
7655
|
};
|
|
7656
7656
|
const handleRemoveProp = (index) => setCustomProps(customProps.filter((_, i) => i !== index));
|
|
7657
|
-
const
|
|
7657
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
7658
7658
|
const newProps = [...customProps];
|
|
7659
7659
|
newProps[index] = updatedProp;
|
|
7660
7660
|
setCustomProps(newProps);
|
|
@@ -7892,7 +7892,7 @@ function InSceneCreationForm({
|
|
|
7892
7892
|
{
|
|
7893
7893
|
key: prop.id,
|
|
7894
7894
|
prop,
|
|
7895
|
-
onUpdate: (updatedProp) =>
|
|
7895
|
+
onUpdate: (updatedProp) => handleUpdateProp(index, updatedProp),
|
|
7896
7896
|
onRemove: () => handleRemoveProp(index),
|
|
7897
7897
|
onOpenImageViewer,
|
|
7898
7898
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -7973,7 +7973,7 @@ function InSceneVersionForm({
|
|
|
7973
7973
|
}
|
|
7974
7974
|
setCustomProps(customProps.filter((_, i) => i !== index));
|
|
7975
7975
|
};
|
|
7976
|
-
const
|
|
7976
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
7977
7977
|
const newProps = [...customProps];
|
|
7978
7978
|
newProps[index] = updatedProp;
|
|
7979
7979
|
setCustomProps(newProps);
|
|
@@ -8111,7 +8111,7 @@ function InSceneVersionForm({
|
|
|
8111
8111
|
{
|
|
8112
8112
|
key: prop.id,
|
|
8113
8113
|
prop,
|
|
8114
|
-
onUpdate: (updatedProp) =>
|
|
8114
|
+
onUpdate: (updatedProp) => handleUpdateProp(index, updatedProp),
|
|
8115
8115
|
onRemove: () => handleRemoveProp(index),
|
|
8116
8116
|
onOpenImageViewer,
|
|
8117
8117
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -8186,7 +8186,7 @@ function InSceneQuestForm({
|
|
|
8186
8186
|
}, 100);
|
|
8187
8187
|
};
|
|
8188
8188
|
const handleRemoveProp = (index) => setCustomProps(customProps.filter((_, i) => i !== index));
|
|
8189
|
-
const
|
|
8189
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
8190
8190
|
const newProps = [...customProps];
|
|
8191
8191
|
newProps[index] = updatedProp;
|
|
8192
8192
|
setCustomProps(newProps);
|
|
@@ -8340,7 +8340,7 @@ function InSceneQuestForm({
|
|
|
8340
8340
|
{
|
|
8341
8341
|
key: prop.id,
|
|
8342
8342
|
prop,
|
|
8343
|
-
onUpdate: (updatedProp) =>
|
|
8343
|
+
onUpdate: (updatedProp) => handleUpdateProp(index, updatedProp),
|
|
8344
8344
|
onRemove: () => handleRemoveProp(index),
|
|
8345
8345
|
onOpenImageViewer,
|
|
8346
8346
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -8537,7 +8537,7 @@ function NodeDetailsPanel({
|
|
|
8537
8537
|
setHasUnsavedChanges2(true);
|
|
8538
8538
|
triggerAutoSave({ customProps: newProps });
|
|
8539
8539
|
};
|
|
8540
|
-
const
|
|
8540
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
8541
8541
|
const newProps = [...customProps];
|
|
8542
8542
|
newProps[index] = updatedProp;
|
|
8543
8543
|
setCustomProps(newProps);
|
|
@@ -8857,6 +8857,7 @@ function NodeDetailsPanel({
|
|
|
8857
8857
|
initialValue: description,
|
|
8858
8858
|
onSave: (newDescription) => {
|
|
8859
8859
|
setDescription(newDescription);
|
|
8860
|
+
setHasUnsavedChanges2(true);
|
|
8860
8861
|
onDataUpdate((prev) => ({ ...prev, description: newDescription }));
|
|
8861
8862
|
triggerAutoSave({ description: newDescription });
|
|
8862
8863
|
},
|
|
@@ -9031,7 +9032,7 @@ function QuestDetailsPanel({
|
|
|
9031
9032
|
setHasUnsavedChanges2(true);
|
|
9032
9033
|
triggerAutoSave({ customProps: newProps });
|
|
9033
9034
|
};
|
|
9034
|
-
const
|
|
9035
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
9035
9036
|
const newProps = [...customProps];
|
|
9036
9037
|
newProps[index] = updatedProp;
|
|
9037
9038
|
setCustomProps(newProps);
|
|
@@ -9405,7 +9406,7 @@ function RelationshipDetailsPanel({
|
|
|
9405
9406
|
setHasUnsavedChanges2(true);
|
|
9406
9407
|
triggerAutoSave({ customProps: newProps });
|
|
9407
9408
|
};
|
|
9408
|
-
const
|
|
9409
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
9409
9410
|
const newProps = [...customProps];
|
|
9410
9411
|
newProps[index] = updatedProp;
|
|
9411
9412
|
setCustomProps(newProps);
|
|
@@ -9544,7 +9545,7 @@ function RelationshipDetailsPanel({
|
|
|
9544
9545
|
{
|
|
9545
9546
|
key: prop.id,
|
|
9546
9547
|
prop,
|
|
9547
|
-
onUpdate: (updatedProp) =>
|
|
9548
|
+
onUpdate: (updatedProp) => handleUpdateProp(idx, updatedProp),
|
|
9548
9549
|
onRemove: () => handleRemoveProp(idx),
|
|
9549
9550
|
onOpenImageViewer,
|
|
9550
9551
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -9572,6 +9573,7 @@ function RelationshipDetailsPanel({
|
|
|
9572
9573
|
onSave: (newDescription) => {
|
|
9573
9574
|
if (!canEdit) return;
|
|
9574
9575
|
setDescription(newDescription);
|
|
9576
|
+
setHasUnsavedChanges2(true);
|
|
9575
9577
|
onDataUpdate((prev) => ({ ...prev, description: newDescription }));
|
|
9576
9578
|
triggerAutoSave({ description: newDescription });
|
|
9577
9579
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -5464,7 +5464,7 @@ function AncestryRelationshipPanel({
|
|
|
5464
5464
|
}, 100);
|
|
5465
5465
|
};
|
|
5466
5466
|
const handleRemoveProp = (i) => setCustomProps((p) => p.filter((_, idx) => idx !== i));
|
|
5467
|
-
const
|
|
5467
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
5468
5468
|
setCustomProps((props) => {
|
|
5469
5469
|
const newProps = [...props];
|
|
5470
5470
|
newProps[index] = updatedProp;
|
|
@@ -5576,7 +5576,7 @@ function AncestryRelationshipPanel({
|
|
|
5576
5576
|
{
|
|
5577
5577
|
key: prop.id,
|
|
5578
5578
|
prop,
|
|
5579
|
-
onUpdate: (updatedProp) =>
|
|
5579
|
+
onUpdate: (updatedProp) => handleUpdateProp(idx, updatedProp),
|
|
5580
5580
|
onRemove: () => handleRemoveProp(idx),
|
|
5581
5581
|
onOpenImageViewer,
|
|
5582
5582
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -6095,7 +6095,7 @@ function CreateAncestryPanel({
|
|
|
6095
6095
|
setCustomProps(newProps);
|
|
6096
6096
|
setHasUnsavedChanges2(true);
|
|
6097
6097
|
};
|
|
6098
|
-
const
|
|
6098
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
6099
6099
|
const newProps = [...customProps];
|
|
6100
6100
|
newProps[index] = updatedProp;
|
|
6101
6101
|
setCustomProps(newProps);
|
|
@@ -7165,7 +7165,7 @@ function CreateAncestryPanel({
|
|
|
7165
7165
|
{
|
|
7166
7166
|
key: prop.id,
|
|
7167
7167
|
prop,
|
|
7168
|
-
onUpdate: (updatedProp) =>
|
|
7168
|
+
onUpdate: (updatedProp) => handleUpdateProp(idx, updatedProp),
|
|
7169
7169
|
onRemove: () => handleRemoveProp(idx),
|
|
7170
7170
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
7171
7171
|
onUploadFile
|
|
@@ -7647,7 +7647,7 @@ function InSceneCreationForm({
|
|
|
7647
7647
|
}, 100);
|
|
7648
7648
|
};
|
|
7649
7649
|
const handleRemoveProp = (index) => setCustomProps(customProps.filter((_, i) => i !== index));
|
|
7650
|
-
const
|
|
7650
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
7651
7651
|
const newProps = [...customProps];
|
|
7652
7652
|
newProps[index] = updatedProp;
|
|
7653
7653
|
setCustomProps(newProps);
|
|
@@ -7885,7 +7885,7 @@ function InSceneCreationForm({
|
|
|
7885
7885
|
{
|
|
7886
7886
|
key: prop.id,
|
|
7887
7887
|
prop,
|
|
7888
|
-
onUpdate: (updatedProp) =>
|
|
7888
|
+
onUpdate: (updatedProp) => handleUpdateProp(index, updatedProp),
|
|
7889
7889
|
onRemove: () => handleRemoveProp(index),
|
|
7890
7890
|
onOpenImageViewer,
|
|
7891
7891
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -7966,7 +7966,7 @@ function InSceneVersionForm({
|
|
|
7966
7966
|
}
|
|
7967
7967
|
setCustomProps(customProps.filter((_, i) => i !== index));
|
|
7968
7968
|
};
|
|
7969
|
-
const
|
|
7969
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
7970
7970
|
const newProps = [...customProps];
|
|
7971
7971
|
newProps[index] = updatedProp;
|
|
7972
7972
|
setCustomProps(newProps);
|
|
@@ -8104,7 +8104,7 @@ function InSceneVersionForm({
|
|
|
8104
8104
|
{
|
|
8105
8105
|
key: prop.id,
|
|
8106
8106
|
prop,
|
|
8107
|
-
onUpdate: (updatedProp) =>
|
|
8107
|
+
onUpdate: (updatedProp) => handleUpdateProp(index, updatedProp),
|
|
8108
8108
|
onRemove: () => handleRemoveProp(index),
|
|
8109
8109
|
onOpenImageViewer,
|
|
8110
8110
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -8179,7 +8179,7 @@ function InSceneQuestForm({
|
|
|
8179
8179
|
}, 100);
|
|
8180
8180
|
};
|
|
8181
8181
|
const handleRemoveProp = (index) => setCustomProps(customProps.filter((_, i) => i !== index));
|
|
8182
|
-
const
|
|
8182
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
8183
8183
|
const newProps = [...customProps];
|
|
8184
8184
|
newProps[index] = updatedProp;
|
|
8185
8185
|
setCustomProps(newProps);
|
|
@@ -8333,7 +8333,7 @@ function InSceneQuestForm({
|
|
|
8333
8333
|
{
|
|
8334
8334
|
key: prop.id,
|
|
8335
8335
|
prop,
|
|
8336
|
-
onUpdate: (updatedProp) =>
|
|
8336
|
+
onUpdate: (updatedProp) => handleUpdateProp(index, updatedProp),
|
|
8337
8337
|
onRemove: () => handleRemoveProp(index),
|
|
8338
8338
|
onOpenImageViewer,
|
|
8339
8339
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -8530,7 +8530,7 @@ function NodeDetailsPanel({
|
|
|
8530
8530
|
setHasUnsavedChanges2(true);
|
|
8531
8531
|
triggerAutoSave({ customProps: newProps });
|
|
8532
8532
|
};
|
|
8533
|
-
const
|
|
8533
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
8534
8534
|
const newProps = [...customProps];
|
|
8535
8535
|
newProps[index] = updatedProp;
|
|
8536
8536
|
setCustomProps(newProps);
|
|
@@ -8850,6 +8850,7 @@ function NodeDetailsPanel({
|
|
|
8850
8850
|
initialValue: description,
|
|
8851
8851
|
onSave: (newDescription) => {
|
|
8852
8852
|
setDescription(newDescription);
|
|
8853
|
+
setHasUnsavedChanges2(true);
|
|
8853
8854
|
onDataUpdate((prev) => ({ ...prev, description: newDescription }));
|
|
8854
8855
|
triggerAutoSave({ description: newDescription });
|
|
8855
8856
|
},
|
|
@@ -9024,7 +9025,7 @@ function QuestDetailsPanel({
|
|
|
9024
9025
|
setHasUnsavedChanges2(true);
|
|
9025
9026
|
triggerAutoSave({ customProps: newProps });
|
|
9026
9027
|
};
|
|
9027
|
-
const
|
|
9028
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
9028
9029
|
const newProps = [...customProps];
|
|
9029
9030
|
newProps[index] = updatedProp;
|
|
9030
9031
|
setCustomProps(newProps);
|
|
@@ -9398,7 +9399,7 @@ function RelationshipDetailsPanel({
|
|
|
9398
9399
|
setHasUnsavedChanges2(true);
|
|
9399
9400
|
triggerAutoSave({ customProps: newProps });
|
|
9400
9401
|
};
|
|
9401
|
-
const
|
|
9402
|
+
const handleUpdateProp = (index, updatedProp) => {
|
|
9402
9403
|
const newProps = [...customProps];
|
|
9403
9404
|
newProps[index] = updatedProp;
|
|
9404
9405
|
setCustomProps(newProps);
|
|
@@ -9537,7 +9538,7 @@ function RelationshipDetailsPanel({
|
|
|
9537
9538
|
{
|
|
9538
9539
|
key: prop.id,
|
|
9539
9540
|
prop,
|
|
9540
|
-
onUpdate: (updatedProp) =>
|
|
9541
|
+
onUpdate: (updatedProp) => handleUpdateProp(idx, updatedProp),
|
|
9541
9542
|
onRemove: () => handleRemoveProp(idx),
|
|
9542
9543
|
onOpenImageViewer,
|
|
9543
9544
|
unavailableTypes: currentUsedTypes.filter((t) => t !== prop.type),
|
|
@@ -9565,6 +9566,7 @@ function RelationshipDetailsPanel({
|
|
|
9565
9566
|
onSave: (newDescription) => {
|
|
9566
9567
|
if (!canEdit) return;
|
|
9567
9568
|
setDescription(newDescription);
|
|
9569
|
+
setHasUnsavedChanges2(true);
|
|
9568
9570
|
onDataUpdate((prev) => ({ ...prev, description: newDescription }));
|
|
9569
9571
|
triggerAutoSave({ description: newDescription });
|
|
9570
9572
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lv-x-software-house/x_view",
|
|
3
|
-
"version": "1.2.5-dev.
|
|
3
|
+
"version": "1.2.5-dev.7",
|
|
4
4
|
"description": "Pacote privado contendo os componentes e lógica de renderização 3D do X View.",
|
|
5
5
|
"author": "iv.x - Engenharia de Software - ivxsoftwarehouse@gmail.com",
|
|
6
6
|
"license": "UNLICENSED",
|