Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
30975d3
feat: adding post messages to link unlinked ct to variant group
karancs06 Oct 10, 2025
0817211
fix: updated console
karancs06 Oct 10, 2025
6936fef
feat: test cases added
karancs06 Oct 13, 2025
17e8f5d
fix: string and focus unfocus on variant link
karancs06 Oct 14, 2025
8f2da6e
fix: addressed changes
karancs06 Oct 14, 2025
9e568d8
fix: removing revalidate post message
karancs06 Oct 27, 2025
879d4d9
Merge pull request #518 from contentstack/VB-602
hiteshshetty-dev Oct 30, 2025
b84c08a
Merge branch 'develop_v4' into VB-530-support-to-link-unlinked-ct-to-…
karancs06 Oct 30, 2025
88394b6
Merge pull request #517 from contentstack/feature/VB-499-resolved-var…
csAyushDubey Oct 31, 2025
cb98dad
fix: requested changes done
karancs06 Nov 3, 2025
1ba39e6
fix: response of postmessage changed
karancs06 Nov 3, 2025
13cb10f
fix: remove console
karancs06 Nov 3, 2025
300b479
fix: formatting removed
karancs06 Nov 3, 2025
19572da
Merge pull request #520 from contentstack/VB-629
hiteshshetty-dev Nov 5, 2025
1b594a6
Merge pull request #519 from contentstack/VB-633
hiteshshetty-dev Nov 5, 2025
ad51ff2
fix: changes requested
karancs06 Nov 7, 2025
2628269
fix: lowercase
karancs06 Nov 10, 2025
c0d9611
fix: object freeze
karancs06 Nov 11, 2025
388370e
Merge branch 'develop_v4' into VB-530-support-to-link-unlinked-ct-to-…
karancs06 Nov 13, 2025
4c9d670
Merge pull request #514 from contentstack/VB-530-support-to-link-unli…
karancs06 Nov 13, 2025
a1ee15d
Merge remote-tracking branch 'origin/main' into develop_v4
hiteshshetty-dev Nov 24, 2025
2188110
Merge pull request #527 from contentstack/VB-593-v2
hiteshshetty-dev Nov 25, 2025
9000f02
Merge pull request #528 from contentstack/VB-576
hiteshshetty-dev Dec 1, 2025
84f8a26
Vitest 3 optimizing (#524)
karancs06 Dec 3, 2025
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
2ea5c3b
Merge branch 'stage_v4' into develop_v4
karancs06 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
78efa76
Merge remote-tracking branch 'origin/main' into develop_v4
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