@dxos/react-ui-editor 0.7.4 → 0.7.5-main.937ce75

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.
@@ -34,7 +34,8 @@ var translations_default = [
34
34
  ];
35
35
 
36
36
  // packages/ui/react-ui-editor/src/index.ts
37
- import { keymap as keymap11 } from "@codemirror/view";
37
+ import { EditorState as EditorState3 } from "@codemirror/state";
38
+ import { EditorView as EditorView21, keymap as keymap11 } from "@codemirror/view";
38
39
  import { tags as tags2 } from "@lezer/highlight";
39
40
  import { TextKind } from "@dxos/protocols/proto/dxos/echo/model/text";
40
41
 
@@ -4880,16 +4881,19 @@ var mention = ({ debug, onSearch }) => {
4880
4881
  import { keymap as keymap9 } from "@codemirror/view";
4881
4882
  import { vim } from "@replit/codemirror-vim";
4882
4883
  import { vscodeKeymap } from "@replit/codemirror-vscode-keymap";
4884
+ import { S } from "@dxos/echo-schema";
4883
4885
  var EditorViewModes = [
4884
4886
  "preview",
4885
4887
  "readonly",
4886
4888
  "source"
4887
4889
  ];
4890
+ var EditorViewMode = S.Union(...EditorViewModes.map((mode) => S.Literal(mode)));
4888
4891
  var EditorInputModes = [
4889
4892
  "default",
4890
4893
  "vim",
4891
4894
  "vscode"
4892
4895
  ];
4896
+ var EditorInputMode = S.Union(...EditorInputModes.map((mode) => S.Literal(mode)));
4893
4897
  var editorInputMode = singleValueFacet({});
4894
4898
  var InputModeExtensions = {
4895
4899
  default: [],
@@ -4993,7 +4997,7 @@ var ToolbarRoot = ({ children, onAction, classNames, state }) => {
4993
4997
  onAction,
4994
4998
  state
4995
4999
  }, /* @__PURE__ */ React3.createElement(ElevationProvider, {
4996
- elevation: "chrome"
5000
+ elevation: "positioned"
4997
5001
  }, /* @__PURE__ */ React3.createElement(NaturalToolbar.Root, {
4998
5002
  classNames: [
4999
5003
  "p-1 is-full shrink-0 overflow-x-auto overflow-y-hidden",
@@ -5538,7 +5542,11 @@ var useTextEditor = (props = {}, deps = []) => {
5538
5542
  };
5539
5543
  export {
5540
5544
  Cursor,
5545
+ EditorInputMode,
5541
5546
  EditorInputModes,
5547
+ EditorState3 as EditorState,
5548
+ EditorView21 as EditorView,
5549
+ EditorViewMode,
5542
5550
  EditorViewModes,
5543
5551
  Inline,
5544
5552
  InputModeExtensions,