@algolia/algolia-custom-helpcenter-search 2.3.13 → 2.3.18
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 +2 -2
- package/lib/index.es.js +4 -4
- package/lib/index.umd.js +4 -4
- package/lib/src/answers.d.ts +3 -3
- package/lib/src/autocomplete.d.ts +0 -7
- package/lib/src/constants.d.ts +1 -0
- package/lib/src/templates.d.ts +1 -1
- package/lib/src/types.d.ts +1 -1
- package/lib/src/utils.d.ts +1 -0
- package/package.json +3 -1
- package/CHANGELOG.md +0 -292
package/lib/src/answers.d.ts
CHANGED
@@ -18,7 +18,7 @@ export declare const customFindAnswers: ({ index, query, lang, searchParams, sou
|
|
18
18
|
updated_at: number;
|
19
19
|
position: number;
|
20
20
|
title: string;
|
21
|
-
|
21
|
+
plain_body: string;
|
22
22
|
outdated: boolean;
|
23
23
|
promoted: boolean;
|
24
24
|
vote_sum: number;
|
@@ -310,7 +310,7 @@ export declare const customFindAnswers: ({ index, query, lang, searchParams, sou
|
|
310
310
|
readonly matchedWords: readonly string[];
|
311
311
|
readonly fullyHighlighted?: boolean;
|
312
312
|
};
|
313
|
-
|
313
|
+
plain_body?: {
|
314
314
|
readonly value: string;
|
315
315
|
readonly matchLevel: "none" | "full" | "partial";
|
316
316
|
readonly matchedWords: readonly string[];
|
@@ -673,7 +673,7 @@ export declare const customFindAnswers: ({ index, query, lang, searchParams, sou
|
|
673
673
|
readonly value: string;
|
674
674
|
readonly matchLevel: "none" | "full" | "partial";
|
675
675
|
};
|
676
|
-
|
676
|
+
plain_body: {
|
677
677
|
readonly value: string;
|
678
678
|
readonly matchLevel: "none" | "full" | "partial";
|
679
679
|
};
|
@@ -1,10 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* @typedef {Object} StartAutocompleteReturn
|
3
|
-
* @property {Function} destroy
|
4
|
-
*
|
5
|
-
* @param {(HTMLElement|string)} container
|
6
|
-
* @returns {StartAutocompleteReturn}
|
7
|
-
*/
|
8
1
|
export declare const startAutocomplete: (container: HTMLElement) => {
|
9
2
|
destroy: () => void;
|
10
3
|
};
|
package/lib/src/constants.d.ts
CHANGED
package/lib/src/templates.d.ts
CHANGED
@@ -6,7 +6,7 @@ export declare const bestHitTemplate: ({ item, titleAttribute, contentAttribute,
|
|
6
6
|
sourceId: SourceId;
|
7
7
|
};
|
8
8
|
titleAttribute: string | string[];
|
9
|
-
contentAttribute: 'description' | 'content' | '
|
9
|
+
contentAttribute: 'description' | 'content' | 'plain_body';
|
10
10
|
components: AutocompleteComponents;
|
11
11
|
}) => JSX.Element;
|
12
12
|
export declare const hitTemplate: (item: HitWithAnswer<FederatedHits> & {
|
package/lib/src/types.d.ts
CHANGED
package/lib/src/utils.d.ts
CHANGED
@@ -5,6 +5,7 @@ export declare const getElement: <TElement extends Element>(selector: string) =>
|
|
5
5
|
export declare const debounced: <TParams>(params: TParams) => Promise<TParams>;
|
6
6
|
export declare const getSortedHits: (SOURCES: Source[], query: string, genericAnswerParams?: Omit<FindAnswersOptions, 'attributesForPrediction'> & {
|
7
7
|
EXPERIMENTAL_illuminate?: number;
|
8
|
+
clickAnalytics?: boolean;
|
8
9
|
}) => Promise<{
|
9
10
|
hits: Array<HitWithAnswer<FederatedHits> & {
|
10
11
|
sourceId: SourceId;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@algolia/algolia-custom-helpcenter-search",
|
3
|
-
"version": "2.3.
|
3
|
+
"version": "2.3.18",
|
4
4
|
"description": "Algolia's Zendesk Help Center search implementation",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -58,6 +58,7 @@
|
|
58
58
|
},
|
59
59
|
"dependencies": {
|
60
60
|
"@algolia/autocomplete-js": "^1.2.2",
|
61
|
+
"@algolia/autocomplete-plugin-algolia-insights": "^1.8.1",
|
61
62
|
"@algolia/autocomplete-preset-algolia": "^1.2.2",
|
62
63
|
"@algolia/autocomplete-theme-classic": "^1.2.2",
|
63
64
|
"@algolia/satellite": "^1.0.0-beta.109",
|
@@ -66,6 +67,7 @@
|
|
66
67
|
"preact": "^10.5.14",
|
67
68
|
"preact-render-to-string": "^5.1.19",
|
68
69
|
"react-feather": "^2.0.9",
|
70
|
+
"search-insights": "^2.3.0",
|
69
71
|
"throttle-debounce": "^3.0.1"
|
70
72
|
},
|
71
73
|
"scripts": {
|
package/CHANGELOG.md
DELETED
@@ -1,292 +0,0 @@
|
|
1
|
-
## [2.3.13](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.13) (2022-11-23)
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
## [2.3.12](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.12) (2022-11-15)
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
## [2.3.15](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.15) (2022-11-10)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
## [2.3.14](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.14) (2022-11-10)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
## [2.3.11](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.11) (2022-10-07)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
## [2.3.10](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.10) (2022-06-30)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
## [2.3.2](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.2) (2022-06-30)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
## [2.3.9](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.9) (2022-06-29)
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
## [2.3.8](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.8) (2022-06-28)
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
## [2.3.4](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.4) (2022-01-05)
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
## [2.3.3](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.3) (2021-12-07)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
## [2.3.2](https://github.com/algolia/custom-zendesk-search/compare/v2.3.1...v2.3.2) (2021-12-03)
|
46
|
-
|
47
|
-
|
48
|
-
### Bug Fixes
|
49
|
-
|
50
|
-
* **webpack5:** add style path to exports field in package.json ([f2d0c27](https://github.com/algolia/custom-zendesk-search/commit/f2d0c277b2c19f8e8a5560482e7a3701c5f018db))
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
## [2.3.1](https://github.com/algolia/custom-zendesk-search/compare/v2.3.0...v2.3.1) (2021-10-27)
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
# [2.3.0](https://github.com/algolia/custom-zendesk-search/compare/v2.1.0...v2.3.0) (2021-10-19)
|
59
|
-
|
60
|
-
|
61
|
-
### Features
|
62
|
-
|
63
|
-
* **answers:** replace content when extract attribute is the title ([b98551b](https://github.com/algolia/custom-zendesk-search/commit/b98551b232ba4e9eaef88909974417d391e4719f))
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
# [2.2.0](https://github.com/algolia/custom-zendesk-search/compare/v2.1.0...v2.2.0) (2021-09-20)
|
68
|
-
|
69
|
-
|
70
|
-
### Features
|
71
|
-
|
72
|
-
* add title to answers attribute for prediction ([3da318e](https://github.com/algolia/custom-zendesk-search/commit/3da318e2516a9ac15ef4bbe5f9bd8dc43601169b))
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
# [2.1.0](https://github.com/algolia/custom-zendesk-search/compare/v2.0.1...v2.1.0) (2021-09-02)
|
77
|
-
|
78
|
-
|
79
|
-
### Features
|
80
|
-
|
81
|
-
* add academy to placeholder ([9a82d64](https://github.com/algolia/custom-zendesk-search/commit/9a82d64f21a3a1a0aee6bdcf94b7b39da9cd5d20))
|
82
|
-
* add intro phrase before ticket form results ([2fdf627](https://github.com/algolia/custom-zendesk-search/commit/2fdf6275654479463c403457f123f809934504e1))
|
83
|
-
* change "discourse" labels to "community" ([eb22019](https://github.com/algolia/custom-zendesk-search/commit/eb220197a2c9e1bc764588c55db71e6dc506047e))
|
84
|
-
* **sources:** academy content templating ([51520e4](https://github.com/algolia/custom-zendesk-search/commit/51520e42e42a83e841b81efb4c226637c8f0c704))
|
85
|
-
* **sources:** add academy content ([e2b54b0](https://github.com/algolia/custom-zendesk-search/commit/e2b54b0f7a9284b0dceaaab0892a365a6ce62c6e))
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
## [2.0.1](https://github.com/algolia/custom-zendesk-search/compare/v2.0.0...v2.0.1) (2021-09-01)
|
90
|
-
|
91
|
-
|
92
|
-
### Bug Fixes
|
93
|
-
|
94
|
-
* alias react to preact ([ac9910d](https://github.com/algolia/custom-zendesk-search/commit/ac9910dfc47daef3e167f9f470811597eabfb5e7))
|
95
|
-
* use root vite config for demo build ([fd8f932](https://github.com/algolia/custom-zendesk-search/commit/fd8f932e29c9567350b0fdc34bbb7741e8fd3078))
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
# [2.0.0](https://github.com/algolia/custom-zendesk-search/compare/v1.4.7...v2.0.0) (2021-08-25)
|
100
|
-
|
101
|
-
|
102
|
-
### Features
|
103
|
-
|
104
|
-
* switched from parcel to vite, types export, default umd export ([88f9494](https://github.com/algolia/custom-zendesk-search/commit/88f94948fdee5de2bee569fd575057cc31e463e1))
|
105
|
-
|
106
|
-
|
107
|
-
### BREAKING CHANGES
|
108
|
-
|
109
|
-
* adding lib in script tag is not sufficient anymore, now needs initialization with customSearch.default()
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
# [2.0.0](https://github.com/algolia/custom-zendesk-search/compare/v1.4.7...v2.0.0) (2021-08-25)
|
114
|
-
|
115
|
-
|
116
|
-
### Features
|
117
|
-
|
118
|
-
* switched from parcel to vite, types export, default umd export ([88f9494](https://github.com/algolia/custom-zendesk-search/commit/88f94948fdee5de2bee569fd575057cc31e463e1))
|
119
|
-
|
120
|
-
|
121
|
-
### BREAKING CHANGES
|
122
|
-
|
123
|
-
* adding lib in script tag is not sufficient anymore, now needs initialization with customSearch.default()
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
## [1.4.7](https://github.com/algolia/custom-zendesk-search/compare/v1.4.6...v1.4.7) (2021-08-24)
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
## [1.4.6](https://github.com/algolia/custom-zendesk-search/compare/v1.4.5...v1.4.6) (2021-08-24)
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
## [1.4.5](https://github.com/algolia/custom-zendesk-search/compare/v1.4.4...v1.4.5) (2021-08-24)
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
## [1.4.4](https://github.com/algolia/custom-zendesk-search/compare/v1.4.3...v1.4.4) (2021-08-24)
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
## [1.4.3](https://github.com/algolia/custom-zendesk-search/compare/v1.4.1...v1.4.3) (2021-08-24)
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
## [1.4.2](https://github.com/algolia/custom-zendesk-search/compare/v1.4.1...v1.4.2) (2021-08-24)
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
## [1.4.1](https://github.com/algolia/custom-zendesk-search/compare/v1.3.0...v1.4.1) (2021-08-23)
|
152
|
-
|
153
|
-
|
154
|
-
### Bug Fixes
|
155
|
-
|
156
|
-
* autocomplete test ([77c3edf](https://github.com/algolia/custom-zendesk-search/commit/77c3edff2c8d43993b47b2bc31524b7187df349c))
|
157
|
-
* update tests ([d6d287f](https://github.com/algolia/custom-zendesk-search/commit/d6d287f216f1060fc4e6c87e64826e0208bf89ed))
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
# [1.4.0](https://github.com/algolia/custom-zendesk-search/compare/v1.3.0...v1.4.0) (2021-08-23)
|
162
|
-
|
163
|
-
|
164
|
-
### Features
|
165
|
-
|
166
|
-
* add animated placeholder ([7a1abaa](https://github.com/algolia/custom-zendesk-search/commit/7a1abaaba8f80fe3c801cc47eef4507649bbf19d))
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
# [1.3.0](https://github.com/algolia/custom-zendesk-search/compare/v1.2.2...v1.3.0) (2021-08-16)
|
171
|
-
|
172
|
-
|
173
|
-
### Features
|
174
|
-
|
175
|
-
* remove tailwind base and add back custom scoped only-needed base ([9c1a324](https://github.com/algolia/custom-zendesk-search/commit/9c1a32439bbd82c62a73194522902d97565d0b92))
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
## [1.2.2](https://github.com/algolia/custom-zendesk-search/compare/v1.2.0...v1.2.2) (2021-08-12)
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
## [1.2.1](https://github.com/algolia/custom-zendesk-search/compare/v1.2.0...v1.2.1) (2021-08-12)
|
184
|
-
|
185
|
-
|
186
|
-
### Bug Fixes
|
187
|
-
|
188
|
-
* **shipjs config:** push demo to master ([0996ce3](https://github.com/algolia/custom-zendesk-search/commit/0996ce33fd863803297dbba9f8a942e0008071d5))
|
189
|
-
* **shipjs config:** require version ([20cd685](https://github.com/algolia/custom-zendesk-search/commit/20cd685dfeb1c955024afa1e4ad32749b57d7e22))
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
# [1.2.0](https://github.com/algolia/custom-zendesk-search/compare/v1.1.1...v1.2.0) (2021-08-12)
|
194
|
-
|
195
|
-
|
196
|
-
### Features
|
197
|
-
|
198
|
-
* **responsive:** add cancel button to modal when going full screen ([6fd12a2](https://github.com/algolia/custom-zendesk-search/commit/6fd12a215a550554b6043e8590349cf850dd6df0))
|
199
|
-
* **responsive:** autocomplete breakpoint ([02972b0](https://github.com/algolia/custom-zendesk-search/commit/02972b012e98a84fdcfbdfa50ada824a5a35d9fb))
|
200
|
-
* **responsive:** switched to max Width to prevent overflow ([bf05052](https://github.com/algolia/custom-zendesk-search/commit/bf050523500cc976af2a614820b2704190785f2f))
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
## [1.1.1](https://github.com/algolia/custom-zendesk-search/compare/v1.1.0...v1.1.1) (2021-08-09)
|
205
|
-
|
206
|
-
|
207
|
-
### Bug Fixes
|
208
|
-
|
209
|
-
* add padding to aa input ([ace4191](https://github.com/algolia/custom-zendesk-search/commit/ace4191ea457df3df9fdd47b7529ba53b154ff1c))
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
# [1.1.0](https://github.com/algolia/custom-zendesk-search/compare/v1.0.1...v1.1.0) (2021-08-09)
|
214
|
-
|
215
|
-
|
216
|
-
### Features
|
217
|
-
|
218
|
-
* hide original suggestions list ([6c20524](https://github.com/algolia/custom-zendesk-search/commit/6c205245751d9e8b3fd3fa745f823c8200a7431d))
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
## [1.0.1](https://github.com/algolia/custom-zendesk-search/compare/v1.0.0...v1.0.1) (2021-08-09)
|
223
|
-
|
224
|
-
|
225
|
-
### Bug Fixes
|
226
|
-
|
227
|
-
* request form pathname ([3e0463a](https://github.com/algolia/custom-zendesk-search/commit/3e0463a8248603bbdaf43ec178b5149e0bd2b7a6))
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
# [1.0.0](https://github.com/algolia/custom-zendesk-search/compare/v0.1.3...v1.0.0) (2021-08-09)
|
232
|
-
|
233
|
-
|
234
|
-
### Bug Fixes
|
235
|
-
|
236
|
-
* groupBy util ([afdc4b7](https://github.com/algolia/custom-zendesk-search/commit/afdc4b794ff5e93a6aa8c4f9d85a911a2fc402ab))
|
237
|
-
|
238
|
-
|
239
|
-
### Features
|
240
|
-
|
241
|
-
* add instantsearch to request form ([82ded89](https://github.com/algolia/custom-zendesk-search/commit/82ded89e6b85b65e7a040ebac812fe3d68755eaa))
|
242
|
-
* add keyboard indications ([e81e268](https://github.com/algolia/custom-zendesk-search/commit/e81e2689980322e687142843976eb92d8b5a446e))
|
243
|
-
* add keyboard shortcut ([a1fc996](https://github.com/algolia/custom-zendesk-search/commit/a1fc996f38f98c73f2682901b5c157c386cd2526))
|
244
|
-
* add see more ([9254268](https://github.com/algolia/custom-zendesk-search/commit/9254268db78be81bfd1a731c834fd430d55450bd))
|
245
|
-
* add zendesk source ([664f69b](https://github.com/algolia/custom-zendesk-search/commit/664f69b667bd2061575f25587d4ffdb5ae861d8c))
|
246
|
-
* additions to autocomplete and request form ([306dff9](https://github.com/algolia/custom-zendesk-search/commit/306dff92b0c71b01c81bd7d94a80e3a30cf2a956))
|
247
|
-
* changed grouping algorithm to keep order ([d04a3fe](https://github.com/algolia/custom-zendesk-search/commit/d04a3fef68230cab77f0e1f61bbe2c0a5180cdbe))
|
248
|
-
* instantsearch ([65cd138](https://github.com/algolia/custom-zendesk-search/commit/65cd138143ec1ec03b433b9933b73508e3480aa0))
|
249
|
-
* removed debouncing on request form ([3dddddd](https://github.com/algolia/custom-zendesk-search/commit/3dddddd8a704537e7842e401564337168dfa2d12))
|
250
|
-
* removed snippets from after first results ([28949e4](https://github.com/algolia/custom-zendesk-search/commit/28949e4a400ab2df755cf0a8dd8ea1a40c5d44ba))
|
251
|
-
* see all link ([8f5c42b](https://github.com/algolia/custom-zendesk-search/commit/8f5c42b934ca44bbc0c0beaed930fd32c836425b))
|
252
|
-
* try switch from IS to answers ([bfddbbf](https://github.com/algolia/custom-zendesk-search/commit/bfddbbfa21a1491707fc4da119afbd1d5c44e90b))
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
## [0.1.3](https://github.com/algolia/custom-zendesk-search/compare/v0.1.1...v0.1.3) (2021-08-02)
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
## [0.1.2](https://github.com/algolia/custom-zendesk-search/compare/v0.1.1...v0.1.2) (2021-07-30)
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
## 0.1.1 (2021-07-30)
|
265
|
-
|
266
|
-
|
267
|
-
### Bug Fixes
|
268
|
-
|
269
|
-
* removed main property from package.json otherwise build fail ([946d82e](https://github.com/algolia/custom-zendesk-search/commit/946d82e5448b1f6c9421477ce0b9f6f8d8799bc9))
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
# 0.1.0 (2021-07-30)
|
274
|
-
|
275
|
-
|
276
|
-
### Bug Fixes
|
277
|
-
|
278
|
-
* dependant of path only in production ([98aafc5](https://github.com/algolia/custom-zendesk-search/commit/98aafc57128a8e04d6e1b030a483a93a776d24d8))
|
279
|
-
|
280
|
-
|
281
|
-
### Features
|
282
|
-
|
283
|
-
* **autocomplete:** add basic results display ([31c16db](https://github.com/algolia/custom-zendesk-search/commit/31c16db30665abfb8e6d0b5ed4234f6dc5e16f46))
|
284
|
-
* **autocomplete:** started implementation ([edcf632](https://github.com/algolia/custom-zendesk-search/commit/edcf632d19a16f2dd0eddfaf5e916ef3338a48a6))
|
285
|
-
* **autocomplete:** templates v1 ([2fb8ec4](https://github.com/algolia/custom-zendesk-search/commit/2fb8ec4a46c08f8b5ef18dab5299221959b40bbf))
|
286
|
-
* get ready for production ([c288c5a](https://github.com/algolia/custom-zendesk-search/commit/c288c5a3daa6d7bbe9ced543444917554b646b3c))
|
287
|
-
* test 3 hits per type ([b453dd2](https://github.com/algolia/custom-zendesk-search/commit/b453dd273ba91f2e42db6b411f13aff879b23bb7))
|
288
|
-
* test 5 most relevant answers on search ([68f8d77](https://github.com/algolia/custom-zendesk-search/commit/68f8d777aa1ea986302d9a1af8d73d1a95ecc603))
|
289
|
-
* **ticket form:** add answers on ticket form request ([02ccb7c](https://github.com/algolia/custom-zendesk-search/commit/02ccb7c852d078e29b3a6a9249c9db6cb9539b31))
|
290
|
-
|
291
|
-
|
292
|
-
|