@lv-x-software-house/x_view 1.3.3 → 1.3.4
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 +49 -1
- package/dist/index.mjs +49 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19257,7 +19257,7 @@ function XViewScene({
|
|
|
19257
19257
|
const viewParams = (0, import_react37.useMemo)(() => {
|
|
19258
19258
|
if (encryptedConfig) {
|
|
19259
19259
|
const data = decryptData(encryptedConfig);
|
|
19260
|
-
if (data) {
|
|
19260
|
+
if (data && data.id && data.owner_id && data.type) {
|
|
19261
19261
|
return data;
|
|
19262
19262
|
}
|
|
19263
19263
|
}
|
|
@@ -20214,6 +20214,7 @@ function XViewScene({
|
|
|
20214
20214
|
console.warn(
|
|
20215
20215
|
"Nenhum par\xE2metro de cena encontrado na URL ou falha na decripta\xE7\xE3o."
|
|
20216
20216
|
);
|
|
20217
|
+
setPermissionStatus("corrupted");
|
|
20217
20218
|
setIsLoading(false);
|
|
20218
20219
|
}
|
|
20219
20220
|
}, [
|
|
@@ -24648,6 +24649,53 @@ function XViewScene({
|
|
|
24648
24649
|
transform: "translateX(30px)",
|
|
24649
24650
|
transition: "all 300ms ease-in-out"
|
|
24650
24651
|
} : {};
|
|
24652
|
+
if (permissionStatus === "corrupted") {
|
|
24653
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", { className: "flex flex-col items-center justify-center min-h-screen w-full bg-slate-950 text-white" }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "bg-slate-900/50 p-8 rounded-2xl border border-slate-800 shadow-2xl text-center max-w-md animate-fade-in" }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "mb-4 text-amber-500" }, /* @__PURE__ */ import_react37.default.createElement(
|
|
24654
|
+
"svg",
|
|
24655
|
+
{
|
|
24656
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24657
|
+
fill: "none",
|
|
24658
|
+
viewBox: "0 0 24 24",
|
|
24659
|
+
strokeWidth: 1.5,
|
|
24660
|
+
stroke: "currentColor",
|
|
24661
|
+
className: "w-16 h-16 mx-auto"
|
|
24662
|
+
},
|
|
24663
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
|
24664
|
+
"path",
|
|
24665
|
+
{
|
|
24666
|
+
strokeLinecap: "round",
|
|
24667
|
+
strokeLinejoin: "round",
|
|
24668
|
+
d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
|
|
24669
|
+
}
|
|
24670
|
+
)
|
|
24671
|
+
)), /* @__PURE__ */ import_react37.default.createElement("h2", { className: "text-2xl font-bold mb-2" }, "Link Inv\xE1lido"), /* @__PURE__ */ import_react37.default.createElement("p", { className: "text-slate-400 mb-6" }, "O link de acesso a este cen\xE1rio est\xE1 corrompido, incompleto ou foi alterado de forma incorreta. Por favor, verifique a URL ou retorne ao dashboard."), /* @__PURE__ */ import_react37.default.createElement(
|
|
24672
|
+
"button",
|
|
24673
|
+
{
|
|
24674
|
+
onClick: handleNavigateBack,
|
|
24675
|
+
className: "flex items-center justify-center gap-2 w-full py-3 px-4 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors font-medium cursor-pointer"
|
|
24676
|
+
},
|
|
24677
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
|
24678
|
+
"svg",
|
|
24679
|
+
{
|
|
24680
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24681
|
+
fill: "none",
|
|
24682
|
+
viewBox: "0 0 24 24",
|
|
24683
|
+
strokeWidth: 2,
|
|
24684
|
+
stroke: "currentColor",
|
|
24685
|
+
className: "w-5 h-5"
|
|
24686
|
+
},
|
|
24687
|
+
/* @__PURE__ */ import_react37.default.createElement(
|
|
24688
|
+
"path",
|
|
24689
|
+
{
|
|
24690
|
+
strokeLinecap: "round",
|
|
24691
|
+
strokeLinejoin: "round",
|
|
24692
|
+
d: "M10 19l-7-7m0 0l7-7m-7 7h18"
|
|
24693
|
+
}
|
|
24694
|
+
)
|
|
24695
|
+
),
|
|
24696
|
+
"Voltar ao Dashboard"
|
|
24697
|
+
)));
|
|
24698
|
+
}
|
|
24651
24699
|
if (permissionStatus === "denied") {
|
|
24652
24700
|
return /* @__PURE__ */ import_react37.default.createElement("div", { className: "flex flex-col items-center justify-center min-h-screen w-full bg-slate-950 text-white" }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "bg-slate-900/50 p-8 rounded-2xl border border-slate-800 shadow-2xl text-center max-w-md" }, /* @__PURE__ */ import_react37.default.createElement("div", { className: "mb-4 text-red-500" }, /* @__PURE__ */ import_react37.default.createElement(
|
|
24653
24701
|
"svg",
|
package/dist/index.mjs
CHANGED
|
@@ -19349,7 +19349,7 @@ function XViewScene({
|
|
|
19349
19349
|
const viewParams = useMemo15(() => {
|
|
19350
19350
|
if (encryptedConfig) {
|
|
19351
19351
|
const data = decryptData(encryptedConfig);
|
|
19352
|
-
if (data) {
|
|
19352
|
+
if (data && data.id && data.owner_id && data.type) {
|
|
19353
19353
|
return data;
|
|
19354
19354
|
}
|
|
19355
19355
|
}
|
|
@@ -20306,6 +20306,7 @@ function XViewScene({
|
|
|
20306
20306
|
console.warn(
|
|
20307
20307
|
"Nenhum par\xE2metro de cena encontrado na URL ou falha na decripta\xE7\xE3o."
|
|
20308
20308
|
);
|
|
20309
|
+
setPermissionStatus("corrupted");
|
|
20309
20310
|
setIsLoading(false);
|
|
20310
20311
|
}
|
|
20311
20312
|
}, [
|
|
@@ -24740,6 +24741,53 @@ function XViewScene({
|
|
|
24740
24741
|
transform: "translateX(30px)",
|
|
24741
24742
|
transition: "all 300ms ease-in-out"
|
|
24742
24743
|
} : {};
|
|
24744
|
+
if (permissionStatus === "corrupted") {
|
|
24745
|
+
return /* @__PURE__ */ React36.createElement("div", { className: "flex flex-col items-center justify-center min-h-screen w-full bg-slate-950 text-white" }, /* @__PURE__ */ React36.createElement("div", { className: "bg-slate-900/50 p-8 rounded-2xl border border-slate-800 shadow-2xl text-center max-w-md animate-fade-in" }, /* @__PURE__ */ React36.createElement("div", { className: "mb-4 text-amber-500" }, /* @__PURE__ */ React36.createElement(
|
|
24746
|
+
"svg",
|
|
24747
|
+
{
|
|
24748
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24749
|
+
fill: "none",
|
|
24750
|
+
viewBox: "0 0 24 24",
|
|
24751
|
+
strokeWidth: 1.5,
|
|
24752
|
+
stroke: "currentColor",
|
|
24753
|
+
className: "w-16 h-16 mx-auto"
|
|
24754
|
+
},
|
|
24755
|
+
/* @__PURE__ */ React36.createElement(
|
|
24756
|
+
"path",
|
|
24757
|
+
{
|
|
24758
|
+
strokeLinecap: "round",
|
|
24759
|
+
strokeLinejoin: "round",
|
|
24760
|
+
d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
|
|
24761
|
+
}
|
|
24762
|
+
)
|
|
24763
|
+
)), /* @__PURE__ */ React36.createElement("h2", { className: "text-2xl font-bold mb-2" }, "Link Inv\xE1lido"), /* @__PURE__ */ React36.createElement("p", { className: "text-slate-400 mb-6" }, "O link de acesso a este cen\xE1rio est\xE1 corrompido, incompleto ou foi alterado de forma incorreta. Por favor, verifique a URL ou retorne ao dashboard."), /* @__PURE__ */ React36.createElement(
|
|
24764
|
+
"button",
|
|
24765
|
+
{
|
|
24766
|
+
onClick: handleNavigateBack,
|
|
24767
|
+
className: "flex items-center justify-center gap-2 w-full py-3 px-4 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors font-medium cursor-pointer"
|
|
24768
|
+
},
|
|
24769
|
+
/* @__PURE__ */ React36.createElement(
|
|
24770
|
+
"svg",
|
|
24771
|
+
{
|
|
24772
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24773
|
+
fill: "none",
|
|
24774
|
+
viewBox: "0 0 24 24",
|
|
24775
|
+
strokeWidth: 2,
|
|
24776
|
+
stroke: "currentColor",
|
|
24777
|
+
className: "w-5 h-5"
|
|
24778
|
+
},
|
|
24779
|
+
/* @__PURE__ */ React36.createElement(
|
|
24780
|
+
"path",
|
|
24781
|
+
{
|
|
24782
|
+
strokeLinecap: "round",
|
|
24783
|
+
strokeLinejoin: "round",
|
|
24784
|
+
d: "M10 19l-7-7m0 0l7-7m-7 7h18"
|
|
24785
|
+
}
|
|
24786
|
+
)
|
|
24787
|
+
),
|
|
24788
|
+
"Voltar ao Dashboard"
|
|
24789
|
+
)));
|
|
24790
|
+
}
|
|
24743
24791
|
if (permissionStatus === "denied") {
|
|
24744
24792
|
return /* @__PURE__ */ React36.createElement("div", { className: "flex flex-col items-center justify-center min-h-screen w-full bg-slate-950 text-white" }, /* @__PURE__ */ React36.createElement("div", { className: "bg-slate-900/50 p-8 rounded-2xl border border-slate-800 shadow-2xl text-center max-w-md" }, /* @__PURE__ */ React36.createElement("div", { className: "mb-4 text-red-500" }, /* @__PURE__ */ React36.createElement(
|
|
24745
24793
|
"svg",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lv-x-software-house/x_view",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
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",
|