Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
8638026
refactor: moved outline styles to independent classname
hiteshshetty-dev Dec 4, 2025
c78d7a8
feat: add highlight variant fields functionality and update related e…
hiteshshetty-dev Dec 4, 2025
16d00e0
feat: implement variant classname addition in MutationObserver for sy…
hiteshshetty-dev Dec 4, 2025
8685096
style: format conditional statements for improved readability
hiteshshetty-dev Dec 4, 2025
32d8d74
test: enhance useVariantsPostMessageEvent tests with SSR handling and…
hiteshshetty-dev Dec 4, 2025
8a1c308
Merge remote-tracking branch 'origin/feature/VB-499-resolved-variant-…
hiteshshetty-dev Dec 4, 2025
0420e0f
fix: ensure variantOrder defaults to an empty array if not provided i…
hiteshshetty-dev Dec 4, 2025
9fa65aa
Merge remote-tracking branch 'origin/develop_v4' into VB-138+sync-dev
hiteshshetty-dev Dec 4, 2025
122dd2c
refactor: change variable declaration from let to const for tooltip i…
hiteshshetty-dev Dec 4, 2025
ef5c964
refactor: remove commented-out code in useVariantsPostMessageEvent te…
hiteshshetty-dev Dec 5, 2025
76f34f6
test: update live preview HOC tests to verify additional postMessage …
hiteshshetty-dev Dec 5, 2025
4a55bad
refactor: simplify debounce function by directly using addVariantFiel…
hiteshshetty-dev Jan 2, 2026
9cee87c
Merge branch 'VB-138' into VB-138+sync-dev
hiteshshetty-dev Jan 2, 2026
20ff3b8
fix: ensure highlight variant fields are disabled when removing variant
hiteshshetty-dev Jan 2, 2026
e761478
Merge remote-tracking branch 'origin/main' into VB-138+sync-dev
hiteshshetty-dev Jan 2, 2026
2eea536
Merge remote-tracking branch 'origin/main' into VB-138+sync-dev
hiteshshetty-dev Jan 2, 2026
05b8105
chore: update copyright year in README.md to 2026
hiteshshetty-dev Jan 2, 2026
298ad6a
Merge remote-tracking branch 'origin/develop_v4' into VB-138+sync-dev
hiteshshetty-dev Jan 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ContentstackLivePreview.init({

MIT License

Copyright © 2021-2025 [Contentstack](https://www.contentstack.com/). All Rights Reserved
Copyright © 2021-2026 [Contentstack](https://www.contentstack.com/). All Rights Reserved

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ describe("cslp tooltip", () => {
});
new LivePreview();

let tooltip = document.querySelector(
const tooltip = document.querySelector(
"[data-test-id='cs-cslp-tooltip']"
);
const tooltipParent = tooltip?.parentNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ describe("Live Preview HOC init", () => {
expect(livePreviewPostMessageSpy).toHaveBeenCalledTimes(1);
expect(visualBuilderPostMessageSpy).toHaveBeenCalledWith('init', { isSSR: true, href: 'http://localhost:3000/' });
expect(visualBuilderPostMessageSpy).toHaveBeenCalledWith('send-variant-and-locale');
expect(visualBuilderPostMessageSpy).toHaveBeenCalledTimes(2);
expect(visualBuilderPostMessageSpy).toHaveBeenCalledWith('get-highlight-variant-fields-status');
expect(visualBuilderPostMessageSpy).toHaveBeenCalledTimes(3);
});

test("should return the existing live preview instance if it is already initialized", async () => {
Expand Down
Loading
Loading