Skip to main content
Version: v1 (Current)

Installation

AppUI requires Vue 3.5+ and an ES module-capable build. GxP apps should start from the DevTools project template so the platform supplies Vue and app context consistently.

pnpm add @gxp-dev/app-ui

Import complete compiled styles once at app startup:

import '@gxp-dev/app-ui/styles'

The package includes utility and scoped component CSS. Tailwind is optional for your own markup; rendering AppUI does not require scanning this package's source or configuring a Tailwind v3 content list. The library itself uses Tailwind 4.

Use named imports for components/types:

import { Button, ThemeWrapper, useExperience } from '@gxp-dev/app-ui'
import type { CollectionItem, ExperiencePageDef } from '@gxp-dev/app-ui'

The hosted platform supplies CSS theme variables. For standalone use, the style bridge has fallback values. Use ThemeWrapper for local themes and automatic themed overlay placement. Theme setup.

Storybook is a development tool and its packages are optional peers. Install the versions declared by the package when running its shipped Storybook setup. For library development use the pinned pnpm version and a current Node version compatible with Storybook/Vite; consult their installed package requirements.

Camera/microphone/scan features require a secure browser context and permission. Embed deployments must allow camera/microphone at the host iframe/permissions-policy level. Barcode scanning and QR encoding load @zxing/* and qrcode lazily; these dependencies must remain resolvable through your app build. Scaffolding guide.

The Vue minimum matches the library's VueUse dependency and the current platform/DevTools runtimes. Optional Storybook tools also include the Vue and Tailwind Vite plugins, docs addon, TypeScript and vue-component-meta for catalog extraction; DevTools detects these before starting the shipped stories.

Verify the package in your consumer​

A library source build is separate from consuming its packed JavaScript, declarations and CSS. For a release candidate, build and pack in an isolated checkout, then type-check and build a small consumer against that tarball using the intended Vue/TypeScript toolchain. Confirm the exported @gxp-dev/app-ui/styles entry resolves and includes component CSS. A source alias to the library can conceal missing packaged files.

The reviewed 0.1.7 source built locally, but its offline packed consumer failed strict declaration checking (skipLibCheck: false) with TS6200/TS2344 in RecentActivity.vue.d.ts. That check used Node 24.15.0, Vue 3.5.39, Vite 5.4.21, TypeScript 5.9.3 and vue-tsc 2.2.12 with existing dependencies; it does not establish the contents or behavior of a published registry artifact. The initial package-check script stopped before its consumer build and CSS assertions. A separate run on the restored original packed artifact subsequently passed the consumer production build and verified that both packaged CSS entry files contain the component stylesheet. The strict checker still fails on that same artifact; bundling and CSS inclusion do not resolve declaration compatibility or prove mounted browser behavior. The shipped Storybook static setup also built from that reviewed local tarball with its declared optional development peers. That verifies the packaging/build sample, not every rendered story, a published Storybook deployment or a registry artifact.

Unreleased source fix​

A later local fix at AppUI 70f9662 removes compiler-private __VLS_* global helpers from emitted declarations while retaining component contracts and authored globals. It also uses @internationalized/date 3.12.4, which exports DayOfWeek, instead of the earlier module augmentation. The normal packed-consumer check uses strict: true, skipLibCheck: false and types: []; documented Vue examples, the production build and CSS checks pass at that source checkpoint. The same packed-consumer check also passes after deliberately exercising Vue’s fallback global-helper emission, and the test restores normal declarations afterward. The earlier failed tarball remains a different artifact even though both source checkpoints carry version 0.1.7.

This work has not published a replacement package. Confirm that an adopted release contains the fix, use a lockfile resolving the compatible date dependency graph, and rerun the strict consumer checks. Local source results do not certify an installed registry version, every browser interaction or platform permissions. Do not disable declaration checking to make the old artifact appear compatible.

If you encounter duplicate __VLS_* definitions or related declaration constraints, retain the exact package/tarball, compiler versions and first declaration errors for the library maintainer. Compare the packed .d.ts files and actual compiler resolution before changing application code. Disabling library checking can hide the failure; it does not verify declaration compatibility. Use an explicitly verified package/toolchain combination and rerun your consumer's strict type check and production build before accepting the release.