Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 People Data Labs
Copyright (c) 2025 People Data Labs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "pdl-react-autocomplete",
"version": "2.0.6",
"version": "2.1.0",
"description": "A react component for the People Data Labs Autocomplete API",
"packageManager": "pnpm@10.6.5",
"packageManager": "pnpm@10.11.0",
"source": "src/index.ts",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand All @@ -23,7 +23,8 @@
"lint": "eslint src --fix",
"dev": "parcel watch -p 3006",
"build": "parcel build",
"pub": "yarn run build && yarn publish"
"pub": "pnpm run build && pnpm publish",
"check-packages": "pnpm dlx npm-check-updates"
},
"repository": "https://github.com/peopledatalabs/pdl-react-autocomplete.git",
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions src/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ function Autocomplete({

const placeholderText = () => {
switch (field) {
case 'all_location':
return 'IE: miami';
case 'class':
return 'IE: sales_and_marketing';
case 'company':
Expand All @@ -187,6 +189,8 @@ function Autocomplete({
return 'IE: computer software';
case 'location':
return 'IE: berkeley, california, united states';
case 'location_name':
return 'IE: berkeley, california, united states';
case 'major':
return 'IE: entrepreneurship';
case 'region':
Expand Down