@stacksjs/search-engine 0.67.0 → 0.68.1
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/helpers.d.ts +4 -5
- package/dist/index.d.ts +7 -12
- package/dist/index.js +22 -22
- package/dist/types.d.ts +37 -91
- package/package.json +1 -1
- package/dist/drivers/index.d.ts +0 -1
- package/dist/drivers/meilisearch.d.ts +0 -0
- package/dist/drivers/opensearch.d.ts +0 -0
package/dist/helpers.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type { SearchEngineStore } from "./types";
|
|
1
|
+
import type { SearchEngineStore } from './types';
|
|
2
|
+
import { isString } from '@stacksjs/validation';
|
|
3
|
+
|
|
5
4
|
export declare function isString(val: unknown): val is string;
|
|
6
|
-
export declare function determineState(): SearchEngineStore;
|
|
5
|
+
export declare function determineState(): SearchEngineStore;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { UiEngine } from '@stacksjs/ui';
|
|
3
|
+
|
|
4
|
+
declare const table: unknown;
|
|
5
|
+
declare const pages: UiEngine.Ref<number[]>;
|
|
3
6
|
export declare const currentPage: ComputedRef;
|
|
4
|
-
export declare const filterName: ComputedRef;
|
|
5
7
|
export declare const filters: ComputedRef;
|
|
6
|
-
export declare const goToNextPage: ComputedRef;
|
|
7
8
|
export declare const goToPage: ComputedRef;
|
|
8
|
-
export declare const goToPrevPage: ComputedRef;
|
|
9
9
|
export declare const hits: ComputedRef;
|
|
10
|
-
export declare const index: ComputedRef<string>;
|
|
11
10
|
export declare const lastPageNumber: ComputedRef<number>;
|
|
12
|
-
export declare const perPage: ComputedRef<number>;
|
|
13
11
|
export declare const query: ComputedRef<string | undefined>;
|
|
14
|
-
export declare const results: ComputedRef;
|
|
15
12
|
export declare const searchFilters: ComputedRef;
|
|
16
|
-
export declare const searchParams: ComputedRef;
|
|
17
13
|
export declare const setTotalHits: ComputedRef;
|
|
18
|
-
export declare const sort: ComputedRef;
|
|
19
14
|
export declare const sorts: ComputedRef;
|
|
20
|
-
|
|
15
|
+
declare function client(): string;
|
|
21
16
|
export declare function useSearchEngine(): string;
|
|
22
|
-
export declare function calculatePagination(): void;
|
|
17
|
+
export declare function calculatePagination(): void;
|