@snack-uikit/code-editor 0.6.2-preview-8cf89a18.0 → 0.6.2-preview-43047f8c.0

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.
@@ -115,7 +115,7 @@ function CodeEditor(_a) {
115
115
  className: className
116
116
  }, (0, utils_1.extractSupportProps)(props), {
117
117
  ref: setWrapperElement,
118
- children: (0, jsx_runtime_1.jsx)(react_1.Editor, Object.assign({}, props, jsonSchemaProps, {
118
+ children: (0, jsx_runtime_1.jsx)(react_1.Editor, Object.assign({}, jsonSchemaProps, props, {
119
119
  theme: theme !== null && theme !== void 0 ? theme : dark ? 'snackDark' : 'snack',
120
120
  className: (0, classnames_1.default)({
121
121
  [styles_module_scss_1.default.editor]: hasBackground
@@ -87,5 +87,5 @@ export function CodeEditor(_a) {
87
87
  fontFamily: themeValues.mono.body.s['font-family'],
88
88
  }
89
89
  : DEFAULT_THEME_OPTIONS.mono.s)), options)), [options, themeValues === null || themeValues === void 0 ? void 0 : themeValues.mono, jsonSchemaOptions]);
90
- return (_jsx("div", Object.assign({ className: className }, extractSupportProps(props), { ref: setWrapperElement, children: _jsx(Editor, Object.assign({}, props, jsonSchemaProps, { theme: theme !== null && theme !== void 0 ? theme : (dark ? 'snackDark' : 'snack'), className: cn({ [styles.editor]: hasBackground }), loading: loading !== null && loading !== void 0 ? loading : _jsx(Spinner, {}), options: mergedOptions, onMount: onEditorMount, language: language })) })));
90
+ return (_jsx("div", Object.assign({ className: className }, extractSupportProps(props), { ref: setWrapperElement, children: _jsx(Editor, Object.assign({}, jsonSchemaProps, props, { theme: theme !== null && theme !== void 0 ? theme : (dark ? 'snackDark' : 'snack'), className: cn({ [styles.editor]: hasBackground }), loading: loading !== null && loading !== void 0 ? loading : _jsx(Spinner, {}), options: mergedOptions, onMount: onEditorMount, language: language })) })));
91
91
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.6.2-preview-8cf89a18.0",
7
+ "version": "0.6.2-preview-43047f8c.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -37,8 +37,8 @@
37
37
  "scripts": {},
38
38
  "dependencies": {
39
39
  "@monaco-editor/react": "4.6.0",
40
- "@snack-uikit/loaders": "0.9.4-preview-8cf89a18.0",
41
- "@snack-uikit/utils": "3.8.2-preview-8cf89a18.0",
40
+ "@snack-uikit/loaders": "0.9.3",
41
+ "@snack-uikit/utils": "3.8.1",
42
42
  "chroma-js": "3.1.2",
43
43
  "classnames": "2.5.1",
44
44
  "monaco-yaml": "5.2.3"
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "@types/chroma-js": "2.4.4"
48
48
  },
49
- "gitHead": "5e1747d716a0215e5b2c1165b130cbde1bf899f9"
49
+ "gitHead": "4c27293f98657ba35736318e7717121545c18d6a"
50
50
  }
@@ -133,8 +133,8 @@ export function CodeEditor({
133
133
  return (
134
134
  <div className={className} {...extractSupportProps(props)} ref={setWrapperElement}>
135
135
  <Editor
136
- {...props}
137
136
  {...jsonSchemaProps}
137
+ {...props}
138
138
  theme={theme ?? (dark ? 'snackDark' : 'snack')}
139
139
  className={cn({ [styles.editor]: hasBackground })}
140
140
  loading={loading ?? <Spinner />}