Skip to content

Commit f7273c8

Browse files
chore(release): version packages (#101)
Co-authored-by: karthikmudunuri <102793643+karthikmudunuri@users.noreply.github.com>
1 parent 94e348b commit f7273c8

5 files changed

Lines changed: 30 additions & 22 deletions

File tree

.changeset/render-image-bg-valid-svg.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/slidewise/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @textcortex/slidewise
22

3+
## 1.21.1
4+
5+
### Patch Changes
6+
7+
- 94e348b: fix(render): emit a valid SVG `<image>` for image-fill backgrounds
8+
9+
`renderDeckToSvg` rendered a slide's image-fill background as a CSS `background`
10+
shorthand inside an SVG `fill="…"` attribute — `fill="center / cover no-repeat
11+
url("data:image…")"`. That is not valid SVG (a non-paint value plus nested
12+
unescaped quotes); browsers tolerate it, but strict rasterisers
13+
(`@resvg/resvg-js`, librsvg, batik) reject it, blocking a Chromium-free
14+
`parsePptx → renderDeckToSvg → resvg → PNG` path.
15+
16+
The pptx importer stores image backgrounds as a CSS shorthand, but the
17+
renderer's image-ref detection only inspected the _start_ of the value, so the
18+
shorthand fell through to the `fill` path. The renderer now recognises a
19+
`url(...)` anywhere in the value and emits a real `<image>` element
20+
(`preserveAspectRatio` = `slice` for `cover`, `meet` for `contain`). A lock-in
21+
test asserts every rendered slide is valid SVG a strict XML parser accepts,
22+
with an image-background slide as the regression case.
23+
324
## 1.21.0
425

526
### Minor Changes

packages/slidewise/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@textcortex/slidewise",
3-
"version": "1.21.0",
3+
"version": "1.21.1",
44
"description": "Embeddable React PPTX editor.",
55
"license": "MIT",
66
"type": "module",

website/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# website
22

3+
## 0.0.36
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [94e348b]
8+
- @textcortex/slidewise@1.21.1
9+
310
## 0.0.35
411

512
### Patch Changes

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "website",
3-
"version": "0.0.35",
3+
"version": "0.0.36",
44
"private": true,
55
"type": "module",
66
"scripts": {

0 commit comments

Comments
 (0)