@embedpdf/plugin-stamp 3.0.0-next.16 → 3.0.0-next.17
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as StampSettings, C as StampLibraryCreatedEvent, D as StampLibraryPatch, E as StampLibraryKind, F as DEFAULT_LIBRARY_KIND, I as StampToken, M as memoryStampStore, N as persistStampLibraries, O as StampLibraryUpdatedEvent, P as restoreStampLibraries, S as StampLibraryChangedEvent, T as StampLibraryFilter, _ as StampAssetUpdatedEvent, a as MarkSource, b as StampDocumentOptions, c as StampArmOptions, d as StampAssetDeletedEvent, f as StampAssetEngine, g as StampAssetPreview, h as StampAssetPatch, i as ImportLibraryOptions, j as StampLibraryStore, k as StampPlacement, l as StampAsset, m as StampAssetKind, n as AssetFromAnnotationsInput, o as STAMP_DEFAULTS, p as StampAssetFilter, r as CreateLibraryOptions, s as StampArmChangedEvent, t as AddAssetInput, u as StampAssetCreatedEvent, v as StampCapability, w as StampLibraryDeletedEvent, x as StampLibrary, y as StampConfig } from "./contract-CEeBOug9.cjs";
|
|
2
2
|
//#region src/model.d.ts
|
|
3
|
-
interface
|
|
3
|
+
interface StampModel {
|
|
4
4
|
readonly libraries: Readonly<Record<string, StampLibrary>>;
|
|
5
5
|
/** Library display order (insertion order). */
|
|
6
6
|
readonly libraryOrder: readonly string[];
|
|
@@ -15,12 +15,15 @@ interface StampState {
|
|
|
15
15
|
* document; placement targets a document through its annotation plugin.
|
|
16
16
|
* `config` is the settings the app registers, over {@link STAMP_DEFAULTS}.
|
|
17
17
|
*/
|
|
18
|
-
declare const stampPlugin: (config?: StampConfig) => import("@embedpdf/core").PluginDef<
|
|
18
|
+
declare const stampPlugin: (config?: StampConfig) => import("@embedpdf/core").PluginDef<StampModel, StampCapability, StampSettings>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/state.d.ts
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/** The armed stamp. */
|
|
22
|
+
interface StampState {
|
|
23
|
+
/** The stamp the next click on the document places, or `null`. */
|
|
24
|
+
readonly armedAsset: StampAsset | null;
|
|
25
|
+
}
|
|
26
|
+
declare const stampState: import("@embedpdf/core").StateDeclaration<StampCapability, StampState>;
|
|
24
27
|
//#endregion
|
|
25
|
-
export { AddAssetInput, AssetFromAnnotationsInput, CreateLibraryOptions, DEFAULT_LIBRARY_KIND, ImportLibraryOptions, MarkSource, STAMP_DEFAULTS, StampArmChangedEvent, StampArmOptions, StampAsset, StampAssetCreatedEvent, StampAssetDeletedEvent, StampAssetEngine, StampAssetFilter, StampAssetKind, StampAssetPatch, StampAssetPreview, StampAssetUpdatedEvent, StampCapability, StampConfig, StampDocumentOptions, StampLibrary, StampLibraryChangedEvent, StampLibraryCreatedEvent, StampLibraryDeletedEvent, StampLibraryFilter, StampLibraryKind, StampLibraryPatch, type StampLibraryStore, StampLibraryUpdatedEvent, type StampPlacement, StampSettings, StampToken, memoryStampStore, persistStampLibraries, restoreStampLibraries, stampPlugin, stampState };
|
|
28
|
+
export { AddAssetInput, AssetFromAnnotationsInput, CreateLibraryOptions, DEFAULT_LIBRARY_KIND, ImportLibraryOptions, MarkSource, STAMP_DEFAULTS, StampArmChangedEvent, StampArmOptions, StampAsset, StampAssetCreatedEvent, StampAssetDeletedEvent, StampAssetEngine, StampAssetFilter, StampAssetKind, StampAssetPatch, StampAssetPreview, StampAssetUpdatedEvent, StampCapability, StampConfig, StampDocumentOptions, StampLibrary, StampLibraryChangedEvent, StampLibraryCreatedEvent, StampLibraryDeletedEvent, StampLibraryFilter, StampLibraryKind, StampLibraryPatch, type StampLibraryStore, StampLibraryUpdatedEvent, type StampPlacement, StampSettings, type StampState, StampToken, memoryStampStore, persistStampLibraries, restoreStampLibraries, stampPlugin, stampState };
|
|
26
29
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as StampSettings, C as StampLibraryCreatedEvent, D as StampLibraryPatch, E as StampLibraryKind, F as DEFAULT_LIBRARY_KIND, I as StampToken, M as memoryStampStore, N as persistStampLibraries, O as StampLibraryUpdatedEvent, P as restoreStampLibraries, S as StampLibraryChangedEvent, T as StampLibraryFilter, _ as StampAssetUpdatedEvent, a as MarkSource, b as StampDocumentOptions, c as StampArmOptions, d as StampAssetDeletedEvent, f as StampAssetEngine, g as StampAssetPreview, h as StampAssetPatch, i as ImportLibraryOptions, j as StampLibraryStore, k as StampPlacement, l as StampAsset, m as StampAssetKind, n as AssetFromAnnotationsInput, o as STAMP_DEFAULTS, p as StampAssetFilter, r as CreateLibraryOptions, s as StampArmChangedEvent, t as AddAssetInput, u as StampAssetCreatedEvent, v as StampCapability, w as StampLibraryDeletedEvent, x as StampLibrary, y as StampConfig } from "./contract-CjGXUUDJ.js";
|
|
2
2
|
//#region src/model.d.ts
|
|
3
|
-
interface
|
|
3
|
+
interface StampModel {
|
|
4
4
|
readonly libraries: Readonly<Record<string, StampLibrary>>;
|
|
5
5
|
/** Library display order (insertion order). */
|
|
6
6
|
readonly libraryOrder: readonly string[];
|
|
@@ -15,12 +15,15 @@ interface StampState {
|
|
|
15
15
|
* document; placement targets a document through its annotation plugin.
|
|
16
16
|
* `config` is the settings the app registers, over {@link STAMP_DEFAULTS}.
|
|
17
17
|
*/
|
|
18
|
-
declare const stampPlugin: (config?: StampConfig) => import("@embedpdf/core").PluginDef<
|
|
18
|
+
declare const stampPlugin: (config?: StampConfig) => import("@embedpdf/core").PluginDef<StampModel, StampCapability, StampSettings>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/state.d.ts
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
/** The armed stamp. */
|
|
22
|
+
interface StampState {
|
|
23
|
+
/** The stamp the next click on the document places, or `null`. */
|
|
24
|
+
readonly armedAsset: StampAsset | null;
|
|
25
|
+
}
|
|
26
|
+
declare const stampState: import("@embedpdf/core").StateDeclaration<StampCapability, StampState>;
|
|
24
27
|
//#endregion
|
|
25
|
-
export { AddAssetInput, AssetFromAnnotationsInput, CreateLibraryOptions, DEFAULT_LIBRARY_KIND, ImportLibraryOptions, MarkSource, STAMP_DEFAULTS, StampArmChangedEvent, StampArmOptions, StampAsset, StampAssetCreatedEvent, StampAssetDeletedEvent, StampAssetEngine, StampAssetFilter, StampAssetKind, StampAssetPatch, StampAssetPreview, StampAssetUpdatedEvent, StampCapability, StampConfig, StampDocumentOptions, StampLibrary, StampLibraryChangedEvent, StampLibraryCreatedEvent, StampLibraryDeletedEvent, StampLibraryFilter, StampLibraryKind, StampLibraryPatch, type StampLibraryStore, StampLibraryUpdatedEvent, type StampPlacement, StampSettings, StampToken, memoryStampStore, persistStampLibraries, restoreStampLibraries, stampPlugin, stampState };
|
|
28
|
+
export { AddAssetInput, AssetFromAnnotationsInput, CreateLibraryOptions, DEFAULT_LIBRARY_KIND, ImportLibraryOptions, MarkSource, STAMP_DEFAULTS, StampArmChangedEvent, StampArmOptions, StampAsset, StampAssetCreatedEvent, StampAssetDeletedEvent, StampAssetEngine, StampAssetFilter, StampAssetKind, StampAssetPatch, StampAssetPreview, StampAssetUpdatedEvent, StampCapability, StampConfig, StampDocumentOptions, StampLibrary, StampLibraryChangedEvent, StampLibraryCreatedEvent, StampLibraryDeletedEvent, StampLibraryFilter, StampLibraryKind, StampLibraryPatch, type StampLibraryStore, StampLibraryUpdatedEvent, type StampPlacement, StampSettings, type StampState, StampToken, memoryStampStore, persistStampLibraries, restoreStampLibraries, stampPlugin, stampState };
|
|
26
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -309,7 +309,7 @@ function createServices(ctx) {
|
|
|
309
309
|
}
|
|
310
310
|
//#endregion
|
|
311
311
|
//#region src/model.ts
|
|
312
|
-
const
|
|
312
|
+
const initialStampModel = () => ({
|
|
313
313
|
libraries: {},
|
|
314
314
|
libraryOrder: [],
|
|
315
315
|
assets: {},
|
|
@@ -1362,7 +1362,7 @@ const stampPlugin = (config) => definePlugin({
|
|
|
1362
1362
|
token: StampToken,
|
|
1363
1363
|
scope: "workspace",
|
|
1364
1364
|
optional: [AnnotationToken, ActionsToken],
|
|
1365
|
-
state:
|
|
1365
|
+
state: initialStampModel,
|
|
1366
1366
|
settings: {
|
|
1367
1367
|
defaults: STAMP_DEFAULTS,
|
|
1368
1368
|
registered: config,
|