@dextinity/cli 10.2.0 → 11.0.0-canary-20260827085140

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.
@@ -52,6 +52,8 @@ var commander_1 = require("commander");
52
52
  var promises_1 = require("fs/promises");
53
53
  var prettier_1 = require("prettier");
54
54
  var content = "";
55
+ var isTipTapNodeTypeUsed = false;
56
+ var tipTapNodeType = "export interface TipTapMark {\n type: string;\n attrs?: Record<string, unknown>;\n}\n\nexport interface TipTapNode {\n type: string;\n attrs?: Record<string, unknown>;\n content?: TipTapNode[];\n marks?: TipTapMark[];\n text?: string;\n}\n";
55
57
  function writeFieldType(field, blockNamePostfix) {
56
58
  if (field.kind === "String") {
57
59
  content += "string";
@@ -78,7 +80,8 @@ function writeFieldType(field, blockNamePostfix) {
78
80
  }
79
81
  }
80
82
  else if (field.kind === "TipTapRichTextBlock") {
81
- content += "unknown";
83
+ isTipTapNodeTypeUsed = true;
84
+ content += "TipTapNode";
82
85
  }
83
86
  else if (field.kind === "Enum") {
84
87
  var enumType = "\"".concat(field.enum.join('" | "'), "\"");
@@ -176,6 +179,9 @@ var generateBlockTypes = new commander_1.Command("generate-block-types")
176
179
  });
177
180
  }
178
181
  content += generateAllBlockNames(blockMeta);
182
+ if (isTipTapNodeTypeUsed) {
183
+ content = "".concat(tipTapNodeType, "\n").concat(content);
184
+ }
179
185
  return [4 /*yield*/, (0, prettier_1.resolveConfig)(process.cwd())];
180
186
  case 2:
181
187
  prettierOptions = _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dextinity/cli",
3
- "version": "10.2.0",
3
+ "version": "11.0.0-canary-20260827085140",
4
4
  "description": "A collection of CLI tools for Dextinity projects",
5
5
  "repository": {
6
6
  "directory": "packages/cli",
@@ -33,7 +33,7 @@
33
33
  "rimraf": "^6.1.2",
34
34
  "typescript": "^5.9.3",
35
35
  "vitest": "^4.1.8",
36
- "@dextinity/eslint-config": "10.2.0"
36
+ "@dextinity/eslint-config": "11.0.0-canary-20260827085140"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=22.0.0"