@social-mail/social-mail-client 1.2.265 → 1.2.266
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/admin/AdminAppIndex.pack.js +4 -1
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.d.ts.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.js +4 -1
- package/dist/common/pages/stores/products/ProductEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +4 -1
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/stores/products/ProductEditor.tsx +5 -1
|
@@ -49992,9 +49992,12 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
49992
49992
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49993
49993
|
(_a = (_b = this.model).mediaFiles) !== null && _a !== void 0 ? _a : _b.mediaFiles = [];
|
|
49994
49994
|
for (const appFile of files) {
|
|
49995
|
+
const isPreview = /^(image|video)\//i.test(appFile.contentType);
|
|
49995
49996
|
this.model.mediaFiles.add(StoreMediaFile.create({
|
|
49996
49997
|
appFile,
|
|
49997
|
-
appFileID: appFile.appFileID
|
|
49998
|
+
appFileID: appFile.appFileID,
|
|
49999
|
+
fileContentID: appFile.fileContentID,
|
|
50000
|
+
isPreview
|
|
49998
50001
|
}));
|
|
49999
50002
|
}
|
|
50000
50003
|
});
|