🤖 Bip Bop - Fusion Framework Release #2569
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@equinor/[email protected]
Major Changes
#2410
9d1cb90
Thanks @odinr! - rewrite bookmark moduleNeeded rewrite of the bookmark module to better represent the api, and provide a more robust interface for working with bookmarks. Instead of fixing the current implementation, it was decided to rework the entire module to save time and confusion in the future.
The v1 implementation had strong coupling with the portal code and was not a good representation of the api. The new implementation is more robust and independent of source systems. The new implementation uses zod schemas to validate requests and responses.
The new implementation is not backwards compatible with the v1 implementation, so all ancestor modules should be updated to reflect the changes in this module.
The new implementation has better state management and error handling, and should be easier to work with than the v1 implementation.
Highlights:
BaseConfigBuilder
pattern for configuration.Migration:
Breaking changes:
@equinor/[email protected]
Major Changes
#2410
9d1cb90
Thanks @odinr! - Total rework of api interface for bookmarks.The current version misrepresents the api, and does not provide a good interface for working with bookmarks. So was decided to rework the api interface to better represent the api, and provide a more robust interface for working with bookmarks. Instead of fixing the current implementation, it was decided to rework the entire module to save time and confusion in the future.
BREAKING CHANGES:
zod
schemaszod
schemas@equinor/[email protected]
Major Changes
#2410
9d1cb90
Thanks @odinr! - @equinor/fusion-framework-react-module-bookmark:Updated the
Bookmark
component to use theuseBookmarkComponentContext
hook for accessing the bookmark provider and state.useBookmark
hook withuseBookmarkComponentContext
in theBookmark
component.BookmarkProvider
component to usecreateContext
anduseContext
for managing the bookmark provider state.CreateBookmarkModal
andEditBookmarkModal
components to use theuseBookmarkComponentContext
hook.BookmarkProvider
component to include the current application context.Bookmark
component.Patch Changes
9d1cb90
]:@equinor/[email protected]
Minor Changes
#2410
9d1cb90
Thanks @odinr! - Updated Bookmark Integration in Dev PortalRefactored
BookMarkSideSheet.tsx
:useHasBookmark
withuseCurrentAppModule<BookmarkModule>('bookmark')
for better module integration.disabled
state to usebookmarkProvider?.hasBookmarkCreators
.Updated
Header.tsx
:useCurrentAppModule<BookmarkModule>('bookmark')
to manage bookmark module state.bookmarkProvider
is not available.bookmarkProvider
toBookmarkProvider
component.Configuration Changes in
config.ts
:@equinor/fusion-framework-module-bookmark
to@equinor/fusion-framework-react-module-bookmark
.builder.setFilter('application', true)
to bookmark configuration.@equinor/[email protected]
Minor Changes
#2410
9d1cb90
Thanks @odinr! - Updated bookmark namespace in@equinor/fusion-react-app
to include new hooks and updateduseCurrentBookmark
hook.index.ts
to re-export everything from@equinor/fusion-framework-react-module-bookmark
instead of individual exports.useBookmark
as deprecated inuseBookmark.ts
.useCurrentBookmark
inuseCurrentBookmark.ts
to accept aBookmarkPayloadGenerator
and use theBookmarkModule
fromuseAppModule
.NOTE: This change is backwards compatible and should not require any changes in consuming applications.
NOTE:
useBookmark
will be removed in the next major version. Please use providers and hooks from@equinor/fusion-framework-react-module-bookmark
instead.Patch Changes
@equinor/[email protected]
Minor Changes
#2410
9d1cb90
Thanks @odinr! - Added new hooksuseBookmarkProvider
anduseHasBookmark
with support for custom bookmark providers. This allows for more flexible bookmark management within the Fusion Framework React Bookmark Module.Developers can now directly use
useBookmarkProvider
to get the bookmark provider instance anduseHasBookmark
to check if bookmark creators are present. This enhancement facilitates better integration with custom bookmark logic and improves the module's usability.To adapt to these changes, consumers should consider utilizing the new hooks in their applications for enhanced bookmark management capabilities. Additionally, the removal of certain dependencies and the restructuring of
package.json
dependencies and peerDependencies sections should be noted and adjusted for in project setups.Patch Changes
9d1cb90
]:@equinor/[email protected]
Patch Changes
@equinor/[email protected]
Patch Changes
9d1cb90
]:@equinor/[email protected]
Patch Changes
9d1cb90
,9d1cb90
]:@equinor/[email protected]
Patch Changes
@equinor/[email protected]
Patch Changes
9d1cb90
]:@equinor/[email protected]
Patch Changes
@equinor/[email protected]
Patch Changes
@equinor/[email protected]
Minor Changes
#2410
9d1cb90
Thanks @odinr! - Updated Bookmark Handling in App ComponentApp.tsx
to useuseLayoutEffect
instead ofuseEffect
for synchronizing thepayload
state with the current bookmark.useState
anduseCallback
withuseRef
for managing theupdateData
reference.BookmarkState
andinit
and directly usingpayload
state.payload
state instead of usingupdateState
.Configuration Changes
config.ts
to enable the bookmark module usingenableBookmark
.@equinor/[email protected]
Patch Changes
9d1cb90
,9d1cb90
]:@equinor/[email protected]
Patch Changes
9d1cb90
,9d1cb90
]:@equinor/[email protected]
Patch Changes
9d1cb90
,9d1cb90
]:[email protected]
Patch Changes
9d1cb90
,9d1cb90
]: