@edx/frontend-plugin-learner-dashboard 1.2.0 → 1.3.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.
@@ -15,13 +15,6 @@ const ExperimentHelpChatbot = () => {
15
15
  const body = document.getElementsByTagName('body')[0];
16
16
  window.XpertChatbotFrontend = {};
17
17
  window.XpertChatbotFrontend.xpertKey = _five.XPERT_KEY;
18
- window.XpertChatbotFrontend.configurations = {
19
- conversationScreen: {
20
- liveChat: {
21
- enabled: true
22
- }
23
- }
24
- };
25
18
  const link = document.createElement('link');
26
19
  link.rel = 'stylesheet';
27
20
  link.href = _five.FIVE9_CHATBOT_CSS;
@@ -1 +1 @@
1
- {"version":3,"file":"ExperimentHelpChatbot.js","names":["_react","require","_five","ExperimentHelpChatbot","isExperimentBotLoaded","setExperimentBotLoaded","useState","useEffect","body","document","getElementsByTagName","window","XpertChatbotFrontend","xpertKey","XPERT_KEY","configurations","conversationScreen","liveChat","enabled","link","createElement","rel","href","FIVE9_CHATBOT_CSS","script","src","FIVE9_CHATBOT_JS","defer","appendChild","_default","exports","default"],"sources":["../../src/chatbot/ExperimentHelpChatbot.jsx"],"sourcesContent":["import { useState, useEffect } from 'react';\nimport { FIVE9_CHATBOT_CSS, FIVE9_CHATBOT_JS, XPERT_KEY } from './data/five9';\n\nconst ExperimentHelpChatbot = () => {\n const [isExperimentBotLoaded, setExperimentBotLoaded] = useState(false);\n\n useEffect(() => {\n if (isExperimentBotLoaded) {\n return null;\n }\n\n const body = document.getElementsByTagName('body')[0];\n\n window.XpertChatbotFrontend = {};\n window.XpertChatbotFrontend.xpertKey = XPERT_KEY;\n window.XpertChatbotFrontend.configurations = {\n conversationScreen: {\n liveChat: {\n enabled: true,\n },\n },\n };\n\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.href = FIVE9_CHATBOT_CSS;\n\n const script = document.createElement('script');\n script.src = FIVE9_CHATBOT_JS;\n script.defer = true;\n\n body.appendChild(link);\n body.appendChild(script);\n setExperimentBotLoaded(true);\n\n return null;\n }, [isExperimentBotLoaded]);\n return null;\n};\n\nexport default ExperimentHelpChatbot;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,MAAME,qBAAqB,GAAGA,CAAA,KAAM;EAClC,MAAM,CAACC,qBAAqB,EAAEC,sBAAsB,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAEvE,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIH,qBAAqB,EAAE;MACzB,OAAO,IAAI;IACb;IAEA,MAAMI,IAAI,GAAGC,QAAQ,CAACC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAErDC,MAAM,CAACC,oBAAoB,GAAG,CAAC,CAAC;IAChCD,MAAM,CAACC,oBAAoB,CAACC,QAAQ,GAAGC,eAAS;IAChDH,MAAM,CAACC,oBAAoB,CAACG,cAAc,GAAG;MAC3CC,kBAAkB,EAAE;QAClBC,QAAQ,EAAE;UACRC,OAAO,EAAE;QACX;MACF;IACF,CAAC;IAED,MAAMC,IAAI,GAAGV,QAAQ,CAACW,aAAa,CAAC,MAAM,CAAC;IAC3CD,IAAI,CAACE,GAAG,GAAG,YAAY;IACvBF,IAAI,CAACG,IAAI,GAAGC,uBAAiB;IAE7B,MAAMC,MAAM,GAAGf,QAAQ,CAACW,aAAa,CAAC,QAAQ,CAAC;IAC/CI,MAAM,CAACC,GAAG,GAAGC,sBAAgB;IAC7BF,MAAM,CAACG,KAAK,GAAG,IAAI;IAEnBnB,IAAI,CAACoB,WAAW,CAACT,IAAI,CAAC;IACtBX,IAAI,CAACoB,WAAW,CAACJ,MAAM,CAAC;IACxBnB,sBAAsB,CAAC,IAAI,CAAC;IAE5B,OAAO,IAAI;EACb,CAAC,EAAE,CAACD,qBAAqB,CAAC,CAAC;EAC3B,OAAO,IAAI;AACb,CAAC;AAAC,IAAAyB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa5B,qBAAqB","ignoreList":[]}
1
+ {"version":3,"file":"ExperimentHelpChatbot.js","names":["_react","require","_five","ExperimentHelpChatbot","isExperimentBotLoaded","setExperimentBotLoaded","useState","useEffect","body","document","getElementsByTagName","window","XpertChatbotFrontend","xpertKey","XPERT_KEY","link","createElement","rel","href","FIVE9_CHATBOT_CSS","script","src","FIVE9_CHATBOT_JS","defer","appendChild","_default","exports","default"],"sources":["../../src/chatbot/ExperimentHelpChatbot.jsx"],"sourcesContent":["import { useState, useEffect } from 'react';\nimport { FIVE9_CHATBOT_CSS, FIVE9_CHATBOT_JS, XPERT_KEY } from './data/five9';\n\nconst ExperimentHelpChatbot = () => {\n const [isExperimentBotLoaded, setExperimentBotLoaded] = useState(false);\n\n useEffect(() => {\n if (isExperimentBotLoaded) {\n return null;\n }\n\n const body = document.getElementsByTagName('body')[0];\n\n window.XpertChatbotFrontend = {};\n window.XpertChatbotFrontend.xpertKey = XPERT_KEY;\n\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.href = FIVE9_CHATBOT_CSS;\n\n const script = document.createElement('script');\n script.src = FIVE9_CHATBOT_JS;\n script.defer = true;\n\n body.appendChild(link);\n body.appendChild(script);\n setExperimentBotLoaded(true);\n\n return null;\n }, [isExperimentBotLoaded]);\n return null;\n};\n\nexport default ExperimentHelpChatbot;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,MAAME,qBAAqB,GAAGA,CAAA,KAAM;EAClC,MAAM,CAACC,qBAAqB,EAAEC,sBAAsB,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAEvE,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAIH,qBAAqB,EAAE;MACzB,OAAO,IAAI;IACb;IAEA,MAAMI,IAAI,GAAGC,QAAQ,CAACC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAErDC,MAAM,CAACC,oBAAoB,GAAG,CAAC,CAAC;IAChCD,MAAM,CAACC,oBAAoB,CAACC,QAAQ,GAAGC,eAAS;IAEhD,MAAMC,IAAI,GAAGN,QAAQ,CAACO,aAAa,CAAC,MAAM,CAAC;IAC3CD,IAAI,CAACE,GAAG,GAAG,YAAY;IACvBF,IAAI,CAACG,IAAI,GAAGC,uBAAiB;IAE7B,MAAMC,MAAM,GAAGX,QAAQ,CAACO,aAAa,CAAC,QAAQ,CAAC;IAC/CI,MAAM,CAACC,GAAG,GAAGC,sBAAgB;IAC7BF,MAAM,CAACG,KAAK,GAAG,IAAI;IAEnBf,IAAI,CAACgB,WAAW,CAACT,IAAI,CAAC;IACtBP,IAAI,CAACgB,WAAW,CAACJ,MAAM,CAAC;IACxBf,sBAAsB,CAAC,IAAI,CAAC;IAE5B,OAAO,IAAI;EACb,CAAC,EAAE,CAACD,qBAAqB,CAAC,CAAC;EAC3B,OAAO,IAAI;AACb,CAAC;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaxB,qBAAqB","ignoreList":[]}
package/dist/package.json CHANGED
@@ -42,14 +42,14 @@
42
42
  "devDependencies": {
43
43
  "@edx/browserslist-config": "^1.1.1",
44
44
  "@edx/reactifex": "^2.1.1",
45
- "@openedx/frontend-build": "14.1.2",
45
+ "@openedx/frontend-build": "14.1.5",
46
46
  "@testing-library/jest-dom": "^5.17.0",
47
47
  "@testing-library/react": "^12.1.5",
48
48
  "glob": "7.2.3",
49
49
  "husky": "7.0.4",
50
50
  "jest": "29.7.0",
51
51
  "rosie": "2.1.1",
52
- "semantic-release": "^21.0.7"
52
+ "semantic-release": "^24.0.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@edx/brand": "npm:@edx/brand-edx.org@^2.1.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edx/frontend-plugin-learner-dashboard",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "Repository for Learner Dashboard MFE frontend plugins",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -42,14 +42,14 @@
42
42
  "devDependencies": {
43
43
  "@edx/browserslist-config": "^1.1.1",
44
44
  "@edx/reactifex": "^2.1.1",
45
- "@openedx/frontend-build": "14.1.2",
45
+ "@openedx/frontend-build": "14.1.5",
46
46
  "@testing-library/jest-dom": "^5.17.0",
47
47
  "@testing-library/react": "^12.1.5",
48
48
  "glob": "7.2.3",
49
49
  "husky": "7.0.4",
50
50
  "jest": "29.7.0",
51
51
  "rosie": "2.1.1",
52
- "semantic-release": "^21.0.7"
52
+ "semantic-release": "^24.0.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@edx/brand": "npm:@edx/brand-edx.org@^2.1.2",
@@ -13,13 +13,6 @@ const ExperimentHelpChatbot = () => {
13
13
 
14
14
  window.XpertChatbotFrontend = {};
15
15
  window.XpertChatbotFrontend.xpertKey = XPERT_KEY;
16
- window.XpertChatbotFrontend.configurations = {
17
- conversationScreen: {
18
- liveChat: {
19
- enabled: true,
20
- },
21
- },
22
- };
23
16
 
24
17
  const link = document.createElement('link');
25
18
  link.rel = 'stylesheet';
@@ -18,6 +18,5 @@ describe('Five9 Chatbot loads', () => {
18
18
  expect(link).toBeInTheDocument();
19
19
  expect(window.XpertChatbotFrontend).toBeTruthy();
20
20
  expect(window.XpertChatbotFrontend.xpertKey).toBe(XPERT_KEY);
21
- expect(window.XpertChatbotFrontend.configurations.conversationScreen.liveChat.enabled).toBe(true);
22
21
  });
23
22
  });