@instructure/ui-simple-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-simple-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-simple-select
@@ -46,10 +46,13 @@ tags: form, field, dropdown
46
46
  let SimpleSelect = (_dec = testable(), _dec(_class = (_temp = _class2 = class SimpleSelect extends Component {
47
47
  constructor(props) {
48
48
  super(props);
49
+ this.ref = null;
49
50
  this._emptyOptionId = uid('Select-EmptyOption');
50
51
 
51
52
  this.handleRef = node => {
52
- this._select = node;
53
+ this._select = node; // TODO remove this in v9 and keep only "ref"
54
+
55
+ this.ref = node;
53
56
  };
54
57
 
55
58
  this.handleBlur = event => {
@@ -48,10 +48,13 @@ tags: form, field, dropdown
48
48
  let SimpleSelect = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _class2 = class SimpleSelect extends _react.Component {
49
49
  constructor(props) {
50
50
  super(props);
51
+ this.ref = null;
51
52
  this._emptyOptionId = (0, _uid.uid)('Select-EmptyOption');
52
53
 
53
54
  this.handleRef = node => {
54
- this._select = node;
55
+ this._select = node; // TODO remove this in v9 and keep only "ref"
56
+
57
+ this.ref = node;
55
58
  };
56
59
 
57
60
  this.handleBlur = event => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-simple-select",
3
- "version": "8.10.1-snapshot.4+6c5c9e653",
3
+ "version": "8.10.2-snapshot.22+b84160eff",
4
4
  "description": "A component for standard select element behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,22 +25,22 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.10.1-snapshot.4+6c5c9e653",
29
- "@instructure/ui-form-field": "8.10.1-snapshot.4+6c5c9e653",
30
- "@instructure/ui-position": "8.10.1-snapshot.4+6c5c9e653",
31
- "@instructure/ui-prop-types": "8.10.1-snapshot.4+6c5c9e653",
32
- "@instructure/ui-react-utils": "8.10.1-snapshot.4+6c5c9e653",
33
- "@instructure/ui-select": "8.10.1-snapshot.4+6c5c9e653",
34
- "@instructure/ui-testable": "8.10.1-snapshot.4+6c5c9e653",
35
- "@instructure/uid": "8.10.1-snapshot.4+6c5c9e653",
28
+ "@instructure/console": "8.10.2-snapshot.22+b84160eff",
29
+ "@instructure/ui-form-field": "8.10.2-snapshot.22+b84160eff",
30
+ "@instructure/ui-position": "8.10.2-snapshot.22+b84160eff",
31
+ "@instructure/ui-prop-types": "8.10.2-snapshot.22+b84160eff",
32
+ "@instructure/ui-react-utils": "8.10.2-snapshot.22+b84160eff",
33
+ "@instructure/ui-select": "8.10.2-snapshot.22+b84160eff",
34
+ "@instructure/ui-testable": "8.10.2-snapshot.22+b84160eff",
35
+ "@instructure/uid": "8.10.2-snapshot.22+b84160eff",
36
36
  "prop-types": "^15"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-babel-preset": "8.10.1-snapshot.4+6c5c9e653",
40
- "@instructure/ui-color-utils": "8.10.1-snapshot.4+6c5c9e653",
41
- "@instructure/ui-icons": "8.10.1-snapshot.4+6c5c9e653",
42
- "@instructure/ui-test-locator": "8.10.1-snapshot.4+6c5c9e653",
43
- "@instructure/ui-test-utils": "8.10.1-snapshot.4+6c5c9e653"
39
+ "@instructure/ui-babel-preset": "8.10.2-snapshot.22+b84160eff",
40
+ "@instructure/ui-color-utils": "8.10.2-snapshot.22+b84160eff",
41
+ "@instructure/ui-icons": "8.10.2-snapshot.22+b84160eff",
42
+ "@instructure/ui-test-locator": "8.10.2-snapshot.22+b84160eff",
43
+ "@instructure/ui-test-utils": "8.10.2-snapshot.22+b84160eff"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8 <=17"
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "sideEffects": false,
52
- "gitHead": "6c5c9e653f7ce3d239296f4ed19c5679fdddcd5b"
52
+ "gitHead": "b84160effefb01aeb94b754f0b7a64f8dad1b7f2"
53
53
  }
@@ -83,6 +83,8 @@ class SimpleSelect extends Component<SimpleSelectProps> {
83
83
  children: null
84
84
  }
85
85
 
86
+ ref: Element | null = null
87
+
86
88
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'props' implicitly has an 'any' type.
87
89
  constructor(props) {
88
90
  super(props)
@@ -214,7 +216,8 @@ class SimpleSelect extends Component<SimpleSelectProps> {
214
216
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'node' implicitly has an 'any' type.
215
217
  handleRef = (node) => {
216
218
  // @ts-expect-error ts-migrate(2339) FIXME: Property '_select' does not exist on type 'SimpleS... Remove this comment to see the full error message
217
- this._select = node
219
+ this._select = node // TODO remove this in v9 and keep only "ref"
220
+ this.ref = node
218
221
  }
219
222
 
220
223
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'event' implicitly has an 'any' type.
@@ -92,6 +92,7 @@ declare class SimpleSelect extends Component<SimpleSelectProps> {
92
92
  renderAfterInput: null;
93
93
  children: null;
94
94
  };
95
+ ref: Element | null;
95
96
  constructor(props: any);
96
97
  _emptyOptionId: string;
97
98
  focus(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SimpleSelect/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAYlD,OAAO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