@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/browser/formbuilder.min.js +52 -52
- package/dist/browser/{formbuilder.v0.2.24.min.js → formbuilder.v0.2.25.min.js} +52 -52
- package/dist/cjs/index.cjs +5 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/form-builder.js +52 -52
- package/package.json +1 -1
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) {
|