@empoweredvote/ev-ui 0.6.4 → 0.6.6

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
@@ -40,6 +40,7 @@ __export(index_exports, {
40
40
  CompassIcon: () => CompassIcon,
41
41
  CompassKey: () => CompassKey,
42
42
  ExpandCompassNudge: () => ExpandCompassNudge,
43
+ FeedbackButton: () => FeedbackButton,
43
44
  FilterSidebar: () => FilterSidebar,
44
45
  GovernmentBodySection: () => GovernmentBodySection,
45
46
  Header: () => Header,
@@ -1377,6 +1378,10 @@ var defaultNavItems = [
1377
1378
  { label: "Treasury Tracker", href: "https://treasurytracker.empowered.vote" },
1378
1379
  { label: "Empowered Badges", href: "https://badges.empowered.vote" }
1379
1380
  ]
1381
+ },
1382
+ {
1383
+ label: "Feedback",
1384
+ href: "https://ev-landing.empowered.vote/feedback.html"
1380
1385
  }
1381
1386
  ];
1382
1387
  var defaultCtaButton = {
@@ -6150,6 +6155,7 @@ function StanceAccordion({
6150
6155
  const questionText = fullTopic == null ? void 0 : fullTopic.question_text;
6151
6156
  const topicQuotes = quotesCache.current ? quotesCache.current.filter((q) => {
6152
6157
  if (!q.issue) return false;
6158
+ if (q.candidateId && q.candidateId !== politicianId) return false;
6153
6159
  if (topic.topic_key) return q.issue === topic.topic_key;
6154
6160
  return topic.short_title && q.issue.toLowerCase() === topic.short_title.toLowerCase();
6155
6161
  }) : [];
@@ -6332,6 +6338,23 @@ function StanceAccordion({
6332
6338
  )
6333
6339
  );
6334
6340
  }
6341
+
6342
+ // src/FeedbackButton.jsx
6343
+ var import_react34 = __toESM(require("react"));
6344
+ var FEEDBACK_BASE = "https://ev-landing.empowered.vote/feedback.html";
6345
+ function FeedbackButton({ feature, className = "", label = "Feedback" }) {
6346
+ const href = feature ? `${FEEDBACK_BASE}?feature=${encodeURIComponent(feature)}` : FEEDBACK_BASE;
6347
+ return /* @__PURE__ */ import_react34.default.createElement(
6348
+ "a",
6349
+ {
6350
+ href,
6351
+ target: "_blank",
6352
+ rel: "noopener noreferrer",
6353
+ className
6354
+ },
6355
+ label
6356
+ );
6357
+ }
6335
6358
  // Annotate the CommonJS export names for ESM import in node:
6336
6359
  0 && (module.exports = {
6337
6360
  AuthForm,
@@ -6345,6 +6368,7 @@ function StanceAccordion({
6345
6368
  CompassIcon,
6346
6369
  CompassKey,
6347
6370
  ExpandCompassNudge,
6371
+ FeedbackButton,
6348
6372
  FilterSidebar,
6349
6373
  GovernmentBodySection,
6350
6374
  Header,