@instructure/ui-source-code-editor 10.4.1-snapshot-0 → 10.4.1-snapshot-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 +1 -1
- package/package.json +18 -18
- package/src/SourceCodeEditor/README.md +16 -14
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
|
-
## [10.4.1-snapshot-
|
|
6
|
+
## [10.4.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1-snapshot-2) (2024-10-18)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-source-code-editor
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-source-code-editor",
|
|
3
|
-
"version": "10.4.1-snapshot-
|
|
3
|
+
"version": "10.4.1-snapshot-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,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "10.4.1-snapshot-
|
|
27
|
-
"@instructure/ui-test-queries": "10.4.1-snapshot-
|
|
28
|
-
"@instructure/ui-test-utils": "10.4.1-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "10.4.1-snapshot-2",
|
|
27
|
+
"@instructure/ui-test-queries": "10.4.1-snapshot-2",
|
|
28
|
+
"@instructure/ui-test-utils": "10.4.1-snapshot-2",
|
|
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.1-snapshot-
|
|
49
|
-
"@instructure/shared-types": "10.4.1-snapshot-
|
|
50
|
-
"@instructure/ui-a11y-content": "10.4.1-snapshot-
|
|
51
|
-
"@instructure/ui-buttons": "10.4.1-snapshot-
|
|
52
|
-
"@instructure/ui-dom-utils": "10.4.1-snapshot-
|
|
53
|
-
"@instructure/ui-i18n": "10.4.1-snapshot-
|
|
54
|
-
"@instructure/ui-icons": "10.4.1-snapshot-
|
|
55
|
-
"@instructure/ui-prop-types": "10.4.1-snapshot-
|
|
56
|
-
"@instructure/ui-react-utils": "10.4.1-snapshot-
|
|
57
|
-
"@instructure/ui-test-locator": "10.4.1-snapshot-
|
|
58
|
-
"@instructure/ui-testable": "10.4.1-snapshot-
|
|
59
|
-
"@instructure/ui-text-input": "10.4.1-snapshot-
|
|
60
|
-
"@instructure/ui-themes": "10.4.1-snapshot-
|
|
61
|
-
"@instructure/ui-utils": "10.4.1-snapshot-
|
|
48
|
+
"@instructure/emotion": "10.4.1-snapshot-2",
|
|
49
|
+
"@instructure/shared-types": "10.4.1-snapshot-2",
|
|
50
|
+
"@instructure/ui-a11y-content": "10.4.1-snapshot-2",
|
|
51
|
+
"@instructure/ui-buttons": "10.4.1-snapshot-2",
|
|
52
|
+
"@instructure/ui-dom-utils": "10.4.1-snapshot-2",
|
|
53
|
+
"@instructure/ui-i18n": "10.4.1-snapshot-2",
|
|
54
|
+
"@instructure/ui-icons": "10.4.1-snapshot-2",
|
|
55
|
+
"@instructure/ui-prop-types": "10.4.1-snapshot-2",
|
|
56
|
+
"@instructure/ui-react-utils": "10.4.1-snapshot-2",
|
|
57
|
+
"@instructure/ui-test-locator": "10.4.1-snapshot-2",
|
|
58
|
+
"@instructure/ui-testable": "10.4.1-snapshot-2",
|
|
59
|
+
"@instructure/ui-text-input": "10.4.1-snapshot-2",
|
|
60
|
+
"@instructure/ui-themes": "10.4.1-snapshot-2",
|
|
61
|
+
"@instructure/ui-utils": "10.4.1-snapshot-2",
|
|
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
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
)
|