@dmitryvim/form-builder 0.2.24 → 0.2.25

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/esm/index.js CHANGED
@@ -2288,6 +2288,10 @@ async function renderFilePreview(container, resourceId, state, options = {}) {
2288
2288
  meta,
2289
2289
  state
2290
2290
  );
2291
+ const isVideo = meta?.type?.startsWith("video/");
2292
+ if (!isReadonly && !isVideo) {
2293
+ renderDeleteButton(container, resourceId, state);
2294
+ }
2291
2295
  }
2292
2296
  }
2293
2297
  async function renderFilePreviewReadonly(resourceId, state, fileName) {