diff --git a/packages/package.json b/packages/package.json index aa166b305f..b7920f5ac6 100644 --- a/packages/package.json +++ b/packages/package.json @@ -1,6 +1,6 @@ { "name": "@junyiacademy/perseus-core", - "version": "1.0.35", + "version": "1.0.36", "main": "./dist/index.js", "types": "./dist/index.d.ts", "license": "MIT", diff --git a/packages/perseus/src/renderer.tsx b/packages/perseus/src/renderer.tsx index 27d27b4af8..ac1697299b 100644 --- a/packages/perseus/src/renderer.tsx +++ b/packages/perseus/src/renderer.tsx @@ -172,6 +172,7 @@ type Props = Partial> & { widgets: PerseusRenderer["widgets"]; // Skip adding paragraph class inline?: boolean; + readOnly?: boolean; isPrinterView?: boolean; parentGroups?: {id: string; groupType: string}[]; }; @@ -630,6 +631,7 @@ class Renderer extends React.Component { }, trackInteraction: interactionTracker.track, isLastUsedWidget: id === this.state.lastUsedWidgetId, + readOnly: this.props.readOnly, isPrinterView: this.props.isPrinterView, ...(this.props.parentGroups ? {parentGroups: this.props.parentGroups}