@instructure/ui-editable 11.7.3 → 11.7.4-pr-snapshot-1781695314229
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 +8 -0
- package/LICENSE.md +1 -0
- package/{lib/Editable/v1/props.js → babel.config.cjs} +12 -7
- package/es/Editable/v1/index.js +2 -2
- package/es/InPlaceEdit/v1/index.js +4 -4
- package/es/InPlaceEdit/v2/index.js +4 -4
- package/es/exports/a.js +3 -2
- package/es/exports/b.js +3 -2
- package/package.json +16 -21
- package/src/Editable/v1/index.tsx +2 -1
- package/src/InPlaceEdit/v1/index.tsx +4 -3
- package/src/InPlaceEdit/v2/index.tsx +4 -3
- package/src/exports/a.ts +2 -2
- package/src/exports/b.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Editable/v1/index.d.ts +4 -3
- package/types/Editable/v1/index.d.ts.map +1 -1
- package/types/InPlaceEdit/v1/index.d.ts +3 -2
- package/types/InPlaceEdit/v1/index.d.ts.map +1 -1
- package/types/InPlaceEdit/v2/index.d.ts +3 -2
- package/types/InPlaceEdit/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +2 -2
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +2 -2
- package/types/exports/b.d.ts.map +1 -1
- package/lib/Editable/v1/index.js +0 -234
- package/lib/InPlaceEdit/v1/index.js +0 -181
- package/lib/InPlaceEdit/v1/props.js +0 -31
- package/lib/InPlaceEdit/v1/styles.js +0 -61
- package/lib/InPlaceEdit/v2/index.js +0 -181
- package/lib/InPlaceEdit/v2/props.js +0 -31
- package/lib/InPlaceEdit/v2/styles.js +0 -58
- package/lib/exports/a.js +0 -19
- package/lib/exports/b.js +0 -19
- package/lib/package.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [11.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-editable
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
|
|
7
15
|
|
|
8
16
|
|
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
1
|
/*
|
|
8
2
|
* The MIT License (MIT)
|
|
9
3
|
*
|
|
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
|
|
|
28
22
|
* SOFTWARE.
|
|
29
23
|
*/
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
module.exports = {
|
|
26
|
+
presets: [
|
|
27
|
+
[
|
|
28
|
+
require('@instructure/ui-babel-preset'),
|
|
29
|
+
{
|
|
30
|
+
esModules: Boolean(process.env.ES_MODULES),
|
|
31
|
+
removeConsole: process.env.NODE_ENV === 'production',
|
|
32
|
+
transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
]
|
|
36
|
+
}
|
package/es/Editable/v1/index.js
CHANGED
|
@@ -25,14 +25,14 @@ 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
|
|
28
|
+
import { allowedProps } from './props.js';
|
|
29
29
|
/**
|
|
30
30
|
---
|
|
31
31
|
category: components
|
|
32
32
|
---
|
|
33
33
|
**/
|
|
34
34
|
class Editable extends Component {
|
|
35
|
-
static displayName =
|
|
35
|
+
static displayName = 'Editable';
|
|
36
36
|
static allowedProps = allowedProps;
|
|
37
37
|
static defaultProps = {
|
|
38
38
|
readOnly: false,
|
|
@@ -31,9 +31,9 @@ import { logWarn as warn } from '@instructure/console';
|
|
|
31
31
|
import { createChainedFunction } from '@instructure/ui-utils';
|
|
32
32
|
import { withStyle } from '@instructure/emotion';
|
|
33
33
|
import { View } from '@instructure/ui-view/v11_6';
|
|
34
|
-
import { Editable } from
|
|
35
|
-
import generateStyle from
|
|
36
|
-
import { allowedProps } from
|
|
34
|
+
import { Editable } from '../../Editable/v1/index.js';
|
|
35
|
+
import generateStyle from './styles.js';
|
|
36
|
+
import { allowedProps } from './props.js';
|
|
37
37
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
38
38
|
/**
|
|
39
39
|
---
|
|
@@ -41,7 +41,7 @@ category: components
|
|
|
41
41
|
---
|
|
42
42
|
**/
|
|
43
43
|
let InPlaceEdit = (_dec = withStyle(generateStyle, null), _dec(_class = class InPlaceEdit extends Component {
|
|
44
|
-
static displayName =
|
|
44
|
+
static displayName = 'InPlaceEdit';
|
|
45
45
|
static componentId = 'InPlaceEdit';
|
|
46
46
|
static allowedProps = allowedProps;
|
|
47
47
|
static defaultProps = {
|
|
@@ -31,9 +31,9 @@ import { logWarn as warn } from '@instructure/console';
|
|
|
31
31
|
import { createChainedFunction } from '@instructure/ui-utils';
|
|
32
32
|
import { withStyleNew } from '@instructure/emotion';
|
|
33
33
|
import { View } from '@instructure/ui-view/latest';
|
|
34
|
-
import { Editable } from
|
|
35
|
-
import generateStyle from
|
|
36
|
-
import { allowedProps } from
|
|
34
|
+
import { Editable } from '../../Editable/v1/index.js';
|
|
35
|
+
import generateStyle from './styles.js';
|
|
36
|
+
import { allowedProps } from './props.js';
|
|
37
37
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
38
38
|
/**
|
|
39
39
|
---
|
|
@@ -41,7 +41,7 @@ category: components
|
|
|
41
41
|
---
|
|
42
42
|
**/
|
|
43
43
|
let InPlaceEdit = (_dec = withStyleNew(generateStyle), _dec(_class = class InPlaceEdit extends Component {
|
|
44
|
-
static displayName =
|
|
44
|
+
static displayName = 'InPlaceEdit';
|
|
45
45
|
static componentId = 'InPlaceEdit';
|
|
46
46
|
static allowedProps = allowedProps;
|
|
47
47
|
static defaultProps = {
|
package/es/exports/a.js
CHANGED
|
@@ -21,5 +21,6 @@
|
|
|
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
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { Editable } from '../Editable/v1/index.js';
|
|
26
|
+
export { InPlaceEdit } from '../InPlaceEdit/v1/index.js';
|
package/es/exports/b.js
CHANGED
|
@@ -21,5 +21,6 @@
|
|
|
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
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { Editable } from '../Editable/v1/index.js';
|
|
26
|
+
export { InPlaceEdit } from '../InPlaceEdit/v2/index.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-editable",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.4-pr-snapshot-1781695314229",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
7
|
"module": "./es/index.js",
|
|
7
|
-
"main": "./lib/index.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/console": "11.7.
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/ui-a11y-content": "11.7.
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/ui-
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-icons": "11.7.
|
|
27
|
-
"@instructure/ui-view": "11.7.
|
|
28
|
-
"@instructure/ui-utils": "11.7.
|
|
18
|
+
"@instructure/console": "11.7.4-pr-snapshot-1781695314229",
|
|
19
|
+
"@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
|
|
20
|
+
"@instructure/ui-buttons": "11.7.4-pr-snapshot-1781695314229",
|
|
21
|
+
"@instructure/ui-a11y-content": "11.7.4-pr-snapshot-1781695314229",
|
|
22
|
+
"@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
|
|
23
|
+
"@instructure/ui-flex": "11.7.4-pr-snapshot-1781695314229",
|
|
24
|
+
"@instructure/ui-focusable": "11.7.4-pr-snapshot-1781695314229",
|
|
25
|
+
"@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
26
|
+
"@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
|
|
27
|
+
"@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229",
|
|
28
|
+
"@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@testing-library/jest-dom": "^6.6.3",
|
|
32
32
|
"@testing-library/react": "15.0.7",
|
|
33
33
|
"@testing-library/user-event": "^14.6.1",
|
|
34
34
|
"vitest": "^3.2.2",
|
|
35
|
-
"@instructure/ui-
|
|
36
|
-
"@instructure/ui-
|
|
35
|
+
"@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
|
|
36
|
+
"@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=18 <=19",
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"exports": {
|
|
47
|
-
"./lib/*": "./lib/*",
|
|
48
47
|
"./es/*": "./es/*",
|
|
49
48
|
"./types/*": "./types/*",
|
|
50
49
|
"./package.json": "./package.json",
|
|
@@ -53,28 +52,24 @@
|
|
|
53
52
|
"src": "./src/exports/a.ts",
|
|
54
53
|
"types": "./types/exports/a.d.ts",
|
|
55
54
|
"import": "./es/exports/a.js",
|
|
56
|
-
"require": "./lib/exports/a.js",
|
|
57
55
|
"default": "./es/exports/a.js"
|
|
58
56
|
},
|
|
59
57
|
"./v11_6": {
|
|
60
58
|
"src": "./src/exports/a.ts",
|
|
61
59
|
"types": "./types/exports/a.d.ts",
|
|
62
60
|
"import": "./es/exports/a.js",
|
|
63
|
-
"require": "./lib/exports/a.js",
|
|
64
61
|
"default": "./es/exports/a.js"
|
|
65
62
|
},
|
|
66
63
|
"./v11_7": {
|
|
67
64
|
"src": "./src/exports/b.ts",
|
|
68
65
|
"types": "./types/exports/b.d.ts",
|
|
69
66
|
"import": "./es/exports/b.js",
|
|
70
|
-
"require": "./lib/exports/b.js",
|
|
71
67
|
"default": "./es/exports/b.js"
|
|
72
68
|
},
|
|
73
69
|
"./latest": {
|
|
74
70
|
"src": "./src/exports/b.ts",
|
|
75
71
|
"types": "./types/exports/b.d.ts",
|
|
76
72
|
"import": "./es/exports/b.js",
|
|
77
|
-
"require": "./lib/exports/b.js",
|
|
78
73
|
"default": "./es/exports/b.js"
|
|
79
74
|
}
|
|
80
75
|
},
|
|
@@ -82,7 +77,7 @@
|
|
|
82
77
|
"lint": "ui-scripts lint",
|
|
83
78
|
"lint:fix": "ui-scripts lint --fix",
|
|
84
79
|
"clean": "ui-scripts clean",
|
|
85
|
-
"build": "ui-scripts build
|
|
80
|
+
"build": "ui-scripts build",
|
|
86
81
|
"build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
|
|
87
82
|
"build:types": "tsc -p tsconfig.build.json",
|
|
88
83
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
@@ -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 { allowedProps, EditableState } from './props.js'
|
|
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 displayName = 'Editable'
|
|
45
46
|
static allowedProps = allowedProps
|
|
46
47
|
static defaultProps = {
|
|
47
48
|
readOnly: false,
|
|
@@ -33,10 +33,10 @@ import { createChainedFunction } from '@instructure/ui-utils'
|
|
|
33
33
|
import { withStyle } from '@instructure/emotion'
|
|
34
34
|
import { View } from '@instructure/ui-view/v11_6'
|
|
35
35
|
|
|
36
|
-
import { Editable } from '../../Editable/v1'
|
|
37
|
-
import generateStyle from './styles'
|
|
36
|
+
import { Editable } from '../../Editable/v1/index.js'
|
|
37
|
+
import generateStyle from './styles.js'
|
|
38
38
|
|
|
39
|
-
import { allowedProps } from './props'
|
|
39
|
+
import { allowedProps } from './props.js'
|
|
40
40
|
import type { InPlaceEditProps } from './props'
|
|
41
41
|
import type { EditableRenderProps } from '../../Editable/v1/props'
|
|
42
42
|
|
|
@@ -47,6 +47,7 @@ category: components
|
|
|
47
47
|
**/
|
|
48
48
|
@withStyle(generateStyle, null)
|
|
49
49
|
class InPlaceEdit extends Component<InPlaceEditProps> {
|
|
50
|
+
static displayName = 'InPlaceEdit'
|
|
50
51
|
static readonly componentId = 'InPlaceEdit'
|
|
51
52
|
static allowedProps = allowedProps
|
|
52
53
|
static defaultProps = {
|
|
@@ -33,10 +33,10 @@ import { createChainedFunction } from '@instructure/ui-utils'
|
|
|
33
33
|
import { withStyleNew } from '@instructure/emotion'
|
|
34
34
|
import { View } from '@instructure/ui-view/latest'
|
|
35
35
|
|
|
36
|
-
import { Editable } from '../../Editable/v1'
|
|
37
|
-
import generateStyle from './styles'
|
|
36
|
+
import { Editable } from '../../Editable/v1/index.js'
|
|
37
|
+
import generateStyle from './styles.js'
|
|
38
38
|
|
|
39
|
-
import { allowedProps } from './props'
|
|
39
|
+
import { allowedProps } from './props.js'
|
|
40
40
|
import type { InPlaceEditProps } from './props'
|
|
41
41
|
import type { EditableRenderProps } from '../../Editable/v1/props'
|
|
42
42
|
|
|
@@ -47,6 +47,7 @@ category: components
|
|
|
47
47
|
**/
|
|
48
48
|
@withStyleNew(generateStyle)
|
|
49
49
|
class InPlaceEdit extends Component<InPlaceEditProps> {
|
|
50
|
+
static displayName = 'InPlaceEdit'
|
|
50
51
|
static readonly componentId = 'InPlaceEdit'
|
|
51
52
|
static allowedProps = allowedProps
|
|
52
53
|
static defaultProps = {
|
package/src/exports/a.ts
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { Editable } from '../Editable/v1'
|
|
26
|
-
export { InPlaceEdit } from '../InPlaceEdit/v1'
|
|
25
|
+
export { Editable } from '../Editable/v1/index.js'
|
|
26
|
+
export { InPlaceEdit } from '../InPlaceEdit/v1/index.js'
|
|
27
27
|
|
|
28
28
|
export type { EditableProps } from '../Editable/v1/props'
|
|
29
29
|
export type { InPlaceEditProps } from '../InPlaceEdit/v1/props'
|
package/src/exports/b.ts
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { Editable } from '../Editable/v1'
|
|
26
|
-
export { InPlaceEdit } from '../InPlaceEdit/v2'
|
|
25
|
+
export { Editable } from '../Editable/v1/index.js'
|
|
26
|
+
export { InPlaceEdit } from '../InPlaceEdit/v2/index.js'
|
|
27
27
|
|
|
28
28
|
export type { EditableProps } from '../Editable/v1/props'
|
|
29
29
|
export type { InPlaceEditProps } from '../InPlaceEdit/v2/props'
|