@dxos/react-ui-editor 0.4.10-main.3aa8c1b → 0.4.10-main.3c620fb
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.
|
@@ -4381,7 +4381,19 @@ var typewriter = ({ delay = 75, items = defaultItems } = {}) => {
|
|
|
4381
4381
|
// packages/ui/react-ui-editor/src/components/TextEditor/TextEditor.tsx
|
|
4382
4382
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/ui/react-ui-editor/src/components/TextEditor/TextEditor.tsx";
|
|
4383
4383
|
var instanceCount = 0;
|
|
4384
|
-
var TextEditor = /* @__PURE__ */ forwardRef(({
|
|
4384
|
+
var TextEditor = /* @__PURE__ */ forwardRef(({
|
|
4385
|
+
id,
|
|
4386
|
+
// TODO(wittjosiah): Rename initialText?
|
|
4387
|
+
doc,
|
|
4388
|
+
selection,
|
|
4389
|
+
extensions,
|
|
4390
|
+
className,
|
|
4391
|
+
autoFocus,
|
|
4392
|
+
scrollTo: propsScrollTo,
|
|
4393
|
+
moveToEndOfLine,
|
|
4394
|
+
debug,
|
|
4395
|
+
dataTestId
|
|
4396
|
+
}, forwardedRef) => {
|
|
4385
4397
|
const [instanceId] = useState2(() => `text-editor-${++instanceCount}`);
|
|
4386
4398
|
const scrollTo = useDefaultValue(propsScrollTo, EditorView16.scrollIntoView(0, {
|
|
4387
4399
|
yMargin: 0
|
|
@@ -4408,7 +4420,7 @@ var TextEditor = /* @__PURE__ */ forwardRef(({ id, doc, selection, extensions, c
|
|
|
4408
4420
|
instanceId
|
|
4409
4421
|
}, {
|
|
4410
4422
|
F: __dxlog_file10,
|
|
4411
|
-
L:
|
|
4423
|
+
L: 91,
|
|
4412
4424
|
S: void 0,
|
|
4413
4425
|
C: (f, a) => f(...a)
|
|
4414
4426
|
});
|
|
@@ -4421,7 +4433,7 @@ var TextEditor = /* @__PURE__ */ forwardRef(({ id, doc, selection, extensions, c
|
|
|
4421
4433
|
EditorView16.exceptionSink.of((err) => {
|
|
4422
4434
|
log7.catch(err, void 0, {
|
|
4423
4435
|
F: __dxlog_file10,
|
|
4424
|
-
L:
|
|
4436
|
+
L: 104,
|
|
4425
4437
|
S: void 0,
|
|
4426
4438
|
C: (f, a) => f(...a)
|
|
4427
4439
|
});
|
|
@@ -4468,15 +4480,17 @@ var TextEditor = /* @__PURE__ */ forwardRef(({ id, doc, selection, extensions, c
|
|
|
4468
4480
|
instanceId
|
|
4469
4481
|
}, {
|
|
4470
4482
|
F: __dxlog_file10,
|
|
4471
|
-
L:
|
|
4483
|
+
L: 153,
|
|
4472
4484
|
S: void 0,
|
|
4473
4485
|
C: (f, a) => f(...a)
|
|
4474
4486
|
});
|
|
4475
4487
|
view2?.destroy();
|
|
4476
4488
|
};
|
|
4477
4489
|
}, [
|
|
4478
|
-
|
|
4490
|
+
id,
|
|
4479
4491
|
selection,
|
|
4492
|
+
scrollTo,
|
|
4493
|
+
editorMode,
|
|
4480
4494
|
extensions
|
|
4481
4495
|
]);
|
|
4482
4496
|
const handleKeyUp = useCallback((event) => {
|