@instructure/ui-source-code-editor 10.0.1-snapshot-12 → 10.0.1-snapshot-14

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
- ## [10.0.1-snapshot-12](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.0.1-snapshot-12) (2024-08-21)
6
+ ## [10.0.1-snapshot-14](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.0.1-snapshot-14) (2024-08-22)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-source-code-editor
9
9
 
@@ -328,7 +328,7 @@ let SourceCodeEditor = (_dec = withDeterministicId(), _dec2 = withStyle(generate
328
328
  get themeExtension() {
329
329
  const styles = this.props.styles;
330
330
  if (!(styles !== null && styles !== void 0 && styles.theme) || !styles.highlightStyle) {
331
- return;
331
+ return void 0;
332
332
  }
333
333
  const theme = EditorView.theme(styles === null || styles === void 0 ? void 0 : styles.theme);
334
334
  const highlightStyle = syntaxHighlighting(HighlightStyle.define(styles === null || styles === void 0 ? void 0 : styles.highlightStyle));
@@ -335,7 +335,7 @@ let SourceCodeEditor = exports.SourceCodeEditor = (_dec = (0, _withDeterministic
335
335
  get themeExtension() {
336
336
  const styles = this.props.styles;
337
337
  if (!(styles !== null && styles !== void 0 && styles.theme) || !styles.highlightStyle) {
338
- return;
338
+ return void 0;
339
339
  }
340
340
  const theme = _view.EditorView.theme(styles === null || styles === void 0 ? void 0 : styles.theme);
341
341
  const highlightStyle = (0, _language.syntaxHighlighting)(_language.HighlightStyle.define(styles === null || styles === void 0 ? void 0 : styles.highlightStyle));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-source-code-editor",
3
- "version": "10.0.1-snapshot-12",
3
+ "version": "10.0.1-snapshot-14",
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.0.1-snapshot-12",
27
- "@instructure/ui-test-queries": "10.0.1-snapshot-12",
28
- "@instructure/ui-test-utils": "10.0.1-snapshot-12",
26
+ "@instructure/ui-babel-preset": "10.0.1-snapshot-14",
27
+ "@instructure/ui-test-queries": "10.0.1-snapshot-14",
28
+ "@instructure/ui-test-utils": "10.0.1-snapshot-14",
29
29
  "@testing-library/jest-dom": "^6.4.6",
30
30
  "@testing-library/react": "^15.0.7",
31
31
  "vitest": "^2.0.2"
@@ -45,20 +45,20 @@
45
45
  "@codemirror/search": "^6.5.6",
46
46
  "@codemirror/state": "^6.4.1",
47
47
  "@codemirror/view": "^6.26.3",
48
- "@instructure/emotion": "10.0.1-snapshot-12",
49
- "@instructure/shared-types": "10.0.1-snapshot-12",
50
- "@instructure/ui-a11y-content": "10.0.1-snapshot-12",
51
- "@instructure/ui-buttons": "10.0.1-snapshot-12",
52
- "@instructure/ui-dom-utils": "10.0.1-snapshot-12",
53
- "@instructure/ui-i18n": "10.0.1-snapshot-12",
54
- "@instructure/ui-icons": "10.0.1-snapshot-12",
55
- "@instructure/ui-prop-types": "10.0.1-snapshot-12",
56
- "@instructure/ui-react-utils": "10.0.1-snapshot-12",
57
- "@instructure/ui-test-locator": "10.0.1-snapshot-12",
58
- "@instructure/ui-testable": "10.0.1-snapshot-12",
59
- "@instructure/ui-text-input": "10.0.1-snapshot-12",
60
- "@instructure/ui-themes": "10.0.1-snapshot-12",
61
- "@instructure/ui-utils": "10.0.1-snapshot-12",
48
+ "@instructure/emotion": "10.0.1-snapshot-14",
49
+ "@instructure/shared-types": "10.0.1-snapshot-14",
50
+ "@instructure/ui-a11y-content": "10.0.1-snapshot-14",
51
+ "@instructure/ui-buttons": "10.0.1-snapshot-14",
52
+ "@instructure/ui-dom-utils": "10.0.1-snapshot-14",
53
+ "@instructure/ui-i18n": "10.0.1-snapshot-14",
54
+ "@instructure/ui-icons": "10.0.1-snapshot-14",
55
+ "@instructure/ui-prop-types": "10.0.1-snapshot-14",
56
+ "@instructure/ui-react-utils": "10.0.1-snapshot-14",
57
+ "@instructure/ui-test-locator": "10.0.1-snapshot-14",
58
+ "@instructure/ui-testable": "10.0.1-snapshot-14",
59
+ "@instructure/ui-text-input": "10.0.1-snapshot-14",
60
+ "@instructure/ui-themes": "10.0.1-snapshot-14",
61
+ "@instructure/ui-utils": "10.0.1-snapshot-14",
62
62
  "@lezer/highlight": "1.2.0",
63
63
  "prop-types": "^15.8.1"
64
64
  },
@@ -483,7 +483,7 @@ class SourceCodeEditor extends Component<SourceCodeEditorProps> {
483
483
  const { styles } = this.props
484
484
 
485
485
  if (!styles?.theme || !styles.highlightStyle) {
486
- return
486
+ return undefined
487
487
  }
488
488
 
489
489
  const theme = EditorView.theme(styles?.theme)