@coze-editor/preset-prompt 0.1.0-alpha.37c297 → 0.1.0-alpha.d92d50

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 CHANGED
@@ -30,7 +30,14 @@ declare const preset: (_coze_editor_core.ExtensionPluginSpec | _coze_editor_core
30
30
  to: number;
31
31
  anchor: number;
32
32
  head: number;
33
- }> | _coze_editor_core.APIPluginSpec<"replaceTextByRange", [_coze_editor_core_plugins.ReplaceTextByRangeOptions], void> | _coze_editor_core.OptionPluginSpec<"minHeight", string | number> | _coze_editor_core.OptionPluginSpec<"maxHeight", string | number> | _coze_editor_core.OptionPluginSpec<"height", string | number> | _coze_editor_core.APIPluginSpec<"getMainSelectionRects", [], Pick<_codemirror_view.RectangleMarker, keyof _codemirror_view.RectangleMarker>[]> | _coze_editor_core.APIPluginSpec<"replaceText", [options: _coze_editor_core_plugins.ReplaceTextOptions], void> | _coze_editor_core.APIPluginSpec<"undo", [], void> | _coze_editor_core.APIPluginSpec<"redo", [], void> | _coze_editor_core.APIPluginSpec<"transformTextInSelection", [transformer: (text: string) => string | undefined], void>)[];
33
+ }> | _coze_editor_core.APIPluginSpec<"replaceTextByRange", [_coze_editor_core_plugins.ReplaceTextByRangeOptions], void> | _coze_editor_core.OptionPluginSpec<"minHeight", string | number> | _coze_editor_core.OptionPluginSpec<"maxHeight", string | number> | _coze_editor_core.OptionPluginSpec<"height", string | number> | _coze_editor_core.APIPluginSpec<"getMainSelectionRects", [], Pick<_codemirror_view.RectangleMarker, keyof _codemirror_view.RectangleMarker>[]> | _coze_editor_core.APIPluginSpec<"replaceText", [options: {
34
+ from: number;
35
+ to: number;
36
+ text: string;
37
+ cursorOffset?: number;
38
+ scrollIntoView?: boolean;
39
+ userEvent?: string;
40
+ }], void> | _coze_editor_core.APIPluginSpec<"undo", [], void> | _coze_editor_core.APIPluginSpec<"redo", [], void> | _coze_editor_core.APIPluginSpec<"transformTextInSelection", [transformer: (text: string) => string | undefined], void>)[];
34
41
  type EditorAPI = InferEditorAPIFromPlugins<typeof preset>;
35
42
 
36
43
  export { type EditorAPI, preset as default, languageSupport, markdownLanguage, promptLanguage };
package/dist/index.d.ts CHANGED
@@ -30,7 +30,14 @@ declare const preset: (_coze_editor_core.ExtensionPluginSpec | _coze_editor_core
30
30
  to: number;
31
31
  anchor: number;
32
32
  head: number;
33
- }> | _coze_editor_core.APIPluginSpec<"replaceTextByRange", [_coze_editor_core_plugins.ReplaceTextByRangeOptions], void> | _coze_editor_core.OptionPluginSpec<"minHeight", string | number> | _coze_editor_core.OptionPluginSpec<"maxHeight", string | number> | _coze_editor_core.OptionPluginSpec<"height", string | number> | _coze_editor_core.APIPluginSpec<"getMainSelectionRects", [], Pick<_codemirror_view.RectangleMarker, keyof _codemirror_view.RectangleMarker>[]> | _coze_editor_core.APIPluginSpec<"replaceText", [options: _coze_editor_core_plugins.ReplaceTextOptions], void> | _coze_editor_core.APIPluginSpec<"undo", [], void> | _coze_editor_core.APIPluginSpec<"redo", [], void> | _coze_editor_core.APIPluginSpec<"transformTextInSelection", [transformer: (text: string) => string | undefined], void>)[];
33
+ }> | _coze_editor_core.APIPluginSpec<"replaceTextByRange", [_coze_editor_core_plugins.ReplaceTextByRangeOptions], void> | _coze_editor_core.OptionPluginSpec<"minHeight", string | number> | _coze_editor_core.OptionPluginSpec<"maxHeight", string | number> | _coze_editor_core.OptionPluginSpec<"height", string | number> | _coze_editor_core.APIPluginSpec<"getMainSelectionRects", [], Pick<_codemirror_view.RectangleMarker, keyof _codemirror_view.RectangleMarker>[]> | _coze_editor_core.APIPluginSpec<"replaceText", [options: {
34
+ from: number;
35
+ to: number;
36
+ text: string;
37
+ cursorOffset?: number;
38
+ scrollIntoView?: boolean;
39
+ userEvent?: string;
40
+ }], void> | _coze_editor_core.APIPluginSpec<"undo", [], void> | _coze_editor_core.APIPluginSpec<"redo", [], void> | _coze_editor_core.APIPluginSpec<"transformTextInSelection", [transformer: (text: string) => string | undefined], void>)[];
34
41
  type EditorAPI = InferEditorAPIFromPlugins<typeof preset>;
35
42
 
36
43
  export { type EditorAPI, preset as default, languageSupport, markdownLanguage, promptLanguage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coze-editor/preset-prompt",
3
- "version": "0.1.0-alpha.37c297",
3
+ "version": "0.1.0-alpha.d92d50",
4
4
  "description": "preset-prompt",
5
5
  "license": "MIT",
6
6
  "author": "fengzilong",
@@ -25,11 +25,11 @@
25
25
  "dependencies": {
26
26
  "@codemirror/autocomplete": "^6.18.0",
27
27
  "@codemirror/language": "^6.10.1",
28
- "@coze-editor/core": "0.1.0-alpha.37c297",
29
- "@coze-editor/core-plugins": "0.1.0-alpha.37c297",
30
- "@coze-editor/extensions": "0.1.0-alpha.37c297",
31
- "@coze-editor/lezer-parser-jinja2": "0.1.0-alpha.37c297",
32
- "@coze-editor/preset-expression": "0.1.0-alpha.37c297",
28
+ "@coze-editor/core": "0.1.0-alpha.d92d50",
29
+ "@coze-editor/core-plugins": "0.1.0-alpha.d92d50",
30
+ "@coze-editor/extensions": "0.1.0-alpha.d92d50",
31
+ "@coze-editor/lezer-parser-jinja2": "0.1.0-alpha.d92d50",
32
+ "@coze-editor/preset-expression": "0.1.0-alpha.d92d50",
33
33
  "@lezer/common": "^1.2.2",
34
34
  "@lezer/html": "^1.3.10",
35
35
  "@lezer/markdown": "^1.3.1"