@synerise/ds-code-area 0.6.1 → 0.6.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 +8 -0
- package/dist/CodeArea.js +1 -1
- package/dist/CodeArea.styles.js +19 -19
- package/package.json +11 -11
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
|
+
## [0.6.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.6.1...@synerise/ds-code-area@0.6.2) (2025-03-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-code-area
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.6.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-area@0.6.0...@synerise/ds-code-area@0.6.1) (2025-03-04)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-code-area
|
package/dist/CodeArea.js
CHANGED
|
@@ -25,7 +25,7 @@ var CodeArea = function CodeArea(_ref) {
|
|
|
25
25
|
}, /*#__PURE__*/React.createElement(CodeAreaEditor, _extends({}, codeAreaProps, {
|
|
26
26
|
toggleFullscreen: toggleFullscreen,
|
|
27
27
|
isFullscreen: false
|
|
28
|
-
})), wrapperRef.current && isFullscreen && createPortal(/*#__PURE__*/React.createElement(CodeAreaEditor, _extends({}, codeAreaProps, {
|
|
28
|
+
})), wrapperRef.current && isFullscreen && createPortal( /*#__PURE__*/React.createElement(CodeAreaEditor, _extends({}, codeAreaProps, {
|
|
29
29
|
toggleFullscreen: toggleFullscreen,
|
|
30
30
|
isFullscreen: isFullscreen
|
|
31
31
|
})), getPopupContainer(wrapperRef.current)));
|
package/dist/CodeArea.styles.js
CHANGED
|
@@ -2,19 +2,19 @@ import styled, { css } from 'styled-components';
|
|
|
2
2
|
import { Title, Text } from '@synerise/ds-typography';
|
|
3
3
|
var FlexRow = styled.div.withConfig({
|
|
4
4
|
displayName: "CodeAreastyles__FlexRow",
|
|
5
|
-
componentId: "svoej2-0"
|
|
5
|
+
componentId: "sc-svoej2-0"
|
|
6
6
|
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
7
7
|
export var EditorInnerWrapper = styled.div.withConfig({
|
|
8
8
|
displayName: "CodeAreastyles__EditorInnerWrapper",
|
|
9
|
-
componentId: "svoej2-1"
|
|
9
|
+
componentId: "sc-svoej2-1"
|
|
10
10
|
})(["height:295px;"]);
|
|
11
11
|
export var CodeAreaContent = styled.div.withConfig({
|
|
12
12
|
displayName: "CodeAreastyles__CodeAreaContent",
|
|
13
|
-
componentId: "svoej2-2"
|
|
13
|
+
componentId: "sc-svoej2-2"
|
|
14
14
|
})([""]);
|
|
15
15
|
export var EditorWrapper = styled.div.withConfig({
|
|
16
16
|
displayName: "CodeAreastyles__EditorWrapper",
|
|
17
|
-
componentId: "svoej2-3"
|
|
17
|
+
componentId: "sc-svoej2-3"
|
|
18
18
|
})(["border:solid 1px ", ";border-radius:3px;padding-top:12px;", ";canvas{opacity:0;}"], function (props) {
|
|
19
19
|
return props.hasError ? props.theme.palette['red-600'] : props.theme.palette['grey-200'];
|
|
20
20
|
}, function (props) {
|
|
@@ -22,15 +22,15 @@ export var EditorWrapper = styled.div.withConfig({
|
|
|
22
22
|
});
|
|
23
23
|
export var FullscreenHeaderTitle = styled(Title).withConfig({
|
|
24
24
|
displayName: "CodeAreastyles__FullscreenHeaderTitle",
|
|
25
|
-
componentId: "svoej2-4"
|
|
25
|
+
componentId: "sc-svoej2-4"
|
|
26
26
|
})(["display:flex;gap:16px;align-items:center;margin-bottom:0;"]);
|
|
27
27
|
export var FullscreenHeader = styled(FlexRow).withConfig({
|
|
28
28
|
displayName: "CodeAreastyles__FullscreenHeader",
|
|
29
|
-
componentId: "svoej2-5"
|
|
29
|
+
componentId: "sc-svoej2-5"
|
|
30
30
|
})(["padding:16px 24px;"]);
|
|
31
31
|
export var CodeAreaWrapper = styled.div.withConfig({
|
|
32
32
|
displayName: "CodeAreastyles__CodeAreaWrapper",
|
|
33
|
-
componentId: "svoej2-6"
|
|
33
|
+
componentId: "sc-svoej2-6"
|
|
34
34
|
})(["", " ", "{", ";}"], function (props) {
|
|
35
35
|
if (props.isFullscreen) {
|
|
36
36
|
return css(["position:fixed;width:100vw;height:100vh;z-index:", ";left:0;top:0;background:", ";", "{height:calc(100vh - ", "px);}", "{margin:0 24px;}"], props.zIndex !== undefined ? props.zIndex : props.theme.variables['zindex-modal'], props.theme.palette.white, EditorInnerWrapper, props.requiredSpace, CodeAreaContent);
|
|
@@ -41,53 +41,53 @@ export var CodeAreaWrapper = styled.div.withConfig({
|
|
|
41
41
|
});
|
|
42
42
|
export var AdditionalDescription = styled.div.withConfig({
|
|
43
43
|
displayName: "CodeAreastyles__AdditionalDescription",
|
|
44
|
-
componentId: "svoej2-7"
|
|
44
|
+
componentId: "sc-svoej2-7"
|
|
45
45
|
})(["margin-bottom:8px;"]);
|
|
46
46
|
export var ContentBelow = styled(FlexRow).withConfig({
|
|
47
47
|
displayName: "CodeAreastyles__ContentBelow",
|
|
48
|
-
componentId: "svoej2-8"
|
|
48
|
+
componentId: "sc-svoej2-8"
|
|
49
49
|
})(["margin-top:8px;align-items:flex-start;"]);
|
|
50
50
|
export var ContentAbove = styled(FlexRow).withConfig({
|
|
51
51
|
displayName: "CodeAreastyles__ContentAbove",
|
|
52
|
-
componentId: "svoej2-9"
|
|
52
|
+
componentId: "sc-svoej2-9"
|
|
53
53
|
})(["margin-bottom:8px;"]);
|
|
54
54
|
export var SyntaxTitle = styled(Text).withConfig({
|
|
55
55
|
displayName: "CodeAreastyles__SyntaxTitle",
|
|
56
|
-
componentId: "svoej2-10"
|
|
56
|
+
componentId: "sc-svoej2-10"
|
|
57
57
|
})([""]);
|
|
58
58
|
export var BottomBar = styled(FlexRow).withConfig({
|
|
59
59
|
displayName: "CodeAreastyles__BottomBar",
|
|
60
|
-
componentId: "svoej2-11"
|
|
60
|
+
componentId: "sc-svoej2-11"
|
|
61
61
|
})(["border-top:solid 1px ", ";padding:8px;"], function (props) {
|
|
62
62
|
return props.theme.palette['grey-200'];
|
|
63
63
|
});
|
|
64
64
|
export var LeftSide = styled.div.withConfig({
|
|
65
65
|
displayName: "CodeAreastyles__LeftSide",
|
|
66
|
-
componentId: "svoej2-12"
|
|
66
|
+
componentId: "sc-svoej2-12"
|
|
67
67
|
})([""]);
|
|
68
68
|
export var RightSide = styled.div.withConfig({
|
|
69
69
|
displayName: "CodeAreastyles__RightSide",
|
|
70
|
-
componentId: "svoej2-13"
|
|
70
|
+
componentId: "sc-svoej2-13"
|
|
71
71
|
})(["margin-left:auto;display:flex;gap:8px;"]);
|
|
72
72
|
export var SyntaxSelect = styled(LeftSide).withConfig({
|
|
73
73
|
displayName: "CodeAreastyles__SyntaxSelect",
|
|
74
|
-
componentId: "svoej2-14"
|
|
74
|
+
componentId: "sc-svoej2-14"
|
|
75
75
|
})(["padding-left:8px;"]);
|
|
76
76
|
export var BottomBarElement = styled.div.withConfig({
|
|
77
77
|
displayName: "CodeAreastyles__BottomBarElement",
|
|
78
|
-
componentId: "svoej2-15"
|
|
78
|
+
componentId: "sc-svoej2-15"
|
|
79
79
|
})([""]);
|
|
80
80
|
export var Description = styled.div.withConfig({
|
|
81
81
|
displayName: "CodeAreastyles__Description",
|
|
82
|
-
componentId: "svoej2-16"
|
|
82
|
+
componentId: "sc-svoej2-16"
|
|
83
83
|
})([""]);
|
|
84
84
|
export var Counter = styled.div.withConfig({
|
|
85
85
|
displayName: "CodeAreastyles__Counter",
|
|
86
|
-
componentId: "svoej2-17"
|
|
86
|
+
componentId: "sc-svoej2-17"
|
|
87
87
|
})(["font-weight:500;"]);
|
|
88
88
|
export var ErrorText = styled.div.withConfig({
|
|
89
89
|
displayName: "CodeAreastyles__ErrorText",
|
|
90
|
-
componentId: "svoej2-18"
|
|
90
|
+
componentId: "sc-svoej2-18"
|
|
91
91
|
})(["color:", ";margin-bottom:4px;"], function (props) {
|
|
92
92
|
return props.theme.palette['red-600'];
|
|
93
93
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-code-area",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "CodeArea UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
22
|
"build:watch": "npm run build:js -- --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
|
-
"pack:ci": "npm pack --pack-destination ../../
|
|
24
|
+
"pack:ci": "npm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "npm run build",
|
|
26
26
|
"test": "jest",
|
|
27
27
|
"test:watch": "npm run test -- --watchAll",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@monaco-editor/react": "4.4.6",
|
|
38
|
-
"@synerise/ds-button": "^0.23.
|
|
39
|
-
"@synerise/ds-core": "^0.43.
|
|
40
|
-
"@synerise/ds-icon": "^0.72.
|
|
41
|
-
"@synerise/ds-inline-edit": "^0.10.
|
|
42
|
-
"@synerise/ds-input": "^0.25.
|
|
43
|
-
"@synerise/ds-tooltip": "^0.16.
|
|
44
|
-
"@synerise/ds-typography": "^0.17.
|
|
45
|
-
"@synerise/ds-utils": "^0.32.
|
|
38
|
+
"@synerise/ds-button": "^0.23.4",
|
|
39
|
+
"@synerise/ds-core": "^0.43.2",
|
|
40
|
+
"@synerise/ds-icon": "^0.72.1",
|
|
41
|
+
"@synerise/ds-inline-edit": "^0.10.11",
|
|
42
|
+
"@synerise/ds-input": "^0.25.9",
|
|
43
|
+
"@synerise/ds-tooltip": "^0.16.3",
|
|
44
|
+
"@synerise/ds-typography": "^0.17.7",
|
|
45
|
+
"@synerise/ds-utils": "^0.32.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@synerise/ds-core": "*",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"monaco-editor": "0.34.1"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "a176b46dab123cd503247ae57022f8e808772d68"
|
|
58
58
|
}
|