@capillarytech/creatives-library 7.17.212 → 7.17.213

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.212",
4
+ "version": "7.17.213",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -134,7 +134,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
134
134
  this.handleSetRadioValue = this.handleSetRadioValue.bind(this);
135
135
  this.formElements = [];
136
136
  // Check if the liquid flow feature is supported and the channel is in the supported list.
137
- this.liquidFlow = LIQUID_SUPPORTED_CHANNELS.includes(props?.schema?.channel?.toUpperCase()) && hasLiquidSupportFeature();
137
+ this.liquidFlow = Boolean(LIQUID_SUPPORTED_CHANNELS.includes(props?.schema?.channel?.toUpperCase()) && hasLiquidSupportFeature());
138
138
  }
139
139
 
140
140
  componentWillMount() {
@@ -2325,7 +2325,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
2325
2325
  const _URL = window.URL || window.webkitURL;
2326
2326
  const file = files[0];
2327
2327
  if (val.supportedExtensions) {
2328
- const allowedExtensions = /(\.bmp|\.jpeg|\.png|\.gif|\.jpg)$/i;
2328
+ const allowedExtensions = /(\.bmp|\.jpeg|\.png|\.gif|\.avif|\.jpg)$/i;
2329
2329
  if (!allowedExtensions.exec(file.name)) {
2330
2330
  this.callChildEvent({file, type: 'wrong file'}, val, val.submitAction);
2331
2331
  }