@team-monolith/cds 1.105.2 → 1.107.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.
@@ -3,6 +3,7 @@ import "@emotion/react";
3
3
  interface CodleFontFamilies {
4
4
  ui: string;
5
5
  title: string;
6
+ code: string;
6
7
  }
7
8
 
8
9
  interface CodleColors {
@@ -9,6 +9,7 @@ export const light = {
9
9
  fontFamily: {
10
10
  ui: FONT.pretendard,
11
11
  title: FONT.naumSquareNeo,
12
+ code: FONT.d2Coding,
12
13
  },
13
14
  color: {
14
15
  background: {
@@ -158,6 +159,7 @@ export const dark = {
158
159
  fontFamily: {
159
160
  ui: FONT.pretendard,
160
161
  title: FONT.naumSquareNeo,
162
+ code: FONT.d2Coding,
161
163
  },
162
164
  color: {
163
165
  background: {
@@ -193,7 +193,8 @@ const CoverTitle = styled("h1", {
193
193
  const BookGradient = styled.div `
194
194
  width: 200px;
195
195
  height: ${BOOK_HEIGHT}px;
196
- background: linear-gradient(
196
+ background:
197
+ linear-gradient(
197
198
  180deg,
198
199
  rgba(255, 255, 255, 0) 0%,
199
200
  rgba(0, 0, 0, 0.75) 100%
@@ -1,4 +1,5 @@
1
1
  export declare const FONT: {
2
2
  pretendard: string;
3
3
  naumSquareNeo: string;
4
+ d2Coding: string;
4
5
  };
@@ -1,4 +1,5 @@
1
1
  export const FONT = {
2
2
  pretendard: "Pretendard",
3
3
  naumSquareNeo: "NanumSquareNeo",
4
+ d2Coding: "D2Coding",
4
5
  };
@@ -29,7 +29,7 @@ export class ColoredQuoteNode extends QuoteNode {
29
29
  if (prevNode.__color !== this.__color) {
30
30
  return true;
31
31
  }
32
- return super.updateDOM(prevNode, dom);
32
+ return super.updateDOM(this, dom);
33
33
  }
34
34
  static importJSON(serializedNode) {
35
35
  const node = $createColoredQuoteNode(serializedNode.color);
@@ -226,7 +226,7 @@ export function getTheme(theme, editable) {
226
226
  color: ${theme.color.foreground.neutralBase};
227
227
 
228
228
  /* Mono/Paragraph/14px-Rg */
229
- font-family: D2Coding, consolas, monospace;
229
+ font-family: ${theme.fontFamily.code}, consolas, monospace;
230
230
  font-size: 14px;
231
231
  font-style: normal;
232
232
  font-weight: 400;
@@ -240,7 +240,7 @@ export function getTheme(theme, editable) {
240
240
 
241
241
  color: ${theme.color.foreground.neutralBase};
242
242
  /* Mono/Paragraph/14px-Rg */
243
- font-family: D2Coding, consolas, monospace;
243
+ font-family: ${theme.fontFamily.code}, consolas, monospace;
244
244
  `,
245
245
  underline: css `
246
246
  text-decoration: underline;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.105.2",
3
+ "version": "1.107.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,
@@ -8,14 +8,14 @@
8
8
  "@emotion/css": "^11.11.2",
9
9
  "@emotion/react": "^11.8.2",
10
10
  "@emotion/styled": "^11.8.1",
11
- "@lexical/react": "^0.17.1",
11
+ "@lexical/react": "^0.32.1",
12
12
  "@mui/material": "^5.13.6",
13
13
  "@types/node": "^16.11.26",
14
14
  "@types/react": "^18.2.28",
15
15
  "@types/react-dom": "^18.2.13",
16
16
  "framer-motion": "^11.3.19",
17
17
  "hex-to-css-filter": "^5.4.0",
18
- "lexical": "^0.17.1",
18
+ "lexical": "^0.32.1",
19
19
  "lodash": "^4.17.21",
20
20
  "moment": "^2.30.1",
21
21
  "react": "^18.2.0",