It’s official. Version v1.0.0, the first officially stable version (with 100 % unit test coverage and many more QA features) is officially released.
Documentation has now moved to https://xd-dialog-helper.pabloklaschka.de. New features include new validation options, full support for UXP 3 and many more (e.g., custom elements and so on).
Migration also is incredibly easy. For more details, see the migration section below
@ashryan As per Add to XD-Awesome · Issue #19 · pklaschka/xd-dialog-helper · GitHub, I’ll also create a PR for xd-awesome later today
Documenation for the library has therefore moved to a different repo (GitHub - pklaschka/xd-dialog-helper-docs: Docuementation for the xd-dialog-helper library), which I’ll turn public later today. Also, the WYSIWYG editor (now at https://xd-dialog-helper.pabloklaschka.de/editor/) is now done using React and much more easy to update, and includes a new feature to let you download the JS file for the created dialog, making incorporating created dialogs in your project quicker and easier than ever. As also my Lorem Ipsum plugin got ported to use the library (update will get released in a few days), I’ve included a “real-world” example including localization and retaining input values in the docs with the “real” code of the plugin .
Migration guide from pre-v1.0.0 versions
Mostly, there should be no breaking changes (but many additional options and improvements) in v1.0, since it mostly consists of an internal restructuring.
However, with the release of the new version, the types have moved to a types namespace inside the xd-dialog-helper module.
This means that instead of writing
dialogHelper.showDialog('dialog', 'My dialog', [{
id: 123,
type: dialogHelper.TEXT_INPUT,
label: 'Good morning'
}]);
we have to write:
dialogHelper.showDialog('dialog', 'My dialog', [{
id: 123,
type: dialogHelper.types.TEXT_INPUT,
label: 'Good morning'
}]);
Also, the type constant previously were aliases for numeric constants representing the type. This is no longer the case (to support custom types), which is why numeric values are no longer possible for the type field.