diff --git a/deno.jsonc b/deno.jsonc index 8953774..c2718cb 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -2,11 +2,11 @@ "name": "@shougo/ddu-ui-filer", "version": "0.0.0", "exports": { - ".": "./denops/@ddu-uis/filer.ts", + ".": "./denops/@ddu-uis/filer.ts" }, "publish": { "include": [ - "denops/@ddu-uis/**/*.ts", + "denops/@ddu-uis/**/*.ts" ] }, "imports": { diff --git a/denops/@ddu-uis/filer.ts b/denops/@ddu-uis/filer.ts index 8a47854..9f7840a 100644 --- a/denops/@ddu-uis/filer.ts +++ b/denops/@ddu-uis/filer.ts @@ -1,30 +1,30 @@ import { ActionFlags, - type BaseActionParams, - BaseUi, + type BaseParams, type Context, type DduItem, type DduOptions, - type Denops, type PreviewContext, type Previewer, type SourceInfo, - type UiActions, type UiOptions, -} from "jsr:@shougo/ddu-vim@~5.0.0/types"; +} from "jsr:@shougo/ddu-vim@~6.0.0/types"; +import { BaseUi, type UiActions } from "jsr:@shougo/ddu-vim@~6.0.0/ui"; import { printError, treePath2Filename, } from "jsr:@shougo/ddu-vim@~5.0.0/utils"; -import { batch } from "jsr:@denops/std@~7.0.0/batch"; -import * as op from "jsr:@denops/std@~7.0.0/option"; -import * as fn from "jsr:@denops/std@~7.0.0/function"; -import * as vars from "jsr:@denops/std@~7.0.0/variable"; -import { equal } from "jsr:@std/assert@~1.0.0"; -import { is } from "jsr:@core/unknownutil@~4.0.0"; -import { SEPARATOR as pathsep } from "jsr:@std/path@~1.0.1"; -import { extname } from "jsr:@std/path@~1.0.0"; +import type { Denops } from "jsr:@denops/std@~7.1.0"; +import { batch } from "jsr:@denops/std@~7.1.0/batch"; +import * as op from "jsr:@denops/std@~7.1.0/option"; +import * as fn from "jsr:@denops/std@~7.1.0/function"; +import * as vars from "jsr:@denops/std@~7.1.0/variable"; + +import { equal } from "jsr:@std/assert@~1.0.0/equal"; +import { is } from "jsr:@core/unknownutil@~4.3.0/is"; +import { SEPARATOR as pathsep } from "jsr:@std/path@~1.0.1/constants"; +import { extname } from "jsr:@std/path@~1.0.0/extname"; import { PreviewUi } from "./filer/preview.ts"; @@ -864,7 +864,7 @@ export class Ui extends BaseUi { getPreviewer?: ( denops: Denops, item: DduItem, - actionParams: BaseActionParams, + actionParams: BaseParams, previewContext: PreviewContext, ) => Promise; }) => { @@ -987,7 +987,7 @@ export class Ui extends BaseUi { getPreviewer?: ( denops: Denops, item: DduItem, - actionParams: BaseActionParams, + actionParams: BaseParams, previewContext: PreviewContext, ) => Promise; }) => { diff --git a/denops/@ddu-uis/filer/preview.ts b/denops/@ddu-uis/filer/preview.ts index d0b08ae..446ac3e 100644 --- a/denops/@ddu-uis/filer/preview.ts +++ b/denops/@ddu-uis/filer/preview.ts @@ -1,21 +1,23 @@ import { ActionFlags, - type BaseActionParams, + type BaseParams, type BufferPreviewer, type Context, type DduItem, - type Denops, type NoFilePreviewer, type PreviewContext, type Previewer, type TerminalPreviewer, -} from "jsr:@shougo/ddu-vim@~5.0.0/types"; +} from "jsr:@shougo/ddu-vim@~6.0.0/types"; -import { batch } from "jsr:@denops/std@~7.0.0/batch"; -import * as fn from "jsr:@denops/std@~7.0.0/function"; -import { equal } from "jsr:@std/assert@~1.0.0"; -import { replace } from "jsr:@denops/std@~7.0.0/buffer"; -import { ensure, is } from "jsr:@core/unknownutil@~4.0.0"; +import type { Denops } from "jsr:@denops/std@~7.1.0"; +import { batch } from "jsr:@denops/std@~7.1.0/batch"; +import * as fn from "jsr:@denops/std@~7.1.0/function"; + +import { equal } from "jsr:@std/assert@~1.0.0/equal"; +import { replace } from "jsr:@denops/std@~7.1.0/buffer"; +import { ensure } from "jsr:@core/unknownutil@~4.3.0/ensure"; +import { is } from "jsr:@core/unknownutil@~4.3.0/is"; import type { Params } from "../filer.ts"; @@ -91,13 +93,13 @@ export class PreviewUi { denops: Denops, context: Context, uiParams: Params, - actionParams: unknown, + actionParams: BaseParams, bufnr: number, item: DduItem, getPreviewer?: ( denops: Denops, item: DduItem, - actionParams: BaseActionParams, + actionParams: BaseParams, previewContext: PreviewContext, ) => Promise, ): Promise { @@ -119,7 +121,7 @@ export class PreviewUi { const previewer = await getPreviewer( denops, item, - actionParams as BaseActionParams, + actionParams, previewContext, );