@synerise/ds-code-snippet 0.3.73 → 0.3.75

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,22 @@
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.75](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@0.3.74...@synerise/ds-code-snippet@0.3.75) (2024-09-26)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-code-snippet
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.3.74](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@0.3.73...@synerise/ds-code-snippet@0.3.74) (2024-09-17)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-code-snippet
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.3.73](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@0.3.72...@synerise/ds-code-snippet@0.3.73) (2024-09-13)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-code-snippet
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { CodeSnippetProps } from './CodeSnippet.types';
3
3
  declare const CodeSnippet: React.FC<CodeSnippetProps>;
4
4
  export default CodeSnippet;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import InlineCode from './CodeTypes/InlineCode/InlineCode';
3
3
  import SingleCode from './CodeTypes/SingleCode/SingleCode';
4
4
  import MultiCode from './CodeTypes/MultiCode/MultiCode';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { LanguageHighlight } from './Highlight/Highlight.types';
3
3
  export declare enum FontSize {
4
4
  SMALL = 12,
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface InlineCodeProps {
3
3
  children?: string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import * as S from './InlineCode.styles';
3
3
 
4
4
  var InlineCode = function InlineCode(_ref) {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { CodeSnippetProps } from '../../CodeSnippet.types';
3
3
  declare const MultiCode: React.FC<CodeSnippetProps>;
4
4
  export default MultiCode;
@@ -1,8 +1,8 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
- import * as React from 'react';
3
+ import React from 'react';
4
4
  import AnimateHeight from 'react-animate-height';
5
- import * as copy from 'copy-to-clipboard';
5
+ import copy from 'copy-to-clipboard';
6
6
  import Icon, { DuplicateS, ArrowDownCircleM } from '@synerise/ds-icon';
7
7
  import Scrollbar from '@synerise/ds-scrollbar';
8
8
  import Highlight from '../../Highlight/Highlight';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FontSize } from '../../CodeSnippet.types';
3
3
  export interface SingleCodeProps {
4
4
  children?: string;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import * as copy from 'copy-to-clipboard';
1
+ import React from 'react';
2
+ import copy from 'copy-to-clipboard';
3
3
  import { DuplicateS } from '@synerise/ds-icon';
4
4
  import CopyAction from '../../CopyAction/CopyAction';
5
5
  import * as S from './SingleCode.styles';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { CopyActionProps } from './CopyAction.types';
3
3
  declare const CopyAction: React.FC<CopyActionProps>;
4
4
  export default CopyAction;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Tooltip from '@synerise/ds-tooltip/dist/Tooltip';
3
3
  import Icon from '@synerise/ds-icon';
4
4
  import { useOnClickOutside } from '@synerise/ds-utils';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export type CopyActionProps = {
3
3
  tooltipTitleHover: React.ReactNode | string;
4
4
  tooltipTitleClick: React.ReactNode | string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { HighlightProps } from './Highlight.types';
3
3
  declare const Highlight: React.FC<HighlightProps>;
4
4
  export default Highlight;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import hljs from 'highlight.js/lib/core';
3
3
  import * as S from './Highlight.styles';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-code-snippet",
3
- "version": "0.3.73",
3
+ "version": "0.3.75",
4
4
  "description": "CodeSnippet UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -25,7 +25,8 @@
25
25
  "prepublish": "npm run build",
26
26
  "test": "jest",
27
27
  "test:watch": "npm run test -- --watchAll",
28
- "types": "tsc --noEmit"
28
+ "types": "tsc --noEmit",
29
+ "upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
29
30
  },
30
31
  "sideEffects": [
31
32
  "dist/style/*",
@@ -33,11 +34,11 @@
33
34
  ],
34
35
  "types": "dist/index.d.ts",
35
36
  "dependencies": {
36
- "@synerise/ds-button": "^0.21.10",
37
- "@synerise/ds-icon": "^0.65.5",
38
- "@synerise/ds-scrollbar": "^0.11.10",
39
- "@synerise/ds-tooltip": "^0.14.40",
40
- "@synerise/ds-utils": "^0.29.2",
37
+ "@synerise/ds-button": "^0.21.12",
38
+ "@synerise/ds-icon": "^0.65.7",
39
+ "@synerise/ds-scrollbar": "^0.11.12",
40
+ "@synerise/ds-tooltip": "^0.14.42",
41
+ "@synerise/ds-utils": "^0.29.4",
41
42
  "copy-to-clipboard": "^3.3.1",
42
43
  "highlight.js": "^11.2.0",
43
44
  "react-animate-height": "^2.0.23"
@@ -47,5 +48,5 @@
47
48
  "react": ">=16.9.0 <= 17.0.2",
48
49
  "styled-components": "5.0.1"
49
50
  },
50
- "gitHead": "6f3231e4a9e0720ffee61b748488cecd590da6e6"
51
+ "gitHead": "fc06bd0f13401a57329fb92985b735de33108dbc"
51
52
  }