Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds support for loading external theme CSS for MFEs [v7.1.2] #6

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
97e273e
build: start releasing alpha packages
arbrandes Mar 20, 2024
04bd5bd
chore(deps): update dependency @openedx/frontend-build to v13.0.29
renovate[bot] Mar 25, 2024
dc6d8b9
chore(deps): update dependency core-js to v3.36.1
renovate[bot] Mar 25, 2024
de09872
fix(deps): update dependency react-intl to v6.6.3
renovate[bot] Mar 25, 2024
d05c294
fix(deps): update dependency react-intl to v6.6.5
renovate[bot] Apr 22, 2024
464fd63
chore(deps): update dependency @openedx/frontend-build to v13.1.4
renovate[bot] Apr 22, 2024
6d965c2
chore(deps): update dependency @openedx/paragon to v22.2.2
renovate[bot] Apr 22, 2024
ccb86f2
chore(deps): update dependency core-js to v3.37.0
renovate[bot] Apr 22, 2024
3d9e0b1
build(deps): bump follow-redirects from 1.15.3 to 1.15.6 (#674)
dependabot[bot] Apr 22, 2024
f5934aa
build(deps-dev): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#676)
dependabot[bot] Apr 22, 2024
19991c9
build(deps-dev): bump express from 4.18.2 to 4.19.2 (#677)
dependabot[bot] Apr 22, 2024
76fe63b
build(deps): bump axios from 0.27.2 to 0.28.0 (#675)
dependabot[bot] Apr 22, 2024
f066ecb
feat: updated jest to v29 & frontend-build major version upgrade (#661)
BilalQamar95 Apr 22, 2024
9ecd462
fix(deps): update dependency axios to v0.28.1
renovate[bot] Apr 29, 2024
3f04b46
chore(deps): update dependency @openedx/paragon to v22.3.1
renovate[bot] Apr 29, 2024
07cfdf8
chore(deps): update dependency react-router-dom to v6.23.0
renovate[bot] Apr 29, 2024
9086fe7
chore(deps): update jamesives/github-pages-deploy-action action to v4…
renovate[bot] Apr 29, 2024
421c689
chore(deps): update dependency @openedx/paragon to v22.3.2
renovate[bot] May 6, 2024
5e1e9d7
chore(deps): update dependency @testing-library/jest-dom to v6.4.5
renovate[bot] May 6, 2024
3a398e3
chore(deps): update dependency jsdoc to v4.0.3
renovate[bot] May 6, 2024
05e6820
fix(deps): update dependency react-intl to v6.6.6
renovate[bot] May 6, 2024
8f6b08f
chore(deps): update dependency react-router-dom to v6.23.1
renovate[bot] May 13, 2024
fce8a3b
chore(deps): update dependency @openedx/paragon to v22.4.0
renovate[bot] May 13, 2024
768eb69
build: upgrade codecov from v3 to v3, use secret (#692)
kdmccormick May 15, 2024
c155686
fix: updated peerDependency for prop-type to resolve dependency confl…
BilalQamar95 May 17, 2024
abca058
chore(deps): update dependency core-js to v3.37.1
renovate[bot] May 20, 2024
5a054ea
chore(deps): update jamesives/github-pages-deploy-action action to v4…
renovate[bot] May 20, 2024
8196fa4
chore(deps): update dependency nodemon to v3.1.2
renovate[bot] Jun 3, 2024
9d2e727
fix(deps): update dependency react-intl to v6.6.8
renovate[bot] Jun 3, 2024
cc75fc9
chore(deps): update dependency @openedx/paragon to v22.6.0
renovate[bot] Jun 10, 2024
8775cbc
chore(deps): update dependency nodemon to v3.1.3
renovate[bot] Jun 10, 2024
b9958bd
chore(deps): update dependency @openedx/frontend-build to v14.0.9
renovate[bot] Jun 17, 2024
77f11bb
chore(deps): update dependency @testing-library/jest-dom to v6.4.6
renovate[bot] Jun 17, 2024
5c1b87d
chore: replace 'global' with 'globalThis' (#701)
bradenmacdonald Jun 18, 2024
f920fa1
chore: convert i18n data imports to import syntax (#700)
bradenmacdonald Jun 18, 2024
744d1bc
chore: bump frontend-build to update base eslint config (#710)
adamstankiewicz Jun 21, 2024
73bc7cc
chore(deps): update dependency @openedx/paragon to v22.6.1
renovate[bot] Jun 24, 2024
bc9c233
chore(deps): update dependency nodemon to v3.1.4
renovate[bot] Jun 24, 2024
3f0397b
chore(deps): update dependency react-router-dom to v6.24.0
renovate[bot] Jul 1, 2024
b0ac453
feat: updated axios to v1 along with respective packages (#604)
BilalQamar95 Jul 3, 2024
0cee911
chore(deps): update dependency react-router-dom to v6.24.1
renovate[bot] Jul 15, 2024
015e231
chore(deps): update jamesives/github-pages-deploy-action action to v4…
renovate[bot] Jul 15, 2024
dd77aa1
docs: Update the maintainer.
feanil Jul 19, 2024
ba3ff7e
fix: Correct the team name.
Jul 23, 2024
2705208
chore: define app entry point for webpack.dev.config.js (#726)
adamstankiewicz Aug 30, 2024
6e2470b
chore: remove core-js and regenerator-runtime (#702)
bradenmacdonald Sep 4, 2024
89a4cf1
test: Add Node 20 to CI matrix (#732)
BilalQamar95 Sep 16, 2024
2738307
build: Upgrade to Node 20 (#734)
BilalQamar95 Sep 19, 2024
aa1e080
chore(deps): update dependency @openedx/frontend-build to v14.1.4
renovate[bot] Sep 23, 2024
ba355ae
chore(deps): update dependency nodemon to v3.1.7
renovate[bot] Sep 23, 2024
53b44af
chore(deps): update dependency @openedx/frontend-build to v14.1.5
renovate[bot] Sep 30, 2024
8dd7f65
chore(deps): update jamesives/github-pages-deploy-action action to v4…
renovate[bot] Sep 30, 2024
0595104
chore(deps): update dependency @openedx/paragon to v22.8.1
renovate[bot] Oct 7, 2024
681d3f0
chore(deps): update dependency @testing-library/jest-dom to v6.5.0
renovate[bot] Oct 7, 2024
685863d
fix(deps): update dependency react-intl to v6.7.0
renovate[bot] Oct 7, 2024
264bf50
test: Remove support for Node 18 (#735)
BilalQamar95 Oct 31, 2024
e5d910c
feat: add ability to dynamically load theme overrides
adamstankiewicz May 20, 2023
eef32b9
fix: remove duplicate import
adamstankiewicz May 27, 2023
5d5b767
docs: update docs
adamstankiewicz May 29, 2023
99c006d
chore: clean up package-lock
adamstankiewicz Jun 1, 2023
e7a69eb
fix: brand overrides
adamstankiewicz Jun 5, 2023
1dacdf5
feat: support dark mode
dcoa Jul 21, 2023
7ed3fa7
fix: update dependenices and AppProvider test
dcoa May 8, 2024
fbc1ec2
style: fix variable name and funtion
dcoa May 10, 2024
827ce86
test: add useParagonTheme test
dcoa May 11, 2024
c7b014c
docs: update scope of paragon and brand for openedx
dcoa May 14, 2024
b47b904
refactor: allow multiple replacement in version replacement
dcoa May 17, 2024
3303799
refactor: update webpack dev config
dcoa May 22, 2024
c32afb4
refactor: avoid duplicated links if the theme varian is preloaded
dcoa May 23, 2024
92ccfcd
refactor: update useParagonTheme when some variables are missing
dcoa May 23, 2024
f605e1d
test: add new test csse for useParagonThemeCore
dcoa May 23, 2024
641372a
refactor: use modules for config file
dcoa May 23, 2024
0d3bd30
fix: fallback url
dcoa May 28, 2024
7cf1ef9
style: fix imports order
dcoa May 28, 2024
2aec75f
refactor: create isEmptyObject and fallbackThemeUrl utils
dcoa May 28, 2024
d0603bd
test: refactor testing fot app provider, theme core hook, theme varia…
dcoa May 28, 2024
343e2a4
docs: improve themening documentation
dcoa Jun 3, 2024
717b32f
chore: update dependencies and regenerate package-lock
dcoa Jun 26, 2024
363540b
temp: add dist folder for testing purposes
dcoa Jul 22, 2024
12e0fc8
refactor: allow env PARAGON_THEME_URLS definition
dcoa Dec 2, 2024
b58c31c
test: regenerate dist folder for testing
dcoa Dec 2, 2024
bfece0f
fix: remove scss imports for example app
dcoa Dec 2, 2024
04ad877
feat: [RGInt-332] update code to be compatible with redwood release
ihor-romaniuk Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ STUDIO_BASE_URL=http://localhost:18010
MARKETING_SITE_BASE_URL=http://localhost:18000
ORDER_HISTORY_URL=http://localhost:1996/orders
REFRESH_ACCESS_TOKEN_ENDPOINT=http://localhost:18000/login_refresh
SEGMENT_KEY=''
SEGMENT_KEY=
SITE_NAME=localhost
USER_INFO_COOKIE_NAME=edx-user-info
LOGO_URL=https://edx-cdn.org/v3/default/logo.svg
Expand All @@ -27,4 +27,5 @@ FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
IGNORED_ERROR_REGEX=
MFE_CONFIG_API_URL=
APP_ID=
SUPPORT_URL=https://support.edx.org
SUPPORT_URL=https://support.edx.org
PARAGON_THEME_URLS={}
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ IGNORED_ERROR_REGEX=
MFE_CONFIG_API_URL=
APP_ID=
SUPPORT_URL=https://support.edx.org
PARAGON_THEME_URLS={}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: npm run docs

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.5.0
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/api/@edx/frontend-platform/1.0.0-semantically-released # The folder the action should deploy.
Expand Down
Binary file added docs/how_tos/assets/paragon-theme-loader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
259 changes: 259 additions & 0 deletions docs/how_tos/theming.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion env.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ const config = {
JS_FILE_VAR: 'JS_FILE_VAR_VALUE_FOR_EXAMPLE_APP',
};

export default config;
module.exports = config;
3 changes: 2 additions & 1 deletion example/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import { APP_INIT_ERROR, APP_READY, initialize } from '@edx/frontend-platform';
import { subscribe } from '@edx/frontend-platform/pubSub';
import { Routes, Route } from 'react-router-dom';

import './index.scss';
import ExamplePage from './ExamplePage';
import AuthenticatedPage from './AuthenticatedPage';

import './index.scss';

subscribe(APP_READY, () => {
ReactDOM.render(
<AppProvider>
Expand Down
5 changes: 1 addition & 4 deletions example/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
@import "@edx/brand/paragon/fonts";
@import "@edx/brand/paragon/variables";
@import "@openedx/paragon/scss/core/core";
@import "@edx/brand/paragon/overrides";
@use "@openedx/paragon/styles/css/core/custom-media-breakpoints.css" as paragonCustomMediaBreakpoints;
Loading
Loading