@marimo-team/islands 0.19.7-dev31 → 0.19.7-dev33

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/main.js CHANGED
@@ -61390,7 +61390,7 @@ ${r}
61390
61390
  async function toPng$1(e, r = {}) {
61391
61391
  return (await toCanvas(e, r)).toDataURL();
61392
61392
  }
61393
- const defaultHtmlToImageOptions = {
61393
+ const necessaryStyleProperties = "width.height.min-width.min-height.max-width.max-height.box-sizing.aspect-ratio.display.position.top.left.bottom.right.z-index.float.clear.flex.flex-direction.flex-wrap.flex-grow.flex-shrink.flex-basis.align-items.align-self.justify-content.gap.order.grid-template-columns.grid-template-rows.grid-column.grid-row.row-gap.column-gap.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.font.font-family.font-size.font-weight.font-style.line-height.letter-spacing.word-spacing.text-align.text-decoration.text-transform.text-indent.text-shadow.white-space.text-wrap.word-break.text-overflow.vertical-align.color.background.background-color.background-image.background-size.background-position.background-repeat.background-clip.border.border-width.border-style.border-color.border-top.border-right.border-bottom.border-left.border-radius.outline.box-shadow.text-shadow.opacity.filter.backdrop-filter.mix-blend-mode.transform.clip-path.visibility.fill.stroke.stroke-width.object-fit.object-position.list-style.list-style-type.border-collapse.border-spacing.content.cursor".split("."), defaultHtmlToImageOptions = {
61394
61394
  filter: (e) => {
61395
61395
  try {
61396
61396
  return !("classList" in e && (e.classList.contains("mpl-toolbar") || e.classList.contains("no-print")));
@@ -61402,9 +61402,10 @@ ${r}
61402
61402
  Logger.error("Error loading image:", e);
61403
61403
  }
61404
61404
  };
61405
- async function toPng(e, r) {
61405
+ async function toPng(e, r, c) {
61406
61406
  return toPng$1(e, {
61407
61407
  ...defaultHtmlToImageOptions,
61408
+ includeStyleProperties: c ? necessaryStyleProperties : void 0,
61408
61409
  ...r
61409
61410
  });
61410
61411
  }
@@ -73082,7 +73083,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
73082
73083
  return Logger.warn("Failed to get version from mount config"), null;
73083
73084
  }
73084
73085
  }
73085
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.7-dev31"), showCodeInRunModeAtom = atom(true);
73086
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.7-dev33"), showCodeInRunModeAtom = atom(true);
73086
73087
  atom(null);
73087
73088
  var import_compiler_runtime$88 = require_compiler_runtime();
73088
73089
  function useKeydownOnElement(e, r) {