@textbus/xnote 0.0.1-alpha.30 → 0.0.1-alpha.32

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.
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from '@viewfly/core/jsx-runtime';
2
2
  import { withScopedCSS } from '@viewfly/scoped-css';
3
3
  import { Injectable, InjectFlags, Injector, inject, createSignal, onUnmounted, createRef, withAnnotation, onUpdated, onMounted, InjectionToken, ReflectiveInjector, createDynamicRef, jsx as jsx$1, viewfly, getCurrentInstance, watch } from '@viewfly/core';
4
4
  import { Subject, Selection, fromEvent, Subscription, Attribute, Keyboard, Commander, Controller, useContext, onBreak, onContentInsert, ContentType, Slot, Component, Registry, Query, QueryStateType, createVNode, BehaviorSubject, onPaste, onFocus, onBlur, useDynamicShortcut, VTextNode, onFocusIn, onFocusOut, onDestroy, onGetRanges, Formatter, onParentSlotUpdated, Textbus, RootComponentRef, filter, map, distinctUntilChanged, sampleTime, merge, debounceTime, throttleTime, delay, onContentInserted, onContentDeleted, switchMap, fromPromise, onCompositionStart } from '@textbus/core';
5
- import { VIEW_CONTAINER, isMac, DomAdapter, Input, SelectionBridge, BrowserModule, VIEW_DOCUMENT, CollaborateSelectionAwarenessDelegate, Parser } from '@textbus/platform-browser';
5
+ import { VIEW_CONTAINER, isMac, DomAdapter, Input, SelectionBridge, BrowserModule, VIEW_DOCUMENT, CollaborateSelectionAwarenessDelegate, isMobileBrowser, Parser } from '@textbus/platform-browser';
6
6
  import { createPortal, createApp, DomRenderer, HTMLRenderer, OutputTranslator } from '@viewfly/platform-browser';
7
7
  import { useProduce } from '@viewfly/hooks';
8
8
  import highlightjs from 'highlight.js';
@@ -5584,7 +5584,7 @@ class Editor extends Textbus {
5584
5584
  });
5585
5585
  const browserModule = new BrowserModule(Object.assign({ renderTo: () => {
5586
5586
  return this.host;
5587
- }, adapter, componentLoaders: [
5587
+ }, useContentEditable: isMobileBrowser(), adapter, componentLoaders: [
5588
5588
  atComponentLoader,
5589
5589
  sourceCodeComponentLoader,
5590
5590
  listComponentLoader,
package/bundles/index.js CHANGED
@@ -5586,7 +5586,7 @@ class Editor extends core$1.Textbus {
5586
5586
  });
5587
5587
  const browserModule = new platformBrowser.BrowserModule(Object.assign({ renderTo: () => {
5588
5588
  return this.host;
5589
- }, adapter, componentLoaders: [
5589
+ }, useContentEditable: platformBrowser.isMobileBrowser(), adapter, componentLoaders: [
5590
5590
  atComponentLoader,
5591
5591
  sourceCodeComponentLoader,
5592
5592
  listComponentLoader,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/xnote",
3
- "version": "0.0.1-alpha.30",
3
+ "version": "0.0.1-alpha.32",
4
4
  "description": "A high-performance rich text editor that supports multiplayer online collaboration.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -27,14 +27,14 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@tanbo/color": "^0.1.1",
30
- "@textbus/adapter-viewfly": "^4.0.0-alpha.60",
31
- "@textbus/collaborate": "^4.0.0-alpha.60",
32
- "@textbus/core": "^4.0.0-alpha.60",
33
- "@textbus/platform-browser": "^4.0.0-alpha.60",
34
- "@viewfly/core": "^1.0.0-alpha.10",
35
- "@viewfly/hooks": "^1.0.0-alpha.10",
36
- "@viewfly/platform-browser": "^1.0.0-alpha.10",
37
- "@viewfly/scoped-css": "^1.0.0-alpha.10",
30
+ "@textbus/adapter-viewfly": "^4.0.0-alpha.61",
31
+ "@textbus/collaborate": "^4.0.0-alpha.61",
32
+ "@textbus/core": "^4.0.0-alpha.61",
33
+ "@textbus/platform-browser": "^4.0.0-alpha.61",
34
+ "@viewfly/core": "^1.0.0-alpha.11",
35
+ "@viewfly/hooks": "^1.0.0-alpha.11",
36
+ "@viewfly/platform-browser": "^1.0.0-alpha.11",
37
+ "@viewfly/scoped-css": "^1.0.0-alpha.11",
38
38
  "highlight.js": "^11.9.0",
39
39
  "katex": "^0.16.10"
40
40
  },