@ibexa/cohesivo-sdk-utils
v0.0.7
Published
Framework-agnostic runtime helpers for Ibexa front ends. `@ibexa/cohesivo-sdk-react-headless` is built on them; a preview written in another framework can use them directly to speak to Page Builder. The package depends on `@ibexa/cohesivo-sdk-types` for t
Readme
@ibexa/cohesivo-sdk-utils
Framework-agnostic runtime helpers for Ibexa front ends. @ibexa/cohesivo-sdk-react-headless is built on them; a preview written in another framework can use them directly to speak to Page Builder. The package depends on @ibexa/cohesivo-sdk-types for the contracts it implements.
Entry points
@ibexa/cohesivo-sdk-utils: general helpers shared by the other packages.@ibexa/cohesivo-sdk-utils/page-builder: what a page needs to work as a Page Builder preview. ThepostMessagebridge to the editor, the protocol declaration (version, capabilities) and its negotiation, the measuring of block positions the editor needs for drag and drop, and the drop index for a pointer position.
The exports of each entry point are its lib/**/index.ts; their declarations are the reference.
Development
npm run build # library build to dist/ plus declarations
npm test # vitest
npm run cs:check # prettier, eslint and tscPackages are released together from the repository root, see the root README.
