Skip to content

feat: v3.2.5#452

Merged
karancs06 merged 15 commits intostage_v3from
develop_v3
Jul 10, 2025
Merged

feat: v3.2.5#452
karancs06 merged 15 commits intostage_v3from
develop_v3

Conversation

@karancs06
Copy link
Copy Markdown
Contributor

This pull request introduces version 3.2.5 of the Live Preview SDK, focusing on new features, bug fixes, and improvements to testing and utility functions. The most significant changes include adding a new utility function isOpenInBuilder, modifying event listener behavior for better compatibility, and updating documentation and versioning.

New Features

  • Added isOpenInBuilder utility function to determine if the application is opened in the builder mode.
  • Integrated the isOpenInBuilder function into VisualBuilder components for enhanced functionality. [1] [2]

Bug Fixes

  • Changed event listener from window.addEventListener to document.addEventListener for better handling of DOMContentLoaded events. [1] [2]
  • Updated logic in LivePreview to handle DOMContentLoaded events and ensure data synchronization when the document is ready.

Versioning and Documentation Updates

  • Updated the package version to 3.2.5 in package.json and corresponding references in README.md. [1] [2]

Testing Enhancements

  • Mocked isOpenInBuilder in unit tests for VisualBuilder components to simulate builder mode behavior. [1] [2]

SahilCs15 and others added 13 commits June 13, 2025 20:06
Release - 12th June (merge `stage_v3`)
…r-visual-builder-ui-elements-and-hide-when-not-in-use

VE-6559:add isOpenInBuilder utility function and integrate into VisualBuilder components
…ndering

fix: start editing button not rendering
Optimisation: `init` to emit postMessage on `DOMContentLoaded`
The height of the cloned/psuedo-editable element collapses when
text-wrap-mode is set to nowrap and text-overflow is set to ellipsis.
This change ensures that we override these properties CORRECTLY.
Previously we overrode these properties but only in camel case. Now we
ensure we perform the camelCase transformation after overriding
properties. We also set min-height to whatever the current height of the
element is, to prevent height collapse in other scenarios.
…height-collapse

fix(VE-6459): psuedo-editable height collapse
@karancs06 karancs06 requested a review from a team as a code owner July 9, 2025 11:03
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 9, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 72.39% 8613 / 11897
🔵 Statements 72.39% 8613 / 11897
🔵 Functions 71.83% 306 / 426
🔵 Branches 84.79% 1071 / 1263
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/livePreview/live-preview.ts 95.65% 84.61% 100% 95.65% 50-51, 61
src/utils/index.ts 88.57% 71.42% 100% 88.57% 29-30, 38-39
src/visualBuilder/index.ts 56.86% 66.66% 42.85% 56.86% 94-101, 104-108, 111-123, 126-199, 205-237, 245-267, 318-321, 324-325
src/visualBuilder/components/VisualBuilder.tsx 100% 100% 100% 100%
src/visualBuilder/components/index.tsx 100% 100% 100% 100%
src/visualBuilder/generators/generateStartEditingButton.tsx 89.47% 80% 100% 89.47% 23-24
src/visualBuilder/utils/getPsuedoEditableEssentialStyles.ts 100% 100% 100% 100%
src/visualBuilder/utils/getPsuedoEditableStylesElement.ts 100% 100% 100% 100%
Generated in workflow #447 for commit cf73f0b by the Vitest Coverage Report Action

@karancs06 karancs06 requested a review from faraazb July 10, 2025 05:54
@karancs06 karancs06 changed the base branch from main to stage_v3 July 10, 2025 06:40
@karancs06 karancs06 merged commit 3d61705 into stage_v3 Jul 10, 2025
10 checks passed
@karancs06 karancs06 deleted the develop_v3 branch July 10, 2025 06:40
@karancs06 karancs06 restored the develop_v3 branch July 10, 2025 06:40
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.

7 participants