Skip to content

Commit

Permalink
feat: listen to xblock interaction events
Browse files Browse the repository at this point in the history
feat: new edit modals

refactor: some refactoring

refactor: updated tests

refactor: some refactoring

refactor: some refactoring
  • Loading branch information
PKulkoRaccoonGang committed Nov 15, 2024
1 parent e9e8ec4 commit 54c22f2
Show file tree
Hide file tree
Showing 22 changed files with 713 additions and 276 deletions.
4 changes: 4 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@ export const REGEX_RULES = {
specialCharsRule: /^[a-zA-Z0-9_\-.'*~\s]+$/,
noSpaceRule: /^\S*$/,
};

export const IFRAME_FEATURE_POLICY = (
'microphone *; camera *; midi *; geolocation *; encrypted-media *, clipboard-write *'
);
10 changes: 9 additions & 1 deletion src/course-unit/CourseUnit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const CourseUnit = ({ courseId }) => {
isTitleEditFormOpen,
staticFileNotices,
currentlyVisibleToStudents,
unitXBlockActions,
sharedClipboardData,
showPasteXBlock,
showPasteUnit,
Expand All @@ -58,6 +59,7 @@ const CourseUnit = ({ courseId }) => {
handleTitleEdit,
handleCreateNewCourseXBlock,
handleConfigureSubmit,
courseVerticalChildren,
canPasteComponent,
isMoveModalOpen,
openMoveModal,
Expand Down Expand Up @@ -176,7 +178,13 @@ const CourseUnit = ({ courseId }) => {
courseId={courseId}
/>
)}
<XBlockContainerIframe blockId={blockId} />
<XBlockContainerIframe
courseId={courseId}
blockId={blockId}
unitXBlockActions={unitXBlockActions}
xblocks={courseVerticalChildren.children}
handleConfigureSubmit={handleConfigureSubmit}
/>
<AddComponent
blockId={blockId}
handleCreateNewCourseXBlock={handleCreateNewCourseXBlock}
Expand Down
Loading

0 comments on commit 54c22f2

Please sign in to comment.