@instructure/ui-editable 10.26.1-snapshot-2 → 10.26.2

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,30 +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.26.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.26.0...v10.26.1-snapshot-2) (2025-10-06)
6
+ ## [10.26.2](https://github.com/instructure/instructure-ui/compare/v10.26.1...v10.26.2) (2025-10-13)
7
7
 
8
+ **Note:** Version bump only for package @instructure/ui-editable
8
9
 
9
- ### Features
10
10
 
11
- * **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
12
11
 
13
12
 
14
- ### BREAKING CHANGES
15
13
 
16
- * **many:** InstUI v11 contains the following breaking changes:
17
- - React 16 and 17 are no longer supported
18
- - remove `PropTypes` from all packages
19
- - remove `CodeEditor` component
20
- - remove `@instui/theme-registry` package
21
- - remove `@testable`, `@experimental`, `@hack` decorators
22
- - InstUISettingsProvider's `as` prop is removed
23
- - `canvas.use()`, `canvasHighContrast.use()` functions are removed
24
- - `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
25
- - `variables` field on theme objects are removed
26
- - remove deprecated props from Table: Row's `isStacked`, Body's
27
- `isStacked`, `hover`, and `headers`
28
- - `Table`'s `caption` prop is now required
29
- - `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
14
+ ## [10.26.1](https://github.com/instructure/instructure-ui/compare/v10.26.0...v10.26.1) (2025-10-06)
15
+
16
+ **Note:** Version bump only for package @instructure/ui-editable
30
17
 
31
18
 
32
19
 
@@ -25,7 +25,7 @@ import { Component } from 'react';
25
25
  import { deepEqual } from '@instructure/ui-utils';
26
26
  import { logWarn as warn } from '@instructure/console';
27
27
  import { requestAnimationFrame } from '@instructure/ui-dom-utils';
28
- import { allowedProps } from './props';
28
+ import { propTypes, allowedProps } from './props';
29
29
  /**
30
30
  ---
31
31
  category: components
@@ -213,6 +213,7 @@ class Editable extends Component {
213
213
  }
214
214
  }
215
215
  Editable.displayName = "Editable";
216
+ Editable.propTypes = propTypes;
216
217
  Editable.allowedProps = allowedProps;
217
218
  Editable.defaultProps = {
218
219
  readOnly: false,
@@ -22,5 +22,16 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import PropTypes from 'prop-types';
26
+ const propTypes = {
27
+ mode: PropTypes.oneOf(['view', 'edit']).isRequired,
28
+ onChangeMode: PropTypes.func.isRequired,
29
+ children: PropTypes.func,
30
+ render: PropTypes.func,
31
+ value: PropTypes.any,
32
+ onChange: PropTypes.func,
33
+ readOnly: PropTypes.bool,
34
+ elementRef: PropTypes.func
35
+ };
25
36
  const allowedProps = ['mode', 'onChangeMode', 'children', 'render', 'value', 'onChange', 'readOnly', 'elementRef'];
26
- export { allowedProps };
37
+ export { propTypes, allowedProps };
@@ -33,7 +33,7 @@ import { withStyle } from '@instructure/emotion';
33
33
  import { View } from '@instructure/ui-view';
34
34
  import { Editable } from '../Editable';
35
35
  import generateStyle from './styles';
36
- import { allowedProps } from './props';
36
+ import { propTypes, allowedProps } from './props';
37
37
  import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
38
38
  /**
39
39
  ---
@@ -146,7 +146,7 @@ let InPlaceEdit = (_dec = withStyle(generateStyle, null), _dec(_class = (_InPlac
146
146
  elementRef: this.handleRef
147
147
  });
148
148
  }
149
- }, _InPlaceEdit.displayName = "InPlaceEdit", _InPlaceEdit.componentId = 'InPlaceEdit', _InPlaceEdit.allowedProps = allowedProps, _InPlaceEdit.defaultProps = {
149
+ }, _InPlaceEdit.displayName = "InPlaceEdit", _InPlaceEdit.componentId = 'InPlaceEdit', _InPlaceEdit.propTypes = propTypes, _InPlaceEdit.allowedProps = allowedProps, _InPlaceEdit.defaultProps = {
150
150
  readOnly: false,
151
151
  showFocusRing: true,
152
152
  inline: true,
@@ -22,5 +22,19 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import PropTypes from 'prop-types';
26
+ const propTypes = {
27
+ renderViewer: PropTypes.func.isRequired,
28
+ renderEditor: PropTypes.func.isRequired,
29
+ renderEditButton: PropTypes.func.isRequired,
30
+ mode: PropTypes.oneOf(['view', 'edit']).isRequired,
31
+ onChangeMode: PropTypes.func.isRequired,
32
+ value: PropTypes.any,
33
+ onChange: PropTypes.func,
34
+ readOnly: PropTypes.bool,
35
+ showFocusRing: PropTypes.bool,
36
+ editButtonPlacement: PropTypes.oneOf(['start', 'end']),
37
+ inline: PropTypes.bool
38
+ };
25
39
  const allowedProps = ['renderViewer', 'renderEditor', 'renderEditButton', 'mode', 'onChangeMode', 'value', 'onChange', 'readOnly', 'showFocusRing', 'editButtonPlacement', 'inline'];
26
- export { allowedProps };
40
+ export { propTypes, allowedProps };
@@ -221,6 +221,7 @@ class Editable extends _react.Component {
221
221
  }
222
222
  exports.Editable = Editable;
223
223
  Editable.displayName = "Editable";
224
+ Editable.propTypes = _props2.propTypes;
224
225
  Editable.allowedProps = _props2.allowedProps;
225
226
  Editable.defaultProps = {
226
227
  readOnly: false,
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.allowedProps = void 0;
7
+ exports.propTypes = exports.allowedProps = void 0;
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
9
  /*
8
10
  * The MIT License (MIT)
9
11
  *
@@ -28,4 +30,14 @@ exports.allowedProps = void 0;
28
30
  * SOFTWARE.
29
31
  */
30
32
 
33
+ const propTypes = exports.propTypes = {
34
+ mode: _propTypes.default.oneOf(['view', 'edit']).isRequired,
35
+ onChangeMode: _propTypes.default.func.isRequired,
36
+ children: _propTypes.default.func,
37
+ render: _propTypes.default.func,
38
+ value: _propTypes.default.any,
39
+ onChange: _propTypes.default.func,
40
+ readOnly: _propTypes.default.bool,
41
+ elementRef: _propTypes.default.func
42
+ };
31
43
  const allowedProps = exports.allowedProps = ['mode', 'onChangeMode', 'children', 'render', 'value', 'onChange', 'readOnly', 'elementRef'];
@@ -152,7 +152,7 @@ let InPlaceEdit = exports.InPlaceEdit = (_dec = (0, _emotion.withStyle)(_styles.
152
152
  elementRef: this.handleRef
153
153
  });
154
154
  }
155
- }, _InPlaceEdit.displayName = "InPlaceEdit", _InPlaceEdit.componentId = 'InPlaceEdit', _InPlaceEdit.allowedProps = _props.allowedProps, _InPlaceEdit.defaultProps = {
155
+ }, _InPlaceEdit.displayName = "InPlaceEdit", _InPlaceEdit.componentId = 'InPlaceEdit', _InPlaceEdit.propTypes = _props.propTypes, _InPlaceEdit.allowedProps = _props.allowedProps, _InPlaceEdit.defaultProps = {
156
156
  readOnly: false,
157
157
  showFocusRing: true,
158
158
  inline: true,
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.allowedProps = void 0;
7
+ exports.propTypes = exports.allowedProps = void 0;
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
9
  /*
8
10
  * The MIT License (MIT)
9
11
  *
@@ -28,4 +30,17 @@ exports.allowedProps = void 0;
28
30
  * SOFTWARE.
29
31
  */
30
32
 
33
+ const propTypes = exports.propTypes = {
34
+ renderViewer: _propTypes.default.func.isRequired,
35
+ renderEditor: _propTypes.default.func.isRequired,
36
+ renderEditButton: _propTypes.default.func.isRequired,
37
+ mode: _propTypes.default.oneOf(['view', 'edit']).isRequired,
38
+ onChangeMode: _propTypes.default.func.isRequired,
39
+ value: _propTypes.default.any,
40
+ onChange: _propTypes.default.func,
41
+ readOnly: _propTypes.default.bool,
42
+ showFocusRing: _propTypes.default.bool,
43
+ editButtonPlacement: _propTypes.default.oneOf(['start', 'end']),
44
+ inline: _propTypes.default.bool
45
+ };
31
46
  const allowedProps = exports.allowedProps = ['renderViewer', 'renderEditor', 'renderEditButton', 'mode', 'onChangeMode', 'value', 'onChange', 'readOnly', 'showFocusRing', 'editButtonPlacement', 'inline'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-editable",
3
- "version": "10.26.1-snapshot-2",
3
+ "version": "10.26.2",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,30 +23,31 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "10.26.1-snapshot-2",
27
- "@instructure/ui-babel-preset": "10.26.1-snapshot-2",
26
+ "@instructure/ui-axe-check": "10.26.2",
27
+ "@instructure/ui-babel-preset": "10.26.2",
28
28
  "@testing-library/jest-dom": "^6.6.3",
29
- "@testing-library/react": "15.0.7",
29
+ "@testing-library/react": "^16.0.1",
30
30
  "@testing-library/user-event": "^14.6.1",
31
31
  "vitest": "^3.2.2"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.27.6",
35
- "@instructure/console": "10.26.1-snapshot-2",
36
- "@instructure/emotion": "10.26.1-snapshot-2",
37
- "@instructure/shared-types": "10.26.1-snapshot-2",
38
- "@instructure/ui-a11y-content": "10.26.1-snapshot-2",
39
- "@instructure/ui-buttons": "10.26.1-snapshot-2",
40
- "@instructure/ui-dom-utils": "10.26.1-snapshot-2",
41
- "@instructure/ui-flex": "10.26.1-snapshot-2",
42
- "@instructure/ui-focusable": "10.26.1-snapshot-2",
43
- "@instructure/ui-icons": "10.26.1-snapshot-2",
44
- "@instructure/ui-utils": "10.26.1-snapshot-2",
45
- "@instructure/ui-view": "10.26.1-snapshot-2"
35
+ "@instructure/console": "10.26.2",
36
+ "@instructure/emotion": "10.26.2",
37
+ "@instructure/shared-types": "10.26.2",
38
+ "@instructure/ui-a11y-content": "10.26.2",
39
+ "@instructure/ui-buttons": "10.26.2",
40
+ "@instructure/ui-dom-utils": "10.26.2",
41
+ "@instructure/ui-flex": "10.26.2",
42
+ "@instructure/ui-focusable": "10.26.2",
43
+ "@instructure/ui-icons": "10.26.2",
44
+ "@instructure/ui-utils": "10.26.2",
45
+ "@instructure/ui-view": "10.26.2",
46
+ "prop-types": "^15.8.1"
46
47
  },
47
48
  "peerDependencies": {
48
- "react": ">=18 <=19",
49
- "react-dom": ">=18 <=19"
49
+ "react": ">=16.14 <=18",
50
+ "react-dom": ">=16.14 <=18"
50
51
  },
51
52
  "publishConfig": {
52
53
  "access": "public"
@@ -27,7 +27,7 @@ import { deepEqual } from '@instructure/ui-utils'
27
27
  import { logWarn as warn } from '@instructure/console'
28
28
  import { requestAnimationFrame } from '@instructure/ui-dom-utils'
29
29
 
30
- import { allowedProps, EditableState } from './props'
30
+ import { propTypes, allowedProps, EditableState } from './props'
31
31
  import type {
32
32
  EditableProps,
33
33
  GetContainerProps,
@@ -42,6 +42,7 @@ category: components
42
42
  ---
43
43
  **/
44
44
  class Editable extends Component<EditableProps> {
45
+ static propTypes = propTypes
45
46
  static allowedProps = allowedProps
46
47
  static defaultProps = {
47
48
  readOnly: false,
@@ -21,8 +21,10 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
-
25
24
  import React from 'react'
25
+ import PropTypes from 'prop-types'
26
+
27
+ import type { PropValidators } from '@instructure/shared-types'
26
28
 
27
29
  type GetContainerProps = (props?: Record<string, any>) => {
28
30
  ref: React.RefCallback<any>
@@ -110,6 +112,18 @@ type PropKeys = keyof EditableOwnProps
110
112
  type AllowedPropKeys = Readonly<Array<PropKeys>>
111
113
 
112
114
  type EditableProps = EditableOwnProps
115
+
116
+ const propTypes: PropValidators<PropKeys> = {
117
+ mode: PropTypes.oneOf(['view', 'edit']).isRequired,
118
+ onChangeMode: PropTypes.func.isRequired,
119
+ children: PropTypes.func,
120
+ render: PropTypes.func,
121
+ value: PropTypes.any,
122
+ onChange: PropTypes.func,
123
+ readOnly: PropTypes.bool,
124
+ elementRef: PropTypes.func
125
+ }
126
+
113
127
  const allowedProps: AllowedPropKeys = [
114
128
  'mode',
115
129
  'onChangeMode',
@@ -134,4 +148,4 @@ export type {
134
148
  GetEditorProps,
135
149
  GetViewerProps
136
150
  }
137
- export { allowedProps }
151
+ export { propTypes, allowedProps }
@@ -36,7 +36,7 @@ import { View } from '@instructure/ui-view'
36
36
  import { Editable } from '../Editable'
37
37
  import generateStyle from './styles'
38
38
 
39
- import { allowedProps } from './props'
39
+ import { propTypes, allowedProps } from './props'
40
40
  import type { InPlaceEditProps } from './props'
41
41
  import type { EditableRenderProps } from '../Editable/props'
42
42
 
@@ -48,6 +48,7 @@ category: components
48
48
  @withStyle(generateStyle, null)
49
49
  class InPlaceEdit extends Component<InPlaceEditProps> {
50
50
  static readonly componentId = 'InPlaceEdit'
51
+ static propTypes = propTypes
51
52
  static allowedProps = allowedProps
52
53
  static defaultProps = {
53
54
  readOnly: false,
@@ -22,6 +22,9 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
+ import PropTypes from 'prop-types'
26
+
27
+ import type { PropValidators } from '@instructure/shared-types'
25
28
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
26
29
  import type { EditableProps } from '../Editable/props'
27
30
  import React from 'react'
@@ -128,6 +131,21 @@ type InPlaceEditProps = InPlaceEditOwnProps &
128
131
  WithStyleProps<null, InPlaceEditStyle>
129
132
 
130
133
  type InPlaceEditStyle = ComponentStyle<'inPlaceEdit'>
134
+
135
+ const propTypes: PropValidators<PropKeys> = {
136
+ renderViewer: PropTypes.func.isRequired,
137
+ renderEditor: PropTypes.func.isRequired,
138
+ renderEditButton: PropTypes.func.isRequired,
139
+ mode: PropTypes.oneOf(['view', 'edit']).isRequired,
140
+ onChangeMode: PropTypes.func.isRequired,
141
+ value: PropTypes.any,
142
+ onChange: PropTypes.func,
143
+ readOnly: PropTypes.bool,
144
+ showFocusRing: PropTypes.bool,
145
+ editButtonPlacement: PropTypes.oneOf(['start', 'end']),
146
+ inline: PropTypes.bool
147
+ }
148
+
131
149
  const allowedProps: AllowedPropKeys = [
132
150
  'renderViewer',
133
151
  'renderEditor',
@@ -143,4 +161,4 @@ const allowedProps: AllowedPropKeys = [
143
161
  ]
144
162
 
145
163
  export type { InPlaceEditProps, InPlaceEditStyle }
146
- export { allowedProps }
164
+ export { propTypes, allowedProps }