@signiphi/pdf-signer 0.2.0-beta.2 → 0.2.0-beta.21

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 (197) hide show
  1. package/assets/viewer.html +1 -5
  2. package/dist/components/index.js +2746 -901
  3. package/dist/components/index.js.map +1 -1
  4. package/dist/components/index.mjs +2513 -669
  5. package/dist/components/index.mjs.map +1 -1
  6. package/dist/core/index.js +420 -20
  7. package/dist/core/index.js.map +1 -1
  8. package/dist/core/index.mjs +420 -20
  9. package/dist/core/index.mjs.map +1 -1
  10. package/dist/hooks/index.js +506 -211
  11. package/dist/hooks/index.js.map +1 -1
  12. package/dist/hooks/index.mjs +507 -212
  13. package/dist/hooks/index.mjs.map +1 -1
  14. package/dist/index.css +214 -191
  15. package/dist/index.css.map +1 -1
  16. package/dist/index.js +3019 -893
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +2762 -653
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/styles/index.css +202 -172
  21. package/dist/types/index.js.map +1 -1
  22. package/dist/types/index.mjs.map +1 -1
  23. package/dist/utils/index.js +792 -147
  24. package/dist/utils/index.js.map +1 -1
  25. package/dist/utils/index.mjs +777 -148
  26. package/dist/utils/index.mjs.map +1 -1
  27. package/package.json +2 -2
  28. package/scripts/copy-utils.js +14 -3
  29. package/src/styles/index.css +33 -3
  30. package/dist/__tests__/helpers/fixtures.d.ts +0 -43
  31. package/dist/__tests__/helpers/fixtures.d.ts.map +0 -1
  32. package/dist/__tests__/helpers/mocks.d.ts +0 -333
  33. package/dist/__tests__/helpers/mocks.d.ts.map +0 -1
  34. package/dist/__tests__/setup.d.ts +0 -6
  35. package/dist/__tests__/setup.d.ts.map +0 -1
  36. package/dist/components/AcknowledgementModal.d.ts +0 -21
  37. package/dist/components/AcknowledgementModal.d.ts.map +0 -1
  38. package/dist/components/AcknowledgementsSidebar.d.ts +0 -22
  39. package/dist/components/AcknowledgementsSidebar.d.ts.map +0 -1
  40. package/dist/components/AttachmentUpload.d.ts +0 -17
  41. package/dist/components/AttachmentUpload.d.ts.map +0 -1
  42. package/dist/components/EditableFieldsPanel.d.ts +0 -30
  43. package/dist/components/EditableFieldsPanel.d.ts.map +0 -1
  44. package/dist/components/ErrorBoundary.d.ts +0 -67
  45. package/dist/components/ErrorBoundary.d.ts.map +0 -1
  46. package/dist/components/FormFieldsView.d.ts +0 -46
  47. package/dist/components/FormFieldsView.d.ts.map +0 -1
  48. package/dist/components/InitialsModal.d.ts +0 -16
  49. package/dist/components/InitialsModal.d.ts.map +0 -1
  50. package/dist/components/PdfViewerStyled.d.ts +0 -16
  51. package/dist/components/PdfViewerStyled.d.ts.map +0 -1
  52. package/dist/components/PoweredBySigniphi.d.ts +0 -11
  53. package/dist/components/PoweredBySigniphi.d.ts.map +0 -1
  54. package/dist/components/RequiredFieldNavigation.d.ts +0 -18
  55. package/dist/components/RequiredFieldNavigation.d.ts.map +0 -1
  56. package/dist/components/SignatureCanvas.d.ts +0 -12
  57. package/dist/components/SignatureCanvas.d.ts.map +0 -1
  58. package/dist/components/SignatureInitialsBox.d.ts +0 -25
  59. package/dist/components/SignatureInitialsBox.d.ts.map +0 -1
  60. package/dist/components/SignatureModal.d.ts +0 -21
  61. package/dist/components/SignatureModal.d.ts.map +0 -1
  62. package/dist/components/SigningInstructions.d.ts +0 -12
  63. package/dist/components/SigningInstructions.d.ts.map +0 -1
  64. package/dist/components/SubmissionForm.d.ts +0 -52
  65. package/dist/components/SubmissionForm.d.ts.map +0 -1
  66. package/dist/components/UnacknowledgedFieldsModal.d.ts +0 -23
  67. package/dist/components/UnacknowledgedFieldsModal.d.ts.map +0 -1
  68. package/dist/components/ViewToggleToolbar.d.ts +0 -38
  69. package/dist/components/ViewToggleToolbar.d.ts.map +0 -1
  70. package/dist/components/form-fields/CheckboxRenderer.d.ts +0 -10
  71. package/dist/components/form-fields/CheckboxRenderer.d.ts.map +0 -1
  72. package/dist/components/form-fields/DateFieldRenderer.d.ts +0 -14
  73. package/dist/components/form-fields/DateFieldRenderer.d.ts.map +0 -1
  74. package/dist/components/form-fields/DropdownRenderer.d.ts +0 -14
  75. package/dist/components/form-fields/DropdownRenderer.d.ts.map +0 -1
  76. package/dist/components/form-fields/FormFieldRenderer.d.ts +0 -22
  77. package/dist/components/form-fields/FormFieldRenderer.d.ts.map +0 -1
  78. package/dist/components/form-fields/InitialsFieldRenderer.d.ts +0 -16
  79. package/dist/components/form-fields/InitialsFieldRenderer.d.ts.map +0 -1
  80. package/dist/components/form-fields/RadioGroupRenderer.d.ts +0 -10
  81. package/dist/components/form-fields/RadioGroupRenderer.d.ts.map +0 -1
  82. package/dist/components/form-fields/SignatureFieldRenderer.d.ts +0 -16
  83. package/dist/components/form-fields/SignatureFieldRenderer.d.ts.map +0 -1
  84. package/dist/components/form-fields/TextFieldRenderer.d.ts +0 -14
  85. package/dist/components/form-fields/TextFieldRenderer.d.ts.map +0 -1
  86. package/dist/components/form-fields/TextLabelRenderer.d.ts +0 -14
  87. package/dist/components/form-fields/TextLabelRenderer.d.ts.map +0 -1
  88. package/dist/components/form-fields/index.d.ts +0 -14
  89. package/dist/components/form-fields/index.d.ts.map +0 -1
  90. package/dist/components/index.d.ts +0 -17
  91. package/dist/components/index.d.ts.map +0 -1
  92. package/dist/core/PdfViewerCore.d.ts +0 -19
  93. package/dist/core/PdfViewerCore.d.ts.map +0 -1
  94. package/dist/core/SignatureCaptureCore.d.ts +0 -37
  95. package/dist/core/SignatureCaptureCore.d.ts.map +0 -1
  96. package/dist/core/index.d.ts +0 -3
  97. package/dist/core/index.d.ts.map +0 -1
  98. package/dist/hooks/index.d.ts +0 -9
  99. package/dist/hooks/index.d.ts.map +0 -1
  100. package/dist/hooks/useAcknowledgements.d.ts +0 -50
  101. package/dist/hooks/useAcknowledgements.d.ts.map +0 -1
  102. package/dist/hooks/useAttachments.d.ts +0 -25
  103. package/dist/hooks/useAttachments.d.ts.map +0 -1
  104. package/dist/hooks/useFieldFiltering.d.ts +0 -29
  105. package/dist/hooks/useFieldFiltering.d.ts.map +0 -1
  106. package/dist/hooks/useFormFields.d.ts +0 -23
  107. package/dist/hooks/useFormFields.d.ts.map +0 -1
  108. package/dist/hooks/useMultiSignerContext.d.ts +0 -25
  109. package/dist/hooks/useMultiSignerContext.d.ts.map +0 -1
  110. package/dist/hooks/usePdfViewer.d.ts +0 -52
  111. package/dist/hooks/usePdfViewer.d.ts.map +0 -1
  112. package/dist/hooks/useRequiredFieldNavigation.d.ts +0 -16
  113. package/dist/hooks/useRequiredFieldNavigation.d.ts.map +0 -1
  114. package/dist/hooks/useSignatureCapture.d.ts +0 -17
  115. package/dist/hooks/useSignatureCapture.d.ts.map +0 -1
  116. package/dist/hooks/useSignatures.d.ts +0 -29
  117. package/dist/hooks/useSignatures.d.ts.map +0 -1
  118. package/dist/index.d.ts +0 -17
  119. package/dist/index.d.ts.map +0 -1
  120. package/dist/integrations/index.d.ts +0 -6
  121. package/dist/integrations/index.d.ts.map +0 -1
  122. package/dist/integrations/next-config.d.ts +0 -46
  123. package/dist/integrations/next-config.d.ts.map +0 -1
  124. package/dist/integrations/vite-plugin.d.ts +0 -48
  125. package/dist/integrations/vite-plugin.d.ts.map +0 -1
  126. package/dist/lib/index.d.ts +0 -3
  127. package/dist/lib/index.d.ts.map +0 -1
  128. package/dist/lib/ui/accordion.d.ts +0 -8
  129. package/dist/lib/ui/accordion.d.ts.map +0 -1
  130. package/dist/lib/ui/alert.d.ts +0 -9
  131. package/dist/lib/ui/alert.d.ts.map +0 -1
  132. package/dist/lib/ui/button.d.ts +0 -12
  133. package/dist/lib/ui/button.d.ts.map +0 -1
  134. package/dist/lib/ui/calendar.d.ts +0 -10
  135. package/dist/lib/ui/calendar.d.ts.map +0 -1
  136. package/dist/lib/ui/card.d.ts +0 -9
  137. package/dist/lib/ui/card.d.ts.map +0 -1
  138. package/dist/lib/ui/checkbox.d.ts +0 -5
  139. package/dist/lib/ui/checkbox.d.ts.map +0 -1
  140. package/dist/lib/ui/dialog.d.ts +0 -20
  141. package/dist/lib/ui/dialog.d.ts.map +0 -1
  142. package/dist/lib/ui/index.d.ts +0 -13
  143. package/dist/lib/ui/index.d.ts.map +0 -1
  144. package/dist/lib/ui/input.d.ts +0 -6
  145. package/dist/lib/ui/input.d.ts.map +0 -1
  146. package/dist/lib/ui/label.d.ts +0 -6
  147. package/dist/lib/ui/label.d.ts.map +0 -1
  148. package/dist/lib/ui/popover.d.ts +0 -7
  149. package/dist/lib/ui/popover.d.ts.map +0 -1
  150. package/dist/lib/ui/radio-group.d.ts +0 -6
  151. package/dist/lib/ui/radio-group.d.ts.map +0 -1
  152. package/dist/lib/ui/select.d.ts +0 -14
  153. package/dist/lib/ui/select.d.ts.map +0 -1
  154. package/dist/lib/utils.d.ts +0 -7
  155. package/dist/lib/utils.d.ts.map +0 -1
  156. package/dist/types/index.d.ts +0 -278
  157. package/dist/types/index.d.ts.map +0 -1
  158. package/dist/utils/attachment-validators.d.ts +0 -118
  159. package/dist/utils/attachment-validators.d.ts.map +0 -1
  160. package/dist/utils/audit-trail.d.ts +0 -27
  161. package/dist/utils/audit-trail.d.ts.map +0 -1
  162. package/dist/utils/date-validation.d.ts +0 -30
  163. package/dist/utils/date-validation.d.ts.map +0 -1
  164. package/dist/utils/errors.d.ts +0 -106
  165. package/dist/utils/errors.d.ts.map +0 -1
  166. package/dist/utils/field-extraction.d.ts +0 -36
  167. package/dist/utils/field-extraction.d.ts.map +0 -1
  168. package/dist/utils/field-visibility.d.ts +0 -104
  169. package/dist/utils/field-visibility.d.ts.map +0 -1
  170. package/dist/utils/index.d.ts +0 -18
  171. package/dist/utils/index.d.ts.map +0 -1
  172. package/dist/utils/logger.d.ts +0 -16
  173. package/dist/utils/logger.d.ts.map +0 -1
  174. package/dist/utils/pdf-field-type-helpers.d.ts +0 -78
  175. package/dist/utils/pdf-field-type-helpers.d.ts.map +0 -1
  176. package/dist/utils/pdf-helpers.d.ts +0 -38
  177. package/dist/utils/pdf-helpers.d.ts.map +0 -1
  178. package/dist/utils/pdf-lib-loader.d.ts +0 -45
  179. package/dist/utils/pdf-lib-loader.d.ts.map +0 -1
  180. package/dist/utils/pdf-manipulation.d.ts +0 -93
  181. package/dist/utils/pdf-manipulation.d.ts.map +0 -1
  182. package/dist/utils/pdf-metadata.d.ts +0 -41
  183. package/dist/utils/pdf-metadata.d.ts.map +0 -1
  184. package/dist/utils/pdf-validators.d.ts +0 -149
  185. package/dist/utils/pdf-validators.d.ts.map +0 -1
  186. package/dist/utils/pdf-viewer-filter.d.ts +0 -35
  187. package/dist/utils/pdf-viewer-filter.d.ts.map +0 -1
  188. package/dist/utils/pdf-widget-helpers.d.ts +0 -98
  189. package/dist/utils/pdf-widget-helpers.d.ts.map +0 -1
  190. package/dist/utils/pdfjs-config.d.ts +0 -56
  191. package/dist/utils/pdfjs-config.d.ts.map +0 -1
  192. package/dist/utils/pdfjs-version-check.d.ts +0 -28
  193. package/dist/utils/pdfjs-version-check.d.ts.map +0 -1
  194. package/dist/utils/performance-monitor.d.ts +0 -172
  195. package/dist/utils/performance-monitor.d.ts.map +0 -1
  196. package/dist/utils/tracking.d.ts +0 -89
  197. package/dist/utils/tracking.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signiphi/pdf-signer",
3
- "version": "0.2.0-beta.2",
3
+ "version": "0.2.0-beta.21",
4
4
  "description": "Flexible React components for PDF viewing, form filling, and signature capture",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -74,7 +74,7 @@
74
74
  "postinstall": "node scripts/postinstall.js",
75
75
  "prepare": "node scripts/postinstall.js || true",
76
76
  "dev": "tsup --watch",
77
- "build": "tsup && (tsc --emitDeclarationOnly || true) && node -e \"require('fs').mkdirSync('dist/styles', {recursive: true})\" && postcss src/styles/index.css -o dist/styles/index.css",
77
+ "build": "tsup && node -e \"require('fs').mkdirSync('dist/styles', {recursive: true})\" && postcss src/styles/index.css -o dist/styles/index.css",
78
78
  "build:analyze": "pnpm build && node scripts/analyze-bundle.js",
79
79
  "clean": "rm -rf dist",
80
80
  "lint": "eslint src --ext .ts,.tsx",
@@ -26,10 +26,15 @@ function getPdfjsVersion() {
26
26
  */
27
27
  function getSavedVersion(targetDir) {
28
28
  try {
29
- const versionFile = path.join(targetDir, '.version');
29
+ // Check version.txt first (new), then .version (legacy) for backwards compat
30
+ const versionFile = path.join(targetDir, 'version.txt');
31
+ const legacyVersionFile = path.join(targetDir, '.version');
30
32
  if (fs.existsSync(versionFile)) {
31
33
  return fs.readFileSync(versionFile, 'utf8').trim();
32
34
  }
35
+ if (fs.existsSync(legacyVersionFile)) {
36
+ return fs.readFileSync(legacyVersionFile, 'utf8').trim();
37
+ }
33
38
  } catch (error) {
34
39
  // Ignore
35
40
  }
@@ -208,11 +213,17 @@ function copyPdfJsFiles(targetDir, force = false) {
208
213
  throw new Error('Custom viewer.html template not found in package assets');
209
214
  }
210
215
 
211
- // Write version file
216
+ // Write version file (use version.txt — dotfiles are blocked by some servers like Next.js)
212
217
  const currentVersion = getPdfjsVersion();
213
- const versionFile = path.join(targetDir, '.version');
218
+ const versionFile = path.join(targetDir, 'version.txt');
214
219
  fs.writeFileSync(versionFile, currentVersion, 'utf8');
215
220
 
221
+ // Remove legacy .version file if present
222
+ const legacyVersionFile = path.join(targetDir, '.version');
223
+ if (fs.existsSync(legacyVersionFile)) {
224
+ fs.unlinkSync(legacyVersionFile);
225
+ }
226
+
216
227
  return true; // Copy successful
217
228
  }
218
229
 
@@ -32,6 +32,15 @@
32
32
 
33
33
  /* Define variables in :root with unique --sps- prefix to avoid conflicts */
34
34
  :root {
35
+ /* Z-index scale for proper layering */
36
+ --sps-z-dropdown: 50;
37
+ --sps-z-sticky: 100;
38
+ --sps-z-fixed: 500;
39
+ --sps-z-modal-backdrop: 9998;
40
+ --sps-z-modal: 9999;
41
+ --sps-z-popover: 10000;
42
+ --sps-z-tooltip: 10001;
43
+
35
44
  /* Core Colors - DockMaster Design System (OKLCH) - with unique prefix */
36
45
  --sps-color-dark-blue: oklch(0.23 0.12 273.81); /* #161848 */
37
46
  --sps-color-light-blue: oklch(0.862 0.038 233.28); /* #BDD9E8 */
@@ -137,7 +146,7 @@
137
146
 
138
147
  /* Apply scoped colors */
139
148
  color: var(--sps-foreground);
140
- background: var(--sps-background);
149
+ background: transparent;
141
150
  line-height: 1.5;
142
151
 
143
152
  /* Smooth theme transitions */
@@ -176,7 +185,7 @@
176
185
  [data-radix-dialog-overlay] {
177
186
  position: fixed !important;
178
187
  inset: 0 !important;
179
- z-index: 99998 !important;
188
+ z-index: var(--sps-z-modal-backdrop) !important;
180
189
  background-color: rgba(0, 0, 0, 0.5) !important;
181
190
  }
182
191
 
@@ -186,7 +195,7 @@
186
195
  left: 50% !important;
187
196
  top: 50% !important;
188
197
  transform: translate(-50%, -50%) !important;
189
- z-index: 99999 !important;
198
+ z-index: var(--sps-z-modal) !important;
190
199
  max-height: 90vh !important;
191
200
  overflow-y: auto !important;
192
201
  }
@@ -209,6 +218,27 @@
209
218
  box-sizing: border-box;
210
219
  }
211
220
 
221
+ /* Calendar popup - positioned above modals */
222
+ .signiphi-pdf-calendar-popup {
223
+ position: fixed !important;
224
+ z-index: var(--sps-z-popover) !important;
225
+ /* top and left are set dynamically via JS */
226
+ }
227
+
228
+ /* Select dropdowns - positioned above calendar and other popovers */
229
+ /* These render in portals and need to be above the calendar */
230
+ /* Using a reasonable z-index hierarchy: calendar at 10000, dropdowns at 10001 */
231
+ [data-radix-select-content] {
232
+ position: fixed !important;
233
+ z-index: 10001 !important;
234
+ }
235
+
236
+ .signiphi-pdf-signer [data-radix-select-content],
237
+ .signiphi-pdf-signer[data-radix-select-content] {
238
+ position: fixed !important;
239
+ z-index: 10001 !important;
240
+ }
241
+
212
242
  [data-radix-popper-content-wrapper] *,
213
243
  [data-radix-popover-content] *,
214
244
  [data-radix-select-content] * {
@@ -1,43 +0,0 @@
1
- /**
2
- * Test Fixtures
3
- * Sample data for testing hooks
4
- */
5
- import type { EsignFormField, Signer, Attachment, MultiSignerContext } from '../../types';
6
- export declare const validPdfBytes: Uint8Array<ArrayBuffer>;
7
- export declare const invalidPdfBytes: Uint8Array<ArrayBuffer>;
8
- export declare const sampleTextField: EsignFormField;
9
- export declare const sampleSignatureField: EsignFormField;
10
- export declare const sampleInitialsField: EsignFormField;
11
- export declare const sampleCheckboxField: EsignFormField;
12
- export declare const sampleRadioField: EsignFormField;
13
- export declare const sampleDropdownField: EsignFormField;
14
- export declare const sampleDateField: EsignFormField;
15
- export declare const sampleFormFields: EsignFormField[];
16
- export declare const primarySignerField: EsignFormField;
17
- export declare const secondarySignerField: EsignFormField;
18
- export declare const finalSignerField: EsignFormField;
19
- export declare const recipientsField: EsignFormField;
20
- export declare const signersField: EsignFormField;
21
- export declare const primarySigner: Signer;
22
- export declare const secondarySigner: Signer;
23
- export declare const finalSigner: Signer;
24
- export declare const singleSignerContext: MultiSignerContext;
25
- export declare const primarySignerContext: MultiSignerContext;
26
- export declare const secondarySignerContext: MultiSignerContext;
27
- export declare const finalSignerContext: MultiSignerContext;
28
- export declare const sampleAttachment: Attachment;
29
- export declare const sampleImageAttachment: Attachment;
30
- export declare const sampleSignatureDataUrl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
31
- export declare const sampleInitialsDataUrl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==";
32
- export declare const sampleFieldValues: {
33
- firstName: string;
34
- lastName: string;
35
- email: string;
36
- agree: string;
37
- choice: string;
38
- dropdown: string;
39
- date: string;
40
- };
41
- export declare const samplePdfUrl = "https://example.com/sample.pdf";
42
- export declare const sampleLocalPdfPath = "/path/to/sample.pdf";
43
- //# sourceMappingURL=fixtures.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/__tests__/helpers/fixtures.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGzG,eAAO,MAAM,aAAa,yBAKxB,CAAC;AAEH,eAAO,MAAM,eAAe,yBAA2C,CAAC;AAGxE,eAAO,MAAM,eAAe,EAAE,cAQ7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,cAQlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAQjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAQjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,cAS9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cASjC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAQ7B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAQ5C,CAAC;AAGF,eAAO,MAAM,kBAAkB,EAAE,cAKhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,cAMlC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,cAM9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAK7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,cAK1B,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,MAM3B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAM7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAMzB,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,kBAMjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,kBAMlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBAMpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,kBAMhC,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,UAO9B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAOnC,CAAC;AAGF,eAAO,MAAM,sBAAsB,2HAA2H,CAAC;AAE/J,eAAO,MAAM,qBAAqB,2HAA2H,CAAC;AAG9J,eAAO,MAAM,iBAAiB;;;;;;;;CAQ7B,CAAC;AAGF,eAAO,MAAM,YAAY,mCAAmC,CAAC;AAC7D,eAAO,MAAM,kBAAkB,wBAAwB,CAAC"}
@@ -1,333 +0,0 @@
1
- /**
2
- * Test Mocks
3
- * Mock implementations for PDF.js and pdf-lib
4
- */
5
- export declare const mockPdfJsPage: {
6
- getViewport: import("vitest").Mock<[], {
7
- width: number;
8
- height: number;
9
- scale: number;
10
- }>;
11
- render: import("vitest").Mock<[], {
12
- promise: Promise<void>;
13
- }>;
14
- getAnnotations: import("vitest").Mock<[], Promise<never[]>>;
15
- getTextContent: import("vitest").Mock<[], Promise<{
16
- items: never[];
17
- }>>;
18
- };
19
- export declare const mockPdfJsDocument: {
20
- numPages: number;
21
- getPage: import("vitest").Mock<[_pageNum: number], Promise<{
22
- getViewport: import("vitest").Mock<[], {
23
- width: number;
24
- height: number;
25
- scale: number;
26
- }>;
27
- render: import("vitest").Mock<[], {
28
- promise: Promise<void>;
29
- }>;
30
- getAnnotations: import("vitest").Mock<[], Promise<never[]>>;
31
- getTextContent: import("vitest").Mock<[], Promise<{
32
- items: never[];
33
- }>>;
34
- }>>;
35
- getMetadata: import("vitest").Mock<[], Promise<{
36
- info: {};
37
- metadata: null;
38
- }>>;
39
- getData: import("vitest").Mock<[], Promise<Uint8Array<ArrayBuffer>>>;
40
- destroy: import("vitest").Mock<any, any>;
41
- };
42
- export declare const mockPdfJsLoadingTask: {
43
- promise: Promise<{
44
- numPages: number;
45
- getPage: import("vitest").Mock<[_pageNum: number], Promise<{
46
- getViewport: import("vitest").Mock<[], {
47
- width: number;
48
- height: number;
49
- scale: number;
50
- }>;
51
- render: import("vitest").Mock<[], {
52
- promise: Promise<void>;
53
- }>;
54
- getAnnotations: import("vitest").Mock<[], Promise<never[]>>;
55
- getTextContent: import("vitest").Mock<[], Promise<{
56
- items: never[];
57
- }>>;
58
- }>>;
59
- getMetadata: import("vitest").Mock<[], Promise<{
60
- info: {};
61
- metadata: null;
62
- }>>;
63
- getData: import("vitest").Mock<[], Promise<Uint8Array<ArrayBuffer>>>;
64
- destroy: import("vitest").Mock<any, any>;
65
- }>;
66
- destroy: import("vitest").Mock<any, any>;
67
- };
68
- export declare const mockGetDocument: import("vitest").Mock<[], {
69
- promise: Promise<{
70
- numPages: number;
71
- getPage: import("vitest").Mock<[_pageNum: number], Promise<{
72
- getViewport: import("vitest").Mock<[], {
73
- width: number;
74
- height: number;
75
- scale: number;
76
- }>;
77
- render: import("vitest").Mock<[], {
78
- promise: Promise<void>;
79
- }>;
80
- getAnnotations: import("vitest").Mock<[], Promise<never[]>>;
81
- getTextContent: import("vitest").Mock<[], Promise<{
82
- items: never[];
83
- }>>;
84
- }>>;
85
- getMetadata: import("vitest").Mock<[], Promise<{
86
- info: {};
87
- metadata: null;
88
- }>>;
89
- getData: import("vitest").Mock<[], Promise<Uint8Array<ArrayBuffer>>>;
90
- destroy: import("vitest").Mock<any, any>;
91
- }>;
92
- destroy: import("vitest").Mock<any, any>;
93
- }>;
94
- export declare const mockPdfLibField: {
95
- getName: import("vitest").Mock<[], string>;
96
- isRequired: import("vitest").Mock<[], boolean>;
97
- getText: import("vitest").Mock<[], string>;
98
- setValue: import("vitest").Mock<any, any>;
99
- };
100
- export declare const mockPdfLibForm: {
101
- getFields: import("vitest").Mock<[], {
102
- getName: import("vitest").Mock<[], string>;
103
- isRequired: import("vitest").Mock<[], boolean>;
104
- getText: import("vitest").Mock<[], string>;
105
- setValue: import("vitest").Mock<any, any>;
106
- }[]>;
107
- getField: import("vitest").Mock<[], {
108
- getName: import("vitest").Mock<[], string>;
109
- isRequired: import("vitest").Mock<[], boolean>;
110
- getText: import("vitest").Mock<[], string>;
111
- setValue: import("vitest").Mock<any, any>;
112
- }>;
113
- getFieldMaybe: import("vitest").Mock<[], {
114
- getName: import("vitest").Mock<[], string>;
115
- isRequired: import("vitest").Mock<[], boolean>;
116
- getText: import("vitest").Mock<[], string>;
117
- setValue: import("vitest").Mock<any, any>;
118
- }>;
119
- getTextField: import("vitest").Mock<[], {
120
- getName: import("vitest").Mock<[], string>;
121
- isRequired: import("vitest").Mock<[], boolean>;
122
- getText: import("vitest").Mock<[], string>;
123
- setValue: import("vitest").Mock<any, any>;
124
- }>;
125
- getCheckBox: import("vitest").Mock<[], {
126
- getName: import("vitest").Mock<[], string>;
127
- isRequired: import("vitest").Mock<[], boolean>;
128
- getText: import("vitest").Mock<[], string>;
129
- setValue: import("vitest").Mock<any, any>;
130
- }>;
131
- getRadioGroup: import("vitest").Mock<[], {
132
- getName: import("vitest").Mock<[], string>;
133
- isRequired: import("vitest").Mock<[], boolean>;
134
- getText: import("vitest").Mock<[], string>;
135
- setValue: import("vitest").Mock<any, any>;
136
- }>;
137
- getDropdown: import("vitest").Mock<[], {
138
- getName: import("vitest").Mock<[], string>;
139
- isRequired: import("vitest").Mock<[], boolean>;
140
- getText: import("vitest").Mock<[], string>;
141
- setValue: import("vitest").Mock<any, any>;
142
- }>;
143
- removeField: import("vitest").Mock<any, any>;
144
- flatten: import("vitest").Mock<any, any>;
145
- updateFieldAppearances: import("vitest").Mock<any, any>;
146
- };
147
- export declare const mockPdfLibPage: {
148
- getWidth: import("vitest").Mock<[], number>;
149
- getHeight: import("vitest").Mock<[], number>;
150
- getSize: import("vitest").Mock<[], {
151
- width: number;
152
- height: number;
153
- }>;
154
- drawText: import("vitest").Mock<any, any>;
155
- drawRectangle: import("vitest").Mock<any, any>;
156
- drawImage: import("vitest").Mock<any, any>;
157
- };
158
- export declare const mockPdfLibDocument: {
159
- getPages: import("vitest").Mock<[], {
160
- getWidth: import("vitest").Mock<[], number>;
161
- getHeight: import("vitest").Mock<[], number>;
162
- getSize: import("vitest").Mock<[], {
163
- width: number;
164
- height: number;
165
- }>;
166
- drawText: import("vitest").Mock<any, any>;
167
- drawRectangle: import("vitest").Mock<any, any>;
168
- drawImage: import("vitest").Mock<any, any>;
169
- }[]>;
170
- getPage: import("vitest").Mock<[_index: number], {
171
- getWidth: import("vitest").Mock<[], number>;
172
- getHeight: import("vitest").Mock<[], number>;
173
- getSize: import("vitest").Mock<[], {
174
- width: number;
175
- height: number;
176
- }>;
177
- drawText: import("vitest").Mock<any, any>;
178
- drawRectangle: import("vitest").Mock<any, any>;
179
- drawImage: import("vitest").Mock<any, any>;
180
- }>;
181
- getPageCount: import("vitest").Mock<[], number>;
182
- getForm: import("vitest").Mock<[], {
183
- getFields: import("vitest").Mock<[], {
184
- getName: import("vitest").Mock<[], string>;
185
- isRequired: import("vitest").Mock<[], boolean>;
186
- getText: import("vitest").Mock<[], string>;
187
- setValue: import("vitest").Mock<any, any>;
188
- }[]>;
189
- getField: import("vitest").Mock<[], {
190
- getName: import("vitest").Mock<[], string>;
191
- isRequired: import("vitest").Mock<[], boolean>;
192
- getText: import("vitest").Mock<[], string>;
193
- setValue: import("vitest").Mock<any, any>;
194
- }>;
195
- getFieldMaybe: import("vitest").Mock<[], {
196
- getName: import("vitest").Mock<[], string>;
197
- isRequired: import("vitest").Mock<[], boolean>;
198
- getText: import("vitest").Mock<[], string>;
199
- setValue: import("vitest").Mock<any, any>;
200
- }>;
201
- getTextField: import("vitest").Mock<[], {
202
- getName: import("vitest").Mock<[], string>;
203
- isRequired: import("vitest").Mock<[], boolean>;
204
- getText: import("vitest").Mock<[], string>;
205
- setValue: import("vitest").Mock<any, any>;
206
- }>;
207
- getCheckBox: import("vitest").Mock<[], {
208
- getName: import("vitest").Mock<[], string>;
209
- isRequired: import("vitest").Mock<[], boolean>;
210
- getText: import("vitest").Mock<[], string>;
211
- setValue: import("vitest").Mock<any, any>;
212
- }>;
213
- getRadioGroup: import("vitest").Mock<[], {
214
- getName: import("vitest").Mock<[], string>;
215
- isRequired: import("vitest").Mock<[], boolean>;
216
- getText: import("vitest").Mock<[], string>;
217
- setValue: import("vitest").Mock<any, any>;
218
- }>;
219
- getDropdown: import("vitest").Mock<[], {
220
- getName: import("vitest").Mock<[], string>;
221
- isRequired: import("vitest").Mock<[], boolean>;
222
- getText: import("vitest").Mock<[], string>;
223
- setValue: import("vitest").Mock<any, any>;
224
- }>;
225
- removeField: import("vitest").Mock<any, any>;
226
- flatten: import("vitest").Mock<any, any>;
227
- updateFieldAppearances: import("vitest").Mock<any, any>;
228
- }>;
229
- save: import("vitest").Mock<[], Promise<Uint8Array<ArrayBuffer>>>;
230
- embedFont: import("vitest").Mock<[], Promise<{}>>;
231
- embedPng: import("vitest").Mock<[], Promise<{}>>;
232
- embedJpg: import("vitest").Mock<[], Promise<{}>>;
233
- setTitle: import("vitest").Mock<any, any>;
234
- setAuthor: import("vitest").Mock<any, any>;
235
- setSubject: import("vitest").Mock<any, any>;
236
- setKeywords: import("vitest").Mock<any, any>;
237
- setProducer: import("vitest").Mock<any, any>;
238
- setCreator: import("vitest").Mock<any, any>;
239
- setCreationDate: import("vitest").Mock<any, any>;
240
- setModificationDate: import("vitest").Mock<any, any>;
241
- };
242
- export declare const mockPdfLibLoad: import("vitest").Mock<[], Promise<{
243
- getPages: import("vitest").Mock<[], {
244
- getWidth: import("vitest").Mock<[], number>;
245
- getHeight: import("vitest").Mock<[], number>;
246
- getSize: import("vitest").Mock<[], {
247
- width: number;
248
- height: number;
249
- }>;
250
- drawText: import("vitest").Mock<any, any>;
251
- drawRectangle: import("vitest").Mock<any, any>;
252
- drawImage: import("vitest").Mock<any, any>;
253
- }[]>;
254
- getPage: import("vitest").Mock<[_index: number], {
255
- getWidth: import("vitest").Mock<[], number>;
256
- getHeight: import("vitest").Mock<[], number>;
257
- getSize: import("vitest").Mock<[], {
258
- width: number;
259
- height: number;
260
- }>;
261
- drawText: import("vitest").Mock<any, any>;
262
- drawRectangle: import("vitest").Mock<any, any>;
263
- drawImage: import("vitest").Mock<any, any>;
264
- }>;
265
- getPageCount: import("vitest").Mock<[], number>;
266
- getForm: import("vitest").Mock<[], {
267
- getFields: import("vitest").Mock<[], {
268
- getName: import("vitest").Mock<[], string>;
269
- isRequired: import("vitest").Mock<[], boolean>;
270
- getText: import("vitest").Mock<[], string>;
271
- setValue: import("vitest").Mock<any, any>;
272
- }[]>;
273
- getField: import("vitest").Mock<[], {
274
- getName: import("vitest").Mock<[], string>;
275
- isRequired: import("vitest").Mock<[], boolean>;
276
- getText: import("vitest").Mock<[], string>;
277
- setValue: import("vitest").Mock<any, any>;
278
- }>;
279
- getFieldMaybe: import("vitest").Mock<[], {
280
- getName: import("vitest").Mock<[], string>;
281
- isRequired: import("vitest").Mock<[], boolean>;
282
- getText: import("vitest").Mock<[], string>;
283
- setValue: import("vitest").Mock<any, any>;
284
- }>;
285
- getTextField: import("vitest").Mock<[], {
286
- getName: import("vitest").Mock<[], string>;
287
- isRequired: import("vitest").Mock<[], boolean>;
288
- getText: import("vitest").Mock<[], string>;
289
- setValue: import("vitest").Mock<any, any>;
290
- }>;
291
- getCheckBox: import("vitest").Mock<[], {
292
- getName: import("vitest").Mock<[], string>;
293
- isRequired: import("vitest").Mock<[], boolean>;
294
- getText: import("vitest").Mock<[], string>;
295
- setValue: import("vitest").Mock<any, any>;
296
- }>;
297
- getRadioGroup: import("vitest").Mock<[], {
298
- getName: import("vitest").Mock<[], string>;
299
- isRequired: import("vitest").Mock<[], boolean>;
300
- getText: import("vitest").Mock<[], string>;
301
- setValue: import("vitest").Mock<any, any>;
302
- }>;
303
- getDropdown: import("vitest").Mock<[], {
304
- getName: import("vitest").Mock<[], string>;
305
- isRequired: import("vitest").Mock<[], boolean>;
306
- getText: import("vitest").Mock<[], string>;
307
- setValue: import("vitest").Mock<any, any>;
308
- }>;
309
- removeField: import("vitest").Mock<any, any>;
310
- flatten: import("vitest").Mock<any, any>;
311
- updateFieldAppearances: import("vitest").Mock<any, any>;
312
- }>;
313
- save: import("vitest").Mock<[], Promise<Uint8Array<ArrayBuffer>>>;
314
- embedFont: import("vitest").Mock<[], Promise<{}>>;
315
- embedPng: import("vitest").Mock<[], Promise<{}>>;
316
- embedJpg: import("vitest").Mock<[], Promise<{}>>;
317
- setTitle: import("vitest").Mock<any, any>;
318
- setAuthor: import("vitest").Mock<any, any>;
319
- setSubject: import("vitest").Mock<any, any>;
320
- setKeywords: import("vitest").Mock<any, any>;
321
- setProducer: import("vitest").Mock<any, any>;
322
- setCreator: import("vitest").Mock<any, any>;
323
- setCreationDate: import("vitest").Mock<any, any>;
324
- setModificationDate: import("vitest").Mock<any, any>;
325
- }>>;
326
- export declare const mockFetch: import("vitest").Mock<[url: string], Promise<Response>>;
327
- export declare function setupFetchMock(): void;
328
- export declare function resetAllMocks(): void;
329
- export declare function createMockFile(name: string, size: number, type: string, content?: string): File;
330
- export declare function createMockPdfResponse(valid?: boolean): Response;
331
- export declare function waitForAsync(): Promise<unknown>;
332
- export declare function createMockCanvasContext(): any;
333
- //# sourceMappingURL=mocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/__tests__/helpers/mocks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,eAAO,MAAM,aAAa;;;;;;;;;;;;;CASzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;CAM7B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;CAGhC,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;EAAoC,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;CAK3B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW1B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;CAO1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB9B,CAAC;AAGF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAG/E,eAAO,MAAM,SAAS,yDAUpB,CAAC;AAGH,wBAAgB,cAAc,SAE7B;AAGD,wBAAgB,aAAa,SAkB5B;AAGD,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,MAAuB,GAC/B,IAAI,CAMN;AAGD,wBAAgB,qBAAqB,CAAC,KAAK,GAAE,OAAc,GAAG,QAAQ,CAerE;AAGD,wBAAgB,YAAY,qBAE3B;AAGD,wBAAgB,uBAAuB,IAwBhC,GAAG,CACT"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Test Setup File
3
- * Global test configuration for Vitest with React
4
- */
5
- export {};
6
- //# sourceMappingURL=setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/__tests__/setup.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,21 +0,0 @@
1
- import type { EsignFormField } from '../types';
2
- export interface AcknowledgementModalProps {
3
- /** Whether the modal is open */
4
- open: boolean;
5
- /** Callback when modal close is requested */
6
- onOpenChange: (open: boolean) => void;
7
- /** The field with acknowledgements to display */
8
- field: EsignFormField | null;
9
- /** Callback when an acknowledgement item is checked/unchecked */
10
- onAcknowledge: (fieldId: string, ackId: string) => void;
11
- /** Check if an acknowledgement is already acknowledged */
12
- isAcknowledged: (fieldId: string, ackId: string) => boolean;
13
- /** Callback when all acknowledgements are acknowledged */
14
- onComplete?: (fieldId: string) => void;
15
- }
16
- /**
17
- * Modal that displays acknowledgements for a field
18
- * Requires explicit acceptance before allowing field interaction
19
- */
20
- export declare function AcknowledgementModal({ open, onOpenChange, field, onAcknowledge, isAcknowledged, onComplete, }: AcknowledgementModalProps): import("react/jsx-runtime").JSX.Element | null;
21
- //# sourceMappingURL=AcknowledgementModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcknowledgementModal.d.ts","sourceRoot":"","sources":["../../src/components/AcknowledgementModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAe/C,MAAM,WAAW,yBAAyB;IACxC,gCAAgC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,6CAA6C;IAC7C,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,iDAAiD;IACjD,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,iEAAiE;IACjE,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,0DAA0D;IAC1D,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5D,0DAA0D;IAC1D,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,aAAa,EACb,cAAc,EACd,UAAU,GACX,EAAE,yBAAyB,kDAqJ3B"}
@@ -1,22 +0,0 @@
1
- import type { EsignFormField } from '../types';
2
- export interface AcknowledgementsSidebarProps {
3
- /** Fields that have acknowledgements */
4
- fields: EsignFormField[];
5
- /** Callback when an acknowledgement item is checked */
6
- onAcknowledge: (fieldId: string, ackId: string) => void;
7
- /** Check if an acknowledgement is already acknowledged */
8
- isAcknowledged: (fieldId: string, ackId: string) => boolean;
9
- /** Get progress for a field */
10
- getProgress: (fieldId: string) => {
11
- current: number;
12
- total: number;
13
- };
14
- /** Additional CSS classes */
15
- className?: string;
16
- }
17
- /**
18
- * Sidebar section for acknowledging all field acknowledgements
19
- * Displays fields with acknowledgements and allows batch acknowledgement
20
- */
21
- export declare function AcknowledgementsSidebar({ fields, onAcknowledge, isAcknowledged, getProgress, className, }: AcknowledgementsSidebarProps): import("react/jsx-runtime").JSX.Element | null;
22
- //# sourceMappingURL=AcknowledgementsSidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcknowledgementsSidebar.d.ts","sourceRoot":"","sources":["../../src/components/AcknowledgementsSidebar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAO/C,MAAM,WAAW,4BAA4B;IAC3C,wCAAwC;IACxC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,uDAAuD;IACvD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,0DAA0D;IAC1D,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5D,+BAA+B;IAC/B,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACrE,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,aAAa,EACb,cAAc,EACd,WAAW,EACX,SAAc,GACf,EAAE,4BAA4B,kDAgL9B"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Attachment Upload Component
3
- * Provides file upload with drag-and-drop support and preview
4
- */
5
- import type { Attachment } from '../types';
6
- export interface AttachmentUploadProps {
7
- attachments: Attachment[];
8
- onAdd: (files: File[]) => void;
9
- onRemove: (attachmentId: string) => void;
10
- isUploading?: boolean;
11
- disabled?: boolean;
12
- maxFiles?: number;
13
- formatSize: (bytes: number) => string;
14
- className?: string;
15
- }
16
- export declare function AttachmentUpload({ attachments, onAdd, onRemove, isUploading, disabled, maxFiles, formatSize, className, }: AttachmentUploadProps): import("react/jsx-runtime").JSX.Element;
17
- //# sourceMappingURL=AttachmentUpload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttachmentUpload.d.ts","sourceRoot":"","sources":["../../src/components/AttachmentUpload.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,KAAK,EACL,QAAQ,EACR,WAAmB,EACnB,QAAgB,EAChB,QAAa,EACb,UAAU,EACV,SAAc,GACf,EAAE,qBAAqB,2CAqOvB"}
@@ -1,30 +0,0 @@
1
- /**
2
- * Editable Fields Panel
3
- * Optional panel to display extracted form fields for developer debugging and future enhancement
4
- */
5
- import type { EsignFormField } from '../types';
6
- export interface EditableFieldsPanelProps {
7
- /**
8
- * Array of extracted form fields to display
9
- */
10
- fields: EsignFormField[];
11
- /**
12
- * Current field values
13
- */
14
- fieldValues: Record<string, string>;
15
- /**
16
- * Whether the panel is collapsed
17
- */
18
- collapsed?: boolean;
19
- /**
20
- * Callback when collapse state changes
21
- */
22
- onCollapseChange?: (collapsed: boolean) => void;
23
- }
24
- /**
25
- * Editable Fields Panel Component
26
- * Displays extracted form fields in a structured, readable format
27
- * Fields are shown with input components (disabled for now) that can be enabled in future
28
- */
29
- export declare function EditableFieldsPanel({ fields, fieldValues, collapsed, onCollapseChange, }: EditableFieldsPanelProps): import("react/jsx-runtime").JSX.Element;
30
- //# sourceMappingURL=EditableFieldsPanel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditableFieldsPanel.d.ts","sourceRoot":"","sources":["../../src/components/EditableFieldsPanel.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,UAAU,CAAC;AAE9D,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,cAAc,EAAE,CAAC;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEpC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACjD;AA4BD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,WAAW,EACX,SAAiB,EACjB,gBAAgB,GACjB,EAAE,wBAAwB,2CA8I1B"}