Skip to content

Commit c799ece

Browse files
committed
feat: 支持插类型判断
1 parent 2cd5679 commit c799ece

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-flow-interface",
3-
"version": "0.18.22",
3+
"version": "0.18.23",
44
"description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
55
"type": "module",
66
"module": "dist/index.js",

src/api/service/main/plugin/plugin-service-api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { PluginEventType } from '@/api/service/main/plugin/dto/plugin-event-type
55
import { PluginServiceSubscriber } from '@/api/service/main/plugin/dto/plugin-service-subscriber.type'
66
import PluginState from '@/api/service/main/plugin/dto/plugin-state.interface'
77
import BasePlugin from '@/plugin/base-plugin'
8+
import { PluginType } from '@/plugin/dto/plugin-type.enum'
89

910
export default interface PluginServiceApi {
1011
/**
@@ -123,4 +124,10 @@ export default interface PluginServiceApi {
123124
waitInstall(id: string): Promise<void>
124125

125126
waitEnable(id: string): Promise<void>
127+
128+
isOpenablePlugin(type: PluginType): boolean
129+
130+
isSideBarPlugin(type: PluginType): boolean
131+
132+
isViewPlugin(type: PluginType): boolean
126133
}

0 commit comments

Comments
 (0)