Releases: Zimbra/zimlet-cli
2.1.0
Add registerTab
enhancer:
import { registerTab } from '@zimbra-client/enhancers';
// register a type with a "type", "id", and "title"
// existing types include "message", "conversation", and "search".
@registerTab((props) => ({
type: 'myType', // Based on "type" and "id" a unique tab will be created or existing tab will be used
id: 'uniqueId',
title: 'My Title' // The title displayed by the tab
}))
2.0.1
preact-compat
preact-compat
is now enabled 🎊, allowing Zimlet developers to use any React 15 component in Zimlets.
Shimmed Dependencies
To make it easier for developers to consume components and functions from the main application (zm-x-web
), there are now many useful shimmed modules. See src/shims for a list of shimmed modules. See the Shimmed Dependencies Wiki Page for a detailed explanation on shims.
More shims will be added in upcoming releases in order to expose even more functionality to Zimlets.
GraphQL with react-apollo
You can now import a limited number of GraphQL queries/decorators from shimmed dependencies:
import { withCalendars } from '@zimbra-client/graphql';
See src/shims/@zimbra-client/graphql/index.js for a full list of shimmed graphql queries/decorators.
As zimlets need more GraphQL functionality, they can be added (see Adding More Shims). Right now I am looking into automating the process so that all queries/decorators will be available to Zimlets.
Update location of default template to zimbra/zm-x-zimlet-template-default
The default template for zimlet-cli is now located at [zimbra/zm-x-zimlet-template-default]
Added create command to be up and running with a new zimlet in minutes
See the README for the description of the new create command
Mechanism for customizing Webpack config
This implements a mechanism for customizing Webpack config, very similar to the implementation found in developit/preact-cli. See README for details.