@lv-x-software-house/x_view 1.2.3-dev.1 → 1.2.3-dev.3
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4455,7 +4455,7 @@ var renderTextWithMentions = (text, availableNodes, onMentionClick, activeMentio
|
|
|
4455
4455
|
title: `Node externo ou n\xE3o carregado na view atual (ID: ${nodeId})`
|
|
4456
4456
|
},
|
|
4457
4457
|
/* @__PURE__ */ import_react7.default.createElement("span", { className: "opacity-60 text-[0.8em]" }, "@"),
|
|
4458
|
-
"
|
|
4458
|
+
"Mention"
|
|
4459
4459
|
);
|
|
4460
4460
|
}
|
|
4461
4461
|
const displayName = node.name;
|
|
@@ -4550,7 +4550,6 @@ function DescriptionDisplay({
|
|
|
4550
4550
|
currentBranchDirection = null,
|
|
4551
4551
|
onSaveDescription,
|
|
4552
4552
|
onStepChange
|
|
4553
|
-
// 1. Adicione a nova prop aqui
|
|
4554
4553
|
}) {
|
|
4555
4554
|
const [localDescription, setLocalDescription] = (0, import_react7.useState)(description || "");
|
|
4556
4555
|
(0, import_react7.useEffect)(() => {
|
|
@@ -4744,6 +4743,7 @@ function DescriptionDisplay({
|
|
|
4744
4743
|
const resolved = resolveDescriptionReference(trimmed, availableNodes, availableAncestries);
|
|
4745
4744
|
if (!resolved) return null;
|
|
4746
4745
|
if (resolved.error) return null;
|
|
4746
|
+
const cleanContent = resolved.content.trim();
|
|
4747
4747
|
return /* @__PURE__ */ import_react7.default.createElement("div", { className: "my-1 group relative" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
4748
4748
|
"div",
|
|
4749
4749
|
{
|
|
@@ -4760,7 +4760,7 @@ function DescriptionDisplay({
|
|
|
4760
4760
|
), /* @__PURE__ */ import_react7.default.createElement("div", { className: `
|
|
4761
4761
|
pl-3 border-l border-white/10 group-hover:border-indigo-500/30 transition-colors
|
|
4762
4762
|
${isActiveSection ? "opacity-100" : "opacity-90"}
|
|
4763
|
-
` }, renderMixedContent(
|
|
4763
|
+
` }, renderMixedContent(cleanContent, index, isActiveSection, -1, setRef)));
|
|
4764
4764
|
};
|
|
4765
4765
|
globalCheckboxCounterRef.current = 0;
|
|
4766
4766
|
const hasUnsavedChanges = localDescription !== (description || "");
|
|
@@ -4779,7 +4779,7 @@ function DescriptionDisplay({
|
|
|
4779
4779
|
const trailingSpace = match ? match[3] : "";
|
|
4780
4780
|
if (index === 0) leadingSpace = "";
|
|
4781
4781
|
const isRef = bodyText.trim().match(/^\[\[REF:(node|ancestry):([a-zA-Z0-9\-_]+):([a-zA-Z0-9\-_]+)\]\]$/);
|
|
4782
|
-
return /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, { key: index }, /* @__PURE__ */ import_react7.default.createElement("span", null, leadingSpace), isRef ? renderReferenceSection(bodyText, index, isSectionContextActive, setRef) : renderMixedContent(bodyText, index, isSectionContextActive, activeMentionIndex, setRef), /* @__PURE__ */ import_react7.default.createElement("span", null, trailingSpace));
|
|
4782
|
+
return /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, { key: index }, !isRef && /* @__PURE__ */ import_react7.default.createElement("span", null, leadingSpace), isRef ? renderReferenceSection(bodyText, index, isSectionContextActive, setRef) : renderMixedContent(bodyText, index, isSectionContextActive, activeMentionIndex, setRef), !isRef && /* @__PURE__ */ import_react7.default.createElement("span", null, trailingSpace));
|
|
4783
4783
|
})), hasUnsavedChanges && onSaveDescription && /* @__PURE__ */ import_react7.default.createElement("div", { className: "absolute bottom-2 left-2 z-[100] animate-in slide-in-from-bottom-2 fade-in duration-300" }, /* @__PURE__ */ import_react7.default.createElement(
|
|
4784
4784
|
"button",
|
|
4785
4785
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -4411,7 +4411,7 @@ var renderTextWithMentions = (text, availableNodes, onMentionClick, activeMentio
|
|
|
4411
4411
|
title: `Node externo ou n\xE3o carregado na view atual (ID: ${nodeId})`
|
|
4412
4412
|
},
|
|
4413
4413
|
/* @__PURE__ */ React6.createElement("span", { className: "opacity-60 text-[0.8em]" }, "@"),
|
|
4414
|
-
"
|
|
4414
|
+
"Mention"
|
|
4415
4415
|
);
|
|
4416
4416
|
}
|
|
4417
4417
|
const displayName = node.name;
|
|
@@ -4506,7 +4506,6 @@ function DescriptionDisplay({
|
|
|
4506
4506
|
currentBranchDirection = null,
|
|
4507
4507
|
onSaveDescription,
|
|
4508
4508
|
onStepChange
|
|
4509
|
-
// 1. Adicione a nova prop aqui
|
|
4510
4509
|
}) {
|
|
4511
4510
|
const [localDescription, setLocalDescription] = useState7(description || "");
|
|
4512
4511
|
useEffect6(() => {
|
|
@@ -4700,6 +4699,7 @@ function DescriptionDisplay({
|
|
|
4700
4699
|
const resolved = resolveDescriptionReference(trimmed, availableNodes, availableAncestries);
|
|
4701
4700
|
if (!resolved) return null;
|
|
4702
4701
|
if (resolved.error) return null;
|
|
4702
|
+
const cleanContent = resolved.content.trim();
|
|
4703
4703
|
return /* @__PURE__ */ React6.createElement("div", { className: "my-1 group relative" }, /* @__PURE__ */ React6.createElement(
|
|
4704
4704
|
"div",
|
|
4705
4705
|
{
|
|
@@ -4716,7 +4716,7 @@ function DescriptionDisplay({
|
|
|
4716
4716
|
), /* @__PURE__ */ React6.createElement("div", { className: `
|
|
4717
4717
|
pl-3 border-l border-white/10 group-hover:border-indigo-500/30 transition-colors
|
|
4718
4718
|
${isActiveSection ? "opacity-100" : "opacity-90"}
|
|
4719
|
-
` }, renderMixedContent(
|
|
4719
|
+
` }, renderMixedContent(cleanContent, index, isActiveSection, -1, setRef)));
|
|
4720
4720
|
};
|
|
4721
4721
|
globalCheckboxCounterRef.current = 0;
|
|
4722
4722
|
const hasUnsavedChanges = localDescription !== (description || "");
|
|
@@ -4735,7 +4735,7 @@ function DescriptionDisplay({
|
|
|
4735
4735
|
const trailingSpace = match ? match[3] : "";
|
|
4736
4736
|
if (index === 0) leadingSpace = "";
|
|
4737
4737
|
const isRef = bodyText.trim().match(/^\[\[REF:(node|ancestry):([a-zA-Z0-9\-_]+):([a-zA-Z0-9\-_]+)\]\]$/);
|
|
4738
|
-
return /* @__PURE__ */ React6.createElement(React6.Fragment, { key: index }, /* @__PURE__ */ React6.createElement("span", null, leadingSpace), isRef ? renderReferenceSection(bodyText, index, isSectionContextActive, setRef) : renderMixedContent(bodyText, index, isSectionContextActive, activeMentionIndex, setRef), /* @__PURE__ */ React6.createElement("span", null, trailingSpace));
|
|
4738
|
+
return /* @__PURE__ */ React6.createElement(React6.Fragment, { key: index }, !isRef && /* @__PURE__ */ React6.createElement("span", null, leadingSpace), isRef ? renderReferenceSection(bodyText, index, isSectionContextActive, setRef) : renderMixedContent(bodyText, index, isSectionContextActive, activeMentionIndex, setRef), !isRef && /* @__PURE__ */ React6.createElement("span", null, trailingSpace));
|
|
4739
4739
|
})), hasUnsavedChanges && onSaveDescription && /* @__PURE__ */ React6.createElement("div", { className: "absolute bottom-2 left-2 z-[100] animate-in slide-in-from-bottom-2 fade-in duration-300" }, /* @__PURE__ */ React6.createElement(
|
|
4740
4740
|
"button",
|
|
4741
4741
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lv-x-software-house/x_view",
|
|
3
|
-
"version": "1.2.3-dev.
|
|
3
|
+
"version": "1.2.3-dev.3",
|
|
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",
|