feedback-vos 1.0.34 → 1.0.35

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.mjs CHANGED
@@ -1406,7 +1406,7 @@ function getDefaultLanguage() {
1406
1406
  }
1407
1407
  function isWidgetEnabled() {
1408
1408
  if (typeof process !== "undefined" && process.env.NEXT_PUBLIC_FEEDBACK_ENABLED !== void 0) {
1409
- const enabled = process.env.NEXT_PUBLIC_FEEDBACK_ENABLED.toLowerCase();
1409
+ const enabled = String(process.env.NEXT_PUBLIC_FEEDBACK_ENABLED).toLowerCase().trim();
1410
1410
  return enabled !== "false" && enabled !== "0";
1411
1411
  }
1412
1412
  return true;
@@ -1434,24 +1434,35 @@ function Widget({
1434
1434
  const isLeft = position.includes("left");
1435
1435
  const panelPositionClass = isTop ? "absolute top-full mt-2" : "absolute bottom-full mb-2";
1436
1436
  const panelAlignmentClass = isLeft ? "left-0" : "right-0";
1437
- return /* @__PURE__ */ jsx("div", { "data-feedback-widget": "true", className: `fixed ${positionClasses[position]} z-50`, children: /* @__PURE__ */ jsxs(Popover, { className: "relative", children: [
1438
- /* @__PURE__ */ jsx(Popover.Panel, { className: `${panelPositionClass} ${panelAlignmentClass}`, children: /* @__PURE__ */ jsx(
1439
- WidgetForm,
1440
- {
1441
- integration,
1442
- githubConfig,
1443
- language: finalLanguage,
1444
- theme: finalTheme
1445
- }
1446
- ) }),
1447
- /* @__PURE__ */ jsxs(Popover.Button, { className: "bg-brand-500 rounded-full px-3 md:px-3 h-12 text-white flex items-center group focus:outline-none shadow-lg hover:shadow-xl transition-shadow", children: [
1448
- /* @__PURE__ */ jsx(ChatTeardropDots, { className: "w-6 h-6 flex-shrink-0" }),
1449
- /* @__PURE__ */ jsxs("span", { className: "max-w-0 overflow-hidden group-hover:max-w-xs md:group-hover:max-w-xs transition-all duration-500 ease-linear hidden md:block", children: [
1450
- /* @__PURE__ */ jsx("span", { className: "pl-2" }),
1451
- t.widget.button
1437
+ return /* @__PURE__ */ jsx(
1438
+ "div",
1439
+ {
1440
+ "data-feedback-widget": "true",
1441
+ className: `fixed ${positionClasses[position]} z-50`,
1442
+ style: {
1443
+ position: "fixed",
1444
+ zIndex: 50
1445
+ },
1446
+ children: /* @__PURE__ */ jsxs(Popover, { className: "relative", children: [
1447
+ /* @__PURE__ */ jsx(Popover.Panel, { className: `${panelPositionClass} ${panelAlignmentClass}`, children: /* @__PURE__ */ jsx(
1448
+ WidgetForm,
1449
+ {
1450
+ integration,
1451
+ githubConfig,
1452
+ language: finalLanguage,
1453
+ theme: finalTheme
1454
+ }
1455
+ ) }),
1456
+ /* @__PURE__ */ jsxs(Popover.Button, { className: "bg-brand-500 rounded-full px-3 md:px-3 h-12 text-white flex items-center group focus:outline-none shadow-lg hover:shadow-xl transition-shadow", children: [
1457
+ /* @__PURE__ */ jsx(ChatTeardropDots, { className: "w-6 h-6 flex-shrink-0" }),
1458
+ /* @__PURE__ */ jsxs("span", { className: "max-w-0 overflow-hidden group-hover:max-w-xs md:group-hover:max-w-xs transition-all duration-500 ease-linear hidden md:block", children: [
1459
+ /* @__PURE__ */ jsx("span", { className: "pl-2" }),
1460
+ t.widget.button
1461
+ ] })
1462
+ ] })
1452
1463
  ] })
1453
- ] })
1454
- ] }) });
1464
+ }
1465
+ );
1455
1466
  }
1456
1467
 
1457
1468
  export { Widget };