1.3.1 (2024-12-20)
- Removed open todos.
1.3.0 (2024-10-22)
- Fixed a bug where
onRerenderView
events were not handled.
1.2.1 (2024-10-16)
- Fixed security vulnerabilities by updating the relevant dependencies.
1.2.0 (2024-10-09)
- Added the ability to fetch project properties directly through the Frontend API.
1.1.0 (2024-07-10)
- Updated version number to be consistent with server package.
1.0.1 (2024-06-05)
- Updated version number to be consistent with server package.
1.0.0 (2024-05-17)
- Frontend API is now generally available.
Version 1.0.0 of the Frontend API uses the new 3.0 release candidate of the OCM API which is integrated in the ContentCreator.
This requires the following changes to your project if they have not already been made when updating to version 0.23.0:
- Adding the PreviewRenderingPlugin
- Disable
Preview: Create Section
in theCXT ContentCreator: Feature Configuration Project App
.
0.25.0 (2024-03-22)
- Updated documentation on the hooks CONTENT_CHANGED and SECTION_CREATED payloads.
0.24.0 (2024-02-12)
- Updated version number to be consistent with server package.
0.23.0 (2024-01-30)
- Switch to version 3.0 release candidate of the OCM API.
- Updated getting started of API documentation.
Instead of using the OCM API provided by the FirstSpirit ThirdPartyPreview Module we now use the new 3.0 release candidate of the OCM API which is integrated in the ContentCreator.
This requires the following changes to your project:
- Adding the PreviewRenderingPlugin
- Disable
Preview: Create Section
in theCXT ContentCreator: Feature Configuration Project App
.
0.22.0 (2024-01-22)
- Updated version number to be consistent with server package.
0.20.0 (2023-12-21)
- The origin of received postMessage events is now checked
0.19.0 (2023-12-20)
- No changes or updates in this release.
0.18.0 (2023-12-01)
- Created method
setPage()
, replacingsetElement()
to add enhanced functionality like providing fetched pages directly and creating missing pages on demand.
0.17.0 (2023-11-27)
- Fixed a bug where the name of the slot could not be resolved during the creation of a sibling section.
- The unused name parameter for some OpenStorefrontUrl types was removed to unify the behavior between different triggers.
0.16.0 (2023-11-16)
- Moved the array access for
findPage()
from the client to the server package. - Improved mapping of store languages to FirstSpirit languages.
- Updated information about language attributes in API documentation.
- For single element access in
findPage()
, we moved the array access to the Server package to support server side rendering. As by definitionfindPage()
can only find one item,findPage()
now returns a single FindPageItem instead of an Array with one FindPageItem.
0.15.0 (2023-11-02)
- Added the
triggerChange
function to the TPP_BROKER object.
0.13.1 (2023-10-25)
- Fixed a bug in the static.js file that resulted in missing display names for reference pages.
0.13.0 (2023-10-06)
SECTION_CREATED
hook is now called when a sibling section is created via the 'Add Section' button in the ContentCreator frame.- Added new interface for custom code to access internal APIs.
- Added internal APIs to significantly extend the functionality of the Frontend API.
- In order to use the internal APIs, the hook
PREVIEW_INITIALIZED
must be implemented. This provides aTPP_BROKER
object. The corresponding instructions can be found in the documentation in the chapter "Extensibility" and in the Client Reference. - When adding a sibling section via the 'Add Section' button in the ContentCreator frame, now instead of
CONTENT_CHANGED
, theSECTION_CREATED
hook is called. Therefore the payload was extended:
export type CreateSectionHookPayload = {
/**
* Preview ID of page in FirstSpirit.
*/
pageId: string;
/**
* Name of slot where the section should be created into as defined in the FirstSpirit template.
*/
slotName: string;
/**
* Identifier of the section.
*/
identifier: string;
/**
* If not the first section in the slot, the sibling of the newly created section.
*/
siblingPreviewId?: string;
/**
* The data of the created section.
*/
sectionData: any;
};
0.12.1 (2023-09-08)
- Increased test coverage.
- External links in API documentation are now opened in a new browser tab.
Information on previous releases can be found in the Release Notes.