@opencraft/frontend-plugin-sandbox 1.3.0-alpha.0 → 1.3.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencraft/frontend-plugin-sandbox",
3
- "version": "1.3.0-alpha.0",
3
+ "version": "1.3.0",
4
4
  "description": "Plugin for custom headers and footers in OpenCraft's sandboxes",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
@@ -1,18 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { AppContext } from '@edx/frontend-platform/react';
3
- import { ensureConfig } from '@edx/frontend-platform';
4
- ensureConfig(['LOGO_WHITE_URL'], 'White Header Logo');
5
- export const WhiteLogo = () => {
6
- const {
7
- config
8
- } = useContext(AppContext);
9
- return /*#__PURE__*/React.createElement("a", {
10
- className: "logo",
11
- href: `${config.LMS_BASE_URL}/dashboard`
12
- }, /*#__PURE__*/React.createElement("img", {
13
- className: "d-block",
14
- src: config.LOGO_WHITE_URL,
15
- alt: config.SITE_NAME
16
- }));
17
- };
18
- //# sourceMappingURL=WhiteLogo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WhiteLogo.js","names":["React","useContext","AppContext","ensureConfig","WhiteLogo","config","createElement","className","href","LMS_BASE_URL","src","LOGO_WHITE_URL","alt","SITE_NAME"],"sources":["../../src/components/WhiteLogo.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { AppContext } from '@edx/frontend-platform/react';\nimport { ensureConfig } from '@edx/frontend-platform';\n\nensureConfig([\n 'LOGO_WHITE_URL',\n], 'White Header Logo');\n\nexport const WhiteLogo = () => {\n const { config } = useContext<AppContextInterface>(AppContext);\n return (\n <a className=\"logo\" href={`${config.LMS_BASE_URL}/dashboard`}>\n <img className=\"d-block\" src={config.LOGO_WHITE_URL} alt={config.SITE_NAME} />\n </a>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,8BAA8B;AACzD,SAASC,YAAY,QAAQ,wBAAwB;AAErDA,YAAY,CAAC,CACX,gBAAgB,CACjB,EAAE,mBAAmB,CAAC;AAEvB,OAAO,MAAMC,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAM;IAAEC;EAAO,CAAC,GAAGJ,UAAU,CAAsBC,UAAU,CAAC;EAC9D,oBACEF,KAAA,CAAAM,aAAA;IAAGC,SAAS,EAAC,MAAM;IAACC,IAAI,EAAE,GAAGH,MAAM,CAACI,YAAY;EAAa,gBAC3DT,KAAA,CAAAM,aAAA;IAAKC,SAAS,EAAC,SAAS;IAACG,GAAG,EAAEL,MAAM,CAACM,cAAe;IAACC,GAAG,EAAEP,MAAM,CAACQ;EAAU,CAAE,CAC5E,CAAC;AAER,CAAC","ignoreList":[]}