@searchcraft/vue-sdk 0.7.0 → 0.7.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/README.md +214 -13
- package/dist/components/SearchcraftBaseSearchResults.d.ts +32 -0
- package/dist/components/SearchcraftBaseSearchResults.d.ts.map +1 -0
- package/dist/components/SearchcraftFilterPanel.d.ts +9 -0
- package/dist/components/SearchcraftFilterPanel.d.ts.map +1 -0
- package/dist/components/SearchcraftInputForm.d.ts +38 -0
- package/dist/components/SearchcraftInputForm.d.ts.map +1 -0
- package/dist/components/SearchcraftPopoverButton.d.ts +5 -0
- package/dist/components/SearchcraftPopoverButton.d.ts.map +1 -0
- package/dist/components/SearchcraftPopoverForm.d.ts +17 -0
- package/dist/components/SearchcraftPopoverForm.d.ts.map +1 -0
- package/dist/components/SearchcraftResultsInfo.d.ts +5 -0
- package/dist/components/SearchcraftResultsInfo.d.ts.map +1 -0
- package/dist/components/SearchcraftTheme.d.ts +5 -0
- package/dist/components/SearchcraftTheme.d.ts.map +1 -0
- package/dist/components/index.d.ts +8 -13
- package/dist/components/index.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +481 -821
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/stencil-web-components.d.ts +2 -0
- package/dist/stencil-web-components.d.ts.map +1 -0
- package/package.json +7 -4
- package/dist/components/SearchcraftBaseSearchResult.vue.d.ts +0 -137
- package/dist/components/SearchcraftBaseSearchResults.vue.d.ts +0 -35
- package/dist/components/SearchcraftButton.vue.d.ts +0 -18
- package/dist/components/SearchcraftErrorMessage.vue.d.ts +0 -10
- package/dist/components/SearchcraftFacetList.vue.d.ts +0 -18
- package/dist/components/SearchcraftFilterPanel.vue.d.ts +0 -16
- package/dist/components/SearchcraftInputForm.vue.d.ts +0 -96
- package/dist/components/SearchcraftInputLabel.vue.d.ts +0 -24
- package/dist/components/SearchcraftPopoverButton.vue.d.ts +0 -6
- package/dist/components/SearchcraftPopoverForm.vue.d.ts +0 -48
- package/dist/components/SearchcraftResultsInfo.vue.d.ts +0 -6
- package/dist/components/SearchcraftSlider.vue.d.ts +0 -42
- package/dist/components/SearchcraftToggleButton.vue.d.ts +0 -26
package/README.md
CHANGED
|
@@ -1,27 +1,228 @@
|
|
|
1
1
|
# Searchcraft Vue SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Searchcraft Vue SDK provides tools for integrating the Searchcraft API into your Vue applications. It supports core functionalities like searching, managing state, and working with search results.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Install with Yarn:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
```bash
|
|
10
|
+
$ yarn add @searchcraft/vue-sdk
|
|
11
|
+
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Install with NPM:
|
|
12
14
|
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
+
```bash
|
|
16
|
+
$ npm install @searchcraft/vue-sdk
|
|
15
17
|
```
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
## Initialization and Basic Usage
|
|
20
|
+
|
|
21
|
+
### Vue Components
|
|
22
|
+
|
|
23
|
+
The Vue SDK provides the following prebuilt components for use in your application:
|
|
24
|
+
|
|
25
|
+
```jsx
|
|
26
|
+
|
|
27
|
+
<SearchInputForm />
|
|
28
|
+
<SearchPopoverForm />
|
|
29
|
+
<FilterPanel />
|
|
30
|
+
<ResultsInfo />
|
|
31
|
+
<BaseSearchResults />
|
|
18
32
|
|
|
19
|
-
```sh
|
|
20
|
-
yarn dev
|
|
21
33
|
```
|
|
22
34
|
|
|
23
|
-
|
|
35
|
+
These components can be added to your Vue app and customized with configurations as needed.
|
|
36
|
+
|
|
37
|
+
Example Setup
|
|
38
|
+
|
|
39
|
+
```jsx
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<SearchcraftProvider :config="config">
|
|
43
|
+
<SearchInputForm />
|
|
44
|
+
<FilterPanel :items="filterPanelItems" />
|
|
45
|
+
<BaseSearchResults />
|
|
46
|
+
</SearchcraftProvider>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
import {
|
|
51
|
+
SearchcraftProvider,
|
|
52
|
+
SearchInputForm,
|
|
53
|
+
FilterPanel,
|
|
54
|
+
BaseSearchResults,
|
|
55
|
+
} from '@searchcraft/vue-sdk';
|
|
56
|
+
|
|
57
|
+
export default {
|
|
58
|
+
components: {
|
|
59
|
+
SearchcraftProvider,
|
|
60
|
+
SearchInputForm,
|
|
61
|
+
FilterPanel,
|
|
62
|
+
BaseSearchResults,
|
|
63
|
+
},
|
|
64
|
+
data() {
|
|
65
|
+
return {
|
|
66
|
+
config: {
|
|
67
|
+
index: ['your_index_from_vektron'],
|
|
68
|
+
readKey: 'your_read_key_from_vektron',
|
|
69
|
+
endpointURL: 'your_searchcraft_endpoint_url',
|
|
70
|
+
searchDebounceDelay: 50, // Optional debounce delay in milliseconds
|
|
71
|
+
},
|
|
72
|
+
filterPanelItems: [
|
|
73
|
+
{
|
|
74
|
+
type: 'mostRecentToggle',
|
|
75
|
+
label: 'Most Recent',
|
|
76
|
+
options: {
|
|
77
|
+
subLabel: 'Show the most recently published articles first.',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: 'exactMatchToggle',
|
|
82
|
+
label: 'Exact Match',
|
|
83
|
+
options: {
|
|
84
|
+
subLabel: 'Only show results that precisely match your search.',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Example Filter Configuration
|
|
96
|
+
|
|
97
|
+
Below is an example of a filter panel configuration object. It specifies the filters to be displayed in the filter panel and maps them to the corresponding index fields.
|
|
98
|
+
|
|
99
|
+
```jsx
|
|
100
|
+
|
|
101
|
+
const today = new Date();
|
|
102
|
+
const pastDate = new Date(today);
|
|
103
|
+
pastDate.setFullYear(today.getFullYear() - 10);
|
|
104
|
+
|
|
105
|
+
export const filterPanelItems = [
|
|
106
|
+
{
|
|
107
|
+
type: 'mostRecentToggle',
|
|
108
|
+
label: 'Most Recent',
|
|
109
|
+
options: {
|
|
110
|
+
subLabel: 'Show the most recently published articles first.',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: 'exactMatchToggle',
|
|
115
|
+
label: 'Exact Match',
|
|
116
|
+
options: {
|
|
117
|
+
subLabel: 'Only show results that precisely match your search.',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
type: 'dateRange',
|
|
122
|
+
fieldName: 'date_published',
|
|
123
|
+
label: 'Filter by Year',
|
|
124
|
+
options: {
|
|
125
|
+
minDate: pastDate,
|
|
126
|
+
maxDate: today,
|
|
127
|
+
granularity: 'year',
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
type: 'facets',
|
|
132
|
+
fieldName: 'section',
|
|
133
|
+
label: 'Filter by Section',
|
|
134
|
+
},
|
|
135
|
+
];
|
|
24
136
|
|
|
25
|
-
```sh
|
|
26
|
-
yarn build
|
|
27
137
|
```
|
|
138
|
+
|
|
139
|
+
Example Result Mappings
|
|
140
|
+
|
|
141
|
+
Customize the appearance and behavior of search results by modifying the searchResultMappings configuration. Use field names from your index to map the content.
|
|
142
|
+
|
|
143
|
+
```jsx
|
|
144
|
+
|
|
145
|
+
export const searchResultMappings = {
|
|
146
|
+
containerHref: {
|
|
147
|
+
fieldNames: [
|
|
148
|
+
{
|
|
149
|
+
fieldName: 'canonical_link',
|
|
150
|
+
dataType: 'text',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
footer: {
|
|
155
|
+
fieldNames: [
|
|
156
|
+
{
|
|
157
|
+
fieldName: 'date_published',
|
|
158
|
+
dataType: 'date',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
fieldName: 'author_name',
|
|
162
|
+
dataType: 'text',
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
delimiter: ' • ',
|
|
166
|
+
},
|
|
167
|
+
imageSource: {
|
|
168
|
+
fieldNames: [
|
|
169
|
+
{
|
|
170
|
+
fieldName: 'medium_image',
|
|
171
|
+
dataType: 'text',
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
body: {
|
|
176
|
+
fieldNames: [{ fieldName: 'sub_headline', dataType: 'text' }],
|
|
177
|
+
},
|
|
178
|
+
title: {
|
|
179
|
+
fieldNames: [{ fieldName: 'section_name', dataType: 'text' }],
|
|
180
|
+
},
|
|
181
|
+
subtitle: {
|
|
182
|
+
fieldNames: [{ fieldName: 'headline', dataType: 'text' }],
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Event Handling
|
|
189
|
+
|
|
190
|
+
The Vue SDK components emit events for common actions like query submission, input focus, or search results. These events can be handled using Vue’s v-on or @ syntax.
|
|
191
|
+
|
|
192
|
+
```jsx
|
|
193
|
+
|
|
194
|
+
Example
|
|
195
|
+
|
|
196
|
+
<template>
|
|
197
|
+
<SearchInputForm
|
|
198
|
+
@querySubmit="handleQuerySubmit"
|
|
199
|
+
@inputFocus="handleInputFocus"
|
|
200
|
+
@inputBlur="handleInputBlur"
|
|
201
|
+
/>
|
|
202
|
+
<BaseSearchResults @noResults="handleNoResults" />
|
|
203
|
+
</template>
|
|
204
|
+
|
|
205
|
+
<script>
|
|
206
|
+
export default {
|
|
207
|
+
methods: {
|
|
208
|
+
handleQuerySubmit(event) {
|
|
209
|
+
console.log('Query submitted:', event.detail);
|
|
210
|
+
},
|
|
211
|
+
handleInputFocus() {
|
|
212
|
+
console.log('Input focused');
|
|
213
|
+
},
|
|
214
|
+
handleInputBlur() {
|
|
215
|
+
console.log('Input blurred');
|
|
216
|
+
},
|
|
217
|
+
handleNoResults() {
|
|
218
|
+
console.log('No results found');
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
</script>
|
|
223
|
+
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Additional Information
|
|
227
|
+
|
|
228
|
+
For more advanced use cases and component-specific documentation, refer to the official [Searchcraft Vue SDK documentation](https://docs.searchcraft.io/).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Components } from '@searchcraft/javascript-sdk';
|
|
2
|
+
export type SearchcraftBaseSearchResultsProps = Partial<Components.SearchcraftBaseSearchResults>;
|
|
3
|
+
declare const _default: import('../../vue').DefineComponent<{
|
|
4
|
+
adInterval?: number | undefined;
|
|
5
|
+
buttonLabel?: string | undefined;
|
|
6
|
+
buttonRel?: "noreferrer" | "noopener" | "nofollow" | undefined;
|
|
7
|
+
buttonTarget?: "_blank" | "_self" | "_top" | "_parent" | undefined;
|
|
8
|
+
containerRel?: "noreferrer" | "noopener" | "nofollow" | undefined;
|
|
9
|
+
containerTarget?: "_blank" | "_self" | "_top" | "_parent" | undefined;
|
|
10
|
+
customStylesForResults?: string | Record<string, Record<string, string>> | undefined;
|
|
11
|
+
placeAdAtEnd?: boolean | undefined;
|
|
12
|
+
placeAdAtStart?: boolean | undefined;
|
|
13
|
+
resultImagePlacement?: "left" | "right" | undefined;
|
|
14
|
+
searchResultMappings?: import('@searchcraft/javascript-sdk').SearchResultMappings | undefined;
|
|
15
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../vue').ComponentOptionsMixin, import('../../vue').ComponentOptionsMixin, {}, string, import('../../vue').PublicProps, Readonly<{
|
|
16
|
+
adInterval?: number | undefined;
|
|
17
|
+
buttonLabel?: string | undefined;
|
|
18
|
+
buttonRel?: "noreferrer" | "noopener" | "nofollow" | undefined;
|
|
19
|
+
buttonTarget?: "_blank" | "_self" | "_top" | "_parent" | undefined;
|
|
20
|
+
containerRel?: "noreferrer" | "noopener" | "nofollow" | undefined;
|
|
21
|
+
containerTarget?: "_blank" | "_self" | "_top" | "_parent" | undefined;
|
|
22
|
+
customStylesForResults?: string | Record<string, Record<string, string>> | undefined;
|
|
23
|
+
placeAdAtEnd?: boolean | undefined;
|
|
24
|
+
placeAdAtStart?: boolean | undefined;
|
|
25
|
+
resultImagePlacement?: "left" | "right" | undefined;
|
|
26
|
+
searchResultMappings?: import('@searchcraft/javascript-sdk').SearchResultMappings | undefined;
|
|
27
|
+
}> & Readonly<{}>, {
|
|
28
|
+
placeAdAtEnd: boolean;
|
|
29
|
+
placeAdAtStart: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('../../vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=SearchcraftBaseSearchResults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchcraftBaseSearchResults.d.ts","sourceRoot":"","sources":["../../src/components/SearchcraftBaseSearchResults.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,MAAM,MAAM,iCAAiC,GAAG,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjG,wBAmBG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Components } from '@searchcraft/javascript-sdk';
|
|
2
|
+
export type SearchcraftFilterPanelProps = Partial<Components.SearchcraftFilterPanel>;
|
|
3
|
+
declare const _default: import('../../vue').DefineComponent<{
|
|
4
|
+
items?: import('@searchcraft/javascript-sdk').FilterItem[] | undefined;
|
|
5
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../vue').ComponentOptionsMixin, import('../../vue').ComponentOptionsMixin, {}, string, import('../../vue').PublicProps, Readonly<{
|
|
6
|
+
items?: import('@searchcraft/javascript-sdk').FilterItem[] | undefined;
|
|
7
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('../../vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=SearchcraftFilterPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchcraftFilterPanel.d.ts","sourceRoot":"","sources":["../../src/components/SearchcraftFilterPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;;;;;;AAErF,wBAWG"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Components } from '@searchcraft/javascript-sdk';
|
|
2
|
+
export type SearchcraftInputFormProps = Partial<Components.SearchcraftInputForm>;
|
|
3
|
+
declare const _default: import('../../vue').DefineComponent<{
|
|
4
|
+
autoSearch?: boolean | undefined;
|
|
5
|
+
buttonLabel?: string | undefined;
|
|
6
|
+
buttonPlacement?: "left" | "right" | "none" | undefined;
|
|
7
|
+
config?: import('@searchcraft/core').SearchcraftConfig | undefined;
|
|
8
|
+
customStyles?: string | Record<string, string> | undefined;
|
|
9
|
+
inputLabel?: string | undefined;
|
|
10
|
+
placeholderValue?: string | undefined;
|
|
11
|
+
searchTerm?: string | undefined;
|
|
12
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../vue').ComponentOptionsMixin, import('../../vue').ComponentOptionsMixin, ("inputCleared" | "noResultsReceived" | "inputFocus" | "inputBlur" | "querySubmit")[], "inputCleared" | "noResultsReceived" | "inputFocus" | "inputBlur" | "querySubmit", import('../../vue').PublicProps, Readonly<{
|
|
13
|
+
autoSearch?: boolean | undefined;
|
|
14
|
+
buttonLabel?: string | undefined;
|
|
15
|
+
buttonPlacement?: "left" | "right" | "none" | undefined;
|
|
16
|
+
config?: import('@searchcraft/core').SearchcraftConfig | undefined;
|
|
17
|
+
customStyles?: string | Record<string, string> | undefined;
|
|
18
|
+
inputLabel?: string | undefined;
|
|
19
|
+
placeholderValue?: string | undefined;
|
|
20
|
+
searchTerm?: string | undefined;
|
|
21
|
+
}> & Readonly<{
|
|
22
|
+
onInputCleared?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onNoResultsReceived?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onInputFocus?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onInputBlur?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onQuerySubmit?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
buttonLabel: string;
|
|
29
|
+
customStyles: Record<string, string>;
|
|
30
|
+
autoSearch: boolean;
|
|
31
|
+
buttonPlacement: "left" | "right";
|
|
32
|
+
inputLabel: string;
|
|
33
|
+
placeholderValue: string;
|
|
34
|
+
searchTerm: string;
|
|
35
|
+
debounceDelay: number;
|
|
36
|
+
}, {}, {}, {}, string, import('../../vue').ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export default _default;
|
|
38
|
+
//# sourceMappingURL=SearchcraftInputForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchcraftInputForm.d.ts","sourceRoot":"","sources":["../../src/components/SearchcraftInputForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,wBAiEG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Components } from '@searchcraft/javascript-sdk';
|
|
2
|
+
export type SearchcraftPopoverButtonProps = Partial<Components.SearchcraftPopoverButton>;
|
|
3
|
+
declare const _default: import('../../vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../vue').ComponentOptionsMixin, import('../../vue').ComponentOptionsMixin, {}, string, import('../../vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('../../vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=SearchcraftPopoverButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchcraftPopoverButton.d.ts","sourceRoot":"","sources":["../../src/components/SearchcraftPopoverButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;;AAEzF,wBAMG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Components } from '@searchcraft/javascript-sdk';
|
|
2
|
+
export type SearchcraftPopoverFormProps = Partial<Components.SearchcraftPopoverForm>;
|
|
3
|
+
declare const _default: import('../../vue').DefineComponent<{
|
|
4
|
+
config?: import('@searchcraft/core').SearchcraftConfig | undefined;
|
|
5
|
+
hotkey?: string | undefined;
|
|
6
|
+
hotkeyModifier?: "ctrl" | "meta" | "alt" | "option" | undefined;
|
|
7
|
+
popoverResultMappings?: import('@searchcraft/javascript-sdk').PopoverResultMappings | undefined;
|
|
8
|
+
type?: "inline" | "fullscreen" | "modal" | undefined;
|
|
9
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../vue').ComponentOptionsMixin, import('../../vue').ComponentOptionsMixin, {}, string, import('../../vue').PublicProps, Readonly<{
|
|
10
|
+
config?: import('@searchcraft/core').SearchcraftConfig | undefined;
|
|
11
|
+
hotkey?: string | undefined;
|
|
12
|
+
hotkeyModifier?: "ctrl" | "meta" | "alt" | "option" | undefined;
|
|
13
|
+
popoverResultMappings?: import('@searchcraft/javascript-sdk').PopoverResultMappings | undefined;
|
|
14
|
+
type?: "inline" | "fullscreen" | "modal" | undefined;
|
|
15
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('../../vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=SearchcraftPopoverForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchcraftPopoverForm.d.ts","sourceRoot":"","sources":["../../src/components/SearchcraftPopoverForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;;;;;;;;;;;;;;AAErF,wBA2BG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Components } from '@searchcraft/javascript-sdk';
|
|
2
|
+
export type SearchcraftResultsInfoProps = Partial<Components.SearchcraftResultsInfo>;
|
|
3
|
+
declare const _default: import('../../vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../vue').ComponentOptionsMixin, import('../../vue').ComponentOptionsMixin, {}, string, import('../../vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('../../vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=SearchcraftResultsInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchcraftResultsInfo.d.ts","sourceRoot":"","sources":["../../src/components/SearchcraftResultsInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;;AAErF,wBAMG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Components } from '@searchcraft/javascript-sdk';
|
|
2
|
+
export type SearchcraftThemeProps = Partial<Components.SearchcraftTheme>;
|
|
3
|
+
declare const _default: import('../../vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../vue').ComponentOptionsMixin, import('../../vue').ComponentOptionsMixin, {}, string, import('../../vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('../../vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=SearchcraftTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchcraftTheme.d.ts","sourceRoot":"","sources":["../../src/components/SearchcraftTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAI9D,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;;AAEzE,wBAMG"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
|
|
9
|
-
export { default as SearchcraftPopoverButton } from './SearchcraftPopoverButton.vue';
|
|
10
|
-
export { default as SearchcraftPopoverForm } from './SearchcraftPopoverForm.vue';
|
|
11
|
-
export { default as SearchcraftSlider } from './SearchcraftSlider.vue';
|
|
12
|
-
export { default as SearchcraftResultsInfo } from './SearchcraftResultsInfo.vue';
|
|
13
|
-
export { default as SearchcraftToggleButton } from './SearchcraftToggleButton.vue';
|
|
1
|
+
export { default as SearchcraftBaseSearchResults } from './SearchcraftBaseSearchResults';
|
|
2
|
+
export { default as SearchcraftFilterPanel } from './SearchcraftFilterPanel';
|
|
3
|
+
export { default as SearchcraftInputForm } from './SearchcraftInputForm';
|
|
4
|
+
export { default as SearchcraftPopoverButton } from './SearchcraftPopoverButton';
|
|
5
|
+
export { default as SearchcraftPopoverForm } from './SearchcraftPopoverForm';
|
|
6
|
+
export { default as SearchcraftResultsInfo } from './SearchcraftResultsInfo';
|
|
7
|
+
export { default as SearchcraftTheme } from './SearchcraftTheme';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|