Skip to content

Commit 249ef33

Browse files
hitesh-shetty-cstkSahilCs15
authored andcommitted
Merge pull request #596 from contentstack/stage_v4
release: 4.4.2
2 parents 94a4e47 + dbd5ef8 commit 249ef33

46 files changed

Lines changed: 2408 additions & 98 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
11
# Changelog
22

3+
## [v4.4.2](https://github.com/contentstack/live-preview-sdk/compare/v4.4.2...v4.4.2)
4+
5+
> 21 May 2026
6+
7+
### Fixes
8+
9+
- fix: update CDN version to 4.4.2 in README (hitesh-shetty-cstk - [11bf951](https://github.com/contentstack/live-preview-sdk/commit/11bf9511a5deb7fb009ba9c01310504755a5f17c))
10+
- fix(hover): guard generateCursor to fire only on new element hover (Hitesh Shetty - [#590](https://github.com/contentstack/live-preview-sdk/pull/590))
11+
- fix(VB-1541): hide field extension and comment icons on update-restricted fields (Sahil Chalke - [#589](https://github.com/contentstack/live-preview-sdk/pull/589))
12+
- fix(security): bump dompurify from ^3.4.0 to ^3.4.1 (Hitesh Shetty - [#588](https://github.com/contentstack/live-preview-sdk/pull/588))
13+
14+
### Fixes
15+
16+
- fix(discussions): pull comment highlights after iframe DOM settles (REQUEST_DISCUSSION_HIGHLIGHTS) (Karan Gandhi - [f03cee9](https://github.com/contentstack/live-preview-sdk/commit/f03cee9e9b24d1f9ab41be25b392367e03c72355))
17+
- fix: debounce (Karan Gandhi - [ab5941f](https://github.com/contentstack/live-preview-sdk/commit/ab5941f359423620d3a9a171e2921b42b5d1a582))
18+
- fix(toolbar): re-check DOM guard after async gap in appendFieldToolbar (hitesh-shetty-cstk - [7a94fbc](https://github.com/contentstack/live-preview-sdk/commit/7a94fbcf9fb283c30cb7571ede8fc093a628d43f))
19+
- fix: test fixes (Karan Gandhi - [b9fb2bb](https://github.com/contentstack/live-preview-sdk/commit/b9fb2bba20ed038114455ca7378e597793d46238))
20+
- fix: update ws package version to 8.20.1 and add license information (hitesh-shetty-cstk - [677c505](https://github.com/contentstack/live-preview-sdk/commit/677c5058407dcab655b7dd1cc188170241bd742c))
21+
- fix: comment (Karan Gandhi - [be274f1](https://github.com/contentstack/live-preview-sdk/commit/be274f1750ed33fef37ea5dbfdc7ce089dbacb1d))
22+
23+
### Chores And Housekeeping
24+
25+
- chore: update CHANGELOG for release v4.4.1 and document recent fixes and changes (hitesh-shetty-cstk - [57dc9b8](https://github.com/contentstack/live-preview-sdk/commit/57dc9b89e6aae7805e16b1c088a367d942f57717))
26+
- chore: update package-lock.json from npm audit fix (hitesh-shetty-cstk - [7686285](https://github.com/contentstack/live-preview-sdk/commit/7686285a4f73af2226051afa38ac8e5f9fb9a143))
27+
28+
### General Changes
29+
30+
- Merge pull request #583 from contentstack/fix/discussion-comment-variant-cslp-highlight (Karan Bhavesh Gandhi - [76f205f](https://github.com/contentstack/live-preview-sdk/commit/76f205f200429c8d5a14bec72c5eebdd869a8c0b))
31+
332
## [v4.4.1](https://github.com/contentstack/live-preview-sdk/compare/v4.4.0...v4.4.1)
433

5-
> 28 April 2026
34+
> 4 May 2026
635
736
### New Features
837

@@ -15,6 +44,7 @@
1544

1645
### General Changes
1746

47+
- release: 4.4.1 (Hitesh Shetty - [#587](https://github.com/contentstack/live-preview-sdk/pull/587))
1848
- Fix 20 april snyk fixes 2 develop v4 sync (Aditya Pachauri - [#585](https://github.com/contentstack/live-preview-sdk/pull/585))
1949
- Vp 1721 fix known issues (Kirtesh Suthar - [#581](https://github.com/contentstack/live-preview-sdk/pull/581))
2050
- Vp 444 stag sync 2 (Aditya Pachauri - [#562](https://github.com/contentstack/live-preview-sdk/pull/562))
@@ -37,12 +67,16 @@
3767
- chore: update uuid to version 14.0.0 and add vite override (Kirtesh Suthar - [ece4aef](https://github.com/contentstack/live-preview-sdk/commit/ece4aefce7dc6a996d432853791942980db13ccb))
3868
- chore: audit fix (Karan Gandhi - [48e0c35](https://github.com/contentstack/live-preview-sdk/commit/48e0c35672caa4f54204003de6422830fa1379de))
3969
- chore: lodash bump (Kirtesh Suthar - [c340241](https://github.com/contentstack/live-preview-sdk/commit/c34024178dcd5522399364fd75d1b5f33f58c35d))
40-
- chore: lodash-es version upgrade (csAyushDubey - [f96d848](https://github.com/contentstack/live-preview-sdk/commit/f96d8485cb97745698ecb55e3f695701f8c271fb))
4170
- chore: update tsup configuration to ignore legacy build & dts during dev mode (hiteshshetty-dev - [db0fa6a](https://github.com/contentstack/live-preview-sdk/commit/db0fa6a8d289f22a3dc6fd2ee745b9ae60b85d0f))
4271
- chore: update doc for dev build mode (hiteshshetty-dev - [45d85f4](https://github.com/contentstack/live-preview-sdk/commit/45d85f4107dd6bbaefdf771ae50ff08068f925ea))
4372
- chore: upgrade tsup to latest version (hiteshshetty-dev - [52665c4](https://github.com/contentstack/live-preview-sdk/commit/52665c47ba54ccfeac31ca109789ff9f0a8e80e6))
44-
- chore: make husky pre-push hook executable (Kirtesh Suthar - [2cd613c](https://github.com/contentstack/live-preview-sdk/commit/2cd613c28ee24855da2b1fc3914b07d0fb526713))
4573
- chore: version bump (csAyushDubey - [2103266](https://github.com/contentstack/live-preview-sdk/commit/2103266fed8763285f5ea8e82a429a3b40015600))
74+
- chore: make husky pre-push hook executable (Kirtesh Suthar - [2cd613c](https://github.com/contentstack/live-preview-sdk/commit/2cd613c28ee24855da2b1fc3914b07d0fb526713))
75+
- chore: lodash-es version upgrade (csAyushDubey - [f96d848](https://github.com/contentstack/live-preview-sdk/commit/f96d8485cb97745698ecb55e3f695701f8c271fb))
76+
77+
### Documentation Changes
78+
79+
- docs: update CDN version reference to 4.4.1 in README (hitesh-shetty-cstk - [e5e0106](https://github.com/contentstack/live-preview-sdk/commit/e5e010658633a5bce7ed8721c453fb87b28d513a))
4680

4781
### Changes to Test Assests
4882

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ npm install @contentstack/live-preview-utils
2929

3030
### Load from a CDN (advanced)
3131

32-
Pin the version to match your app (update `4.4.1` when you upgrade):
32+
Pin the version to match your app (update `4.4.2` when you upgrade):
3333

3434
```html
3535
<script type="module" crossorigin="anonymous">
36-
import ContentstackLivePreview from "https://esm.sh/@contentstack/live-preview-utils@4.4.1";
36+
import ContentstackLivePreview from "https://esm.sh/@contentstack/live-preview-utils@4.4.2";
3737
3838
ContentstackLivePreview.init({
3939
stackDetails: {
@@ -71,6 +71,7 @@ You can configure the SDK using the following options:
7171
- [`mode`](docs/live-preview-configs.md#mode) (`preview` vs `builder`)
7272
- [`editButton`](docs/live-preview-configs.md#editbutton)
7373
- [`editInVisualBuilderButton`](docs/live-preview-configs.md#editinvisualbuilderbutton) (Start Editing outside Visual Editor)
74+
- [`overlayPropagation`](docs/live-preview-configs.md#overlaypropagation) (opt-in fallback to pierce blocking sibling overlays during hover/click detection)
7475
- [`cleanCslpOnProduction`](docs/live-preview-configs.md#cleancslponproduction)
7576
- [`stackDetails`](docs/live-preview-configs.md#stackdetails) ([`apiKey`](docs/live-preview-configs.md#apikey), [`environment`](docs/live-preview-configs.md#environment))
7677
- [`clientUrlParams`](docs/live-preview-configs.md#clienturlparams)[NA](docs/live-preview-configs.md#na-config) / [EU](docs/live-preview-configs.md#eu-config)

docs/live-preview-configs.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,33 @@ The editInVisualBuilderButton object contains two keys:
145145
The user can place the "Start Editing" button in four predefined positions
146146
top-left, top-right, bottom-left, and bottom-right.
147147

148+
### `overlayPropagation`
149+
150+
Use this option when hovering or clicking on a field in your app does nothing — no outline appears and the Edit button doesn't show up. This typically happens when another element (such as a navigation overlay, image layer, or layout spacer) sits on top of the field and captures the mouse event instead.
151+
152+
Enabling `overlayPropagation` tells the SDK to look through stacked elements at the cursor position to find the field underneath. It works in both Visual Builder and the standalone Live Preview Edit button.
153+
154+
> **When to enable:** Only turn this on if you notice fields that are invisible to hover/click in your specific app layout. It is off by default.
155+
156+
The `overlayPropagation` object contains one key:
157+
158+
1. #### `enable`
159+
| type | default | optional |
160+
| ------- | ------- | -------- |
161+
| boolean | false | yes |
162+
163+
Set to `true` to allow the SDK to detect fields that are visually covered by other elements.
164+
165+
**For example:**
166+
```ts
167+
ContentstackLivePreview.init({
168+
...
169+
overlayPropagation: {
170+
enable: true,
171+
}
172+
});
173+
```
174+
148175
### `cleanCslpOnProduction`
149176

150177
| type | default | optional |

main.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ You can configure the SDK using the following options:
7171
- [`mode`](docs/live-preview-configs.md#mode) (`preview` vs `builder`)
7272
- [`editButton`](docs/live-preview-configs.md#editbutton)
7373
- [`editInVisualBuilderButton`](docs/live-preview-configs.md#editinvisualbuilderbutton) (Start Editing outside Visual Editor)
74+
- [`overlayPropagation`](docs/live-preview-configs.md#overlaypropagation) (opt-in fallback to pierce blocking sibling overlays during hover/click detection)
7475
- [`cleanCslpOnProduction`](docs/live-preview-configs.md#cleancslponproduction)
7576
- [`stackDetails`](docs/live-preview-configs.md#stackdetails) ([`apiKey`](docs/live-preview-configs.md#apikey), [`environment`](docs/live-preview-configs.md#environment))
7677
- [`clientUrlParams`](docs/live-preview-configs.md#clienturlparams) — [NA](docs/live-preview-configs.md#na-config) / [EU](docs/live-preview-configs.md#eu-config)

package-lock.json

Lines changed: 14 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/live-preview-utils",
3-
"version": "4.4.1",
3+
"version": "4.4.2",
44
"description": "Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.",
55
"type": "module",
66
"types": "dist/legacy/index.d.ts",
@@ -91,7 +91,7 @@
9191
"classnames": "^2.5.1",
9292
"dayjs": "^1.11.13",
9393
"deepsignal": "^1.5.0",
94-
"dompurify": "^3.4.0",
94+
"dompurify": "^3.4.1",
9595
"get-xpath": "^3.2.0",
9696
"goober": "^2.1.16",
9797
"lodash-es": "^4.18.1",

0 commit comments

Comments
 (0)