Skip to content

Commit

Permalink
Merge branch 'master' into onair
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost authored Aug 18, 2023
2 parents 5cb75a5 + d2bdd6e commit 64118bf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [14.20.1](https://github.com/Telefonica/mistica-web/compare/v14.20.0...v14.20.1) (2023-08-18)


### Bug Fixes

* **Community:** export community components with namespace ([#855](https://github.com/Telefonica/mistica-web/issues/855)) ([8326117](https://github.com/Telefonica/mistica-web/commit/832611759d0ed6c763884597de8f5f20380e4abf))

# [14.20.0](https://github.com/Telefonica/mistica-web/compare/v14.19.0...v14.20.0) (2023-08-11)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@telefonica/mistica",
"version": "14.20.0",
"version": "14.20.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
16 changes: 16 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,22 @@ if (process.env.NODE_ENV !== 'production' && isClientSide()) {
}
}

/*
* Temporary solution to export Community components until Mistica gets migrated to ESModules
* the community.js export has issues because it exports an ES module and next12 interterprets it as a CommonJS module
* importing from /dist/ is not an option because those modules don't get the context from the theme provider
*/
export {default as CommunityExampleComponent} from './community/example-component';
export {default as CommunityAdvancedDataCard} from './community/advanced-data-card';
export {
RowBlock as CommunityRowBlock,
SimpleBlock as CommunitySimpleBlock,
InformationBlock as CommunityInformationBlock,
HighlightedValueBlock as CommunityHighlightedValueBlock,
ValueBlock as CommunityValueBlock,
ProgressBlock as CommunityProgressBlock,
} from './community/blocks';

// Exported this way to facilitate tree-shaking
export {default as Icon2GFilled} from './generated/mistica-icons/icon-2-g-filled';
export {default as Icon2GRegular} from './generated/mistica-icons/icon-2-g-regular';
Expand Down
2 changes: 1 addition & 1 deletion src/package-version.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// DO NOT EDIT THIS FILE. It's autogenerated by set-version.js
export const PACKAGE_VERSION = '14.20.0' as string;
export const PACKAGE_VERSION = '14.20.1' as string;

0 comments on commit 64118bf

Please sign in to comment.