@openedx/frontend-base 1.0.0-alpha.0 → 1.0.0-alpha.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 (159) hide show
  1. package/config/webpack/plugins/html-webpack-new-relic-plugin/test/HtmlWebpackNewRelicPlugin.test.js +66 -0
  2. package/package.json +8 -1
  3. package/runtime/__mocks__/file.js +1 -0
  4. package/runtime/__mocks__/svg.js +1 -0
  5. package/runtime/__mocks__/universal-cookie.js +6 -0
  6. package/runtime/analytics/interface.test.js +242 -0
  7. package/runtime/auth/AxiosJwtAuthService.test.jsx +1076 -0
  8. package/runtime/auth/interceptors/createRetryInterceptor.test.js +23 -0
  9. package/runtime/config/getExternalLinkUrl.test.js +76 -0
  10. package/runtime/i18n/lib.test.js +230 -0
  11. package/runtime/initialize.async.function.config.test.js +43 -0
  12. package/runtime/initialize.const.config.test.js +41 -0
  13. package/runtime/initialize.function.config.test.js +41 -0
  14. package/runtime/initialize.test.js +356 -0
  15. package/runtime/logging/NewRelicLoggingService.test.js +214 -0
  16. package/runtime/react/AuthenticatedPageRoute.test.jsx +135 -0
  17. package/runtime/react/ErrorBoundary.test.jsx +83 -0
  18. package/runtime/react/SiteProvider.test.jsx +66 -0
  19. package/runtime/react/hooks.test.jsx +104 -0
  20. package/runtime/routing/utils.test.ts +7 -0
  21. package/runtime/scripts/GoogleAnalyticsLoader.test.ts +77 -0
  22. package/runtime/site.config.test.tsx +33 -0
  23. package/runtime/slots/Slot.test.tsx +40 -0
  24. package/runtime/slots/layout/DefaultSlotLayout.test.tsx +31 -0
  25. package/runtime/slots/layout/hooks.test.tsx +178 -0
  26. package/runtime/slots/layout/utils.test.ts +67 -0
  27. package/runtime/slots/types.ts +1 -0
  28. package/runtime/slots/utils.test.ts +64 -0
  29. package/runtime/slots/utils.ts +28 -9
  30. package/runtime/testing/initializeMockApp.test.ts +66 -0
  31. package/runtime/utils.test.js +116 -0
  32. package/shell/Logo.test.tsx +32 -0
  33. package/shell/__mocks__/file.js +1 -0
  34. package/shell/__mocks__/svg.js +1 -0
  35. package/shell/__mocks__/universal-cookie.js +6 -0
  36. package/shell/app.ts +14 -0
  37. package/shell/dev/devHome/app.ts +2 -2
  38. package/shell/dev/slotShowcase/app.tsx +9 -9
  39. package/shell/header/app.tsx +3 -3
  40. package/shell/router/createRouter.test.tsx +50 -0
  41. package/shell/router/getAppRoutes.test.tsx +59 -0
  42. package/shell/site.config.dev.tsx +3 -3
  43. package/shell/site.config.test.tsx +16 -0
  44. package/tools/dist/cli/commands/release.js +3 -3
  45. package/tools/dist/cli/intl-imports.test.js +146 -0
  46. package/tools/dist/webpack/plugins/html-webpack-new-relic-plugin/test/HtmlWebpackNewRelicPlugin.test.js +66 -0
  47. package/types.ts +1 -1
  48. package/eslint.config.js +0 -18
  49. package/frontend-base.d.ts +0 -8
  50. package/jest.config.js +0 -7
  51. package/openedx-frontend-base.tgz +0 -0
  52. package/test-site/app.d.ts +0 -15
  53. package/test-site/dist/176.436443549ebb858db483.js +0 -2
  54. package/test-site/dist/176.436443549ebb858db483.js.map +0 -1
  55. package/test-site/dist/362.536eff787d2380fe246c.js +0 -2
  56. package/test-site/dist/362.536eff787d2380fe246c.js.map +0 -1
  57. package/test-site/dist/653.486966b108d224551296.js +0 -2
  58. package/test-site/dist/653.486966b108d224551296.js.map +0 -1
  59. package/test-site/dist/74e025d3fe9a7b7f8503054e2563b353.jpg +0 -0
  60. package/test-site/dist/806.323cf6496ad0a7fe73a7.js +0 -3
  61. package/test-site/dist/806.323cf6496ad0a7fe73a7.js.LICENSE.txt +0 -106
  62. package/test-site/dist/806.323cf6496ad0a7fe73a7.js.map +0 -1
  63. package/test-site/dist/95ec738c0b7faac5b5c9126794446bbd.svg +0 -4
  64. package/test-site/dist/app.612058b36c74787759ac.css +0 -61
  65. package/test-site/dist/app.612058b36c74787759ac.css.map +0 -1
  66. package/test-site/dist/app.612058b36c74787759ac.js +0 -2
  67. package/test-site/dist/app.612058b36c74787759ac.js.map +0 -1
  68. package/test-site/dist/cb28cdb1468c915e27e5cec9af64f22f.svg +0 -1
  69. package/test-site/dist/index.html +0 -1
  70. package/test-site/dist/report.html +0 -39
  71. package/test-site/dist/runtime.c7aeaf7b967496cb076f.js +0 -2
  72. package/test-site/dist/runtime.c7aeaf7b967496cb076f.js.map +0 -1
  73. package/test-site/eslint.config.js +0 -12
  74. package/test-site/package-lock.json +0 -19226
  75. package/test-site/package.json +0 -29
  76. package/test-site/public/index.html +0 -10
  77. package/test-site/site.config.build.tsx +0 -27
  78. package/test-site/site.config.dev.tsx +0 -27
  79. package/test-site/src/authenticated-page/AuthenticatedPage.tsx +0 -18
  80. package/test-site/src/authenticated-page/i18n/index.ts +0 -27
  81. package/test-site/src/authenticated-page/index.tsx +0 -28
  82. package/test-site/src/example-page/ExamplePage.tsx +0 -79
  83. package/test-site/src/example-page/Image.tsx +0 -11
  84. package/test-site/src/example-page/ParagonPreview.jsx +0 -66
  85. package/test-site/src/example-page/apple.jpg +0 -0
  86. package/test-site/src/example-page/apple.svg +0 -1
  87. package/test-site/src/example-page/index.ts +0 -16
  88. package/test-site/src/i18n/README.md +0 -3
  89. package/test-site/src/i18n/messages/frontend-app-sample/ar.json +0 -4
  90. package/test-site/src/i18n/messages/frontend-app-sample/eo.json +0 -1
  91. package/test-site/src/i18n/messages/frontend-app-sample/es_419.json +0 -4
  92. package/test-site/src/i18n/messages/frontend-component-emptylangs/ar.json +0 -1
  93. package/test-site/src/i18n/messages/frontend-component-singlelang/ar.json +0 -3
  94. package/test-site/src/iframe-widget/IframeWidget.tsx +0 -14
  95. package/test-site/src/iframe-widget/index.ts +0 -16
  96. package/test-site/src/index.tsx +0 -3
  97. package/test-site/src/messages.js +0 -11
  98. package/test-site/src/site.scss +0 -11
  99. package/test-site/tsconfig.json +0 -14
  100. package/tools/babel/babel.config.js +0 -27
  101. package/tools/babel.config.js +0 -3
  102. package/tools/cli/README.md +0 -29
  103. package/tools/cli/commands/pack.ts +0 -9
  104. package/tools/cli/commands/release.ts +0 -27
  105. package/tools/cli/commands/serve.ts +0 -43
  106. package/tools/cli/intl-imports.ts +0 -274
  107. package/tools/cli/openedx.ts +0 -101
  108. package/tools/cli/transifex-utils.ts +0 -75
  109. package/tools/cli/utils/ensureConfigFilenameOption.ts +0 -40
  110. package/tools/cli/utils/formatter.ts +0 -10
  111. package/tools/cli/utils/getResolvedConfigPath.ts +0 -23
  112. package/tools/cli/utils/prettyPrintTitle.ts +0 -15
  113. package/tools/cli/utils/printUsage.ts +0 -53
  114. package/tools/config-helpers/createConfig.ts +0 -8
  115. package/tools/config-helpers/createLintConfig.ts +0 -14
  116. package/tools/config-helpers/getBaseConfig.ts +0 -11
  117. package/tools/defaultConfigPaths.ts +0 -30
  118. package/tools/eslint/base.eslint.config.js +0 -124
  119. package/tools/eslint/modules.d.ts +0 -5
  120. package/tools/eslint.config.js +0 -15
  121. package/tools/index.ts +0 -3
  122. package/tools/jest/jest.config.js +0 -30
  123. package/tools/jest.config.js +0 -19
  124. package/tools/tsconfig.json +0 -24
  125. package/tools/types.ts +0 -21
  126. package/tools/typescript/tsconfig.json +0 -32
  127. package/tools/webpack/common-config/README.md +0 -15
  128. package/tools/webpack/common-config/all/getCodeRules.ts +0 -51
  129. package/tools/webpack/common-config/all/getFileLoaderRules.ts +0 -23
  130. package/tools/webpack/common-config/all/getIgnoreWarnings.ts +0 -13
  131. package/tools/webpack/common-config/all/getImageMinimizer.ts +0 -26
  132. package/tools/webpack/common-config/all/getStylesheetRule.ts +0 -111
  133. package/tools/webpack/common-config/dev/getDevServer.ts +0 -35
  134. package/tools/webpack/common-config/index.ts +0 -6
  135. package/tools/webpack/common-config/site/getHtmlWebpackPlugin.ts +0 -11
  136. package/tools/webpack/modules.d.ts +0 -6
  137. package/tools/webpack/plugins/html-webpack-new-relic-plugin/HtmlWebpackNewRelicPlugin.ts +0 -102
  138. package/tools/webpack/plugins/html-webpack-new-relic-plugin/LICENSE +0 -21
  139. package/tools/webpack/plugins/html-webpack-new-relic-plugin/README.md +0 -7
  140. package/tools/webpack/plugins/html-webpack-new-relic-plugin/index.js +0 -3
  141. package/tools/webpack/plugins/html-webpack-new-relic-plugin/test/fixtures/entry.js +0 -1
  142. package/tools/webpack/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.ts +0 -134
  143. package/tools/webpack/plugins/paragon-webpack-plugin/index.ts +0 -3
  144. package/tools/webpack/plugins/paragon-webpack-plugin/utils/assetUtils.ts +0 -71
  145. package/tools/webpack/plugins/paragon-webpack-plugin/utils/htmlUtils.ts +0 -72
  146. package/tools/webpack/plugins/paragon-webpack-plugin/utils/index.ts +0 -6
  147. package/tools/webpack/plugins/paragon-webpack-plugin/utils/paragonStylesheetUtils.ts +0 -131
  148. package/tools/webpack/plugins/paragon-webpack-plugin/utils/scriptUtils.ts +0 -144
  149. package/tools/webpack/plugins/paragon-webpack-plugin/utils/stylesheetUtils.ts +0 -106
  150. package/tools/webpack/plugins/paragon-webpack-plugin/utils/tagUtils.ts +0 -54
  151. package/tools/webpack/types.ts +0 -69
  152. package/tools/webpack/utils/getLocalAliases.ts +0 -65
  153. package/tools/webpack/utils/getPublicPath.ts +0 -3
  154. package/tools/webpack/utils/getResolvedSiteConfigPath.ts +0 -28
  155. package/tools/webpack/utils/paragonUtils.ts +0 -152
  156. package/tools/webpack/webpack.config.build.ts +0 -93
  157. package/tools/webpack/webpack.config.dev.shell.ts +0 -122
  158. package/tools/webpack/webpack.config.dev.ts +0 -90
  159. package/tsconfig.json +0 -23
@@ -1,106 +0,0 @@
1
- /*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */
6
-
7
- /*!
8
- localForage -- Offline Storage, Improved
9
- Version 1.10.0
10
- https://localforage.github.io/localForage
11
- (c) 2013-2017 Mozilla, Apache License 2.0
12
- */
13
-
14
- /*!
15
- * Axios Cache Interceptor 1.8.0
16
- * (c) 2021-present Arthur Fiorette & Contributors
17
- * Released under the MIT License.
18
- */
19
-
20
- /*!
21
- * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
22
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
23
- * Copyright 2024 Fonticons, Inc.
24
- */
25
-
26
- /**
27
- * @license React
28
- * react-dom.production.min.js
29
- *
30
- * Copyright (c) Facebook, Inc. and its affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */
35
-
36
- /**
37
- * @license React
38
- * react-jsx-runtime.production.min.js
39
- *
40
- * Copyright (c) Facebook, Inc. and its affiliates.
41
- *
42
- * This source code is licensed under the MIT license found in the
43
- * LICENSE file in the root directory of this source tree.
44
- */
45
-
46
- /**
47
- * @license React
48
- * react.production.min.js
49
- *
50
- * Copyright (c) Facebook, Inc. and its affiliates.
51
- *
52
- * This source code is licensed under the MIT license found in the
53
- * LICENSE file in the root directory of this source tree.
54
- */
55
-
56
- /**
57
- * @license React
58
- * scheduler.production.min.js
59
- *
60
- * Copyright (c) Facebook, Inc. and its affiliates.
61
- *
62
- * This source code is licensed under the MIT license found in the
63
- * LICENSE file in the root directory of this source tree.
64
- */
65
-
66
- /**
67
- * @remix-run/router v1.23.0
68
- *
69
- * Copyright (c) Remix Software Inc.
70
- *
71
- * This source code is licensed under the MIT license found in the
72
- * LICENSE.md file in the root directory of this source tree.
73
- *
74
- * @license MIT
75
- */
76
-
77
- /**
78
- * React Router DOM v6.30.1
79
- *
80
- * Copyright (c) Remix Software Inc.
81
- *
82
- * This source code is licensed under the MIT license found in the
83
- * LICENSE.md file in the root directory of this source tree.
84
- *
85
- * @license MIT
86
- */
87
-
88
- /**
89
- * React Router v6.30.1
90
- *
91
- * Copyright (c) Remix Software Inc.
92
- *
93
- * This source code is licensed under the MIT license found in the
94
- * LICENSE.md file in the root directory of this source tree.
95
- *
96
- * @license MIT
97
- */
98
-
99
- /** @license React v16.13.1
100
- * react-is.production.min.js
101
- *
102
- * Copyright (c) Facebook, Inc. and its affiliates.
103
- *
104
- * This source code is licensed under the MIT license found in the
105
- * LICENSE file in the root directory of this source tree.
106
- */