@searchcraft/javascript-sdk 0.13.0 → 0.13.2

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 (113) hide show
  1. package/dist/components/{p-e30203b1.js → CoreInstanceRegistry.js} +2 -1
  2. package/dist/components/CoreInstanceRegistry.js.map +1 -0
  3. package/dist/components/defineCustomElements.js +23 -23
  4. package/dist/components/{p-b4b67072.js → html.js} +4 -3
  5. package/dist/components/html.js.map +1 -0
  6. package/dist/components/index.d.ts +73 -1
  7. package/dist/components/index.js +82 -658
  8. package/dist/components/index.js.map +1 -1
  9. package/dist/components/{p-5365011f.js → index2.js} +867 -186
  10. package/dist/components/index2.js.map +1 -0
  11. package/dist/components/index3.js +95 -0
  12. package/dist/components/index3.js.map +1 -0
  13. package/dist/components/purify.es.js +1379 -0
  14. package/dist/components/purify.es.js.map +1 -0
  15. package/dist/components/searchcraft-ad.js +2 -1
  16. package/dist/components/{p-87435aac.js → searchcraft-ad2.js} +14 -10
  17. package/dist/components/searchcraft-ad2.js.map +1 -0
  18. package/dist/components/searchcraft-button.js +2 -1
  19. package/dist/components/{p-acf23bab.js → searchcraft-button2.js} +12 -9
  20. package/dist/components/searchcraft-button2.js.map +1 -0
  21. package/dist/components/searchcraft-error-message.js +2 -1
  22. package/dist/components/{p-f2585cdf.js → searchcraft-error-message2.js} +10 -7
  23. package/dist/components/searchcraft-error-message2.js.map +1 -0
  24. package/dist/components/searchcraft-facet-list.js +2 -1
  25. package/dist/components/{p-e8d97093.js → searchcraft-facet-list2.js} +17 -12
  26. package/dist/components/searchcraft-facet-list2.js.map +1 -0
  27. package/dist/components/searchcraft-filter-panel.js +16 -13
  28. package/dist/components/searchcraft-filter-panel.js.map +1 -1
  29. package/dist/components/searchcraft-input-form.js +2 -1
  30. package/dist/components/{p-76d95772.js → searchcraft-input-form2.js} +21 -18
  31. package/dist/components/searchcraft-input-form2.js.map +1 -0
  32. package/dist/components/searchcraft-input-label.js +2 -1
  33. package/dist/components/{p-fa799946.js → searchcraft-input-label2.js} +11 -8
  34. package/dist/components/searchcraft-input-label2.js.map +1 -0
  35. package/dist/components/searchcraft-loading.js +2 -1
  36. package/dist/components/{p-46ddde99.js → searchcraft-loading2.js} +10 -7
  37. package/dist/components/searchcraft-loading2.js.map +1 -0
  38. package/dist/components/searchcraft-pagination.js +15 -11
  39. package/dist/components/searchcraft-pagination.js.map +1 -1
  40. package/dist/components/searchcraft-popover-button.js +11 -8
  41. package/dist/components/searchcraft-popover-button.js.map +1 -1
  42. package/dist/components/searchcraft-popover-footer.js +2 -1
  43. package/dist/components/{p-3d2107af.js → searchcraft-popover-footer2.js} +13 -10
  44. package/dist/components/searchcraft-popover-footer2.js.map +1 -0
  45. package/dist/components/searchcraft-popover-form.js +28 -25
  46. package/dist/components/searchcraft-popover-form.js.map +1 -1
  47. package/dist/components/searchcraft-popover-list-item.js +2 -1
  48. package/dist/components/{p-38b2dad0.js → searchcraft-popover-list-item2.js} +13 -10
  49. package/dist/components/searchcraft-popover-list-item2.js.map +1 -0
  50. package/dist/components/searchcraft-popover-list-view.js +2 -1
  51. package/dist/components/{p-90bc1590.js → searchcraft-popover-list-view2.js} +15 -12
  52. package/dist/components/searchcraft-popover-list-view2.js.map +1 -0
  53. package/dist/components/searchcraft-results-info.js +12 -9
  54. package/dist/components/searchcraft-results-info.js.map +1 -1
  55. package/dist/components/searchcraft-search-result.js +2 -1
  56. package/dist/components/{p-3286bbb3.js → searchcraft-search-result2.js} +12 -9
  57. package/dist/components/searchcraft-search-result2.js.map +1 -0
  58. package/dist/components/searchcraft-search-results-per-page.js +14 -10
  59. package/dist/components/searchcraft-search-results-per-page.js.map +1 -1
  60. package/dist/components/searchcraft-search-results.js +16 -13
  61. package/dist/components/searchcraft-search-results.js.map +1 -1
  62. package/dist/components/searchcraft-select.js +2 -1
  63. package/dist/components/{p-73db9122.js → searchcraft-select2.js} +11 -8
  64. package/dist/components/searchcraft-select2.js.map +1 -0
  65. package/dist/components/searchcraft-slider.js +2 -1
  66. package/dist/components/{p-afe7ce60.js → searchcraft-slider2.js} +14 -11
  67. package/dist/components/searchcraft-slider2.js.map +1 -0
  68. package/dist/components/searchcraft-summary-box.js +15 -70
  69. package/dist/components/searchcraft-summary-box.js.map +1 -1
  70. package/dist/components/searchcraft-theme.js +10 -7
  71. package/dist/components/searchcraft-theme.js.map +1 -1
  72. package/dist/components/searchcraft-toggle-button.js +2 -1
  73. package/dist/components/{p-16181756.js → searchcraft-toggle-button2.js} +13 -10
  74. package/dist/components/searchcraft-toggle-button2.js.map +1 -0
  75. package/dist/components/{p-d54771ef.js → units.js} +2 -1
  76. package/dist/components/units.js.map +1 -0
  77. package/dist/hydrate/index.d.ts +52 -7
  78. package/dist/hydrate/index.js +3374 -2599
  79. package/dist/hydrate/index.mjs +3374 -2601
  80. package/dist/types/classes/SearchcraftCore.d.ts +1 -0
  81. package/dist/types/clients/MeasureClient.d.ts +2 -1
  82. package/dist/types/clients/SearchClient.d.ts +1 -1
  83. package/dist/types/clients/ad-clients/AdClient.d.ts +1 -1
  84. package/dist/types/clients/ad-clients/NativoClient.d.ts +1 -1
  85. package/dist/types/components/searchcraft-popover-form/searchcraft-popover-form.d.ts +1 -1
  86. package/dist/types/components/searchcraft-popover-list-item/searchcraft-popover-list-item.d.ts +1 -1
  87. package/dist/types/components/searchcraft-popover-list-view/searchcraft-popover-list-view.d.ts +1 -1
  88. package/dist/types/components/searchcraft-search-results/searchcraft-search-results.d.ts +2 -2
  89. package/dist/types/components.d.ts +70 -0
  90. package/dist/types/stencil-public-runtime.d.ts +127 -8
  91. package/package.json +3 -3
  92. package/dist/components/p-16181756.js.map +0 -1
  93. package/dist/components/p-3286bbb3.js.map +0 -1
  94. package/dist/components/p-38b2dad0.js.map +0 -1
  95. package/dist/components/p-3d2107af.js.map +0 -1
  96. package/dist/components/p-46ddde99.js.map +0 -1
  97. package/dist/components/p-5365011f.js.map +0 -1
  98. package/dist/components/p-5cdc6210.js +0 -82
  99. package/dist/components/p-5cdc6210.js.map +0 -1
  100. package/dist/components/p-73db9122.js.map +0 -1
  101. package/dist/components/p-76d95772.js.map +0 -1
  102. package/dist/components/p-87435aac.js.map +0 -1
  103. package/dist/components/p-90bc1590.js.map +0 -1
  104. package/dist/components/p-acf23bab.js.map +0 -1
  105. package/dist/components/p-afe7ce60.js.map +0 -1
  106. package/dist/components/p-b4b67072.js.map +0 -1
  107. package/dist/components/p-d54771ef.js.map +0 -1
  108. package/dist/components/p-e2a10337.js +0 -1355
  109. package/dist/components/p-e2a10337.js.map +0 -1
  110. package/dist/components/p-e30203b1.js.map +0 -1
  111. package/dist/components/p-e8d97093.js.map +0 -1
  112. package/dist/components/p-f2585cdf.js.map +0 -1
  113. package/dist/components/p-fa799946.js.map +0 -1
@@ -11,6 +11,7 @@ export declare class SearchcraftCore {
11
11
  searchClient: SearchClient | undefined;
12
12
  adClient: AdClient | undefined;
13
13
  userId: string;
14
+ userType: 'authenticated' | 'anonymous';
14
15
  private requestTimeout;
15
16
  private subscriptionEvents;
16
17
  /**
@@ -5,8 +5,9 @@ export declare class MeasureClient {
5
5
  private config;
6
6
  private sdkInfo;
7
7
  private userId;
8
+ private userType;
8
9
  sessionId: string;
9
- constructor(config: SearchcraftConfig, sdkInfo: SearchcraftSDKInfo, userId: string);
10
+ constructor(config: SearchcraftConfig, sdkInfo: SearchcraftSDKInfo, userId: string, userType: 'authenticated' | 'anonymous');
10
11
  /**
11
12
  * Getter for the base url used by the /measure endpoints.
12
13
  */
@@ -1,5 +1,5 @@
1
1
  import type { SearchcraftCore } from "../classes/index";
2
- import type { SearchcraftConfig, SearchcraftResponse, SearchClientRequestProperties } from "../types/index";
2
+ import type { SearchClientRequestProperties, SearchcraftConfig, SearchcraftResponse } from "../types/index";
3
3
  export declare class SearchClient {
4
4
  private config;
5
5
  private userId;
@@ -1,4 +1,4 @@
1
- import type { AdClientResponseItem, SearchcraftConfig, SearchcraftResponse, SearchClientRequestProperties } from "../../types/index";
1
+ import type { AdClientResponseItem, SearchClientRequestProperties, SearchcraftConfig, SearchcraftResponse } from "../../types/index";
2
2
  export declare class AdClient {
3
3
  config: SearchcraftConfig;
4
4
  constructor(config: SearchcraftConfig);
@@ -1,4 +1,4 @@
1
- import type { AdClientResponseItem, SearchcraftConfig, SearchcraftResponse, SearchClientRequestProperties } from "../../types/index";
1
+ import type { AdClientResponseItem, SearchClientRequestProperties, SearchcraftConfig, SearchcraftResponse } from "../../types/index";
2
2
  import { AdClient } from './AdClient';
3
3
  export declare class NativoClient extends AdClient {
4
4
  adCallTimeout?: NodeJS.Timeout;
@@ -1,5 +1,5 @@
1
- import type { SearchClientResponseItem, AdClientResponseItem, PopoverResultMappings } from "../../types/index";
2
1
  import type { SearchcraftCore } from "../../classes/index";
2
+ import type { AdClientResponseItem, PopoverResultMappings, SearchClientResponseItem } from "../../types/index";
3
3
  /**
4
4
  * This web component is designed to display search results in a popover container that dynamically appears when the user interacts with a search input field, or when a popover-button is pressed.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { SearchDocument, SearchClientResponseItem, PopoverResultMappings } from "../../types/index";
2
1
  import type { SearchcraftCore } from "../../classes/index";
2
+ import type { PopoverResultMappings, SearchClientResponseItem, SearchDocument } from "../../types/index";
3
3
  /**
4
4
  * A single list item rendered in a searchcraft-popover-list-view.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { AdClientResponseItem, SearchClientResponseItem, PopoverResultMappings } from "../../types/index";
2
1
  import type { SearchcraftCore } from "../../classes/index";
2
+ import type { AdClientResponseItem, PopoverResultMappings, SearchClientResponseItem } from "../../types/index";
3
3
  /**
4
4
  * This web component is designed to display a list of results within a popover interface.
5
5
  * It is consumed within the `searchcraft-popover-form` component.
@@ -1,6 +1,6 @@
1
- import type { AdClientResponseItem, SearchClientResponseItem, SearchcraftConfig, SearchResultTemplate, SearchResultTemplateData } from "../../types/index";
2
- import type { SearchcraftState } from "../../store/index";
1
+ import type { AdClientResponseItem, SearchClientResponseItem, SearchResultTemplate, SearchResultTemplateData, SearchcraftConfig } from "../../types/index";
3
2
  import type { SearchcraftCore } from "../../classes/index";
3
+ import type { SearchcraftState } from "../../store/index";
4
4
  /**
5
5
  * This web component is responsible for displaying the results of a search query. Once a query is submitted, the component formats and presents an ordered list of the results.
6
6
  *
@@ -15,9 +15,13 @@ export namespace Components {
15
15
  */
16
16
  interface SearchcraftAd {
17
17
  "adClientResponseItem"?: AdClientResponseItem;
18
+ /**
19
+ * @default 'Custom'
20
+ */
18
21
  "adSource": 'Custom' | 'Nativo' | 'adMarketplace';
19
22
  /**
20
23
  * Where the ad is being rendered within the search results div. Lifecycle behavior differs for ads being rendered in different positions, so we need to be able to handle all of those cases.
24
+ * @default 'interstitial'
21
25
  */
22
26
  "renderPosition": 'interstitial' | 'top' | 'bottom';
23
27
  /**
@@ -32,10 +36,12 @@ export namespace Components {
32
36
  interface SearchcraftButton {
33
37
  /**
34
38
  * Whether the button is disabled.
39
+ * @default false
35
40
  */
36
41
  "disabled"?: boolean;
37
42
  /**
38
43
  * Controls the visual representation of the button.
44
+ * @default 'primary'
39
45
  */
40
46
  "hierarchy"?: 'primary' | 'tertiary';
41
47
  /**
@@ -44,18 +50,22 @@ export namespace Components {
44
50
  "icon"?: Element;
45
51
  /**
46
52
  * Should the button only display an icon.
53
+ * @default false
47
54
  */
48
55
  "iconOnly"?: boolean;
49
56
  /**
50
57
  * The position of the icon.
58
+ * @default 'left'
51
59
  */
52
60
  "iconPosition"?: 'left' | 'right';
53
61
  /**
54
62
  * The label for the button.
63
+ * @default 'Search'
55
64
  */
56
65
  "label": string;
57
66
  /**
58
67
  * The type of the button.
68
+ * @default 'button'
59
69
  */
60
70
  "type"?: 'submit' | 'reset' | 'button';
61
71
  }
@@ -91,6 +101,7 @@ export namespace Components {
91
101
  "exclude"?: string[];
92
102
  /**
93
103
  * The name of the field where facets are applied.
104
+ * @default ''
94
105
  */
95
106
  "fieldName": string;
96
107
  /**
@@ -127,14 +138,17 @@ export namespace Components {
127
138
  interface SearchcraftFilterPanel {
128
139
  /**
129
140
  * The items to filter.
141
+ * @default []
130
142
  */
131
143
  "items": FilterItem[];
132
144
  /**
133
145
  * Controls whether the filter panel automatically hides/shows based on window size. - 'auto': Automatically hide/show based on window width - 'manual': User controls visibility manually
146
+ * @default 'auto'
134
147
  */
135
148
  "responsiveBehavior"?: 'auto' | 'manual';
136
149
  /**
137
150
  * The breakpoint (in pixels) below which the filter panel will be hidden. Defaults to 768px (--sc-breakpoint-md).
151
+ * @default 768
138
152
  */
139
153
  "responsiveBreakpoint"?: number;
140
154
  /**
@@ -164,6 +178,7 @@ export namespace Components {
164
178
  interface SearchcraftInputForm {
165
179
  /**
166
180
  * Whether or not to automatically submit the search term when the input changes.
181
+ * @default true
167
182
  */
168
183
  "autoSearch"?: boolean;
169
184
  /**
@@ -172,6 +187,7 @@ export namespace Components {
172
187
  "buttonLabel"?: string;
173
188
  /**
174
189
  * Where to place the search button.
190
+ * @default 'none'
175
191
  */
176
192
  "buttonPlacement"?: 'left' | 'right' | 'none';
177
193
  /**
@@ -184,6 +200,7 @@ export namespace Components {
184
200
  "placeholderBehavior"?: 'hide-on-focus' | 'hide-on-text-entered';
185
201
  /**
186
202
  * The input element's placeholder value.
203
+ * @default 'Enter Search'
187
204
  */
188
205
  "placeholderValue"?: string;
189
206
  /**
@@ -204,8 +221,12 @@ export namespace Components {
204
221
  interface SearchcraftInputLabel {
205
222
  /**
206
223
  * The classname applied to the label element.
224
+ * @default ''
207
225
  */
208
226
  "inputLabelClassName"?: string | undefined;
227
+ /**
228
+ * @default ''
229
+ */
209
230
  "label": string;
210
231
  }
211
232
  /**
@@ -328,10 +349,12 @@ export namespace Components {
328
349
  interface SearchcraftPopoverForm {
329
350
  /**
330
351
  * The hotkey that activates the popover.
352
+ * @default 'k'
331
353
  */
332
354
  "hotkey"?: string;
333
355
  /**
334
356
  * The hotkey modifier that activates the popover. Used together with the `hotkey` prop.
357
+ * @default 'meta'
335
358
  */
336
359
  "hotkeyModifier"?: 'ctrl' | 'meta' | 'alt' | 'option';
337
360
  /**
@@ -340,6 +363,7 @@ export namespace Components {
340
363
  "placeholderBehavior"?: 'hide-on-focus' | 'hide-on-text-entered';
341
364
  /**
342
365
  * The input element's placeholder value.
366
+ * @default 'Enter Search'
343
367
  */
344
368
  "placeholderValue"?: string;
345
369
  /**
@@ -352,6 +376,7 @@ export namespace Components {
352
376
  "searchcraftId"?: string;
353
377
  /**
354
378
  * The type of popover form to render. - `inline` - Renders inline with the rest of the content on the page. The search results pop over the page content. - `fullscreen` - Renders in fullscreen view. Used together with the `searchcraft-popover-button` component. - `modal` - Renders in a modal view. Used together with the `searchcraft-popover-button` component.
379
+ * @default 'inline'
355
380
  */
356
381
  "type"?: 'inline' | 'fullscreen' | 'modal';
357
382
  }
@@ -361,6 +386,7 @@ export namespace Components {
361
386
  interface SearchcraftPopoverListItem {
362
387
  /**
363
388
  * The document position relative to the search results (For Measure)
389
+ * @default 0
364
390
  */
365
391
  "documentPosition": number;
366
392
  "item": SearchClientResponseItem | undefined;
@@ -444,6 +470,7 @@ export namespace Components {
444
470
  interface SearchcraftSearchResult {
445
471
  /**
446
472
  * The position in the document. Used with the "document_clicked" measure event.
473
+ * @default 0
447
474
  */
448
475
  "documentPosition": number;
449
476
  /**
@@ -537,6 +564,7 @@ export namespace Components {
537
564
  interface SearchcraftSearchResultsPerPage {
538
565
  /**
539
566
  * The amount the options will increase (e.g. 20 = [20, 40, 60, 80, 100]). The base value is defined by the `searchResultsPerPage` option in the configuration.
567
+ * @default 20
540
568
  */
541
569
  "increment": string | number;
542
570
  /**
@@ -562,6 +590,7 @@ export namespace Components {
562
590
  "caption"?: string;
563
591
  /**
564
592
  * Whether the select input is disabled.
593
+ * @default false
565
594
  */
566
595
  "disabled"?: boolean;
567
596
  /**
@@ -582,6 +611,7 @@ export namespace Components {
582
611
  "name": string;
583
612
  /**
584
613
  * The options for the select input.
614
+ * @default []
585
615
  */
586
616
  "options": SearchcraftSelectOption[] | string;
587
617
  }
@@ -591,6 +621,7 @@ export namespace Components {
591
621
  interface SearchcraftSlider {
592
622
  /**
593
623
  * The type of data the sliders are using.
624
+ * @default 'number'
594
625
  */
595
626
  "dataType": 'number' | 'date';
596
627
  /**
@@ -599,14 +630,17 @@ export namespace Components {
599
630
  "dateGranularity"?: 'year' | 'month' | 'day' | 'hour';
600
631
  /**
601
632
  * The maximum value allowed.
633
+ * @default 100
602
634
  */
603
635
  "max": number;
604
636
  /**
605
637
  * The minimum value allowed.
638
+ * @default 0
606
639
  */
607
640
  "min": number;
608
641
  /**
609
642
  * The step amount for the slider inputs.
643
+ * @default 1
610
644
  */
611
645
  "step": number;
612
646
  }
@@ -663,6 +697,7 @@ export namespace Components {
663
697
  interface SearchcraftToggleButton {
664
698
  /**
665
699
  * The label.
700
+ * @default 'Toggle'
666
701
  */
667
702
  "label": string;
668
703
  /**
@@ -1270,9 +1305,13 @@ declare namespace LocalJSX {
1270
1305
  */
1271
1306
  interface SearchcraftAd {
1272
1307
  "adClientResponseItem"?: AdClientResponseItem;
1308
+ /**
1309
+ * @default 'Custom'
1310
+ */
1273
1311
  "adSource"?: 'Custom' | 'Nativo' | 'adMarketplace';
1274
1312
  /**
1275
1313
  * Where the ad is being rendered within the search results div. Lifecycle behavior differs for ads being rendered in different positions, so we need to be able to handle all of those cases.
1314
+ * @default 'interstitial'
1276
1315
  */
1277
1316
  "renderPosition"?: 'interstitial' | 'top' | 'bottom';
1278
1317
  /**
@@ -1287,10 +1326,12 @@ declare namespace LocalJSX {
1287
1326
  interface SearchcraftButton {
1288
1327
  /**
1289
1328
  * Whether the button is disabled.
1329
+ * @default false
1290
1330
  */
1291
1331
  "disabled"?: boolean;
1292
1332
  /**
1293
1333
  * Controls the visual representation of the button.
1334
+ * @default 'primary'
1294
1335
  */
1295
1336
  "hierarchy"?: 'primary' | 'tertiary';
1296
1337
  /**
@@ -1299,14 +1340,17 @@ declare namespace LocalJSX {
1299
1340
  "icon"?: Element;
1300
1341
  /**
1301
1342
  * Should the button only display an icon.
1343
+ * @default false
1302
1344
  */
1303
1345
  "iconOnly"?: boolean;
1304
1346
  /**
1305
1347
  * The position of the icon.
1348
+ * @default 'left'
1306
1349
  */
1307
1350
  "iconPosition"?: 'left' | 'right';
1308
1351
  /**
1309
1352
  * The label for the button.
1353
+ * @default 'Search'
1310
1354
  */
1311
1355
  "label"?: string;
1312
1356
  /**
@@ -1315,6 +1359,7 @@ declare namespace LocalJSX {
1315
1359
  "onButtonClick"?: (event: SearchcraftButtonCustomEvent<void>) => void;
1316
1360
  /**
1317
1361
  * The type of the button.
1362
+ * @default 'button'
1318
1363
  */
1319
1364
  "type"?: 'submit' | 'reset' | 'button';
1320
1365
  }
@@ -1350,6 +1395,7 @@ declare namespace LocalJSX {
1350
1395
  "exclude"?: string[];
1351
1396
  /**
1352
1397
  * The name of the field where facets are applied.
1398
+ * @default ''
1353
1399
  */
1354
1400
  "fieldName"?: string;
1355
1401
  /**
@@ -1390,14 +1436,17 @@ declare namespace LocalJSX {
1390
1436
  interface SearchcraftFilterPanel {
1391
1437
  /**
1392
1438
  * The items to filter.
1439
+ * @default []
1393
1440
  */
1394
1441
  "items"?: FilterItem[];
1395
1442
  /**
1396
1443
  * Controls whether the filter panel automatically hides/shows based on window size. - 'auto': Automatically hide/show based on window width - 'manual': User controls visibility manually
1444
+ * @default 'auto'
1397
1445
  */
1398
1446
  "responsiveBehavior"?: 'auto' | 'manual';
1399
1447
  /**
1400
1448
  * The breakpoint (in pixels) below which the filter panel will be hidden. Defaults to 768px (--sc-breakpoint-md).
1449
+ * @default 768
1401
1450
  */
1402
1451
  "responsiveBreakpoint"?: number;
1403
1452
  /**
@@ -1427,6 +1476,7 @@ declare namespace LocalJSX {
1427
1476
  interface SearchcraftInputForm {
1428
1477
  /**
1429
1478
  * Whether or not to automatically submit the search term when the input changes.
1479
+ * @default true
1430
1480
  */
1431
1481
  "autoSearch"?: boolean;
1432
1482
  /**
@@ -1435,6 +1485,7 @@ declare namespace LocalJSX {
1435
1485
  "buttonLabel"?: string;
1436
1486
  /**
1437
1487
  * Where to place the search button.
1488
+ * @default 'none'
1438
1489
  */
1439
1490
  "buttonPlacement"?: 'left' | 'right' | 'none';
1440
1491
  /**
@@ -1459,6 +1510,7 @@ declare namespace LocalJSX {
1459
1510
  "placeholderBehavior"?: 'hide-on-focus' | 'hide-on-text-entered';
1460
1511
  /**
1461
1512
  * The input element's placeholder value.
1513
+ * @default 'Enter Search'
1462
1514
  */
1463
1515
  "placeholderValue"?: string;
1464
1516
  /**
@@ -1479,8 +1531,12 @@ declare namespace LocalJSX {
1479
1531
  interface SearchcraftInputLabel {
1480
1532
  /**
1481
1533
  * The classname applied to the label element.
1534
+ * @default ''
1482
1535
  */
1483
1536
  "inputLabelClassName"?: string | undefined;
1537
+ /**
1538
+ * @default ''
1539
+ */
1484
1540
  "label"?: string;
1485
1541
  }
1486
1542
  /**
@@ -1603,10 +1659,12 @@ declare namespace LocalJSX {
1603
1659
  interface SearchcraftPopoverForm {
1604
1660
  /**
1605
1661
  * The hotkey that activates the popover.
1662
+ * @default 'k'
1606
1663
  */
1607
1664
  "hotkey"?: string;
1608
1665
  /**
1609
1666
  * The hotkey modifier that activates the popover. Used together with the `hotkey` prop.
1667
+ * @default 'meta'
1610
1668
  */
1611
1669
  "hotkeyModifier"?: 'ctrl' | 'meta' | 'alt' | 'option';
1612
1670
  /**
@@ -1615,6 +1673,7 @@ declare namespace LocalJSX {
1615
1673
  "placeholderBehavior"?: 'hide-on-focus' | 'hide-on-text-entered';
1616
1674
  /**
1617
1675
  * The input element's placeholder value.
1676
+ * @default 'Enter Search'
1618
1677
  */
1619
1678
  "placeholderValue"?: string;
1620
1679
  /**
@@ -1627,6 +1686,7 @@ declare namespace LocalJSX {
1627
1686
  "searchcraftId"?: string;
1628
1687
  /**
1629
1688
  * The type of popover form to render. - `inline` - Renders inline with the rest of the content on the page. The search results pop over the page content. - `fullscreen` - Renders in fullscreen view. Used together with the `searchcraft-popover-button` component. - `modal` - Renders in a modal view. Used together with the `searchcraft-popover-button` component.
1689
+ * @default 'inline'
1630
1690
  */
1631
1691
  "type"?: 'inline' | 'fullscreen' | 'modal';
1632
1692
  }
@@ -1636,6 +1696,7 @@ declare namespace LocalJSX {
1636
1696
  interface SearchcraftPopoverListItem {
1637
1697
  /**
1638
1698
  * The document position relative to the search results (For Measure)
1699
+ * @default 0
1639
1700
  */
1640
1701
  "documentPosition"?: number;
1641
1702
  "item"?: SearchClientResponseItem | undefined;
@@ -1719,6 +1780,7 @@ declare namespace LocalJSX {
1719
1780
  interface SearchcraftSearchResult {
1720
1781
  /**
1721
1782
  * The position in the document. Used with the "document_clicked" measure event.
1783
+ * @default 0
1722
1784
  */
1723
1785
  "documentPosition"?: number;
1724
1786
  /**
@@ -1812,6 +1874,7 @@ declare namespace LocalJSX {
1812
1874
  interface SearchcraftSearchResultsPerPage {
1813
1875
  /**
1814
1876
  * The amount the options will increase (e.g. 20 = [20, 40, 60, 80, 100]). The base value is defined by the `searchResultsPerPage` option in the configuration.
1877
+ * @default 20
1815
1878
  */
1816
1879
  "increment"?: string | number;
1817
1880
  /**
@@ -1837,6 +1900,7 @@ declare namespace LocalJSX {
1837
1900
  "caption"?: string;
1838
1901
  /**
1839
1902
  * Whether the select input is disabled.
1903
+ * @default false
1840
1904
  */
1841
1905
  "disabled"?: boolean;
1842
1906
  /**
@@ -1861,6 +1925,7 @@ declare namespace LocalJSX {
1861
1925
  "onSelectChange"?: (event: SearchcraftSelectCustomEvent<string>) => void;
1862
1926
  /**
1863
1927
  * The options for the select input.
1928
+ * @default []
1864
1929
  */
1865
1930
  "options"?: SearchcraftSelectOption[] | string;
1866
1931
  }
@@ -1870,6 +1935,7 @@ declare namespace LocalJSX {
1870
1935
  interface SearchcraftSlider {
1871
1936
  /**
1872
1937
  * The type of data the sliders are using.
1938
+ * @default 'number'
1873
1939
  */
1874
1940
  "dataType"?: 'number' | 'date';
1875
1941
  /**
@@ -1878,10 +1944,12 @@ declare namespace LocalJSX {
1878
1944
  "dateGranularity"?: 'year' | 'month' | 'day' | 'hour';
1879
1945
  /**
1880
1946
  * The maximum value allowed.
1947
+ * @default 100
1881
1948
  */
1882
1949
  "max"?: number;
1883
1950
  /**
1884
1951
  * The minimum value allowed.
1952
+ * @default 0
1885
1953
  */
1886
1954
  "min"?: number;
1887
1955
  /**
@@ -1890,6 +1958,7 @@ declare namespace LocalJSX {
1890
1958
  "onRangeChanged"?: (event: SearchcraftSliderCustomEvent<any>) => void;
1891
1959
  /**
1892
1960
  * The step amount for the slider inputs.
1961
+ * @default 1
1893
1962
  */
1894
1963
  "step"?: number;
1895
1964
  }
@@ -1946,6 +2015,7 @@ declare namespace LocalJSX {
1946
2015
  interface SearchcraftToggleButton {
1947
2016
  /**
1948
2017
  * The label.
2018
+ * @default 'Toggle'
1949
2019
  */
1950
2020
  "label"?: string;
1951
2021
  /**