flipbookengine 0.6.0 → 0.6.5

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,8 +1,9 @@
1
- import { F as i, i as s, n as e, a as l } from "./engine-MdZzt6R9.js";
1
+ import { F as s, i, a as e, n as l, b as n } from "./engine-DhQ2zxpm.js";
2
2
  export {
3
- i as FlipbookEngine,
4
- s as isFlipbookPageAsset,
5
- e as normalizeFlipbookPages,
6
- l as normalizeFlipbookToc
3
+ s as FlipbookEngine,
4
+ i as isA3Landscape,
5
+ e as isFlipbookPageAsset,
6
+ l as normalizeFlipbookPages,
7
+ n as normalizeFlipbookToc
7
8
  };
8
9
  //# sourceMappingURL=flipbook-engine.js.map
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as P, useRef as g, useImperativeHandle as x, useEffect as c } from "react";
3
- import { F as d } from "./engine-MdZzt6R9.js";
3
+ import { F as d } from "./engine-DhQ2zxpm.js";
4
4
  const v = P(({
5
5
  className: a,
6
6
  style: f,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as s, onMounted as g, onBeforeUnmount as P, watch as l, h as c } from "vue";
2
- import { F as h } from "./engine-MdZzt6R9.js";
2
+ import { F as h } from "./engine-DhQ2zxpm.js";
3
3
  const v = d({
4
4
  name: "Flipbook",
5
5
  props: {
package/dist/index.d.ts CHANGED
@@ -10,4 +10,6 @@ export type { FlipbookTocEntry } from './model/toc';
10
10
  export { normalizeFlipbookToc } from './model/toc';
11
11
  export { normalizeFlipbookPages, isFlipbookPageAsset } from './model/pages';
12
12
  export type { FlipbookLocale, FlipbookMessages, PartialFlipbookMessages } from './i18n/service';
13
- export type { FlipbookThemeMode } from './theme/theme';
13
+ export type { FlipbookThemeMode, FlipbookBackgroundStyle, FlipbookBackgrounds } from './theme/theme';
14
+ export type { PdfPageMode, PdfPageLayout } from './core/PdfRenderer';
15
+ export { isA3Landscape } from './core/PdfRenderer';
@@ -21,6 +21,8 @@ export interface NormalizedFlipbookPage {
21
21
  index: number;
22
22
  assetId: string;
23
23
  pageNumber: number;
24
+ /** Source document page for generated/split pages. */
25
+ sourcePageNumber?: number;
24
26
  cropMode: FlipbookCropMode;
25
27
  normal: string;
26
28
  low: string;
@@ -5,9 +5,25 @@
5
5
  * https://flipbookengine.com
6
6
  */
7
7
  export type FlipbookThemeMode = 'auto' | 'light' | 'dark';
8
+ export interface FlipbookBackgroundStyle {
9
+ color?: string;
10
+ image?: string;
11
+ size?: string;
12
+ position?: string;
13
+ repeat?: string;
14
+ }
15
+ export interface FlipbookBackgrounds {
16
+ light?: FlipbookBackgroundStyle | null;
17
+ dark?: FlipbookBackgroundStyle | null;
18
+ }
8
19
  export interface ThemeConfiguration {
9
20
  theme?: FlipbookThemeMode;
10
21
  primaryColor?: string;
11
22
  cssVariables?: Record<string, string>;
23
+ background?: FlipbookBackgrounds | null;
24
+ /** @deprecated Use background.light/dark instead. */
25
+ backgroundColor?: string;
26
+ /** @deprecated Use background.light/dark instead. */
27
+ backgroundImage?: string;
12
28
  }
13
29
  export declare function applyThemeConfiguration(container: HTMLElement, config: ThemeConfiguration): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flipbookengine",
3
- "version": "0.6.0",
3
+ "version": "0.6.5",
4
4
  "description": "A modern, embeddable HTML flipbook engine for PDF-backed catalogs and digital publications.",
5
5
  "private": false,
6
6
  "scripts": {