flipbookengine 0.6.0 → 1.0.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 +37 -3
- package/README.md +150 -11
- package/dist/components/App.d.ts +19 -0
- package/dist/components/HotspotLayer.d.ts +14 -0
- package/dist/components/NotesPanel.d.ts +14 -0
- package/dist/components/PluginPanels.d.ts +5 -0
- package/dist/components/SearchPanel.d.ts +11 -0
- package/dist/components/Toolbar.d.ts +6 -0
- package/dist/components/Viewer.d.ts +6 -0
- package/dist/core/LayoutManager.d.ts +1 -1
- package/dist/core/PdfRenderer.d.ts +23 -2
- package/dist/core-entry.d.ts +13 -0
- package/dist/core.d.ts +1 -0
- package/dist/embed.d.ts +80 -0
- package/dist/engine-Dt2Fn6O-.js +4060 -0
- package/dist/engine-Dt2Fn6O-.js.map +1 -0
- package/dist/engine.d.ts +111 -1
- package/dist/feature-Cicli9ie.js +17 -0
- package/dist/feature-Cicli9ie.js.map +1 -0
- package/dist/flipbook-engine.core.js +8 -0
- package/dist/flipbook-engine.core.js.map +1 -0
- package/dist/flipbook-engine.css +1 -1
- package/dist/flipbook-engine.iife.js +56 -47
- package/dist/flipbook-engine.iife.js.map +1 -1
- package/dist/flipbook-engine.js +9 -4
- package/dist/flipbook-engine.js.map +1 -1
- package/dist/flipbook-engine.plugins-annotations.js +14 -0
- package/dist/flipbook-engine.plugins-annotations.js.map +1 -0
- package/dist/flipbook-engine.plugins-bookmarks.js +16 -0
- package/dist/flipbook-engine.plugins-bookmarks.js.map +1 -0
- package/dist/flipbook-engine.plugins-deep-link.js +14 -0
- package/dist/flipbook-engine.plugins-deep-link.js.map +1 -0
- package/dist/flipbook-engine.plugins-hotspots.js +15 -0
- package/dist/flipbook-engine.plugins-hotspots.js.map +1 -0
- package/dist/flipbook-engine.plugins-notes.js +16 -0
- package/dist/flipbook-engine.plugins-notes.js.map +1 -0
- package/dist/flipbook-engine.plugins-search.js +15 -0
- package/dist/flipbook-engine.plugins-search.js.map +1 -0
- package/dist/flipbook-engine.plugins-share.js +13 -0
- package/dist/flipbook-engine.plugins-share.js.map +1 -0
- package/dist/flipbook-engine.plugins-toc.js +14 -0
- package/dist/flipbook-engine.plugins-toc.js.map +1 -0
- package/dist/flipbook-engine.plugins.js +5 -0
- package/dist/flipbook-engine.plugins.js.map +1 -0
- package/dist/flipbook-engine.react.js +1 -1
- package/dist/flipbook-engine.vue.js +1 -1
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/service.d.ts +51 -0
- package/dist/index-BhTR2SK6.js +366 -0
- package/dist/index-BhTR2SK6.js.map +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/model/annotations.d.ts +14 -0
- package/dist/model/hotspots.d.ts +40 -0
- package/dist/model/pages.d.ts +2 -0
- package/dist/model/search.d.ts +25 -0
- package/dist/plugins/annotations.d.ts +4 -0
- package/dist/plugins/bookmarks.d.ts +4 -0
- package/dist/plugins/deep-link.d.ts +4 -0
- package/dist/plugins/feature.d.ts +5 -0
- package/dist/plugins/hotspots.d.ts +4 -0
- package/dist/plugins/index.d.ts +65 -0
- package/dist/plugins/notes.d.ts +4 -0
- package/dist/plugins/search.d.ts +4 -0
- package/dist/plugins/share.d.ts +4 -0
- package/dist/plugins/toc.d.ts +4 -0
- package/dist/plugins-annotations.d.ts +1 -0
- package/dist/plugins-bookmarks.d.ts +1 -0
- package/dist/plugins-deep-link.d.ts +1 -0
- package/dist/plugins-hotspots.d.ts +1 -0
- package/dist/plugins-notes.d.ts +1 -0
- package/dist/plugins-search.d.ts +1 -0
- package/dist/plugins-share.d.ts +1 -0
- package/dist/plugins-toc.d.ts +1 -0
- package/dist/plugins.d.ts +1 -0
- package/dist/state/store.d.ts +19 -5
- package/dist/theme/theme.d.ts +16 -0
- package/dist/vue/index.d.ts +1 -1
- package/docs/api-reference.md +206 -0
- package/docs/frameworks.md +73 -0
- package/docs/getting-started.md +128 -0
- package/docs/i18n.md +47 -0
- package/docs/migration-0.4.0.md +24 -0
- package/docs/migration-0.5.0.md +25 -0
- package/docs/migration-1.0.0.md +59 -0
- package/docs/plugin-architecture.md +103 -0
- package/docs/release-checklist.md +37 -0
- package/docs/theming.md +61 -0
- package/package.json +165 -114
- package/dist/engine-MdZzt6R9.js +0 -3474
- package/dist/engine-MdZzt6R9.js.map +0 -1
package/dist/flipbook-engine.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { F as e, a as i, c as s, i as l, b as r, n as b, d as p } from "./engine-Dt2Fn6O-.js";
|
|
2
|
+
import { F as n } from "./index-BhTR2SK6.js";
|
|
2
3
|
export {
|
|
4
|
+
e as FlipbookEmbedBridge,
|
|
3
5
|
i as FlipbookEngine,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
l as
|
|
6
|
+
n as FlipbookPluginRegistry,
|
|
7
|
+
s as createFlipbookEmbedController,
|
|
8
|
+
l as isA3Landscape,
|
|
9
|
+
r as isFlipbookPageAsset,
|
|
10
|
+
b as normalizeFlipbookPages,
|
|
11
|
+
p as normalizeFlipbookToc
|
|
7
12
|
};
|
|
8
13
|
//# sourceMappingURL=flipbook-engine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flipbook-engine.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flipbook-engine.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c as o } from "./feature-Cicli9ie.js";
|
|
2
|
+
/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
3
|
+
function a() {
|
|
4
|
+
return o("annotations", (n) => ({
|
|
5
|
+
get: (t) => n.getAnnotations(t),
|
|
6
|
+
close: () => n.closeAnnotation()
|
|
7
|
+
}));
|
|
8
|
+
}
|
|
9
|
+
const i = a();
|
|
10
|
+
export {
|
|
11
|
+
i as annotationsPlugin,
|
|
12
|
+
a as createAnnotationsPlugin
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=flipbook-engine.plugins-annotations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins-annotations.js","sources":["../src/plugins/annotations.ts"],"sourcesContent":["/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */\nimport { createFeaturePlugin } from './feature';\nimport type { FlipbookPlugin } from './index';\n\nexport function createAnnotationsPlugin(): FlipbookPlugin {\n return createFeaturePlugin('annotations', (engine) => ({\n get: (pageIndex?: number) => engine.getAnnotations(pageIndex),\n close: () => engine.closeAnnotation()\n }));\n}\n\nexport const annotationsPlugin = createAnnotationsPlugin();\n"],"names":["createAnnotationsPlugin","createFeaturePlugin","engine","pageIndex","annotationsPlugin"],"mappings":";AAAA;AAIO,SAASA,IAA0C;AACxD,SAAOC,EAAoB,eAAe,CAACC,OAAY;AAAA,IACrD,KAAK,CAACC,MAAuBD,EAAO,eAAeC,CAAS;AAAA,IAC5D,OAAO,MAAMD,EAAO,gBAAA;AAAA,EAAgB,EACpC;AACJ;AAEO,MAAME,IAAoBJ,EAAA;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c as t } from "./feature-Cicli9ie.js";
|
|
2
|
+
/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
3
|
+
function a() {
|
|
4
|
+
return t("bookmarks", (r) => ({
|
|
5
|
+
getAll: () => r.getBookmarkedPages(),
|
|
6
|
+
isBookmarked: (o) => r.isBookmarked(o),
|
|
7
|
+
set: (o, k = !0) => r.setBookmark(o, k),
|
|
8
|
+
toggle: (o) => r.toggleBookmark(o)
|
|
9
|
+
}));
|
|
10
|
+
}
|
|
11
|
+
const m = a();
|
|
12
|
+
export {
|
|
13
|
+
m as bookmarksPlugin,
|
|
14
|
+
a as createBookmarksPlugin
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=flipbook-engine.plugins-bookmarks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins-bookmarks.js","sources":["../src/plugins/bookmarks.ts"],"sourcesContent":["/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */\nimport { createFeaturePlugin } from './feature';\nimport type { FlipbookPlugin } from './index';\n\nexport function createBookmarksPlugin(): FlipbookPlugin {\n return createFeaturePlugin('bookmarks', (engine) => ({\n getAll: () => engine.getBookmarkedPages(),\n isBookmarked: (pageIndex?: number) => engine.isBookmarked(pageIndex),\n set: (pageIndex: number, bookmarked = true) => engine.setBookmark(pageIndex, bookmarked),\n toggle: (pageIndex?: number) => engine.toggleBookmark(pageIndex)\n }));\n}\n\nexport const bookmarksPlugin = createBookmarksPlugin();\n"],"names":["createBookmarksPlugin","createFeaturePlugin","engine","pageIndex","bookmarked","bookmarksPlugin"],"mappings":";AAAA;AAIO,SAASA,IAAwC;AACtD,SAAOC,EAAoB,aAAa,CAACC,OAAY;AAAA,IACnD,QAAQ,MAAMA,EAAO,mBAAA;AAAA,IACrB,cAAc,CAACC,MAAuBD,EAAO,aAAaC,CAAS;AAAA,IACnE,KAAK,CAACA,GAAmBC,IAAa,OAASF,EAAO,YAAYC,GAAWC,CAAU;AAAA,IACvF,QAAQ,CAACD,MAAuBD,EAAO,eAAeC,CAAS;AAAA,EAAA,EAC/D;AACJ;AAEO,MAAME,IAAkBL,EAAA;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c as t } from "./feature-Cicli9ie.js";
|
|
2
|
+
/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
3
|
+
function g() {
|
|
4
|
+
return t("deep-link", (r) => ({
|
|
5
|
+
getUrl: (e) => r.getPageUrl(e),
|
|
6
|
+
goToPage: (e) => r.goToPage(e)
|
|
7
|
+
}));
|
|
8
|
+
}
|
|
9
|
+
const n = g();
|
|
10
|
+
export {
|
|
11
|
+
g as createDeepLinkPlugin,
|
|
12
|
+
n as deepLinkPlugin
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=flipbook-engine.plugins-deep-link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins-deep-link.js","sources":["../src/plugins/deep-link.ts"],"sourcesContent":["/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */\nimport { createFeaturePlugin } from './feature';\nimport type { FlipbookPlugin } from './index';\n\nexport function createDeepLinkPlugin(): FlipbookPlugin {\n return createFeaturePlugin('deep-link', (engine) => ({\n getUrl: (pageIndex?: number) => engine.getPageUrl(pageIndex),\n goToPage: (pageIndex: number) => engine.goToPage(pageIndex)\n }));\n}\n\nexport const deepLinkPlugin = createDeepLinkPlugin();\n"],"names":["createDeepLinkPlugin","createFeaturePlugin","engine","pageIndex","deepLinkPlugin"],"mappings":";AAAA;AAIO,SAASA,IAAuC;AACrD,SAAOC,EAAoB,aAAa,CAACC,OAAY;AAAA,IACnD,QAAQ,CAACC,MAAuBD,EAAO,WAAWC,CAAS;AAAA,IAC3D,UAAU,CAACA,MAAsBD,EAAO,SAASC,CAAS;AAAA,EAAA,EAC1D;AACJ;AAEO,MAAMC,IAAiBJ,EAAA;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c as s } from "./feature-Cicli9ie.js";
|
|
2
|
+
/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
3
|
+
function e() {
|
|
4
|
+
return s("hotspots", (t) => ({
|
|
5
|
+
get: (o) => t.getHotspots(o),
|
|
6
|
+
activate: (o) => t.activateHotspot(o),
|
|
7
|
+
close: () => t.closeHotspot()
|
|
8
|
+
}));
|
|
9
|
+
}
|
|
10
|
+
const a = e();
|
|
11
|
+
export {
|
|
12
|
+
e as createHotspotsPlugin,
|
|
13
|
+
a as hotspotsPlugin
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=flipbook-engine.plugins-hotspots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins-hotspots.js","sources":["../src/plugins/hotspots.ts"],"sourcesContent":["/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */\nimport { createFeaturePlugin } from './feature';\nimport type { FlipbookPlugin } from './index';\n\nexport function createHotspotsPlugin(): FlipbookPlugin {\n return createFeaturePlugin('hotspots', (engine) => ({\n get: (pageIndex?: number) => engine.getHotspots(pageIndex),\n activate: (id: string) => engine.activateHotspot(id),\n close: () => engine.closeHotspot()\n }));\n}\n\nexport const hotspotsPlugin = createHotspotsPlugin();\n"],"names":["createHotspotsPlugin","createFeaturePlugin","engine","pageIndex","id","hotspotsPlugin"],"mappings":";AAAA;AAIO,SAASA,IAAuC;AACrD,SAAOC,EAAoB,YAAY,CAACC,OAAY;AAAA,IAClD,KAAK,CAACC,MAAuBD,EAAO,YAAYC,CAAS;AAAA,IACzD,UAAU,CAACC,MAAeF,EAAO,gBAAgBE,CAAE;AAAA,IACnD,OAAO,MAAMF,EAAO,aAAA;AAAA,EAAa,EACjC;AACJ;AAEO,MAAMG,IAAiBL,EAAA;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c as r } from "./feature-Cicli9ie.js";
|
|
2
|
+
/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
3
|
+
function s() {
|
|
4
|
+
return r("notes", (e) => ({
|
|
5
|
+
getAll: () => e.getNotes(),
|
|
6
|
+
get: (t) => e.getNote(t),
|
|
7
|
+
set: (t, o) => e.setNote(t, o),
|
|
8
|
+
clear: (t) => e.clearNote(t)
|
|
9
|
+
}));
|
|
10
|
+
}
|
|
11
|
+
const l = s();
|
|
12
|
+
export {
|
|
13
|
+
s as createNotesPlugin,
|
|
14
|
+
l as notesPlugin
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=flipbook-engine.plugins-notes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins-notes.js","sources":["../src/plugins/notes.ts"],"sourcesContent":["/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */\nimport { createFeaturePlugin } from './feature';\nimport type { FlipbookPlugin } from './index';\n\nexport function createNotesPlugin(): FlipbookPlugin {\n return createFeaturePlugin('notes', (engine) => ({\n getAll: () => engine.getNotes(),\n get: (pageIndex?: number) => engine.getNote(pageIndex),\n set: (pageIndex: number, note: string) => engine.setNote(pageIndex, note),\n clear: (pageIndex?: number) => engine.clearNote(pageIndex)\n }));\n}\n\nexport const notesPlugin = createNotesPlugin();\n"],"names":["createNotesPlugin","createFeaturePlugin","engine","pageIndex","note","notesPlugin"],"mappings":";AAAA;AAIO,SAASA,IAAoC;AAClD,SAAOC,EAAoB,SAAS,CAACC,OAAY;AAAA,IAC/C,QAAQ,MAAMA,EAAO,SAAA;AAAA,IACrB,KAAK,CAACC,MAAuBD,EAAO,QAAQC,CAAS;AAAA,IACrD,KAAK,CAACA,GAAmBC,MAAiBF,EAAO,QAAQC,GAAWC,CAAI;AAAA,IACxE,OAAO,CAACD,MAAuBD,EAAO,UAAUC,CAAS;AAAA,EAAA,EACzD;AACJ;AAEO,MAAME,IAAcL,EAAA;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c as a } from "./feature-Cicli9ie.js";
|
|
2
|
+
/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
3
|
+
function t() {
|
|
4
|
+
return a("search", (e) => ({
|
|
5
|
+
search: (r, c) => e.search(r, c),
|
|
6
|
+
clear: () => e.clearSearch(),
|
|
7
|
+
getResults: () => e.getSearchResults()
|
|
8
|
+
}));
|
|
9
|
+
}
|
|
10
|
+
const u = t();
|
|
11
|
+
export {
|
|
12
|
+
t as createSearchPlugin,
|
|
13
|
+
u as searchPlugin
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=flipbook-engine.plugins-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins-search.js","sources":["../src/plugins/search.ts"],"sourcesContent":["/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */\nimport { createFeaturePlugin } from './feature';\nimport type { FlipbookSearchOptions } from '../model/search';\nimport type { FlipbookPlugin } from './index';\n\nexport function createSearchPlugin(): FlipbookPlugin {\n return createFeaturePlugin('search', (engine) => ({\n search: (query: string, options?: FlipbookSearchOptions) => engine.search(query, options),\n clear: () => engine.clearSearch(),\n getResults: () => engine.getSearchResults()\n }));\n}\n\nexport const searchPlugin = createSearchPlugin();\n"],"names":["createSearchPlugin","createFeaturePlugin","engine","query","options","searchPlugin"],"mappings":";AAAA;AAKO,SAASA,IAAqC;AACnD,SAAOC,EAAoB,UAAU,CAACC,OAAY;AAAA,IAChD,QAAQ,CAACC,GAAeC,MAAoCF,EAAO,OAAOC,GAAOC,CAAO;AAAA,IACxF,OAAO,MAAMF,EAAO,YAAA;AAAA,IACpB,YAAY,MAAMA,EAAO,iBAAA;AAAA,EAAiB,EAC1C;AACJ;AAEO,MAAMG,IAAeL,EAAA;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { c as t } from "./feature-Cicli9ie.js";
|
|
2
|
+
/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
3
|
+
function a() {
|
|
4
|
+
return t("share", (e) => ({
|
|
5
|
+
getUrl: (r) => e.getPageUrl(r)
|
|
6
|
+
}));
|
|
7
|
+
}
|
|
8
|
+
const g = a();
|
|
9
|
+
export {
|
|
10
|
+
a as createSharePlugin,
|
|
11
|
+
g as sharePlugin
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=flipbook-engine.plugins-share.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins-share.js","sources":["../src/plugins/share.ts"],"sourcesContent":["/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */\nimport { createFeaturePlugin } from './feature';\nimport type { FlipbookPlugin } from './index';\n\nexport function createSharePlugin(): FlipbookPlugin {\n return createFeaturePlugin('share', (engine) => ({\n getUrl: (pageIndex?: number) => engine.getPageUrl(pageIndex)\n }));\n}\n\nexport const sharePlugin = createSharePlugin();\n"],"names":["createSharePlugin","createFeaturePlugin","engine","pageIndex","sharePlugin"],"mappings":";AAAA;AAIO,SAASA,IAAoC;AAClD,SAAOC,EAAoB,SAAS,CAACC,OAAY;AAAA,IAC/C,QAAQ,CAACC,MAAuBD,EAAO,WAAWC,CAAS;AAAA,EAAA,EAC3D;AACJ;AAEO,MAAMC,IAAcJ,EAAA;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { c as o } from "./feature-Cicli9ie.js";
|
|
2
|
+
/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
3
|
+
function r() {
|
|
4
|
+
return o("toc", (t) => ({
|
|
5
|
+
get: () => t.getToc(),
|
|
6
|
+
set: (c, e) => t.setToc(c, e)
|
|
7
|
+
}));
|
|
8
|
+
}
|
|
9
|
+
const n = r();
|
|
10
|
+
export {
|
|
11
|
+
r as createTocPlugin,
|
|
12
|
+
n as tocPlugin
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=flipbook-engine.plugins-toc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins-toc.js","sources":["../src/plugins/toc.ts"],"sourcesContent":["/** @license FlipbookEngine v1.0.0 | SPDX-License-Identifier: AGPL-3.0-or-later */\nimport { createFeaturePlugin } from './feature';\nimport type { FlipbookTocEntry } from '../model/toc';\nimport type { FlipbookPlugin } from './index';\n\nexport function createTocPlugin(): FlipbookPlugin {\n return createFeaturePlugin('toc', (engine) => ({\n get: () => engine.getToc(),\n set: (entries: FlipbookTocEntry[], show?: boolean) => engine.setToc(entries, show)\n }));\n}\n\nexport const tocPlugin = createTocPlugin();\n"],"names":["createTocPlugin","createFeaturePlugin","engine","entries","show","tocPlugin"],"mappings":";AAAA;AAKO,SAASA,IAAkC;AAChD,SAAOC,EAAoB,OAAO,CAACC,OAAY;AAAA,IAC7C,KAAK,MAAMA,EAAO,OAAA;AAAA,IAClB,KAAK,CAACC,GAA6BC,MAAmBF,EAAO,OAAOC,GAASC,CAAI;AAAA,EAAA,EACjF;AACJ;AAEO,MAAMC,IAAYL,EAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flipbook-engine.plugins.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -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 {
|
|
3
|
+
import { a as d } from "./engine-Dt2Fn6O-.js";
|
|
4
4
|
const v = P(({
|
|
5
5
|
className: a,
|
|
6
6
|
style: f,
|
|
@@ -16,7 +16,24 @@ export declare const enMessages: {
|
|
|
16
16
|
readonly fullscreen: "Fullscreen";
|
|
17
17
|
readonly settings: "Settings";
|
|
18
18
|
readonly downloadCatalog: "Download Catalog";
|
|
19
|
+
readonly share: "Share";
|
|
20
|
+
readonly bookmark: "Bookmark page";
|
|
21
|
+
readonly removeBookmark: "Remove bookmark";
|
|
22
|
+
readonly notes: "Page note";
|
|
23
|
+
readonly saveNote: "Save note";
|
|
24
|
+
readonly clearNote: "Clear note";
|
|
25
|
+
readonly closeNote: "Close note editor";
|
|
26
|
+
readonly editNote: "Edit";
|
|
27
|
+
readonly deleteNote: "Delete";
|
|
19
28
|
readonly play: "Play";
|
|
20
29
|
readonly pause: "Pause";
|
|
21
30
|
readonly tableOfContents: "Table of Contents";
|
|
31
|
+
readonly search: "Search";
|
|
32
|
+
readonly searchPlaceholder: "Search PDF text";
|
|
33
|
+
readonly clearSearch: "Clear";
|
|
34
|
+
readonly closeSearch: "Close search";
|
|
35
|
+
readonly noSearchResults: "No results";
|
|
36
|
+
readonly searchUnavailable: "Text search is available only in Direct PDF mode.";
|
|
37
|
+
readonly closeHotspot: "Close popup";
|
|
38
|
+
readonly annotation: "Page annotation";
|
|
22
39
|
};
|
|
@@ -16,7 +16,24 @@ export declare const trMessages: {
|
|
|
16
16
|
readonly fullscreen: "Tam Ekran";
|
|
17
17
|
readonly settings: "Ayarlar";
|
|
18
18
|
readonly downloadCatalog: "Kataloğu İndir";
|
|
19
|
+
readonly share: "Paylaş";
|
|
20
|
+
readonly bookmark: "Sayfayı yer imlerine ekle";
|
|
21
|
+
readonly removeBookmark: "Yer imini kaldır";
|
|
22
|
+
readonly notes: "Sayfa notu";
|
|
23
|
+
readonly saveNote: "Notu kaydet";
|
|
24
|
+
readonly clearNote: "Notu temizle";
|
|
25
|
+
readonly closeNote: "Not editörünü kapat";
|
|
26
|
+
readonly editNote: "Düzenle";
|
|
27
|
+
readonly deleteNote: "Sil";
|
|
19
28
|
readonly play: "Otomatik Oynat";
|
|
20
29
|
readonly pause: "Duraklat";
|
|
21
30
|
readonly tableOfContents: "İçindekiler";
|
|
31
|
+
readonly search: "Ara";
|
|
32
|
+
readonly searchPlaceholder: "PDF metninde ara";
|
|
33
|
+
readonly clearSearch: "Temizle";
|
|
34
|
+
readonly closeSearch: "Aramayı kapat";
|
|
35
|
+
readonly noSearchResults: "Sonuç bulunamadı";
|
|
36
|
+
readonly searchUnavailable: "Metin arama yalnızca Doğrudan PDF modunda desteklenir.";
|
|
37
|
+
readonly closeHotspot: "Açılır pencereyi kapat";
|
|
38
|
+
readonly annotation: "Sayfa açıklaması";
|
|
22
39
|
};
|
package/dist/i18n/service.d.ts
CHANGED
|
@@ -16,9 +16,26 @@ export interface FlipbookMessages {
|
|
|
16
16
|
fullscreen: string;
|
|
17
17
|
settings: string;
|
|
18
18
|
downloadCatalog: string;
|
|
19
|
+
share: string;
|
|
20
|
+
bookmark: string;
|
|
21
|
+
removeBookmark: string;
|
|
22
|
+
notes: string;
|
|
23
|
+
saveNote: string;
|
|
24
|
+
clearNote: string;
|
|
25
|
+
closeNote: string;
|
|
26
|
+
editNote: string;
|
|
27
|
+
deleteNote: string;
|
|
19
28
|
play: string;
|
|
20
29
|
pause: string;
|
|
21
30
|
tableOfContents: string;
|
|
31
|
+
search: string;
|
|
32
|
+
searchPlaceholder: string;
|
|
33
|
+
clearSearch: string;
|
|
34
|
+
closeSearch: string;
|
|
35
|
+
noSearchResults: string;
|
|
36
|
+
searchUnavailable: string;
|
|
37
|
+
closeHotspot: string;
|
|
38
|
+
annotation: string;
|
|
22
39
|
}
|
|
23
40
|
export declare const builtInMessages: {
|
|
24
41
|
readonly en: {
|
|
@@ -33,9 +50,26 @@ export declare const builtInMessages: {
|
|
|
33
50
|
readonly fullscreen: "Fullscreen";
|
|
34
51
|
readonly settings: "Settings";
|
|
35
52
|
readonly downloadCatalog: "Download Catalog";
|
|
53
|
+
readonly share: "Share";
|
|
54
|
+
readonly bookmark: "Bookmark page";
|
|
55
|
+
readonly removeBookmark: "Remove bookmark";
|
|
56
|
+
readonly notes: "Page note";
|
|
57
|
+
readonly saveNote: "Save note";
|
|
58
|
+
readonly clearNote: "Clear note";
|
|
59
|
+
readonly closeNote: "Close note editor";
|
|
60
|
+
readonly editNote: "Edit";
|
|
61
|
+
readonly deleteNote: "Delete";
|
|
36
62
|
readonly play: "Play";
|
|
37
63
|
readonly pause: "Pause";
|
|
38
64
|
readonly tableOfContents: "Table of Contents";
|
|
65
|
+
readonly search: "Search";
|
|
66
|
+
readonly searchPlaceholder: "Search PDF text";
|
|
67
|
+
readonly clearSearch: "Clear";
|
|
68
|
+
readonly closeSearch: "Close search";
|
|
69
|
+
readonly noSearchResults: "No results";
|
|
70
|
+
readonly searchUnavailable: "Text search is available only in Direct PDF mode.";
|
|
71
|
+
readonly closeHotspot: "Close popup";
|
|
72
|
+
readonly annotation: "Page annotation";
|
|
39
73
|
};
|
|
40
74
|
readonly tr: {
|
|
41
75
|
readonly emptyStateTitle: "Veri bulunamadi.";
|
|
@@ -49,9 +83,26 @@ export declare const builtInMessages: {
|
|
|
49
83
|
readonly fullscreen: "Tam Ekran";
|
|
50
84
|
readonly settings: "Ayarlar";
|
|
51
85
|
readonly downloadCatalog: "Kataloğu İndir";
|
|
86
|
+
readonly share: "Paylaş";
|
|
87
|
+
readonly bookmark: "Sayfayı yer imlerine ekle";
|
|
88
|
+
readonly removeBookmark: "Yer imini kaldır";
|
|
89
|
+
readonly notes: "Sayfa notu";
|
|
90
|
+
readonly saveNote: "Notu kaydet";
|
|
91
|
+
readonly clearNote: "Notu temizle";
|
|
92
|
+
readonly closeNote: "Not editörünü kapat";
|
|
93
|
+
readonly editNote: "Düzenle";
|
|
94
|
+
readonly deleteNote: "Sil";
|
|
52
95
|
readonly play: "Otomatik Oynat";
|
|
53
96
|
readonly pause: "Duraklat";
|
|
54
97
|
readonly tableOfContents: "İçindekiler";
|
|
98
|
+
readonly search: "Ara";
|
|
99
|
+
readonly searchPlaceholder: "PDF metninde ara";
|
|
100
|
+
readonly clearSearch: "Temizle";
|
|
101
|
+
readonly closeSearch: "Aramayı kapat";
|
|
102
|
+
readonly noSearchResults: "Sonuç bulunamadı";
|
|
103
|
+
readonly searchUnavailable: "Metin arama yalnızca Doğrudan PDF modunda desteklenir.";
|
|
104
|
+
readonly closeHotspot: "Açılır pencereyi kapat";
|
|
105
|
+
readonly annotation: "Sayfa açıklaması";
|
|
55
106
|
};
|
|
56
107
|
};
|
|
57
108
|
export type FlipbookLocale = keyof typeof builtInMessages;
|