@instructure/ui-select 8.10.1-snapshot.4 → 8.10.2-snapshot.22

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
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-select
9
+
6
10
  # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-select
@@ -58,6 +58,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
58
58
  let Select = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Select extends Component {
59
59
  constructor(...args) {
60
60
  super(...args);
61
+ this.ref = null;
61
62
  this.state = {
62
63
  hasInputRef: false
63
64
  };
@@ -77,7 +78,9 @@ let Select = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
77
78
  });
78
79
  }
79
80
 
80
- this._input = node;
81
+ this._input = node; // TODO remove this in v9 and keep just 'ref'
82
+
83
+ this.ref = node;
81
84
  this.props.inputRef(node);
82
85
  };
83
86
 
@@ -68,6 +68,7 @@ tags: autocomplete, typeahead, combobox, dropdown, search, form
68
68
  let Select = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Select extends _react.Component {
69
69
  constructor(...args) {
70
70
  super(...args);
71
+ this.ref = null;
71
72
  this.state = {
72
73
  hasInputRef: false
73
74
  };
@@ -87,7 +88,9 @@ let Select = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
87
88
  });
88
89
  }
89
90
 
90
- this._input = node;
91
+ this._input = node; // TODO remove this in v9 and keep just 'ref'
92
+
93
+ this.ref = node;
91
94
  this.props.inputRef(node);
92
95
  };
93
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "8.10.1-snapshot.4+6c5c9e653",
3
+ "version": "8.10.2-snapshot.22+b84160eff",
4
4
  "description": "A component for select and autocomplete behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,30 +24,30 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.10.1-snapshot.4+6c5c9e653",
28
- "@instructure/ui-color-utils": "8.10.1-snapshot.4+6c5c9e653",
29
- "@instructure/ui-test-locator": "8.10.1-snapshot.4+6c5c9e653",
30
- "@instructure/ui-test-utils": "8.10.1-snapshot.4+6c5c9e653",
31
- "@instructure/ui-themes": "8.10.1-snapshot.4+6c5c9e653"
27
+ "@instructure/ui-babel-preset": "8.10.2-snapshot.22+b84160eff",
28
+ "@instructure/ui-color-utils": "8.10.2-snapshot.22+b84160eff",
29
+ "@instructure/ui-test-locator": "8.10.2-snapshot.22+b84160eff",
30
+ "@instructure/ui-test-utils": "8.10.2-snapshot.22+b84160eff",
31
+ "@instructure/ui-themes": "8.10.2-snapshot.22+b84160eff"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/emotion": "8.10.1-snapshot.4+6c5c9e653",
36
- "@instructure/shared-types": "8.10.1-snapshot.4+6c5c9e653",
37
- "@instructure/ui-dom-utils": "8.10.1-snapshot.4+6c5c9e653",
38
- "@instructure/ui-form-field": "8.10.1-snapshot.4+6c5c9e653",
39
- "@instructure/ui-icons": "8.10.1-snapshot.4+6c5c9e653",
40
- "@instructure/ui-options": "8.10.1-snapshot.4+6c5c9e653",
41
- "@instructure/ui-popover": "8.10.1-snapshot.4+6c5c9e653",
42
- "@instructure/ui-position": "8.10.1-snapshot.4+6c5c9e653",
43
- "@instructure/ui-prop-types": "8.10.1-snapshot.4+6c5c9e653",
44
- "@instructure/ui-react-utils": "8.10.1-snapshot.4+6c5c9e653",
45
- "@instructure/ui-selectable": "8.10.1-snapshot.4+6c5c9e653",
46
- "@instructure/ui-testable": "8.10.1-snapshot.4+6c5c9e653",
47
- "@instructure/ui-text-input": "8.10.1-snapshot.4+6c5c9e653",
48
- "@instructure/ui-utils": "8.10.1-snapshot.4+6c5c9e653",
49
- "@instructure/ui-view": "8.10.1-snapshot.4+6c5c9e653",
50
- "@instructure/uid": "8.10.1-snapshot.4+6c5c9e653",
35
+ "@instructure/emotion": "8.10.2-snapshot.22+b84160eff",
36
+ "@instructure/shared-types": "8.10.2-snapshot.22+b84160eff",
37
+ "@instructure/ui-dom-utils": "8.10.2-snapshot.22+b84160eff",
38
+ "@instructure/ui-form-field": "8.10.2-snapshot.22+b84160eff",
39
+ "@instructure/ui-icons": "8.10.2-snapshot.22+b84160eff",
40
+ "@instructure/ui-options": "8.10.2-snapshot.22+b84160eff",
41
+ "@instructure/ui-popover": "8.10.2-snapshot.22+b84160eff",
42
+ "@instructure/ui-position": "8.10.2-snapshot.22+b84160eff",
43
+ "@instructure/ui-prop-types": "8.10.2-snapshot.22+b84160eff",
44
+ "@instructure/ui-react-utils": "8.10.2-snapshot.22+b84160eff",
45
+ "@instructure/ui-selectable": "8.10.2-snapshot.22+b84160eff",
46
+ "@instructure/ui-testable": "8.10.2-snapshot.22+b84160eff",
47
+ "@instructure/ui-text-input": "8.10.2-snapshot.22+b84160eff",
48
+ "@instructure/ui-utils": "8.10.2-snapshot.22+b84160eff",
49
+ "@instructure/ui-view": "8.10.2-snapshot.22+b84160eff",
50
+ "@instructure/uid": "8.10.2-snapshot.22+b84160eff",
51
51
  "prop-types": "^15"
52
52
  },
53
53
  "peerDependencies": {
@@ -57,5 +57,5 @@
57
57
  "access": "public"
58
58
  },
59
59
  "sideEffects": false,
60
- "gitHead": "6c5c9e653f7ce3d239296f4ed19c5679fdddcd5b"
60
+ "gitHead": "b84160effefb01aeb94b754f0b7a64f8dad1b7f2"
61
61
  }
@@ -109,6 +109,8 @@ class Select extends Component<SelectProps> {
109
109
  static Option = Option
110
110
  static Group = Group
111
111
 
112
+ ref: Element | null = null
113
+
112
114
  componentDidMount() {
113
115
  this.props.makeStyles?.()
114
116
  }
@@ -222,7 +224,8 @@ class Select extends Component<SelectProps> {
222
224
  this.setState({ hasInputRef: true })
223
225
  }
224
226
 
225
- this._input = node
227
+ this._input = node // TODO remove this in v9 and keep just 'ref'
228
+ this.ref = node
226
229
  // @ts-expect-error ts-migrate(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
227
230
  this.props.inputRef(node)
228
231
  }
@@ -104,6 +104,7 @@ declare class Select extends Component<SelectProps> {
104
104
  };
105
105
  static Option: typeof Option;
106
106
  static Group: typeof Group;
107
+ ref: Element | null;
107
108
  componentDidMount(): void;
108
109
  componentDidUpdate(): void;
109
110
  state: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Select/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAyB3C,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C;;;;;GAKG;AACH,cAEM,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzC,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAW;IAEtC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAY;IAE5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