@team-monolith/cds 1.63.0 → 1.63.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.
@@ -10,6 +10,7 @@ import { $createHorizontalRuleNode, $isHorizontalRuleNode, HorizontalRuleNode, }
10
10
  import { $createTableCellNode, $createTableNode, $createTableRowNode, $isTableCellNode, $isTableNode, $isTableRowNode, TableCellHeaderStates, TableCellNode, TableNode, TableRowNode, } from "@lexical/table";
11
11
  import { $isParagraphNode, $isTextNode } from "lexical";
12
12
  import { $createImageNode, $isImageNode, ImageNode } from "../../nodes";
13
+ import { $isSheetInputNode, SheetInputNode } from "../../nodes/SheetInputNode";
13
14
  export const HR = {
14
15
  dependencies: [HorizontalRuleNode],
15
16
  export: (node) => {
@@ -173,6 +174,20 @@ const mapToTableCells = (textContent) => {
173
174
  }
174
175
  return match[1].split("|").map((text) => createTableCell(text));
175
176
  };
177
+ const SHEET_INPUT = {
178
+ type: "element",
179
+ dependencies: [SheetInputNode],
180
+ export: (node) => {
181
+ if (!$isSheetInputNode(node)) {
182
+ return null;
183
+ }
184
+ return "```\n" + node.getValue() + "\n```\n";
185
+ },
186
+ // replace는 사실 상 구현하지 않습니다.
187
+ // 따라서 regExp도 절대 검색되지 않는 값으로 설정합니다.
188
+ regExp: /a^/,
189
+ replace: () => { },
190
+ };
176
191
  export const CODLE_TRANSFORMERS = [
177
192
  TABLE,
178
193
  HR,
@@ -181,4 +196,5 @@ export const CODLE_TRANSFORMERS = [
181
196
  ...ELEMENT_TRANSFORMERS,
182
197
  ...TEXT_FORMAT_TRANSFORMERS,
183
198
  ...TEXT_MATCH_TRANSFORMERS,
199
+ SHEET_INPUT,
184
200
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.63.0",
3
+ "version": "1.63.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,