@guiiai/kit
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -1,115 +0,1 @@ | ||
import * as birpc from 'birpc'; | ||
import { ChannelOptions } from 'birpc'; | ||
declare function isNuxt(): boolean; | ||
declare function getDevToolsClientUrl(): "/_nuxt/__guii_devtools/" | "/__guii_devtools/"; | ||
declare function createBroadcastChannel(): void; | ||
type MergeableChannelOptions = Omit<ChannelOptions, 'serialize' | 'deserialize'>; | ||
declare function createViteClientChannel(viteHotClient: any, eventKey: string): MergeableChannelOptions; | ||
declare function createViteServerChannel(viteServer: any, eventKey: string): MergeableChannelOptions; | ||
interface RpcFnIslandClient { | ||
updateLoginState: (data: { | ||
loginState: boolean; | ||
}) => void; | ||
updateResult: (data: { | ||
success: boolean; | ||
message: string; | ||
}) => void; | ||
} | ||
interface RpcFnIframeServer { | ||
getLoginState: () => Promise<boolean>; | ||
approve: () => Promise<void>; | ||
reject: () => Promise<void>; | ||
abort: () => Promise<void>; | ||
selectCode: (data: { | ||
id: string; | ||
column: number; | ||
line: number; | ||
}) => Promise<void>; | ||
sendPrompt: (data: { | ||
message: string; | ||
imageBase64?: string; | ||
}) => Promise<void>; | ||
} | ||
interface RpcFnViteServer { | ||
getConfig: () => Promise<{ | ||
isSignedIn: boolean; | ||
profile?: { | ||
id: string; | ||
token: string; | ||
customApi?: { | ||
apiKey: string; | ||
apiBaseUrl: string; | ||
}; | ||
}; | ||
}>; | ||
clearConfig: () => Promise<true>; | ||
/** | ||
* This `save-profile` will not be used, because writing profile is done at plugin server side | ||
* but this interface is still needed for test purpose | ||
*/ | ||
setConfig: (config: any) => Promise<true>; | ||
getProject: () => { | ||
project: { | ||
title: string; | ||
}; | ||
}; | ||
setCustomApi: (config: { | ||
apiKey: string; | ||
apiBaseUrl: string; | ||
}) => Promise<void>; | ||
} | ||
interface RpcFnViteClient { | ||
paymentSuccess: () => void; | ||
updateConfig: (data: { | ||
isSignedIn: boolean; | ||
profile: { | ||
id: string; | ||
token: string; | ||
}; | ||
}) => void; | ||
} | ||
interface RpcFnVitePreviewerServer { | ||
previewerPrefetch: (data: { | ||
id: string; | ||
}) => Promise<{ | ||
id: string; | ||
code: string | null; | ||
error?: string; | ||
} | undefined>; | ||
previewerPropose: (data: { | ||
id: string; | ||
code: string; | ||
}) => void; | ||
previewerApprove: (data: { | ||
id: string; | ||
}) => void; | ||
previewerReject: (data: { | ||
id: string; | ||
code: string; | ||
}) => void; | ||
} | ||
interface RpcFnVitePreviewerClient { | ||
} | ||
declare const RpcViteIslandKey = "@guiiai/vite-devtools:rpc-iframe-island"; | ||
declare function createRpcIframeIslandServer(functions: RpcFnIframeServer): birpc.BirpcReturn<RpcFnIslandClient, RpcFnIframeServer>; | ||
declare function createRpcIframeIslandClient(functions: RpcFnIslandClient): birpc.BirpcReturn<RpcFnIframeServer, RpcFnIslandClient>; | ||
declare function getRpcIframeIslandClient(): ReturnType<typeof createRpcIframeIslandClient>; | ||
declare function getRpcIframeIslandServer(): ReturnType<typeof createRpcIframeIslandServer>; | ||
declare const RpcViteKey = "@guiiai/vite-devtools:rpc"; | ||
declare function createRpcViteServer(viteServer: any, functions: RpcFnViteServer): birpc.BirpcReturn<RpcFnViteClient, RpcFnViteServer>; | ||
declare function createRpcViteClient(viteHotClient: any, functions: RpcFnViteClient): birpc.BirpcReturn<RpcFnViteServer, RpcFnViteClient>; | ||
declare function getRpcViteClient(): (ReturnType<typeof createRpcViteClient>); | ||
declare const RpcVitePreviewerKey = "@guiiai/vite-devtools:rpc-previewer"; | ||
declare function createRpcVitePreviewerServer(viteServer: any, functions: RpcFnVitePreviewerServer): birpc.BirpcReturn<RpcFnVitePreviewerClient, RpcFnVitePreviewerServer>; | ||
declare function createRpcVitePreviewerClient(viteHotClient: any, functions: RpcFnVitePreviewerClient): birpc.BirpcReturn<RpcFnVitePreviewerServer, RpcFnVitePreviewerClient>; | ||
declare function getRpcVitePreviewerClient(): ReturnType<typeof createRpcVitePreviewerClient>; | ||
export { type RpcFnIframeServer, type RpcFnIslandClient, type RpcFnViteClient, type RpcFnVitePreviewerClient, type RpcFnVitePreviewerServer, type RpcFnViteServer, RpcViteIslandKey, RpcViteKey, RpcVitePreviewerKey, createBroadcastChannel, createRpcIframeIslandClient, createRpcIframeIslandServer, createRpcViteClient, createRpcVitePreviewerClient, createRpcVitePreviewerServer, createRpcViteServer, createViteClientChannel, createViteServerChannel, getDevToolsClientUrl, getRpcIframeIslandClient, getRpcIframeIslandServer, getRpcViteClient, getRpcVitePreviewerClient, isNuxt }; | ||
export * from "/Users/luoling8192/Projects/guii/devtools/packages/kit/src/index"; |
{ | ||
"name": "@guiiai/kit", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "", | ||
@@ -33,3 +33,3 @@ "author": { | ||
"superjson": "^2.2.1", | ||
"@guiiai/shared": "0.7.2" | ||
"@guiiai/shared": "0.7.3" | ||
}, | ||
@@ -36,0 +36,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5232
45
+ Added@guiiai/shared@0.7.3(transitive)
- Removed@guiiai/shared@0.7.2(transitive)
Updated@guiiai/shared@0.7.3