@synerise/ds-code-snippet 1.1.39 → 1.1.41
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,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
|
+
## [1.1.41](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@1.1.40...@synerise/ds-code-snippet@1.1.41) (2026-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-code-snippet
|
|
9
|
+
|
|
10
|
+
## [1.1.40](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@1.1.39...@synerise/ds-code-snippet@1.1.40) (2026-04-01)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-code-snippet
|
|
13
|
+
|
|
6
14
|
## [1.1.39](https://github.com/Synerise/synerise-design/compare/@synerise/ds-code-snippet@1.1.38...@synerise/ds-code-snippet@1.1.39) (2026-03-24)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-code-snippet
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
2
|
import Button from "@synerise/ds-button";
|
|
3
3
|
import { IconContainer } from "@synerise/ds-icon";
|
|
4
|
-
import {
|
|
4
|
+
import { BlockCodeWrapperSingle, CodeSnippetWrapperSingle, LINE_HEIGHT_DEFAULT, StyledCopyIcon, FONT_SIZE_DEFAULT } from "../SingleCode/SingleCode.styles.js";
|
|
5
5
|
const ContentIconWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
6
6
|
displayName: "MultiCodestyles__ContentIconWrapper",
|
|
7
7
|
componentId: "sc-1u5vxm9-0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-code-snippet",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.41",
|
|
4
4
|
"description": "CodeSnippet UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -18,10 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "vite build",
|
|
21
|
-
"build:css": "node ../../../scripts/style/less.js",
|
|
22
|
-
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
23
21
|
"build:watch": "vite build --watch",
|
|
24
|
-
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
25
22
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
26
23
|
"prepublish": "pnpm run build",
|
|
27
24
|
"test": "vitest run",
|
|
@@ -36,12 +33,12 @@
|
|
|
36
33
|
],
|
|
37
34
|
"types": "dist/index.d.ts",
|
|
38
35
|
"dependencies": {
|
|
39
|
-
"@synerise/ds-button": "^1.5.
|
|
40
|
-
"@synerise/ds-copy-icon": "^1.2.
|
|
41
|
-
"@synerise/ds-icon": "^1.15.
|
|
42
|
-
"@synerise/ds-scrollbar": "^1.2.
|
|
43
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
44
|
-
"@synerise/ds-utils": "^1.
|
|
36
|
+
"@synerise/ds-button": "^1.5.20",
|
|
37
|
+
"@synerise/ds-copy-icon": "^1.2.4",
|
|
38
|
+
"@synerise/ds-icon": "^1.15.3",
|
|
39
|
+
"@synerise/ds-scrollbar": "^1.2.19",
|
|
40
|
+
"@synerise/ds-tooltip": "^1.4.12",
|
|
41
|
+
"@synerise/ds-utils": "^1.8.0",
|
|
45
42
|
"highlight.js": "^10.7.2",
|
|
46
43
|
"react-animate-height": "^2.0.23"
|
|
47
44
|
},
|
|
@@ -54,5 +51,5 @@
|
|
|
54
51
|
"react": ">=16.9.0 <= 18.3.1",
|
|
55
52
|
"styled-components": "^5.3.3"
|
|
56
53
|
},
|
|
57
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "ce3c6d75efe8573a2b274853636f959b75a6cd32"
|
|
58
55
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import CodeSnippet from "./CodeSnippet.js";
|
|
4
|
-
import { FontSize, CodeSnippetType } from "./CodeSnippet.types.js";
|
|
5
|
-
const FIGMA_URL = "https://www.figma.com/design/fsSZONXpVvtrDsCgtu01Jb/Synerise-Design-System?node-id=725:13723&m=dev";
|
|
6
|
-
figma.connect(CodeSnippet, FIGMA_URL, {
|
|
7
|
-
variant: {
|
|
8
|
-
Size: "Small"
|
|
9
|
-
},
|
|
10
|
-
example: () => /* @__PURE__ */ jsx(CodeSnippet, { type: CodeSnippetType.SINGLE_LINE, fontSize: FontSize.SMALL, children: "code here" })
|
|
11
|
-
});
|
|
12
|
-
figma.connect(CodeSnippet, FIGMA_URL, {
|
|
13
|
-
variant: {
|
|
14
|
-
Size: "Large"
|
|
15
|
-
},
|
|
16
|
-
example: () => /* @__PURE__ */ jsx(CodeSnippet, { type: CodeSnippetType.SINGLE_LINE, fontSize: FontSize.MEDIUM, children: "code here" })
|
|
17
|
-
});
|
|
18
|
-
const FIGMA_URL_INLINE = "https://www.figma.com/design/fsSZONXpVvtrDsCgtu01Jb/Synerise-Design-System?node-id=725:13620&m=dev";
|
|
19
|
-
figma.connect(CodeSnippet, FIGMA_URL_INLINE, {
|
|
20
|
-
example: () => /* @__PURE__ */ jsx(CodeSnippet, { type: CodeSnippetType.INLINE, children: "code here" })
|
|
21
|
-
});
|
|
22
|
-
const FIGMA_URL_MULTI = "https://www.figma.com/design/fsSZONXpVvtrDsCgtu01Jb/Synerise-Design-System?node-id=725:13726&m=dev";
|
|
23
|
-
figma.connect(CodeSnippet, FIGMA_URL_MULTI, {
|
|
24
|
-
example: () => /* @__PURE__ */ jsx(CodeSnippet, { type: CodeSnippetType.MULTI_LINE, colorSyntax: true, children: "code here" })
|
|
25
|
-
});
|