@imposium-hub/components 1.43.0 → 1.43.2

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.
@@ -337,13 +337,17 @@ class EmailWorkflow extends React.PureComponent<IEmailWorkflowProps, IEmailWorkf
337
337
 
338
338
  if (colOpts.length < varArray.length) {
339
339
  return (
340
- <><HRule/><p className='missingColumns'>{`${copy.publish.csvMissingColumns} ${showMissing}`}</p></>
340
+ <>
341
+ <h2>{copy.publish.titleMissingColumns}</h2>
342
+ <HRule/>
343
+ <p className='missingColumns'>{`${copy.publish.csvMissingColumns} ${showMissing}`}</p>
344
+ </>
341
345
  );
342
346
  } else {
343
347
  return (
344
348
  <div className = 'align-columns' >
349
+ <h2 className='match-columns'>{`${copy.publish.csvMatchColumns}`}</h2>
345
350
  <HRule/>
346
- <p className='match-columns'>{`${copy.publish.csvMatchColumns}`}</p>
347
351
 
348
352
  <table>
349
353
  <thead>
@@ -21,6 +21,7 @@ import {ICON_VIDEO, ICON_IMAGE, ICON_STICKY_NOTE} from '../../constants/icons';
21
21
  import { formattedTime } from '../../Util';
22
22
  import Timer from '../../services/Timer';
23
23
  import LogViewer from '../log-viewer/LogViewer';
24
+ import { connect } from 'react-redux';
24
25
 
25
26
  interface IStoryPreviewerProps {
26
27
  api : IImposiumAPI;
@@ -35,6 +36,7 @@ interface IStoryPreviewerProps {
35
36
  onJobCreated?(expId : string, jobId : string) : void;
36
37
  onExperenceLoaded?(exp : IExperience) : void;
37
38
  onError?(n : string) : void;
39
+ notifications : any;
38
40
  }
39
41
 
40
42
  interface IStoryPreviewerState {
@@ -210,6 +212,18 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
210
212
  });
211
213
  }
212
214
 
215
+ if (this.props.notifications) {
216
+ if (this.props.notifications[0]) {
217
+ if (this.props.notifications[0]['type'] === 'error') {
218
+ this.setState({isTimeOut: true});
219
+ }
220
+
221
+ if (this.props.notifications[0]['type'] === 'info') {
222
+ this.setState({isTimeOut: false});
223
+ }
224
+ }
225
+ }
226
+
213
227
  if (prevState.timeElapsed !== this.state.timeElapsed) {
214
228
  if (formattedTime(this.state.timeElapsed) === this.TIMEOUT && !this.state.experience) {
215
229
 
@@ -530,7 +544,7 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
530
544
  jobId: null,
531
545
  timeElapsed: !isTimeOut ? 0 : this.state.timeElapsed,
532
546
  activeOutput: null,
533
- isTimeOut
547
+ isTimeOut: false,
534
548
  }, () => {
535
549
  if (callback) {
536
550
  callback();
@@ -656,5 +670,8 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
656
670
  </div>;
657
671
  }
658
672
  }
673
+ const mapStateToProps = (state) : any => {
674
+ return {notifications : state.notifications};
675
+ };
659
676
 
660
- export default StoryPreviewer;
677
+ export default connect(mapStateToProps, {})(StoryPreviewer);
package/constants/copy.ts CHANGED
@@ -137,7 +137,8 @@ export const publish = {
137
137
  creatingLinks: 'Creating User Links... (please wait)',
138
138
  importingData: 'Importing Data... (please wait)',
139
139
  downloadDesc: 'Your CSV data file is ready to download with an embed code you can import into your email platform to send out.',
140
- csvMissingColumns: 'Warning: Some of your column names did not match up with the variables in the story. Please ensure these variables line up and then re-upload the csv: ',
140
+ titleMissingColumns: 'Warning: ',
141
+ csvMissingColumns: 'Some of your column names did not match up with the variables in the story. Please ensure these variables line up and then re-upload the csv: ',
141
142
  csvMatchColumns: 'Please match the column(s) provided to the story variables:',
142
143
  // export
143
144
  exportBatchOfVideo: 'Export batch of videos',