@findlane/browser 0.1.0 → 0.2.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/README.md +15 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +30 -36
- package/dist/react/cache.d.ts +7 -0
- package/dist/react/cache.js +42 -0
- package/dist/react/client.d.ts +14 -0
- package/dist/react/client.js +23 -0
- package/dist/react/components.d.ts +87 -0
- package/dist/react/components.js +83 -0
- package/dist/react/dialog.d.ts +11 -0
- package/dist/react/dialog.js +63 -0
- package/dist/react/highlight.d.ts +29 -0
- package/dist/react/highlight.js +68 -0
- package/dist/react/index.d.ts +10 -0
- package/dist/react/index.js +11 -0
- package/dist/react/messages.d.ts +2 -0
- package/dist/react/messages.js +13 -0
- package/dist/react/search-provider.d.ts +110 -0
- package/dist/react/search-provider.js +188 -0
- package/dist/react/ssr.d.ts +12 -0
- package/dist/react/ssr.js +13 -0
- package/dist/react/state.d.ts +52 -0
- package/dist/react/state.js +127 -0
- package/dist/react/store.d.ts +65 -0
- package/dist/react/store.js +132 -0
- package/dist/react/styles.css +245 -0
- package/dist/react/use-autocomplete.d.ts +55 -0
- package/dist/react/use-autocomplete.js +174 -0
- package/dist/react/use-search.d.ts +19 -0
- package/dist/react/use-search.js +46 -0
- package/package.json +28 -5
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@findlane/browser",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Findlane browser SDK: fast, typo-tolerant public search from the browser with an index's public ID.",
|
|
5
|
-
"keywords": ["findlane", "search", "full-text search", "typo tolerance", "instant search", "ecommerce search", "browser"],
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Findlane browser SDK: fast, typo-tolerant public search from the browser with an index's public ID, plus React hooks and components.",
|
|
5
|
+
"keywords": ["findlane", "search", "full-text search", "typo tolerance", "instant search", "ecommerce search", "browser", "react", "autocomplete"],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://findlane.dev/docs/browser-sdk",
|
|
8
8
|
"type": "module",
|
|
@@ -13,13 +13,36 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"import": "./dist/index.js"
|
|
15
15
|
},
|
|
16
|
+
"./react": {
|
|
17
|
+
"types": "./dist/react/index.d.ts",
|
|
18
|
+
"import": "./dist/react/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./react/ssr": {
|
|
21
|
+
"types": "./dist/react/ssr.d.ts",
|
|
22
|
+
"import": "./dist/react/ssr.js"
|
|
23
|
+
},
|
|
24
|
+
"./react/styles.css": "./dist/react/styles.css",
|
|
16
25
|
"./package.json": "./package.json"
|
|
17
26
|
},
|
|
18
27
|
"files": ["dist", "README.md", "LICENSE"],
|
|
19
|
-
"sideEffects":
|
|
28
|
+
"sideEffects": ["*.css"],
|
|
20
29
|
"publishConfig": { "access": "public" },
|
|
21
30
|
"scripts": {
|
|
22
|
-
"build": "rm -rf dist &&
|
|
31
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json && cp src/react/styles.css dist/react/styles.css",
|
|
32
|
+
"test": "bun test tests",
|
|
33
|
+
"test:react18": "sh scripts/test-react18.sh",
|
|
34
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
23
35
|
"prepublishOnly": "bun run build"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": { "react": "^18.2.0 || ^19.0.0" },
|
|
38
|
+
"peerDependenciesMeta": { "react": { "optional": true } },
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@happy-dom/global-registrator": "^20.14.5",
|
|
41
|
+
"@testing-library/react": "^16.3.3",
|
|
42
|
+
"@types/react": "^19",
|
|
43
|
+
"@types/react-dom": "^19",
|
|
44
|
+
"react": "^19",
|
|
45
|
+
"react-dom": "^19",
|
|
46
|
+
"typescript": "^5.9"
|
|
24
47
|
}
|
|
25
48
|
}
|