frst-components 0.20.14 → 0.20.15

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/dist/index.js CHANGED
@@ -1056,7 +1056,6 @@ function AudioPlayer(props) {
1056
1056
  const [audioVolume, setAudioVolume] = React.useState(props.volume ? props.volume : 0.5);
1057
1057
  const [play, { pause, duration, sound }] = useSound__default["default"](props.audio, { volume: audioVolume,
1058
1058
  onend: () => {
1059
- console.log("Passou aqui 3");
1060
1059
  setIsPlaying(false);
1061
1060
  props.onEnded();
1062
1061
  } });
@@ -1067,11 +1066,11 @@ function AudioPlayer(props) {
1067
1066
  setAudioVolume(props.volume);
1068
1067
  }, [props.volume]);
1069
1068
  React.useEffect(() => {
1070
- console.log('isPlaying', isPlaying);
1071
- }, [isPlaying]);
1069
+ setIsPlaying(false);
1070
+ pause();
1071
+ }, [props.exitSound]);
1072
1072
  React.useEffect(() => {
1073
1073
  if (props.onProgress) {
1074
- console.log(isPlaying);
1075
1074
  if (isPlaying) {
1076
1075
  props.onProgress({
1077
1076
  loadedSeconds: duration / 1000,
@@ -1110,12 +1109,10 @@ function AudioPlayer(props) {
1110
1109
  }, [sound]);
1111
1110
  const playingButton = () => {
1112
1111
  if (isPlaying) {
1113
- console.log("Passou aqui");
1114
1112
  setIsPlaying(false);
1115
1113
  pause();
1116
1114
  }
1117
1115
  else {
1118
- console.log("Passou aqui 2");
1119
1116
  setIsPlaying(true);
1120
1117
  play();
1121
1118
  }
@@ -10469,17 +10466,17 @@ function Thumbnails({ variant, src, showSwitch, handleClickCourse, handleClickNe
10469
10466
  width: 100
10470
10467
  } }) })
10471
10468
  :
10472
- jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PopOverItem, { label: txtPopOverEditContent ? txtPopOverEditContent : "Editar conteúdo", onClick: () => {
10469
+ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(PopOverItem, { label: txtPopOverEditContent ? txtPopOverEditContent : "Editar módulo", onClick: () => {
10473
10470
  setElementPopover(null);
10474
10471
  handleClickPopOverEdit();
10475
10472
  }, style: {
10476
10473
  borderBottom: '1px black solid'
10477
- } }), jsxRuntime.jsx(PopOverItem, { label: txtPopOverEditContentActivity ? txtPopOverEditContentActivity : "Editar atividades", onClick: () => {
10474
+ } }), jsxRuntime.jsx(PopOverItem, { label: txtPopOverEditContentActivity ? txtPopOverEditContentActivity : "Editar conteúdos", onClick: () => {
10478
10475
  setElementPopover(null);
10479
10476
  handleClickPopOverEditActivity();
10480
10477
  }, style: {
10481
10478
  borderBottom: '1px black solid'
10482
- } }), jsxRuntime.jsx(PopOverItem, { label: txtPopOverDeleteContent ? txtPopOverDeleteContent : "Excluir conteúdo", onClick: () => {
10479
+ } }), jsxRuntime.jsx(PopOverItem, { label: txtPopOverDeleteContent ? txtPopOverDeleteContent : "Excluir módulo", onClick: () => {
10483
10480
  setElementPopover(null);
10484
10481
  /// timeout para corrigir o bug de scroll na tela
10485
10482
  setTimeout(() => {
@@ -10785,7 +10782,7 @@ function AccordionTrack(props) {
10785
10782
  return (jsxRuntime.jsxs(ContainerTrailsNormal, { style: {}, children: [jsxRuntime.jsx(ScrollContainer, { stepMove: 380, isVisibleControlsButtons: true, sizeArrowButton: 80, marginsArrowButton: 10, horizontalMarginInternScroll: '5px', refreshResize: RefreshResize, styles: { backgroundColor: '#ebebeb', justifyContent: 'flex-start', width: '100%' }, children: jsxRuntime.jsx(ContainerCard, { ref: provided.innerRef, ...provided.droppableProps, children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Thumbnails, { variant: 'default', isDisabled: false, isLoading: true }), jsxRuntime.jsx(Thumbnails, { variant: 'default', isDisabled: false, isLoading: true }), jsxRuntime.jsx(Thumbnails, { variant: 'default', isDisabled: false, isLoading: true }), jsxRuntime.jsx(Thumbnails, { variant: 'default', isDisabled: false, isLoading: true })] }) }) }), provided.placeholder] }));
10786
10783
  } }, CONTEUDO_INDIVIDUAL_CONTENT) }) })
10787
10784
  :
10788
- jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(ContentCoursesTrails, { TrailName: props.txtCursoIndividual ? props.txtCursoIndividual : 'Conteúdo individual', ativo: true, show: ShowIndividual, handleChangeCheck: (bActive) => {
10785
+ jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(ContentCoursesTrails, { TrailName: props.txtCursoIndividual ? props.txtCursoIndividual : 'Módulos', ativo: true, show: ShowIndividual, handleChangeCheck: (bActive) => {
10789
10786
  // if (props.handleSwitchActiveTrail) {
10790
10787
  // props.handleSwitchActiveTrail(trailIndex, bActive)
10791
10788
  // }
@@ -10841,10 +10838,10 @@ function AccordionTrack(props) {
10841
10838
  }, txtPopOverEditContent: props.txtPopOverEditContent, txtPopOverMoveToTrails: props.txtPopOverMoveToTrails, txtPopOverDeleteContent: props.txtPopOverDeleteContent }) }));
10842
10839
  }) }) }), provided.placeholder] }, `contentTrailsDrop${trailIndex}`));
10843
10840
  } }, trailIndex + 2) }, `contentTrails${trailIndex}`) }));
10844
- })] }), jsxRuntime.jsx(ModalLXP, { open: ModalDeleteConteudo, handleClose: () => { setModalDeleteConteudo(false); }, handleConfirmation: () => { props.handleDeleteCourse(IdDelete); }, title: "Você tem certeza?", style: { width: 600 }, confirmationButton: "Sim, excluir", cancelButton: "Cancelar", children: jsxRuntime.jsx("div", { children: "Voc\u00EA realmente quer deletar este conte\u00FAdo? Voc\u00EA ir\u00E1 perder todas as atividades criadas." }) }), jsxRuntime.jsx(ModalLXP, { open: ModalDeleteTrilha, handleClose: () => { setModalDeleteTrilha(false); }, handleConfirmation: () => {
10841
+ })] }), jsxRuntime.jsx(ModalLXP, { open: ModalDeleteConteudo, handleClose: () => { setModalDeleteConteudo(false); }, handleConfirmation: () => { props.handleDeleteCourse(IdDelete); }, title: "Você tem certeza?", style: { width: 600 }, confirmationButton: "Sim, excluir", cancelButton: "Cancelar", children: jsxRuntime.jsx("div", { children: "Voc\u00EA realmente quer deletar este m\u00F3dulo? Voc\u00EA ir\u00E1 perder todos os conte\u00FAdos criados." }) }), jsxRuntime.jsx(ModalLXP, { open: ModalDeleteTrilha, handleClose: () => { setModalDeleteTrilha(false); }, handleConfirmation: () => {
10845
10842
  console.log("Passou aqui");
10846
10843
  props.handlePopOverTrailDelete(IdDelete);
10847
- }, title: "Você tem certeza?", style: { width: 600 }, confirmationButton: "Sim, excluir", cancelButton: "Cancelar", children: jsxRuntime.jsx("div", { children: "Voc\u00EA realmente quer deletar esta trilha?" }) }), jsxRuntime.jsx(ModalLXP, { open: ModalDeleteTrilhaConteudo, handleClose: () => { setModalDeleteTrilhaConteudo(false); }, handleConfirmation: () => { props.handleDeleteCourseTrail(IdDelete); }, title: "Você tem certeza?", style: { width: 600 }, confirmationButton: "Sim, excluir", cancelButton: "Cancelar", children: jsxRuntime.jsx("div", { children: "Voc\u00EA realmente quer remover o conte\u00FAdo desta trilha?" }) })] }));
10844
+ }, title: "Você tem certeza?", style: { width: 600 }, confirmationButton: "Sim, excluir", cancelButton: "Cancelar", children: jsxRuntime.jsx("div", { children: "Voc\u00EA realmente quer deletar esta trilha?" }) }), jsxRuntime.jsx(ModalLXP, { open: ModalDeleteTrilhaConteudo, handleClose: () => { setModalDeleteTrilhaConteudo(false); }, handleConfirmation: () => { props.handleDeleteCourseTrail(IdDelete); }, title: "Você tem certeza?", style: { width: 600 }, confirmationButton: "Sim, excluir", cancelButton: "Cancelar", children: jsxRuntime.jsx("div", { children: "Voc\u00EA realmente quer remover o m\u00F3dulo desta trilha?" }) })] }));
10848
10845
  }
10849
10846
 
10850
10847
  function AccordionTrackList({ trailsData, courseData, handleChange, onNewTrail, handleEditCourse,
@@ -11369,7 +11366,7 @@ const DescriptionThumbnails = styled__default["default"].div `
11369
11366
  white-space: normal;
11370
11367
  color: ${({ theme }) => theme.colors.shadeWhite};
11371
11368
  padding-bottom: 8px;
11372
- width: 240px;
11369
+ width: 220px;
11373
11370
  }
11374
11371
  p {
11375
11372
  color: ${({ theme }) => theme.colors.shadeWhite};
@@ -11382,6 +11379,8 @@ const DescriptionThumbnails = styled__default["default"].div `
11382
11379
  font-family: ${({ theme }) => theme.fonts.textMessageComponentsBodyRegular.fontFamily};
11383
11380
  white-space: normal;
11384
11381
  overflow: auto;
11382
+ padding-right: 8px;
11383
+ width: 220px;
11385
11384
  }
11386
11385
 
11387
11386
  p::-webkit-scrollbar {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/IJ/learningCycleCard/components/menu/index.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE;;;CAAA,eAiFnD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IJ/learningCycleCard/components/menu/index.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE;;;CAAA,eAiFnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"menuStyle.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/IJ/learningCycleCard/components/menu/menuStyle.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,oEAuBxB,CAAA"}
1
+ {"version":3,"file":"menuStyle.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IJ/learningCycleCard/components/menu/menuStyle.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,oEAuBxB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"participantThumbnails.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/participantThumbnails/participantThumbnails.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAA;CACV;AAED,eAAO,MAAM,cAAc,oEAsB1B,CAAA;AAED,eAAO,MAAM,oBAAoB,uFAchC,CAAA;AACD,eAAO,MAAM,kBAAkB,oEAO9B,CAAA;AAED,eAAO,MAAM,mBAAmB,uFAS/B,CAAA;AAED,eAAO,MAAM,qBAAqB,oEAuDjC,CAAA;AAED,eAAO,MAAM,2BAA2B,uFAevC,CAAA"}
1
+ {"version":3,"file":"participantThumbnails.d.ts","sourceRoot":"","sources":["../../../../../src/components/LXP/participantThumbnails/participantThumbnails.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAA;CACV;AAED,eAAO,MAAM,cAAc,oEAsB1B,CAAA;AAED,eAAO,MAAM,oBAAoB,uFAchC,CAAA;AACD,eAAO,MAAM,kBAAkB,oEAO9B,CAAA;AAED,eAAO,MAAM,mBAAmB,uFAS/B,CAAA;AAED,eAAO,MAAM,qBAAqB,oEAyDjC,CAAA;AAED,eAAO,MAAM,2BAA2B,uFAevC,CAAA"}
@@ -15,6 +15,7 @@ interface IAudioPlayer {
15
15
  volume?: number;
16
16
  onProgress?: (data: any) => void;
17
17
  onEnded?: () => void;
18
+ exitSound?: number;
18
19
  style?: React.CSSProperties;
19
20
  }
20
21
  export default function AudioPlayer(props: IAudioPlayer): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/audio-player/index.tsx"],"names":[],"mappings":";AAOA,UAAU,YAAY;IAClB,KAAK,EAAE,GAAG,CAAA;IACV;;MAEE;IACF,OAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAK,CAAC,EAAE,MAAM,CAAA;IACd;;MAEE;IACF,MAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAW,CAAC,EAAE,CAAC,IAAI,KAAA,KAAK,IAAI,CAAA;IAC5B,OAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,KAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAG,KAAK,EAAG,YAAY,eAsLzD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/audio-player/index.tsx"],"names":[],"mappings":";AAOA,UAAU,YAAY;IAClB,KAAK,EAAE,GAAG,CAAA;IACV;;MAEE;IACF,OAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAK,CAAC,EAAE,MAAM,CAAA;IACd;;MAEE;IACF,MAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAW,CAAC,EAAE,CAAC,IAAI,KAAA,KAAK,IAAI,CAAA;IAC5B,OAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,CAAC,EAAG,MAAM,CAAA;IACnB,KAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAG,KAAK,EAAG,YAAY,eAiLzD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.20.14",
4
+ "version": "0.20.15",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",