@pi-kaush/pi-content-layout 0.1.13 → 0.1.14
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/package.json +1 -1
- package/src/index.ts +1 -15
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -50,15 +50,6 @@ type EditorFactory = (
|
|
|
50
50
|
keybindings: KeybindingsManager,
|
|
51
51
|
) => EditorComponent;
|
|
52
52
|
|
|
53
|
-
type EmbeddedStatusEditorOptions = NonNullable<
|
|
54
|
-
ConstructorParameters<typeof CustomEditor>[3]
|
|
55
|
-
> & { embedWorkingStatus: true };
|
|
56
|
-
|
|
57
|
-
// Newer Pi consumes this option; older editors keep the transcript status row.
|
|
58
|
-
const EMBEDDED_STATUS_EDITOR_OPTIONS: EmbeddedStatusEditorOptions = {
|
|
59
|
-
embedWorkingStatus: true,
|
|
60
|
-
};
|
|
61
|
-
|
|
62
53
|
type ThemeGetter = () => Theme | undefined;
|
|
63
54
|
|
|
64
55
|
type RenderRow = {
|
|
@@ -539,12 +530,7 @@ export default function contentLayout(pi: ExtensionAPI): void {
|
|
|
539
530
|
const factory: EditorFactory = (tui, editorTheme, keybindings) => {
|
|
540
531
|
const editor = previous
|
|
541
532
|
? previous(tui, editorTheme, keybindings)
|
|
542
|
-
: new CustomEditor(
|
|
543
|
-
tui,
|
|
544
|
-
editorTheme,
|
|
545
|
-
keybindings,
|
|
546
|
-
EMBEDDED_STATUS_EDITOR_OPTIONS,
|
|
547
|
-
);
|
|
533
|
+
: new CustomEditor(tui, editorTheme, keybindings);
|
|
548
534
|
return decorateEditor(editor);
|
|
549
535
|
};
|
|
550
536
|
editorRegistration = { factory, previous };
|