@empoweredvote/ev-ui 0.4.1 → 0.4.3

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
@@ -3092,6 +3092,15 @@ function PoliticianProfile({
3092
3092
  marginBottom: spacing[3],
3093
3093
  lineHeight: 1.5
3094
3094
  },
3095
+ bioText: {
3096
+ fontFamily: fonts.primary,
3097
+ fontSize: fontSizes.sm,
3098
+ color: "#6A7282",
3099
+ margin: 0,
3100
+ marginTop: spacing[1],
3101
+ marginBottom: spacing[3],
3102
+ lineHeight: 1.5
3103
+ },
3095
3104
  metaRow: {
3096
3105
  display: "flex",
3097
3106
  alignItems: "center",
@@ -3211,7 +3220,7 @@ function PoliticianProfile({
3211
3220
  style: styles2.photo,
3212
3221
  onError: () => setImgError(true)
3213
3222
  }
3214
- ) : /* @__PURE__ */ import_react16.default.createElement("div", { style: styles2.placeholder }, initials || "?")), /* @__PURE__ */ import_react16.default.createElement("div", { style: styles2.infoCol }, styles2.tierBadge && /* @__PURE__ */ import_react16.default.createElement("div", { style: styles2.tierBadge }, tier), /* @__PURE__ */ import_react16.default.createElement("h1", { style: styles2.name }, displayName), banner, /* @__PURE__ */ import_react16.default.createElement("p", { style: styles2.roleLine }, roleLine), pol.office_description && /* @__PURE__ */ import_react16.default.createElement("p", { style: styles2.officeDesc }, pol.office_description), (termLine || pol.total_years_in_office > 0) && /* @__PURE__ */ import_react16.default.createElement("div", { style: styles2.metaRow }, termLine && /* @__PURE__ */ import_react16.default.createElement("span", { style: styles2.metaItem }, /* @__PURE__ */ import_react16.default.createElement(CalendarIcon, { size: 14 }), termLine), pol.total_years_in_office > 0 && /* @__PURE__ */ import_react16.default.createElement("span", { style: styles2.metaItem }, /* @__PURE__ */ import_react16.default.createElement(ClockIcon, { size: 14 }), pol.total_years_in_office, " ", pol.total_years_in_office === 1 ? "year" : "years", " in office")), pol.web_form_url && /* @__PURE__ */ import_react16.default.createElement(
3223
+ ) : /* @__PURE__ */ import_react16.default.createElement("div", { style: styles2.placeholder }, initials || "?")), /* @__PURE__ */ import_react16.default.createElement("div", { style: styles2.infoCol }, styles2.tierBadge && /* @__PURE__ */ import_react16.default.createElement("div", { style: styles2.tierBadge }, tier), /* @__PURE__ */ import_react16.default.createElement("h1", { style: styles2.name }, displayName), banner, /* @__PURE__ */ import_react16.default.createElement("p", { style: styles2.roleLine }, roleLine), pol.office_description && /* @__PURE__ */ import_react16.default.createElement("p", { style: styles2.officeDesc }, pol.office_description), pol.bio_text && /* @__PURE__ */ import_react16.default.createElement("p", { style: styles2.bioText }, pol.bio_text), (termLine || pol.total_years_in_office > 0) && /* @__PURE__ */ import_react16.default.createElement("div", { style: styles2.metaRow }, termLine && /* @__PURE__ */ import_react16.default.createElement("span", { style: styles2.metaItem }, /* @__PURE__ */ import_react16.default.createElement(CalendarIcon, { size: 14 }), termLine), pol.total_years_in_office > 0 && /* @__PURE__ */ import_react16.default.createElement("span", { style: styles2.metaItem }, /* @__PURE__ */ import_react16.default.createElement(ClockIcon, { size: 14 }), pol.total_years_in_office, " ", pol.total_years_in_office === 1 ? "year" : "years", " in office")), pol.web_form_url && /* @__PURE__ */ import_react16.default.createElement(
3215
3224
  "a",
3216
3225
  {
3217
3226
  href: pol.web_form_url,
@@ -4496,7 +4505,7 @@ function StanceAccordion({
4496
4505
  if (contextCache.current.has(topicId)) return;
4497
4506
  try {
4498
4507
  const res = await fetch(
4499
- `${apiUrl}/compass/politicians/${politicianId}/${topicId}/context`,
4508
+ `${apiUrl}/api/compass/politicians/${politicianId}/${topicId}/context`,
4500
4509
  { credentials: "include" }
4501
4510
  );
4502
4511
  if (res.status === 404) {
@@ -4518,7 +4527,7 @@ function StanceAccordion({
4518
4527
  if (quotesCache.current !== null) return;
4519
4528
  try {
4520
4529
  const res = await fetch(
4521
- `${apiUrl}/essentials/quotes?politician_id=${politicianId}`,
4530
+ `${apiUrl}/api/essentials/quotes?politician_id=${politicianId}`,
4522
4531
  { credentials: "include" }
4523
4532
  );
4524
4533
  if (res.ok) {