@synerise/ds-code-area 1.0.7 → 1.1.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [1.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.7...@synerise/ds-code-area@1.1.0) (2025-04-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **form-field:** add form-field component ([7f6b191](https://github.com/Synerise/synerise-design/commit/7f6b191132a3b0d694c21fb4d649f4deea6acb89))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.0.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@1.0.6...@synerise/ds-code-area@1.0.7) (2025-04-08)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -2,7 +2,7 @@ var _excluded = ["renderAdditionalDescription", "description", "errorText", "sty
|
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { FormFieldLabel } from '@synerise/ds-form-field';
|
|
6
6
|
import { useResizeObserver } from '@synerise/ds-utils';
|
|
7
7
|
import { getCharCount } from '../utils/getCharCount';
|
|
8
8
|
import { ContentAbove, ContentBelow, FullscreenHeader } from './index';
|
|
@@ -48,7 +48,7 @@ export var CodeAreaEditor = function CodeAreaEditor(_ref) {
|
|
|
48
48
|
setIsValid(!markers.length);
|
|
49
49
|
}, []);
|
|
50
50
|
var labelWithTooltip = useMemo(function () {
|
|
51
|
-
return label && /*#__PURE__*/React.createElement(
|
|
51
|
+
return label && /*#__PURE__*/React.createElement(FormFieldLabel, {
|
|
52
52
|
label: label,
|
|
53
53
|
tooltip: tooltip,
|
|
54
54
|
tooltipConfig: tooltip || tooltipProps ? _extends({}, tooltipProps, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CodeAreaEditorRawProps } from 'CodeArea.types';
|
|
2
|
+
import { CodeAreaEditorRawProps } from '../CodeArea.types';
|
|
3
3
|
export declare const CodeAreaEditorRaw: ({ onMount, beforeMount, options, errorText, texts, allowFullscreen, toggleFullscreen, renderFooterContent, isFullscreen, count, counterLimit, onChange, isValid, onDidChangeMarkers, isSyntaxSelectVisible, syntaxOptions, currentSyntax, readOnly, onSyntaxChange, loaderConfig, ...props }: CodeAreaEditorRawProps) => React.JSX.Element;
|
|
4
4
|
export default CodeAreaEditorRaw;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-code-area",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "CodeArea UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,13 +35,14 @@
|
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@monaco-editor/react": "4.4.6",
|
|
38
|
-
"@synerise/ds-button": "^1.1.
|
|
39
|
-
"@synerise/ds-core": "^1.0
|
|
40
|
-
"@synerise/ds-
|
|
41
|
-
"@synerise/ds-
|
|
42
|
-
"@synerise/ds-
|
|
43
|
-
"@synerise/ds-
|
|
44
|
-
"@synerise/ds-
|
|
38
|
+
"@synerise/ds-button": "^1.1.4",
|
|
39
|
+
"@synerise/ds-core": "^1.1.0",
|
|
40
|
+
"@synerise/ds-form-field": "^1.1.0",
|
|
41
|
+
"@synerise/ds-icon": "^1.4.0",
|
|
42
|
+
"@synerise/ds-inline-edit": "^1.0.6",
|
|
43
|
+
"@synerise/ds-loader": "^1.0.1",
|
|
44
|
+
"@synerise/ds-tooltip": "^1.1.4",
|
|
45
|
+
"@synerise/ds-typography": "^1.0.5",
|
|
45
46
|
"@synerise/ds-utils": "^1.0.1"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
@@ -54,5 +55,5 @@
|
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"monaco-editor": "0.34.1"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "6735f9babfeef53122f54ca86cba5f581e8870d9"
|
|
58
59
|
}
|