@openedx/paragon 23.19.0 → 23.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +27 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -514,10 +514,34 @@ Paragon components can have different behavior in the MFE environment. `example`
514
514
 
515
515
  Steps to install the `example` app.
516
516
 
517
+ To set up the example app with a local Tutor installation, you'll need to configure a Tutor plugin to handle CORS settings
518
+
519
+ Prerequisites.
520
+
521
+ Before running the example app, ensure you have a local Tutor installation configured.
522
+ 1. Create a new file (i.e. `paragon-example-app.py`) in your tutor plugins folder (`tutor plugins printroot` to get the path).
523
+ 2. Add the following content to the paragon-example-app.py file:
524
+ ```
525
+ from tutor import hooks
526
+
527
+ hooks.Filters.ENV_PATCHES.add_item(
528
+ (
529
+ "openedx-lms-development-settings",
530
+ """
531
+ CORS_ORIGIN_WHITELIST.append("http://localhost:8080")
532
+ LOGIN_REDIRECT_WHITELIST.append("http://localhost:8080")
533
+ CSRF_TRUSTED_ORIGINS.append("http://localhost:8080")
534
+ """
535
+ )
536
+ )
537
+ ```
538
+ 3. Enable the plugin: `tutor plugins enable paragon-example-app`
539
+ 4. Apply configuration changes: `tutor config save` && `tutor dev restart`
540
+
541
+ Running the Example App:
517
542
  1. `npm install` to install dependencies.
518
- 2. Launch any devstack. It is required for MFE to login into the system and set up configs.
519
- 3. `npm run start-example-mfe` to start the app.
520
- 4. Go to the `example/src/MyComponent.jsx` and use Paragon components inside the MFE environment.
543
+ 2. `npm run example:start` to start the app.
544
+ 3. Go to the `example/src/MyComponent.jsx` and use Paragon components inside the MFE environment.
521
545
 
522
546
  ## Semantic Release
523
547
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/paragon",
3
- "version": "23.19.0",
3
+ "version": "23.19.1",
4
4
  "description": "Accessible, responsive UI component library based on Bootstrap.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",