@@ -8,29 +8,36 @@ define([
8
8
// Algolia integration dependencies
9
9
'algoliaTemplateEngine' ,
10
10
11
- // Magento libs
11
+ // Magento core libs
12
12
'Magento_Catalog/js/price-utils' ,
13
13
14
- // DEPRECATED: Legacy bundle libs to be removed in a future release
15
- 'algoliaHoganLib' ,
16
- 'algoliaAutocompleteLib' ,
17
-
18
14
// TODO: Refactor legacy global object dependencies
19
15
'algoliaCommon' ,
20
16
'algoliaInsights' ,
21
17
'algoliaHooks' ,
22
- ] , function ( $ , algoliasearch , instantsearch , templateEngine , priceUtils , Hogan , autocomplete ) {
23
-
24
- // @deprecated algoliaBundle is going away!
25
- // Howver if you've used it in any of your customizations it can be mocked - documentation to come on how to do this...
18
+ ] , function ( $ , algoliasearch , instantsearch , templateEngine , priceUtils ) {
19
+
20
+ /**
21
+ * @deprecated algoliaBundle is going away!
22
+ * This mock only includes libraries available to this module
23
+ * The following have been removed:
24
+ * - Hogan
25
+ * - algoliasearchHelper
26
+ * - autocomplete
27
+ * - createAlgoliaInsightsPlugin
28
+ * - createLocalStorageRecentSearchesPlugin
29
+ * - createQuerySuggestionsPlugin
30
+ * - getAlgoliaResults
31
+ * However if you've used or require any of these additional libs in your customizations,
32
+ * you can either augment this mock as you need or include the global dependency in your module
33
+ * and make it available to your hook.
34
+ * TODO: Mixin and documentation to come on how to do this...
35
+ */
26
36
const mockAlgoliaBundle = {
27
37
$,
28
- Hogan,
29
38
algoliasearch,
30
- // algoliasearchHelper ???
31
- autocomplete
39
+ instantsearch
32
40
} ;
33
- console . log ( "Mock bundle:" , mockAlgoliaBundle ) ;
34
41
35
42
$ ( async function ( $ ) {
36
43
const templateProcessor = await templateEngine . getSelectedEngineAdapter ( ) ;
0 commit comments