@embedpdf/plugin-bookmark 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 CloudPDF
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs ADDED
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ BOOKMARK_PLUGIN_ID: () => BOOKMARK_PLUGIN_ID,
24
+ BookmarkPlugin: () => BookmarkPlugin,
25
+ BookmarkPluginPackage: () => BookmarkPluginPackage,
26
+ manifest: () => manifest
27
+ });
28
+ module.exports = __toCommonJS(index_exports);
29
+
30
+ // src/lib/manifest.ts
31
+ var BOOKMARK_PLUGIN_ID = "bookmark";
32
+ var manifest = {
33
+ id: BOOKMARK_PLUGIN_ID,
34
+ name: "Bookmark Plugin",
35
+ version: "1.0.0",
36
+ provides: ["bookmark"],
37
+ requires: [],
38
+ optional: [],
39
+ defaultConfig: {
40
+ enabled: true
41
+ }
42
+ };
43
+
44
+ // src/lib/bookmark-plugin.ts
45
+ var import_core = require("@embedpdf/core");
46
+ var BookmarkPlugin = class extends import_core.BasePlugin {
47
+ constructor(id, registry, engine) {
48
+ super(id, registry);
49
+ this.engine = engine;
50
+ }
51
+ async initialize(_) {
52
+ }
53
+ buildCapability() {
54
+ return {
55
+ getBookmarks: this.getBookmarks.bind(this)
56
+ };
57
+ }
58
+ getBookmarks() {
59
+ const doc = this.coreState.core.document;
60
+ if (!doc) throw new Error("Document not open");
61
+ return this.engine.getBookmarks(doc);
62
+ }
63
+ };
64
+ BookmarkPlugin.id = "bookmark";
65
+
66
+ // src/lib/index.ts
67
+ var BookmarkPluginPackage = {
68
+ manifest,
69
+ create: (registry, engine) => new BookmarkPlugin(BOOKMARK_PLUGIN_ID, registry, engine),
70
+ reducer: () => {
71
+ },
72
+ initialState: {}
73
+ };
74
+ // Annotate the CommonJS export names for ESM import in node:
75
+ 0 && (module.exports = {
76
+ BOOKMARK_PLUGIN_ID,
77
+ BookmarkPlugin,
78
+ BookmarkPluginPackage,
79
+ manifest
80
+ });
81
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/lib/manifest.ts","../src/lib/bookmark-plugin.ts","../src/lib/index.ts"],"sourcesContent":["export * from './lib';\n","import { PluginManifest } from '@embedpdf/core';\nimport { BookmarkPluginConfig } from './types';\n\nexport const BOOKMARK_PLUGIN_ID = 'bookmark';\n\nexport const manifest: PluginManifest<BookmarkPluginConfig> = {\n id: BOOKMARK_PLUGIN_ID,\n name: 'Bookmark Plugin',\n version: '1.0.0',\n provides: ['bookmark'],\n requires: [],\n optional: [],\n defaultConfig: {\n enabled: true,\n },\n};\n","import { BasePlugin, PluginRegistry } from '@embedpdf/core';\nimport { PdfBookmarkObject, PdfEngine, PdfErrorReason, Task } from '@embedpdf/models';\n\nimport { BookmarkCapability, BookmarkPluginConfig } from './types';\n\nexport class BookmarkPlugin extends BasePlugin<BookmarkPluginConfig, BookmarkCapability> {\n static readonly id = 'bookmark' as const;\n\n private engine: PdfEngine;\n\n constructor(id: string, registry: PluginRegistry, engine: PdfEngine) {\n super(id, registry);\n\n this.engine = engine;\n }\n\n async initialize(_: BookmarkPluginConfig): Promise<void> {}\n\n protected buildCapability(): BookmarkCapability {\n return {\n getBookmarks: this.getBookmarks.bind(this),\n };\n }\n\n private getBookmarks(): Task<{ bookmarks: PdfBookmarkObject[] }, PdfErrorReason> {\n const doc = this.coreState.core.document;\n if (!doc) throw new Error('Document not open');\n\n return this.engine.getBookmarks(doc);\n }\n}\n","import { PluginPackage } from '@embedpdf/core';\nimport { manifest, BOOKMARK_PLUGIN_ID } from './manifest';\nimport { BookmarkPluginConfig } from './types';\nimport { BookmarkPlugin } from './bookmark-plugin';\n\nexport const BookmarkPluginPackage: PluginPackage<BookmarkPlugin, BookmarkPluginConfig> = {\n manifest,\n create: (registry, engine) => new BookmarkPlugin(BOOKMARK_PLUGIN_ID, registry, engine),\n reducer: () => {},\n initialState: {},\n};\n\nexport * from './bookmark-plugin';\nexport * from './types';\nexport * from './manifest';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAM,qBAAqB;AAE3B,IAAM,WAAiD;AAAA,EAC5D,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,SAAS;AAAA,EACT,UAAU,CAAC,UAAU;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,UAAU,CAAC;AAAA,EACX,eAAe;AAAA,IACb,SAAS;AAAA,EACX;AACF;;;ACfA,kBAA2C;AAKpC,IAAM,iBAAN,cAA6B,uBAAqD;AAAA,EAKvF,YAAY,IAAY,UAA0B,QAAmB;AACnE,UAAM,IAAI,QAAQ;AAElB,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA,MAAM,WAAW,GAAwC;AAAA,EAAC;AAAA,EAEhD,kBAAsC;AAC9C,WAAO;AAAA,MACL,cAAc,KAAK,aAAa,KAAK,IAAI;AAAA,IAC3C;AAAA,EACF;AAAA,EAEQ,eAAyE;AAC/E,UAAM,MAAM,KAAK,UAAU,KAAK;AAChC,QAAI,CAAC,IAAK,OAAM,IAAI,MAAM,mBAAmB;AAE7C,WAAO,KAAK,OAAO,aAAa,GAAG;AAAA,EACrC;AACF;AAzBa,eACK,KAAK;;;ACDhB,IAAM,wBAA6E;AAAA,EACxF;AAAA,EACA,QAAQ,CAAC,UAAU,WAAW,IAAI,eAAe,oBAAoB,UAAU,MAAM;AAAA,EACrF,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,cAAc,CAAC;AACjB;","names":[]}
@@ -0,0 +1,26 @@
1
+ import { BasePluginConfig, BasePlugin, PluginRegistry, PluginManifest, PluginPackage } from '@embedpdf/core';
2
+ import { Task, PdfBookmarkObject, PdfErrorReason, PdfEngine } from '@embedpdf/models';
3
+
4
+ interface BookmarkPluginConfig extends BasePluginConfig {
5
+ }
6
+ interface BookmarkCapability {
7
+ getBookmarks: () => Task<{
8
+ bookmarks: PdfBookmarkObject[];
9
+ }, PdfErrorReason>;
10
+ }
11
+
12
+ declare class BookmarkPlugin extends BasePlugin<BookmarkPluginConfig, BookmarkCapability> {
13
+ static readonly id: "bookmark";
14
+ private engine;
15
+ constructor(id: string, registry: PluginRegistry, engine: PdfEngine);
16
+ initialize(_: BookmarkPluginConfig): Promise<void>;
17
+ protected buildCapability(): BookmarkCapability;
18
+ private getBookmarks;
19
+ }
20
+
21
+ declare const BOOKMARK_PLUGIN_ID = "bookmark";
22
+ declare const manifest: PluginManifest<BookmarkPluginConfig>;
23
+
24
+ declare const BookmarkPluginPackage: PluginPackage<BookmarkPlugin, BookmarkPluginConfig>;
25
+
26
+ export { BOOKMARK_PLUGIN_ID, type BookmarkCapability, BookmarkPlugin, type BookmarkPluginConfig, BookmarkPluginPackage, manifest };
@@ -0,0 +1,26 @@
1
+ import { BasePluginConfig, BasePlugin, PluginRegistry, PluginManifest, PluginPackage } from '@embedpdf/core';
2
+ import { Task, PdfBookmarkObject, PdfErrorReason, PdfEngine } from '@embedpdf/models';
3
+
4
+ interface BookmarkPluginConfig extends BasePluginConfig {
5
+ }
6
+ interface BookmarkCapability {
7
+ getBookmarks: () => Task<{
8
+ bookmarks: PdfBookmarkObject[];
9
+ }, PdfErrorReason>;
10
+ }
11
+
12
+ declare class BookmarkPlugin extends BasePlugin<BookmarkPluginConfig, BookmarkCapability> {
13
+ static readonly id: "bookmark";
14
+ private engine;
15
+ constructor(id: string, registry: PluginRegistry, engine: PdfEngine);
16
+ initialize(_: BookmarkPluginConfig): Promise<void>;
17
+ protected buildCapability(): BookmarkCapability;
18
+ private getBookmarks;
19
+ }
20
+
21
+ declare const BOOKMARK_PLUGIN_ID = "bookmark";
22
+ declare const manifest: PluginManifest<BookmarkPluginConfig>;
23
+
24
+ declare const BookmarkPluginPackage: PluginPackage<BookmarkPlugin, BookmarkPluginConfig>;
25
+
26
+ export { BOOKMARK_PLUGIN_ID, type BookmarkCapability, BookmarkPlugin, type BookmarkPluginConfig, BookmarkPluginPackage, manifest };
package/dist/index.js ADDED
@@ -0,0 +1,51 @@
1
+ // src/lib/manifest.ts
2
+ var BOOKMARK_PLUGIN_ID = "bookmark";
3
+ var manifest = {
4
+ id: BOOKMARK_PLUGIN_ID,
5
+ name: "Bookmark Plugin",
6
+ version: "1.0.0",
7
+ provides: ["bookmark"],
8
+ requires: [],
9
+ optional: [],
10
+ defaultConfig: {
11
+ enabled: true
12
+ }
13
+ };
14
+
15
+ // src/lib/bookmark-plugin.ts
16
+ import { BasePlugin } from "@embedpdf/core";
17
+ var BookmarkPlugin = class extends BasePlugin {
18
+ constructor(id, registry, engine) {
19
+ super(id, registry);
20
+ this.engine = engine;
21
+ }
22
+ async initialize(_) {
23
+ }
24
+ buildCapability() {
25
+ return {
26
+ getBookmarks: this.getBookmarks.bind(this)
27
+ };
28
+ }
29
+ getBookmarks() {
30
+ const doc = this.coreState.core.document;
31
+ if (!doc) throw new Error("Document not open");
32
+ return this.engine.getBookmarks(doc);
33
+ }
34
+ };
35
+ BookmarkPlugin.id = "bookmark";
36
+
37
+ // src/lib/index.ts
38
+ var BookmarkPluginPackage = {
39
+ manifest,
40
+ create: (registry, engine) => new BookmarkPlugin(BOOKMARK_PLUGIN_ID, registry, engine),
41
+ reducer: () => {
42
+ },
43
+ initialState: {}
44
+ };
45
+ export {
46
+ BOOKMARK_PLUGIN_ID,
47
+ BookmarkPlugin,
48
+ BookmarkPluginPackage,
49
+ manifest
50
+ };
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/manifest.ts","../src/lib/bookmark-plugin.ts","../src/lib/index.ts"],"sourcesContent":["import { PluginManifest } from '@embedpdf/core';\nimport { BookmarkPluginConfig } from './types';\n\nexport const BOOKMARK_PLUGIN_ID = 'bookmark';\n\nexport const manifest: PluginManifest<BookmarkPluginConfig> = {\n id: BOOKMARK_PLUGIN_ID,\n name: 'Bookmark Plugin',\n version: '1.0.0',\n provides: ['bookmark'],\n requires: [],\n optional: [],\n defaultConfig: {\n enabled: true,\n },\n};\n","import { BasePlugin, PluginRegistry } from '@embedpdf/core';\nimport { PdfBookmarkObject, PdfEngine, PdfErrorReason, Task } from '@embedpdf/models';\n\nimport { BookmarkCapability, BookmarkPluginConfig } from './types';\n\nexport class BookmarkPlugin extends BasePlugin<BookmarkPluginConfig, BookmarkCapability> {\n static readonly id = 'bookmark' as const;\n\n private engine: PdfEngine;\n\n constructor(id: string, registry: PluginRegistry, engine: PdfEngine) {\n super(id, registry);\n\n this.engine = engine;\n }\n\n async initialize(_: BookmarkPluginConfig): Promise<void> {}\n\n protected buildCapability(): BookmarkCapability {\n return {\n getBookmarks: this.getBookmarks.bind(this),\n };\n }\n\n private getBookmarks(): Task<{ bookmarks: PdfBookmarkObject[] }, PdfErrorReason> {\n const doc = this.coreState.core.document;\n if (!doc) throw new Error('Document not open');\n\n return this.engine.getBookmarks(doc);\n }\n}\n","import { PluginPackage } from '@embedpdf/core';\nimport { manifest, BOOKMARK_PLUGIN_ID } from './manifest';\nimport { BookmarkPluginConfig } from './types';\nimport { BookmarkPlugin } from './bookmark-plugin';\n\nexport const BookmarkPluginPackage: PluginPackage<BookmarkPlugin, BookmarkPluginConfig> = {\n manifest,\n create: (registry, engine) => new BookmarkPlugin(BOOKMARK_PLUGIN_ID, registry, engine),\n reducer: () => {},\n initialState: {},\n};\n\nexport * from './bookmark-plugin';\nexport * from './types';\nexport * from './manifest';\n"],"mappings":";AAGO,IAAM,qBAAqB;AAE3B,IAAM,WAAiD;AAAA,EAC5D,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,SAAS;AAAA,EACT,UAAU,CAAC,UAAU;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,UAAU,CAAC;AAAA,EACX,eAAe;AAAA,IACb,SAAS;AAAA,EACX;AACF;;;ACfA,SAAS,kBAAkC;AAKpC,IAAM,iBAAN,cAA6B,WAAqD;AAAA,EAKvF,YAAY,IAAY,UAA0B,QAAmB;AACnE,UAAM,IAAI,QAAQ;AAElB,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA,MAAM,WAAW,GAAwC;AAAA,EAAC;AAAA,EAEhD,kBAAsC;AAC9C,WAAO;AAAA,MACL,cAAc,KAAK,aAAa,KAAK,IAAI;AAAA,IAC3C;AAAA,EACF;AAAA,EAEQ,eAAyE;AAC/E,UAAM,MAAM,KAAK,UAAU,KAAK;AAChC,QAAI,CAAC,IAAK,OAAM,IAAI,MAAM,mBAAmB;AAE7C,WAAO,KAAK,OAAO,aAAa,GAAG;AAAA,EACrC;AACF;AAzBa,eACK,KAAK;;;ACDhB,IAAM,wBAA6E;AAAA,EACxF;AAAA,EACA,QAAQ,CAAC,UAAU,WAAW,IAAI,eAAe,oBAAoB,UAAU,MAAM;AAAA,EACrF,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,cAAc,CAAC;AACjB;","names":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/preact/index.ts
21
+ var preact_exports = {};
22
+ __export(preact_exports, {
23
+ useBookmark: () => useBookmark,
24
+ useBookmarkCapability: () => useBookmarkCapability
25
+ });
26
+ module.exports = __toCommonJS(preact_exports);
27
+
28
+ // src/preact/hooks/use-bookmark.ts
29
+ var import_preact = require("@embedpdf/core/preact");
30
+ var import_plugin_bookmark = require("@embedpdf/plugin-bookmark");
31
+ var useBookmark = () => (0, import_preact.usePlugin)(import_plugin_bookmark.BookmarkPlugin.id);
32
+ var useBookmarkCapability = () => (0, import_preact.useCapability)(import_plugin_bookmark.BookmarkPlugin.id);
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ useBookmark,
36
+ useBookmarkCapability
37
+ });
38
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/preact/index.ts","../../src/preact/hooks/use-bookmark.ts"],"sourcesContent":["export * from './hooks';\n","import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { BookmarkPlugin } from '@embedpdf/plugin-bookmark';\n\nexport const useBookmark = () => usePlugin<BookmarkPlugin>(BookmarkPlugin.id);\nexport const useBookmarkCapability = () => useCapability<BookmarkPlugin>(BookmarkPlugin.id);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBAAyC;AACzC,6BAA+B;AAExB,IAAM,cAAc,UAAM,yBAA0B,sCAAe,EAAE;AACrE,IAAM,wBAAwB,UAAM,6BAA8B,sCAAe,EAAE;","names":[]}
@@ -0,0 +1,15 @@
1
+ import * as _embedpdf_plugin_bookmark from '@embedpdf/plugin-bookmark';
2
+ import { BookmarkPlugin } from '@embedpdf/plugin-bookmark';
3
+
4
+ declare const useBookmark: () => {
5
+ plugin: BookmarkPlugin | null;
6
+ isLoading: boolean;
7
+ ready: Promise<void>;
8
+ };
9
+ declare const useBookmarkCapability: () => {
10
+ provides: Readonly<_embedpdf_plugin_bookmark.BookmarkCapability> | null;
11
+ isLoading: boolean;
12
+ ready: Promise<void>;
13
+ };
14
+
15
+ export { useBookmark, useBookmarkCapability };
@@ -0,0 +1,15 @@
1
+ import * as _embedpdf_plugin_bookmark from '@embedpdf/plugin-bookmark';
2
+ import { BookmarkPlugin } from '@embedpdf/plugin-bookmark';
3
+
4
+ declare const useBookmark: () => {
5
+ plugin: BookmarkPlugin | null;
6
+ isLoading: boolean;
7
+ ready: Promise<void>;
8
+ };
9
+ declare const useBookmarkCapability: () => {
10
+ provides: Readonly<_embedpdf_plugin_bookmark.BookmarkCapability> | null;
11
+ isLoading: boolean;
12
+ ready: Promise<void>;
13
+ };
14
+
15
+ export { useBookmark, useBookmarkCapability };
@@ -0,0 +1,10 @@
1
+ // src/preact/hooks/use-bookmark.ts
2
+ import { useCapability, usePlugin } from "@embedpdf/core/preact";
3
+ import { BookmarkPlugin } from "@embedpdf/plugin-bookmark";
4
+ var useBookmark = () => usePlugin(BookmarkPlugin.id);
5
+ var useBookmarkCapability = () => useCapability(BookmarkPlugin.id);
6
+ export {
7
+ useBookmark,
8
+ useBookmarkCapability
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/preact/hooks/use-bookmark.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/preact';\nimport { BookmarkPlugin } from '@embedpdf/plugin-bookmark';\n\nexport const useBookmark = () => usePlugin<BookmarkPlugin>(BookmarkPlugin.id);\nexport const useBookmarkCapability = () => useCapability<BookmarkPlugin>(BookmarkPlugin.id);\n"],"mappings":";AAAA,SAAS,eAAe,iBAAiB;AACzC,SAAS,sBAAsB;AAExB,IAAM,cAAc,MAAM,UAA0B,eAAe,EAAE;AACrE,IAAM,wBAAwB,MAAM,cAA8B,eAAe,EAAE;","names":[]}
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@embedpdf/plugin-bookmark",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs"
13
+ },
14
+ "./preact": {
15
+ "types": "./dist/preact/index.d.ts",
16
+ "import": "./dist/preact/index.js",
17
+ "require": "./dist/preact/index.cjs"
18
+ }
19
+ },
20
+ "dependencies": {},
21
+ "devDependencies": {
22
+ "@types/react": "^18.2.0",
23
+ "tsup": "^8.0.0",
24
+ "typescript": "^5.0.0",
25
+ "@embedpdf/models": "1.0.0",
26
+ "@embedpdf/core": "1.0.0"
27
+ },
28
+ "peerDependencies": {
29
+ "react": ">=16.8.0",
30
+ "react-dom": ">=16.8.0",
31
+ "preact": "^10.26.4",
32
+ "@embedpdf/core": "1.0.0"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "README.md"
37
+ ],
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/embedpdf/embed-pdf-viewer",
41
+ "directory": "packages/plugin-bookmark"
42
+ },
43
+ "homepage": "https://www.embedpdf.com/docs",
44
+ "bugs": {
45
+ "url": "https://github.com/embedpdf/embed-pdf-viewer/issues"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
50
+ "scripts": {
51
+ "build": "PROJECT_CWD=$(pwd) pnpm -w p:build",
52
+ "build:watch": "PROJECT_CWD=$(pwd) pnpm -w p:build:watch",
53
+ "clean": "PROJECT_CWD=$(pwd) pnpm -w p:clean",
54
+ "lint": "PROJECT_CWD=$(pwd) pnpm -w p:lint",
55
+ "lint:fix": "PROJECT_CWD=$(pwd) pnpm -w p:lint:fix",
56
+ "typecheck": "PROJECT_CWD=$(pwd) pnpm -w p:typecheck"
57
+ }
58
+ }