@lv-x-software-house/x_view 1.2.2 → 1.2.3-dev.2

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 CHANGED
@@ -4446,7 +4446,18 @@ var renderTextWithMentions = (text, availableNodes, onMentionClick, activeMentio
4446
4446
  }
4447
4447
  const nodeId = part;
4448
4448
  const node = availableNodes.find((n) => String(n.id) === String(nodeId));
4449
- if (!node) return null;
4449
+ if (!node) {
4450
+ return /* @__PURE__ */ import_react7.default.createElement(
4451
+ "span",
4452
+ {
4453
+ key: i,
4454
+ className: "inline-flex items-center gap-0.5 align-baseline font-medium px-1.5 rounded-md mx-0.5 select-none text-[0.95em] text-slate-400 bg-slate-800/40 border border-slate-600/50 border-dashed cursor-help",
4455
+ title: `Node externo ou n\xE3o carregado na view atual (ID: ${nodeId})`
4456
+ },
4457
+ /* @__PURE__ */ import_react7.default.createElement("span", { className: "opacity-60 text-[0.8em]" }, "@"),
4458
+ "Mention"
4459
+ );
4460
+ }
4450
4461
  const displayName = node.name;
4451
4462
  const currentMentionIdx = mentionCounterRef.current;
4452
4463
  const isMentionActive = activeMentionIndex === currentMentionIdx;
@@ -4733,7 +4744,7 @@ function DescriptionDisplay({
4733
4744
  const resolved = resolveDescriptionReference(trimmed, availableNodes, availableAncestries);
4734
4745
  if (!resolved) return null;
4735
4746
  if (resolved.error) return null;
4736
- return /* @__PURE__ */ import_react7.default.createElement("div", { className: "my-1 group relative" }, /* @__PURE__ */ import_react7.default.createElement(
4747
+ return /* @__PURE__ */ import_react7.default.createElement("div", { className: "my-3 group relative" }, /* @__PURE__ */ import_react7.default.createElement(
4737
4748
  "div",
4738
4749
  {
4739
4750
  className: "flex items-center gap-1.5 mb-1 select-none opacity-50 hover:opacity-100 transition-opacity pl-1 cursor-pointer w-fit",
@@ -4768,7 +4779,7 @@ function DescriptionDisplay({
4768
4779
  const trailingSpace = match ? match[3] : "";
4769
4780
  if (index === 0) leadingSpace = "";
4770
4781
  const isRef = bodyText.trim().match(/^\[\[REF:(node|ancestry):([a-zA-Z0-9\-_]+):([a-zA-Z0-9\-_]+)\]\]$/);
4771
- 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));
4772
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(
4773
4784
  "button",
4774
4785
  {
package/dist/index.mjs CHANGED
@@ -4402,7 +4402,18 @@ var renderTextWithMentions = (text, availableNodes, onMentionClick, activeMentio
4402
4402
  }
4403
4403
  const nodeId = part;
4404
4404
  const node = availableNodes.find((n) => String(n.id) === String(nodeId));
4405
- if (!node) return null;
4405
+ if (!node) {
4406
+ return /* @__PURE__ */ React6.createElement(
4407
+ "span",
4408
+ {
4409
+ key: i,
4410
+ className: "inline-flex items-center gap-0.5 align-baseline font-medium px-1.5 rounded-md mx-0.5 select-none text-[0.95em] text-slate-400 bg-slate-800/40 border border-slate-600/50 border-dashed cursor-help",
4411
+ title: `Node externo ou n\xE3o carregado na view atual (ID: ${nodeId})`
4412
+ },
4413
+ /* @__PURE__ */ React6.createElement("span", { className: "opacity-60 text-[0.8em]" }, "@"),
4414
+ "Mention"
4415
+ );
4416
+ }
4406
4417
  const displayName = node.name;
4407
4418
  const currentMentionIdx = mentionCounterRef.current;
4408
4419
  const isMentionActive = activeMentionIndex === currentMentionIdx;
@@ -4689,7 +4700,7 @@ function DescriptionDisplay({
4689
4700
  const resolved = resolveDescriptionReference(trimmed, availableNodes, availableAncestries);
4690
4701
  if (!resolved) return null;
4691
4702
  if (resolved.error) return null;
4692
- return /* @__PURE__ */ React6.createElement("div", { className: "my-1 group relative" }, /* @__PURE__ */ React6.createElement(
4703
+ return /* @__PURE__ */ React6.createElement("div", { className: "my-3 group relative" }, /* @__PURE__ */ React6.createElement(
4693
4704
  "div",
4694
4705
  {
4695
4706
  className: "flex items-center gap-1.5 mb-1 select-none opacity-50 hover:opacity-100 transition-opacity pl-1 cursor-pointer w-fit",
@@ -4724,7 +4735,7 @@ function DescriptionDisplay({
4724
4735
  const trailingSpace = match ? match[3] : "";
4725
4736
  if (index === 0) leadingSpace = "";
4726
4737
  const isRef = bodyText.trim().match(/^\[\[REF:(node|ancestry):([a-zA-Z0-9\-_]+):([a-zA-Z0-9\-_]+)\]\]$/);
4727
- 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));
4728
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(
4729
4740
  "button",
4730
4741
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lv-x-software-house/x_view",
3
- "version": "1.2.2",
3
+ "version": "1.2.3-dev.2",
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",