@empoweredvote/ev-ui 0.9.3 → 0.9.5

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
@@ -68,6 +68,7 @@ __export(index_exports, {
68
68
  dataVizPalette: () => dataVizPalette,
69
69
  defaultCtaButton: () => defaultCtaButton,
70
70
  defaultNavItems: () => defaultNavItems,
71
+ detectFeature: () => detectFeature,
71
72
  duration: () => duration,
72
73
  easing: () => easing,
73
74
  evAppLinks: () => evAppLinks,
@@ -76,6 +77,7 @@ __export(index_exports, {
76
77
  fontSizes: () => fontSizes,
77
78
  fontWeights: () => fontWeights,
78
79
  fonts: () => fonts,
80
+ getFeedbackUrl: () => getFeedbackUrl,
79
81
  letterSpacing: () => letterSpacing,
80
82
  lineHeights: () => lineHeights,
81
83
  opacity: () => opacity,
@@ -372,7 +374,7 @@ function RadarChartCore({
372
374
  cy,
373
375
  r: matches ? dotRadius * (8 / 7) : dotRadius,
374
376
  fill: matches ? "#fed12e" : "#7C6B9E",
375
- stroke: "#FFFFFF",
377
+ stroke: matches ? "#fed12e" : "#7C6B9E",
376
378
  strokeWidth: 3
377
379
  }
378
380
  );
@@ -414,7 +416,7 @@ function RadarChartCore({
414
416
  cy,
415
417
  r: matches ? dotRadius * (8 / 7) : dotRadius,
416
418
  fill: matches ? "#fed12e" : "#5A9A6E",
417
- stroke: "#FFFFFF",
419
+ stroke: matches ? "#fed12e" : "#5A9A6E",
418
420
  strokeWidth: 3
419
421
  }
420
422
  );
@@ -975,7 +977,7 @@ function useMediaQuery(query) {
975
977
  function Header({
976
978
  logoSrc,
977
979
  logoAlt = "Empowered Vote",
978
- logoHref = "https://login.empowered.vote/profile",
980
+ logoHref = "https://empowered.vote",
979
981
  navItems = [],
980
982
  ctaButton,
981
983
  secondaryAction,
@@ -1588,7 +1590,7 @@ var import_react8 = __toESM(require("react"));
1588
1590
 
1589
1591
  // src/FeedbackButton.jsx
1590
1592
  var import_react7 = __toESM(require("react"));
1591
- var FEEDBACK_BASE_DEFAULT = "https://alpha.empowered.vote/feedback";
1593
+ var FEEDBACK_BASE_DEFAULT = "https://empowered.vote/feedback";
1592
1594
  var HOST_FEATURE_MAP = {
1593
1595
  "compass.empowered.vote": "compass",
1594
1596
  "essentials.empowered.vote": "essentials",
@@ -1598,7 +1600,8 @@ var HOST_FEATURE_MAP = {
1598
1600
  "ctc.empowered.vote": "trivia",
1599
1601
  "alpha.empowered.vote": "landing",
1600
1602
  "ev-landing.empowered.vote": "landing",
1601
- "ev-landing.onrender.com": "landing"
1603
+ "ev-landing.onrender.com": "landing",
1604
+ "empowered.vote": "landing"
1602
1605
  };
1603
1606
  function detectFeature() {
1604
1607
  if (typeof window === "undefined") return void 0;
@@ -1613,9 +1616,10 @@ function detectFeature() {
1613
1616
  }
1614
1617
  return "other";
1615
1618
  }
1616
- function buildHref({ baseUrl, feature, includeUrl }) {
1619
+ function getFeedbackUrl({ feature, baseUrl = FEEDBACK_BASE_DEFAULT, includeUrl = true } = {}) {
1620
+ const resolvedFeature = feature != null ? feature : detectFeature();
1617
1621
  const params = new URLSearchParams();
1618
- if (feature) params.set("feature", feature);
1622
+ if (resolvedFeature) params.set("feature", resolvedFeature);
1619
1623
  if (includeUrl && typeof window !== "undefined") {
1620
1624
  params.set("url", window.location.href);
1621
1625
  }
@@ -1631,8 +1635,7 @@ function FeedbackButton({
1631
1635
  className = "",
1632
1636
  style = {}
1633
1637
  }) {
1634
- const feature = featureProp != null ? featureProp : detectFeature();
1635
- const href = buildHref({ baseUrl, feature, includeUrl });
1638
+ const href = getFeedbackUrl({ feature: featureProp, baseUrl, includeUrl });
1636
1639
  const pillStyle = {
1637
1640
  display: "inline-flex",
1638
1641
  alignItems: "center",
@@ -6849,6 +6852,7 @@ function StanceAccordion({
6849
6852
  dataVizPalette,
6850
6853
  defaultCtaButton,
6851
6854
  defaultNavItems,
6855
+ detectFeature,
6852
6856
  duration,
6853
6857
  easing,
6854
6858
  evAppLinks,
@@ -6857,6 +6861,7 @@ function StanceAccordion({
6857
6861
  fontSizes,
6858
6862
  fontWeights,
6859
6863
  fonts,
6864
+ getFeedbackUrl,
6860
6865
  letterSpacing,
6861
6866
  lineHeights,
6862
6867
  opacity,