@magicx-eng/ai-autocomplete-angular 0.62.0 → 0.63.0
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/REFERENCE.md +17 -0
- package/esm2020/lib/ai-autocomplete/ai-autocomplete.component.mjs +5 -1
- package/esm2020/lib/controller/ai-autocomplete.controller.mjs +11 -1
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs +15 -0
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs +14 -0
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/lib/ai-autocomplete/ai-autocomplete.component.d.ts +2 -0
- package/lib/ai-autocomplete/ai-autocomplete.component.d.ts.map +1 -1
- package/lib/controller/ai-autocomplete.controller.d.ts +6 -0
- package/lib/controller/ai-autocomplete.controller.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -2386,6 +2386,16 @@ class AIAutocompleteController {
|
|
|
2386
2386
|
return;
|
|
2387
2387
|
this.core.endSubmitProgress();
|
|
2388
2388
|
}
|
|
2389
|
+
/**
|
|
2390
|
+
* The search in progress, to send with your own events from it. Undefined
|
|
2391
|
+
* until the feature is enabled for your account. Read it in your submit or
|
|
2392
|
+
* product handler: the shopper's next input starts another search.
|
|
2393
|
+
*/
|
|
2394
|
+
getSearchId() {
|
|
2395
|
+
if (this.isDestroyed)
|
|
2396
|
+
return undefined;
|
|
2397
|
+
return this.core.getSearchId();
|
|
2398
|
+
}
|
|
2389
2399
|
/**
|
|
2390
2400
|
* The visitor id the events carry right now, to send with your own events.
|
|
2391
2401
|
* Undefined while there is none: before the first response, or without
|
|
@@ -3502,6 +3512,10 @@ class AIAutocompleteComponent {
|
|
|
3502
3512
|
endSubmitProgress() {
|
|
3503
3513
|
this.controller?.endSubmitProgress();
|
|
3504
3514
|
}
|
|
3515
|
+
/** The search in progress, or `undefined` until the feature is enabled for your account. */
|
|
3516
|
+
getSearchId() {
|
|
3517
|
+
return this.controller?.getSearchId();
|
|
3518
|
+
}
|
|
3505
3519
|
/** The visitor id the events carry right now, or `undefined` while there is none. */
|
|
3506
3520
|
getVisitorId() {
|
|
3507
3521
|
return this.controller?.getVisitorId();
|