@instructure/ui-source-code-editor 11.7.3-snapshot-43 → 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.
Files changed (34) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/LICENSE.md +1 -0
  3. package/{lib/SourceCodeEditor/v2/props.js → babel.config.cjs} +12 -9
  4. package/es/SourceCodeEditor/v1/index.js +6 -6
  5. package/es/SourceCodeEditor/v2/index.js +5 -5
  6. package/es/exports/a.js +1 -1
  7. package/es/exports/b.js +1 -1
  8. package/package.json +15 -20
  9. package/src/SourceCodeEditor/v1/index.tsx +6 -5
  10. package/src/SourceCodeEditor/v2/index.tsx +5 -4
  11. package/src/exports/a.ts +1 -1
  12. package/src/exports/b.ts +1 -1
  13. package/tsconfig.build.tsbuildinfo +1 -1
  14. package/types/SourceCodeEditor/v1/index.d.ts +2 -1
  15. package/types/SourceCodeEditor/v1/index.d.ts.map +1 -1
  16. package/types/SourceCodeEditor/v2/index.d.ts +2 -1
  17. package/types/SourceCodeEditor/v2/index.d.ts.map +1 -1
  18. package/types/exports/a.d.ts +1 -1
  19. package/types/exports/a.d.ts.map +1 -1
  20. package/types/exports/b.d.ts +1 -1
  21. package/types/exports/b.d.ts.map +1 -1
  22. package/lib/SourceCodeEditor/v1/SearchPanel.js +0 -121
  23. package/lib/SourceCodeEditor/v1/customKeybinding.js +0 -105
  24. package/lib/SourceCodeEditor/v1/index.js +0 -552
  25. package/lib/SourceCodeEditor/v1/props.js +0 -33
  26. package/lib/SourceCodeEditor/v1/styles.js +0 -230
  27. package/lib/SourceCodeEditor/v1/theme.js +0 -60
  28. package/lib/SourceCodeEditor/v2/SearchPanel.js +0 -121
  29. package/lib/SourceCodeEditor/v2/customKeybinding.js +0 -105
  30. package/lib/SourceCodeEditor/v2/index.js +0 -559
  31. package/lib/SourceCodeEditor/v2/styles.js +0 -236
  32. package/lib/exports/a.js +0 -12
  33. package/lib/exports/b.js +0 -12
  34. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,7 +3,15 @@
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.3-snapshot-43](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-43) (2026-05-07)
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-source-code-editor
9
+
10
+
11
+
12
+
13
+
14
+ ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
15
 
8
16
 
9
17
  ### Bug Fixes
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -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,6 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['label', 'language', 'readOnly', 'editable', 'lineNumbers', 'foldGutter', 'highlightActiveLineGutter', 'highlightActiveLine', 'lineWrapping', 'autofocus', 'spellcheck', 'direction', 'rtlMoveVisually', 'indentOnLoad', 'indentWithTab', 'indentUnit', 'defaultValue', 'value', 'onChange', 'onFocus', 'onBlur', 'attachment', 'height', 'width',
32
- // 'darkTheme',
33
- 'elementRef', 'containerRef', 'searchConfig'];
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
+ }
@@ -46,11 +46,11 @@ import { requestAnimationFrame } from '@instructure/ui-dom-utils';
46
46
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
47
47
  import { textDirectionContextConsumer } from '@instructure/ui-i18n';
48
48
  import { withStyle } from '@instructure/emotion';
49
- import customSearch from "./SearchPanel.js";
50
- import generateStyle from "./styles.js";
51
- import generateComponentTheme from "./theme.js";
52
- import { rtlHorizontalArrowKeymap } from "./customKeybinding.js";
53
- import { allowedProps } from "./props.js";
49
+ import customSearch from './SearchPanel.js';
50
+ import generateStyle from './styles.js';
51
+ import generateComponentTheme from './theme.js';
52
+ import { rtlHorizontalArrowKeymap } from './customKeybinding.js';
53
+ import { allowedProps } from './props.js';
54
54
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
55
55
  /**
56
56
  ---
@@ -58,7 +58,7 @@ category: components
58
58
  ---
59
59
  **/
60
60
  let SourceCodeEditor = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec3 = textDirectionContextConsumer(), _dec(_class = _dec2(_class = _dec3(_class = class SourceCodeEditor extends Component {
61
- static displayName = "SourceCodeEditor";
61
+ static displayName = 'SourceCodeEditor';
62
62
  static componentId = 'SourceCodeEditor';
63
63
  static allowedProps = allowedProps;
64
64
  static defaultProps = {
@@ -46,10 +46,10 @@ import { requestAnimationFrame } from '@instructure/ui-dom-utils';
46
46
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
47
47
  import { textDirectionContextConsumer } from '@instructure/ui-i18n';
48
48
  import { withStyleNew } from '@instructure/emotion';
49
- import customSearch from "./SearchPanel.js";
50
- import generateStyle from "./styles.js";
51
- import { rtlHorizontalArrowKeymap } from "./customKeybinding.js";
52
- import { allowedProps } from "./props.js";
49
+ import customSearch from './SearchPanel.js';
50
+ import generateStyle from './styles.js';
51
+ import { rtlHorizontalArrowKeymap } from './customKeybinding.js';
52
+ import { allowedProps } from './props.js';
53
53
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
54
54
  /**
55
55
  ---
@@ -57,7 +57,7 @@ category: components
57
57
  ---
58
58
  **/
59
59
  let SourceCodeEditor = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec3 = textDirectionContextConsumer(), _dec(_class = _dec2(_class = _dec3(_class = class SourceCodeEditor extends Component {
60
- static displayName = "SourceCodeEditor";
60
+ static displayName = 'SourceCodeEditor';
61
61
  static componentId = 'SourceCodeEditor';
62
62
  static allowedProps = allowedProps;
63
63
  static defaultProps = {
package/es/exports/a.js CHANGED
@@ -21,4 +21,4 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { SourceCodeEditor } from "../SourceCodeEditor/v1/index.js";
24
+ export { SourceCodeEditor } from '../SourceCodeEditor/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,4 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { SourceCodeEditor } from "../SourceCodeEditor/v2/index.js";
24
+ export { SourceCodeEditor } from '../SourceCodeEditor/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-source-code-editor",
3
- "version": "11.7.3-snapshot-43",
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",
@@ -29,24 +29,24 @@
29
29
  "@codemirror/state": "^6.4.1",
30
30
  "@codemirror/view": "^6.34.1",
31
31
  "@lezer/highlight": "1.2.1",
32
- "@instructure/ui-a11y-content": "11.7.3-snapshot-43",
33
- "@instructure/ui-buttons": "11.7.3-snapshot-43",
34
- "@instructure/emotion": "11.7.3-snapshot-43",
35
- "@instructure/shared-types": "11.7.3-snapshot-43",
36
- "@instructure/ui-dom-utils": "11.7.3-snapshot-43",
37
- "@instructure/ui-i18n": "11.7.3-snapshot-43",
38
- "@instructure/ui-icons": "11.7.3-snapshot-43",
39
- "@instructure/ui-themes": "11.7.3-snapshot-43",
40
- "@instructure/ui-text-input": "11.7.3-snapshot-43",
41
- "@instructure/ui-react-utils": "11.7.3-snapshot-43",
42
- "@instructure/ui-utils": "11.7.3-snapshot-43"
32
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
33
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
34
+ "@instructure/ui-a11y-content": "11.7.4-pr-snapshot-1781695314229",
35
+ "@instructure/ui-buttons": "11.7.4-pr-snapshot-1781695314229",
36
+ "@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
37
+ "@instructure/ui-i18n": "11.7.4-pr-snapshot-1781695314229",
38
+ "@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
39
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
40
+ "@instructure/ui-text-input": "11.7.4-pr-snapshot-1781695314229",
41
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
42
+ "@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@testing-library/jest-dom": "^6.6.3",
46
46
  "@testing-library/react": "15.0.7",
47
47
  "@testing-library/user-event": "^14.6.1",
48
48
  "vitest": "^3.2.2",
49
- "@instructure/ui-babel-preset": "11.7.3-snapshot-43"
49
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=18 <=19",
@@ -57,7 +57,6 @@
57
57
  },
58
58
  "sideEffects": false,
59
59
  "exports": {
60
- "./lib/*": "./lib/*",
61
60
  "./es/*": "./es/*",
62
61
  "./types/*": "./types/*",
63
62
  "./package.json": "./package.json",
@@ -66,28 +65,24 @@
66
65
  "src": "./src/exports/a.ts",
67
66
  "types": "./types/exports/a.d.ts",
68
67
  "import": "./es/exports/a.js",
69
- "require": "./lib/exports/a.js",
70
68
  "default": "./es/exports/a.js"
71
69
  },
72
70
  "./v11_6": {
73
71
  "src": "./src/exports/a.ts",
74
72
  "types": "./types/exports/a.d.ts",
75
73
  "import": "./es/exports/a.js",
76
- "require": "./lib/exports/a.js",
77
74
  "default": "./es/exports/a.js"
78
75
  },
79
76
  "./v11_7": {
80
77
  "src": "./src/exports/b.ts",
81
78
  "types": "./types/exports/b.d.ts",
82
79
  "import": "./es/exports/b.js",
83
- "require": "./lib/exports/b.js",
84
80
  "default": "./es/exports/b.js"
85
81
  },
86
82
  "./latest": {
87
83
  "src": "./src/exports/b.ts",
88
84
  "types": "./types/exports/b.d.ts",
89
85
  "import": "./es/exports/b.js",
90
- "require": "./lib/exports/b.js",
91
86
  "default": "./es/exports/b.js"
92
87
  }
93
88
  },
@@ -95,7 +90,7 @@
95
90
  "lint": "ui-scripts lint",
96
91
  "lint:fix": "ui-scripts lint --fix",
97
92
  "clean": "ui-scripts clean",
98
- "build": "ui-scripts build --modules es,cjs",
93
+ "build": "ui-scripts build",
99
94
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
100
95
  "build:types": "tsc -p tsconfig.build.json",
101
96
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -89,14 +89,14 @@ import { textDirectionContextConsumer } from '@instructure/ui-i18n'
89
89
 
90
90
  import { withStyle } from '@instructure/emotion'
91
91
 
92
- import customSearch from './SearchPanel'
92
+ import customSearch from './SearchPanel.js'
93
93
 
94
- import generateStyle from './styles'
95
- import generateComponentTheme from './theme'
94
+ import generateStyle from './styles.js'
95
+ import generateComponentTheme from './theme.js'
96
96
 
97
- import { rtlHorizontalArrowKeymap } from './customKeybinding'
97
+ import { rtlHorizontalArrowKeymap } from './customKeybinding.js'
98
98
 
99
- import { allowedProps } from './props'
99
+ import { allowedProps } from './props.js'
100
100
  import type { SourceCodeEditorProps } from './props'
101
101
 
102
102
  /**
@@ -108,6 +108,7 @@ category: components
108
108
  @withStyle(generateStyle, generateComponentTheme)
109
109
  @textDirectionContextConsumer()
110
110
  class SourceCodeEditor extends Component<SourceCodeEditorProps> {
111
+ static displayName = 'SourceCodeEditor'
111
112
  static readonly componentId = 'SourceCodeEditor'
112
113
 
113
114
  static allowedProps = allowedProps
@@ -89,13 +89,13 @@ import { textDirectionContextConsumer } from '@instructure/ui-i18n'
89
89
 
90
90
  import { withStyleNew } from '@instructure/emotion'
91
91
 
92
- import customSearch from './SearchPanel'
92
+ import customSearch from './SearchPanel.js'
93
93
 
94
- import generateStyle from './styles'
94
+ import generateStyle from './styles.js'
95
95
 
96
- import { rtlHorizontalArrowKeymap } from './customKeybinding'
96
+ import { rtlHorizontalArrowKeymap } from './customKeybinding.js'
97
97
 
98
- import { allowedProps } from './props'
98
+ import { allowedProps } from './props.js'
99
99
  import type { SourceCodeEditorProps } from './props'
100
100
 
101
101
  /**
@@ -107,6 +107,7 @@ category: components
107
107
  @withStyleNew(generateStyle)
108
108
  @textDirectionContextConsumer()
109
109
  class SourceCodeEditor extends Component<SourceCodeEditorProps> {
110
+ static displayName = 'SourceCodeEditor'
110
111
  static readonly componentId = 'SourceCodeEditor'
111
112
 
112
113
  static allowedProps = allowedProps
package/src/exports/a.ts CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { SourceCodeEditor } from '../SourceCodeEditor/v1'
24
+ export { SourceCodeEditor } from '../SourceCodeEditor/v1/index.js'
25
25
  export type { SourceCodeEditorProps } from '../SourceCodeEditor/v1/props'
package/src/exports/b.ts CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { SourceCodeEditor } from '../SourceCodeEditor/v2'
24
+ export { SourceCodeEditor } from '../SourceCodeEditor/v2/index.js'
25
25
  export type { SourceCodeEditorProps } from '../SourceCodeEditor/v2/props'