thaizip 0.7.8 → 0.7.9

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Fast fuzzy autocomplete for Thai addresses — subdistrict, district, province, postal code.
7
7
 
8
- 📚 **[Documentation](https://naay99999.github.io/thai-zip/)** (ไทย / [English](https://naay99999.github.io/thai-zip/en/)) · [Playground](https://naay99999.github.io/thai-zip/en/playground/)
8
+ 📚 **[Documentation](https://thai-zip.vercel.app/docs)** (ไทย / [English](https://thai-zip.vercel.app/en/docs)) · Using a coding agent? Point it at [`llms.txt`](https://thai-zip.vercel.app/llms.txt)
9
9
 
10
10
  ![thaizip demo — typing "ลาดพร้าว", "ladprao" and "10230" to get fuzzy Thai address suggestions, then resolving a selection](.github/assets/demo.gif)
11
11
 
@@ -44,13 +44,13 @@ import { useThaiAddressAutocomplete } from 'thaizip/react'
44
44
  const { query, setQuery, suggestions, selectSuggestion } = useThaiAddressAutocomplete({ index })
45
45
  ```
46
46
 
47
- Need a ready-made UI component? [`react-thaizip`](https://github.com/naay99999/react-thai-zip) scaffolds one into your project.
47
+ Need a ready-made UI component? [`react-thaizip`](https://thai-zip.vercel.app/en/docs/react) scaffolds one into your project.
48
48
 
49
49
  ## Learn more
50
50
 
51
- - [Getting started](https://naay99999.github.io/thai-zip/en/getting-started/)
52
- - [Guides](https://naay99999.github.io/thai-zip/en/guides/search/) — search, postal codes, cascades, English input, React, custom data
53
- - [API reference](https://naay99999.github.io/thai-zip/en/reference/search/)
51
+ - [Getting started](https://thai-zip.vercel.app/en/docs)
52
+ - [Search](https://thai-zip.vercel.app/en/docs/search) — options, ranking, postal codes, English input
53
+ - [Cascade lists](https://thai-zip.vercel.app/en/docs/cascade) · [Format and resolve](https://thai-zip.vercel.app/en/docs/format) · [React hook](https://thai-zip.vercel.app/en/docs/react-hook) · [Data and index](https://thai-zip.vercel.app/en/docs/data)
54
54
 
55
55
  ## License
56
56
 
package/dist/index.d.cts CHANGED
@@ -282,4 +282,5 @@ declare function normalizeThaiAddressText(input: string): string;
282
282
  */
283
283
  declare function applyRomanizationAliases(normalized: string): string;
284
284
 
285
- export { type AddressLocale, type AmphureSummary, type BuildIndexOptions, type FormatSuggestionOptions, type ProvinceSummary, type RawAmphure, type RawData, type RawGeography, type RawProvince, type RawTambon, type ResolvedThaiAddress, type SearchOptions, type TambonSummary, type ThaiAddressRecord, type ThaiAddressSuggestion, type TrigramIndex, applyRomanizationAliases, buildThaiAddressIndex, formatThaiAddressSuggestion, listAmphures, listProvinces, listTambons, lookupByZipCode, normalizeThaiAddressText, resolveThaiAddress, searchThaiAddress, validateRawData };
285
+ export { applyRomanizationAliases, buildThaiAddressIndex, formatThaiAddressSuggestion, listAmphures, listProvinces, listTambons, lookupByZipCode, normalizeThaiAddressText, resolveThaiAddress, searchThaiAddress, validateRawData };
286
+ export type { AddressLocale, AmphureSummary, BuildIndexOptions, FormatSuggestionOptions, ProvinceSummary, RawAmphure, RawData, RawGeography, RawProvince, RawTambon, ResolvedThaiAddress, SearchOptions, TambonSummary, ThaiAddressRecord, ThaiAddressSuggestion, TrigramIndex };
package/dist/index.d.ts CHANGED
@@ -282,4 +282,5 @@ declare function normalizeThaiAddressText(input: string): string;
282
282
  */
283
283
  declare function applyRomanizationAliases(normalized: string): string;
284
284
 
285
- export { type AddressLocale, type AmphureSummary, type BuildIndexOptions, type FormatSuggestionOptions, type ProvinceSummary, type RawAmphure, type RawData, type RawGeography, type RawProvince, type RawTambon, type ResolvedThaiAddress, type SearchOptions, type TambonSummary, type ThaiAddressRecord, type ThaiAddressSuggestion, type TrigramIndex, applyRomanizationAliases, buildThaiAddressIndex, formatThaiAddressSuggestion, listAmphures, listProvinces, listTambons, lookupByZipCode, normalizeThaiAddressText, resolveThaiAddress, searchThaiAddress, validateRawData };
285
+ export { applyRomanizationAliases, buildThaiAddressIndex, formatThaiAddressSuggestion, listAmphures, listProvinces, listTambons, lookupByZipCode, normalizeThaiAddressText, resolveThaiAddress, searchThaiAddress, validateRawData };
286
+ export type { AddressLocale, AmphureSummary, BuildIndexOptions, FormatSuggestionOptions, ProvinceSummary, RawAmphure, RawData, RawGeography, RawProvince, RawTambon, ResolvedThaiAddress, SearchOptions, TambonSummary, ThaiAddressRecord, ThaiAddressSuggestion, TrigramIndex };
package/dist/react.d.cts CHANGED
@@ -118,4 +118,5 @@ declare function useThaiAddressAutocomplete(options: UseThaiAddressAutocompleteO
118
118
  clear: () => void;
119
119
  };
120
120
 
121
- export { type ResolvedThaiAddress, type ThaiAddressSuggestion, type TrigramIndex, type UseThaiAddressAutocompleteOptions, useThaiAddressAutocomplete };
121
+ export { useThaiAddressAutocomplete };
122
+ export type { ResolvedThaiAddress, ThaiAddressSuggestion, TrigramIndex, UseThaiAddressAutocompleteOptions };
package/dist/react.d.ts CHANGED
@@ -118,4 +118,5 @@ declare function useThaiAddressAutocomplete(options: UseThaiAddressAutocompleteO
118
118
  clear: () => void;
119
119
  };
120
120
 
121
- export { type ResolvedThaiAddress, type ThaiAddressSuggestion, type TrigramIndex, type UseThaiAddressAutocompleteOptions, useThaiAddressAutocomplete };
121
+ export { useThaiAddressAutocomplete };
122
+ export type { ResolvedThaiAddress, ThaiAddressSuggestion, TrigramIndex, UseThaiAddressAutocompleteOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thaizip",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "Fast, fuzzy Thai address autocomplete library (headless + React)",
5
5
  "keywords": [
6
6
  "thai",
@@ -8,7 +8,7 @@
8
8
  "autocomplete",
9
9
  "thailand"
10
10
  ],
11
- "homepage": "https://github.com/naay99999/thai-zip#readme",
11
+ "homepage": "https://thai-zip.vercel.app",
12
12
  "bugs": {
13
13
  "url": "https://github.com/naay99999/thai-zip/issues"
14
14
  },
@@ -62,7 +62,7 @@
62
62
  "jsdom": "^30.1.2",
63
63
  "react": "^19.3.0",
64
64
  "react-dom": "^19.3.0",
65
- "tsup": "^8.5.1",
65
+ "tsup": "^9.0.0",
66
66
  "tsx": "^4.23.15",
67
67
  "typescript": "^6.0.2",
68
68
  "vitest": "^5.0.4"