@scrider/formatter 1.6.1 → 1.6.2

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
@@ -2019,7 +2019,7 @@ var EMBED_RENDERERS = {
2019
2019
  const style = styles.length > 0 ? ` style="${styles.join("; ")}"` : "";
2020
2020
  const embedSrc = toVideoEmbedUrl(src);
2021
2021
  if (embedSrc) {
2022
- return `<iframe src="${escapeHtml(embedSrc)}" frameborder="0" allowfullscreen${float}${style}></iframe>`;
2022
+ return `<iframe src="${escapeHtml(embedSrc)}" frameborder="0" allowfullscreen credentialless${float}${style}></iframe>`;
2023
2023
  }
2024
2024
  return `<video src="${escapeHtml(src)}" controls${float}${style}></video>`;
2025
2025
  },
@@ -2040,7 +2040,7 @@ var EMBED_RENDERERS = {
2040
2040
  }
2041
2041
  const style = styles.length > 0 ? ` style="${styles.join("; ")}"` : "";
2042
2042
  const embedSrc = toCodeWidgetEmbedUrl(src);
2043
- return `<iframe data-code-widget src="${escapeHtml(embedSrc)}" frameborder="0" allowfullscreen allow="${CODE_WIDGET_IFRAME_ALLOW}"${float}${style}></iframe>`;
2043
+ return `<iframe data-code-widget src="${escapeHtml(embedSrc)}" frameborder="0" allowfullscreen allow="${CODE_WIDGET_IFRAME_ALLOW}" credentialless${float}${style}></iframe>`;
2044
2044
  },
2045
2045
  formula: (value) => {
2046
2046
  const latex = typeof value === "string" ? value : "";
@@ -2229,7 +2229,7 @@ var codeWidgetFormat = {
2229
2229
  }
2230
2230
  const style = styles.length > 0 ? ` style="${styles.join("; ")}"` : "";
2231
2231
  const embedSrc = toCodeWidgetEmbedUrl(src);
2232
- return `<iframe data-code-widget src="${escapeHtml(embedSrc)}" frameborder="0" allowfullscreen allow="${CODE_WIDGET_IFRAME_ALLOW}"${float}${style}></iframe>`;
2232
+ return `<iframe data-code-widget src="${escapeHtml(embedSrc)}" frameborder="0" allowfullscreen allow="${CODE_WIDGET_IFRAME_ALLOW}" credentialless${float}${style}></iframe>`;
2233
2233
  },
2234
2234
  match(element) {
2235
2235
  if (element.tagName.toLowerCase() !== "iframe") return null;
@@ -2493,7 +2493,7 @@ var videoFormat = {
2493
2493
  const style = styles.length > 0 ? ` style="${styles.join("; ")}"` : "";
2494
2494
  const embedSrc = toVideoEmbedUrl(src);
2495
2495
  if (embedSrc) {
2496
- return `<iframe src="${escapeHtml(embedSrc)}" frameborder="0" allowfullscreen${float}${style}></iframe>`;
2496
+ return `<iframe src="${escapeHtml(embedSrc)}" frameborder="0" allowfullscreen credentialless${float}${style}></iframe>`;
2497
2497
  }
2498
2498
  return `<video src="${escapeHtml(src)}" controls${float}${style}></video>`;
2499
2499
  },