@stacksjs/search-engine 0.52.0 → 0.52.2
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 +1 -22
- package/dist/index.mjs +1 -21
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { client as meilisearch
|
|
1
|
+
import { client as meilisearch } from './drivers/meilisearch';
|
|
2
2
|
export declare const totalPages: any;
|
|
3
3
|
export declare const currentPage: any;
|
|
4
4
|
export declare const filterName: any;
|
|
@@ -20,24 +20,3 @@ export declare const sorts: any;
|
|
|
20
20
|
export declare function client(): typeof meilisearch | undefined;
|
|
21
21
|
export declare function useSearchEngine(): typeof meilisearch | undefined;
|
|
22
22
|
export declare function calculatePagination(): void;
|
|
23
|
-
declare const _default: {
|
|
24
|
-
useSearchEngine: typeof useSearchEngine;
|
|
25
|
-
client: typeof client;
|
|
26
|
-
search: typeof search;
|
|
27
|
-
calculatePagination: typeof calculatePagination;
|
|
28
|
-
currentPage: any;
|
|
29
|
-
totalPages: any;
|
|
30
|
-
filterName: any;
|
|
31
|
-
filters: any;
|
|
32
|
-
goToNextPage: any;
|
|
33
|
-
goToPage: any;
|
|
34
|
-
goToPrevPage: any;
|
|
35
|
-
hits: any;
|
|
36
|
-
index: any;
|
|
37
|
-
searchFilters: any;
|
|
38
|
-
searchParams: any;
|
|
39
|
-
setTotalHits: any;
|
|
40
|
-
sort: any;
|
|
41
|
-
sorts: any;
|
|
42
|
-
};
|
|
43
|
-
export default _default;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { searchEngine } from "@stacksjs/config";
|
|
2
|
-
import { client as meilisearch
|
|
2
|
+
import { client as meilisearch } from "./drivers/meilisearch.mjs";
|
|
3
3
|
import { determineState } from "./helpers.mjs";
|
|
4
4
|
const table = useStorage("table", determineState()).value;
|
|
5
5
|
const totalHits = table.results?.estimatedTotalHits ?? 1;
|
|
@@ -47,23 +47,3 @@ export function calculatePagination() {
|
|
|
47
47
|
allPages.push(page);
|
|
48
48
|
pages.value = allPages;
|
|
49
49
|
}
|
|
50
|
-
export default {
|
|
51
|
-
useSearchEngine,
|
|
52
|
-
client,
|
|
53
|
-
search,
|
|
54
|
-
calculatePagination,
|
|
55
|
-
currentPage,
|
|
56
|
-
totalPages,
|
|
57
|
-
filterName,
|
|
58
|
-
filters,
|
|
59
|
-
goToNextPage,
|
|
60
|
-
goToPage,
|
|
61
|
-
goToPrevPage,
|
|
62
|
-
hits,
|
|
63
|
-
index,
|
|
64
|
-
searchFilters,
|
|
65
|
-
searchParams,
|
|
66
|
-
setTotalHits,
|
|
67
|
-
sort,
|
|
68
|
-
sorts
|
|
69
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/search-engine",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.52.
|
|
4
|
+
"version": "0.52.2",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks search engine integrations.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"meilisearch": "^0.32.3"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@stacksjs/cli": "0.52.
|
|
52
|
-
"@stacksjs/
|
|
53
|
-
"@stacksjs/
|
|
51
|
+
"@stacksjs/cli": "0.52.2",
|
|
52
|
+
"@stacksjs/ui": "0.52.2",
|
|
53
|
+
"@stacksjs/config": "0.52.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@stacksjs/development": "0.52.
|
|
57
|
-
"@stacksjs/types": "0.52.
|
|
56
|
+
"@stacksjs/development": "0.52.2",
|
|
57
|
+
"@stacksjs/types": "0.52.2"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "unbuild",
|