pagemaster-editor 0.1.0 → 0.2.1

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,4 +1,4 @@
1
- import { g as c, r as f } from "./index-Bi7532a5.js";
1
+ import { g as c, r as f } from "./index-Db7fhGrG.js";
2
2
  function l(r, n) {
3
3
  for (var o = 0; o < n.length; o++) {
4
4
  const e = n[o];
@@ -52699,7 +52699,7 @@ function(n) {
52699
52699
  }, n.loadImageFile = n.loadFile;
52700
52700
  }(Gt.API), function(n) {
52701
52701
  function e() {
52702
- return (dn.html2canvas ? Promise.resolve(dn.html2canvas) : import("./html2canvas-DvGd-Pek.js").then((a) => a.h)).catch(function(a) {
52702
+ return (dn.html2canvas ? Promise.resolve(dn.html2canvas) : import("./html2canvas-BcdjAaMa.js").then((a) => a.h)).catch(function(a) {
52703
52703
  return Promise.reject(new Error("Could not load html2canvas: " + a));
52704
52704
  }).then(function(a) {
52705
52705
  return a.default ? a.default : a;
@@ -53404,7 +53404,7 @@ function(n) {
53404
53404
  var u = l.getContext("2d");
53405
53405
  u.fillStyle = "#fff", u.fillRect(0, 0, l.width, l.height);
53406
53406
  var c = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, A = this;
53407
- return (dn.canvg ? Promise.resolve(dn.canvg) : import("./index.es-CTn8zMre.js")).catch(function(d) {
53407
+ return (dn.canvg ? Promise.resolve(dn.canvg) : import("./index.es-z3XdDhzI.js")).catch(function(d) {
53408
53408
  return Promise.reject(new Error("Could not load canvg: " + d));
53409
53409
  }).then(function(d) {
53410
53410
  return d.default ? d.default : d;
@@ -88967,6 +88967,7 @@ function i5e(n = {}) {
88967
88967
  const { initialContent: e, className: t } = n, [r, i] = Cs("editor"), [s, o] = Cs(null), [a, l] = Cs(null), [u, c] = Cs(0), [A, d] = Cs(1), [h, p] = Cs(1.4), [f, g] = Cs(!0), [m, y] = Cs("list"), [b, w] = Cs(!1), x = (k) => {
88968
88968
  k >= 1 && k <= u && d(k);
88969
88969
  }, S = Soe({
88970
+ immediatelyRender: !1,
88970
88971
  extensions: [
88971
88972
  lle.configure({
88972
88973
  // Disable extensions that might conflict or that we configure separately
package/dist/index.d.ts CHANGED
@@ -1 +1,28 @@
1
- export {}
1
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
2
+
3
+ export declare function DocumentEditor(props?: EditorProps): JSX_2.Element;
4
+
5
+ export declare interface EditorProps {
6
+ initialContent?: string;
7
+ className?: string;
8
+ }
9
+
10
+ export declare const PDFViewer: ({ file, numPages, currentPage, scale, isSidebarOpen, sidebarViewMode, isGridOpen, onNumPagesChange, onPageChange, onSidebarViewModeChange, onGridOpenChange, className, onSidebarOpenChange }: PDFViewerProps) => JSX_2.Element;
11
+
12
+ declare interface PDFViewerProps {
13
+ file: string | File | null;
14
+ numPages: number;
15
+ currentPage: number;
16
+ scale: number;
17
+ isSidebarOpen: boolean;
18
+ sidebarViewMode: 'list' | 'grid';
19
+ isGridOpen: boolean;
20
+ onNumPagesChange: (n: number) => void;
21
+ onPageChange: (n: number) => void;
22
+ onSidebarViewModeChange: (m: 'list' | 'grid') => void;
23
+ onGridOpenChange: (b: boolean) => void;
24
+ className?: string;
25
+ onSidebarOpenChange?: (open: boolean) => void;
26
+ }
27
+
28
+ export { }
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as Ha, g as Lo } from "./index-Bi7532a5.js";
1
+ import { c as Qe, _ as Ha, g as Lo } from "./index-Db7fhGrG.js";
2
2
  var ht = function(a) {
3
3
  return a && a.Math === Math && a;
4
4
  }, _ = (
@@ -1,4 +1,4 @@
1
- import { D as r, P as t } from "./index-Bi7532a5.js";
1
+ import { D as r, P as t } from "./index-Db7fhGrG.js";
2
2
  export {
3
3
  r as DocumentEditor,
4
4
  t as PDFViewer