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.
- package/CHANGELOG.md +14 -1
- package/README.md +18 -7
- package/dist/core/LayoutManager.d.ts +1 -1
- package/dist/core/PdfRenderer.d.ts +12 -2
- package/dist/{engine-MdZzt6R9.js → engine-DhQ2zxpm.js} +1173 -1112
- package/dist/engine-DhQ2zxpm.js.map +1 -0
- package/dist/engine.d.ts +10 -1
- package/dist/flipbook-engine.css +1 -1
- package/dist/flipbook-engine.iife.js +30 -30
- package/dist/flipbook-engine.iife.js.map +1 -1
- package/dist/flipbook-engine.js +6 -5
- package/dist/flipbook-engine.react.js +1 -1
- package/dist/flipbook-engine.vue.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/model/pages.d.ts +2 -0
- package/dist/theme/theme.d.ts +16 -0
- package/package.json +1 -1
- package/dist/engine-MdZzt6R9.js.map +0 -1
package/dist/flipbook-engine.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { F as s, i, a as e, n as l, b as n } from "./engine-DhQ2zxpm.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
e as
|
|
6
|
-
l as
|
|
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-
|
|
3
|
+
import { F as d } from "./engine-DhQ2zxpm.js";
|
|
4
4
|
const v = P(({
|
|
5
5
|
className: a,
|
|
6
6
|
style: f,
|
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';
|
package/dist/model/pages.d.ts
CHANGED
package/dist/theme/theme.d.ts
CHANGED
|
@@ -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;
|