mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 10:12:44 +00:00
The plugin compiler spawned esbuild through app.asar, and the subprocess imported the React client barrel. Point esbuild at the unpacked binary, add a react-free @paseo/plugin/server entry, and pass a typed PluginTheme so plugin UI follows the active theme on desktop and mobile.
17 lines
566 B
TypeScript
17 lines
566 B
TypeScript
import type { PluginAttachmentSourceContribution } from "./contracts.js";
|
|
|
|
export {
|
|
PluginAttachmentItemSchema,
|
|
PluginAttachmentSearchPayloadSchema,
|
|
type PluginAttachmentItem,
|
|
type PluginAttachmentSearchPayload,
|
|
} from "./attachments.js";
|
|
export type { PluginAttachmentSourceContribution, PluginHandlerContext } from "./contracts.js";
|
|
export { defineRpc, type PluginRpcContract } from "./rpc.js";
|
|
|
|
export function defineAttachmentSource<Definition extends PluginAttachmentSourceContribution>(
|
|
definition: Definition,
|
|
): Definition {
|
|
return definition;
|
|
}
|