@algolia/autocomplete-js 1.16.0 → 1.17.1

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.
@@ -162,6 +162,7 @@ export function autocomplete(options) {
162
162
  return function () {
163
163
  if (panelContainerElement.contains(panelElement)) {
164
164
  panelContainerElement.removeChild(panelElement);
165
+ panelContainerElement.classList.remove('aa-Detached');
165
166
  }
166
167
  };
167
168
  });
@@ -133,6 +133,8 @@ export function createAutocompleteDom(_ref) {
133
133
  var detachedSearchButton = createDomElement('button', {
134
134
  type: 'button',
135
135
  class: classNames.detachedSearchButton,
136
+ title: translations.detachedSearchButtonTitle,
137
+ id: labelProps.id,
136
138
  onClick: function onClick() {
137
139
  setIsModalOpen(true);
138
140
  },
@@ -177,6 +177,7 @@ export declare function getDefaultOptions<TItem extends BaseItem>(options: Autoc
177
177
  detachedCancelButtonText: string;
178
178
  clearButtonTitle: string;
179
179
  submitButtonTitle: string;
180
+ detachedSearchButtonTitle: string;
180
181
  };
181
182
  };
182
183
  core: {
@@ -88,6 +88,7 @@ export function getDefaultOptions(options) {
88
88
  var defaultTranslations = {
89
89
  clearButtonTitle: 'Clear',
90
90
  detachedCancelButtonText: 'Cancel',
91
+ detachedSearchButtonTitle: 'Search',
91
92
  submitButtonTitle: 'Submit'
92
93
  };
93
94
  return {
@@ -1,4 +1,4 @@
1
- /*! @algolia/autocomplete-js 1.16.0 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
1
+ /*! @algolia/autocomplete-js 1.17.1 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -347,7 +347,7 @@
347
347
  return undefined;
348
348
  }
349
349
 
350
- var version = '1.16.0';
350
+ var version = '1.17.1';
351
351
 
352
352
  var userAgents$1 = [{
353
353
  segment: 'autocomplete-core',
@@ -3875,6 +3875,8 @@
3875
3875
  var detachedSearchButton = createDomElement('button', {
3876
3876
  type: 'button',
3877
3877
  class: classNames.detachedSearchButton,
3878
+ title: translations.detachedSearchButtonTitle,
3879
+ id: labelProps.id,
3878
3880
  onClick: function onClick() {
3879
3881
  setIsModalOpen(true);
3880
3882
  },
@@ -4641,6 +4643,7 @@
4641
4643
  var defaultTranslations = {
4642
4644
  clearButtonTitle: 'Clear',
4643
4645
  detachedCancelButtonText: 'Cancel',
4646
+ detachedSearchButtonTitle: 'Search',
4644
4647
  submitButtonTitle: 'Submit'
4645
4648
  };
4646
4649
  return {
@@ -5043,6 +5046,7 @@
5043
5046
  return function () {
5044
5047
  if (panelContainerElement.contains(panelElement)) {
5045
5048
  panelContainerElement.removeChild(panelElement);
5049
+ panelContainerElement.classList.remove('aa-Detached');
5046
5050
  }
5047
5051
  };
5048
5052
  });