104 | )
105 | }
106 | }
107 |
108 | AnvilSignatureFrame.defaultProps = {
109 | onFinish: () => {},
110 | onFinishSigning: () => {},
111 | onError: () => {},
112 | anvilURL: 'https://app.useanvil.com',
113 | enableDefaultStyles: true,
114 | }
115 |
116 | AnvilSignatureFrame.propTypes = {
117 | signURL: PropTypes.string,
118 | scroll: PropTypes.string,
119 | onLoad: PropTypes.func,
120 | onError: PropTypes.func.isRequired,
121 | onFinishSigning: PropTypes.func.isRequired,
122 | anvilURL: PropTypes.string,
123 | enableDefaultStyles: PropTypes.bool,
124 |
125 | // DEPRECATED: use onFinishSigning or onError instead
126 | onFinish: PropTypes.func,
127 | }
128 |
129 | export default AnvilSignatureFrame
130 |
--------------------------------------------------------------------------------
/packages/anvil-embed-frame/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to this project will be documented in this file.
4 |
5 | ## [@anvilco/anvil-embed-frame@2.2.1](https://github.com/anvilco/react-ui/compare/@anvilco/anvil-embed-frame@2.2.0...@anvilco/anvil-embed-frame@2.2.1) - 2025-10-27
6 |
7 | ### Merged
8 |
9 | - iframeURL instead of signURL [`#25`](https://github.com/anvilco/react-ui/pull/25)
10 |
11 | ### Commits
12 |
13 | - fix up packaging [`74ce1cb`](https://github.com/anvilco/react-ui/commit/74ce1cb7a77295545ef89b6f43777e874ec5ce60)
14 |
15 | ## [@anvilco/anvil-embed-frame@2.2.0](https://github.com/anvilco/react-ui/compare/v2.1.4...@anvilco/anvil-embed-frame@2.2.0) - 2024-05-02
16 |
17 | ## [v2.1.4](https://github.com/anvilco/react-ui/compare/v2.1.3...v2.1.4) - 2025-10-28
18 |
19 | ### Commits
20 |
21 | - being extra cautious [`02beb3c`](https://github.com/anvilco/react-ui/commit/02beb3c650dc774a84cf96166e38eaee5f17b0ca)
22 |
23 | ## [v2.1.3](https://github.com/anvilco/react-ui/compare/v2.1.2...v2.1.3) - 2025-10-28
24 |
25 | ### Commits
26 |
27 | - set document inside component did mount [`5a055ed`](https://github.com/anvilco/react-ui/commit/5a055edfd2d5dcef9d3b6c4b8d6dd4a8fd1def77)
28 |
29 | ## [v2.1.2](https://github.com/anvilco/react-ui/compare/v2.1.1...v2.1.2) - 2025-10-27
30 |
31 | ### Merged
32 |
33 | - iframeURL instead of signURL [`#25`](https://github.com/anvilco/react-ui/pull/25)
34 | - Add className prop and type [`#22`](https://github.com/anvilco/react-ui/pull/22)
35 | - publish better [`#20`](https://github.com/anvilco/react-ui/pull/20)
36 |
37 | ### Commits
38 |
39 | - fix up packaging [`74ce1cb`](https://github.com/anvilco/react-ui/commit/74ce1cb7a77295545ef89b6f43777e874ec5ce60)
40 |
41 | ## [v2.1.1](https://github.com/anvilco/react-ui/compare/@anvilco/anvil-embed-frame@2.0.0...v2.1.1) - 2024-04-17
42 |
43 | ### Merged
44 |
45 | - Add style prop and add postMessage helper [`#19`](https://github.com/anvilco/react-ui/pull/19)
46 |
47 | ### Commits
48 |
49 | - Update changelogs [`73908a8`](https://github.com/anvilco/react-ui/commit/73908a846d6cf7da180303270a4d726335ff881f)
50 |
51 | ## [@anvilco/anvil-embed-frame@2.0.0](https://github.com/anvilco/react-ui/compare/@anvilco/anvil-embed-frame@2.0.0-alpha.0...@anvilco/anvil-embed-frame@2.0.0) - 2023-09-20
52 |
53 | ### Merged
54 |
55 | - [Breaking] Update dependencies [`#16`](https://github.com/anvilco/react-ui/pull/16)
56 |
57 | ### Commits
58 |
59 | - Update readmes [`c932e4c`](https://github.com/anvilco/react-ui/commit/c932e4c5716c0b113f1840baeb0aa9118facdc26)
60 |
61 | ## [@anvilco/anvil-embed-frame@2.0.0-alpha.0](https://github.com/anvilco/react-ui/compare/v1.9.2...@anvilco/anvil-embed-frame@2.0.0-alpha.0) - 2023-09-18
62 |
63 | ## [v1.9.2](https://github.com/anvilco/react-ui/compare/@anvilco/anvil-embed-frame@1.1.0...v1.9.2) - 2025-10-30
64 |
65 | ### Merged
66 |
67 | - iframeURL instead of signURL [`#25`](https://github.com/anvilco/react-ui/pull/25)
68 | - Add className prop and type [`#22`](https://github.com/anvilco/react-ui/pull/22)
69 | - publish better [`#20`](https://github.com/anvilco/react-ui/pull/20)
70 | - Add style prop and add postMessage helper [`#19`](https://github.com/anvilco/react-ui/pull/19)
71 | - [Breaking] Update dependencies [`#16`](https://github.com/anvilco/react-ui/pull/16)
72 | - Update readme to fix import error [`#15`](https://github.com/anvilco/react-ui/pull/15)
73 |
74 | ### Commits
75 |
76 | - Update deps [`52a73bd`](https://github.com/anvilco/react-ui/commit/52a73bd5f16d5435f80cd8ae76f20b2834807c40)
77 |
78 | ## @anvilco/anvil-embed-frame@1.1.0 - 2022-10-05
79 |
80 | ### Merged
81 |
82 | - Add Typescript support to `AnvilEmbedFrame` [`#13`](https://github.com/anvilco/react-ui/pull/13)
83 | - New `@anvilco/anvil-embed-frame` package [`#12`](https://github.com/anvilco/react-ui/pull/12)
84 | - Update Readme [`#11`](https://github.com/anvilco/react-ui/pull/11)
85 | - [1-min] Fix output path for type defs [`#10`](https://github.com/anvilco/react-ui/pull/10)
86 | - Add Typescript typings [`#9`](https://github.com/anvilco/react-ui/pull/9)
87 | - Update dependencies and peer dependencies [`#7`](https://github.com/anvilco/react-ui/pull/7)
88 | - Add onError handler [`#6`](https://github.com/anvilco/react-ui/pull/6)
89 | - Add onFinishSigning prop & upgrade all minor version deps [`#5`](https://github.com/anvilco/react-ui/pull/5)
90 | - Refactor the Docs [`#3`](https://github.com/anvilco/react-ui/pull/3)
91 | - Review Follow Ups and Refactoring [`#2`](https://github.com/anvilco/react-ui/pull/2)
92 | - Setup Linting [`#1`](https://github.com/anvilco/react-ui/pull/1)
93 |
94 | ### Commits
95 |
96 | - AnvilSignatureFrame and AnvilSignatureModal [`7ab8fc2`](https://github.com/anvilco/react-ui/commit/7ab8fc2026411cbcc0186d9650290ba3d1afcfa5)
97 |
--------------------------------------------------------------------------------
/packages/anvil-embed-frame/README.md:
--------------------------------------------------------------------------------
1 | # AnvilEmbedFrame
2 |
3 | `AnvilEmbedFrame` is a very minimal React component that allows you to embed Anvil [Etch e-signatures](https://www.useanvil.com/docs/api/e-signatures#embedding-the-signing-ui-in-an-iframe), [Workflows](https://www.useanvil.com/docs/api/workflows#embedding-workflows-in-your-app), and [embedded builders](https://www.useanvil.com/blog/engineering/embedded-edit-pdf-experience/) into your app with an `iframe`. It will give you information via callback `onEvent`.
4 |
5 | See the Etch e-sign [live demo](https://esign-demo.useanvil.com/) and open-source [demo repository](https://github.com/anvilco/anvil-e-signature-api-node-example) for an embedded Etch e-sign usage example using this component.
6 |
7 | ## What is Anvil?
8 |
9 | [Anvil](https://www.useanvil.com/developers) provides easy APIs for all things paperwork.
10 |
11 | 1. [PDF filling API](https://www.useanvil.com/products/pdf-filling-api/) - fill out a PDF template with a web request and structured JSON data.
12 | 2. [PDF generation API](https://www.useanvil.com/products/pdf-generation-api/) - send markdown or HTML and Anvil will render it to a PDF.
13 | 3. [Etch E-sign with API](https://www.useanvil.com/products/etch/) - customizable, embeddable, e-signature platform with an API to control the signing process end-to-end.
14 | 4. [Anvil Workflows (w/ API)](https://www.useanvil.com/products/workflows/) - Webforms + PDF + E-sign with a powerful no-code builder. Easily collect structured data, generate PDFs, and request signatures.
15 |
16 | Learn more on our [Anvil developer page](https://www.useanvil.com/developers).
17 |
18 | ## Usage
19 |
20 | ```sh
21 | yarn add @anvilco/anvil-embed-frame
22 | ```
23 |
24 | ```sh
25 | npm install @anvilco/anvil-embed-frame
26 | ```
27 |
28 | ```js
29 | import AnvilEmbedFrame from '@anvilco/anvil-embed-frame'
30 |
31 |