@coze-editor/preset-code 0.1.0-alpha.0fd19e → 0.1.0-alpha.270604
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/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/package.json +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _codemirror_view from '@codemirror/view';
|
|
2
2
|
import * as _codemirror_state from '@codemirror/state';
|
|
3
3
|
import { Extension } from '@codemirror/state';
|
|
4
|
-
import * as _coze_editor_core_plugins from '@coze-editor/core-plugins';
|
|
5
4
|
import * as _coze_editor_core from '@coze-editor/core';
|
|
6
5
|
import { InferEditorAPIFromPlugins } from '@coze-editor/core';
|
|
7
6
|
import { LanguageConfig, Transformer } from '@coze-editor/code-language-shared';
|
|
@@ -90,7 +89,14 @@ declare const createTheme: ({ variant, settings, styles }: Theme) => Extension;
|
|
|
90
89
|
|
|
91
90
|
declare const transformerCreator: (processor: (text: Text) => Text) => Transformer;
|
|
92
91
|
|
|
93
|
-
declare const preset: (_coze_editor_core.ExtensionPluginSpec | _coze_editor_core.OptionPluginSpec<"fontSize", number> | _coze_editor_core.OptionPluginSpec<"placeholder", string | HTMLElement> | _coze_editor_core.OptionPluginSpec<"readOnly", boolean> | _coze_editor_core.OptionPluginSpec<"editable", boolean> | _coze_editor_core.OptionPluginSpec<"lineWrapping", boolean> | _coze_editor_core.OptionPluginSpec<"height", string | number> | _coze_editor_core.OptionPluginSpec<"minHeight", string | number> | _coze_editor_core.OptionPluginSpec<"maxHeight", string | number> | _coze_editor_core.APIPluginSpec<"getValue", [], string> | _coze_editor_core.APIPluginSpec<"setValue", [value: string], void> | _coze_editor_core.APIPluginSpec<"replaceText", [options:
|
|
92
|
+
declare const preset: (_coze_editor_core.ExtensionPluginSpec | _coze_editor_core.OptionPluginSpec<"fontSize", number> | _coze_editor_core.OptionPluginSpec<"placeholder", string | HTMLElement> | _coze_editor_core.OptionPluginSpec<"readOnly", boolean> | _coze_editor_core.OptionPluginSpec<"editable", boolean> | _coze_editor_core.OptionPluginSpec<"lineWrapping", boolean> | _coze_editor_core.OptionPluginSpec<"height", string | number> | _coze_editor_core.OptionPluginSpec<"minHeight", string | number> | _coze_editor_core.OptionPluginSpec<"maxHeight", string | number> | _coze_editor_core.APIPluginSpec<"getValue", [], string> | _coze_editor_core.APIPluginSpec<"setValue", [value: string], void> | _coze_editor_core.APIPluginSpec<"replaceText", [options: {
|
|
93
|
+
from: number;
|
|
94
|
+
to: number;
|
|
95
|
+
text: string;
|
|
96
|
+
cursorOffset?: number;
|
|
97
|
+
scrollIntoView?: boolean;
|
|
98
|
+
userEvent?: string;
|
|
99
|
+
}], void> | _coze_editor_core.APIPluginSpec<"getCursorPosition", [], number> | _coze_editor_core.APIPluginSpec<"setCursorPosition", [pos: number], void> | _coze_editor_core.APIPluginSpec<"focus", [], void> | _coze_editor_core.APIPluginSpec<"blur", [], void> | _coze_editor_core.APIPluginSpec<"disableKeybindings", [keys: string[]], void> | _coze_editor_core.APIPluginSpec<"updateASTDecorations", [], void> | _coze_editor_core.APIPluginSpec<"undo", [], void> | _coze_editor_core.APIPluginSpec<"redo", [], void> | _coze_editor_core.APIPluginSpec<"transformTextInSelection", [transformer: (text: string) => string | undefined], void> | _coze_editor_core.APIPluginSpec<"getSelection", [], {
|
|
94
100
|
from: number;
|
|
95
101
|
to: number;
|
|
96
102
|
anchor: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _codemirror_view from '@codemirror/view';
|
|
2
2
|
import * as _codemirror_state from '@codemirror/state';
|
|
3
3
|
import { Extension } from '@codemirror/state';
|
|
4
|
-
import * as _coze_editor_core_plugins from '@coze-editor/core-plugins';
|
|
5
4
|
import * as _coze_editor_core from '@coze-editor/core';
|
|
6
5
|
import { InferEditorAPIFromPlugins } from '@coze-editor/core';
|
|
7
6
|
import { LanguageConfig, Transformer } from '@coze-editor/code-language-shared';
|
|
@@ -90,7 +89,14 @@ declare const createTheme: ({ variant, settings, styles }: Theme) => Extension;
|
|
|
90
89
|
|
|
91
90
|
declare const transformerCreator: (processor: (text: Text) => Text) => Transformer;
|
|
92
91
|
|
|
93
|
-
declare const preset: (_coze_editor_core.ExtensionPluginSpec | _coze_editor_core.OptionPluginSpec<"fontSize", number> | _coze_editor_core.OptionPluginSpec<"placeholder", string | HTMLElement> | _coze_editor_core.OptionPluginSpec<"readOnly", boolean> | _coze_editor_core.OptionPluginSpec<"editable", boolean> | _coze_editor_core.OptionPluginSpec<"lineWrapping", boolean> | _coze_editor_core.OptionPluginSpec<"height", string | number> | _coze_editor_core.OptionPluginSpec<"minHeight", string | number> | _coze_editor_core.OptionPluginSpec<"maxHeight", string | number> | _coze_editor_core.APIPluginSpec<"getValue", [], string> | _coze_editor_core.APIPluginSpec<"setValue", [value: string], void> | _coze_editor_core.APIPluginSpec<"replaceText", [options:
|
|
92
|
+
declare const preset: (_coze_editor_core.ExtensionPluginSpec | _coze_editor_core.OptionPluginSpec<"fontSize", number> | _coze_editor_core.OptionPluginSpec<"placeholder", string | HTMLElement> | _coze_editor_core.OptionPluginSpec<"readOnly", boolean> | _coze_editor_core.OptionPluginSpec<"editable", boolean> | _coze_editor_core.OptionPluginSpec<"lineWrapping", boolean> | _coze_editor_core.OptionPluginSpec<"height", string | number> | _coze_editor_core.OptionPluginSpec<"minHeight", string | number> | _coze_editor_core.OptionPluginSpec<"maxHeight", string | number> | _coze_editor_core.APIPluginSpec<"getValue", [], string> | _coze_editor_core.APIPluginSpec<"setValue", [value: string], void> | _coze_editor_core.APIPluginSpec<"replaceText", [options: {
|
|
93
|
+
from: number;
|
|
94
|
+
to: number;
|
|
95
|
+
text: string;
|
|
96
|
+
cursorOffset?: number;
|
|
97
|
+
scrollIntoView?: boolean;
|
|
98
|
+
userEvent?: string;
|
|
99
|
+
}], void> | _coze_editor_core.APIPluginSpec<"getCursorPosition", [], number> | _coze_editor_core.APIPluginSpec<"setCursorPosition", [pos: number], void> | _coze_editor_core.APIPluginSpec<"focus", [], void> | _coze_editor_core.APIPluginSpec<"blur", [], void> | _coze_editor_core.APIPluginSpec<"disableKeybindings", [keys: string[]], void> | _coze_editor_core.APIPluginSpec<"updateASTDecorations", [], void> | _coze_editor_core.APIPluginSpec<"undo", [], void> | _coze_editor_core.APIPluginSpec<"redo", [], void> | _coze_editor_core.APIPluginSpec<"transformTextInSelection", [transformer: (text: string) => string | undefined], void> | _coze_editor_core.APIPluginSpec<"getSelection", [], {
|
|
94
100
|
from: number;
|
|
95
101
|
to: number;
|
|
96
102
|
anchor: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coze-editor/preset-code",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.270604",
|
|
4
4
|
"description": "preset-code",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "fengzilong",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@codemirror/autocomplete": "^6.18.0",
|
|
26
26
|
"@codemirror/language": "^6.10.1",
|
|
27
|
-
"@coze-editor/core": "0.1.0-alpha.
|
|
28
|
-
"@coze-editor/core-plugins": "0.1.0-alpha.
|
|
29
|
-
"@coze-editor/extension-completion-icons": "0.1.0-alpha.
|
|
30
|
-
"@coze-editor/extension-links": "0.1.0-alpha.
|
|
31
|
-
"@coze-editor/extension-lint": "0.1.0-alpha.
|
|
32
|
-
"@coze-editor/extension-scrollbar": "0.1.0-alpha.
|
|
33
|
-
"@coze-editor/extensions": "0.1.0-alpha.
|
|
34
|
-
"@coze-editor/preset-universal": "0.1.0-alpha.
|
|
35
|
-
"@coze-editor/utils": "0.1.0-alpha.
|
|
36
|
-
"@coze-editor/vscode": "0.1.0-alpha.
|
|
27
|
+
"@coze-editor/core": "0.1.0-alpha.270604",
|
|
28
|
+
"@coze-editor/core-plugins": "0.1.0-alpha.270604",
|
|
29
|
+
"@coze-editor/extension-completion-icons": "0.1.0-alpha.270604",
|
|
30
|
+
"@coze-editor/extension-links": "0.1.0-alpha.270604",
|
|
31
|
+
"@coze-editor/extension-lint": "0.1.0-alpha.270604",
|
|
32
|
+
"@coze-editor/extension-scrollbar": "0.1.0-alpha.270604",
|
|
33
|
+
"@coze-editor/extensions": "0.1.0-alpha.270604",
|
|
34
|
+
"@coze-editor/preset-universal": "0.1.0-alpha.270604",
|
|
35
|
+
"@coze-editor/utils": "0.1.0-alpha.270604",
|
|
36
|
+
"@coze-editor/vscode": "0.1.0-alpha.270604",
|
|
37
37
|
"@lezer/highlight": "~1.2.0",
|
|
38
38
|
"codemirror-shiki": "^0.2.2",
|
|
39
39
|
"marked": "^15.0.7",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@codemirror/commands": "^6.3.3",
|
|
60
60
|
"@codemirror/state": "^6.4.1",
|
|
61
61
|
"@codemirror/view": "^6.26.1",
|
|
62
|
-
"@coze-editor/code-language-shared": "
|
|
62
|
+
"@coze-editor/code-language-shared": "0.1.0-alpha.270604"
|
|
63
63
|
},
|
|
64
64
|
"packageManager": "pnpm@9.15.0",
|
|
65
65
|
"publishConfig": {
|