@segnavia/render 0.7.0 → 0.8.0

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/deck-pdf.js CHANGED
@@ -28,7 +28,7 @@ async function regularDeckPdf(deck, opts, services) {
28
28
  width: Math.round(notesGeometry.sheet.width),
29
29
  height: Math.round(notesGeometry.sheet.height)
30
30
  } : deck.size,
31
- scripts: deck.scripts === "sandboxed",
31
+ scripts: true,
32
32
  html: printableDeck(deck, {
33
33
  ...opts,
34
34
  css,
@@ -107,7 +107,7 @@ async function imposedDeckPdf(deck, imposition, opts, services) {
107
107
  index,
108
108
  bytes: await services.renderPdf({
109
109
  viewport: deck.size,
110
- scripts: deck.scripts === "sandboxed",
110
+ scripts: slide.content.kind === "html" ? deck.scripts === "sandboxed" : true,
111
111
  html,
112
112
  boundMs: opts.boundMs
113
113
  }, {
package/dist/index.js CHANGED
@@ -358,7 +358,7 @@ async function openRenderer(options) {
358
358
  });
359
359
  return withTab({
360
360
  viewport: deck.size,
361
- scripts: deck.scripts === "sandboxed",
361
+ scripts: true,
362
362
  scale: opts.scale,
363
363
  html,
364
364
  waitForReady: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segnavia/render",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,9 +26,9 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@segnavia/format": "0.7.0",
30
- "@segnavia/frame": "0.7.0",
31
- "@segnavia/html": "0.7.0",
29
+ "@segnavia/format": "0.8.0",
30
+ "@segnavia/frame": "0.8.0",
31
+ "@segnavia/html": "0.8.0",
32
32
  "playwright-core": "1.55.1",
33
33
  "pdf-lib": "^1.17.1"
34
34
  }