Chameleon Software Development Kit is a package for rapid development of Chameleon bundles. It also serves as an integral part of Chameleon Builder. This package is already used if you use chameleon-bundle Vue CLI plugin for scaffolding bundle projects.
Note: Compatible with Node v10.x and newer.
The preferred way to install the Chameleon SDK for is to use the npm package manager. Simply type the following into a terminal window:
npm install @nsoft/chameleon-sdk
This module contains implemented data connectors. These connectors are used by sourceable
mixin to load local and remote data. Currently we support only internal connectors to Chameleon and Ride infrastructure. Also, we have local
connector that loads dummy data which can be used in local development of bundle.
Apply mixins to get out of the box functionality for bundle and interaction with Chameleon Builder. Basic mixin is elementable
and each element in bundle should apply it. Some other mixins depend on elementable
mixin.
elementable
: Basic mixin for all elements used in Builderbindable
: Adds support for dynamic value binding of optionsdependable
: Lazy loads external dependencies like Quill, GoogleMaps API, etc.reactionable
: Adds support for Chameleon reaction systemsourceable
: Add helper methods for loading local and remote data sourcesModule for common utility functions that are used internally or can be used in third-party bundle:
localStorage
: Writing and reading data from localStorageTo create compatible RESTful API that can be used in Chameleon system, API must create four methods that conform to methods currently used in our SDK:
Please consult Generic API connector documentation for details.