@financial-times/o-autocomplete 1.6.0 → 1.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ### [1.6.1](https://www.github.com/Financial-Times/origami/compare/o-autocomplete-v1.6.0...o-autocomplete-v1.6.1) (2022-01-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * expand all uses of docs to documentation ([26f8d9d](https://www.github.com/Financial-Times/origami/commit/26f8d9d8cbbe3e78902d8c3951b37e08150a77bd))
9
+
3
10
  ## [1.6.0](https://www.github.com/Financial-Times/origami/compare/o-autocomplete-v1.5.0...o-autocomplete-v1.6.0) (2021-12-09)
4
11
 
5
12
 
package/README.md CHANGED
@@ -22,7 +22,7 @@ An Origami component for autocomplete inputs. This is built on top of the excell
22
22
 
23
23
  ## Usage
24
24
 
25
- Check out [how to include Origami components in your project](https://origami.ft.com/docs/components/#including-origami-components-in-your-project) to get started with `o-autocomplete`.
25
+ Check out [how to include Origami components in your project](https://origami.ft.com/documentation/components/#including-origami-components-in-your-project) to get started with `o-autocomplete`.
26
26
 
27
27
  ## Markup
28
28
 
@@ -1,5 +1,6 @@
1
1
  import '../../../main.js';
2
-
2
+ import oForms from '@financial-times/o-forms';
3
+ oForms.init();
3
4
  /**
4
5
  * @typedef {Function} PopulateOptions
5
6
  * @property {Array<string>} options - The options which match the rext which was typed into the autocomplete by the user
@@ -1,6 +1,7 @@
1
1
  import Autocomplete from '../../../main.js';
2
2
  import {data} from './data.js';
3
-
3
+ import oForms from '@financial-times/o-forms';
4
+ oForms.init();
4
5
  /**
5
6
  * @typedef {object} CustomOption
6
7
  * @property {string} Continent_Code - 2 letter continent code
@@ -1,5 +1,7 @@
1
1
  import '../../../main.js';
2
-
2
+ import {debounce} from '@financial-times/o-utils';
3
+ import oForms from '@financial-times/o-forms';
4
+ oForms.init();
3
5
  /**
4
6
  * @typedef {Function} PopulateOptions
5
7
  * @property {Array<string>} options - The options which match the rext which was typed into the autocomplete by the user
@@ -292,7 +294,7 @@ function customSuggestions(query, populateOptions) {
292
294
  }, 1000);
293
295
  }
294
296
 
295
- window.customSuggestions = window.Origami['o-utils'].debounce(customSuggestions, 100);
297
+ window.customSuggestions = debounce(customSuggestions, 100);
296
298
 
297
299
  document.addEventListener('DOMContentLoaded', function() {
298
300
  document.dispatchEvent(new CustomEvent('o.DOMContentLoaded'));
@@ -1,5 +1,9 @@
1
1
  @import '../../main';
2
+ @import "@financial-times/o-normalise/main";
3
+ @import "@financial-times/o-forms/main";
2
4
 
5
+ @include oNormalise();
6
+ @include oForms();
3
7
 
4
8
  body {
5
9
  box-sizing: border-box;
@@ -1,5 +1,6 @@
1
1
  import '../../../main.js';
2
-
2
+ import oForms from '@financial-times/o-forms';
3
3
  document.addEventListener('DOMContentLoaded', function() {
4
+ oForms.init();
4
5
  document.dispatchEvent(new CustomEvent('o.DOMContentLoaded'));
5
6
  });
package/origami.json CHANGED
@@ -21,12 +21,7 @@
21
21
  },
22
22
  "demosDefaults": {
23
23
  "sass": "demos/src/shared.scss",
24
- "documentClasses": "",
25
- "dependencies": [
26
- "o-forms@^9.0.0",
27
- "o-normalise@^3.0.0",
28
- "o-utils@^2.0.0"
29
- ]
24
+ "documentClasses": ""
30
25
  },
31
26
  "demos": [
32
27
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/o-autocomplete",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "An origami component for autocomplete inputs",
5
5
  "keywords": [
6
6
  "autocomplete",
@@ -34,11 +34,16 @@
34
34
  "@financial-times/o-grid": "^6.0.0",
35
35
  "@financial-times/o-icons": "^7.0.1",
36
36
  "@financial-times/o-loading": "^5.0.0",
37
- "@financial-times/o-normalise": "^3.0.0",
37
+ "@financial-times/o-normalise": "^3.2.0",
38
38
  "@financial-times/o-spacing": "^3.0.0",
39
39
  "@financial-times/o-typography": "^7.0.1",
40
40
  "@financial-times/o-visual-effects": "^4.0.1"
41
41
  },
42
+ "devDependencies": {
43
+ "@financial-times/o-forms": "^9.2.0",
44
+ "@financial-times/o-normalise": "^3.2.0",
45
+ "@financial-times/o-utils": "^2.1.0"
46
+ },
42
47
  "dependencies": {
43
48
  "@financial-times/accessible-autocomplete": "^2.1.2"
44
49
  },