@drawnagency/primitives 0.1.101 → 0.1.102

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DocFilePane.d.ts","sourceRoot":"","sources":["../../../src/components/docfile/DocFilePane.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOxD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,GAAG,EACH,OAAO,EACP,MAAc,GACf,EAAE;IAAE,GAAG,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,2CA6G9D"}
1
+ {"version":3,"file":"DocFilePane.d.ts","sourceRoot":"","sources":["../../../src/components/docfile/DocFilePane.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAOxD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,GAAG,EACH,OAAO,EACP,MAAc,GACf,EAAE;IAAE,GAAG,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,2CAgH9D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drawnagency/primitives",
3
- "version": "0.1.101",
3
+ "version": "0.1.102",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -114,9 +114,12 @@ export default function DocFilePane({
114
114
  ref={frameRef}
115
115
  // PDF open-parameters hide the native viewer's toolbar/side panel in
116
116
  // Chromium so the pane's own top bar is the only chrome; Firefox and
117
- // Safari ignore them harmlessly. A client-side fragment: it survives
118
- // the gated route's 302 and works on pre-save blob: URLs too.
119
- src={doc.kind === "pdf" ? `${doc.url}#toolbar=0&navpanes=0` : doc.url}
117
+ // Safari ignore them harmlessly. view=FitH fits the page to the pane
118
+ // width in Chromium (default is fit-page, which wastes ~half the
119
+ // pane); zoom=page-width is the Firefox/pdf.js spelling of the same
120
+ // thing, verified harmless in Chromium. A client-side fragment: it
121
+ // survives the gated route's 302 and works on pre-save blob: URLs too.
122
+ src={doc.kind === "pdf" ? `${doc.url}#toolbar=0&navpanes=0&view=FitH&zoom=page-width` : doc.url}
120
123
  title={doc.title}
121
124
  // Opaque origin for authored HTML: no portal cookies, storage or
122
125
  // parent DOM. The ATTRIBUTE applies regardless of origin, so