Skip to content

Commit

Permalink
Consumer Api for @neos-project/neos-ui-guest-frame (#2945)
Browse files Browse the repository at this point in the history
This makes it possible to reuse the api for getting the guest iframe and fx. dispatching events
  • Loading branch information
mhsdesign committed Sep 6, 2021
1 parent 841ad5d commit 0d94a2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module.exports = function (neosPackageJson) {
'@neos-project/neos-ui-i18n': '@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-i18n/index',
'@neos-project/neos-ui-redux-store': '@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-redux-store/index',
'@neos-project/neos-ui-views': '@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-views/index',
'@neos-project/neos-ui-guest-frame': '@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-guest-frame/index',
'@neos-project/utils-redux': '@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/utils-redux/index'
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import readFromConsumerApi from '../../../../dist/readFromConsumerApi';

module.exports = readFromConsumerApi('NeosProjectPackages')().NeosUiGuestFrameDom;
2 changes: 2 additions & 0 deletions packages/neos-ui/src/apiExposureMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import NeosUiI18n from '@neos-project/neos-ui-i18n';
import * as CkEditorApi from '@neos-project/neos-ui-ckeditor5-bindings/src/ckEditorApi';
import NeosUiBackendConnectorDefault, * as NeosUiBackendConnector from '@neos-project/neos-ui-backend-connector';
import * as NeosUiViews from '@neos-project/neos-ui-views';
import * as NeosUiGuestFrameDom from '@neos-project/neos-ui-guest-frame/src/dom';

// We export most needed components from CKE5 to be used when making custom plugins.
// It's not safe to just install CKE5 packages from the extension because then then "instanceof" checks will no longer work,
Expand Down Expand Up @@ -144,6 +145,7 @@ export default {
NeosUiI18n,
NeosUiReduxStore,
NeosUiViews,
NeosUiGuestFrameDom,
// react-proptypes (optional)
ReactUiComponents,
UtilsRedux
Expand Down

0 comments on commit 0d94a2f

Please sign in to comment.