diff --git a/package-lock.json b/package-lock.json index 8dd30b2ea1..4f4c257064 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@fortawesome/free-brands-svg-icons": "6.6.0", "@fortawesome/free-solid-svg-icons": "6.6.0", "@fortawesome/react-fontawesome": "0.2.2", + "@openedx/frontend-plugin-framework": "^1.2.3", "@openedx/paragon": "^22.1.1", "@optimizely/react-sdk": "^2.9.1", "@redux-devtools/extension": "3.3.0", @@ -3906,6 +3907,27 @@ "node": ">=4.2.0" } }, + "node_modules/@openedx/frontend-plugin-framework": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@openedx/frontend-plugin-framework/-/frontend-plugin-framework-1.2.3.tgz", + "integrity": "sha512-2FBBDESusqruZHuMDNZ7SmegwXlKcrR1Po0kgEbRUGnpZKCmDnpMc8koX0vaivl7Y+XB8FBZuWV6DSC1aXwrSw==", + "dependencies": { + "@edx/brand": "npm:@openedx/brand-openedx@^1.2.2", + "classnames": "^2.3.2", + "core-js": "3.37.1", + "react-redux": "7.2.9", + "redux": "4.2.1", + "regenerator-runtime": "0.14.1" + }, + "peerDependencies": { + "@edx/frontend-platform": "^7.0.0 || ^8.0.0", + "@openedx/paragon": "^21.0.0 || ^22.0.0", + "prop-types": "^15.8.0", + "react": "^17.0.0", + "react-dom": "^17.0.0", + "react-error-boundary": "^4.0.11" + } + }, "node_modules/@openedx/paragon": { "version": "22.7.0", "resolved": "https://registry.npmjs.org/@openedx/paragon/-/paragon-22.7.0.tgz", diff --git a/package.json b/package.json index c830876138..3a8792f141 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@fortawesome/free-brands-svg-icons": "6.6.0", "@fortawesome/free-solid-svg-icons": "6.6.0", "@fortawesome/react-fontawesome": "0.2.2", + "@openedx/frontend-plugin-framework": "^1.2.3", "@openedx/paragon": "^22.1.1", "@optimizely/react-sdk": "^2.9.1", "@redux-devtools/extension": "3.3.0", diff --git a/src/MainApp.jsx b/src/MainApp.jsx index 26c2cf594a..1848fcdf84 100755 --- a/src/MainApp.jsx +++ b/src/MainApp.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { getConfig } from '@edx/frontend-platform'; import { AppProvider } from '@edx/frontend-platform/react'; +import { PluginSlot } from '@openedx/frontend-plugin-framework'; import { Helmet } from 'react-helmet'; import { Navigate, Route, Routes } from 'react-router-dom'; @@ -37,26 +38,28 @@ const MainApp = () => ( {getConfig().ZENDESK_KEY && } - - } /> - } - /> - - } - /> - } /> - } /> - } /> - } /> - } /> - } /> - } /> - + + + } /> + } + /> + + } + /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + );