Skip to content

Release v4.5.0 - #632

Open
karancs06 wants to merge 13 commits into
mainfrom
stage_v4
Open

Release v4.5.0#632
karancs06 wants to merge 13 commits into
mainfrom
stage_v4

Conversation

@karancs06

Copy link
Copy Markdown
Contributor

Summary

Release v4.5.0 of @contentstack/live-preview-utils.

Minor bump rather than patch because this adds a new public export.

Features

Fixes

Housekeeping

  • README CDN URL bumped to 4.5.0
  • CHANGELOG regenerated via auto-changelog

🤖 Generated with Claude Code

karancs06 and others added 13 commits July 14, 2026 17:52
Inline-editable fields kept an LTR caret even when the content was
right-to-left, so the caret ignored where RTL text (Arabic, Hebrew) was
being inserted. Set dir="auto" on the editable element so the browser
derives writing direction from the content, and clear it on teardown.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The pseudo element used for truncated/mismatched fields copies the
source element's computed direction/unicode-bidi inline, which overrode
dir="auto" and left an LTR caret on RTL content. Exclude both from the
copied styles so the attribute governs direction on that path too.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix(VB-1797): match caret direction to text when inline editing
Expose isVisualEditorEditing(element) so a site can pause self-updating
content (CSS animations, carousels, polled/streamed data) while a field is
being edited in Visual Editor. It reads the existing data-cslp-field-type
marker the SDK already sets on the focused element, is side-effect-free, and
returns false during SSR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…diting

feat(VB-2055): add isVisualEditorEditing helper
…rash

VisualBuilder called goober's setup(h) with Preact's h at init, which
mutates goober's shared global pragma. A host app that also uses a
goober-backed library such as react-hot-toast then renders through that
pragma, emitting Preact elements into a React 19 tree and crashing with
"A React Element from an older version of React was rendered."

The SDK only uses goober's css/glob/keyframes, none of which read the
pragma, and never uses styled (the sole pragma consumer). setup(h) was
therefore inert for the SDK and only leaked into the host. Removing it
restores the pragma-free behavior the SDK shipped with before the call
was introduced.

Co-Authored-By: Claude <noreply@anthropic.com>
…react19-crash

fix: isolate goober pragma from host app to prevent react-hot-toast crash
develop to stage 6 aug release
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@karancs06
karancs06 requested a review from a team as a code owner August 5, 2026 11:44
@snyk-io

snyk-io Bot commented Aug 5, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.35% 2523 / 3746
🔵 Statements 66.23% 2564 / 3871
🔵 Functions 64.56% 450 / 697
🔵 Branches 61.96% 1533 / 2474
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/index.ts 100% 100% 100% 100%
src/visualBuilder/index.ts 53.03% 26.76% 31.25% 53.03% 111-114, 119-128, 134-204, 212-245, 255-276, 330-332, 336, 390-393, 101-107
src/visualBuilder/utils/editingState.ts 100% 100% 100% 100%
src/visualBuilder/utils/enableInlineEditing.ts 100% 100% 100% 100%
src/visualBuilder/utils/getStyleOfAnElement.ts 100% 100% 100% 100%
src/visualBuilder/utils/handleIndividualFields.ts 97.14% 77.77% 100% 97.14% 99
Generated in workflow #878 for commit 76f5ca7 by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants