@stacksjs/search-engine 0.49.2 → 0.49.3

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { client as meilisearch } from './drivers/meilisearch';
1
+ import { client as meilisearch, search } from './drivers/meilisearch';
2
2
  export declare const totalPages: any;
3
3
  export declare const currentPage: any;
4
4
  export declare const filterName: any;
@@ -12,7 +12,6 @@ export declare const lastPageNumber: any;
12
12
  export declare const perPage: any;
13
13
  export declare const query: any;
14
14
  export declare const results: any;
15
- export declare const search: any;
16
15
  export declare const searchFilters: any;
17
16
  export declare const searchParams: any;
18
17
  export declare const setTotalHits: any;
@@ -24,7 +23,7 @@ export declare function calculatePagination(): void;
24
23
  declare const _default: {
25
24
  useSearchEngine: typeof useSearchEngine;
26
25
  client: typeof client;
27
- search: any;
26
+ search: typeof search;
28
27
  calculatePagination: typeof calculatePagination;
29
28
  currentPage: any;
30
29
  totalPages: any;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { searchEngine } from "@stacksjs/config";
2
- import { client as meilisearch } from "./drivers/meilisearch.mjs";
2
+ import { client as meilisearch, search } 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;
@@ -17,7 +17,6 @@ export const lastPageNumber = computed(() => table.lastPageNumber);
17
17
  export const perPage = computed(() => table.perPage);
18
18
  export const query = computed(() => table.query);
19
19
  export const results = computed(() => table.results);
20
- export const search = computed(() => table.search);
21
20
  export const searchFilters = computed(() => table.searchFilters);
22
21
  export const searchParams = computed(() => table.searchParams);
23
22
  export const setTotalHits = computed(() => table.setTotalHits);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.49.2",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks search engine integrations.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -41,19 +41,19 @@
41
41
  ],
42
42
  "engines": {
43
43
  "node": ">=v18.13.0",
44
- "pnpm": ">=7.25.0"
44
+ "pnpm": ">=7.25.1"
45
45
  },
46
46
  "peerDependencies": {
47
- "@vueuse/core": "^9.10.0",
47
+ "@vueuse/core": "^9.11.0",
48
48
  "meilisearch": "^0.30.0",
49
49
  "vue": "^3.2.45",
50
- "@stacksjs/cli": "0.49.2",
51
- "@stacksjs/config": "0.49.2"
50
+ "@stacksjs/cli": "0.49.3",
51
+ "@stacksjs/config": "0.49.3"
52
52
  },
53
53
  "devDependencies": {
54
54
  "mkdist": "^1.1.0",
55
55
  "typescript": "^4.9.4",
56
- "@stacksjs/testing": "0.49.2"
56
+ "@stacksjs/testing": "0.49.3"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "mkdist -d",