@imposium-hub/components 1.36.1 → 1.36.3

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/Util.ts CHANGED
@@ -208,7 +208,15 @@ export const isFont = (mimeType, extension) => {
208
208
  'woff2',
209
209
  'font-sfnt',
210
210
  'font-woff',
211
- 'vnd.ms-fontobject'
211
+ 'vnd.ms-fontobject',
212
+ 'font/otf',
213
+ 'font/sfnt',
214
+ 'font/ttf',
215
+ 'font/woff',
216
+ 'font/woff2',
217
+ 'font/font-sfnt',
218
+ 'font/font-woff',
219
+ 'font/vnd.ms-fontobject'
212
220
  ];
213
221
 
214
222
  if (mimeType) {
@@ -86,10 +86,13 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
86
86
  }
87
87
 
88
88
  public componentWillUnmount() {
89
+ const {api, onError} = this.props;
90
+ const {experienceId} = this.state;
89
91
 
90
92
  this.timer.stop();
91
93
 
92
94
  this.evtHandlers.gotExperience = null;
95
+ api.cancelExperiencePolling();
93
96
  }
94
97
 
95
98
  private getInventoryOptions() {