@synerise/ds-code-snippet 0.1.0 → 0.3.1
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 +43 -0
- package/dist/CodeSnippet.js +3 -3
- package/dist/CodeTypes/InlineCode/InlineCode.js +1 -1
- package/dist/CodeTypes/MultiCode/MultiCode.js +15 -16
- package/dist/CodeTypes/MultiCode/MultiCode.styles.js +1 -1
- package/dist/CodeTypes/SingleCode/SingleCode.js +5 -5
- package/dist/CopyAction/CopyAction.js +22 -11
- package/dist/CopyAction/CopyAction.types.d.ts +1 -0
- package/dist/CopyAction/CopyAction.types.js +1 -0
- package/dist/Highlight/Highlight.js +1 -1
- package/dist/Highlight/Highlight.types.js +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,49 @@
|
|
|
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.3.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@0.2.1...@synerise/ds-code-snippet@0.3.1) (2021-11-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-code-snippet
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@0.2.1...@synerise/ds-code-snippet@0.3.0) (2021-11-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-code-snippet
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.2.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@0.2.0...@synerise/ds-code-snippet@0.2.1) (2021-11-05)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @synerise/ds-code-snippet
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# 0.2.0 (2021-10-26)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **code-snippet:** add dependencies ([bf425b7](https://github.com/Synerise/synerise-design/commit/bf425b7aa2481d74322390d11f5df40d10b6c791))
|
|
36
|
+
* **code-snippet:** add useMemo ([8132cb2](https://github.com/Synerise/synerise-design/commit/8132cb2bb69377975026e7f8e8c8032f136fae35))
|
|
37
|
+
* **code-snippet:** fix styles and change structure ([041643d](https://github.com/Synerise/synerise-design/commit/041643d6643ac901fa6a499756b91bf02c8c4116))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* **code-snippet:** add new component code-snippet ([5cbd721](https://github.com/Synerise/synerise-design/commit/5cbd721e67a30136cd8d4e26fb97c66a498ae511))
|
|
43
|
+
* **code-snippet:** add own style files to codeTypes ([eb8a9a7](https://github.com/Synerise/synerise-design/commit/eb8a9a70f92ba504e5559a67ac87720f9c1f3de3))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
6
49
|
# 0.1.0 (2021-10-19)
|
|
7
50
|
|
|
8
51
|
|
package/dist/CodeSnippet.js
CHANGED
|
@@ -33,7 +33,7 @@ var CodeSnippet = function CodeSnippet(_ref) {
|
|
|
33
33
|
|
|
34
34
|
switch (type) {
|
|
35
35
|
case CodeSnippetType.SINGLE_LINE:
|
|
36
|
-
return React.createElement(SingleCode, {
|
|
36
|
+
return /*#__PURE__*/React.createElement(SingleCode, {
|
|
37
37
|
fontSize: fontSize,
|
|
38
38
|
tooltipTitleHover: tooltipTitleHover,
|
|
39
39
|
tooltipTitleClick: tooltipTitleClick,
|
|
@@ -42,7 +42,7 @@ var CodeSnippet = function CodeSnippet(_ref) {
|
|
|
42
42
|
}, children);
|
|
43
43
|
|
|
44
44
|
case CodeSnippetType.MULTI_LINE:
|
|
45
|
-
return React.createElement(MultiCode, {
|
|
45
|
+
return /*#__PURE__*/React.createElement(MultiCode, {
|
|
46
46
|
languages: languages,
|
|
47
47
|
colorSyntax: colorSyntax,
|
|
48
48
|
fontSize: fontSize,
|
|
@@ -58,7 +58,7 @@ var CodeSnippet = function CodeSnippet(_ref) {
|
|
|
58
58
|
}, children);
|
|
59
59
|
|
|
60
60
|
default:
|
|
61
|
-
return React.createElement(InlineCode, {
|
|
61
|
+
return /*#__PURE__*/React.createElement(InlineCode, {
|
|
62
62
|
className: className
|
|
63
63
|
}, children);
|
|
64
64
|
}
|
|
@@ -5,7 +5,7 @@ var InlineCode = function InlineCode(_ref) {
|
|
|
5
5
|
var _ref$children = _ref.children,
|
|
6
6
|
children = _ref$children === void 0 ? '' : _ref$children,
|
|
7
7
|
className = _ref.className;
|
|
8
|
-
return React.createElement(S.InlineCodeWrapper, {
|
|
8
|
+
return /*#__PURE__*/React.createElement(S.InlineCodeWrapper, {
|
|
9
9
|
className: className
|
|
10
10
|
}, children);
|
|
11
11
|
};
|
|
@@ -4,19 +4,18 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
4
4
|
|
|
5
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
6
|
|
|
7
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
8
|
|
|
9
9
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
10
10
|
|
|
11
|
-
function _iterableToArrayLimit(arr, i) {
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
12
12
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
|
|
15
15
|
import * as React from 'react';
|
|
16
16
|
import AnimateHeight from 'react-animate-height';
|
|
17
17
|
import * as copy from 'copy-to-clipboard';
|
|
18
|
-
import Icon from '@synerise/ds-icon';
|
|
19
|
-
import { DuplicateS, ArrowDownCircleM } from '@synerise/ds-icon/dist/icons';
|
|
18
|
+
import Icon, { DuplicateS, ArrowDownCircleM } from '@synerise/ds-icon';
|
|
20
19
|
import Scrollbar from '@synerise/ds-scrollbar';
|
|
21
20
|
import Highlight from '../../Highlight/Highlight';
|
|
22
21
|
import * as S from './MultiCode.styles';
|
|
@@ -72,7 +71,7 @@ var MultiCode = function MultiCode(_ref) {
|
|
|
72
71
|
return (numberRows + 1) * LINE_HEIGHT_DEFAULT;
|
|
73
72
|
}, [rows, allRows]);
|
|
74
73
|
var onMounting = React.useCallback(function () {
|
|
75
|
-
if (!!codeRef && !!(codeRef
|
|
74
|
+
if (!!codeRef && !!(codeRef !== null && codeRef !== void 0 && codeRef.current)) {
|
|
76
75
|
setAllRows(Math.round(codeRef.current.offsetHeight / LINE_HEIGHT_DEFAULT));
|
|
77
76
|
}
|
|
78
77
|
}, [codeRef]);
|
|
@@ -99,29 +98,29 @@ var MultiCode = function MultiCode(_ref) {
|
|
|
99
98
|
return isButtonVisible ? initialContentHeight : 'auto';
|
|
100
99
|
}, [isButtonVisible, initialContentHeight]);
|
|
101
100
|
var multilineStructureContent = React.useMemo(function () {
|
|
102
|
-
return React.createElement(S.PreBlock, {
|
|
101
|
+
return /*#__PURE__*/React.createElement(S.PreBlock, {
|
|
103
102
|
wrap: wrap,
|
|
104
103
|
expanded: expandedState,
|
|
105
104
|
isButtonVisible: isButtonVisible
|
|
106
|
-
}, React.createElement(AnimateHeight, {
|
|
105
|
+
}, /*#__PURE__*/React.createElement(AnimateHeight, {
|
|
107
106
|
className: "content-animation",
|
|
108
107
|
duration: ANIMATE_HEIGHT_TIME,
|
|
109
108
|
height: !expandedState ? extraHeightOption : 'auto',
|
|
110
109
|
style: {
|
|
111
110
|
minHeight: LINE_HEIGHT_DEFAULT
|
|
112
111
|
}
|
|
113
|
-
}, React.createElement(Scrollbar, {
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Scrollbar, {
|
|
114
113
|
maxHeight: !scrollable ? (rows + 1) * LINE_HEIGHT_DEFAULT : '100%',
|
|
115
114
|
style: {
|
|
116
115
|
marginRight: '17px'
|
|
117
116
|
}
|
|
118
|
-
}, React.createElement(S.BlockCodeWrapperMulti, {
|
|
117
|
+
}, /*#__PURE__*/React.createElement(S.BlockCodeWrapperMulti, {
|
|
119
118
|
ref: codeRef,
|
|
120
119
|
isButtonVisible: isButtonVisible
|
|
121
120
|
}, children))));
|
|
122
121
|
}, [wrap, rows, expandedState, isButtonVisible, scrollable, codeRef, extraHeightOption, children]);
|
|
123
122
|
var iconElement = React.useMemo(function () {
|
|
124
|
-
return React.createElement(CopyAction, {
|
|
123
|
+
return /*#__PURE__*/React.createElement(CopyAction, {
|
|
125
124
|
tooltipTitleHover: tooltipTitleHover,
|
|
126
125
|
tooltipTitleClick: tooltipTitleClick,
|
|
127
126
|
className: ICON_CLASSNAME,
|
|
@@ -129,21 +128,21 @@ var MultiCode = function MultiCode(_ref) {
|
|
|
129
128
|
copy(children);
|
|
130
129
|
onCopy && onCopy();
|
|
131
130
|
},
|
|
132
|
-
icon: React.createElement(DuplicateS, null)
|
|
131
|
+
icon: /*#__PURE__*/React.createElement(DuplicateS, null)
|
|
133
132
|
});
|
|
134
133
|
}, [children, tooltipTitleHover, tooltipTitleClick, onCopy]);
|
|
135
|
-
return React.createElement(S.CodeSnippetWrapperMulti, {
|
|
134
|
+
return /*#__PURE__*/React.createElement(S.CodeSnippetWrapperMulti, {
|
|
136
135
|
expanded: expandedState,
|
|
137
136
|
isButtonVisible: isButtonVisible,
|
|
138
137
|
className: className
|
|
139
|
-
}, React.createElement(S.ContentIconWrapper, null, colorSyntax && languages ? React.createElement(Highlight, {
|
|
138
|
+
}, /*#__PURE__*/React.createElement(S.ContentIconWrapper, null, colorSyntax && languages ? /*#__PURE__*/React.createElement(Highlight, {
|
|
140
139
|
languages: languages
|
|
141
|
-
}, multilineStructureContent) : multilineStructureContent, iconElement), rows && isButtonVisible && React.createElement(S.ExpanderButton, _extends({}, buttonProps, {
|
|
140
|
+
}, multilineStructureContent) : multilineStructureContent, iconElement), rows && isButtonVisible && /*#__PURE__*/React.createElement(S.ExpanderButton, _extends({}, buttonProps, {
|
|
142
141
|
onClick: function onClick() {
|
|
143
142
|
return handleButton(expandedState);
|
|
144
143
|
}
|
|
145
|
-
}), React.createElement(Icon, {
|
|
146
|
-
component: React.createElement(ArrowDownCircleM, null)
|
|
144
|
+
}), /*#__PURE__*/React.createElement(Icon, {
|
|
145
|
+
component: /*#__PURE__*/React.createElement(ArrowDownCircleM, null)
|
|
147
146
|
}), expandedState ? labelAfterExpanded : labelBeforeExpanded));
|
|
148
147
|
};
|
|
149
148
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import Button from '@synerise/ds-button';
|
|
3
|
-
import { IconContainer } from '@synerise/ds-icon
|
|
3
|
+
import { IconContainer } from '@synerise/ds-icon';
|
|
4
4
|
import { CodeSnippetWrapperSingle, BlockCodeWrapperSingle, LINE_HEIGHT_DEFAULT, FONT_SIZE_DEFAULT } from '../SingleCode/SingleCode.styles';
|
|
5
5
|
export var ContentIconWrapper = styled.div.withConfig({
|
|
6
6
|
displayName: "MultiCodestyles__ContentIconWrapper",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as copy from 'copy-to-clipboard';
|
|
3
|
-
import { DuplicateS } from '@synerise/ds-icon
|
|
3
|
+
import { DuplicateS } from '@synerise/ds-icon';
|
|
4
4
|
import CopyAction from '../../CopyAction/CopyAction';
|
|
5
5
|
import * as S from './SingleCode.styles';
|
|
6
6
|
import { FontSize } from '../../CodeSnippet.types';
|
|
@@ -15,7 +15,7 @@ var SingleCode = function SingleCode(_ref) {
|
|
|
15
15
|
className = _ref.className,
|
|
16
16
|
onCopy = _ref.onCopy;
|
|
17
17
|
var iconElement = React.useMemo(function () {
|
|
18
|
-
return React.createElement(CopyAction, {
|
|
18
|
+
return /*#__PURE__*/React.createElement(CopyAction, {
|
|
19
19
|
tooltipTitleHover: tooltipTitleHover,
|
|
20
20
|
tooltipTitleClick: tooltipTitleClick,
|
|
21
21
|
className: S.ICON_CLASSNAME,
|
|
@@ -23,14 +23,14 @@ var SingleCode = function SingleCode(_ref) {
|
|
|
23
23
|
copy(children);
|
|
24
24
|
onCopy && onCopy();
|
|
25
25
|
},
|
|
26
|
-
icon: React.createElement(DuplicateS, null),
|
|
26
|
+
icon: /*#__PURE__*/React.createElement(DuplicateS, null),
|
|
27
27
|
"data-testid": "ds-copy-code-snippet"
|
|
28
28
|
});
|
|
29
29
|
}, [children, tooltipTitleHover, tooltipTitleClick, onCopy]);
|
|
30
|
-
return React.createElement(S.CodeSnippetWrapperSingle, {
|
|
30
|
+
return /*#__PURE__*/React.createElement(S.CodeSnippetWrapperSingle, {
|
|
31
31
|
fontSize: fontSize,
|
|
32
32
|
className: className
|
|
33
|
-
}, React.createElement(S.ContentIconWrapper, null, React.createElement(S.BlockCodeWrapperSingle, {
|
|
33
|
+
}, /*#__PURE__*/React.createElement(S.ContentIconWrapper, null, /*#__PURE__*/React.createElement(S.BlockCodeWrapperSingle, {
|
|
34
34
|
fontSize: fontSize
|
|
35
35
|
}, children), iconElement));
|
|
36
36
|
};
|
|
@@ -2,11 +2,11 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
2
2
|
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
4
|
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
6
|
|
|
7
7
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
8
|
|
|
9
|
-
function _iterableToArrayLimit(arr, i) {
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
@@ -22,7 +22,9 @@ var CopyAction = function CopyAction(_ref) {
|
|
|
22
22
|
className = _ref.className,
|
|
23
23
|
_onClick = _ref.onClick,
|
|
24
24
|
icon = _ref.icon,
|
|
25
|
-
iconSize = _ref.iconSize
|
|
25
|
+
iconSize = _ref.iconSize,
|
|
26
|
+
_ref$timeToHideToolti = _ref.timeToHideTooltip,
|
|
27
|
+
timeToHideTooltip = _ref$timeToHideToolti === void 0 ? 3000 : _ref$timeToHideToolti;
|
|
26
28
|
|
|
27
29
|
var _React$useState = React.useState(false),
|
|
28
30
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -30,28 +32,37 @@ var CopyAction = function CopyAction(_ref) {
|
|
|
30
32
|
setHideHoverTooltip = _React$useState2[1];
|
|
31
33
|
|
|
32
34
|
var iconRef = React.useRef(null);
|
|
35
|
+
var timeoutClickRef = React.useRef(null);
|
|
36
|
+
React.useEffect(function () {
|
|
37
|
+
return function () {
|
|
38
|
+
timeoutClickRef.current && clearTimeout(timeoutClickRef.current);
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
33
41
|
useOnClickOutside(iconRef, function () {
|
|
34
42
|
if (hideHoverTooltip) {
|
|
35
43
|
setHideHoverTooltip(false);
|
|
44
|
+
timeoutClickRef.current && clearTimeout(timeoutClickRef.current);
|
|
36
45
|
}
|
|
37
46
|
});
|
|
38
47
|
|
|
39
48
|
var handleIconClickTooltip = function handleIconClickTooltip() {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
49
|
+
timeoutClickRef.current && clearTimeout(timeoutClickRef.current);
|
|
50
|
+
setHideHoverTooltip(true);
|
|
51
|
+
timeoutClickRef.current = setTimeout(function () {
|
|
52
|
+
setHideHoverTooltip(false);
|
|
53
|
+
}, 3000);
|
|
43
54
|
};
|
|
44
55
|
|
|
45
|
-
return React.createElement(Tooltip, {
|
|
56
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
46
57
|
title: tooltipTitleClick,
|
|
47
58
|
trigger: "click",
|
|
48
|
-
|
|
49
|
-
}, React.createElement(Tooltip, {
|
|
59
|
+
timeToHideAfterClick: timeToHideTooltip
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
50
61
|
title: tooltipTitleHover,
|
|
51
62
|
overlayStyle: hideHoverTooltip ? {
|
|
52
63
|
display: 'none'
|
|
53
64
|
} : undefined
|
|
54
|
-
}, React.createElement(S.IconWrapper, {
|
|
65
|
+
}, /*#__PURE__*/React.createElement(S.IconWrapper, {
|
|
55
66
|
ref: iconRef,
|
|
56
67
|
className: className,
|
|
57
68
|
onClick: function onClick(e) {
|
|
@@ -59,7 +70,7 @@ var CopyAction = function CopyAction(_ref) {
|
|
|
59
70
|
handleIconClickTooltip();
|
|
60
71
|
_onClick && _onClick();
|
|
61
72
|
}
|
|
62
|
-
}, React.createElement(Icon, {
|
|
73
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
63
74
|
component: icon,
|
|
64
75
|
size: iconSize || 24
|
|
65
76
|
}))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -22,7 +22,7 @@ var Highlight = function Highlight(_ref) {
|
|
|
22
22
|
React.useEffect(function () {
|
|
23
23
|
manageHighlight();
|
|
24
24
|
}, [manageHighlight]);
|
|
25
|
-
return React.createElement(S.Highlight, {
|
|
25
|
+
return /*#__PURE__*/React.createElement(S.Highlight, {
|
|
26
26
|
ref: elementRef,
|
|
27
27
|
style: style
|
|
28
28
|
}, children);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-code-snippet",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "CodeSnippet UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^0.
|
|
36
|
-
"@synerise/ds-icon": "^0.
|
|
37
|
-
"@synerise/ds-scrollbar": "^0.
|
|
38
|
-
"@synerise/ds-tooltip": "^0.
|
|
35
|
+
"@synerise/ds-button": "^0.16.1",
|
|
36
|
+
"@synerise/ds-icon": "^0.46.1",
|
|
37
|
+
"@synerise/ds-scrollbar": "^0.4.1",
|
|
38
|
+
"@synerise/ds-tooltip": "^0.11.1",
|
|
39
39
|
"copy-to-clipboard": "^3.3.1",
|
|
40
40
|
"highlight.js": "^11.2.0",
|
|
41
41
|
"react-animate-height": "^2.0.23"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@synerise/ds-core": "*",
|
|
45
45
|
"react": ">=16.9.0 < 17.0.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "14733fd96fcf0727a2baf45444e54e9a490d64f4"
|
|
48
48
|
}
|