@lv-x-software-house/x_view 1.2.2-dev.4 → 1.2.2-dev.6

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
@@ -3766,6 +3766,7 @@ function DescriptionEditModal({
3766
3766
  e.preventDefault();
3767
3767
  e.stopPropagation();
3768
3768
  e.stopImmediatePropagation();
3769
+ if (hoverTimeoutRef.current) clearTimeout(hoverTimeoutRef.current);
3769
3770
  setIsMentionModalOpen(false);
3770
3771
  setMentionTriggerIndex(null);
3771
3772
  setTooltipData(null);
@@ -3859,6 +3860,7 @@ function DescriptionEditModal({
3859
3860
  setIsImportModalOpen(false);
3860
3861
  };
3861
3862
  const handleMentionSelect = (node) => {
3863
+ if (hoverTimeoutRef.current) clearTimeout(hoverTimeoutRef.current);
3862
3864
  const tag = `[[MENTION:node:${node.id}]]`;
3863
3865
  const el = textareaRef.current;
3864
3866
  if (mentionTriggerIndex !== null && el) {
@@ -4072,7 +4074,7 @@ function DescriptionEditModal({
4072
4074
  className: "px-3 py-1.5 bg-indigo-600/30 hover:bg-indigo-600 text-indigo-200 text-xs rounded-lg transition-colors disabled:opacity-50"
4073
4075
  },
4074
4076
  "OK"
4075
- ))), /* @__PURE__ */ import_react5.default.createElement("div", { className: "p-2 border-t border-white/10 bg-slate-950/50 flex justify-end" }, /* @__PURE__ */ import_react5.default.createElement("button", { onClick: () => setIsImageModalOpen(false), className: "px-3 py-1.5 text-xs text-slate-400 hover:text-white transition-colors" }, "Cancelar")))), /* @__PURE__ */ import_react5.default.createElement("p", { className: "mt-2 text-xs text-slate-500 shrink-0" }, "Dica: Tags agora incluem ID (ex: ", /* @__PURE__ */ import_react5.default.createElement("b", null, "*/1:a9f2/"), ") para garantir que refer\xEAncias n\xE3o quebrem se voc\xEA reordenar o texto.")),
4077
+ ))), /* @__PURE__ */ import_react5.default.createElement("div", { className: "p-2 border-t border-white/10 bg-slate-950/50 flex justify-end" }, /* @__PURE__ */ import_react5.default.createElement("button", { onClick: () => setIsImageModalOpen(false), className: "px-3 py-1.5 text-xs text-slate-400 hover:text-white transition-colors" }, "Cancelar"))))),
4076
4078
  /* @__PURE__ */ import_react5.default.createElement("div", { className: "sticky bottom-0 z-10 bg-slate-950/95 border-t border-white/10 px-6 py-4 flex justify-end gap-3 shrink-0" }, /* @__PURE__ */ import_react5.default.createElement("button", { onClick: handleSave, className: "px-6 py-2 rounded-lg bg-gradient-to-tr from-indigo-600 to-indigo-400 hover:from-indigo-500 hover:to-indigo-300 transition-colors font-semibold text-sm shadow-[0_8px_24px_rgba(99,102,241,0.35)]" }, "Salvar"))
4077
4079
  )), tooltipData && /* @__PURE__ */ import_react5.default.createElement(
4078
4080
  "div",
package/dist/index.mjs CHANGED
@@ -3722,6 +3722,7 @@ function DescriptionEditModal({
3722
3722
  e.preventDefault();
3723
3723
  e.stopPropagation();
3724
3724
  e.stopImmediatePropagation();
3725
+ if (hoverTimeoutRef.current) clearTimeout(hoverTimeoutRef.current);
3725
3726
  setIsMentionModalOpen(false);
3726
3727
  setMentionTriggerIndex(null);
3727
3728
  setTooltipData(null);
@@ -3815,6 +3816,7 @@ function DescriptionEditModal({
3815
3816
  setIsImportModalOpen(false);
3816
3817
  };
3817
3818
  const handleMentionSelect = (node) => {
3819
+ if (hoverTimeoutRef.current) clearTimeout(hoverTimeoutRef.current);
3818
3820
  const tag = `[[MENTION:node:${node.id}]]`;
3819
3821
  const el = textareaRef.current;
3820
3822
  if (mentionTriggerIndex !== null && el) {
@@ -4028,7 +4030,7 @@ function DescriptionEditModal({
4028
4030
  className: "px-3 py-1.5 bg-indigo-600/30 hover:bg-indigo-600 text-indigo-200 text-xs rounded-lg transition-colors disabled:opacity-50"
4029
4031
  },
4030
4032
  "OK"
4031
- ))), /* @__PURE__ */ React5.createElement("div", { className: "p-2 border-t border-white/10 bg-slate-950/50 flex justify-end" }, /* @__PURE__ */ React5.createElement("button", { onClick: () => setIsImageModalOpen(false), className: "px-3 py-1.5 text-xs text-slate-400 hover:text-white transition-colors" }, "Cancelar")))), /* @__PURE__ */ React5.createElement("p", { className: "mt-2 text-xs text-slate-500 shrink-0" }, "Dica: Tags agora incluem ID (ex: ", /* @__PURE__ */ React5.createElement("b", null, "*/1:a9f2/"), ") para garantir que refer\xEAncias n\xE3o quebrem se voc\xEA reordenar o texto.")),
4033
+ ))), /* @__PURE__ */ React5.createElement("div", { className: "p-2 border-t border-white/10 bg-slate-950/50 flex justify-end" }, /* @__PURE__ */ React5.createElement("button", { onClick: () => setIsImageModalOpen(false), className: "px-3 py-1.5 text-xs text-slate-400 hover:text-white transition-colors" }, "Cancelar"))))),
4032
4034
  /* @__PURE__ */ React5.createElement("div", { className: "sticky bottom-0 z-10 bg-slate-950/95 border-t border-white/10 px-6 py-4 flex justify-end gap-3 shrink-0" }, /* @__PURE__ */ React5.createElement("button", { onClick: handleSave, className: "px-6 py-2 rounded-lg bg-gradient-to-tr from-indigo-600 to-indigo-400 hover:from-indigo-500 hover:to-indigo-300 transition-colors font-semibold text-sm shadow-[0_8px_24px_rgba(99,102,241,0.35)]" }, "Salvar"))
4033
4035
  )), tooltipData && /* @__PURE__ */ React5.createElement(
4034
4036
  "div",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lv-x-software-house/x_view",
3
- "version": "1.2.2-dev.4",
3
+ "version": "1.2.2-dev.6",
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",