@instructure/ui-editable 8.36.1-snapshot-7 → 8.36.1-snapshot-17

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,7 +3,7 @@
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.36.1-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.36.1-snapshot-7) (2023-04-12)
6
+ ## [8.36.1-snapshot-17](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.36.1-snapshot-17) (2023-04-14)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-editable
9
9
 
@@ -198,6 +198,9 @@ class Editable extends Component {
198
198
  }
199
199
  }
200
200
  }
201
+
202
+ // ------- prop getters ------
203
+
201
204
  render() {
202
205
  const _this$props3 = this.props,
203
206
  children = _this$props3.children,
@@ -123,7 +123,6 @@ let InPlaceEdit = (_dec = withStyle(generateStyle, null), _dec(_class = (_class2
123
123
 
124
124
  // Render a default edit button, an icon button with the edit icon
125
125
  // the margin makes room for the focus ring
126
-
127
126
  render() {
128
127
  const _this$props4 = this.props,
129
128
  mode = _this$props4.mode,
@@ -205,6 +205,9 @@ class Editable extends _react.Component {
205
205
  }
206
206
  }
207
207
  }
208
+
209
+ // ------- prop getters ------
210
+
208
211
  render() {
209
212
  const _this$props3 = this.props,
210
213
  children = _this$props3.children,
@@ -20,6 +20,30 @@ var _props = require("./props");
20
20
  const _excluded = ["buttonRef"],
21
21
  _excluded2 = ["isVisible", "readOnly", "label"];
22
22
  var _dec, _class, _class2;
23
+ /*
24
+ * The MIT License (MIT)
25
+ *
26
+ * Copyright (c) 2018 - present Instructure, Inc.
27
+ *
28
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ * of this software and associated documentation files (the "Software"), to deal
30
+ * in the Software without restriction, including without limitation the rights
31
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ * copies of the Software, and to permit persons to whom the Software is
33
+ * furnished to do so, subject to the following conditions:
34
+ *
35
+ * The above copyright notice and this permission notice shall be included in all
36
+ * copies or substantial portions of the Software.
37
+ *
38
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
44
+ * SOFTWARE.
45
+ */
46
+ /** @jsx jsx */
23
47
  /**
24
48
  ---
25
49
  category: components
@@ -105,7 +129,6 @@ let InPlaceEdit = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_
105
129
 
106
130
  // Render a default edit button, an icon button with the edit icon
107
131
  // the margin makes room for the focus ring
108
-
109
132
  render() {
110
133
  const _this$props4 = this.props,
111
134
  mode = _this$props4.mode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-editable",
3
- "version": "8.36.1-snapshot-7",
3
+ "version": "8.36.1-snapshot-17",
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,21 +23,21 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.36.1-snapshot-7",
27
- "@instructure/ui-test-utils": "8.36.1-snapshot-7"
26
+ "@instructure/ui-babel-preset": "8.36.1-snapshot-17",
27
+ "@instructure/ui-test-utils": "8.36.1-snapshot-17"
28
28
  },
29
29
  "dependencies": {
30
- "@babel/runtime": "^7.20.13",
31
- "@instructure/console": "8.36.1-snapshot-7",
32
- "@instructure/emotion": "8.36.1-snapshot-7",
33
- "@instructure/ui-a11y-content": "8.36.1-snapshot-7",
34
- "@instructure/ui-buttons": "8.36.1-snapshot-7",
35
- "@instructure/ui-dom-utils": "8.36.1-snapshot-7",
36
- "@instructure/ui-flex": "8.36.1-snapshot-7",
37
- "@instructure/ui-focusable": "8.36.1-snapshot-7",
38
- "@instructure/ui-icons": "8.36.1-snapshot-7",
39
- "@instructure/ui-utils": "8.36.1-snapshot-7",
40
- "@instructure/ui-view": "8.36.1-snapshot-7",
30
+ "@babel/runtime": "^7.21.0",
31
+ "@instructure/console": "8.36.1-snapshot-17",
32
+ "@instructure/emotion": "8.36.1-snapshot-17",
33
+ "@instructure/ui-a11y-content": "8.36.1-snapshot-17",
34
+ "@instructure/ui-buttons": "8.36.1-snapshot-17",
35
+ "@instructure/ui-dom-utils": "8.36.1-snapshot-17",
36
+ "@instructure/ui-flex": "8.36.1-snapshot-17",
37
+ "@instructure/ui-focusable": "8.36.1-snapshot-17",
38
+ "@instructure/ui-icons": "8.36.1-snapshot-17",
39
+ "@instructure/ui-utils": "8.36.1-snapshot-17",
40
+ "@instructure/ui-view": "8.36.1-snapshot-17",
41
41
  "prop-types": "^15.8.1"
42
42
  },
43
43
  "peerDependencies": {
@@ -179,7 +179,7 @@ class Example extends React.Component {
179
179
  )
180
180
 
181
181
  // Renders the edit button.
182
- // Leverage the default implemetation provided by InPlaceEdit
182
+ // Leverage the default implementation provided by InPlaceEdit
183
183
  renderEditButton = (props) => {
184
184
  props.label = `Edit title "${this.state.value}"`
185
185
  return InPlaceEdit.renderDefaultEditButton(props)
@@ -352,7 +352,7 @@ class Example extends React.Component {
352
352
  )
353
353
 
354
354
  // Renders the edit button.
355
- // Leverage the default implemetation provided by InPlaceEdit
355
+ // Leverage the default implementation provided by InPlaceEdit
356
356
  renderEditButton = (props) => {
357
357
  props.label = `Edit title "${this.state.value}"`
358
358
  return InPlaceEdit.renderDefaultEditButton(props)