The package entry point — five arrays (
fw_require,pkg_require,modules,extras,bundle), nothing else.
Module manifest (fw_require, pkg_require, modules, extras, bundle) | Source packages/front/office/oconv/src/main.js | Deps — | Worker-safe yes
Re-exports the @awacloud/oconv module factory descriptors. Consumers register them in their own @awacloud/fw ModuleRuntime to wire dependency injection automatically. This is the package's "." exports entry point (see the boundary note) — src/worker.js is reached separately, by path or by its own ./src/worker.js sub-path.
Resolve
import { fw_require, modules } from '@awacloud/oconv';
API
| Member | Signature | Returns | Throws |
|---|---|---|---|
fw_require |
{name, dependencies, factory}[] |
the dedup'd union of the fw providers @awacloud/md/@awacloud/ooxml/@awacloud/odf/@awacloud/pdf each need registered in the host runtime |
— |
pkg_require |
{name, dependencies, factory}[] |
the individual sibling module descriptors @awacloud/oconv's own readers/writers declare as dependencies, bound by bare specifier — codegen-only, NOT spread into modules (already registered there through the sibling modules spreads) |
— |
modules |
{name, dependencies, factory}[] |
every @awacloud/oconv local descriptor (27, dependencies-before-dependents order) PLUS the full transitive graph of the four office packages it composes (ooxmlModules, odfModules, mdModules, mdExtras, pdfPkgRequire, pdfModules) |
— |
extras |
{name, dependencies, factory}[] |
[] — no opt-in extras today |
— |
bundle |
object[] |
[] — no pre-assembled bundle today |
— |
Examples
Register the full graph and resolve the facade
import { ModuleRuntime } from '@awacloud/fw/core/runtime.js';
import { fw_require, modules } from '@awacloud/oconv';
const runtime = new ModuleRuntime();
runtime.registerAll(fw_require);
runtime.registerAll(modules);
const oconv = runtime.resolve('oconv');
Notes
modulesregisters only the SINGLE format descriptor being resolved would resolve fine at registration time but throw "Module not found" the first time a consumer actually calls e.g.runtime.resolve('docx')— somodulesalso carries the composed office packages' own module arrays, dependencies before dependents.pkg_requireexists so@awacloud/tool-fw-codegen depscan statically resolve each local descriptor'sdependenciesNAME to an importable binding and emit the inlinedeps:field on every descriptor — it is runtime-inert: every entry it lists is already registered through themodulesspreads, so including it too would double-list into a non-deduped array.fw_requirede-duplicates by descriptorname(@awacloud/ooxmland@awacloud/odfboth need the zip/deflate/xml closure) so re-registering a provider present in several sibling manifests stays idempotent.- 27 local
@awacloud/oconvdescriptors are registered inmodules: the pivot (oconvIr), 7 format readers (oconvDocxToIr/oconvOdtToIr/oconvXlsxToIr/oconvOdsToIr/oconvPptxToIr/oconvOdpToIr/oconvPdfToIr),oconvPdfFontDecoder/oconvPdfTextExtract/oconvPdfStruct(the pdf reader's own dependencies),oconvMdToIr, 4 writers (oconvIrToMd/oconvIrToDocx/oconvIrToOdt/oconvIrToPdf), 9 md→pdf typesetter descriptors, theoconvDefaultFacesstand-in, and theoconvfacade itself — count derived frommodules(its entries whose name starts withoconv). @awacloud/md'sextras(mdExtras, 10 opt-in descriptors) are spread right aftermdModules: md'smodulescarriesmdHtmlDocument, which depends on four of them (mdToc,mdFrontmatter,mdFootnotes,mdAdmonitions), and@awacloud/mddocuments that a consumer registers bothmodulesandextras(@awacloud/mddocs/api/document/html-document.md§ Resolve).mdFrontmatter— whichoconvMdToIrdepends on — is registered through that spread, not as a separate element, somoduleslists every descriptor name exactly once.
See also
- docs/api/README.md — full module index +
exportsboundary note (the 29-row derivation) oconv— the facade this manifest'smodulesarray resolvesworker— reached by path or its./src/worker.jssub-path, not through this manifest