@instructure/ui-table 10.6.1 → 10.6.2-snapshot-2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+ ## [10.6.2-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.6.2-snapshot-2) (2024-11-28)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ui-number-input:** add back options for string input ([14bbaea](https://github.com/instructure/instructure-ui/commit/14bbaea13b0829887de946363cd21639e5643749))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [10.6.1](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1) (2024-11-26)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-table
@@ -54,7 +54,8 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
54
54
  let sortable = false;
55
55
  if (firstRow && firstRow.props && firstRow.props.children) {
56
56
  Children.forEach(firstRow.props.children, grandchild => {
57
- if (grandchild.props.onRequestSort) {
57
+ var _grandchild$props;
58
+ if (grandchild !== null && grandchild !== void 0 && (_grandchild$props = grandchild.props) !== null && _grandchild$props !== void 0 && _grandchild$props.onRequestSort) {
58
59
  sortable = true;
59
60
  return;
60
61
  }
@@ -97,11 +98,11 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
97
98
  Children.forEach(firstRow.props.children, grandchild => {
98
99
  count += 1;
99
100
  if (!grandchild.props) return;
100
- const _grandchild$props = grandchild.props,
101
- id = _grandchild$props.id,
102
- stackedSortByLabel = _grandchild$props.stackedSortByLabel,
103
- sortDirection = _grandchild$props.sortDirection,
104
- onRequestSort = _grandchild$props.onRequestSort;
101
+ const _grandchild$props2 = grandchild.props,
102
+ id = _grandchild$props2.id,
103
+ stackedSortByLabel = _grandchild$props2.stackedSortByLabel,
104
+ sortDirection = _grandchild$props2.sortDirection,
105
+ onRequestSort = _grandchild$props2.onRequestSort;
105
106
  if (id && onRequestSort) {
106
107
  const label = stackedSortByLabel || id;
107
108
  options.push({
@@ -60,7 +60,8 @@ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _them
60
60
  let sortable = false;
61
61
  if (firstRow && firstRow.props && firstRow.props.children) {
62
62
  _react.Children.forEach(firstRow.props.children, grandchild => {
63
- if (grandchild.props.onRequestSort) {
63
+ var _grandchild$props;
64
+ if (grandchild !== null && grandchild !== void 0 && (_grandchild$props = grandchild.props) !== null && _grandchild$props !== void 0 && _grandchild$props.onRequestSort) {
64
65
  sortable = true;
65
66
  return;
66
67
  }
@@ -103,11 +104,11 @@ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _them
103
104
  _react.Children.forEach(firstRow.props.children, grandchild => {
104
105
  count += 1;
105
106
  if (!grandchild.props) return;
106
- const _grandchild$props = grandchild.props,
107
- id = _grandchild$props.id,
108
- stackedSortByLabel = _grandchild$props.stackedSortByLabel,
109
- sortDirection = _grandchild$props.sortDirection,
110
- onRequestSort = _grandchild$props.onRequestSort;
107
+ const _grandchild$props2 = grandchild.props,
108
+ id = _grandchild$props2.id,
109
+ stackedSortByLabel = _grandchild$props2.stackedSortByLabel,
110
+ sortDirection = _grandchild$props2.sortDirection,
111
+ onRequestSort = _grandchild$props2.onRequestSort;
111
112
  if (id && onRequestSort) {
112
113
  const label = stackedSortByLabel || id;
113
114
  options.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-table",
3
- "version": "10.6.1",
3
+ "version": "10.6.2-snapshot-2",
4
4
  "description": "A styled HTML table component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "10.6.1",
27
- "@instructure/ui-babel-preset": "10.6.1",
28
- "@instructure/ui-color-utils": "10.6.1",
29
- "@instructure/ui-test-utils": "10.6.1",
30
- "@instructure/ui-themes": "10.6.1",
26
+ "@instructure/ui-axe-check": "10.6.2-snapshot-2",
27
+ "@instructure/ui-babel-preset": "10.6.2-snapshot-2",
28
+ "@instructure/ui-color-utils": "10.6.2-snapshot-2",
29
+ "@instructure/ui-test-utils": "10.6.2-snapshot-2",
30
+ "@instructure/ui-themes": "10.6.2-snapshot-2",
31
31
  "@testing-library/jest-dom": "^6.4.6",
32
32
  "@testing-library/react": "^16.0.1",
33
33
  "@testing-library/user-event": "^14.5.2",
@@ -35,17 +35,17 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.25.6",
38
- "@instructure/console": "10.6.1",
39
- "@instructure/emotion": "10.6.1",
40
- "@instructure/shared-types": "10.6.1",
41
- "@instructure/ui-a11y-content": "10.6.1",
42
- "@instructure/ui-icons": "10.6.1",
43
- "@instructure/ui-prop-types": "10.6.1",
44
- "@instructure/ui-react-utils": "10.6.1",
45
- "@instructure/ui-simple-select": "10.6.1",
46
- "@instructure/ui-testable": "10.6.1",
47
- "@instructure/ui-utils": "10.6.1",
48
- "@instructure/ui-view": "10.6.1",
38
+ "@instructure/console": "10.6.2-snapshot-2",
39
+ "@instructure/emotion": "10.6.2-snapshot-2",
40
+ "@instructure/shared-types": "10.6.2-snapshot-2",
41
+ "@instructure/ui-a11y-content": "10.6.2-snapshot-2",
42
+ "@instructure/ui-icons": "10.6.2-snapshot-2",
43
+ "@instructure/ui-prop-types": "10.6.2-snapshot-2",
44
+ "@instructure/ui-react-utils": "10.6.2-snapshot-2",
45
+ "@instructure/ui-simple-select": "10.6.2-snapshot-2",
46
+ "@instructure/ui-testable": "10.6.2-snapshot-2",
47
+ "@instructure/ui-utils": "10.6.2-snapshot-2",
48
+ "@instructure/ui-view": "10.6.2-snapshot-2",
49
49
  "prop-types": "^15.8.1"
50
50
  },
51
51
  "peerDependencies": {
@@ -68,7 +68,7 @@ class Head extends Component<TableHeadProps> {
68
68
  let sortable = false
69
69
  if (firstRow && firstRow.props && firstRow.props.children) {
70
70
  Children.forEach(firstRow.props.children, (grandchild) => {
71
- if (grandchild.props.onRequestSort) {
71
+ if (grandchild?.props?.onRequestSort) {
72
72
  sortable = true
73
73
  return
74
74
  }