@aws/address-form-sdk-js 1.0.0
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/LICENSE +175 -0
- package/README.md +288 -0
- package/dist/lib/address-form-sdk-js.css +1 -0
- package/dist/lib/address-form-sdk.cjs.js +1 -0
- package/dist/lib/components/AddressForm/form-field.d.ts +12 -0
- package/dist/lib/components/AddressForm/index.d.ts +47 -0
- package/dist/lib/components/AddressFormReact/AddressForm.d.ts +36 -0
- package/dist/lib/components/AddressFormReact/AddressFormAddressField.d.ts +11 -0
- package/dist/lib/components/AddressFormReact/AddressFormContext.d.ts +22 -0
- package/dist/lib/components/AddressFormReact/AddressFormCountryField.d.ts +8 -0
- package/dist/lib/components/AddressFormReact/AddressFormFields.d.ts +5 -0
- package/dist/lib/components/AddressFormReact/AddressFormMap.d.ts +5 -0
- package/dist/lib/components/AddressFormReact/AddressFormProvider.d.ts +12 -0
- package/dist/lib/components/AddressFormReact/AddressFormTextField.d.ts +8 -0
- package/dist/lib/components/AddressFormReact/index.d.ts +1 -0
- package/dist/lib/components/AddressFormReact/render.d.ts +18 -0
- package/dist/lib/components/AddressFormReact/utils.d.ts +2 -0
- package/dist/lib/components/AmazonLocationProvider/index.d.ts +9 -0
- package/dist/lib/components/Button/index.d.ts +7 -0
- package/dist/lib/components/ComponentInjector/index.d.ts +17 -0
- package/dist/lib/components/CountrySelect/index.d.ts +18 -0
- package/dist/lib/components/Flex/index.d.ts +7 -0
- package/dist/lib/components/FormField/index.d.ts +7 -0
- package/dist/lib/components/Input/index.d.ts +6 -0
- package/dist/lib/components/LocateButton/index.d.ts +8 -0
- package/dist/lib/components/Map/index.d.ts +11 -0
- package/dist/lib/components/Map/utils.d.ts +3 -0
- package/dist/lib/components/MapMarker/index.d.ts +6 -0
- package/dist/lib/components/Typeahead/index.d.ts +21 -0
- package/dist/lib/components/Typeahead/use-typeahead-query.d.ts +14 -0
- package/dist/lib/context/amazon-location-context.d.ts +7 -0
- package/dist/lib/data/countries.d.ts +6 -0
- package/dist/lib/hooks/use-amazon-location-context.d.ts +6 -0
- package/dist/lib/icons/Locate.d.ts +1 -0
- package/dist/lib/icons/Logo.d.ts +6 -0
- package/dist/lib/main.d.ts +18 -0
- package/dist/lib/setup-tests.d.ts +0 -0
- package/dist/lib/test/utils.d.ts +3 -0
- package/dist/lib/types/config.d.ts +5 -0
- package/dist/lib/utils/api.d.ts +8 -0
- package/dist/lib/utils/country-filter.d.ts +1 -0
- package/dist/lib/utils/debounce.d.ts +1 -0
- package/dist/lib/utils/position.d.ts +1 -0
- package/dist/lib/utils/queries.d.ts +17 -0
- package/dist/lib/utils/query-client.d.ts +2 -0
- package/dist/lib/utils/replace-child-elements.d.ts +7 -0
- package/dist/standalone/address-form-sdk.css +1 -0
- package/dist/standalone/address-form-sdk.umd.js +886 -0
- package/package.json +89 -0
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws/address-form-sdk-js",
|
|
3
|
+
"description": "Address Form SDK for Javascript",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"main": "./dist/lib/address-form-sdk.cjs.js",
|
|
6
|
+
"types": "dist/lib/main.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"**/*.css"
|
|
12
|
+
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/aws-geospatial/address-form-sdk-js"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"lint": "eslint . && prettier --check .",
|
|
20
|
+
"preview": "vite preview",
|
|
21
|
+
"prepublishOnly": "npm run build",
|
|
22
|
+
"storybook": "storybook dev -p 6006",
|
|
23
|
+
"build": "npm run build:lib && npm run build:standalone",
|
|
24
|
+
"build:lib": "tsc -b && vite build",
|
|
25
|
+
"build:standalone": "tsc -b && vite build --config ./vite.config.standalone.ts",
|
|
26
|
+
"build:storybook": "storybook build",
|
|
27
|
+
"test": "vitest run --coverage",
|
|
28
|
+
"format": "prettier --write .",
|
|
29
|
+
"prepare": "vite build"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@eslint/js": "^9.22.0",
|
|
33
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
34
|
+
"@storybook/addon-interactions": "^8.6.12",
|
|
35
|
+
"@storybook/addon-onboarding": "^8.6.12",
|
|
36
|
+
"@storybook/blocks": "^8.6.12",
|
|
37
|
+
"@storybook/react": "^8.6.12",
|
|
38
|
+
"@storybook/react-vite": "^8.6.12",
|
|
39
|
+
"@storybook/test": "^8.6.12",
|
|
40
|
+
"@testing-library/dom": "^10.4.0",
|
|
41
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
42
|
+
"@testing-library/react": "^16.3.0",
|
|
43
|
+
"@types/lodash": "^4.17.20",
|
|
44
|
+
"@types/node": "^22.15.0",
|
|
45
|
+
"@types/react": "^19.1.0",
|
|
46
|
+
"@types/react-dom": "^19.1.0",
|
|
47
|
+
"@vanilla-extract/vite-plugin": "^5.0.1",
|
|
48
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
49
|
+
"@vitest/coverage-v8": "^3.2.3",
|
|
50
|
+
"eslint": "^9.22.0",
|
|
51
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
52
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
53
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
54
|
+
"glob": "^10.4.5",
|
|
55
|
+
"globals": "^16.0.0",
|
|
56
|
+
"jsdom": "^26.1.0",
|
|
57
|
+
"jsdom-testing-mocks": "^1.13.1",
|
|
58
|
+
"prettier": "^3.5.3",
|
|
59
|
+
"react": "^19.1.0",
|
|
60
|
+
"react-dom": "^19.1.0",
|
|
61
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
62
|
+
"storybook": "^8.6.12",
|
|
63
|
+
"typescript": "~5.7.2",
|
|
64
|
+
"typescript-eslint": "^8.26.1",
|
|
65
|
+
"vite": "^6.4.1",
|
|
66
|
+
"vite-plugin-dts": "^4.5.3",
|
|
67
|
+
"vitest": "^3.1.0"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@aws-sdk/client-geo-places": "^3.799.0",
|
|
71
|
+
"@aws/amazon-location-utilities-auth-helper": "^1.2.1",
|
|
72
|
+
"@headlessui/react": "^2.2.2",
|
|
73
|
+
"@tanstack/react-query": "^5.81.5",
|
|
74
|
+
"@vanilla-extract/css": "^1.17.1",
|
|
75
|
+
"clsx": "^2.1.1",
|
|
76
|
+
"maplibre-gl": "^5.4.0",
|
|
77
|
+
"react-hook-form": "^7.57.0",
|
|
78
|
+
"react-map-gl": "^8.0.4"
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"react": "^19.0.0",
|
|
82
|
+
"react-dom": "^19.0.0"
|
|
83
|
+
},
|
|
84
|
+
"eslintConfig": {
|
|
85
|
+
"extends": [
|
|
86
|
+
"plugin:storybook/recommended"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|