/** * The kernel's public surface — everything every door exports, which is * everything that is not the engine seam. Each door star-exports this file and * then adds its own seam contract (`ViewerConfig` + `InitOptions` + `init`), * the only thing doors disagree about. * * See docs/conventions/viewer-doors.md for the laws. The one that matters * here: nothing under `kernel/` may import from `doors/` or `local/`. Read * that as "the word 'local' cannot appear in this directory" and the rest * follows. */ export { EmbedPdfViewerElement, type DefaultEngineProvider, type DoorEngine } from './element'; // The viewer's own components, for your page: ``, ``, ``, // ``. export { EpdfButtonElement, EpdfIconElement, EpdfMenuElement, EpdfMenuItemElement, } from './components'; export { initViewer } from './init'; export type { DocumentEntry, DocumentSrc, ElementConfig, ElementSrc, LiveConfigKey, ViewerConfigBase, } from './config'; export type { MountTarget } from './init'; // The engine seam's contract types, from the package that owns them — the // transport-agnostic engine core that both the local and the cloud engine // implement. Each engine's options type ships with that engine's own door // (LocalEngineConfig with the local door here; CloudEngineOptions with // @cloudpdf/viewer), next to the code that can interpret it. export type { Engine, EngineFactory } from '@embedpdf/engine-core/runtime'; // The customization vocabulary, verbatim from the chrome (docs/conventions/viewer-chrome.md). export { createLayout, defaultCommands, defaultIcons, defaultLayout, } from '@embedpdf/viewer-chrome'; // The drive door: `el.viewer` speaks these tokens (the public capability // lenses). This re-export list is the CDN's public-API act — see the chrome's // index for the curation rule. export { ActionsToken, AnnotationToken, CommandsToken, DocumentsToken, FormToken, I18nToken, InteractionToken, LinkToken, MeasurementToken, MetadataToken, PageEditToken, RedactionToken, RenderToken, SearchToken, SelectionToken, ShellToken, SignatureToken, StageToken, StampToken, } from '@embedpdf/viewer-chrome'; // Signatures: the signer ports `plugins.signature.key` names — the same one // import as the chrome (`personalSigner` keeps a self-signed identity in the // browser; `webCryptoSigner` / `remoteSigner` bring the embedder's key), and // the timestamp authority `plugins.signature.timestampAuthority` names. export { createTestCertificateAuthority, createTestSigner, createTestTimestampAuthority, httpRevocationSource, httpTimestampAuthority, indexedDbKeyStore, memoryKeyStore, personalSigner, remoteSigner, webCryptoSigner, } from '@embedpdf/viewer-chrome'; export type { Mark, SignatureFont, SignatureMode, SignerPort, SignFieldInput, StampLibraryFile, TrustPort, ViewerSignatureSettings, ViewerStampSettings, } from '@embedpdf/viewer-chrome'; export type { CapabilityToken, CommandsCapability, DocumentInfo, DocumentsCapability, LanguageStrings, NotAllowedMode, PanelResizeEvent, PluginName, PluginSettings, ResolvedCommand, ScopedViewer, StringsLoader, ToolbarItemContext, ToolbarItemEdge, Unsubscribe, Viewer, ViewerFont, ViewerPlugins, ViewerPluginsConfig, WatchOptions, } from '@embedpdf/viewer-chrome'; export type { AddItemOptions, BarEdge, BarPlace, CommandContext, CommandDefinition, Feature, Features, FloatPosition, IconDef, IconName, IconPaths, Identity, Importance, Layout, LayoutBar, LayoutCommandItem, LayoutCustomItem, LayoutData, LayoutEnv, LayoutFunction, LayoutGroup, LayoutGroupObject, LayoutItem, LayoutMenu, LayoutMenuSection, LayoutOption, LayoutPanel, LayoutPanelPatch, LayoutSection, PanelPresentation, PanelPresentationBySize, PanelWidth, PathSpec, ReadOnlyExceptions, RemoveItemOptions, SectionName, SelectionTarget, TabsVisibility, ThemeConfig, ThemeMode, ThemePreference, ThemeToken, ThemeTokens, Variant, ViewerCustomization, ViewerSize, } from '@embedpdf/viewer-chrome';