@coze-editor/editor 0.1.0-alpha.270604 → 0.1.0-alpha.2fd00b

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.
@@ -0,0 +1,3 @@
1
+ // src/language-sql.ts
2
+ export * from "@coze-editor/code-language-sql";
3
+ //# sourceMappingURL=language-sql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/language-sql.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/code-language-sql';\n"],"mappings":";AAGA,cAAc;","names":[]}
@@ -0,0 +1,7 @@
1
+ // src/preset-chat.ts
2
+ export * from "@coze-editor/preset-chat";
3
+ import { default as default2 } from "@coze-editor/preset-chat";
4
+ export {
5
+ default2 as default
6
+ };
7
+ //# sourceMappingURL=preset-chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/preset-chat.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/preset-chat';\nexport { default } from '@coze-editor/preset-chat';\n"],"mappings":";AAGA,cAAc;AACd,SAAS,WAAAA,gBAAe;","names":["default"]}
@@ -0,0 +1,3 @@
1
+ // src/react-merge.ts
2
+ export * from "@coze-editor/react-merge";
3
+ //# sourceMappingURL=react-merge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/react-merge.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/react-merge';\n"],"mappings":";AAGA,cAAc;","names":[]}
package/dist/esm/react.js CHANGED
@@ -2,5 +2,4 @@
2
2
  export * from "@coze-editor/react";
3
3
  export * from "@coze-editor/react-components";
4
4
  export * from "@coze-editor/react-hooks";
5
- export * from "@coze-editor/react-merge";
6
5
  //# sourceMappingURL=react.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/react';\nexport * from '@coze-editor/react-components';\nexport * from '@coze-editor/react-hooks';\nexport * from '@coze-editor/react-merge';\n"],"mappings":";AAGA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/react.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/react';\nexport * from '@coze-editor/react-components';\nexport * from '@coze-editor/react-hooks';\n"],"mappings":";AAGA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
package/dist/index.d.mts CHANGED
@@ -4,16 +4,18 @@ export * from '@coze-editor/extensions';
4
4
  import '@coze-editor/code-language-json';
5
5
  import '@coze-editor/code-language-python';
6
6
  import '@coze-editor/code-language-shell';
7
+ import '@coze-editor/code-language-sql';
7
8
  import '@coze-editor/code-language-typescript/dist/esm/worker.js';
8
9
  import '@coze-editor/code-language-typescript';
10
+ import '@coze-editor/preset-chat';
9
11
  import '@coze-editor/preset-code';
10
12
  import '@coze-editor/preset-expression';
11
13
  import '@coze-editor/preset-none';
12
14
  import '@coze-editor/preset-prompt';
13
15
  import '@coze-editor/preset-universal';
14
16
  import '@coze-editor/preset-variable';
17
+ import '@coze-editor/react-merge';
15
18
  import '@coze-editor/react';
16
19
  import '@coze-editor/react-components';
17
20
  import '@coze-editor/react-hooks';
18
- import '@coze-editor/react-merge';
19
21
  import '@coze-editor/vscode';
package/dist/index.d.ts CHANGED
@@ -4,16 +4,18 @@ export * from '@coze-editor/extensions';
4
4
  import '@coze-editor/code-language-json';
5
5
  import '@coze-editor/code-language-python';
6
6
  import '@coze-editor/code-language-shell';
7
+ import '@coze-editor/code-language-sql';
7
8
  import '@coze-editor/code-language-typescript/dist/esm/worker.js';
8
9
  import '@coze-editor/code-language-typescript';
10
+ import '@coze-editor/preset-chat';
9
11
  import '@coze-editor/preset-code';
10
12
  import '@coze-editor/preset-expression';
11
13
  import '@coze-editor/preset-none';
12
14
  import '@coze-editor/preset-prompt';
13
15
  import '@coze-editor/preset-universal';
14
16
  import '@coze-editor/preset-variable';
17
+ import '@coze-editor/react-merge';
15
18
  import '@coze-editor/react';
16
19
  import '@coze-editor/react-components';
17
20
  import '@coze-editor/react-hooks';
18
- import '@coze-editor/react-merge';
19
21
  import '@coze-editor/vscode';
@@ -0,0 +1 @@
1
+ export * from '@coze-editor/code-language-sql';
@@ -0,0 +1 @@
1
+ export * from '@coze-editor/code-language-sql';
@@ -0,0 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/language-sql.ts
17
+ var language_sql_exports = {};
18
+ module.exports = __toCommonJS(language_sql_exports);
19
+ __reExport(language_sql_exports, require("@coze-editor/code-language-sql"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("@coze-editor/code-language-sql")
23
+ });
24
+ //# sourceMappingURL=language-sql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/language-sql.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/code-language-sql';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;AAGA,iCAAc,2CAHd;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from '@coze-editor/preset-chat';
2
+ export { default } from '@coze-editor/preset-chat';
@@ -0,0 +1,2 @@
1
+ export * from '@coze-editor/preset-chat';
2
+ export { default } from '@coze-editor/preset-chat';
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/preset-chat.ts
31
+ var preset_chat_exports = {};
32
+ __export(preset_chat_exports, {
33
+ default: () => import_preset_chat.default
34
+ });
35
+ module.exports = __toCommonJS(preset_chat_exports);
36
+ __reExport(preset_chat_exports, require("@coze-editor/preset-chat"), module.exports);
37
+ var import_preset_chat = __toESM(require("@coze-editor/preset-chat"));
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ ...require("@coze-editor/preset-chat")
41
+ });
42
+ //# sourceMappingURL=preset-chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/preset-chat.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/preset-chat';\nexport { default } from '@coze-editor/preset-chat';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,gCAAc,qCAHd;AAIA,yBAAwB;","names":[]}
@@ -0,0 +1 @@
1
+ export * from '@coze-editor/react-merge';
@@ -0,0 +1 @@
1
+ export * from '@coze-editor/react-merge';
@@ -0,0 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/react-merge.ts
17
+ var react_merge_exports = {};
18
+ module.exports = __toCommonJS(react_merge_exports);
19
+ __reExport(react_merge_exports, require("@coze-editor/react-merge"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("@coze-editor/react-merge")
23
+ });
24
+ //# sourceMappingURL=react-merge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/react-merge.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/react-merge';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;AAGA,gCAAc,qCAHd;","names":[]}
package/dist/react.d.mts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from '@coze-editor/react';
2
2
  export * from '@coze-editor/react-components';
3
3
  export * from '@coze-editor/react-hooks';
4
- export * from '@coze-editor/react-merge';
package/dist/react.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from '@coze-editor/react';
2
2
  export * from '@coze-editor/react-components';
3
3
  export * from '@coze-editor/react-hooks';
4
- export * from '@coze-editor/react-merge';
package/dist/react.js CHANGED
@@ -19,12 +19,10 @@ module.exports = __toCommonJS(react_exports);
19
19
  __reExport(react_exports, require("@coze-editor/react"), module.exports);
20
20
  __reExport(react_exports, require("@coze-editor/react-components"), module.exports);
21
21
  __reExport(react_exports, require("@coze-editor/react-hooks"), module.exports);
22
- __reExport(react_exports, require("@coze-editor/react-merge"), module.exports);
23
22
  // Annotate the CommonJS export names for ESM import in node:
24
23
  0 && (module.exports = {
25
24
  ...require("@coze-editor/react"),
26
25
  ...require("@coze-editor/react-components"),
27
- ...require("@coze-editor/react-hooks"),
28
- ...require("@coze-editor/react-merge")
26
+ ...require("@coze-editor/react-hooks")
29
27
  });
30
28
  //# sourceMappingURL=react.js.map
package/dist/react.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/react';\nexport * from '@coze-editor/react-components';\nexport * from '@coze-editor/react-hooks';\nexport * from '@coze-editor/react-merge';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;AAGA,0BAAc,+BAHd;AAIA,0BAAc,0CAJd;AAKA,0BAAc,qCALd;AAMA,0BAAc,qCANd;","names":[]}
1
+ {"version":3,"sources":["../src/react.ts"],"sourcesContent":["// Copyright (c) 2025 coze-dev\n// SPDX-License-Identifier: MIT\n\nexport * from '@coze-editor/react';\nexport * from '@coze-editor/react-components';\nexport * from '@coze-editor/react-hooks';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;AAGA,0BAAc,+BAHd;AAIA,0BAAc,0CAJd;AAKA,0BAAc,qCALd;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coze-editor/editor",
3
- "version": "0.1.0-alpha.270604",
3
+ "version": "0.1.0-alpha.2fd00b",
4
4
  "description": "editor",
5
5
  "license": "MIT",
6
6
  "author": "fengzilong",
@@ -22,6 +22,11 @@
22
22
  "require": "./dist/react.js",
23
23
  "import": "./dist/esm/react.js"
24
24
  },
25
+ "./react-merge": {
26
+ "types": "./dist/react-merge.d.ts",
27
+ "require": "./dist/react-merge.js",
28
+ "import": "./dist/esm/react-merge.js"
29
+ },
25
30
  "./vscode": {
26
31
  "types": "./dist/vscode.d.ts",
27
32
  "require": "./dist/vscode.js",
@@ -52,11 +57,21 @@
52
57
  "require": "./dist/language-python.js",
53
58
  "import": "./dist/esm/language-python.js"
54
59
  },
60
+ "./language-sql": {
61
+ "types": "./dist/language-sql.d.ts",
62
+ "require": "./dist/language-sql.js",
63
+ "import": "./dist/esm/language-sql.js"
64
+ },
55
65
  "./preset-universal": {
56
66
  "types": "./dist/preset-universal.d.ts",
57
67
  "require": "./dist/preset-universal.js",
58
68
  "import": "./dist/esm/preset-universal.js"
59
69
  },
70
+ "./preset-chat": {
71
+ "types": "./dist/preset-chat.d.ts",
72
+ "require": "./dist/preset-chat.js",
73
+ "import": "./dist/esm/preset-chat.js"
74
+ },
60
75
  "./preset-none": {
61
76
  "types": "./dist/preset-none.d.ts",
62
77
  "require": "./dist/preset-none.js",
@@ -95,32 +110,34 @@
95
110
  },
96
111
  "dependencies": {
97
112
  "@codemirror/commands": "^6.3.3",
98
- "@coze-editor/code-language-json": "0.1.0-alpha.270604",
99
- "@coze-editor/code-language-python": "0.1.0-alpha.270604",
100
- "@coze-editor/code-language-shared": "0.1.0-alpha.270604",
101
- "@coze-editor/code-language-shell": "0.1.0-alpha.270604",
102
- "@coze-editor/code-language-typescript": "0.1.0-alpha.270604",
103
- "@coze-editor/core": "0.1.0-alpha.270604",
104
- "@coze-editor/extension-json-ast": "0.1.0-alpha.270604",
105
- "@coze-editor/extension-json-empty-string-value-completion": "0.1.0-alpha.270604",
106
- "@coze-editor/extension-json-hover": "0.1.0-alpha.270604",
107
- "@coze-editor/extension-json-unnecessary-properties": "0.1.0-alpha.270604",
108
- "@coze-editor/extension-regexp-decorator": "0.1.0-alpha.270604",
109
- "@coze-editor/extensions": "0.1.0-alpha.270604",
110
- "@coze-editor/preset-code": "0.1.0-alpha.270604",
111
- "@coze-editor/preset-expression": "0.1.0-alpha.270604",
112
- "@coze-editor/preset-none": "0.1.0-alpha.270604",
113
- "@coze-editor/preset-prompt": "0.1.0-alpha.270604",
114
- "@coze-editor/preset-universal": "0.1.0-alpha.270604",
115
- "@coze-editor/preset-variable": "0.1.0-alpha.270604",
116
- "@coze-editor/react": "0.1.0-alpha.270604",
117
- "@coze-editor/react-components": "0.1.0-alpha.270604",
118
- "@coze-editor/react-hooks": "0.1.0-alpha.270604",
119
- "@coze-editor/react-merge": "0.1.0-alpha.270604",
120
- "@coze-editor/utils": "0.1.0-alpha.270604",
121
- "@coze-editor/vscode": "0.1.0-alpha.270604",
122
- "@coze-editor/vue": "0.1.0-alpha.270604",
123
- "@coze-editor/vue-components": "0.1.0-alpha.270604"
113
+ "@coze-editor/code-language-json": "0.1.0-alpha.2fd00b",
114
+ "@coze-editor/code-language-python": "0.1.0-alpha.2fd00b",
115
+ "@coze-editor/code-language-shared": "0.1.0-alpha.2fd00b",
116
+ "@coze-editor/code-language-shell": "0.1.0-alpha.2fd00b",
117
+ "@coze-editor/code-language-sql": "0.1.0-alpha.2fd00b",
118
+ "@coze-editor/code-language-typescript": "0.1.0-alpha.2fd00b",
119
+ "@coze-editor/core": "0.1.0-alpha.2fd00b",
120
+ "@coze-editor/extension-json-ast": "0.1.0-alpha.2fd00b",
121
+ "@coze-editor/extension-json-empty-string-value-completion": "0.1.0-alpha.2fd00b",
122
+ "@coze-editor/extension-json-hover": "0.1.0-alpha.2fd00b",
123
+ "@coze-editor/extension-json-unnecessary-properties": "0.1.0-alpha.2fd00b",
124
+ "@coze-editor/extension-regexp-decorator": "0.1.0-alpha.2fd00b",
125
+ "@coze-editor/extensions": "0.1.0-alpha.2fd00b",
126
+ "@coze-editor/preset-chat": "0.1.0-alpha.2fd00b",
127
+ "@coze-editor/preset-code": "0.1.0-alpha.2fd00b",
128
+ "@coze-editor/preset-expression": "0.1.0-alpha.2fd00b",
129
+ "@coze-editor/preset-none": "0.1.0-alpha.2fd00b",
130
+ "@coze-editor/preset-prompt": "0.1.0-alpha.2fd00b",
131
+ "@coze-editor/preset-universal": "0.1.0-alpha.2fd00b",
132
+ "@coze-editor/preset-variable": "0.1.0-alpha.2fd00b",
133
+ "@coze-editor/react": "0.1.0-alpha.2fd00b",
134
+ "@coze-editor/react-components": "0.1.0-alpha.2fd00b",
135
+ "@coze-editor/react-hooks": "0.1.0-alpha.2fd00b",
136
+ "@coze-editor/react-merge": "0.1.0-alpha.2fd00b",
137
+ "@coze-editor/utils": "0.1.0-alpha.2fd00b",
138
+ "@coze-editor/vscode": "0.1.0-alpha.2fd00b",
139
+ "@coze-editor/vue": "0.1.0-alpha.2fd00b",
140
+ "@coze-editor/vue-components": "0.1.0-alpha.2fd00b"
124
141
  },
125
142
  "devDependencies": {
126
143
  "@codemirror/state": "^6.4.1",
@@ -140,8 +157,8 @@
140
157
  "peerDependencies": {
141
158
  "@codemirror/state": "^6.4.1",
142
159
  "@codemirror/view": "^6.26.1",
143
- "react": "~18.2.0",
144
- "react-dom": "~18.2.0"
160
+ "react": ">=16.8",
161
+ "react-dom": ">=16.8"
145
162
  },
146
163
  "publishConfig": {
147
164
  "access": "public",