@coorpacademy/components 10.0.39 → 10.0.40

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 (75) hide show
  1. package/es/molecule/brand-tabs/test/fixtures.js +0 -2
  2. package/es/molecule/brand-tabs/test/fixtures.js.map +1 -1
  3. package/es/molecule/discipline-scope/test/fixtures.js +0 -6
  4. package/es/molecule/discipline-scope/test/fixtures.js.map +1 -1
  5. package/es/molecule/quick-access-card/index.js +151 -0
  6. package/es/molecule/quick-access-card/index.js.map +1 -0
  7. package/es/molecule/quick-access-card/style.css +103 -0
  8. package/es/molecule/quick-access-card/test/fixtures/analytics.js +10 -0
  9. package/es/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -0
  10. package/es/molecule/quick-access-card/test/fixtures/default.js +10 -0
  11. package/es/molecule/quick-access-card/test/fixtures/default.js.map +1 -0
  12. package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js +9 -0
  13. package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -0
  14. package/es/molecule/quick-access-card/test/fixtures/manage-email.js +9 -0
  15. package/es/molecule/quick-access-card/test/fixtures/manage-email.js.map +1 -0
  16. package/es/molecule/quick-access-card/test/fixtures/upload-users.js +9 -0
  17. package/es/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -0
  18. package/es/molecule/scope-content/test/fixtures.js +0 -6
  19. package/es/molecule/scope-content/test/fixtures.js.map +1 -1
  20. package/es/organism/mooc-header/test/fixtures.js +0 -6
  21. package/es/organism/mooc-header/test/fixtures.js.map +1 -1
  22. package/es/template/app-player/player/test/fixtures.js +0 -2
  23. package/es/template/app-player/player/test/fixtures.js.map +1 -1
  24. package/es/template/back-office/brand-update/test/fixtures.js +0 -2
  25. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  26. package/es/template/common/discipline/test/fixtures.js +0 -10
  27. package/es/template/common/discipline/test/fixtures.js.map +1 -1
  28. package/es/template/teams-dashboard/test/fixtures.js +0 -2
  29. package/es/template/teams-dashboard/test/fixtures.js.map +1 -1
  30. package/lib/molecule/brand-tabs/test/fixtures.js +0 -3
  31. package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -1
  32. package/lib/molecule/discipline-scope/test/fixtures.js +0 -9
  33. package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -1
  34. package/lib/molecule/quick-access-card/index.js +166 -0
  35. package/lib/molecule/quick-access-card/index.js.map +1 -0
  36. package/lib/molecule/quick-access-card/style.css +103 -0
  37. package/lib/molecule/quick-access-card/test/fixtures/analytics.js +15 -0
  38. package/lib/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -0
  39. package/lib/molecule/quick-access-card/test/fixtures/default.js +15 -0
  40. package/lib/molecule/quick-access-card/test/fixtures/default.js.map +1 -0
  41. package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js +14 -0
  42. package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -0
  43. package/lib/molecule/quick-access-card/test/fixtures/manage-email.js +14 -0
  44. package/lib/molecule/quick-access-card/test/fixtures/manage-email.js.map +1 -0
  45. package/lib/molecule/quick-access-card/test/fixtures/upload-users.js +14 -0
  46. package/lib/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -0
  47. package/lib/molecule/scope-content/test/fixtures.js +0 -9
  48. package/lib/molecule/scope-content/test/fixtures.js.map +1 -1
  49. package/lib/organism/mooc-header/test/fixtures.js +0 -9
  50. package/lib/organism/mooc-header/test/fixtures.js.map +1 -1
  51. package/lib/template/app-player/player/test/fixtures.js +0 -3
  52. package/lib/template/app-player/player/test/fixtures.js.map +1 -1
  53. package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
  54. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  55. package/lib/template/common/discipline/test/fixtures.js +0 -15
  56. package/lib/template/common/discipline/test/fixtures.js.map +1 -1
  57. package/lib/template/teams-dashboard/test/fixtures.js +0 -3
  58. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -1
  59. package/package.json +3 -3
  60. package/es/molecule/add-to-my-list/test/fixtures.js +0 -15
  61. package/es/molecule/add-to-my-list/test/fixtures.js.map +0 -1
  62. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +0 -13
  63. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
  64. package/es/organism/accordion/coorp-manager/test/fixtures.js +0 -13
  65. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
  66. package/es/organism/brand-dashboard/test/fixtures.js +0 -23
  67. package/es/organism/brand-dashboard/test/fixtures.js.map +0 -1
  68. package/lib/molecule/add-to-my-list/test/fixtures.js +0 -25
  69. package/lib/molecule/add-to-my-list/test/fixtures.js.map +0 -1
  70. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +0 -22
  71. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
  72. package/lib/organism/accordion/coorp-manager/test/fixtures.js +0 -22
  73. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
  74. package/lib/organism/brand-dashboard/test/fixtures.js +0 -37
  75. package/lib/organism/brand-dashboard/test/fixtures.js.map +0 -1
@@ -6,7 +6,6 @@ import fixtureAnalytics from './fixtures/analytics';
6
6
  import fixtureCohort from './fixtures/cohort';
7
7
  import fixtureDefault from './fixtures/default';
8
8
  import fixtureImportusers from './fixtures/importusers';
9
- import fixtureLight from './fixtures/light';
10
9
  import fixtureLms from './fixtures/lms';
11
10
  import fixtureLookandfeel from './fixtures/lookandfeel';
12
11
  import fixtureManageusers from './fixtures/manageusers';
@@ -21,7 +20,6 @@ test('Molecule › MoleculeBrandTabs › Analytics › should be rendered', rend
21
20
  test('Molecule › MoleculeBrandTabs › Cohort › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureCohort);
22
21
  test('Molecule › MoleculeBrandTabs › Default › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureDefault);
23
22
  test('Molecule › MoleculeBrandTabs › Importusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureImportusers);
24
- test('Molecule › MoleculeBrandTabs › Light › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLight);
25
23
  test('Molecule › MoleculeBrandTabs › Lms › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLms);
26
24
  test('Molecule › MoleculeBrandTabs › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLookandfeel);
27
25
  test('Molecule › MoleculeBrandTabs › Manageusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureManageusers);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/brand-tabs/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBrandTabs","fixtureAnalytics","fixtureCohort","fixtureDefault","fixtureImportusers","fixtureLight","fixtureLms","fixtureLookandfeel","fixtureManageusers","fixtureSso","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AAEAZ,IAAI,CAAC,4DAAD,EAA+Da,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAb,EAAAA,OAAO,CAACE,iBAAiB,CAACY,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAjB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,iBAAxF,EAA2GC,gBAA3G,CAAJ;AACAJ,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,iBAArF,EAAwGE,aAAxG,CAAJ;AACAL,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGG,cAAzG,CAAJ;AACAN,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GI,kBAA7G,CAAJ;AACAP,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,iBAApF,EAAuGK,YAAvG,CAAJ;AACAR,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGM,UAArG,CAAJ;AACAT,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GO,kBAA7G,CAAJ;AACAV,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GQ,kBAA7G,CAAJ;AACAX,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGS,UAArG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBrandTabs from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDefault from './fixtures/default';\nimport fixtureImportusers from './fixtures/importusers';\nimport fixtureLight from './fixtures/light';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusers from './fixtures/manageusers';\nimport fixtureSso from './fixtures/sso';\n\ntest('Molecule › MoleculeBrandTabs > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBrandTabs.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBrandTabs.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBrandTabs › Analytics › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureAnalytics);\ntest('Molecule › MoleculeBrandTabs › Cohort › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureCohort);\ntest('Molecule › MoleculeBrandTabs › Default › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureDefault);\ntest('Molecule › MoleculeBrandTabs › Importusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureImportusers);\ntest('Molecule › MoleculeBrandTabs › Light › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLight);\ntest('Molecule › MoleculeBrandTabs › Lms › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLms);\ntest('Molecule › MoleculeBrandTabs › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLookandfeel);\ntest('Molecule › MoleculeBrandTabs › Manageusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureManageusers);\ntest('Molecule › MoleculeBrandTabs › Sso › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureSso);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/brand-tabs/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBrandTabs","fixtureAnalytics","fixtureCohort","fixtureDefault","fixtureImportusers","fixtureLms","fixtureLookandfeel","fixtureManageusers","fixtureSso","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AAEAX,IAAI,CAAC,4DAAD,EAA+DY,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAZ,EAAAA,OAAO,CAACE,iBAAiB,CAACW,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAhB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,iBAAxF,EAA2GC,gBAA3G,CAAJ;AACAJ,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,iBAArF,EAAwGE,aAAxG,CAAJ;AACAL,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGG,cAAzG,CAAJ;AACAN,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GI,kBAA7G,CAAJ;AACAP,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGK,UAArG,CAAJ;AACAR,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GM,kBAA7G,CAAJ;AACAT,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GO,kBAA7G,CAAJ;AACAV,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGQ,UAArG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBrandTabs from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDefault from './fixtures/default';\nimport fixtureImportusers from './fixtures/importusers';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusers from './fixtures/manageusers';\nimport fixtureSso from './fixtures/sso';\n\ntest('Molecule › MoleculeBrandTabs > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBrandTabs.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBrandTabs.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBrandTabs › Analytics › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureAnalytics);\ntest('Molecule › MoleculeBrandTabs › Cohort › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureCohort);\ntest('Molecule › MoleculeBrandTabs › Default › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureDefault);\ntest('Molecule › MoleculeBrandTabs › Importusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureImportusers);\ntest('Molecule › MoleculeBrandTabs › Lms › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLms);\ntest('Molecule › MoleculeBrandTabs › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLookandfeel);\ntest('Molecule › MoleculeBrandTabs › Manageusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureManageusers);\ntest('Molecule › MoleculeBrandTabs › Sso › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureSso);\n"],"file":"fixtures.js"}
@@ -3,12 +3,9 @@ import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import MoleculeDisciplineScope from '..';
5
5
  import fixtureArabic from './fixtures/arabic';
6
- import fixtureAudio from './fixtures/audio';
7
6
  import fixtureDefault from './fixtures/default';
8
7
  import fixtureEmpty from './fixtures/empty';
9
8
  import fixtureMedias from './fixtures/medias';
10
- import fixturePdf from './fixtures/pdf';
11
- import fixtureVimeo from './fixtures/vimeo';
12
9
  import fixtureWithOnclick from './fixtures/with-onclick';
13
10
  test('Molecule › MoleculeDisciplineScope > should have valid propTypes', t => {
14
11
  t.pass();
@@ -17,11 +14,8 @@ test('Molecule › MoleculeDisciplineScope > should have valid propTypes', t =>
17
14
  });
18
15
  });
19
16
  test('Molecule › MoleculeDisciplineScope › Arabic › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureArabic);
20
- test('Molecule › MoleculeDisciplineScope › Audio › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureAudio);
21
17
  test('Molecule › MoleculeDisciplineScope › Default › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureDefault);
22
18
  test('Molecule › MoleculeDisciplineScope › Empty › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureEmpty);
23
19
  test('Molecule › MoleculeDisciplineScope › Medias › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureMedias);
24
- test('Molecule › MoleculeDisciplineScope › Pdf › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixturePdf);
25
- test('Molecule › MoleculeDisciplineScope › Vimeo › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureVimeo);
26
20
  test('Molecule › MoleculeDisciplineScope › WithOnclick › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureWithOnclick);
27
21
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/discipline-scope/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDisciplineScope","fixtureArabic","fixtureAudio","fixtureDefault","fixtureEmpty","fixtureMedias","fixturePdf","fixtureVimeo","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MA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AhG,EAAyHQ,kBAAzH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDisciplineScope from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureAudio from './fixtures/audio';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixturePdf from './fixtures/pdf';\nimport fixtureVimeo from './fixtures/vimeo';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeDisciplineScope > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDisciplineScope.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDisciplineScope.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDisciplineScope › Arabic › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureArabic);\ntest('Molecule › MoleculeDisciplineScope › Audio › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureAudio);\ntest('Molecule › MoleculeDisciplineScope › Default › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureDefault);\ntest('Molecule › MoleculeDisciplineScope › Empty › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureEmpty);\ntest('Molecule › MoleculeDisciplineScope › Medias › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureMedias);\ntest('Molecule › MoleculeDisciplineScope › Pdf › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixturePdf);\ntest('Molecule › MoleculeDisciplineScope › Vimeo › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureVimeo);\ntest('Molecule › MoleculeDisciplineScope › WithOnclick › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureWithOnclick);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/discipline-scope/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDisciplineScope","fixtureArabic","fixtureDefault","fixtureEmpty","fixtureMedias","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,uBAAP,MAAoC,IAApC;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAR,IAAI,CAAC,kEAAD,EAAqES,CAAC,IAAI;AAC5EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,uBAAuB,CAACQ,SAAzB,EAAoC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACzDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4DAA2DF,GAAI,mEAAxF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,uBAA3F,EAAoHC,aAApH,CAAJ;AACAJ,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,uBAA5F,EAAqHE,cAArH,CAAJ;AACAL,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,uBAA1F,EAAmHG,YAAnH,CAAJ;AACAN,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,uBAA3F,EAAoHI,aAApH,CAAJ;AACAP,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,uBAAhG,EAAyHK,kBAAzH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDisciplineScope from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeDisciplineScope > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDisciplineScope.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDisciplineScope.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDisciplineScope › Arabic › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureArabic);\ntest('Molecule › MoleculeDisciplineScope › Default › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureDefault);\ntest('Molecule › MoleculeDisciplineScope › Empty › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureEmpty);\ntest('Molecule › MoleculeDisciplineScope › Medias › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureMedias);\ntest('Molecule › MoleculeDisciplineScope › WithOnclick › should be rendered', renderComponentMacro, MoleculeDisciplineScope, fixtureWithOnclick);\n"],"file":"fixtures.js"}
@@ -0,0 +1,151 @@
1
+ import React, { useMemo } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { NovaSolidContentContentBookAdd as CockpitIcon, NovaSolidUsersActionsUser as ManageUserIcon, NovaSolidFilesBasicFileUpload2 as UploadUserIcon, NovaSolidEmailAtSign as ManageEmailIcon, NovaSolidDesignPaintBrush2 as LookAndFeelIcon, NovaSolidContentContentViewList as DashboardIcon, NovaSolidContentEditionFlash as MassiveBattleIcon, NovaSolidApplicationsWindowApplication5 as CmsIcon, NovaSolidBusinessBusinessGraphLine2 as AnalyticsIcon, NovaCompositionNavigationArrowRight as ActionIcon, NovaCompositionCoorpacademyOpenInNewTab as NewTabIcon } from '@coorpacademy/nova-icons';
4
+ import style from './style.css';
5
+
6
+ const getIcon = feature => {
7
+ switch (feature) {
8
+ case 'manage_users':
9
+ return ManageUserIcon;
10
+
11
+ case 'upload_users':
12
+ return UploadUserIcon;
13
+
14
+ case 'manage_email':
15
+ return ManageEmailIcon;
16
+
17
+ case 'massive_battle':
18
+ return MassiveBattleIcon;
19
+
20
+ case 'cms':
21
+ return CmsIcon;
22
+
23
+ case 'look_and_feel':
24
+ return LookAndFeelIcon;
25
+
26
+ case 'dashboard':
27
+ return DashboardIcon;
28
+
29
+ case 'cockpit':
30
+ return CockpitIcon;
31
+
32
+ case 'analytics':
33
+ return AnalyticsIcon;
34
+
35
+ default:
36
+ return CockpitIcon;
37
+ }
38
+ };
39
+
40
+ const getBackgroudRadialColors = feature => {
41
+ switch (feature) {
42
+ case 'manage_users':
43
+ case 'upload_users':
44
+ return {
45
+ iconColor: '#2EC1D6',
46
+ degrees: '187'
47
+ };
48
+
49
+ case 'look_and_feel':
50
+ case 'dashboard':
51
+ return {
52
+ iconColor: '#18BB98',
53
+ degrees: '167'
54
+ };
55
+
56
+ case 'cockpit':
57
+ return {
58
+ iconColor: '#FF7043',
59
+ degrees: '14'
60
+ };
61
+
62
+ case 'manage_email':
63
+ case 'massive_battle':
64
+ case 'cms':
65
+ return {
66
+ iconColor: '#7340FF',
67
+ degrees: '256'
68
+ };
69
+
70
+ case 'analytics':
71
+ return {
72
+ iconColor: '#FF4040',
73
+ degrees: '0'
74
+ };
75
+
76
+ default:
77
+ return null;
78
+ }
79
+ };
80
+
81
+ const QuickAccessCard = (props, context) => {
82
+ const {
83
+ title,
84
+ description,
85
+ feature,
86
+ onClick,
87
+ _blank
88
+ } = props;
89
+ const {
90
+ iconColor,
91
+ degrees
92
+ } = getBackgroudRadialColors(feature);
93
+ const Icon = getIcon(feature);
94
+ const handleClick = useMemo(() => e => onClick(e), [onClick]);
95
+ const newTabOnClick = _blank ? /*#__PURE__*/React.createElement(NewTabIcon, {
96
+ className: style.newTabIcon
97
+ }) : null;
98
+ return /*#__PURE__*/React.createElement("div", {
99
+ "data-name": "card",
100
+ "data-type": feature,
101
+ className: style.quickAccess,
102
+ onClick: handleClick
103
+ }, /*#__PURE__*/React.createElement("div", {
104
+ style: {
105
+ background: `radial-gradient(62.12% 56.45% at 0% 77.29%,
106
+ hsl(${degrees}deg 68% 40% / 20%) 0%,
107
+ hsl(${degrees}deg 68% 40% / 0%) 100%),
108
+ radial-gradient(113.85% 103.46% at 93.27% 7.88%,
109
+ hsl(${degrees}deg 67% 51% / 15%) 0%,
110
+ hsl(${degrees}deg 67% 51% / 0%) 100%),
111
+ radial-gradient(49.66% 49.63% at 78.65% 86.26%,
112
+ hsl(${degrees}deg 87% 91%) 0%,
113
+ hsl(${degrees}deg 87% 91% / 0%) 100%),
114
+ #FAFAFA`
115
+ },
116
+ className: style.content
117
+ }, /*#__PURE__*/React.createElement("div", {
118
+ className: style.iconFeatureWrapper,
119
+ style: {
120
+ backgroundColor: iconColor
121
+ }
122
+ }, /*#__PURE__*/React.createElement(Icon, {
123
+ className: style.iconFeature
124
+ })), /*#__PURE__*/React.createElement("div", {
125
+ className: style.title
126
+ }, title, newTabOnClick), /*#__PURE__*/React.createElement("div", {
127
+ className: style.description
128
+ }, description), /*#__PURE__*/React.createElement("div", {
129
+ className: style.iconGotoWrapper,
130
+ style: {
131
+ backgroundColor: iconColor
132
+ }
133
+ }, /*#__PURE__*/React.createElement("div", {
134
+ className: style.hover,
135
+ style: {
136
+ color: iconColor
137
+ }
138
+ }, /*#__PURE__*/React.createElement(ActionIcon, {
139
+ className: style.iconGoto
140
+ })))));
141
+ };
142
+
143
+ QuickAccessCard.propTypes = process.env.NODE_ENV !== "production" ? {
144
+ title: PropTypes.string,
145
+ description: PropTypes.string,
146
+ onClick: PropTypes.func,
147
+ _blank: PropTypes.bool,
148
+ feature: PropTypes.oneOf(['analytics', 'cms', 'cockpit', 'massive_battle', 'manage_email', 'dashboard', 'look_and_feel', 'manage_users', 'upload_users'])
149
+ } : {};
150
+ export default QuickAccessCard;
151
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/quick-access-card/index.js"],"names":["React","useMemo","PropTypes","NovaSolidContentContentBookAdd","CockpitIcon","NovaSolidUsersActionsUser","ManageUserIcon","NovaSolidFilesBasicFileUpload2","UploadUserIcon","NovaSolidEmailAtSign","ManageEmailIcon","NovaSolidDesignPaintBrush2","LookAndFeelIcon","NovaSolidContentContentViewList","DashboardIcon","NovaSolidContentEditionFlash","MassiveBattleIcon","NovaSolidApplicationsWindowApplication5","CmsIcon","NovaSolidBusinessBusinessGraphLine2","AnalyticsIcon","NovaCompositionNavigationArrowRight","ActionIcon","NovaCompositionCoorpacademyOpenInNewTab","NewTabIcon","style","getIcon","feature","getBackgroudRadialColors","iconColor","degrees","QuickAccessCard","props","context","title","description","onClick","_blank","Icon","handleClick","e","newTabOnClick","newTabIcon","quickAccess","background","content","iconFeatureWrapper","backgroundColor","iconFeature","iconGotoWrapper","hover","color","iconGoto","propTypes","string","func","bool","oneOf"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SACEC,8BAA8B,IAAIC,WADpC,EAEEC,yBAAyB,IAAIC,cAF/B,EAGEC,8BAA8B,IAAIC,cAHpC,EAIEC,oBAAoB,IAAIC,eAJ1B,EAKEC,0BAA0B,IAAIC,eALhC,EAMEC,+BAA+B,IAAIC,aANrC,EAOEC,4BAA4B,IAAIC,iBAPlC,EAQEC,uCAAuC,IAAIC,OAR7C,EASEC,mCAAmC,IAAIC,aATzC,EAUEC,mCAAmC,IAAIC,UAVzC,EAWEC,uCAAuC,IAAIC,UAX7C,QAYO,0BAZP;AAaA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,OAAO,GAAGC,OAAO,IAAI;AACzB,UAAQA,OAAR;AACE,SAAK,cAAL;AACE,aAAOrB,cAAP;;AACF,SAAK,cAAL;AACE,aAAOE,cAAP;;AACF,SAAK,cAAL;AACE,aAAOE,eAAP;;AACF,SAAK,gBAAL;AACE,aAA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,IANF,CANF,CA5BF,CADF,CADF;AAgDD,CAvDD;;AAyDArB,eAAe,CAACsB,SAAhB,2CAA4B;AAC1BnB,EAAAA,KAAK,EAAEhC,SAAS,CAACoD,MADS;AAE1BnB,EAAAA,WAAW,EAAEjC,SAAS,CAACoD,MAFG;AAG1BlB,EAAAA,OAAO,EAAElC,SAAS,CAACqD,IAHO;AAI1BlB,EAAAA,MAAM,EAAEnC,SAAS,CAACsD,IAJQ;AAK1B7B,EAAAA,OAAO,EAAEzB,SAAS,CAACuD,KAAV,CAAgB,CACvB,WADuB,EAEvB,KAFuB,EAGvB,SAHuB,EAIvB,gBAJuB,EAKvB,cALuB,EAMvB,WANuB,EAOvB,eAPuB,EAQvB,cARuB,EASvB,cATuB,CAAhB;AALiB,CAA5B;AAkBA,eAAe1B,eAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaSolidContentContentBookAdd as CockpitIcon,\n NovaSolidUsersActionsUser as ManageUserIcon,\n NovaSolidFilesBasicFileUpload2 as UploadUserIcon,\n NovaSolidEmailAtSign as ManageEmailIcon,\n NovaSolidDesignPaintBrush2 as LookAndFeelIcon,\n NovaSolidContentContentViewList as DashboardIcon,\n NovaSolidContentEditionFlash as MassiveBattleIcon,\n NovaSolidApplicationsWindowApplication5 as CmsIcon,\n NovaSolidBusinessBusinessGraphLine2 as AnalyticsIcon,\n NovaCompositionNavigationArrowRight as ActionIcon,\n NovaCompositionCoorpacademyOpenInNewTab as NewTabIcon\n} from '@coorpacademy/nova-icons';\nimport style from './style.css';\n\nconst getIcon = feature => {\n switch (feature) {\n case 'manage_users':\n return ManageUserIcon;\n case 'upload_users':\n return UploadUserIcon;\n case 'manage_email':\n return ManageEmailIcon;\n case 'massive_battle':\n return MassiveBattleIcon;\n case 'cms':\n return CmsIcon;\n case 'look_and_feel':\n return LookAndFeelIcon;\n case 'dashboard':\n return DashboardIcon;\n case 'cockpit':\n return CockpitIcon;\n case 'analytics':\n return AnalyticsIcon;\n default:\n return CockpitIcon;\n }\n};\n\nconst getBackgroudRadialColors = feature => {\n switch (feature) {\n case 'manage_users':\n case 'upload_users':\n return {\n iconColor: '#2EC1D6',\n degrees: '187'\n };\n case 'look_and_feel':\n case 'dashboard':\n return {\n iconColor: '#18BB98',\n degrees: '167'\n };\n case 'cockpit':\n return {\n iconColor: '#FF7043',\n degrees: '14'\n };\n case 'manage_email':\n case 'massive_battle':\n case 'cms':\n return {\n iconColor: '#7340FF',\n degrees: '256'\n };\n case 'analytics':\n return {\n iconColor: '#FF4040',\n degrees: '0'\n };\n default:\n return null;\n }\n};\n\nconst QuickAccessCard = (props, context) => {\n const {title, description, feature, onClick, _blank} = props;\n const {iconColor, degrees} = getBackgroudRadialColors(feature);\n const Icon = getIcon(feature);\n const handleClick = useMemo(() => e => onClick(e), [onClick]);\n const newTabOnClick = _blank ? <NewTabIcon className={style.newTabIcon} /> : null;\n\n return (\n <div data-name=\"card\" data-type={feature} className={style.quickAccess} onClick={handleClick}>\n <div\n style={{\n background: `radial-gradient(62.12% 56.45% at 0% 77.29%, \n hsl(${degrees}deg 68% 40% / 20%) 0%, \n hsl(${degrees}deg 68% 40% / 0%) 100%), \n radial-gradient(113.85% 103.46% at 93.27% 7.88%,\n hsl(${degrees}deg 67% 51% / 15%) 0%, \n hsl(${degrees}deg 67% 51% / 0%) 100%),\n radial-gradient(49.66% 49.63% at 78.65% 86.26%, \n hsl(${degrees}deg 87% 91%) 0%, \n hsl(${degrees}deg 87% 91% / 0%) 100%), \n #FAFAFA`\n }}\n className={style.content}\n >\n <div\n className={style.iconFeatureWrapper}\n style={{\n backgroundColor: iconColor\n }}\n >\n <Icon className={style.iconFeature} />\n </div>\n <div className={style.title}>\n {title}\n {newTabOnClick}\n </div>\n <div className={style.description}>{description}</div>\n <div\n className={style.iconGotoWrapper}\n style={{\n backgroundColor: iconColor\n }}\n >\n <div\n className={style.hover}\n style={{\n color: iconColor\n }}\n >\n <ActionIcon className={style.iconGoto} />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nQuickAccessCard.propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n onClick: PropTypes.func,\n _blank: PropTypes.bool,\n feature: PropTypes.oneOf([\n 'analytics',\n 'cms',\n 'cockpit',\n 'massive_battle',\n 'manage_email',\n 'dashboard',\n 'look_and_feel',\n 'manage_users',\n 'upload_users'\n ])\n};\n\nexport default QuickAccessCard;\n"],"file":"index.js"}
@@ -0,0 +1,103 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value white from colors;
3
+
4
+ .quickAccess {
5
+ width: 268px;
6
+ height: 281px;
7
+ cursor: pointer;
8
+ }
9
+
10
+ .content {
11
+ height: 100%;
12
+ width: 100%;
13
+ border-radius: 8px;
14
+ }
15
+
16
+ .content:hover {
17
+ box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.1);
18
+ }
19
+
20
+ .title {
21
+ font-family: 'Gilroy';
22
+ font-weight: 600;
23
+ font-style: normal;
24
+ font-size: 20px;
25
+ line-height: 28px;
26
+ top: 84px;
27
+ left: 24px;
28
+ position: absolute;
29
+ }
30
+
31
+ .description {
32
+ font-family: 'Gilroy';
33
+ font-weight: 500;
34
+ font-style: normal;
35
+ font-size: 16px;
36
+ line-height: 22px;
37
+ position: absolute;
38
+ top: 120px;
39
+ left: 24px;
40
+ max-width: 212px;
41
+ }
42
+
43
+ .iconWrapper {
44
+ width: 44px;
45
+ height: 44px;
46
+ position: absolute;
47
+ border-radius: 8px;
48
+ }
49
+
50
+ .iconFeatureWrapper {
51
+ composes: iconWrapper;
52
+ top: 24px;
53
+ left: 24px;
54
+ }
55
+
56
+ .iconFeature {
57
+ color: white;
58
+ width: 20px;
59
+ height: 20px;
60
+ position: relative;
61
+ top: 12px;
62
+ left: 12px;
63
+ }
64
+
65
+ .iconGotoWrapper {
66
+ composes: iconWrapper;
67
+ top: 213px;
68
+ left: 200px;
69
+ background-color: white;
70
+ }
71
+
72
+ .hover {
73
+ composes: iconWrapper;
74
+ }
75
+
76
+ .iconGotoWrapper:hover .hover{
77
+ background: inherit;
78
+ transition: all 0.5s linear;
79
+ }
80
+
81
+ .iconGotoWrapper .hover{
82
+ background: white;
83
+ }
84
+
85
+ .iconGoto {
86
+ width: 14px;
87
+ height: 14px;
88
+ position: relative;
89
+ top: 15px;
90
+ left: 15px;
91
+ color: inherit;
92
+ transition: all 0.5s linear;
93
+ }
94
+
95
+ .iconGotoWrapper:hover .iconGoto{
96
+ color: white;
97
+ }
98
+
99
+ .newTabIcon {
100
+ padding-left: 8px;
101
+ width: 20px;
102
+ height: 20px;
103
+ }
@@ -0,0 +1,10 @@
1
+ export default {
2
+ props: {
3
+ title: 'See analytics',
4
+ description: 'Access to the analytics page on your platform',
5
+ _blank: true,
6
+ feature: 'analytics',
7
+ onClick: () => console.log('click everywhere')
8
+ }
9
+ };
10
+ //# sourceMappingURL=analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/analytics.js"],"names":["props","title","description","_blank","feature","onClick","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,eADF;AAELC,IAAAA,WAAW,EAAE,+CAFR;AAGLC,IAAAA,MAAM,EAAE,IAHH;AAILC,IAAAA,OAAO,EAAE,WAJJ;AAKLC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AALV;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'See analytics',\n description: 'Access to the analytics page on your platform',\n _blank: true,\n feature: 'analytics',\n onClick: () => console.log('click everywhere')\n }\n};\n"],"file":"analytics.js"}
@@ -0,0 +1,10 @@
1
+ export default {
2
+ props: {
3
+ title: 'Create course',
4
+ description: 'Access to cockpit to create courses',
5
+ _blank: true,
6
+ feature: 'cockpit',
7
+ onClick: () => console.log('click everywhere')
8
+ }
9
+ };
10
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/default.js"],"names":["props","title","description","_blank","feature","onClick","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,eADF;AAELC,IAAAA,WAAW,EAAE,qCAFR;AAGLC,IAAAA,MAAM,EAAE,IAHH;AAILC,IAAAA,OAAO,EAAE,SAJJ;AAKLC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AALV;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Create course',\n description: 'Access to cockpit to create courses',\n _blank: true,\n feature: 'cockpit',\n onClick: () => console.log('click everywhere')\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,9 @@
1
+ export default {
2
+ props: {
3
+ title: 'Edit look & feel',
4
+ description: 'Edit logos and colors of your platform',
5
+ feature: 'look_and_feel',
6
+ onClick: () => console.log('click everywhere')
7
+ }
8
+ };
9
+ //# sourceMappingURL=look-and-feel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/look-and-feel.js"],"names":["props","title","description","feature","onClick","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,kBADF;AAELC,IAAAA,WAAW,EAAE,wCAFR;AAGLC,IAAAA,OAAO,EAAE,eAHJ;AAILC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AAJV;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Edit look & feel',\n description: 'Edit logos and colors of your platform',\n feature: 'look_and_feel',\n onClick: () => console.log('click everywhere')\n }\n};\n"],"file":"look-and-feel.js"}
@@ -0,0 +1,9 @@
1
+ export default {
2
+ props: {
3
+ title: 'Manage email',
4
+ description: 'Manage all the settings for your emails',
5
+ feature: 'manage_email',
6
+ onClick: () => console.log('click everywhere')
7
+ }
8
+ };
9
+ //# sourceMappingURL=manage-email.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/manage-email.js"],"names":["props","title","description","feature","onClick","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,cADF;AAELC,IAAAA,WAAW,EAAE,yCAFR;AAGLC,IAAAA,OAAO,EAAE,cAHJ;AAILC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AAJV;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Manage email',\n description: 'Manage all the settings for your emails',\n feature: 'manage_email',\n onClick: () => console.log('click everywhere')\n }\n};\n"],"file":"manage-email.js"}
@@ -0,0 +1,9 @@
1
+ export default {
2
+ props: {
3
+ title: 'Upload Users',
4
+ description: 'Upload new users on your learning platform',
5
+ feature: 'upload_users',
6
+ onClick: () => console.log('click everywhere')
7
+ }
8
+ };
9
+ //# sourceMappingURL=upload-users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/upload-users.js"],"names":["props","title","description","feature","onClick","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,cADF;AAELC,IAAAA,WAAW,EAAE,4CAFR;AAGLC,IAAAA,OAAO,EAAE,cAHJ;AAILC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AAJV;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Upload Users',\n description: 'Upload new users on your learning platform',\n feature: 'upload_users',\n onClick: () => console.log('click everywhere')\n }\n};\n"],"file":"upload-users.js"}
@@ -3,12 +3,9 @@ import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import MoleculeScopeContent from '..';
5
5
  import fixtureArabic from './fixtures/arabic';
6
- import fixtureAudio from './fixtures/audio';
7
6
  import fixtureDefault from './fixtures/default';
8
7
  import fixtureEmpty from './fixtures/empty';
9
8
  import fixtureMedias from './fixtures/medias';
10
- import fixturePdf from './fixtures/pdf';
11
- import fixtureVimeo from './fixtures/vimeo';
12
9
  import fixtureWithOnclick from './fixtures/with-onclick';
13
10
  test('Molecule › MoleculeScopeContent > should have valid propTypes', t => {
14
11
  t.pass();
@@ -17,11 +14,8 @@ test('Molecule › MoleculeScopeContent > should have valid propTypes', t => {
17
14
  });
18
15
  });
19
16
  test('Molecule › MoleculeScopeContent › Arabic › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureArabic);
20
- test('Molecule › MoleculeScopeContent › Audio › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureAudio);
21
17
  test('Molecule › MoleculeScopeContent › Default › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureDefault);
22
18
  test('Molecule › MoleculeScopeContent › Empty › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureEmpty);
23
19
  test('Molecule › MoleculeScopeContent › Medias › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureMedias);
24
- test('Molecule › MoleculeScopeContent › Pdf › should be rendered', renderComponentMacro, MoleculeScopeContent, fixturePdf);
25
- test('Molecule › MoleculeScopeContent › Vimeo › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureVimeo);
26
20
  test('Molecule › MoleculeScopeContent › WithOnclick › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureWithOnclick);
27
21
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/scope-content/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeScopeContent","fixtureArabic","fixtureAudio","fixtureDefault","fixtureEmpty","fixtureMedias","fixturePdf","fixtureVimeo","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,o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vE,EAA6FC,oBAA7F,EAAmHQ,kBAAnH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeScopeContent from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureAudio from './fixtures/audio';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixturePdf from './fixtures/pdf';\nimport fixtureVimeo from './fixtures/vimeo';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeScopeContent > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeScopeContent.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeScopeContent.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeScopeContent › Arabic › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureArabic);\ntest('Molecule › MoleculeScopeContent › Audio › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureAudio);\ntest('Molecule › MoleculeScopeContent › Default › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureDefault);\ntest('Molecule › MoleculeScopeContent › Empty › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureEmpty);\ntest('Molecule › MoleculeScopeContent › Medias › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureMedias);\ntest('Molecule › MoleculeScopeContent › Pdf › should be rendered', renderComponentMacro, MoleculeScopeContent, fixturePdf);\ntest('Molecule › MoleculeScopeContent › Vimeo › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureVimeo);\ntest('Molecule › MoleculeScopeContent › WithOnclick › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureWithOnclick);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/scope-content/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeScopeContent","fixtureArabic","fixtureDefault","fixtureEmpty","fixtureMedias","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAR,IAAI,CAAC,+DAAD,EAAkES,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,oBAAoB,CAACQ,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,oBAAxF,EAA8GC,aAA9G,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,oBAAvF,EAA6GG,YAA7G,CAAJ;AACAN,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,oBAAxF,EAA8GI,aAA9G,CAAJ;AACAP,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,oBAA7F,EAAmHK,kBAAnH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeScopeContent from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeScopeContent > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeScopeContent.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeScopeContent.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeScopeContent › Arabic › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureArabic);\ntest('Molecule › MoleculeScopeContent › Default › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureDefault);\ntest('Molecule › MoleculeScopeContent › Empty › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureEmpty);\ntest('Molecule › MoleculeScopeContent › Medias › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureMedias);\ntest('Molecule › MoleculeScopeContent › WithOnclick › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureWithOnclick);\n"],"file":"fixtures.js"}
@@ -6,9 +6,6 @@ import fixtureDefault from './fixtures/default';
6
6
  import fixtureLinkOnly from './fixtures/link-only';
7
7
  import fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';
8
8
  import fixtureLogged from './fixtures/logged';
9
- import fixtureMobileSmallLogoFormat from './fixtures/mobile-small-logo-format';
10
- import fixtureMobileWideLogoFormat from './fixtures/mobile-wide-logo-format';
11
- import fixtureOnHeaderActionHandlers from './fixtures/on-header-action-handlers';
12
9
  import fixtureTeamsFrench from './fixtures/teams-french';
13
10
  import fixtureTeams from './fixtures/teams';
14
11
  import fixtureUserChangePassword from './fixtures/user-change-password';
@@ -22,9 +19,6 @@ test('Organism › OrganismMoocHeader › Default › should be rendered', rende
22
19
  test('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);
23
20
  test('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);
24
21
  test('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);
25
- test('Organism › OrganismMoocHeader › MobileSmallLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileSmallLogoFormat);
26
- test('Organism › OrganismMoocHeader › MobileWideLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileWideLogoFormat);
27
- test('Organism › OrganismMoocHeader › OnHeaderActionHandlers › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureOnHeaderActionHandlers);
28
22
  test('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);
29
23
  test('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);
30
24
  test('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/organism/mooc-header/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismMoocHeader","fixtureDefault","fixtureLinkOnly","fixtureLoggedWithBattleNotifications","fixtureLogged","fixtureMobileSmallLogoFormat","fixtureMobileWideLogoFormat","fixtureOnHeaderActionHandlers","fixtureTeamsFrench","fixtureTeams","fixtureUserChangePassword","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,kBAAP,MAA+B,IAA/B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,4BAAP,MAAyC,qCAAzC;AACA,OAAOC,2BAAP,MA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kGC,kBAAlG,EAAsHU,yBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismMoocHeader from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLinkOnly from './fixtures/link-only';\nimport fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';\nimport fixtureLogged from './fixtures/logged';\nimport fixtureMobileSmallLogoFormat from './fixtures/mobile-small-logo-format';\nimport fixtureMobileWideLogoFormat from './fixtures/mobile-wide-logo-format';\nimport fixtureOnHeaderActionHandlers from './fixtures/on-header-action-handlers';\nimport fixtureTeamsFrench from './fixtures/teams-french';\nimport fixtureTeams from './fixtures/teams';\nimport fixtureUserChangePassword from './fixtures/user-change-password';\n\ntest('Organism › OrganismMoocHeader > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismMoocHeader.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismMoocHeader.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismMoocHeader › Default › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureDefault);\ntest('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);\ntest('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);\ntest('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);\ntest('Organism › OrganismMoocHeader › MobileSmallLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileSmallLogoFormat);\ntest('Organism › OrganismMoocHeader › MobileWideLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileWideLogoFormat);\ntest('Organism › OrganismMoocHeader › OnHeaderActionHandlers › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureOnHeaderActionHandlers);\ntest('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);\ntest('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);\ntest('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/organism/mooc-header/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismMoocHeader","fixtureDefault","fixtureLinkOnly","fixtureLoggedWithBattleNotifications","fixtureLogged","fixtureTeamsFrench","fixtureTeams","fixtureUserChangePassword","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,kBAAP,MAA+B,IAA/B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AAEAV,IAAI,CAAC,6DAAD,EAAgEW,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACAX,EAAAA,OAAO,CAACE,kBAAkB,CAACU,SAApB,EAA+B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAf,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,kBAAvF,EAA2GC,cAA3G,CAAJ;AACAJ,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,kBAAxF,EAA4GE,eAA5G,CAAJ;AACAL,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,kBAA7G,EAAiIG,oCAAjI,CAAJ;AACAN,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,kBAAtF,EAA0GI,aAA1G,CAAJ;AACAP,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,kBAA3F,EAA+GK,kBAA/G,CAAJ;AACAR,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,kBAArF,EAAyGM,YAAzG,CAAJ;AACAT,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,kBAAlG,EAAsHO,yBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismMoocHeader from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLinkOnly from './fixtures/link-only';\nimport fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';\nimport fixtureLogged from './fixtures/logged';\nimport fixtureTeamsFrench from './fixtures/teams-french';\nimport fixtureTeams from './fixtures/teams';\nimport fixtureUserChangePassword from './fixtures/user-change-password';\n\ntest('Organism › OrganismMoocHeader > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismMoocHeader.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismMoocHeader.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismMoocHeader › Default › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureDefault);\ntest('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);\ntest('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);\ntest('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);\ntest('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);\ntest('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);\ntest('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);\n"],"file":"fixtures.js"}
@@ -5,7 +5,6 @@ import TemplateAppPlayerPlayer from '..';
5
5
  import fixtureArabicQcm from './fixtures/arabic-qcm';
6
6
  import fixtureBackground from './fixtures/background';
7
7
  import fixtureClue from './fixtures/clue';
8
- import fixtureContextWithAudio from './fixtures/context-with-audio';
9
8
  import fixtureContextWithImage from './fixtures/context-with-image';
10
9
  import fixtureContextWithPdf from './fixtures/context-with-pdf';
11
10
  import fixtureContextWithVideo from './fixtures/context-with-video';
@@ -33,7 +32,6 @@ test('TemplateAppPlayer › TemplateAppPlayerPlayer > should have valid propType
33
32
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › ArabicQcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureArabicQcm);
34
33
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › Background › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureBackground);
35
34
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › Clue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureClue);
36
- test('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithAudio › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithAudio);
37
35
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithImage);
38
36
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithPdf › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithPdf);
39
37
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithVideo › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithVideo);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/app-player/player/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateAppPlayerPlayer","fixtureArabicQcm","fixtureBackground","fixtureClue","fixtureContextWithAudio","fixtureContextWithImage","fixtureContextWithPdf","fixtureContextWithVideo","fixtureContext","fixtureDropDown","fixtureEmpty","fixtureError","fixtureFreeText","fixtureMediaImage","fixtureMediaOmniPlayer","fixtureMedia","fixtureNoClue","fixtureOnlyClue","fixtureQcmDrag","fixtureQcmGraphic","fixtureQcmShort","fixtureQcm","fixtureRange","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,uBAAP,MAAoC,IAApC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,sBAAP,MAAmC,8BAAnC;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,oBAA1B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,cAAP,MAA2B,qBAA3B;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AAnG,EAA4HU,YAA5H,CAAJ;AACAb,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4HW,YAA5H,CAAJ;AACAd,IAAI,CAAC,6EAAD,EAAgFE,oBAAhF,EAAsGC,uBAAtG,EAA+HY,eAA/H,CAAJ;AACAf,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,uBAAxG,EAAiIa,iBAAjI,CAAJ;AACAhB,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,uBAA7G,EAAsIc,sBAAtI,CAAJ;AACAjB,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4He,YAA5H,CAAJ;AACAlB,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,uBAApG,EAA6HgB,aAA7H,CAAJ;AACAnB,IAAI,CAAC,6EAAD,EAAgFE,oBAAhF,EAAsGC,uBAAtG,EAA+HiB,eAA/H,CAAJ;AACApB,IAAI,CAAC,4EAAD,EAA+EE,oBAA/E,EAAqGC,uBAArG,EAA8HkB,cAA9H,CAAJ;AACArB,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,uBAAxG,EAAiImB,iBAAjI,CAAJ;AACAtB,IAAI,CAAC,6EAAD,EAAgFE,oBAAhF,EAAsGC,uBAAtG,EAA+HoB,eAA/H,CAAJ;AACAvB,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,uBAAjG,EAA0HqB,UAA1H,CAAJ;AACAxB,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4HsB,YAA5H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateAppPlayerPlayer from '..';\nimport fixtureArabicQcm from './fixtures/arabic-qcm';\nimport fixtureBackground from './fixtures/background';\nimport fixtureClue from './fixtures/clue';\nimport fixtureContextWithAudio from './fixtures/context-with-audio';\nimport fixtureContextWithImage from './fixtures/context-with-image';\nimport fixtureContextWithPdf from './fixtures/context-with-pdf';\nimport fixtureContextWithVideo from './fixtures/context-with-video';\nimport fixtureContext from './fixtures/context';\nimport fixtureDropDown from './fixtures/drop-down';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureFreeText from './fixtures/free-text';\nimport fixtureMediaImage from './fixtures/media-image';\nimport fixtureMediaOmniPlayer from './fixtures/media-omni-player';\nimport fixtureMedia from './fixtures/media';\nimport fixtureNoClue from './fixtures/no-clue';\nimport fixtureOnlyClue from './fixtures/only-clue';\nimport fixtureQcmDrag from './fixtures/qcm-drag';\nimport fixtureQcmGraphic from './fixtures/qcm-graphic';\nimport fixtureQcmShort from './fixtures/qcm-short';\nimport fixtureQcm from './fixtures/qcm';\nimport fixtureRange from './fixtures/range';\n\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateAppPlayerPlayer.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateAppPlayer.TemplateAppPlayerPlayer.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ArabicQcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureArabicQcm);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Background › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureBackground);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Clue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithAudio › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithAudio);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithImage);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithPdf › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithPdf);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithVideo › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithVideo);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Context › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContext);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › DropDown › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureDropDown);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Empty › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureEmpty);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Error › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureError);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › FreeText › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureFreeText);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › MediaImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMediaImage);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › MediaOmniPlayer › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMediaOmniPlayer);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Media › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMedia);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › NoClue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureNoClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › OnlyClue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureOnlyClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmDrag › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmDrag);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmGraphic › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmGraphic);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmShort › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmShort);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Qcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcm);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Range › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureRange);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/app-player/player/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateAppPlayerPlayer","fixtureArabicQcm","fixtureBackground","fixtureClue","fixtureContextWithImage","fixtureContextWithPdf","fixtureContextWithVideo","fixtureContext","fixtureDropDown","fixtureEmpty","fixtureError","fixtureFreeText","fixtureMediaImage","fixtureMediaOmniPlayer","fixtureMedia","fixtureNoClue","fixtureOnlyClue","fixtureQcmDrag","fixtureQcmGraphic","fixtureQcmShort","fixtureQcm","fixtureRange","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,uBAAP,MAAoC,IAApC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,iBAAP,MAA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hF,EAAsGC,uBAAtG,EAA+HQ,eAA/H,CAAJ;AACAX,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4HS,YAA5H,CAAJ;AACAZ,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4HU,YAA5H,CAAJ;AACAb,IAAI,CAAC,6EAAD,EAAgFE,oBAAhF,EAAsGC,uBAAtG,EAA+HW,eAA/H,CAAJ;AACAd,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,uBAAxG,EAAiIY,iBAAjI,CAAJ;AACAf,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,uBAA7G,EAAsIa,sBAAtI,CAAJ;AACAhB,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4Hc,YAA5H,CAAJ;AACAjB,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,uBAApG,EAA6He,aAA7H,CAAJ;AACAlB,IAAI,CAAC,6EAAD,EAAgFE,oBAAhF,EAAsGC,uBAAtG,EAA+HgB,eAA/H,CAAJ;AACAnB,IAAI,CAAC,4EAAD,EAA+EE,oBAA/E,EAAqGC,uBAArG,EAA8HiB,cAA9H,CAAJ;AACApB,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,uBAAxG,EAAiIkB,iBAAjI,CAAJ;AACArB,IAAI,CAAC,6EAAD,EAAgFE,oBAAhF,EAAsGC,uBAAtG,EAA+HmB,eAA/H,CAAJ;AACAtB,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,uBAAjG,EAA0HoB,UAA1H,CAAJ;AACAvB,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4HqB,YAA5H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateAppPlayerPlayer from '..';\nimport fixtureArabicQcm from './fixtures/arabic-qcm';\nimport fixtureBackground from './fixtures/background';\nimport fixtureClue from './fixtures/clue';\nimport fixtureContextWithImage from './fixtures/context-with-image';\nimport fixtureContextWithPdf from './fixtures/context-with-pdf';\nimport fixtureContextWithVideo from './fixtures/context-with-video';\nimport fixtureContext from './fixtures/context';\nimport fixtureDropDown from './fixtures/drop-down';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureFreeText from './fixtures/free-text';\nimport fixtureMediaImage from './fixtures/media-image';\nimport fixtureMediaOmniPlayer from './fixtures/media-omni-player';\nimport fixtureMedia from './fixtures/media';\nimport fixtureNoClue from './fixtures/no-clue';\nimport fixtureOnlyClue from './fixtures/only-clue';\nimport fixtureQcmDrag from './fixtures/qcm-drag';\nimport fixtureQcmGraphic from './fixtures/qcm-graphic';\nimport fixtureQcmShort from './fixtures/qcm-short';\nimport fixtureQcm from './fixtures/qcm';\nimport fixtureRange from './fixtures/range';\n\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateAppPlayerPlayer.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateAppPlayer.TemplateAppPlayerPlayer.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ArabicQcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureArabicQcm);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Background › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureBackground);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Clue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithImage);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithPdf › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithPdf);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithVideo › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithVideo);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Context › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContext);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › DropDown › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureDropDown);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Empty › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureEmpty);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Error › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureError);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › FreeText › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureFreeText);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › MediaImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMediaImage);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › MediaOmniPlayer › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMediaOmniPlayer);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Media › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMedia);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › NoClue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureNoClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › OnlyClue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureOnlyClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmDrag › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmDrag);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmGraphic › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmGraphic);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmShort › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmShort);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Qcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcm);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Range › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureRange);\n"],"file":"fixtures.js"}
@@ -7,7 +7,6 @@ import fixtureAnimations from './fixtures/animations';
7
7
  import fixtureCohortError from './fixtures/cohort-error';
8
8
  import fixtureCohort from './fixtures/cohort';
9
9
  import fixtureDashboard from './fixtures/dashboard';
10
- import fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';
11
10
  import fixtureDefault from './fixtures/default';
12
11
  import fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';
13
12
  import fixtureGeneralSettings from './fixtures/general-settings';
@@ -40,7 +39,6 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › sh
40
39
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);
41
40
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);
42
41
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);
43
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);
44
42
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);
45
43
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);
46
44
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);