@embedpdf/plugin-form 2.15.0 → 3.0.0-next.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.
Files changed (175) hide show
  1. package/LICENSE +192 -21
  2. package/dist/index.cjs +1416 -2
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +277 -0
  5. package/dist/index.d.ts +277 -1
  6. package/dist/index.js +1398 -1779
  7. package/dist/index.js.map +1 -1
  8. package/package.json +24 -61
  9. package/dist/lib/actions.d.ts +0 -33
  10. package/dist/lib/form-plugin.d.ts +0 -59
  11. package/dist/lib/handlers/checkbox.handler.d.ts +0 -3
  12. package/dist/lib/handlers/combobox.handler.d.ts +0 -3
  13. package/dist/lib/handlers/index.d.ts +0 -5
  14. package/dist/lib/handlers/listbox.handler.d.ts +0 -3
  15. package/dist/lib/handlers/radio-button.handler.d.ts +0 -3
  16. package/dist/lib/handlers/text-field.handler.d.ts +0 -3
  17. package/dist/lib/index.d.ts +0 -10
  18. package/dist/lib/manifest.d.ts +0 -4
  19. package/dist/lib/reducer.d.ts +0 -6
  20. package/dist/lib/tools.d.ts +0 -457
  21. package/dist/lib/types.d.ts +0 -98
  22. package/dist/preact/adapter.d.ts +0 -13
  23. package/dist/preact/annotation.d.ts +0 -1
  24. package/dist/preact/core.d.ts +0 -1
  25. package/dist/preact/index.cjs +0 -2
  26. package/dist/preact/index.cjs.map +0 -1
  27. package/dist/preact/index.d.ts +0 -1
  28. package/dist/preact/index.js +0 -1359
  29. package/dist/preact/index.js.map +0 -1
  30. package/dist/react/adapter.d.ts +0 -6
  31. package/dist/react/annotation.d.ts +0 -1
  32. package/dist/react/core.d.ts +0 -1
  33. package/dist/react/index.cjs +0 -2
  34. package/dist/react/index.cjs.map +0 -1
  35. package/dist/react/index.d.ts +0 -1
  36. package/dist/react/index.js +0 -1358
  37. package/dist/react/index.js.map +0 -1
  38. package/dist/shared/components/annotations/form-checkbox.d.ts +0 -12
  39. package/dist/shared/components/annotations/form-combobox.d.ts +0 -12
  40. package/dist/shared/components/annotations/form-listbox.d.ts +0 -12
  41. package/dist/shared/components/annotations/form-radio-button.d.ts +0 -12
  42. package/dist/shared/components/annotations/form-text-field.d.ts +0 -12
  43. package/dist/shared/components/fields/checkbox.d.ts +0 -2
  44. package/dist/shared/components/fields/combobox.d.ts +0 -2
  45. package/dist/shared/components/fields/listbox.d.ts +0 -2
  46. package/dist/shared/components/fields/push-button.d.ts +0 -2
  47. package/dist/shared/components/fields/radio-button.d.ts +0 -2
  48. package/dist/shared/components/fields/style.d.ts +0 -6
  49. package/dist/shared/components/fields/text.d.ts +0 -2
  50. package/dist/shared/components/fill-mode/combobox-fill-mode.d.ts +0 -3
  51. package/dist/shared/components/fill-mode/listbox-fill-mode.d.ts +0 -3
  52. package/dist/shared/components/fill-mode/push-button-fill-mode.d.ts +0 -3
  53. package/dist/shared/components/fill-mode/radio-button-fill-mode.d.ts +0 -3
  54. package/dist/shared/components/fill-mode/text-fill-mode.d.ts +0 -3
  55. package/dist/shared/components/fill-mode/toggle-fill-mode.d.ts +0 -3
  56. package/dist/shared/components/form-renderer-registration.d.ts +0 -5
  57. package/dist/shared/components/form-renderers.d.ts +0 -9
  58. package/dist/shared/components/index.d.ts +0 -2
  59. package/dist/shared/components/render-widget.d.ts +0 -12
  60. package/dist/shared/components/types.d.ts +0 -42
  61. package/dist/shared/hooks/index.d.ts +0 -1
  62. package/dist/shared/hooks/use-form-widget-state.d.ts +0 -12
  63. package/dist/shared/hooks/use-form.d.ts +0 -16
  64. package/dist/shared/index.d.ts +0 -4
  65. package/dist/shared-preact/components/annotations/form-checkbox.d.ts +0 -12
  66. package/dist/shared-preact/components/annotations/form-combobox.d.ts +0 -12
  67. package/dist/shared-preact/components/annotations/form-listbox.d.ts +0 -12
  68. package/dist/shared-preact/components/annotations/form-radio-button.d.ts +0 -12
  69. package/dist/shared-preact/components/annotations/form-text-field.d.ts +0 -12
  70. package/dist/shared-preact/components/fields/checkbox.d.ts +0 -2
  71. package/dist/shared-preact/components/fields/combobox.d.ts +0 -2
  72. package/dist/shared-preact/components/fields/listbox.d.ts +0 -2
  73. package/dist/shared-preact/components/fields/push-button.d.ts +0 -2
  74. package/dist/shared-preact/components/fields/radio-button.d.ts +0 -2
  75. package/dist/shared-preact/components/fields/style.d.ts +0 -6
  76. package/dist/shared-preact/components/fields/text.d.ts +0 -2
  77. package/dist/shared-preact/components/fill-mode/combobox-fill-mode.d.ts +0 -3
  78. package/dist/shared-preact/components/fill-mode/listbox-fill-mode.d.ts +0 -3
  79. package/dist/shared-preact/components/fill-mode/push-button-fill-mode.d.ts +0 -3
  80. package/dist/shared-preact/components/fill-mode/radio-button-fill-mode.d.ts +0 -3
  81. package/dist/shared-preact/components/fill-mode/text-fill-mode.d.ts +0 -3
  82. package/dist/shared-preact/components/fill-mode/toggle-fill-mode.d.ts +0 -3
  83. package/dist/shared-preact/components/form-renderer-registration.d.ts +0 -5
  84. package/dist/shared-preact/components/form-renderers.d.ts +0 -9
  85. package/dist/shared-preact/components/index.d.ts +0 -2
  86. package/dist/shared-preact/components/render-widget.d.ts +0 -12
  87. package/dist/shared-preact/components/types.d.ts +0 -42
  88. package/dist/shared-preact/hooks/index.d.ts +0 -1
  89. package/dist/shared-preact/hooks/use-form-widget-state.d.ts +0 -12
  90. package/dist/shared-preact/hooks/use-form.d.ts +0 -16
  91. package/dist/shared-preact/index.d.ts +0 -4
  92. package/dist/shared-react/components/annotations/form-checkbox.d.ts +0 -12
  93. package/dist/shared-react/components/annotations/form-combobox.d.ts +0 -12
  94. package/dist/shared-react/components/annotations/form-listbox.d.ts +0 -12
  95. package/dist/shared-react/components/annotations/form-radio-button.d.ts +0 -12
  96. package/dist/shared-react/components/annotations/form-text-field.d.ts +0 -12
  97. package/dist/shared-react/components/fields/checkbox.d.ts +0 -2
  98. package/dist/shared-react/components/fields/combobox.d.ts +0 -2
  99. package/dist/shared-react/components/fields/listbox.d.ts +0 -2
  100. package/dist/shared-react/components/fields/push-button.d.ts +0 -2
  101. package/dist/shared-react/components/fields/radio-button.d.ts +0 -2
  102. package/dist/shared-react/components/fields/style.d.ts +0 -6
  103. package/dist/shared-react/components/fields/text.d.ts +0 -2
  104. package/dist/shared-react/components/fill-mode/combobox-fill-mode.d.ts +0 -3
  105. package/dist/shared-react/components/fill-mode/listbox-fill-mode.d.ts +0 -3
  106. package/dist/shared-react/components/fill-mode/push-button-fill-mode.d.ts +0 -3
  107. package/dist/shared-react/components/fill-mode/radio-button-fill-mode.d.ts +0 -3
  108. package/dist/shared-react/components/fill-mode/text-fill-mode.d.ts +0 -3
  109. package/dist/shared-react/components/fill-mode/toggle-fill-mode.d.ts +0 -3
  110. package/dist/shared-react/components/form-renderer-registration.d.ts +0 -5
  111. package/dist/shared-react/components/form-renderers.d.ts +0 -9
  112. package/dist/shared-react/components/index.d.ts +0 -2
  113. package/dist/shared-react/components/render-widget.d.ts +0 -12
  114. package/dist/shared-react/components/types.d.ts +0 -42
  115. package/dist/shared-react/hooks/index.d.ts +0 -1
  116. package/dist/shared-react/hooks/use-form-widget-state.d.ts +0 -12
  117. package/dist/shared-react/hooks/use-form.d.ts +0 -16
  118. package/dist/shared-react/index.d.ts +0 -4
  119. package/dist/svelte/components/FormRendererRegistration.svelte.d.ts +0 -18
  120. package/dist/svelte/components/RenderWidget.svelte.d.ts +0 -11
  121. package/dist/svelte/components/annotations/FormCheckbox.svelte.d.ts +0 -5
  122. package/dist/svelte/components/annotations/FormCombobox.svelte.d.ts +0 -5
  123. package/dist/svelte/components/annotations/FormListbox.svelte.d.ts +0 -5
  124. package/dist/svelte/components/annotations/FormRadioButton.svelte.d.ts +0 -5
  125. package/dist/svelte/components/annotations/FormTextField.svelte.d.ts +0 -5
  126. package/dist/svelte/components/fields/ComboboxField.svelte.d.ts +0 -4
  127. package/dist/svelte/components/fields/ListboxField.svelte.d.ts +0 -4
  128. package/dist/svelte/components/fields/TextField.svelte.d.ts +0 -4
  129. package/dist/svelte/components/fill-mode/ComboboxFillMode.svelte.d.ts +0 -5
  130. package/dist/svelte/components/fill-mode/ListboxFillMode.svelte.d.ts +0 -5
  131. package/dist/svelte/components/fill-mode/RadioButtonFillMode.svelte.d.ts +0 -5
  132. package/dist/svelte/components/fill-mode/TextFillMode.svelte.d.ts +0 -5
  133. package/dist/svelte/components/fill-mode/ToggleFillMode.svelte.d.ts +0 -5
  134. package/dist/svelte/components/form-renderers.d.ts +0 -9
  135. package/dist/svelte/components/previews/CheckboxPreview.svelte.d.ts +0 -9
  136. package/dist/svelte/components/previews/ListboxPreview.svelte.d.ts +0 -9
  137. package/dist/svelte/components/previews/RadioButtonPreview.svelte.d.ts +0 -9
  138. package/dist/svelte/components/previews/TextFieldPreview.svelte.d.ts +0 -9
  139. package/dist/svelte/hooks/index.d.ts +0 -2
  140. package/dist/svelte/hooks/use-form-widget-state.svelte.d.ts +0 -12
  141. package/dist/svelte/hooks/use-form.svelte.d.ts +0 -14
  142. package/dist/svelte/index.cjs +0 -2
  143. package/dist/svelte/index.cjs.map +0 -1
  144. package/dist/svelte/index.d.ts +0 -3
  145. package/dist/svelte/index.js +0 -1592
  146. package/dist/svelte/index.js.map +0 -1
  147. package/dist/vue/components/annotations/form-checkbox.vue.d.ts +0 -6
  148. package/dist/vue/components/annotations/form-combobox.vue.d.ts +0 -6
  149. package/dist/vue/components/annotations/form-listbox.vue.d.ts +0 -6
  150. package/dist/vue/components/annotations/form-radio-button.vue.d.ts +0 -6
  151. package/dist/vue/components/annotations/form-text-field.vue.d.ts +0 -6
  152. package/dist/vue/components/fields/combobox-field.vue.d.ts +0 -4
  153. package/dist/vue/components/fields/listbox-field.vue.d.ts +0 -4
  154. package/dist/vue/components/fields/style.d.ts +0 -6
  155. package/dist/vue/components/fields/text-field.vue.d.ts +0 -4
  156. package/dist/vue/components/fill-mode/combobox-fill-mode.vue.d.ts +0 -6
  157. package/dist/vue/components/fill-mode/listbox-fill-mode.vue.d.ts +0 -6
  158. package/dist/vue/components/fill-mode/radio-button-fill-mode.vue.d.ts +0 -6
  159. package/dist/vue/components/fill-mode/text-fill-mode.vue.d.ts +0 -6
  160. package/dist/vue/components/fill-mode/toggle-fill-mode.vue.d.ts +0 -6
  161. package/dist/vue/components/form-renderer-registration.vue.d.ts +0 -13
  162. package/dist/vue/components/form-renderers.d.ts +0 -3
  163. package/dist/vue/components/previews/checkbox-preview.vue.d.ts +0 -10
  164. package/dist/vue/components/previews/listbox-preview.vue.d.ts +0 -10
  165. package/dist/vue/components/previews/radio-button-preview.vue.d.ts +0 -10
  166. package/dist/vue/components/previews/text-field-preview.vue.d.ts +0 -10
  167. package/dist/vue/components/render-widget.vue.d.ts +0 -15
  168. package/dist/vue/hooks/index.d.ts +0 -2
  169. package/dist/vue/hooks/use-form-widget-state.d.ts +0 -12
  170. package/dist/vue/hooks/use-form.d.ts +0 -12
  171. package/dist/vue/index.cjs +0 -2
  172. package/dist/vue/index.cjs.map +0 -1
  173. package/dist/vue/index.d.ts +0 -3
  174. package/dist/vue/index.js +0 -1643
  175. package/dist/vue/index.js.map +0 -1
package/package.json CHANGED
@@ -1,84 +1,47 @@
1
1
  {
2
2
  "name": "@embedpdf/plugin-form",
3
- "version": "2.15.0",
3
+ "version": "3.0.0-next.0",
4
+ "private": false,
5
+ "description": "Document-scoped interactive forms: reactive field state over doc.forms, fill-mode controls (FillItem projection), and form-data interchange. Widgets stay annotations; this plugin owns the field plane.",
4
6
  "type": "module",
5
- "main": "./dist/index.cjs",
7
+ "main": "./dist/index.js",
6
8
  "module": "./dist/index.js",
7
9
  "types": "./dist/index.d.ts",
8
10
  "exports": {
9
11
  ".": {
10
- "types": "./dist/index.d.ts",
11
12
  "import": "./dist/index.js",
12
13
  "require": "./dist/index.cjs"
13
14
  },
14
- "./preact": {
15
- "types": "./dist/preact/index.d.ts",
16
- "import": "./dist/preact/index.js",
17
- "require": "./dist/preact/index.cjs"
18
- },
19
- "./react": {
20
- "types": "./dist/react/index.d.ts",
21
- "import": "./dist/react/index.js",
22
- "require": "./dist/react/index.cjs"
23
- },
24
- "./vue": {
25
- "types": "./dist/vue/index.d.ts",
26
- "import": "./dist/vue/index.js",
27
- "require": "./dist/vue/index.cjs"
28
- },
29
- "./svelte": {
30
- "types": "./dist/svelte/index.d.ts",
31
- "import": "./dist/svelte/index.js",
32
- "require": "./dist/svelte/index.cjs"
33
- }
15
+ "./package.json": "./package.json"
34
16
  },
17
+ "files": [
18
+ "dist"
19
+ ],
35
20
  "dependencies": {
36
- "@embedpdf/models": "2.15.0",
37
- "@embedpdf/utils": "2.15.0"
21
+ "@embedpdf/core-js-sandbox": "3.0.0-next.0",
22
+ "@embedpdf/core-acrojs": "3.0.0-next.0",
23
+ "@embedpdf/core": "3.0.0-next.0",
24
+ "@embedpdf/engine-core": "3.0.0-next.0",
25
+ "@embedpdf/plugin-annotation": "3.0.0-next.0",
26
+ "@embedpdf/plugin-interaction": "3.0.0-next.0"
38
27
  },
39
28
  "devDependencies": {
40
- "@types/react": "^18.2.0",
41
29
  "typescript": "^5.0.0",
42
- "@embedpdf/build": "1.1.0",
43
- "@embedpdf/core": "2.15.0",
44
- "@embedpdf/plugin-history": "2.15.0",
45
- "@embedpdf/plugin-annotation": "2.15.0"
30
+ "vitest": "^2.1.9",
31
+ "@embedpdf/tooling-build": "0.0.0",
32
+ "@embedpdf/engine": "3.0.0-next.0"
46
33
  },
47
- "peerDependencies": {
48
- "react": ">=16.8.0",
49
- "react-dom": ">=16.8.0",
50
- "preact": "^10.26.4",
51
- "vue": ">=3.2.0",
52
- "svelte": ">=5 <6",
53
- "@embedpdf/core": "2.15.0",
54
- "@embedpdf/plugin-annotation": "2.15.0",
55
- "@embedpdf/plugin-history": "2.15.0"
56
- },
57
- "files": [
58
- "dist",
59
- "README.md"
60
- ],
34
+ "license": "Apache-2.0",
35
+ "sideEffects": false,
61
36
  "repository": {
62
37
  "type": "git",
63
- "url": "https://github.com/embedpdf/embed-pdf-viewer",
64
- "directory": "packages/plugin-form"
65
- },
66
- "homepage": "https://www.embedpdf.com/docs",
67
- "bugs": {
68
- "url": "https://github.com/embedpdf/embed-pdf-viewer/issues"
69
- },
70
- "publishConfig": {
71
- "access": "public"
38
+ "url": "git+https://github.com/embedpdf/embed-pdf-viewer.git",
39
+ "directory": "packages/plugin/form"
72
40
  },
73
41
  "scripts": {
74
- "build:base": "vite build --mode base",
75
- "build:react": "vite build --mode react",
76
- "build:preact": "vite build --mode preact",
77
- "build:vue": "vite build --mode vue",
78
- "build:svelte": "vite build --mode svelte",
79
- "build": "pnpm run clean && concurrently -c auto -n base,react,preact,vue,svelte \"vite build --mode base\" \"vite build --mode react\" \"vite build --mode preact\" \"vite build --mode vue\" \"vite build --mode svelte\"",
42
+ "build": "epdf-build",
80
43
  "clean": "rimraf dist",
81
- "lint": "eslint src --color",
82
- "lint:fix": "eslint src --color --fix"
44
+ "typecheck": "tsc -p tsconfig.json --noEmit",
45
+ "test": "vitest run"
83
46
  }
84
47
  }
@@ -1,33 +0,0 @@
1
- import { Action } from '@embedpdf/core';
2
- import { FormDocumentState } from './types';
3
- export declare const INIT_FORM_STATE = "FORM/INIT_STATE";
4
- export declare const CLEANUP_FORM_STATE = "FORM/CLEANUP_STATE";
5
- export declare const SELECT_FIELD = "FORM/SELECT_FIELD";
6
- export declare const DESELECT_FIELD = "FORM/DESELECT_FIELD";
7
- export interface InitFormStateAction extends Action {
8
- type: typeof INIT_FORM_STATE;
9
- payload: {
10
- documentId: string;
11
- state: FormDocumentState;
12
- };
13
- }
14
- export interface CleanupFormStateAction extends Action {
15
- type: typeof CLEANUP_FORM_STATE;
16
- payload: string;
17
- }
18
- export interface SelectFieldAction extends Action {
19
- type: typeof SELECT_FIELD;
20
- payload: {
21
- documentId: string;
22
- annotationId: string;
23
- };
24
- }
25
- export interface DeselectFieldAction extends Action {
26
- type: typeof DESELECT_FIELD;
27
- payload: string;
28
- }
29
- export type FormAction = InitFormStateAction | CleanupFormStateAction | SelectFieldAction | DeselectFieldAction;
30
- export declare function initFormState(documentId: string, state: FormDocumentState): InitFormStateAction;
31
- export declare function cleanupFormState(documentId: string): CleanupFormStateAction;
32
- export declare function selectField(documentId: string, annotationId: string): SelectFieldAction;
33
- export declare function deselectField(documentId: string): DeselectFieldAction;
@@ -1,59 +0,0 @@
1
- import { BasePlugin, PluginRegistry } from '@embedpdf/core';
2
- import { FieldGroupEntry, FormCapability, FormPluginConfig, FormState } from './types';
3
- import { FormAction } from './actions';
4
- export declare class FormPlugin extends BasePlugin<FormPluginConfig, FormCapability, FormState, FormAction> {
5
- static readonly id: "form";
6
- private readonly FORM_HISTORY_TOPIC;
7
- private annotation;
8
- private history;
9
- private readonly state$;
10
- private readonly fieldValueChange$;
11
- private readonly formReady$;
12
- /** Per-document logical field index: documentId → (fieldKey → FieldGroupEntry[]) */
13
- private readonly fieldGroupIndex;
14
- /** Per-document name-based index: documentId → (fieldName → FieldGroupEntry[]) */
15
- private readonly fieldNameIndex;
16
- /** Per-document tab-order sorted widget list: documentId → FieldGroupEntry[] */
17
- private readonly orderedFieldIndex;
18
- /** IDs currently being propagated to siblings; prevents recursive loops */
19
- private readonly propagationInProgress;
20
- constructor(id: string, registry: PluginRegistry, _config: FormPluginConfig);
21
- initialize(): Promise<void>;
22
- protected onDocumentLoadingStarted(documentId: string): void;
23
- protected onDocumentClosed(documentId: string): void;
24
- onStoreUpdated(prev: FormState, next: FormState): void;
25
- protected buildCapability(): FormCapability;
26
- private createFormScope;
27
- private handleAnnotationEvent;
28
- private propagateFieldLevelChanges;
29
- private buildFieldGroupIndex;
30
- private getDocumentState;
31
- private getDocIndex;
32
- private getFieldKey;
33
- private resolveWidgetAnnotation;
34
- getFieldGroup(annotationId: string, documentId?: string): FieldGroupEntry[];
35
- getFieldSiblings(annotationId: string, documentId?: string): FieldGroupEntry[];
36
- private getFormValuesMethod;
37
- private getFormFieldsMethod;
38
- private setFormValuesMethod;
39
- private buildImportField;
40
- private isToggleField;
41
- private shouldRegenerateWidgetAppearances;
42
- private getFieldBatchTarget;
43
- private readFieldWidgets;
44
- private syncFieldBatch;
45
- private resolveWidgetPage;
46
- private getPageFormAnnoWidgets;
47
- private setFormFieldValues;
48
- private findConflictingFieldGroups;
49
- private renameFieldMethod;
50
- private shareFieldMethod;
51
- private selectFieldMethod;
52
- private deselectFieldMethod;
53
- private getSelectedFieldId;
54
- private selectNextFieldMethod;
55
- private selectPreviousFieldMethod;
56
- private activateFieldMethod;
57
- private renderWidget;
58
- destroy(): Promise<void>;
59
- }
@@ -1,3 +0,0 @@
1
- import { PdfWidgetAnnoObject } from '@embedpdf/models';
2
- import { HandlerFactory } from '@embedpdf/plugin-annotation';
3
- export declare const checkboxHandlerFactory: HandlerFactory<PdfWidgetAnnoObject>;
@@ -1,3 +0,0 @@
1
- import { PdfWidgetAnnoObject } from '@embedpdf/models';
2
- import { HandlerFactory } from '@embedpdf/plugin-annotation';
3
- export declare const comboboxHandlerFactory: HandlerFactory<PdfWidgetAnnoObject>;
@@ -1,5 +0,0 @@
1
- export { textFieldHandlerFactory } from './text-field.handler';
2
- export { checkboxHandlerFactory } from './checkbox.handler';
3
- export { radioButtonHandlerFactory } from './radio-button.handler';
4
- export { comboboxHandlerFactory } from './combobox.handler';
5
- export { listboxHandlerFactory } from './listbox.handler';
@@ -1,3 +0,0 @@
1
- import { PdfWidgetAnnoObject } from '@embedpdf/models';
2
- import { HandlerFactory } from '@embedpdf/plugin-annotation';
3
- export declare const listboxHandlerFactory: HandlerFactory<PdfWidgetAnnoObject>;
@@ -1,3 +0,0 @@
1
- import { PdfWidgetAnnoObject } from '@embedpdf/models';
2
- import { HandlerFactory } from '@embedpdf/plugin-annotation';
3
- export declare const radioButtonHandlerFactory: HandlerFactory<PdfWidgetAnnoObject>;
@@ -1,3 +0,0 @@
1
- import { PdfWidgetAnnoObject } from '@embedpdf/models';
2
- import { HandlerFactory } from '@embedpdf/plugin-annotation';
3
- export declare const textFieldHandlerFactory: HandlerFactory<PdfWidgetAnnoObject>;
@@ -1,10 +0,0 @@
1
- import { PluginPackage } from '@embedpdf/core';
2
- import { FormPluginConfig, FormState } from './types';
3
- import { FormPlugin } from './form-plugin';
4
- import { FormAction } from './actions';
5
- export declare const FormPluginPackage: PluginPackage<FormPlugin, FormPluginConfig, FormState, FormAction>;
6
- export * from './form-plugin';
7
- export * from './types';
8
- export * from './manifest';
9
- export * from './tools';
10
- export { initialState, initialDocumentState } from './reducer';
@@ -1,4 +0,0 @@
1
- import { PluginManifest } from '@embedpdf/core';
2
- import { FormPluginConfig } from './types';
3
- export declare const FORM_PLUGIN_ID = "form";
4
- export declare const manifest: PluginManifest<FormPluginConfig>;
@@ -1,6 +0,0 @@
1
- import { Reducer } from '@embedpdf/core';
2
- import { FormDocumentState, FormState } from './types';
3
- import { FormAction } from './actions';
4
- export declare const initialDocumentState: FormDocumentState;
5
- export declare const initialState: FormState;
6
- export declare const reducer: Reducer<FormState, FormAction>;