mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
fix(plugins): import custom editor host types from their own module to restore main lint (#37319)
This commit is contained in:
@@ -20,11 +20,11 @@ import { editorShortcutMatches } from './editor-shortcuts'
|
||||
import { registerEditorFrameFlush } from './editor-pending-flush'
|
||||
import { useCustomEditorReloadFlush } from './use-custom-editor-reload-flush'
|
||||
import { PluginEditorNeedsDesktopNotice } from './PluginEditorNeedsDesktopNotice'
|
||||
import {
|
||||
createCustomEditorHost,
|
||||
type CustomEditorBinaryDocument,
|
||||
type CustomEditorEditRefusal
|
||||
} from './plugin-custom-editor-host'
|
||||
import { createCustomEditorHost } from './plugin-custom-editor-host'
|
||||
import type {
|
||||
CustomEditorBinaryDocument,
|
||||
CustomEditorEditRefusal
|
||||
} from './plugin-custom-editor-host-types'
|
||||
|
||||
type PluginCustomEditorFrameProps = {
|
||||
editor: ActivePluginCustomEditor
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { CustomEditorBinaryDocument } from './plugin-custom-editor-host'
|
||||
import type { CustomEditorBinaryDocument } from './plugin-custom-editor-host-types'
|
||||
|
||||
/**
|
||||
* A binary custom editor's bytes last read or saved, and the unsaved edit. Kept apart from the
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { OpenFile } from '@/store/slices/editor'
|
||||
import { editorTabFileAccess } from '@/lib/local-file-access'
|
||||
import type { RuntimeFileOperationArgs } from '@/runtime/runtime-file-client-types'
|
||||
import { writeRuntimeFileBytes } from '@/runtime/runtime-file-bytes-write'
|
||||
import type { CustomEditorBinaryDocument } from './plugin-custom-editor-host'
|
||||
import type { CustomEditorBinaryDocument } from './plugin-custom-editor-host-types'
|
||||
import type { EditorSaveResult, EditorSaveTrigger } from './editor-save-disk-precondition'
|
||||
import {
|
||||
clearSelfWrite,
|
||||
|
||||
@@ -3,7 +3,8 @@ import { CUSTOM_EDITOR_DOCUMENT_MAX_BYTES } from '../../../../shared/plugins/fra
|
||||
import { isPluginJsonObject } from '../../../../shared/plugins/manifest/plugin-json-object'
|
||||
import { createPanelMessageBudget } from '../../../../shared/plugins/frames/plugin-panel-message-budget'
|
||||
import { createPluginFrameMessageHandler } from '../right-sidebar/plugin-frame-host'
|
||||
import { createCustomEditorHost, type CustomEditorHostOptions } from './plugin-custom-editor-host'
|
||||
import { createCustomEditorHost } from './plugin-custom-editor-host'
|
||||
import type { CustomEditorHostOptions } from './plugin-custom-editor-host-types'
|
||||
|
||||
vi.mock('../right-sidebar/plugin-panel-design-token-css', () => ({
|
||||
currentPluginFrameTheme: () => ({ colorScheme: 'light', tokens: '' })
|
||||
|
||||
@@ -35,14 +35,6 @@ import type {
|
||||
CustomEditorUnappliedEdit
|
||||
} from './plugin-custom-editor-host-types'
|
||||
|
||||
export type {
|
||||
CustomEditorBinaryDocument,
|
||||
CustomEditorEditRefusal,
|
||||
CustomEditorHost,
|
||||
CustomEditorHostOptions,
|
||||
CustomEditorUnappliedEdit
|
||||
} from './plugin-custom-editor-host-types'
|
||||
|
||||
/** The frame only ever holds the document: Orca owns the buffer, dirty state and save. */
|
||||
export function createCustomEditorHost(options: CustomEditorHostOptions): CustomEditorHost {
|
||||
const budget =
|
||||
|
||||
Reference in New Issue
Block a user