@david-xpn/llm-ui-feedback 0.1.14 → 0.1.15

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
@@ -52,7 +52,7 @@ function getContrastColor(hexColor) {
52
52
 
53
53
  // src/components/FloatingButton.tsx
54
54
  var import_jsx_runtime = require("react/jsx-runtime");
55
- function FloatingButton({ onPickClick, onPanelToggle, draftCount, panelOpen, position, buttonColor }) {
55
+ function FloatingButton({ onPickClick, onPanelToggle, draftCount, panelOpen, position, buttonColor, authenticated }) {
56
56
  const isBottom = position.includes("bottom");
57
57
  const isRight = position.includes("right");
58
58
  const anchor = {
@@ -66,7 +66,7 @@ function FloatingButton({ onPickClick, onPanelToggle, draftCount, panelOpen, pos
66
66
  gap: 8
67
67
  };
68
68
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: anchor, children: [
69
- draftCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
69
+ authenticated && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
70
70
  "button",
71
71
  {
72
72
  onClick: onPanelToggle,
@@ -96,7 +96,7 @@ function FloatingButton({ onPickClick, onPanelToggle, draftCount, panelOpen, pos
96
96
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "2", y: "13", width: "2", height: "2", rx: "0.5", fill: "currentColor" }),
97
97
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "6", y: "13", width: "10", height: "2", rx: "0.5", fill: "currentColor" })
98
98
  ] }),
99
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
99
+ draftCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
100
100
  "span",
101
101
  {
102
102
  style: {
@@ -549,7 +549,7 @@ function SidePanel({
549
549
  "Feedback Session",
550
550
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { style: { fontSize: 11, fontWeight: 400, color: "#9ca3af", marginLeft: 6 }, children: [
551
551
  "v",
552
- "0.1.14"
552
+ "0.1.15"
553
553
  ] })
554
554
  ] }),
555
555
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -1897,7 +1897,8 @@ function FeedbackWidget({
1897
1897
  draftCount: state.drafts.length,
1898
1898
  panelOpen: state.panelOpen,
1899
1899
  position,
1900
- buttonColor
1900
+ buttonColor,
1901
+ authenticated: session.status === "authenticated"
1901
1902
  }
1902
1903
  ),
1903
1904
  state.picking && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PickOverlay, { onPick: handlePick, onCancel: handleCancelPicking }),