Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
47a6f29
feat: added variant order handling logic
csAyushDubey Aug 26, 2025
15c8f04
feat: added resolved variants permission handling logic
csAyushDubey Sep 12, 2025
90b0a01
Merge branch 'develop_v4' into feature/VB-499-resolved-variant-perms
csAyushDubey Oct 26, 2025
9ee8f8e
fix: tests
csAyushDubey Oct 26, 2025
1ba0b65
test: added test cases
csAyushDubey Oct 27, 2025
f3d83b7
fix: added removal for class
csAyushDubey Oct 28, 2025
0dc07d6
fix: tests
csAyushDubey Oct 31, 2025
74e6e5b
fix: partial state clear when DOM is not visible during mutuation and…
hiteshshetty-dev Nov 24, 2025
48e6c69
chore: add TODOs for overlay and toolbar position logic to consolidat…
hiteshshetty-dev Nov 24, 2025
34b7e42
fix: handle empty data-cslp attributes in getEntryIdentifiersInCurren…
hiteshshetty-dev Nov 25, 2025
b1da67e
test: add additional header element to getEntryIdentifiersInCurrentPa…
hiteshshetty-dev Nov 26, 2025
ba91cb0
fix: handle invalid data-cslp attributes across multiple components t…
hiteshshetty-dev Nov 26, 2025
c7c811b
Merge remote-tracking branch 'origin/feature/VB-499-resolved-variant-…
hiteshshetty-dev Nov 27, 2025
0716ad8
vitest 3 - stage (#532)
karancs06 Dec 4, 2025
8eb8871
Merge remote-tracking branch 'origin/main' into stage_v4
hiteshshetty-dev Dec 5, 2025
d91505a
feat: adding post messages to link unlinked ct to variant group
karancs06 Oct 10, 2025
9c012d7
fix: updated console
karancs06 Oct 10, 2025
41495ff
feat: test cases added
karancs06 Oct 13, 2025
8d76bf5
fix: string and focus unfocus on variant link
karancs06 Oct 14, 2025
db41af6
fix: addressed changes
karancs06 Oct 14, 2025
0a02de0
fix: removing revalidate post message
karancs06 Oct 27, 2025
ea83fa4
fix: requested changes done
karancs06 Nov 3, 2025
8d60b64
fix: response of postmessage changed
karancs06 Nov 3, 2025
7b21215
fix: remove console
karancs06 Nov 3, 2025
01a4528
fix: formatting removed
karancs06 Nov 3, 2025
fcccd50
fix: changes requested
karancs06 Nov 7, 2025
3d9ea50
fix: lowercase
karancs06 Nov 10, 2025
0c8b714
fix: object freeze
karancs06 Nov 11, 2025
0e50615
Merge remote-tracking branch 'origin/VB-593-v2' into stage_v4
hiteshshetty-dev Dec 5, 2025
83a1885
Merge remote-tracking branch 'origin/VB-576' into stage_v4
hiteshshetty-dev Dec 5, 2025
2e82518
Merge remote-tracking branch 'origin/VB-530-main-support-to-link-vari…
hiteshshetty-dev Dec 5, 2025
087eaab
4.1.3
hiteshshetty-dev Dec 5, 2025
c1ba6fd
chore: bump live-preview-utils version to 4.1.3
hiteshshetty-dev Dec 5, 2025
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
4 changes: 2 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
- name: "Install Node"
uses: actions/setup-node@v4
with:
node-version: "21.x"
node-version: "22.x"
- name: "Install Deps"
run: npm install
- name: "Test"
run: npx vitest --coverage.enabled true
run: npm run test:coverage
- name: "Report Coverage"
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,10 @@ temp/

.DS_Store

# Test results and profiling reports
test-results.json
junit.xml
test-reports/
test-profile-report.json

# End of https://www.toptal.com/developers/gitignore/api/node,web,vscode
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Changelog

## [v4.1.3](https://github.com/contentstack/live-preview-sdk/compare/v4.1.2...v4.1.3)

> 5 December 2025

### General Changes

- vitest 3 - stage (Karan Gandhi - [#532](https://github.com/contentstack/live-preview-sdk/pull/532))
- v4.1.2 (Hitesh Shetty - [#523](https://github.com/contentstack/live-preview-sdk/pull/523))

### New Features

- feat: test cases added (Karan Gandhi - [41495ff](https://github.com/contentstack/live-preview-sdk/commit/41495ffa6f32f83a042ab5beffb9d7ad6eddd15e))
- feat: adding post messages to link unlinked ct to variant group (Karan Gandhi - [d91505a](https://github.com/contentstack/live-preview-sdk/commit/d91505a74cf2c60ed146500900ea9254d938ca34))
- feat: added resolved variants permission handling logic (csAyushDubey - [15c8f04](https://github.com/contentstack/live-preview-sdk/commit/15c8f04508cc072c846aebf7185b72f1bc179036))
- feat: added variant order handling logic (csAyushDubey - [47a6f29](https://github.com/contentstack/live-preview-sdk/commit/47a6f2966c0aca90629fc5bcd5ec2f0579384525))

### Fixes

- fix: removing revalidate post message (Karan Gandhi - [0a02de0](https://github.com/contentstack/live-preview-sdk/commit/0a02de027a505ab248c7341eb5af24cf92e970e2))
- fix: string and focus unfocus on variant link (Karan Gandhi - [8d76bf5](https://github.com/contentstack/live-preview-sdk/commit/8d76bf52829b0c1323f60412f96d05689f300753))
- fix: handle invalid data-cslp attributes across multiple components to prevent errors (hiteshshetty-dev - [ba91cb0](https://github.com/contentstack/live-preview-sdk/commit/ba91cb0472d0903a1d21b7fc546181f3d6924bb5))
- fix: changes requested (Karan Gandhi - [fcccd50](https://github.com/contentstack/live-preview-sdk/commit/fcccd5026ce11fd1a5b4ed5f8f9a304685e68c9e))
- fix: remove console (Karan Gandhi - [7b21215](https://github.com/contentstack/live-preview-sdk/commit/7b212153cd4510f284bb2ee63943729a0deca1d3))
- fix: formatting removed (Karan Gandhi - [01a4528](https://github.com/contentstack/live-preview-sdk/commit/01a4528f0333c8a2b516ec96191213e8e59fc6dd))
- fix: addressed changes (Karan Gandhi - [db41af6](https://github.com/contentstack/live-preview-sdk/commit/db41af6aa73283a18aa85566f32f8ee454c81664))
- fix: partial state clear when DOM is not visible during mutuation and resize checks (hiteshshetty-dev - [74e6e5b](https://github.com/contentstack/live-preview-sdk/commit/74e6e5bc3e3445a25c823b3e5f5dd7c56490e16c))
- fix: object freeze (Karan Gandhi - [0c8b714](https://github.com/contentstack/live-preview-sdk/commit/0c8b7148ec7edcda235990347bb48d7ada92b822))
- fix: tests (csAyushDubey - [9ee8f8e](https://github.com/contentstack/live-preview-sdk/commit/9ee8f8e8a3e27d3b3fd9aee0dbbfc5df0f8d9b57))
- fix: requested changes done (Karan Gandhi - [ea83fa4](https://github.com/contentstack/live-preview-sdk/commit/ea83fa4a9559da1cdc0f84d745acdbbd3f63fab3))
- fix: handle empty data-cslp attributes in getEntryIdentifiersInCurrentPage function (hiteshshetty-dev - [34b7e42](https://github.com/contentstack/live-preview-sdk/commit/34b7e42fb5b720008acde17a2071a09ebc9abdc2))
- fix: tests (csAyushDubey - [0dc07d6](https://github.com/contentstack/live-preview-sdk/commit/0dc07d6c706723510ee5ce02893d92ad5b4a2fc2))
- fix: response of postmessage changed (Karan Gandhi - [8d60b64](https://github.com/contentstack/live-preview-sdk/commit/8d60b642a794392744bfcc203ba041538fade69e))
- fix: updated console (Karan Gandhi - [9c012d7](https://github.com/contentstack/live-preview-sdk/commit/9c012d7739337258db067383bd207fe98dae22c5))
- fix: added removal for class (csAyushDubey - [f3d83b7](https://github.com/contentstack/live-preview-sdk/commit/f3d83b7eea482fb111be858e1ffcdeee28ac65c4))
- fix: lowercase (Karan Gandhi - [3d9ea50](https://github.com/contentstack/live-preview-sdk/commit/3d9ea50df086eac0f0466e076062453c40db884f))

### Chores And Housekeeping

- chore: add TODOs for overlay and toolbar position logic to consolidate with existing methods (hiteshshetty-dev - [48e6c69](https://github.com/contentstack/live-preview-sdk/commit/48e6c6951453503f8bbd87dea61d21c82da162bb))
- chore: update live-preview-utils to version 4.1.2 in README (hiteshshetty-dev - [dfa1c7c](https://github.com/contentstack/live-preview-sdk/commit/dfa1c7cff4dcc4bb0c587a52c47572e74063caf7))

### Changes to Test Assests

- test: added test cases (csAyushDubey - [1ba0b65](https://github.com/contentstack/live-preview-sdk/commit/1ba0b65d89c654507c0a704c9209245138dd7919))
- test: add additional header element to getEntryIdentifiersInCurrentPage test case (hiteshshetty-dev - [b1da67e](https://github.com/contentstack/live-preview-sdk/commit/b1da67ed571b054e4e701d5e0cce2945559c95b5))

## [v4.1.2](https://github.com/contentstack/live-preview-sdk/compare/v4.1.1...v4.1.2)

> 10 November 2025
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Alternatively, if you want to include the package directly in your website HTML

```html
<script type='module' crossorigin="anonymous">
import ContentstackLivePreview from 'https://esm.sh/@contentstack/live-preview-utils@4.1.2';
import ContentstackLivePreview from 'https://esm.sh/@contentstack/live-preview-utils@4.1.3';

ContentstackLivePreview.init({
stackDetails: {
Expand Down
Loading
Loading