@particle-academy/fancy-code 0.13.0 → 0.14.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/CHANGELOG.md +12 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.14.0] - 2026-10-19
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- **Images and PDFs in `FileViewer` sit in the `FauxClient` frame**, like
|
|
22
|
+
documents: an image gets the frame's zoom bar (driving its own pan/zoom) and
|
|
23
|
+
full screen; a PDF gets full screen, with zoom left to the browser's PDF
|
|
24
|
+
toolbar, and its file name in the address bar. Revealed on hover.
|
|
25
|
+
**What to do:** nothing to keep the new look. To turn it off, pass
|
|
26
|
+
`mediaProps={{ imageProps: { frame: false } }}` (or `pdfProps`).
|
|
27
|
+
- **Requires react-fancy 5.49.0 or later** (peer `>=5.49.0 <6.0.0`).
|
|
28
|
+
|
|
17
29
|
## [0.13.0] - 2026-10-19
|
|
18
30
|
|
|
19
31
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -1818,6 +1818,8 @@ function FileViewer({
|
|
|
1818
1818
|
}
|
|
1819
1819
|
if (resolved.kind === "media") {
|
|
1820
1820
|
const { className: mediaClassName, ...restMediaProps } = mediaProps ?? {};
|
|
1821
|
+
restMediaProps.imageProps = { frame: true, frameProps, ...restMediaProps.imageProps };
|
|
1822
|
+
restMediaProps.pdfProps = { frame: true, frameProps, ...restMediaProps.pdfProps };
|
|
1821
1823
|
const fill = resolved.mediaKind !== "audio";
|
|
1822
1824
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1823
1825
|
"div",
|