@gluonjs/quarks


@gluonjs/quarks / packages/quarks/src / UiPackageManifest

Interface: UiPackageManifest

Properties

entries

readonly entries: readonly UiContractEntry[]


layer

readonly layer: "atom" | "molecule" | "organism" | "quark"


package

readonly package: `@gluonjs/${string}`


schemaVersion

readonly schemaVersion: 1

Example

Consume the versioned public inventory that identifies a UI package, its layer, and every supported contract entry:

ts
import { quarkManifest, type UiContractEntry, type UiPackageManifest } from '@gluonjs/quarks';

const manifest: UiPackageManifest = quarkManifest;
const dialog: UiContractEntry | undefined = manifest.entries.find((entry) => entry.name === 'Dialog');
console.log(manifest.package, manifest.layer, dialog?.accessibility, dialog?.tests);