@nintu/creator-core-runtime
v0.2.7
Published
Shared motion and action behavior for Creator Core applications.
Readme
Creator Core runtime
Public shared behavior for Creator Core applications, released under MIT. Requires React 19 and Motion 12 as peer dependencies. The package contains compiled ESM modules and TypeScript declarations; consumer builds do not need to transpile package source.
bun add @nintu/[email protected]Install from public npm without a package-read token. React and Motion are peer dependencies; supply compatible versions in the consuming application.
| Import | Exports |
| --- | --- |
| @nintu/creator-core-runtime/motion | Motion tokens, easing, presets, entranceDelay, motionVariables, and ActionStatus |
| @nintu/creator-core-runtime/use-animated-value | useAnimatedValue and AnimatedValueOptions |
| @nintu/creator-core-runtime/use-async-action | useAsyncAction |
| @nintu/creator-core-runtime/action-results | checkActionResult and actionError |
| @nintu/creator-core-runtime/styles.css | Shared skeleton and pending-action styles, with generated motion variable defaults |
The motion and action-result entries are safe to import from server modules. Hook
entries preserve their "use client" boundaries. React and Motion remain external
peer imports; do not bundle another copy into consumers.
Import the stylesheet once in the application's global CSS:
@import "@nintu/creator-core-runtime/styles.css";Its default custom
properties are generated from motionVariables; an existing root layout can
continue applying motionVariables inline. Palette tokens, visual TSX components,
account/provider integration, and application data remain in the consuming app.
Run bun run build from this directory to emit dist. Application-compatible
paths under the root src/hooks and src/lib re-export these implementations.
Change shared behavior here, then release a package version; registry-delivered
visual components remain editable in each application.
