@tn-pulse-suivi/notion-ui-comps 1.0.9 → 1.0.10

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/index.cjs CHANGED
@@ -21303,25 +21303,27 @@ function EditorProvider(props) {
21303
21303
  const isFile = htmImg instanceof File;
21304
21304
  if (!isFile) {
21305
21305
  const { src } = htmImg;
21306
- urlToFile(src, `pasted-${hiIndex}.png`, (err, imf) => {
21307
- if (err) {
21308
- console.error("handlePaste.urlToFile.cb ~ err : ", err);
21309
- } else {
21310
- htmlImagesFiles.push(imf);
21311
- if (htmlImagesFiles.length === htmlImages.length) {
21312
- transformNodesAndinsertSliceAtBmark({
21313
- Fragment: Fragment31,
21314
- imageType,
21315
- imageUploadType,
21316
- pastedblobs: [...fileImages, ...htmlImagesFiles],
21317
- slice,
21318
- view,
21319
- bookmark,
21320
- imageIndexRef
21321
- });
21306
+ if (!src.includes("jsdelivr.net")) {
21307
+ urlToFile(src, `pasted-${hiIndex}.png`, (err, imf) => {
21308
+ if (err) {
21309
+ console.error("handlePaste.urlToFile.cb ~ err : ", err);
21310
+ } else {
21311
+ htmlImagesFiles.push(imf);
21312
+ if (htmlImagesFiles.length === htmlImages.length) {
21313
+ transformNodesAndinsertSliceAtBmark({
21314
+ Fragment: Fragment31,
21315
+ imageType,
21316
+ imageUploadType,
21317
+ pastedblobs: [...fileImages, ...htmlImagesFiles],
21318
+ slice,
21319
+ view,
21320
+ bookmark,
21321
+ imageIndexRef
21322
+ });
21323
+ }
21322
21324
  }
21323
- }
21324
- });
21325
+ });
21326
+ }
21325
21327
  }
21326
21328
  });
21327
21329
  } else {