@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 +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3008,6 +3008,15 @@ function PoliticianProfile({
|
|
|
3008
3008
|
marginBottom: spacing[3],
|
|
3009
3009
|
lineHeight: 1.5
|
|
3010
3010
|
},
|
|
3011
|
+
bioText: {
|
|
3012
|
+
fontFamily: fonts.primary,
|
|
3013
|
+
fontSize: fontSizes.sm,
|
|
3014
|
+
color: "#6A7282",
|
|
3015
|
+
margin: 0,
|
|
3016
|
+
marginTop: spacing[1],
|
|
3017
|
+
marginBottom: spacing[3],
|
|
3018
|
+
lineHeight: 1.5
|
|
3019
|
+
},
|
|
3011
3020
|
metaRow: {
|
|
3012
3021
|
display: "flex",
|
|
3013
3022
|
alignItems: "center",
|
|
@@ -3127,7 +3136,7 @@ function PoliticianProfile({
|
|
|
3127
3136
|
style: styles2.photo,
|
|
3128
3137
|
onError: () => setImgError(true)
|
|
3129
3138
|
}
|
|
3130
|
-
) : /* @__PURE__ */ React14.createElement("div", { style: styles2.placeholder }, initials || "?")), /* @__PURE__ */ React14.createElement("div", { style: styles2.infoCol }, styles2.tierBadge && /* @__PURE__ */ React14.createElement("div", { style: styles2.tierBadge }, tier), /* @__PURE__ */ React14.createElement("h1", { style: styles2.name }, displayName), banner, /* @__PURE__ */ React14.createElement("p", { style: styles2.roleLine }, roleLine), pol.office_description && /* @__PURE__ */ React14.createElement("p", { style: styles2.officeDesc }, pol.office_description), (termLine || pol.total_years_in_office > 0) && /* @__PURE__ */ React14.createElement("div", { style: styles2.metaRow }, termLine && /* @__PURE__ */ React14.createElement("span", { style: styles2.metaItem }, /* @__PURE__ */ React14.createElement(CalendarIcon, { size: 14 }), termLine), pol.total_years_in_office > 0 && /* @__PURE__ */ React14.createElement("span", { style: styles2.metaItem }, /* @__PURE__ */ React14.createElement(ClockIcon, { size: 14 }), pol.total_years_in_office, " ", pol.total_years_in_office === 1 ? "year" : "years", " in office")), pol.web_form_url && /* @__PURE__ */ React14.createElement(
|
|
3139
|
+
) : /* @__PURE__ */ React14.createElement("div", { style: styles2.placeholder }, initials || "?")), /* @__PURE__ */ React14.createElement("div", { style: styles2.infoCol }, styles2.tierBadge && /* @__PURE__ */ React14.createElement("div", { style: styles2.tierBadge }, tier), /* @__PURE__ */ React14.createElement("h1", { style: styles2.name }, displayName), banner, /* @__PURE__ */ React14.createElement("p", { style: styles2.roleLine }, roleLine), pol.office_description && /* @__PURE__ */ React14.createElement("p", { style: styles2.officeDesc }, pol.office_description), pol.bio_text && /* @__PURE__ */ React14.createElement("p", { style: styles2.bioText }, pol.bio_text), (termLine || pol.total_years_in_office > 0) && /* @__PURE__ */ React14.createElement("div", { style: styles2.metaRow }, termLine && /* @__PURE__ */ React14.createElement("span", { style: styles2.metaItem }, /* @__PURE__ */ React14.createElement(CalendarIcon, { size: 14 }), termLine), pol.total_years_in_office > 0 && /* @__PURE__ */ React14.createElement("span", { style: styles2.metaItem }, /* @__PURE__ */ React14.createElement(ClockIcon, { size: 14 }), pol.total_years_in_office, " ", pol.total_years_in_office === 1 ? "year" : "years", " in office")), pol.web_form_url && /* @__PURE__ */ React14.createElement(
|
|
3131
3140
|
"a",
|
|
3132
3141
|
{
|
|
3133
3142
|
href: pol.web_form_url,
|
|
@@ -4412,7 +4421,7 @@ function StanceAccordion({
|
|
|
4412
4421
|
if (contextCache.current.has(topicId)) return;
|
|
4413
4422
|
try {
|
|
4414
4423
|
const res = await fetch(
|
|
4415
|
-
`${apiUrl}/compass/politicians/${politicianId}/${topicId}/context`,
|
|
4424
|
+
`${apiUrl}/api/compass/politicians/${politicianId}/${topicId}/context`,
|
|
4416
4425
|
{ credentials: "include" }
|
|
4417
4426
|
);
|
|
4418
4427
|
if (res.status === 404) {
|
|
@@ -4434,7 +4443,7 @@ function StanceAccordion({
|
|
|
4434
4443
|
if (quotesCache.current !== null) return;
|
|
4435
4444
|
try {
|
|
4436
4445
|
const res = await fetch(
|
|
4437
|
-
`${apiUrl}/essentials/quotes?politician_id=${politicianId}`,
|
|
4446
|
+
`${apiUrl}/api/essentials/quotes?politician_id=${politicianId}`,
|
|
4438
4447
|
{ credentials: "include" }
|
|
4439
4448
|
);
|
|
4440
4449
|
if (res.ok) {
|