@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
@@ -1,14 +0,0 @@
1
- /**
2
- * Form Field Renderers
3
- * Export all field renderer components
4
- */
5
- export * from './FormFieldRenderer';
6
- export * from './TextFieldRenderer';
7
- export * from './DateFieldRenderer';
8
- export * from './CheckboxRenderer';
9
- export * from './RadioGroupRenderer';
10
- export * from './DropdownRenderer';
11
- export * from './SignatureFieldRenderer';
12
- export * from './InitialsFieldRenderer';
13
- export * from './TextLabelRenderer';
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form-fields/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
@@ -1,17 +0,0 @@
1
- export * from './PdfViewerStyled';
2
- export * from './SignatureCanvas';
3
- export * from './SignatureModal';
4
- export * from './InitialsModal';
5
- export * from './SignatureInitialsBox';
6
- export * from './SubmissionForm';
7
- export * from './EditableFieldsPanel';
8
- export * from './AttachmentUpload';
9
- export * from './SigningInstructions';
10
- export * from './PoweredBySigniphi';
11
- export * from './ErrorBoundary';
12
- export * from './form-fields';
13
- export * from './ViewToggleToolbar';
14
- export * from './FormFieldsView';
15
- export * from './AcknowledgementModal';
16
- export * from './AcknowledgementsSidebar';
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { PdfViewerRef } from '../types';
2
- /**
3
- * Props for the headless PDF viewer core component
4
- */
5
- export interface PdfViewerCoreProps {
6
- onLoad?: () => void;
7
- onError?: (error: string) => void;
8
- pdfjsBasePath?: string;
9
- children: (props: {
10
- iframeRef: React.RefObject<HTMLIFrameElement>;
11
- handleIframeLoad: () => void;
12
- }) => React.ReactNode;
13
- }
14
- /**
15
- * Headless PDF viewer core component
16
- * Provides PDF loading and form field extraction logic without any UI
17
- */
18
- export declare const PdfViewerCore: import("react").ForwardRefExoticComponent<PdfViewerCoreProps & import("react").RefAttributes<PdfViewerRef>>;
19
- //# sourceMappingURL=PdfViewerCore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PdfViewerCore.d.ts","sourceRoot":"","sources":["../../src/core/PdfViewerCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAwB,MAAM,UAAU,CAAC;AAKnE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;QAC9C,gBAAgB,EAAE,MAAM,IAAI,CAAC;KAC9B,KAAK,KAAK,CAAC,SAAS,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,6GA4yCzB,CAAC"}
@@ -1,37 +0,0 @@
1
- import type { SignatureCanvasRef } from '../types';
2
- /**
3
- * Props for the headless signature capture core component
4
- */
5
- export interface SignatureCaptureCoreProps {
6
- width?: number;
7
- height?: number;
8
- onSignature?: (dataUrl: string) => void;
9
- children: (props: {
10
- canvasRef: React.RefObject<HTMLCanvasElement>;
11
- containerRef: React.RefObject<HTMLDivElement>;
12
- isEmpty: boolean;
13
- canvasSize: {
14
- width: number;
15
- height: number;
16
- };
17
- handlers: {
18
- onMouseDown: (e: React.MouseEvent) => void;
19
- onMouseMove: (e: React.MouseEvent) => void;
20
- onMouseUp: () => void;
21
- onMouseLeave: () => void;
22
- onTouchStart: (e: React.TouchEvent) => void;
23
- onTouchMove: (e: React.TouchEvent) => void;
24
- onTouchEnd: () => void;
25
- };
26
- actions: {
27
- clear: () => void;
28
- save: () => void;
29
- };
30
- }) => React.ReactNode;
31
- }
32
- /**
33
- * Headless signature capture core component
34
- * Provides canvas drawing logic without any UI
35
- */
36
- export declare const SignatureCaptureCore: import("react").ForwardRefExoticComponent<SignatureCaptureCoreProps & import("react").RefAttributes<SignatureCanvasRef>>;
37
- //# sourceMappingURL=SignatureCaptureCore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SignatureCaptureCore.d.ts","sourceRoot":"","sources":["../../src/core/SignatureCaptureCore.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE;QAChB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;QAC9C,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAC9C,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9C,QAAQ,EAAE;YACR,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;YAC3C,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;YAC3C,SAAS,EAAE,MAAM,IAAI,CAAC;YACtB,YAAY,EAAE,MAAM,IAAI,CAAC;YACzB,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;YAC5C,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;YAC3C,UAAU,EAAE,MAAM,IAAI,CAAC;SACxB,CAAC;QACF,OAAO,EAAE;YACP,KAAK,EAAE,MAAM,IAAI,CAAC;YAClB,IAAI,EAAE,MAAM,IAAI,CAAC;SAClB,CAAC;KACH,KAAK,KAAK,CAAC,SAAS,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,0HAqPhC,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './PdfViewerCore';
2
- export * from './SignatureCaptureCore';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
@@ -1,9 +0,0 @@
1
- export * from './usePdfViewer';
2
- export * from './useFormFields';
3
- export * from './useSignatureCapture';
4
- export * from './useSignatures';
5
- export * from './useFieldFiltering';
6
- export * from './useAttachments';
7
- export * from './useMultiSignerContext';
8
- export * from './useAcknowledgements';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC"}
@@ -1,50 +0,0 @@
1
- import type { EsignFormField, Acknowledgement } from '../types';
2
- interface AcknowledgementProgress {
3
- current: number;
4
- total: number;
5
- }
6
- interface UnacknowledgedFieldDetail {
7
- field: EsignFormField;
8
- unacknowledgedItems: Acknowledgement[];
9
- }
10
- interface UseAcknowledgementsReturn {
11
- acknowledgeItem: (fieldId: string, ackId: string) => void;
12
- isAcknowledged: (fieldId: string, ackId?: string) => boolean;
13
- isFieldFullyAcknowledged: (fieldId: string) => boolean;
14
- getFieldAcknowledgementProgress: (fieldId: string) => AcknowledgementProgress;
15
- acknowledgeAllForField: (fieldId: string) => void;
16
- getFieldsWithAcknowledgements: (fields: EsignFormField[]) => EsignFormField[];
17
- hasUnacknowledgedFields: (fields: EsignFormField[]) => boolean;
18
- getUnacknowledgedFields: (fields: EsignFormField[]) => EsignFormField[];
19
- getUnacknowledgedFieldsDetailed: (fields: EsignFormField[]) => UnacknowledgedFieldDetail[];
20
- resetAcknowledgements: () => void;
21
- }
22
- /**
23
- * Hook for managing acknowledgement state across form fields
24
- *
25
- * Tracks which acknowledgements have been accepted by the signer.
26
- * Acknowledgements are field-level requirements that must be explicitly
27
- * accepted before the field can be interacted with or submitted.
28
- *
29
- * State is stored in memory and resets on component unmount/page refresh.
30
- *
31
- * @param fields - Array of form fields that may contain acknowledgements
32
- * @returns Object with acknowledgement state management functions
33
- *
34
- * @example
35
- * ```tsx
36
- * const {
37
- * acknowledgeItem,
38
- * isFieldFullyAcknowledged,
39
- * hasUnacknowledgedFields
40
- * } = useAcknowledgements(fields);
41
- *
42
- * // Check if field can be submitted
43
- * if (hasUnacknowledgedFields(fields)) {
44
- * // Show acknowledgement modal
45
- * }
46
- * ```
47
- */
48
- export declare function useAcknowledgements(fields: EsignFormField[]): UseAcknowledgementsReturn;
49
- export {};
50
- //# sourceMappingURL=useAcknowledgements.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAcknowledgements.d.ts","sourceRoot":"","sources":["../../src/hooks/useAcknowledgements.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhE,UAAU,uBAAuB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,yBAAyB;IACjC,KAAK,EAAE,cAAc,CAAC;IACtB,mBAAmB,EAAE,eAAe,EAAE,CAAC;CACxC;AAED,UAAU,yBAAyB;IACjC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7D,wBAAwB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IACvD,+BAA+B,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,uBAAuB,CAAC;IAC9E,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,6BAA6B,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,CAAC;IAC9E,uBAAuB,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,OAAO,CAAC;IAC/D,uBAAuB,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,CAAC;IACxE,+BAA+B,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,yBAAyB,EAAE,CAAC;IAC3F,qBAAqB,EAAE,MAAM,IAAI,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,cAAc,EAAE,GACvB,yBAAyB,CAuH3B"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Hook for managing file attachments
3
- * Handles file uploads, validation, and state management
4
- */
5
- import type { Attachment, AttachmentConstraints, AttachmentValidationResult } from '../types';
6
- export interface UseAttachmentsOptions {
7
- constraints?: Partial<AttachmentConstraints>;
8
- onError?: (errors: string[]) => void;
9
- }
10
- export declare function useAttachments(options?: UseAttachmentsOptions): {
11
- attachments: Attachment[];
12
- isUploading: boolean;
13
- validationErrors: string[];
14
- constraints: AttachmentConstraints;
15
- addFiles: (files: File[] | FileList) => Promise<{
16
- added: number;
17
- errors: string[];
18
- }>;
19
- removeAttachment: (attachmentId: string) => void;
20
- clearAttachments: () => void;
21
- getTotalSize: () => number;
22
- formatSize: (bytes: number) => string;
23
- validateAll: () => AttachmentValidationResult;
24
- };
25
- //# sourceMappingURL=useAttachments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAttachments.d.ts","sourceRoot":"","sources":["../../src/hooks/useAttachments.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,UAAU,EACV,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,UAAU,CAAC;AA0BlB,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,cAAc,CAAC,OAAO,GAAE,qBAA0B;;;;;sBAchD,IAAI,EAAE,GAAG,QAAQ;;;;qCAwEmB,MAAM;;;wBAuBnB,MAAM,KAAG,MAAM;uBAOlB,0BAA0B;EAsC/D"}
@@ -1,29 +0,0 @@
1
- /**
2
- * Hook for filtering form fields by signer with multi-signer support
3
- * Implements Dockmaster's exact field visibility logic
4
- */
5
- import type { EsignFormField, MultiSignerContext } from '../types';
6
- /**
7
- * Hook for filtering form fields based on multi-signer context
8
- *
9
- * @param allFields - All form fields extracted from the PDF
10
- * @param multiSignerContext - Multi-signer context (from useMultiSignerContext)
11
- * @returns Filtered fields and utility functions
12
- *
13
- * @example
14
- * ```tsx
15
- * const context = useMultiSignerContext(currentSigner, isMultipleSignature, totalSigners);
16
- * const { filteredFields } = useFieldFiltering(allFields, context);
17
- * ```
18
- */
19
- export declare function useFieldFiltering(allFields: EsignFormField[], multiSignerContext: MultiSignerContext): {
20
- filteredFields: import("..").FormField[];
21
- requiredFields: import("..").FormField[];
22
- optionalFields: import("..").FormField[];
23
- isFieldVisible: (field: EsignFormField) => boolean;
24
- totalFields: number;
25
- filteredCount: number;
26
- requiredCount: number;
27
- optionalCount: number;
28
- };
29
- //# sourceMappingURL=useFieldFiltering.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFieldFiltering.d.ts","sourceRoot":"","sources":["../../src/hooks/useFieldFiltering.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnE;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,cAAc,EAAE,EAC3B,kBAAkB,EAAE,kBAAkB;;;;4BA8CP,cAAc,KAAG,OAAO;;;;;EAmBxD"}
@@ -1,23 +0,0 @@
1
- import type { FormField, ValidationError } from '../types';
2
- /**
3
- * Hook to manage form field state and validation
4
- */
5
- export declare function useFormFields(fields?: FormField[]): {
6
- fieldValues: Record<string, string>;
7
- errors: ValidationError[];
8
- hasErrors: boolean;
9
- touched: Record<string, boolean>;
10
- updateField: (fieldId: string, value: string) => void;
11
- updateMultipleFields: (values: Record<string, string>) => void;
12
- validateField: (fieldId: string) => boolean;
13
- validateFields: (signatures?: Record<string, string>) => boolean;
14
- resetFields: () => void;
15
- resetValidation: () => void;
16
- getFieldValue: (fieldId: string) => string;
17
- getFieldError: (fieldId: string) => string | undefined;
18
- isFieldTouched: (fieldId: string) => boolean;
19
- setFieldValue: (fieldId: string, value: string) => void;
20
- setMultipleFieldValues: (values: Record<string, string>) => void;
21
- clearFields: () => void;
22
- };
23
- //# sourceMappingURL=useFormFields.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFormFields.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormFields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAiB,MAAM,UAAU,CAAC;AAG1E;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,GAAE,SAAS,EAAO;;;;;2BAKV,MAAM,SAAS,MAAM;mCAcb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;6BAoB5D,MAAM;kCAyCF,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;6BA+D1B,MAAM;6BAON,MAAM;8BAQN,MAAM;6BAzJwB,MAAM,SAAS,MAAM;qCAcb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;EA0KzE"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Hook for managing multi-signer context and determining signer roles
3
- */
4
- import type { Signer, MultiSignerContext } from '../types';
5
- /**
6
- * Calculate multi-signer context from simplified props
7
- *
8
- * @param currentSigner - The signer who is currently viewing/signing (if multi-signer)
9
- * @param isMultipleSignature - Whether this is a multi-signer document
10
- * @param totalSigners - Total number of signers (for determining if current is final)
11
- * @returns MultiSignerContext with calculated roles and flags
12
- *
13
- * @example
14
- * ```tsx
15
- * const context = useMultiSignerContext(
16
- * { id: '1', email: 'user@example.com', name: 'John', signOrder: 1, status: 'pending' },
17
- * true,
18
- * 3
19
- * );
20
- * // context.isPrimarySigner === true (signOrder === 1)
21
- * // context.isFinalSigner === false (signOrder !== totalSigners)
22
- * ```
23
- */
24
- export declare function useMultiSignerContext(currentSigner?: Signer, isMultipleSignature?: boolean, totalSigners?: number): MultiSignerContext;
25
- //# sourceMappingURL=useMultiSignerContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMultiSignerContext.d.ts","sourceRoot":"","sources":["../../src/hooks/useMultiSignerContext.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,CAAC,EAAE,MAAM,EACtB,mBAAmB,CAAC,EAAE,OAAO,EAC7B,YAAY,CAAC,EAAE,MAAM,GACpB,kBAAkB,CA+BpB"}
@@ -1,52 +0,0 @@
1
- import type { PdfViewerRef, EsignFormField, MultiSignerContext } from '../types';
2
- /**
3
- * Hook to manage PDF viewer state and operations with multi-signer support
4
- *
5
- * @param multiSignerContext - Multi-signer context (from useMultiSignerContext)
6
- */
7
- export declare function usePdfViewer(multiSignerContext?: MultiSignerContext): {
8
- viewerRef: import("react").RefObject<PdfViewerRef>;
9
- isLoading: boolean;
10
- error: string | null;
11
- isLoaded: boolean;
12
- pdfUrl: string | null;
13
- pdfBytes: Uint8Array<ArrayBufferLike> | null;
14
- extractedFields: import("..").FormField[];
15
- loadPdf: (url: string) => Promise<void>;
16
- handleLoad: () => void;
17
- handleError: (errorMessage: string) => void;
18
- getFormFieldValues: () => Promise<Record<string, string>>;
19
- setFormFieldValues: (values: Record<string, string>) => Promise<void>;
20
- getAllFieldNames: () => Promise<string[]>;
21
- saveDocument: () => Promise<Uint8Array<ArrayBufferLike> | null>;
22
- extractFormFields: (currentSignerEmail?: string) => Promise<import("..").FormField[]>;
23
- fillPdf: (fieldValues: Record<string, string>, signatures: Record<string, string>, currentSignerEmail?: string, metadata?: {
24
- submissionId?: string;
25
- documentId?: string;
26
- author?: string;
27
- signerEmail?: string;
28
- signerInitials?: string;
29
- createdAt?: Date;
30
- }, auditTrail?: {
31
- userAgent?: string;
32
- screenResolution?: string;
33
- timezone?: string;
34
- language?: string;
35
- platform?: string;
36
- ipAddress?: string;
37
- geolocation?: {
38
- latitude: number;
39
- longitude: number;
40
- accuracy?: number;
41
- };
42
- }) => Promise<Uint8Array>;
43
- validatePdf: (fieldValues: Record<string, string>, signatures: Record<string, string>, visibleFields?: EsignFormField[]) => Promise<{
44
- isValid: boolean;
45
- errors: string[];
46
- }>;
47
- getRequiredFieldsMap: () => Promise<Record<string, boolean>>;
48
- getCurrentPdfBytes: () => Uint8Array<ArrayBufferLike> | null;
49
- reloadPdfWithBytes: (newPdfBytes: Uint8Array) => Promise<void>;
50
- reset: () => void;
51
- };
52
- //# sourceMappingURL=usePdfViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePdfViewer.d.ts","sourceRoot":"","sources":["../../src/hooks/usePdfViewer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAkBjF;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,kBAAkB,CAAC,EAAE,kBAAkB;;;;;;;;mBAeC,MAAM;;gCAyCC,MAAM;;iCAaC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;6CA0B9C,MAAM;2BA6EnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,cACvB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,uBACb,MAAM,aAChB;QAAE,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,IAAI,CAAA;KAAE,eAC9H;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KACpN,OAAO,CAAC,UAAU,CAAC;+BA4CP,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,cACvB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,kBAClB,cAAc,EAAE,KAC/B,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;gCA+BD,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;;sCAoC7D,UAAU;;EA6DjC"}
@@ -1,16 +0,0 @@
1
- import type { EsignFormField } from '../types';
2
- export interface UseRequiredFieldNavigationReturn {
3
- requiredFields: EsignFormField[];
4
- hasRequiredFields: boolean;
5
- currentRequiredField: EsignFormField | null;
6
- currentRequiredIndex: number;
7
- goToNextRequired: () => EsignFormField | null;
8
- goToPreviousRequired: () => EsignFormField | null;
9
- requiredFieldCount: number;
10
- }
11
- /**
12
- * Hook for navigating through required fields only
13
- * Provides next/previous navigation that cycles through required fields
14
- */
15
- export declare function useRequiredFieldNavigation(fields: EsignFormField[]): UseRequiredFieldNavigationReturn;
16
- //# sourceMappingURL=useRequiredFieldNavigation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRequiredFieldNavigation.d.ts","sourceRoot":"","sources":["../../src/hooks/useRequiredFieldNavigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,WAAW,gCAAgC;IAC/C,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,cAAc,GAAG,IAAI,CAAC;IAC5C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,cAAc,GAAG,IAAI,CAAC;IAC9C,oBAAoB,EAAE,MAAM,cAAc,GAAG,IAAI,CAAC;IAClD,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,cAAc,EAAE,GACvB,gCAAgC,CAmDlC"}
@@ -1,17 +0,0 @@
1
- import type { SignatureCanvasRef } from '../types';
2
- /**
3
- * Hook to manage signature capture state and operations
4
- */
5
- export declare function useSignatureCapture(): {
6
- canvasRef: import("react").RefObject<SignatureCanvasRef>;
7
- signatureDataUrl: string | null;
8
- uploadedImage: string | null;
9
- uploadError: string | null;
10
- clear: () => void;
11
- saveSignature: () => string | null;
12
- isEmpty: () => boolean;
13
- handleFileUpload: (file: File) => void;
14
- clearUpload: () => void;
15
- reset: () => void;
16
- };
17
- //# sourceMappingURL=useSignatureCapture.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSignatureCapture.d.ts","sourceRoot":"","sources":["../../src/hooks/useSignatureCapture.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD;;GAEG;AACH,wBAAgB,mBAAmB;;;;;;;;6BAwBW,IAAI;;;EAsDjD"}
@@ -1,29 +0,0 @@
1
- /**
2
- * Hook to manage signature and initials state
3
- */
4
- import type { FormField } from '../types';
5
- export interface SignatureData {
6
- [fieldId: string]: string;
7
- }
8
- /**
9
- * Hook for managing signatures and initials
10
- */
11
- export declare function useSignatures(): {
12
- signatures: SignatureData;
13
- setSignature: (fieldId: string, dataUrl: string) => void;
14
- clearSignature: (fieldId: string) => void;
15
- clearAllSignatures: () => void;
16
- hasSignature: (fieldId: string) => boolean;
17
- getSignature: (fieldId: string) => string | null;
18
- validateSignatures: (fields: FormField[], currentSignatures?: SignatureData) => {
19
- isValid: boolean;
20
- errors: string[];
21
- };
22
- signatureCount: number;
23
- hasAnySignatures: boolean;
24
- collectSignature: (type: "signature" | "initials", dataUrl: string) => void;
25
- hasCollectedSignature: (type: "signature" | "initials") => boolean;
26
- getCollectedSignature: (type: "signature" | "initials") => string | null;
27
- clearCollectedSignatures: () => void;
28
- };
29
- //# sourceMappingURL=useSignatures.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSignatures.d.ts","sourceRoot":"","sources":["../../src/hooks/useSignatures.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,UAAU,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,aAAa;;4BAUgB,MAAM,WAAW,MAAM;8BAUrB,MAAM;;4BAmBvC,MAAM;4BAUN,MAAM;iCAUP,SAAS,EAAE,sBAAsB,aAAa;;;;;;6BAiCb,WAAW,GAAG,UAAU,WAAW,MAAM;kCAWpC,WAAW,GAAG,UAAU,KAAG,OAAO;kCASlC,WAAW,GAAG,UAAU,KAAG,MAAM,GAAG,IAAI;;EA4B1F"}
package/dist/index.d.ts DELETED
@@ -1,17 +0,0 @@
1
- /**
2
- * @signiphi/pdf-signer
3
- * Flexible React components for PDF viewing, form filling, and signature capture
4
- */
5
- import './styles/index.css';
6
- import './utils/pdfjs-config';
7
- export * from './types';
8
- export { PdfViewerCore, SignatureCaptureCore } from './core';
9
- export type { PdfViewerCoreProps, SignatureCaptureCoreProps } from './core';
10
- export { PdfViewerStyled, SignatureCanvas, SignatureModal, SubmissionForm, } from './components';
11
- export type { PdfViewerStyledProps, SignatureCanvasProps, SignatureModalProps, SubmissionFormProps, } from './components';
12
- export * from './components/form-fields';
13
- export { usePdfViewer, useFormFields, useSignatureCapture, useSignatures, useFieldFiltering, useMultiSignerContext, } from './hooks';
14
- export * from './utils';
15
- export { setPdfJsConfig, getPdfJsConfig, resetPdfJsConfig } from './utils/pdfjs-config';
16
- export { PdfViewerStyled as PdfViewer } from './components';
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,oBAAoB,CAAC;AAG5B,OAAO,sBAAsB,CAAC;AAG9B,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAG5E,OAAO,EACL,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AAGtB,cAAc,0BAA0B,CAAC;AAGzC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AAGjB,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxF,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Framework integrations for @signiphi/pdf-signer
3
- */
4
- export * from './vite-plugin';
5
- export * from './next-config';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -1,46 +0,0 @@
1
- /**
2
- * Next.js configuration helper for @signiphi/pdf-signer
3
- * Automatically copies PDF.js viewer files during build
4
- */
5
- interface signiphiPdfJsOptions {
6
- /**
7
- * Target directory for PDF.js files (default: 'public/pdfjs')
8
- */
9
- targetDir?: string;
10
- /**
11
- * Whether to force copy even if files exist (default: false)
12
- */
13
- force?: boolean;
14
- }
15
- /**
16
- * Next.js configuration wrapper for automatic PDF.js setup
17
- *
18
- * @example
19
- * ```javascript
20
- * // next.config.js
21
- * const { withSigniphiPdfJs } = require('@signiphi/pdf-signer/next');
22
- *
23
- * module.exports = withSigniphiPdfJs({
24
- * // your next.js config
25
- * });
26
- * ```
27
- *
28
- * @example
29
- * ```javascript
30
- * // next.config.js with options
31
- * const { withSigniphiPdfJs } = require('@signiphi/pdf-signer/next');
32
- *
33
- * module.exports = withSigniphiPdfJs(
34
- * {
35
- * // your next.js config
36
- * },
37
- * {
38
- * targetDir: 'public/pdfjs',
39
- * force: false,
40
- * }
41
- * );
42
- * ```
43
- */
44
- export declare function withSigniphiPdfJs(nextConfig?: any, options?: signiphiPdfJsOptions): any;
45
- export {};
46
- //# sourceMappingURL=next-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next-config.d.ts","sourceRoot":"","sources":["../../src/integrations/next-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,UAAU,oBAAoB;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAmHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,GAAE,GAAQ,EACpB,OAAO,GAAE,oBAAyB,OA+BnC"}
@@ -1,48 +0,0 @@
1
- /**
2
- * Vite plugin for @signiphi/pdf-signer
3
- * Automatically copies PDF.js viewer files during build
4
- */
5
- interface ViteConfig {
6
- root: string;
7
- }
8
- interface Plugin {
9
- name: string;
10
- configResolved?: (config: ViteConfig) => void;
11
- buildStart?: () => void;
12
- configureServer?: () => void;
13
- }
14
- interface signiphiPdfJsPluginOptions {
15
- /**
16
- * Target directory for PDF.js files (default: 'public/pdfjs')
17
- */
18
- targetDir?: string;
19
- /**
20
- * Whether to force copy even if files exist (default: false)
21
- */
22
- force?: boolean;
23
- /**
24
- * Whether to copy on dev server start (default: true)
25
- */
26
- copyOnDev?: boolean;
27
- /**
28
- * Whether to copy on build (default: true)
29
- */
30
- copyOnBuild?: boolean;
31
- }
32
- /**
33
- * Vite plugin for automatic PDF.js setup
34
- *
35
- * @example
36
- * ```typescript
37
- * // vite.config.ts
38
- * import { defineConfig } from 'vite';
39
- * import { signiphiPdfJs } from '@signiphi/pdf-signer/vite';
40
- *
41
- * export default defineConfig({
42
- * plugins: [signiphiPdfJs()],
43
- * });
44
- * ```
45
- */
46
- export declare function signiphiPdfJs(options?: signiphiPdfJsPluginOptions): Plugin;
47
- export {};
48
- //# sourceMappingURL=vite-plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../../src/integrations/vite-plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,UAAU,0BAA0B;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAmHD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE,0BAA+B,GAAG,MAAM,CAuC9E"}
@@ -1,3 +0,0 @@
1
- export * from './utils';
2
- export * from './ui';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC"}
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
- declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
- declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
- declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
8
- //# sourceMappingURL=accordion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAK/D,QAAA,MAAM,SAAS,8JAA0B,CAAA;AAEzC,QAAA,MAAM,aAAa,iKASjB,CAAA;AAGF,QAAA,MAAM,gBAAgB,0KAiBpB,CAAA;AAGF,QAAA,MAAM,gBAAgB,oKAWpB,CAAA;AAIF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { type VariantProps } from 'class-variance-authority';
3
- declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
4
- variant?: "default" | "destructive" | null | undefined;
5
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
6
- declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
7
- declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
8
- export { Alert, AlertTitle, AlertDescription };
9
- //# sourceMappingURL=alert.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAoBlE,QAAA,MAAM,KAAK;;sHAUT,CAAC;AAGH,QAAA,MAAM,UAAU,uHASd,CAAC;AAGH,QAAA,MAAM,gBAAgB,yHASpB,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}