@local-civics/hub-ui 0.1.181 → 0.1.183

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.d.ts CHANGED
@@ -1035,6 +1035,7 @@ type PathwayCardProps = {
1035
1035
  target?: number;
1036
1036
  displayTags?: string[];
1037
1037
  criteria?: PathwayCriteria;
1038
+ rawCriteria?: PathwayCriteria;
1038
1039
  categoryNames?: Record<string, string>;
1039
1040
  points?: Record<string, number>;
1040
1041
  onClose?: () => void;
package/dist/index.js CHANGED
@@ -5584,7 +5584,7 @@ const PathwayCard = (props) => {
5584
5584
  const categoryIds = React__namespace.useMemo(
5585
5585
  () => {
5586
5586
  var _a2;
5587
- return Object.keys((_a2 = props.criteria) != null ? _a2 : {});
5587
+ return Object.keys((_a2 = props.rawCriteria) != null ? _a2 : {});
5588
5588
  },
5589
5589
  [props.criteria]
5590
5590
  );
@@ -5600,14 +5600,6 @@ const PathwayCard = (props) => {
5600
5600
  }
5601
5601
  );
5602
5602
  const filterClassName = "inline-block px-4 py-2 bg-gray-600 text-white rounded-full cursor-pointer text-sm";
5603
- console.log("ACTIVE FILTERS:", Array.from(activeFilters));
5604
- console.log("BADGE SAMPLE:", badges.slice(0, 5).map((b) => b.categories));
5605
- console.log("MATCH TEST:", badges.slice(0, 5).map(
5606
- (b) => {
5607
- var _a2;
5608
- return (_a2 = b.categories) == null ? void 0 : _a2.map((c) => activeFilters.has(c));
5609
- }
5610
- ));
5611
5603
  const toggleFilter = (categoryId) => {
5612
5604
  setActiveFilters((prev) => {
5613
5605
  const next = new Set(prev);