@lv-x-software-house/x_view 1.2.6-dev.69 → 1.2.6-dev.70
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 +1 -26
- package/dist/index.mjs +1 -26
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14928,18 +14928,6 @@ function MilestoneManager({
|
|
|
14928
14928
|
// src/XViewScene.jsx
|
|
14929
14929
|
var import_short_uuid2 = __toESM(require("short-uuid"));
|
|
14930
14930
|
var secretKey = process.env.NEXT_PUBLIC_CRYPTO_KEY;
|
|
14931
|
-
var encryptData = (data) => {
|
|
14932
|
-
try {
|
|
14933
|
-
const encrypted = import_crypto_js.default.AES.encrypt(
|
|
14934
|
-
JSON.stringify(data),
|
|
14935
|
-
secretKey
|
|
14936
|
-
).toString().replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
14937
|
-
return encrypted;
|
|
14938
|
-
} catch (error) {
|
|
14939
|
-
console.error("Falha ao encriptar os dados:", error);
|
|
14940
|
-
return null;
|
|
14941
|
-
}
|
|
14942
|
-
};
|
|
14943
14931
|
var decryptData = (encryptedText) => {
|
|
14944
14932
|
try {
|
|
14945
14933
|
let base64Text = encryptedText.replace(/-/g, "+").replace(/_/g, "/");
|
|
@@ -15414,25 +15402,12 @@ function XViewScene({
|
|
|
15414
15402
|
sceneDataRef.current = updatedData;
|
|
15415
15403
|
try {
|
|
15416
15404
|
await save_view_data(sceneSaveUrl, updatedData);
|
|
15417
|
-
if (viewParams) {
|
|
15418
|
-
const newDataToEncrypt = {
|
|
15419
|
-
...viewParams,
|
|
15420
|
-
...newConfig
|
|
15421
|
-
};
|
|
15422
|
-
const newEncrypted = encryptData(newDataToEncrypt);
|
|
15423
|
-
if (newEncrypted) {
|
|
15424
|
-
const currentUrl = window.location.pathname;
|
|
15425
|
-
const newUrl = currentUrl.replace(encryptedConfig, newEncrypted);
|
|
15426
|
-
window.history.replaceState(null, "", newUrl);
|
|
15427
|
-
console.log("X-View Config: URL atualizada para persist\xEAncia.");
|
|
15428
|
-
}
|
|
15429
|
-
}
|
|
15430
15405
|
setSceneVersion((v) => v + 1);
|
|
15431
15406
|
} catch (error) {
|
|
15432
15407
|
console.error("Erro ao salvar configura\xE7\xE3o da View:", error);
|
|
15433
15408
|
}
|
|
15434
15409
|
},
|
|
15435
|
-
[save_view_data, sceneSaveUrl
|
|
15410
|
+
[save_view_data, sceneSaveUrl]
|
|
15436
15411
|
);
|
|
15437
15412
|
const handleOpenImageViewer = (images, startIndex) => {
|
|
15438
15413
|
setImageViewer({ visible: true, images, startIndex });
|
package/dist/index.mjs
CHANGED
|
@@ -14985,18 +14985,6 @@ function MilestoneManager({
|
|
|
14985
14985
|
// src/XViewScene.jsx
|
|
14986
14986
|
import short2 from "short-uuid";
|
|
14987
14987
|
var secretKey = process.env.NEXT_PUBLIC_CRYPTO_KEY;
|
|
14988
|
-
var encryptData = (data) => {
|
|
14989
|
-
try {
|
|
14990
|
-
const encrypted = CryptoJS.AES.encrypt(
|
|
14991
|
-
JSON.stringify(data),
|
|
14992
|
-
secretKey
|
|
14993
|
-
).toString().replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
14994
|
-
return encrypted;
|
|
14995
|
-
} catch (error) {
|
|
14996
|
-
console.error("Falha ao encriptar os dados:", error);
|
|
14997
|
-
return null;
|
|
14998
|
-
}
|
|
14999
|
-
};
|
|
15000
14988
|
var decryptData = (encryptedText) => {
|
|
15001
14989
|
try {
|
|
15002
14990
|
let base64Text = encryptedText.replace(/-/g, "+").replace(/_/g, "/");
|
|
@@ -15471,25 +15459,12 @@ function XViewScene({
|
|
|
15471
15459
|
sceneDataRef.current = updatedData;
|
|
15472
15460
|
try {
|
|
15473
15461
|
await save_view_data(sceneSaveUrl, updatedData);
|
|
15474
|
-
if (viewParams) {
|
|
15475
|
-
const newDataToEncrypt = {
|
|
15476
|
-
...viewParams,
|
|
15477
|
-
...newConfig
|
|
15478
|
-
};
|
|
15479
|
-
const newEncrypted = encryptData(newDataToEncrypt);
|
|
15480
|
-
if (newEncrypted) {
|
|
15481
|
-
const currentUrl = window.location.pathname;
|
|
15482
|
-
const newUrl = currentUrl.replace(encryptedConfig, newEncrypted);
|
|
15483
|
-
window.history.replaceState(null, "", newUrl);
|
|
15484
|
-
console.log("X-View Config: URL atualizada para persist\xEAncia.");
|
|
15485
|
-
}
|
|
15486
|
-
}
|
|
15487
15462
|
setSceneVersion((v) => v + 1);
|
|
15488
15463
|
} catch (error) {
|
|
15489
15464
|
console.error("Erro ao salvar configura\xE7\xE3o da View:", error);
|
|
15490
15465
|
}
|
|
15491
15466
|
},
|
|
15492
|
-
[save_view_data, sceneSaveUrl
|
|
15467
|
+
[save_view_data, sceneSaveUrl]
|
|
15493
15468
|
);
|
|
15494
15469
|
const handleOpenImageViewer = (images, startIndex) => {
|
|
15495
15470
|
setImageViewer({ visible: true, images, startIndex });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lv-x-software-house/x_view",
|
|
3
|
-
"version": "1.2.6-dev.
|
|
3
|
+
"version": "1.2.6-dev.70",
|
|
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",
|