jit-pdf 0.1.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/README.md +50 -0
- package/dist/annotation-snapshot.d.ts +2 -0
- package/dist/browser.cjs +1 -0
- package/dist/browser.d.ts +25 -0
- package/dist/browser.js +56 -0
- package/dist/components/JitPdfEditor.vue.d.ts +21 -0
- package/dist/components/JitPdfEditorInner.vue.d.ts +22 -0
- package/dist/composables/usePdfEditorSdk.d.ts +8 -0
- package/dist/http-service-DBwg8kDH.js +43169 -0
- package/dist/http-service-DqmwdbGE.cjs +18844 -0
- package/dist/http-service.d.ts +6 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -0
- package/dist/indexeddb-service.d.ts +10 -0
- package/dist/jit-pdf.umd.js +18863 -0
- package/dist/style.css +1 -0
- package/dist/types.d.ts +128 -0
- package/package.json +84 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./http-service-DqmwdbGE.cjs");exports.JitPdfEditor=e._sfc_main;exports.createHttpPdfEditorService=e.createHttpPdfEditorService;exports.createIndexedDbPdfEditorService=e.createIndexedDbPdfEditorService;exports.usePdfEditorSdk=e.usePdfEditorSdk;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "./styles.css";
|
|
2
|
+
export { default as JitPdfEditor } from "./components/JitPdfEditor.vue";
|
|
3
|
+
export { usePdfEditorSdk } from "./composables/usePdfEditorSdk";
|
|
4
|
+
export { createHttpPdfEditorService } from "./http-service";
|
|
5
|
+
export { createIndexedDbPdfEditorService } from "./indexeddb-service";
|
|
6
|
+
export type * from "./types";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PdfAnnotationSnapshot, PdfEditorService } from "./types";
|
|
2
|
+
export interface IndexedDbPdfEditorServiceOptions {
|
|
3
|
+
databaseName?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function createIndexedDbPdfEditorService(options?: IndexedDbPdfEditorServiceOptions): PdfEditorService;
|
|
6
|
+
export declare function createIndexedDbAnnotationRepository(options?: IndexedDbPdfEditorServiceOptions): {
|
|
7
|
+
load(fileId: string): Promise<PdfAnnotationSnapshot[]>;
|
|
8
|
+
save(fileId: string, annotations: PdfAnnotationSnapshot[]): Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
export declare function warmIndexedDbFileUrl(service: PdfEditorService, fileId: string): Promise<string>;
|