Skip to content

Commit a879339

Browse files
feat: import StudioFooterSlot from component package instead of slot package
1 parent ea0a031 commit a879339

File tree

12 files changed

+24
-36
lines changed

12 files changed

+24
-36
lines changed

package-lock.json

Lines changed: 8 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@dnd-kit/utilities": "^3.2.2",
4545
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.3",
4646
"@edx/browserslist-config": "1.2.0",
47-
"@edx/frontend-component-footer": "^14.3.0",
47+
"@edx/frontend-component-footer": "^14.6.0",
4848
"@edx/frontend-component-header": "^6.2.0",
4949
"@edx/frontend-enterprise-hotjar": "^7.2.0",
5050
"@edx/frontend-platform": "^8.3.1",
@@ -61,7 +61,6 @@
6161
"@openedx-plugins/course-app-xpert_unit_summary": "file:plugins/course-apps/xpert_unit_summary",
6262
"@openedx/frontend-build": "^14.3.3",
6363
"@openedx/frontend-plugin-framework": "^1.6.0",
64-
"@openedx/frontend-slot-footer": "^1.2.0",
6564
"@openedx/paragon": "^22.16.0",
6665
"@redux-devtools/extension": "^3.3.0",
6766
"@reduxjs/toolkit": "1.9.7",

src/CourseAuthoringPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useDispatch, useSelector } from 'react-redux';
55
import {
66
useLocation,
77
} from 'react-router-dom';
8-
import { StudioFooterSlot } from '@openedx/frontend-slot-footer';
8+
import { StudioFooterSlot } from '@edx/frontend-component-footer';
99
import Header from './header';
1010
import { fetchCourseDetail, fetchWaffleFlags } from './data/thunks';
1111
import { useModel } from './generic/model-store';

src/accessibility-page/AccessibilityPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
33
import { Helmet } from 'react-helmet';
44
import { Container } from '@openedx/paragon';
5-
import { StudioFooterSlot } from '@openedx/frontend-slot-footer';
5+
import { StudioFooterSlot } from '@edx/frontend-component-footer';
66

77
import Header from '../header';
88
import messages from './messages';

src/course-rerun/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
ActionRow,
88
Button,
99
} from '@openedx/paragon';
10-
import { StudioFooterSlot } from '@openedx/frontend-slot-footer';
10+
import { StudioFooterSlot } from '@edx/frontend-component-footer';
1111

1212
import { useNavigate, useParams } from 'react-router-dom';
1313

src/library-authoring/LibraryAuthoringPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from 'react';
77
import { Helmet } from 'react-helmet';
88
import classNames from 'classnames';
9-
import { StudioFooterSlot } from '@openedx/frontend-slot-footer';
9+
import { StudioFooterSlot } from '@edx/frontend-component-footer';
1010
import { useIntl } from '@edx/frontend-platform/i18n';
1111
import {
1212
ActionRow,

src/library-authoring/collections/LibraryCollectionPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect } from 'react';
2-
import { StudioFooterSlot } from '@openedx/frontend-slot-footer';
2+
import { StudioFooterSlot } from '@edx/frontend-component-footer';
33
import { useIntl } from '@edx/frontend-platform/i18n';
44
import {
55
ActionRow,

src/library-authoring/create-library/CreateLibrary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StudioFooterSlot } from '@openedx/frontend-slot-footer';
1+
import { StudioFooterSlot } from '@edx/frontend-component-footer';
22
import { useIntl } from '@edx/frontend-platform/i18n';
33
import {
44
Container,

src/plugin-slots/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
* [`course_unit_header_actions_slot`](./CourseUnitHeaderActionsSlot/)
1212

1313
## Footer Slot
14-
* [`studio_footer_slot`](./StudioFooterSlot/)
14+
* [`org.openedx.frontend.layout.studio_footer.v1`](./StudioFooterSlot/)

src/plugin-slots/StudioFooterSlot/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Studio Footer Slot
22

3-
### Slot ID: `studio_footer_slot`
3+
### Slot ID: `org.openedx.frontend.layout.studio_footer.v1`
4+
5+
### Slot ID Aliases
6+
* `studio_footer_slot`
47

58
## Description
69

710
This slot is used to replace/modify/hide the footer.
811

9-
The implementation of the `StudioFooterSlot` component lives in [the `frontend-slot-footer` repository](https://github.com/openedx/frontend-slot-footer/).
12+
The implementation of the `StudioFooterSlot` component lives in [the `frontend-component-footer` repository](https://github.com/openedx/frontend-component-footer/).
1013

1114
## Example
1215

@@ -23,7 +26,7 @@ import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-frame
2326

2427
const config = {
2528
pluginSlots: {
26-
studio_footer_slot: {
29+
'org.openedx.frontend.layout.studio_footer.v1': {
2730
plugins: [
2831
{
2932
// Hide the default footer

0 commit comments

Comments
 (0)