Skip to main content
Version: v1 (Current)

API reference

The full public API catalog is generated from the library's actual named exports. It includes UI primitive parts, domain components, schema forms, experience pages, props/defaults, events, slots, exposed methods, authored Storybook excerpts, and typed helper APIs.

Package entrypoints​

ImportContents
@gxp-dev/app-uiNamed components, public types, composables, flow helpers, utilities and VERSION
@gxp-dev/app-ui/stylesComplete utility/bridge/SFC styles
@gxp-dev/app-ui/styles/baseComplete styles with the same theme bridge/fallbacks
@gxp-dev/app-ui/styles/themes/default.cssOptional explicit Storybook/demo palette
@gxp-dev/app-ui/styles/themes/light.cssOptional scoped light palette (gxp-theme--light)
@gxp-dev/app-ui/style.cssExtracted SFC styles only; not the full stylesheet

Utilities​

The package exports buttonVariants, badgeVariants, navigationMenuTriggerStyle, cn, delay, uuid, timeAgo, throttle, parseAIResponse, preloadAssets, and loadFonts. Image helpers are also public:

  • convertToCanvasBlob(file, outputType = 'image/jpeg', quality = 1) re-encodes an image through a browser canvas and rejects unavailable canvas/decoding/export failures.
  • processUploadedImage(file) attempts JPEG encoding at quality 0.95 and preserves the original file when conversion fails or the file is not an image.

Both require browser image/canvas APIs. They do not resize images. Object URLs used for conversion are revoked on success and failure.

Machine-readable API​

pnpm storybook:build creates a legacy library-manifest.json and a typed library-manifest.v2.json in storybook-static. The typed artifact includes primitives, domain, forms, pages (including ExperienceFlow), composables, counts, package version, source digest, and typed contracts/examples. New forms/pages fields are additive to the legacy catalog.

pnpm docs:generate regenerates the written API references from the same public contract extraction. AI scaffolding instructions.