@epec-fcfm-uchile/frontend-component-header 1.0.76 → 1.0.77

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.
@@ -20,14 +20,14 @@ var AuthenticatedUserDropdown = function AuthenticatedUserDropdown(_ref) {
20
20
  icon: faAddressCard,
21
21
  target: '_self'
22
22
  }, {
23
- message: !courseInfo || courseInfo.course_domain === 'app.fcfmonline.cl' || courseInfo.user_is_admin ? intl.formatMessage(messages.signOut) : "Volver",
23
+ message: !courseInfo || courseInfo.course_domain === 'app.fcfmonline.cl' || courseInfo.user_is_admin ? intl.formatMessage(messages.signOut) : "Salir",
24
24
  href: "https://".concat(courseInfo && courseInfo.course_domain && !courseInfo.user_is_admin ? courseInfo.course_domain : 'app.fcfmonline.cl', "/logout"),
25
25
  data: 'logout',
26
26
  icon: faArrowRightFromBracket,
27
27
  target: '_self'
28
28
  }];
29
29
  var dropdownLogout = [{
30
- message: !courseInfo || courseInfo.course_domain === 'app.fcfmonline.cl' || courseInfo.user_is_admin ? intl.formatMessage(messages.signOut) : "Volver",
30
+ message: !courseInfo || courseInfo.course_domain === 'app.fcfmonline.cl' || courseInfo.user_is_admin ? intl.formatMessage(messages.signOut) : "Salir",
31
31
  href: "https://".concat(courseInfo && courseInfo.course_domain ? courseInfo.course_domain : 'app.fcfmonline.cl', "/logout"),
32
32
  data: 'logout',
33
33
  icon: faArrowRightFromBracket,
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticatedUserDropdown.js","names":["React","PropTypes","faUserCircle","faArrowRightFromBracket","getConfig","useIntl","Dropdown","LearningUserMenuSlot","FontAwesomeIcon","faAddressCard","faCircleQuestion","messages","AuthenticatedUserDropdown","_ref","username","email","courseInfo","intl","dropdownItems","message","formatMessage","profile","href","concat","course_domain","data","icon","target","user_is_admin","signOut","dropdownLogout","createElement","className","Toggle","variant","userOptionsDropdownLabel","size","real_email","Menu","items","propTypes","string","isRequired"],"sources":["../../src/learning-header/AuthenticatedUserDropdown.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { faUserCircle, faArrowRightFromBracket} from '@fortawesome/free-solid-svg-icons';\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Dropdown } from '@openedx/paragon';\n\nimport LearningUserMenuSlot from '../plugin-slots/LearningUserMenuSlot';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport {faAddressCard, faCircleQuestion } from '@fortawesome/free-regular-svg-icons';\n\nimport messages from './messages';\n\nconst AuthenticatedUserDropdown = ({ username, email, courseInfo}) => {\n const intl = useIntl();\n const dropdownItems = [\n {\n message: intl.formatMessage(messages.profile),\n href: `https://${((courseInfo && courseInfo.course_domain)?courseInfo.course_domain:'app.fcfmonline.cl')}/profile`,\n data: 'profile',\n icon: faAddressCard,\n target: '_self'\n },\n {\n message: (!courseInfo || courseInfo.course_domain === 'app.fcfmonline.cl'|| courseInfo.user_is_admin)?intl.formatMessage(messages.signOut):\"Volver\",\n href: `https://${((courseInfo && courseInfo.course_domain && !courseInfo.user_is_admin)?courseInfo.course_domain:'app.fcfmonline.cl')}/logout`,\n data: 'logout',\n icon: faArrowRightFromBracket,\n target: '_self'\n },\n ];\n const dropdownLogout = [\n {\n message: (!courseInfo || courseInfo.course_domain === 'app.fcfmonline.cl'|| courseInfo.user_is_admin)?intl.formatMessage(messages.signOut):\"Volver\",\n href: `https://${((courseInfo && courseInfo.course_domain)?courseInfo.course_domain:'app.fcfmonline.cl')}/logout`,\n data: 'logout',\n icon: faArrowRightFromBracket,\n target: '_self'\n },\n ];\n return (\n <Dropdown className=\"user-dropdown ml-2\">\n <Dropdown.Toggle variant=\"outline-primary\" aria-label={intl.formatMessage(messages.userOptionsDropdownLabel)}>\n <FontAwesomeIcon icon={faUserCircle} size=\"lg\" />\n <div className=\"d-none d-sm-flex flex-column text-left align-center justify-center my-0 text-none\">\n <div class=\"epec_toolbar_username\">{username}</div>\n <div class=\"epec_toolbar_email\">{(courseInfo && courseInfo.real_email)?courseInfo.real_email:''}</div>\n </div>\n </Dropdown.Toggle>\n <Dropdown.Menu className=\"dropdown-menu-right\">\n <LearningUserMenuSlot items={(courseInfo && (courseInfo.course_domain === 'app.fcfmonline.cl' || courseInfo.user_is_admin))?dropdownItems:dropdownLogout} />\n </Dropdown.Menu>\n </Dropdown>\n );\n};\n\nAuthenticatedUserDropdown.propTypes = {\n username: PropTypes.string.isRequired,\n};\n\nexport default AuthenticatedUserDropdown;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAASC,YAAY,EAAEC,uBAAuB,QAAO,mCAAmC;AACxF,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,OAAOC,oBAAoB,MAAM,sCAAsC;AACvE,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAAQC,aAAa,EAAEC,gBAAgB,QAAQ,qCAAqC;AAEpF,OAAOC,QAAQ,MAAM,YAAY;AAEjC,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAAC,IAAA,EAAuC;EAAA,IAAjCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAEC,UAAU,GAAAH,IAAA,CAAVG,UAAU;EAC9D,IAAMC,IAAI,GAAGZ,OAAO,CAAC,CAAC;EACtB,IAAMa,aAAa,GAAG,CACpB;IACEC,OAAO,EAAEF,IAAI,CAACG,aAAa,CAACT,QAAQ,CAACU,OAAO,CAAC;IAC7CC,IAAI,aAAAC,MAAA,CAAeP,UAAU,IAAIA,UAAU,CAACQ,aAAa,GAAER,UAAU,CAACQ,aAAa,GAAC,mBAAmB,aAAW;IAClHC,IAAI,EAAE,SAAS;IACfC,IAAI,EAAEjB,aAAa;IACnBkB,MAAM,EA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,CAAA+B,aAAA;IAAK,SAAM;EAAuB,GAAEjB,QAAc,CAAC,eACnDd,KAAA,CAAA+B,aAAA;IAAK,SAAM;EAAoB,GAAGf,UAAU,IAAIA,UAAU,CAACqB,UAAU,GAAErB,UAAU,CAACqB,UAAU,GAAC,EAAQ,CAClG,CACQ,CAAC,eAClBrC,KAAA,CAAA+B,aAAA,CAACzB,QAAQ,CAACgC,IAAI;IAACN,SAAS,EAAC;EAAqB,gBAC5ChC,KAAA,CAAA+B,aAAA,CAACxB,oBAAoB;IAACgC,KAAK,EAAGvB,UAAU,KAAKA,UAAU,CAACQ,aAAa,KAAK,mBAAmB,IAAIR,UAAU,CAACY,aAAa,CAAC,GAAEV,aAAa,GAACY;EAAe,CAAE,CAC9I,CACP,CAAC;AAEf,CAAC;AAEDlB,yBAAyB,CAAC4B,SAAS,GAAG;EACpC1B,QAAQ,EAAEb,SAAS,CAACwC,MAAM,CAACC;AAC7B,CAAC;AAED,eAAe9B,yBAAyB","ignoreList":[]}
1
+ {"version":3,"file":"AuthenticatedUserDropdown.js","names":["React","PropTypes","faUserCircle","faArrowRightFromBracket","getConfig","useIntl","Dropdown","LearningUserMenuSlot","FontAwesomeIcon","faAddressCard","faCircleQuestion","messages","AuthenticatedUserDropdown","_ref","username","email","courseInfo","intl","dropdownItems","message","formatMessage","profile","href","concat","course_domain","data","icon","target","user_is_admin","signOut","dropdownLogout","createElement","className","Toggle","variant","userOptionsDropdownLabel","size","real_email","Menu","items","propTypes","string","isRequired"],"sources":["../../src/learning-header/AuthenticatedUserDropdown.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { faUserCircle, faArrowRightFromBracket} from '@fortawesome/free-solid-svg-icons';\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Dropdown } from '@openedx/paragon';\n\nimport LearningUserMenuSlot from '../plugin-slots/LearningUserMenuSlot';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport {faAddressCard, faCircleQuestion } from '@fortawesome/free-regular-svg-icons';\n\nimport messages from './messages';\n\nconst AuthenticatedUserDropdown = ({ username, email, courseInfo}) => {\n const intl = useIntl();\n const dropdownItems = [\n {\n message: intl.formatMessage(messages.profile),\n href: `https://${((courseInfo && courseInfo.course_domain)?courseInfo.course_domain:'app.fcfmonline.cl')}/profile`,\n data: 'profile',\n icon: faAddressCard,\n target: '_self'\n },\n {\n message: (!courseInfo || courseInfo.course_domain === 'app.fcfmonline.cl'|| courseInfo.user_is_admin)?intl.formatMessage(messages.signOut):\"Salir\",\n href: `https://${((courseInfo && courseInfo.course_domain && !courseInfo.user_is_admin)?courseInfo.course_domain:'app.fcfmonline.cl')}/logout`,\n data: 'logout',\n icon: faArrowRightFromBracket,\n target: '_self'\n },\n ];\n const dropdownLogout = [\n {\n message: (!courseInfo || courseInfo.course_domain === 'app.fcfmonline.cl'|| courseInfo.user_is_admin)?intl.formatMessage(messages.signOut):\"Salir\",\n href: `https://${((courseInfo && courseInfo.course_domain)?courseInfo.course_domain:'app.fcfmonline.cl')}/logout`,\n data: 'logout',\n icon: faArrowRightFromBracket,\n target: '_self'\n },\n ];\n return (\n <Dropdown className=\"user-dropdown ml-2\">\n <Dropdown.Toggle variant=\"outline-primary\" aria-label={intl.formatMessage(messages.userOptionsDropdownLabel)}>\n <FontAwesomeIcon icon={faUserCircle} size=\"lg\" />\n <div className=\"d-none d-sm-flex flex-column text-left align-center justify-center my-0 text-none\">\n <div class=\"epec_toolbar_username\">{username}</div>\n <div class=\"epec_toolbar_email\">{(courseInfo && courseInfo.real_email)?courseInfo.real_email:''}</div>\n </div>\n </Dropdown.Toggle>\n <Dropdown.Menu className=\"dropdown-menu-right\">\n <LearningUserMenuSlot items={(courseInfo && (courseInfo.course_domain === 'app.fcfmonline.cl' || courseInfo.user_is_admin))?dropdownItems:dropdownLogout} />\n </Dropdown.Menu>\n </Dropdown>\n );\n};\n\nAuthenticatedUserDropdown.propTypes = {\n username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5ChC,KAAA,CAAA+B,aAAA,CAACxB,oBAAoB;IAACgC,KAAK,EAAGvB,UAAU,KAAKA,UAAU,CAACQ,aAAa,KAAK,mBAAmB,IAAIR,UAAU,CAACY,aAAa,CAAC,GAAEV,aAAa,GAACY;EAAe,CAAE,CAC9I,CACP,CAAC;AAEf,CAAC;AAEDlB,yBAAyB,CAAC4B,SAAS,GAAG;EACpC1B,QAAQ,EAAEb,SAAS,CAACwC,MAAM,CAACC;AAC7B,CAAC;AAED,eAAe9B,yBAAyB","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epec-fcfm-uchile/frontend-component-header",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "The standard header for Open edX",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {