@tmls-ai/support 0.1.7 → 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 +28 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -370,7 +370,14 @@ function SupportWidget(props) {
|
|
|
370
370
|
background: accent,
|
|
371
371
|
color: "#fff",
|
|
372
372
|
fontSize: 22,
|
|
373
|
-
boxShadow: "0 4px 16px rgba(0,0,0,0.35)"
|
|
373
|
+
boxShadow: "0 4px 16px rgba(0,0,0,0.35)",
|
|
374
|
+
// Center the ×/? glyph in the circle. Without flex centering the glyph
|
|
375
|
+
// renders as baseline-aligned inline text and sits visibly off-center.
|
|
376
|
+
display: "flex",
|
|
377
|
+
alignItems: "center",
|
|
378
|
+
justifyContent: "center",
|
|
379
|
+
lineHeight: 1,
|
|
380
|
+
padding: 0
|
|
374
381
|
};
|
|
375
382
|
return /* @__PURE__ */ jsxs("div", { "data-tmls-support-root": "true", style: { position: "fixed", bottom: 20, right: 20, zIndex: 2147483e3, fontFamily: "system-ui, sans-serif" }, children: [
|
|
376
383
|
open && /* @__PURE__ */ jsxs("div", { style: panelStyle, children: [
|
|
@@ -387,8 +394,8 @@ function SupportWidget(props) {
|
|
|
387
394
|
setOpen(false);
|
|
388
395
|
},
|
|
389
396
|
"aria-label": "Close",
|
|
390
|
-
style: { background: "transparent", border: "none", cursor: "pointer", color: "#8a8a92",
|
|
391
|
-
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 })
|
|
392
399
|
}
|
|
393
400
|
)
|
|
394
401
|
] })
|
|
@@ -510,9 +517,26 @@ function SupportWidget(props) {
|
|
|
510
517
|
] })
|
|
511
518
|
] })
|
|
512
519
|
] }),
|
|
513
|
-
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 }) : "?" })
|
|
514
521
|
] });
|
|
515
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
|
+
}
|
|
516
540
|
var tab = (active, accent) => ({
|
|
517
541
|
background: "transparent",
|
|
518
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",
|