mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-04 15:34:39 +00:00
Adds the pdf-panel and markdown-panel examples, the File panels section of the plugin reference, and an e2e spec that installs both examples, opens a PDF in the browser viewer, and edits Markdown through Paseo's document across the switcher, Source, autosave and conflicts.
16 lines
404 B
TypeScript
16 lines
404 B
TypeScript
import type { PluginClientContext } from "@getpaseo/plugin/client";
|
|
import { PdfPanel } from "./client/pdf-panel";
|
|
|
|
export default function contribute(client: PluginClientContext) {
|
|
client.addFilePanel({
|
|
id: "pdf",
|
|
title: "PDF",
|
|
icon: "FileText",
|
|
files: { extensions: ["pdf"] },
|
|
document: "bytes",
|
|
maxBytes: 50 * 1024 * 1024,
|
|
Component: PdfPanel,
|
|
});
|
|
return () => {};
|
|
}
|