Skip to content

Migrate iframe widget to WidgetPropsV2#3877

Merged
benchristel merged 5 commits into
benc/widget-props-redesignfrom
benc/widget-props-4
Jul 9, 2026
Merged

Migrate iframe widget to WidgetPropsV2#3877
benchristel merged 5 commits into
benc/widget-props-redesignfrom
benc/widget-props-4

Conversation

@benchristel

Copy link
Copy Markdown
Member

Summary:

This continues the work started in #3869.

I removed the default props because:

  • allowFullScreen can't be undefined, so the default was never used.
  • allowTopNavigation wasn't used by the component.

Issue: LEMS-4354

Test plan:

@benchristel benchristel self-assigned this Jul 8, 2026
@benchristel benchristel requested a review from handeyeco July 8, 2026 19:04
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Size Change: +32 B (+0.01%)

Total Size: 517 kB

📦 View Changed
Filename Size Change
packages/perseus/dist/es/index.js 204 kB +32 B (+0.02%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.6 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 6.31 kB
packages/math-input/dist/es/index.js 98.5 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 12.9 kB
packages/perseus-core/dist/es/index.js 27.7 kB
packages/perseus-editor/dist/es/index.js 104 kB
packages/perseus-linter/dist/es/index.js 9.79 kB
packages/perseus-score/dist/es/index.js 9.86 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/strings.js 12.4 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.71 kB

compressed-size-action

/** Whether to allow the iframe content to redirect the page */
/**
* Whether to allow the iframe content to redirect the page
* @deprecated - not used in Perseus.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

const style = {
width: String(this.props.width),
height: String(this.props.height),
width: String(this.props.options.width),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder if it's worth destructuring at the start of render so we don't have these this.props.options in several places.

@benchristel benchristel force-pushed the benc/widget-props-3 branch 3 times, most recently from 1278560 to 1b50504 Compare July 9, 2026 17:38
@benchristel benchristel force-pushed the benc/widget-props-4 branch from ad9ed8e to a11a2c8 Compare July 9, 2026 17:40
Base automatically changed from benc/widget-props-3 to benc/widget-props-redesign July 9, 2026 17:51
@benchristel benchristel force-pushed the benc/widget-props-4 branch from a11a2c8 to 4300c26 Compare July 9, 2026 17:55
@benchristel benchristel merged commit 93605b1 into benc/widget-props-redesign Jul 9, 2026
10 checks passed
@benchristel benchristel deleted the benc/widget-props-4 branch July 9, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants