@tmls-ai/support 0.1.8 → 0.1.9
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 +20 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -394,8 +394,8 @@ function SupportWidget(props) {
|
|
|
394
394
|
setOpen(false);
|
|
395
395
|
},
|
|
396
396
|
"aria-label": "Close",
|
|
397
|
-
style: { background: "transparent", border: "none", cursor: "pointer", color: "#8a8a92",
|
|
398
|
-
children:
|
|
397
|
+
style: { background: "transparent", border: "none", cursor: "pointer", color: "#8a8a92", display: "inline-flex", alignItems: "center", padding: "2px 2px" },
|
|
398
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { size: 18 })
|
|
399
399
|
}
|
|
400
400
|
)
|
|
401
401
|
] })
|
|
@@ -517,9 +517,26 @@ function SupportWidget(props) {
|
|
|
517
517
|
] })
|
|
518
518
|
] })
|
|
519
519
|
] }),
|
|
520
|
-
showLauncher && (!isMobile || !open) && /* @__PURE__ */ jsx("button", { onClick: toggle, "aria-label": "Support", style: launcherStyle, children: open && !isMobile ?
|
|
520
|
+
showLauncher && (!isMobile || !open) && /* @__PURE__ */ jsx("button", { onClick: toggle, "aria-label": "Support", style: launcherStyle, children: open && !isMobile ? /* @__PURE__ */ jsx(CloseIcon, { size: 20 }) : "?" })
|
|
521
521
|
] });
|
|
522
522
|
}
|
|
523
|
+
function CloseIcon({ size = 20 }) {
|
|
524
|
+
return /* @__PURE__ */ jsx(
|
|
525
|
+
"svg",
|
|
526
|
+
{
|
|
527
|
+
width: size,
|
|
528
|
+
height: size,
|
|
529
|
+
viewBox: "0 0 24 24",
|
|
530
|
+
fill: "none",
|
|
531
|
+
stroke: "currentColor",
|
|
532
|
+
strokeWidth: 2.25,
|
|
533
|
+
strokeLinecap: "round",
|
|
534
|
+
"aria-hidden": "true",
|
|
535
|
+
style: { display: "block" },
|
|
536
|
+
children: /* @__PURE__ */ jsx("path", { d: "M6 6 L18 18 M18 6 L6 18" })
|
|
537
|
+
}
|
|
538
|
+
);
|
|
539
|
+
}
|
|
523
540
|
var tab = (active, accent) => ({
|
|
524
541
|
background: "transparent",
|
|
525
542
|
border: "none",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmls-ai/support",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Embeddable Timeless support widget — bottom-right report overlay (type / severity / screenshot) + ticket thread. Auto-captures context, talks to tmls-support-api.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|