@rubixstudios/payload-typesense 1.0.4 → 1.0.6

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.
Files changed (49) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +1 -1
  3. package/dist/components/ThemeProvider.d.ts +1 -2
  4. package/dist/components/ThemeProvider.d.ts.map +1 -1
  5. package/dist/components/ThemeProvider.js +1 -1
  6. package/dist/components/index.d.ts +5 -5
  7. package/dist/components/index.d.ts.map +1 -1
  8. package/dist/components/index.js +3 -3
  9. package/dist/components/themes/hooks.d.ts +5 -5
  10. package/dist/components/themes/hooks.d.ts.map +1 -1
  11. package/dist/components/themes/hooks.js +16 -16
  12. package/dist/components/themes/index.d.ts +4 -4
  13. package/dist/components/themes/index.js +4 -4
  14. package/dist/components/themes/themes.d.ts +1 -1
  15. package/dist/components/themes/themes.d.ts.map +1 -1
  16. package/dist/components/themes/themes.js +109 -109
  17. package/dist/components/themes/types.d.ts.map +1 -1
  18. package/dist/components/themes/utils.d.ts +1 -1
  19. package/dist/components/themes/utils.d.ts.map +1 -1
  20. package/dist/components/themes/utils.js +139 -139
  21. package/dist/endpoints/customEndpointHandler.d.ts +1 -1
  22. package/dist/endpoints/customEndpointHandler.js +1 -1
  23. package/dist/endpoints/search.d.ts +3 -3
  24. package/dist/endpoints/search.d.ts.map +1 -1
  25. package/dist/endpoints/search.js +65 -65
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +17 -17
  29. package/dist/lib/cache.d.ts +1 -1
  30. package/dist/lib/cache.d.ts.map +1 -1
  31. package/dist/lib/cache.js +19 -19
  32. package/dist/lib/config-validation.d.ts +1 -1
  33. package/dist/lib/config-validation.d.ts.map +1 -1
  34. package/dist/lib/config-validation.js +18 -18
  35. package/dist/lib/hooks.d.ts +2 -2
  36. package/dist/lib/hooks.d.ts.map +1 -1
  37. package/dist/lib/hooks.js +2 -2
  38. package/dist/lib/initialization.d.ts +3 -3
  39. package/dist/lib/initialization.d.ts.map +1 -1
  40. package/dist/lib/initialization.js +5 -5
  41. package/dist/lib/schema-mapper.d.ts +2 -2
  42. package/dist/lib/schema-mapper.d.ts.map +1 -1
  43. package/dist/lib/schema-mapper.js +27 -27
  44. package/dist/lib/types.d.ts +3 -3
  45. package/dist/lib/types.d.ts.map +1 -1
  46. package/dist/lib/typesense-client.d.ts +3 -3
  47. package/dist/lib/typesense-client.d.ts.map +1 -1
  48. package/dist/lib/typesense-client.js +55 -8
  49. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defaultTheme, themes } from './themes.js';
1
+ import { defaultTheme, themes } from "./themes.js";
2
2
  /**
3
3
  * Get a theme by name or return the default theme
4
4
  */ export function getTheme(themeName) {
@@ -7,7 +7,7 @@ import { defaultTheme, themes } from './themes.js';
7
7
  /**
8
8
  * Merge theme configurations with custom overrides
9
9
  */ export function mergeThemeConfig(config) {
10
- const baseTheme = typeof config.theme === 'string' ? getTheme(config.theme) : config.theme;
10
+ const baseTheme = typeof config.theme === "string" ? getTheme(config.theme) : config.theme;
11
11
  return {
12
12
  ...baseTheme,
13
13
  animations: {
@@ -41,118 +41,118 @@ import { defaultTheme, themes } from './themes.js';
41
41
  // Helper function to create CSS string
42
42
  const css = (styles)=>{
43
43
  return Object.entries(styles).map(([key, value])=>{
44
- if (typeof value === 'object' && value !== null) {
44
+ if (typeof value === "object" && value !== null) {
45
45
  // Handle nested objects like ':hover', '::placeholder'
46
- const nested = Object.entries(value).map(([nestedKey, nestedValue])=>`${nestedKey.replace(/([A-Z])/g, '-$1').toLowerCase()}: ${nestedValue}`).join('; ');
47
- return `${key.replace(/([A-Z])/g, '-$1').toLowerCase()}: { ${nested} }`;
46
+ const nested = Object.entries(value).map(([nestedKey, nestedValue])=>`${nestedKey.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${nestedValue}`).join("; ");
47
+ return `${key.replace(/([A-Z])/g, "-$1").toLowerCase()}: { ${nested} }`;
48
48
  }
49
- return `${key.replace(/([A-Z])/g, '-$1').toLowerCase()}: ${value}`;
50
- }).join('; ');
49
+ return `${key.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${value}`;
50
+ }).join("; ");
51
51
  };
52
52
  // Container styles
53
53
  const containerStyles = css({
54
- margin: '0 auto',
55
- maxWidth: '600px',
56
- position: 'relative',
57
- width: '100%'
54
+ margin: "0 auto",
55
+ maxWidth: "600px",
56
+ position: "relative",
57
+ width: "100%"
58
58
  });
59
59
  const inputContainerStyles = css({
60
- position: 'relative',
61
- width: '100%'
60
+ position: "relative",
61
+ width: "100%"
62
62
  });
63
63
  const resultsContainerStyles = css({
64
64
  backgroundColor: theme.colors.resultsBackground,
65
65
  border: `1px solid ${theme.colors.resultsBorder}`,
66
- borderRadius: enableRoundedCorners ? theme.spacing.resultsBorderRadius : '0',
67
- boxShadow: enableShadows ? theme.shadows.shadowLg : 'none',
68
- left: '0',
69
- marginTop: '4px',
66
+ borderRadius: enableRoundedCorners ? theme.spacing.resultsBorderRadius : "0",
67
+ boxShadow: enableShadows ? theme.shadows.shadowLg : "none",
68
+ left: "0",
69
+ marginTop: "4px",
70
70
  maxHeight: theme.spacing.resultsMaxHeight,
71
- overflowY: 'auto',
72
- position: 'absolute',
73
- right: '0',
74
- top: '100%',
75
- zIndex: '1000',
71
+ overflowY: "auto",
72
+ position: "absolute",
73
+ right: "0",
74
+ top: "100%",
75
+ zIndex: "1000",
76
76
  ...enableAnimations && {
77
- animation: 'slideDown 0.2s ease-out'
77
+ animation: "slideDown 0.2s ease-out"
78
78
  }
79
79
  });
80
80
  // Input styles
81
81
  const inputStyles = css({
82
- '::placeholder': {
82
+ "::placeholder": {
83
83
  color: theme.colors.inputPlaceholder
84
84
  },
85
- ':disabled': {
85
+ ":disabled": {
86
86
  backgroundColor: theme.colors.inputBackground,
87
- cursor: 'not-allowed',
88
- opacity: '0.6'
87
+ cursor: "not-allowed",
88
+ opacity: "0.6"
89
89
  },
90
- ':focus': {
90
+ ":focus": {
91
91
  borderColor: theme.colors.inputBorderFocus,
92
- boxShadow: enableShadows ? `${theme.shadows.focusShadow} ${theme.shadows.focusShadowColor}` : 'none'
92
+ boxShadow: enableShadows ? `${theme.shadows.focusShadow} ${theme.shadows.focusShadowColor}` : "none"
93
93
  },
94
94
  backgroundColor: theme.colors.inputBackground,
95
95
  border: `2px solid ${theme.colors.inputBorder}`,
96
- borderRadius: enableRoundedCorners ? theme.spacing.inputBorderRadius : '0',
97
- boxShadow: 'none',
96
+ borderRadius: enableRoundedCorners ? theme.spacing.inputBorderRadius : "0",
97
+ boxShadow: "none",
98
98
  color: theme.colors.inputText,
99
99
  fontFamily: theme.typography.fontFamily,
100
100
  fontSize: theme.spacing.inputFontSize,
101
101
  fontWeight: theme.typography.fontWeightNormal,
102
102
  lineHeight: theme.typography.lineHeightNormal,
103
- outline: 'none',
103
+ outline: "none",
104
104
  padding: theme.spacing.inputPadding,
105
- transition: enableAnimations ? `all ${theme.animations.transitionNormal} ${theme.animations.easeInOut}` : 'none',
106
- width: '100%'
105
+ transition: enableAnimations ? `all ${theme.animations.transitionNormal} ${theme.animations.easeInOut}` : "none",
106
+ width: "100%"
107
107
  });
108
108
  // Results styles
109
109
  const resultsStyles = css({
110
110
  backgroundColor: theme.colors.resultsBackground,
111
111
  border: `1px solid ${theme.colors.resultsBorder}`,
112
- borderRadius: enableRoundedCorners ? theme.spacing.resultsBorderRadius : '0',
113
- boxShadow: enableShadows ? theme.shadows.shadowLg : 'none',
114
- left: '0',
112
+ borderRadius: enableRoundedCorners ? theme.spacing.resultsBorderRadius : "0",
113
+ boxShadow: enableShadows ? theme.shadows.shadowLg : "none",
114
+ left: "0",
115
115
  maxHeight: theme.spacing.resultsMaxHeight,
116
- overflowY: 'auto',
117
- position: 'absolute',
118
- right: '0',
119
- top: '100%',
120
- zIndex: '1000'
116
+ overflowY: "auto",
117
+ position: "absolute",
118
+ right: "0",
119
+ top: "100%",
120
+ zIndex: "1000"
121
121
  });
122
122
  const resultsHeaderStyles = css({
123
- alignItems: 'center',
123
+ alignItems: "center",
124
124
  backgroundColor: theme.colors.headerBackground,
125
125
  borderBottom: `1px solid ${theme.colors.headerBorder}`,
126
126
  color: theme.colors.headerText,
127
- display: 'flex',
127
+ display: "flex",
128
128
  fontFamily: theme.typography.fontFamily,
129
129
  fontSize: theme.spacing.headerFontSize,
130
130
  fontWeight: theme.typography.fontWeightMedium,
131
- justifyContent: 'space-between',
131
+ justifyContent: "space-between",
132
132
  padding: theme.spacing.headerPadding
133
133
  });
134
134
  const resultsListStyles = css({
135
- padding: '8px 0'
135
+ padding: "8px 0"
136
136
  });
137
137
  // Result item styles
138
138
  const resultItemStyles = css({
139
- ':focus': {
139
+ ":focus": {
140
140
  backgroundColor: theme.colors.resultBackgroundFocus,
141
- boxShadow: enableShadows ? `inset 0 0 0 2px ${theme.colors.inputBorderFocus}` : 'none'
141
+ boxShadow: enableShadows ? `inset 0 0 0 2px ${theme.colors.inputBorderFocus}` : "none"
142
142
  },
143
- ':hover': {
143
+ ":hover": {
144
144
  backgroundColor: theme.colors.resultBackgroundHover,
145
- transform: enableAnimations ? 'translateX(2px)' : 'none'
145
+ transform: enableAnimations ? "translateX(2px)" : "none"
146
146
  },
147
- ':last-child': {
148
- borderBottom: 'none'
147
+ ":last-child": {
148
+ borderBottom: "none"
149
149
  },
150
150
  backgroundColor: theme.colors.resultBackground,
151
151
  borderBottom: `1px solid ${theme.colors.resultBorder}`,
152
- cursor: 'pointer',
153
- outline: 'none',
152
+ cursor: "pointer",
153
+ outline: "none",
154
154
  padding: theme.spacing.itemPadding,
155
- transition: enableAnimations ? `all ${theme.animations.transitionFast} ${theme.animations.easeInOut}` : 'none'
155
+ transition: enableAnimations ? `all ${theme.animations.transitionFast} ${theme.animations.easeInOut}` : "none"
156
156
  });
157
157
  // Content styles
158
158
  const resultTitleStyles = css({
@@ -161,125 +161,125 @@ import { defaultTheme, themes } from './themes.js';
161
161
  fontSize: theme.typography.fontSizeLg,
162
162
  fontWeight: theme.typography.fontWeightSemibold,
163
163
  lineHeight: theme.typography.lineHeightTight,
164
- marginBottom: '8px'
164
+ marginBottom: "8px"
165
165
  });
166
166
  const resultDescriptionStyles = css({
167
167
  color: theme.colors.descriptionText,
168
168
  fontFamily: theme.typography.fontFamily,
169
169
  fontSize: theme.typography.fontSizeSm,
170
170
  lineHeight: theme.typography.lineHeightNormal,
171
- marginBottom: '8px'
171
+ marginBottom: "8px"
172
172
  });
173
173
  const resultHighlightStyles = css({
174
174
  backgroundColor: theme.colors.highlightBackground,
175
- borderRadius: enableRoundedCorners ? '6px' : '0',
175
+ borderRadius: enableRoundedCorners ? "6px" : "0",
176
176
  color: theme.colors.descriptionText,
177
177
  fontFamily: theme.typography.fontFamily,
178
178
  fontSize: theme.typography.fontSizeSm,
179
179
  lineHeight: theme.typography.lineHeightNormal,
180
- marginBottom: '8px',
180
+ marginBottom: "8px",
181
181
  mark: {
182
182
  backgroundColor: theme.colors.highlightBackground,
183
- borderRadius: enableRoundedCorners ? '3px' : '0',
183
+ borderRadius: enableRoundedCorners ? "3px" : "0",
184
184
  color: theme.colors.highlightText,
185
185
  fontWeight: theme.typography.fontWeightMedium,
186
- padding: '2px 4px'
186
+ padding: "2px 4px"
187
187
  },
188
- padding: '8px 12px'
188
+ padding: "8px 12px"
189
189
  });
190
190
  const resultMetaStyles = css({
191
- alignItems: 'center',
191
+ alignItems: "center",
192
192
  color: theme.colors.metaText,
193
- display: 'flex',
193
+ display: "flex",
194
194
  fontFamily: theme.typography.fontFamily,
195
195
  fontSize: theme.typography.fontSizeXs,
196
- justifyContent: 'space-between',
197
- marginTop: '8px'
196
+ justifyContent: "space-between",
197
+ marginTop: "8px"
198
198
  });
199
199
  // Badge styles
200
200
  const collectionBadgeStyles = css({
201
201
  backgroundColor: theme.colors.collectionBadge,
202
- borderRadius: enableRoundedCorners ? '12px' : '0',
202
+ borderRadius: enableRoundedCorners ? "12px" : "0",
203
203
  color: theme.colors.collectionBadgeText,
204
- display: 'inline-block',
204
+ display: "inline-block",
205
205
  fontFamily: theme.typography.fontFamily,
206
206
  fontSize: theme.typography.fontSizeXs,
207
207
  fontWeight: theme.typography.fontWeightSemibold,
208
- letterSpacing: '0.5px',
209
- padding: '4px 8px',
210
- textTransform: 'uppercase'
208
+ letterSpacing: "0.5px",
209
+ padding: "4px 8px",
210
+ textTransform: "uppercase"
211
211
  });
212
212
  const scoreBadgeStyles = css({
213
213
  backgroundColor: theme.colors.scoreBadge,
214
- borderRadius: enableRoundedCorners ? '4px' : '0',
214
+ borderRadius: enableRoundedCorners ? "4px" : "0",
215
215
  color: theme.colors.scoreBadgeText,
216
- display: 'inline-block',
216
+ display: "inline-block",
217
217
  fontFamily: theme.typography.fontFamily,
218
218
  fontSize: theme.typography.fontSizeXs,
219
219
  fontWeight: theme.typography.fontWeightMedium,
220
- padding: '2px 6px'
220
+ padding: "2px 6px"
221
221
  });
222
222
  // State styles
223
223
  const loadingStyles = css({
224
- alignItems: 'center',
224
+ alignItems: "center",
225
225
  color: theme.colors.loadingText,
226
- display: 'flex',
226
+ display: "flex",
227
227
  fontFamily: theme.typography.fontFamily,
228
228
  fontSize: theme.typography.fontSizeSm,
229
- gap: '12px',
230
- justifyContent: 'center',
231
- padding: '24px'
229
+ gap: "12px",
230
+ justifyContent: "center",
231
+ padding: "24px"
232
232
  });
233
233
  const loadingSpinnerStyles = css({
234
- animation: enableAnimations ? `spin 1s linear infinite` : 'none',
234
+ animation: enableAnimations ? `spin 1s linear infinite` : "none",
235
235
  border: `2px solid ${theme.colors.inputBorder}`,
236
- borderRadius: '50%',
236
+ borderRadius: "50%",
237
237
  borderTop: `2px solid ${theme.colors.inputBorderFocus}`,
238
- height: '20px',
239
- width: '20px'
238
+ height: "20px",
239
+ width: "20px"
240
240
  });
241
241
  const errorStyles = css({
242
- alignItems: 'center',
242
+ alignItems: "center",
243
243
  backgroundColor: theme.colors.errorBackground,
244
244
  borderBottom: `1px solid ${theme.colors.resultBorder}`,
245
245
  color: theme.colors.errorText,
246
- display: 'flex',
246
+ display: "flex",
247
247
  fontFamily: theme.typography.fontFamily,
248
248
  fontSize: theme.typography.fontSizeSm,
249
- gap: '8px',
250
- padding: '16px'
249
+ gap: "8px",
250
+ padding: "16px"
251
251
  });
252
252
  const noResultsStyles = css({
253
253
  color: theme.colors.noResultsText,
254
254
  fontFamily: theme.typography.fontFamily,
255
255
  fontSize: theme.typography.fontSizeSm,
256
- padding: '40px 20px',
257
- textAlign: 'center'
256
+ padding: "40px 20px",
257
+ textAlign: "center"
258
258
  });
259
259
  // Facet styles
260
260
  const facetContainerStyles = css({
261
261
  backgroundColor: theme.colors.headerBackground,
262
262
  borderBottom: `1px solid ${theme.colors.headerBorder}`,
263
- padding: '16px'
263
+ padding: "16px"
264
264
  });
265
265
  const facetItemStyles = css({
266
- ':hover': {
266
+ ":hover": {
267
267
  backgroundColor: theme.colors.facetActiveBackground,
268
268
  borderColor: theme.colors.facetActiveBackground,
269
269
  color: theme.colors.facetActiveText
270
270
  },
271
271
  backgroundColor: theme.colors.facetBackground,
272
272
  border: `1px solid ${theme.colors.facetBorder}`,
273
- borderRadius: enableRoundedCorners ? '16px' : '0',
273
+ borderRadius: enableRoundedCorners ? "16px" : "0",
274
274
  color: theme.colors.facetText,
275
- cursor: 'pointer',
276
- display: 'inline-block',
275
+ cursor: "pointer",
276
+ display: "inline-block",
277
277
  fontFamily: theme.typography.fontFamily,
278
278
  fontSize: theme.typography.fontSizeXs,
279
279
  fontWeight: theme.typography.fontWeightMedium,
280
- margin: '4px',
281
- padding: '6px 12px',
282
- transition: enableAnimations ? `all ${theme.animations.transitionFast} ${theme.animations.easeInOut}` : 'none'
280
+ margin: "4px",
281
+ padding: "6px 12px",
282
+ transition: enableAnimations ? `all ${theme.animations.transitionFast} ${theme.animations.easeInOut}` : "none"
283
283
  });
284
284
  const facetItemActiveStyles = css({
285
285
  backgroundColor: theme.colors.facetActiveBackground,
@@ -288,16 +288,16 @@ import { defaultTheme, themes } from './themes.js';
288
288
  });
289
289
  // Utility styles
290
290
  const hiddenStyles = css({
291
- display: 'none'
291
+ display: "none"
292
292
  });
293
293
  const visibleStyles = css({
294
- display: 'block'
294
+ display: "block"
295
295
  });
296
296
  const focusableStyles = css({
297
- ':focus': {
298
- boxShadow: enableShadows ? `0 0 0 2px ${theme.colors.inputBorderFocus}` : 'none'
297
+ ":focus": {
298
+ boxShadow: enableShadows ? `0 0 0 2px ${theme.colors.inputBorderFocus}` : "none"
299
299
  },
300
- outline: 'none'
300
+ outline: "none"
301
301
  });
302
302
  return {
303
303
  // Container classes
@@ -306,17 +306,17 @@ import { defaultTheme, themes } from './themes.js';
306
306
  resultsContainer: resultsContainerStyles,
307
307
  // Input classes
308
308
  input: inputStyles,
309
- inputDisabled: '',
310
- inputFocus: '',
309
+ inputDisabled: "",
310
+ inputFocus: "",
311
311
  // Results classes
312
312
  results: resultsStyles,
313
313
  resultsHeader: resultsHeaderStyles,
314
314
  resultsList: resultsListStyles,
315
315
  // Item classes
316
316
  resultItem: resultItemStyles,
317
- resultItemActive: '',
318
- resultItemFocus: '',
319
- resultItemHover: '',
317
+ resultItemActive: "",
318
+ resultItemFocus: "",
319
+ resultItemHover: "",
320
320
  // Content classes
321
321
  resultDescription: resultDescriptionStyles,
322
322
  resultHighlight: resultHighlightStyles,
@@ -346,14 +346,14 @@ import { defaultTheme, themes } from './themes.js';
346
346
  const classes = generateThemeClasses(theme);
347
347
  if (variant) {
348
348
  const variantKey = `${element}${variant.charAt(0).toUpperCase() + variant.slice(1)}`;
349
- return `${classes[element] || ''} ${classes[variantKey] || ''}`;
349
+ return `${classes[element] || ""} ${classes[variantKey] || ""}`;
350
350
  }
351
- return classes[element] || '';
351
+ return classes[element] || "";
352
352
  }
353
353
  /**
354
354
  * Check if theme is dark mode
355
355
  */ export function isDarkTheme(theme) {
356
- return theme.name === 'dark' || theme.colors.inputBackground.includes('#1f') || theme.colors.inputBackground.includes('#0f');
356
+ return theme.name === "dark" || theme.colors.inputBackground.includes("#1f") || theme.colors.inputBackground.includes("#0f");
357
357
  }
358
358
  /**
359
359
  * Check if theme is light mode
@@ -364,34 +364,34 @@ import { defaultTheme, themes } from './themes.js';
364
364
  * Get theme-specific CSS variables
365
365
  */ export function getThemeVariables(theme) {
366
366
  return {
367
- '--search-collection-badge': theme.colors.collectionBadge,
368
- '--search-collection-badge-text': theme.colors.collectionBadgeText,
369
- '--search-description-text': theme.colors.descriptionText,
370
- '--search-error-bg': theme.colors.errorBackground,
371
- '--search-error-text': theme.colors.errorText,
372
- '--search-facet-active-bg': theme.colors.facetActiveBackground,
373
- '--search-facet-active-text': theme.colors.facetActiveText,
374
- '--search-facet-bg': theme.colors.facetBackground,
375
- '--search-facet-border': theme.colors.facetBorder,
376
- '--search-facet-text': theme.colors.facetText,
377
- '--search-header-bg': theme.colors.headerBackground,
378
- '--search-header-text': theme.colors.headerText,
379
- '--search-highlight-bg': theme.colors.highlightBackground,
380
- '--search-highlight-text': theme.colors.highlightText,
381
- '--search-input-bg': theme.colors.inputBackground,
382
- '--search-input-border': theme.colors.inputBorder,
383
- '--search-input-border-focus': theme.colors.inputBorderFocus,
384
- '--search-input-placeholder': theme.colors.inputPlaceholder,
385
- '--search-input-text': theme.colors.inputText,
386
- '--search-loading-text': theme.colors.loadingText,
387
- '--search-meta-text': theme.colors.metaText,
388
- '--search-no-results-text': theme.colors.noResultsText,
389
- '--search-result-bg': theme.colors.resultBackground,
390
- '--search-result-bg-hover': theme.colors.resultBackgroundHover,
391
- '--search-results-bg': theme.colors.resultsBackground,
392
- '--search-results-border': theme.colors.resultsBorder,
393
- '--search-score-badge': theme.colors.scoreBadge,
394
- '--search-score-badge-text': theme.colors.scoreBadgeText,
395
- '--search-title-text': theme.colors.titleText
367
+ "--search-collection-badge": theme.colors.collectionBadge,
368
+ "--search-collection-badge-text": theme.colors.collectionBadgeText,
369
+ "--search-description-text": theme.colors.descriptionText,
370
+ "--search-error-bg": theme.colors.errorBackground,
371
+ "--search-error-text": theme.colors.errorText,
372
+ "--search-facet-active-bg": theme.colors.facetActiveBackground,
373
+ "--search-facet-active-text": theme.colors.facetActiveText,
374
+ "--search-facet-bg": theme.colors.facetBackground,
375
+ "--search-facet-border": theme.colors.facetBorder,
376
+ "--search-facet-text": theme.colors.facetText,
377
+ "--search-header-bg": theme.colors.headerBackground,
378
+ "--search-header-text": theme.colors.headerText,
379
+ "--search-highlight-bg": theme.colors.highlightBackground,
380
+ "--search-highlight-text": theme.colors.highlightText,
381
+ "--search-input-bg": theme.colors.inputBackground,
382
+ "--search-input-border": theme.colors.inputBorder,
383
+ "--search-input-border-focus": theme.colors.inputBorderFocus,
384
+ "--search-input-placeholder": theme.colors.inputPlaceholder,
385
+ "--search-input-text": theme.colors.inputText,
386
+ "--search-loading-text": theme.colors.loadingText,
387
+ "--search-meta-text": theme.colors.metaText,
388
+ "--search-no-results-text": theme.colors.noResultsText,
389
+ "--search-result-bg": theme.colors.resultBackground,
390
+ "--search-result-bg-hover": theme.colors.resultBackgroundHover,
391
+ "--search-results-bg": theme.colors.resultsBackground,
392
+ "--search-results-border": theme.colors.resultsBorder,
393
+ "--search-score-badge": theme.colors.scoreBadge,
394
+ "--search-score-badge-text": theme.colors.scoreBadgeText,
395
+ "--search-title-text": theme.colors.titleText
396
396
  };
397
397
  }
@@ -1,3 +1,3 @@
1
- import type { PayloadHandler } from 'payload';
1
+ import type { PayloadHandler } from "payload";
2
2
  export declare const customEndpointHandler: PayloadHandler;
3
3
  //# sourceMappingURL=customEndpointHandler.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export const customEndpointHandler = ()=>{
2
2
  return Response.json({
3
- message: 'Custom endpoint response'
3
+ message: "Custom endpoint response"
4
4
  });
5
5
  };
@@ -1,6 +1,6 @@
1
- import type { PayloadHandler } from 'payload';
2
- import type Typesense from 'typesense';
3
- import type { TypesenseSearchConfig } from '../index.js';
1
+ import type { PayloadHandler } from "payload";
2
+ import type Typesense from "typesense";
3
+ import type { TypesenseSearchConfig } from "../index.js";
4
4
  export declare const createSearchEndpoints: (typesenseClient: Typesense.Client, pluginOptions: TypesenseSearchConfig, lastSyncTime?: number) => ({
5
5
  handler: PayloadHandler;
6
6
  method: "get";
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,SAAS,MAAM,WAAW,CAAA;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AA4HxD,eAAO,MAAM,qBAAqB,GAChC,iBAAiB,SAAS,CAAC,MAAM,EACjC,eAAe,qBAAqB,EACpC,eAAe,MAAM;;;;;;;;IAuCtB,CAAA"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,SAAS,MAAM,WAAW,CAAA;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAgJxD,eAAO,MAAM,qBAAqB,GACjC,iBAAiB,SAAS,CAAC,MAAM,EACjC,eAAe,qBAAqB,EACpC,eAAe,MAAM;;;;;;;;IA+CrB,CAAA"}