@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 +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ function getContrastColor(hexColor) {
|
|
|
16
16
|
|
|
17
17
|
// src/components/FloatingButton.tsx
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
function FloatingButton({ onPickClick, onPanelToggle, draftCount, panelOpen, position, buttonColor }) {
|
|
19
|
+
function FloatingButton({ onPickClick, onPanelToggle, draftCount, panelOpen, position, buttonColor, authenticated }) {
|
|
20
20
|
const isBottom = position.includes("bottom");
|
|
21
21
|
const isRight = position.includes("right");
|
|
22
22
|
const anchor = {
|
|
@@ -30,7 +30,7 @@ function FloatingButton({ onPickClick, onPanelToggle, draftCount, panelOpen, pos
|
|
|
30
30
|
gap: 8
|
|
31
31
|
};
|
|
32
32
|
return /* @__PURE__ */ jsxs("div", { style: anchor, children: [
|
|
33
|
-
|
|
33
|
+
authenticated && /* @__PURE__ */ jsxs(
|
|
34
34
|
"button",
|
|
35
35
|
{
|
|
36
36
|
onClick: onPanelToggle,
|
|
@@ -60,7 +60,7 @@ function FloatingButton({ onPickClick, onPanelToggle, draftCount, panelOpen, pos
|
|
|
60
60
|
/* @__PURE__ */ jsx("rect", { x: "2", y: "13", width: "2", height: "2", rx: "0.5", fill: "currentColor" }),
|
|
61
61
|
/* @__PURE__ */ jsx("rect", { x: "6", y: "13", width: "10", height: "2", rx: "0.5", fill: "currentColor" })
|
|
62
62
|
] }),
|
|
63
|
-
/* @__PURE__ */ jsx(
|
|
63
|
+
draftCount > 0 && /* @__PURE__ */ jsx(
|
|
64
64
|
"span",
|
|
65
65
|
{
|
|
66
66
|
style: {
|
|
@@ -513,7 +513,7 @@ function SidePanel({
|
|
|
513
513
|
"Feedback Session",
|
|
514
514
|
/* @__PURE__ */ jsxs4("span", { style: { fontSize: 11, fontWeight: 400, color: "#9ca3af", marginLeft: 6 }, children: [
|
|
515
515
|
"v",
|
|
516
|
-
"0.1.
|
|
516
|
+
"0.1.15"
|
|
517
517
|
] })
|
|
518
518
|
] }),
|
|
519
519
|
/* @__PURE__ */ jsx4(
|
|
@@ -1861,7 +1861,8 @@ function FeedbackWidget({
|
|
|
1861
1861
|
draftCount: state.drafts.length,
|
|
1862
1862
|
panelOpen: state.panelOpen,
|
|
1863
1863
|
position,
|
|
1864
|
-
buttonColor
|
|
1864
|
+
buttonColor,
|
|
1865
|
+
authenticated: session.status === "authenticated"
|
|
1865
1866
|
}
|
|
1866
1867
|
),
|
|
1867
1868
|
state.picking && /* @__PURE__ */ jsx7(PickOverlay, { onPick: handlePick, onCancel: handleCancelPicking }),
|