@instructure/ui-source-code-editor 10.4.0 → 10.4.1-snapshot-1

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,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
+ ## [10.4.1-snapshot-1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1-snapshot-1) (2024-10-18)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-source-code-editor
9
+
10
+
11
+
12
+
13
+
6
14
  # [10.4.0](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.4.0) (2024-10-16)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-source-code-editor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-source-code-editor",
3
- "version": "10.4.0",
3
+ "version": "10.4.1-snapshot-1",
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,9 +23,9 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "10.4.0",
27
- "@instructure/ui-test-queries": "10.4.0",
28
- "@instructure/ui-test-utils": "10.4.0",
26
+ "@instructure/ui-babel-preset": "10.4.1-snapshot-1",
27
+ "@instructure/ui-test-queries": "10.4.1-snapshot-1",
28
+ "@instructure/ui-test-utils": "10.4.1-snapshot-1",
29
29
  "@testing-library/jest-dom": "^6.4.6",
30
30
  "@testing-library/react": "^16.0.1",
31
31
  "vitest": "^2.1.1"
@@ -45,20 +45,20 @@
45
45
  "@codemirror/search": "^6.5.6",
46
46
  "@codemirror/state": "^6.4.1",
47
47
  "@codemirror/view": "^6.34.1",
48
- "@instructure/emotion": "10.4.0",
49
- "@instructure/shared-types": "10.4.0",
50
- "@instructure/ui-a11y-content": "10.4.0",
51
- "@instructure/ui-buttons": "10.4.0",
52
- "@instructure/ui-dom-utils": "10.4.0",
53
- "@instructure/ui-i18n": "10.4.0",
54
- "@instructure/ui-icons": "10.4.0",
55
- "@instructure/ui-prop-types": "10.4.0",
56
- "@instructure/ui-react-utils": "10.4.0",
57
- "@instructure/ui-test-locator": "10.4.0",
58
- "@instructure/ui-testable": "10.4.0",
59
- "@instructure/ui-text-input": "10.4.0",
60
- "@instructure/ui-themes": "10.4.0",
61
- "@instructure/ui-utils": "10.4.0",
48
+ "@instructure/emotion": "10.4.1-snapshot-1",
49
+ "@instructure/shared-types": "10.4.1-snapshot-1",
50
+ "@instructure/ui-a11y-content": "10.4.1-snapshot-1",
51
+ "@instructure/ui-buttons": "10.4.1-snapshot-1",
52
+ "@instructure/ui-dom-utils": "10.4.1-snapshot-1",
53
+ "@instructure/ui-i18n": "10.4.1-snapshot-1",
54
+ "@instructure/ui-icons": "10.4.1-snapshot-1",
55
+ "@instructure/ui-prop-types": "10.4.1-snapshot-1",
56
+ "@instructure/ui-react-utils": "10.4.1-snapshot-1",
57
+ "@instructure/ui-test-locator": "10.4.1-snapshot-1",
58
+ "@instructure/ui-testable": "10.4.1-snapshot-1",
59
+ "@instructure/ui-text-input": "10.4.1-snapshot-1",
60
+ "@instructure/ui-themes": "10.4.1-snapshot-1",
61
+ "@instructure/ui-utils": "10.4.1-snapshot-1",
62
62
  "@lezer/highlight": "1.2.1",
63
63
  "prop-types": "^15.8.1"
64
64
  },
@@ -229,20 +229,22 @@ class LanguageExamples extends React.Component {
229
229
  </Flex.Item>
230
230
 
231
231
  <Flex.Item padding="0 0 0 large" shouldGrow shouldShrink>
232
- <SourceCodeEditor
233
- label={`${this.state.currentLanguage} code editor`}
234
- language={this.state.currentLanguage}
235
- value={this.state.currentValue}
236
- onChange={(value) => {
237
- this.setState({
238
- currentValue: value
239
- })
240
- }}
241
- lineNumbers
242
- lineWrapping
243
- highlightActiveLine
244
- highlightActiveLineGutter
245
- />
232
+ <FormField label="SourceCodeEditor with syntax highlight">
233
+ <SourceCodeEditor
234
+ label={`${this.state.currentLanguage} code editor`}
235
+ language={this.state.currentLanguage}
236
+ value={this.state.currentValue}
237
+ onChange={(value) => {
238
+ this.setState({
239
+ currentValue: value
240
+ })
241
+ }}
242
+ lineNumbers
243
+ lineWrapping
244
+ highlightActiveLine
245
+ highlightActiveLineGutter
246
+ />
247
+ </FormField>
246
248
  </Flex.Item>
247
249
  </Flex>
248
250
  )