Details
Description
The UI extension code exposes some methods and classes that are not part of the public API. These should not be available to end users.
Steps to reproduce:
- Build the UI extension library locally:
cd ui-extension && mvn clean verify - Pack the extension:
npm pack - Create another simple node module:
cd <somewhere else>
npm init -y
npm i --save /path/to/ui-extension/bloomreach-ui-extension.0.0.0.tgz - Create a TypeScript file and edit it in IntelliJ
touch index.ts - Add the following code:
import UiExtension from '@bloomreach/ui-extension'; UiExtension.register().then((ui) => { ui. });
The TypeScript auto-complete now suggests the method "ui.init()", which is not part of the public API.
Also, it's possible to import several internal classes. For example:
import { Ui } from '@bloomreach/ui-extension';
These classes should not be exported.
Attachments
There are no Sub-Tasks for this issue.