Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
env:
NODE_ENV: test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: 18
- uses: actions/cache@v2
node-version: 20
- uses: actions/cache@v4
id: yarn-cache
with:
path: node_modules
Expand All @@ -28,11 +28,11 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: 18
- uses: actions/cache@v2
node-version: 20
- uses: actions/cache@v4
id: yarn-cache
with:
path: node_modules
Expand All @@ -46,11 +46,11 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: 18
- uses: actions/cache@v2
node-version: 20
- uses: actions/cache@v4
id: yarn-cache
with:
path: node_modules
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
trailingComma: "es5",
tabWidth: 2,
semi: false,
singleQuote: true,
};
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
],
"scripts": {
"lint": "yarn eslint 'packages/*/src/**.js'",
"prettify": "prettier 'packages/*/src/**.js'",
"prettify:check": "yarn prettify --check",
"prettify:write": "yarn prettify --write",
"test": "yarn lerna run test",
"prebuild": "git clean -fdx packages -e packages/*/node_modules",
"build": "yarn && yarn lerna run build",
Expand Down Expand Up @@ -49,10 +52,11 @@
"lerna": "^7.3.0",
"mini-css-extract-plugin": "^2.7.6",
"mocha": "^10.2.0",
"prettier": "3.6.2",
"sinon": "^16.0.0",
"sinon-chai": "^3.7.0",
"style-loader": "^3.3.3",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
}
}
}
62 changes: 54 additions & 8 deletions packages/anvil-embed-frame/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,83 @@

All notable changes to this project will be documented in this file.

## [@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
## [@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

### Merged

- [Breaking] Update dependencies [`#16`](https://github.com/anvilco/react-ui/pull/16)
- iframeURL instead of signURL [`#25`](https://github.com/anvilco/react-ui/pull/25)

### Commits

- Update readmes [`c932e4c`](https://github.com/anvilco/react-ui/commit/c932e4c5716c0b113f1840baeb0aa9118facdc26)
- fix up packaging [`74ce1cb`](https://github.com/anvilco/react-ui/commit/74ce1cb7a77295545ef89b6f43777e874ec5ce60)

## [@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

## [v2.1.4](https://github.com/anvilco/react-ui/compare/v2.1.3...v2.1.4) - 2025-10-28

### Commits

- being extra cautious [`02beb3c`](https://github.com/anvilco/react-ui/commit/02beb3c650dc774a84cf96166e38eaee5f17b0ca)

## [v2.1.3](https://github.com/anvilco/react-ui/compare/v2.1.2...v2.1.3) - 2025-10-28

### Commits

## [@anvilco/anvil-embed-frame@2.0.0-alpha.0](https://github.com/anvilco/react-ui/compare/@anvilco/anvil-embed-frame@1.1.0...@anvilco/anvil-embed-frame@2.0.0-alpha.0) - 2023-09-18
- set document inside component did mount [`5a055ed`](https://github.com/anvilco/react-ui/commit/5a055edfd2d5dcef9d3b6c4b8d6dd4a8fd1def77)

## [v2.1.2](https://github.com/anvilco/react-ui/compare/v2.1.1...v2.1.2) - 2025-10-27

### Merged

- Update readme to fix import error [`#15`](https://github.com/anvilco/react-ui/pull/15)
- iframeURL instead of signURL [`#25`](https://github.com/anvilco/react-ui/pull/25)
- Add className prop and type [`#22`](https://github.com/anvilco/react-ui/pull/22)
- publish better [`#20`](https://github.com/anvilco/react-ui/pull/20)

### Commits

- Update deps [`52a73bd`](https://github.com/anvilco/react-ui/commit/52a73bd5f16d5435f80cd8ae76f20b2834807c40)
- fix up packaging [`74ce1cb`](https://github.com/anvilco/react-ui/commit/74ce1cb7a77295545ef89b6f43777e874ec5ce60)

## [v2.1.1](https://github.com/anvilco/react-ui/compare/@anvilco/anvil-embed-frame@2.0.0...v2.1.1) - 2024-04-17

### Merged

- Add style prop and add postMessage helper [`#19`](https://github.com/anvilco/react-ui/pull/19)

## [@anvilco/anvil-embed-frame@1.1.0](https://github.com/anvilco/react-ui/compare/v0.0.0...@anvilco/anvil-embed-frame@1.1.0) - 2022-10-05
### Commits

- Update changelogs [`73908a8`](https://github.com/anvilco/react-ui/commit/73908a846d6cf7da180303270a4d726335ff881f)

## v0.0.0 - 2024-05-02
## [@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

### Merged

- [Breaking] Update dependencies [`#16`](https://github.com/anvilco/react-ui/pull/16)

### Commits

- Update readmes [`c932e4c`](https://github.com/anvilco/react-ui/commit/c932e4c5716c0b113f1840baeb0aa9118facdc26)

## [@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

## [v1.9.2](https://github.com/anvilco/react-ui/compare/@anvilco/anvil-embed-frame@1.1.0...v1.9.2) - 2025-10-30

### Merged

- iframeURL instead of signURL [`#25`](https://github.com/anvilco/react-ui/pull/25)
- Add className prop and type [`#22`](https://github.com/anvilco/react-ui/pull/22)
- publish better [`#20`](https://github.com/anvilco/react-ui/pull/20)
- Add style prop and add postMessage helper [`#19`](https://github.com/anvilco/react-ui/pull/19)
- [Breaking] Update dependencies [`#16`](https://github.com/anvilco/react-ui/pull/16)
- Update readme to fix import error [`#15`](https://github.com/anvilco/react-ui/pull/15)

### Commits

- Update deps [`52a73bd`](https://github.com/anvilco/react-ui/commit/52a73bd5f16d5435f80cd8ae76f20b2834807c40)

## @anvilco/anvil-embed-frame@1.1.0 - 2022-10-05

### Merged

- Add Typescript support to `AnvilEmbedFrame` [`#13`](https://github.com/anvilco/react-ui/pull/13)
- New `@anvilco/anvil-embed-frame` package [`#12`](https://github.com/anvilco/react-ui/pull/12)
- Update Readme [`#11`](https://github.com/anvilco/react-ui/pull/11)
Expand Down
8 changes: 5 additions & 3 deletions packages/anvil-embed-frame/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anvilco/anvil-embed-frame",
"version": "2.2.0",
"version": "2.2.2",
"description": "The AnvilEmbedFrame React component for embedded Etch signatures and Workflows.",
"author": "Anvil Foundry Inc.",
"license": "MIT",
Expand All @@ -9,7 +9,9 @@
"scripts": {
"build": "tsc && webpack --mode production",
"build:changelog": "yarn auto-changelog",
"prepack": "rimraf dist && yarn build",
"clean": "rimraf dist",
"clean:build": "yarn clean && yarn build",
"prepack": "yarn clean:build",
"pack": "yarn pack",
"version": "yarn build:changelog && git add CHANGELOG.md",
"test": "yarn mocha --config ./test/mocha.js",
Expand Down Expand Up @@ -41,7 +43,7 @@
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "5.0.5",
"rimraf": "6.0.1",
"typescript": "^5.2.2"
},
"peerDependencies": {
Expand Down
10 changes: 9 additions & 1 deletion packages/anvil-embed-frame/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ class AnvilEmbedFrame extends React.Component {
}

render () {
const { iframeURL, onEvent, anvilURL, scroll, style, className, ...others } = this.props
const {
iframeURL,
onEvent,
anvilURL,
scroll,
style,
className,
...others
} = this.props
return (
<iframe
id="anvil-embed-frame"
Expand Down
75 changes: 53 additions & 22 deletions packages/react-signature-frame/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,56 @@

All notable changes to this project will be documented in this file.

## [v2.1.4](https://github.com/anvilco/react-ui/compare/v2.1.3...v2.1.4) - 2025-10-28

### Commits

- being extra cautious [`02beb3c`](https://github.com/anvilco/react-ui/commit/02beb3c650dc774a84cf96166e38eaee5f17b0ca)

## [v2.1.3](https://github.com/anvilco/react-ui/compare/v2.1.2...v2.1.3) - 2025-10-28

### Commits

- set document inside component did mount [`5a055ed`](https://github.com/anvilco/react-ui/commit/5a055edfd2d5dcef9d3b6c4b8d6dd4a8fd1def77)

## [v2.1.2](https://github.com/anvilco/react-ui/compare/v2.1.1...v2.1.2) - 2025-10-27

### Merged

- iframeURL instead of signURL [`#25`](https://github.com/anvilco/react-ui/pull/25)
- Add className prop and type [`#22`](https://github.com/anvilco/react-ui/pull/22)
- publish better [`#20`](https://github.com/anvilco/react-ui/pull/20)

### Commits

- fix up packaging [`74ce1cb`](https://github.com/anvilco/react-ui/commit/74ce1cb7a77295545ef89b6f43777e874ec5ce60)

## [v2.1.1](https://github.com/anvilco/react-ui/compare/@anvilco/react-signature-frame@1.9.1...v2.1.1) - 2024-04-17

## [@anvilco/react-signature-frame@1.9.1](https://github.com/anvilco/react-ui/compare/@anvilco/react-signature-frame@1.9.0...@anvilco/react-signature-frame@1.9.1) - 2025-10-27

### Merged

- iframeURL instead of signURL [`#25`](https://github.com/anvilco/react-ui/pull/25)

### Commits

- fix up packaging [`74ce1cb`](https://github.com/anvilco/react-ui/commit/74ce1cb7a77295545ef89b6f43777e874ec5ce60)

## [@anvilco/react-signature-frame@1.9.0](https://github.com/anvilco/react-ui/compare/@anvilco/react-signature-frame@1.8.3...@anvilco/react-signature-frame@1.9.0) - 2024-05-02

### Merged

- Add className prop and type [`#22`](https://github.com/anvilco/react-ui/pull/22)
- publish better [`#20`](https://github.com/anvilco/react-ui/pull/20)
- Add style prop and add postMessage helper [`#19`](https://github.com/anvilco/react-ui/pull/19)
- [Breaking] Update dependencies [`#16`](https://github.com/anvilco/react-ui/pull/16)
- Update readme to fix import error [`#15`](https://github.com/anvilco/react-ui/pull/15)

### Commits

- Update deps [`52a73bd`](https://github.com/anvilco/react-ui/commit/52a73bd5f16d5435f80cd8ae76f20b2834807c40)

## [@anvilco/react-signature-frame@1.8.3](https://github.com/anvilco/react-ui/compare/@anvilco/react-signature-frame@1.8.2...@anvilco/react-signature-frame@1.8.3) - 2022-10-05

### Merged
Expand Down Expand Up @@ -165,29 +215,10 @@ All notable changes to this project will be documented in this file.

## [@anvilco/react-signature-frame@1.0.2-alpha.0](https://github.com/anvilco/react-ui/compare/@anvilco/react-signature-frame@1.0.0...@anvilco/react-signature-frame@1.0.2-alpha.0) - 2020-11-11

## [@anvilco/react-signature-frame@1.0.0](https://github.com/anvilco/react-ui/compare/v0.0.0...@anvilco/react-signature-frame@1.0.0) - 2020-11-12

## v0.0.0 - 2024-05-02

### Merged

- Add className prop and type [`#22`](https://github.com/anvilco/react-ui/pull/22)
- publish better [`#20`](https://github.com/anvilco/react-ui/pull/20)
- Add style prop and add postMessage helper [`#19`](https://github.com/anvilco/react-ui/pull/19)
- [Breaking] Update dependencies [`#16`](https://github.com/anvilco/react-ui/pull/16)
- Update readme to fix import error [`#15`](https://github.com/anvilco/react-ui/pull/15)
- Add Typescript support to `AnvilEmbedFrame` [`#13`](https://github.com/anvilco/react-ui/pull/13)
- New `@anvilco/anvil-embed-frame` package [`#12`](https://github.com/anvilco/react-ui/pull/12)
- Update Readme [`#11`](https://github.com/anvilco/react-ui/pull/11)
- [1-min] Fix output path for type defs [`#10`](https://github.com/anvilco/react-ui/pull/10)
- Add Typescript typings [`#9`](https://github.com/anvilco/react-ui/pull/9)
- Update dependencies and peer dependencies [`#7`](https://github.com/anvilco/react-ui/pull/7)
- Add onError handler [`#6`](https://github.com/anvilco/react-ui/pull/6)
- Add onFinishSigning prop & upgrade all minor version deps [`#5`](https://github.com/anvilco/react-ui/pull/5)
- Refactor the Docs [`#3`](https://github.com/anvilco/react-ui/pull/3)
- Review Follow Ups and Refactoring [`#2`](https://github.com/anvilco/react-ui/pull/2)
- Setup Linting [`#1`](https://github.com/anvilco/react-ui/pull/1)
## @anvilco/react-signature-frame@1.0.0 - 2020-11-12

### Commits

- AnvilSignatureFrame and AnvilSignatureModal [`7ab8fc2`](https://github.com/anvilco/react-ui/commit/7ab8fc2026411cbcc0186d9650290ba3d1afcfa5)
- publish config [`c3683cc`](https://github.com/anvilco/react-ui/commit/c3683ccb2dd12523ae85118d26307fc5ab2cd495)
- add babel devDependencies [`51ce830`](https://github.com/anvilco/react-ui/commit/51ce830e44defc0615261f94a42e9b7bc156c4f4)
6 changes: 5 additions & 1 deletion packages/react-signature-frame/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@anvilco/react-signature-frame",
"version": "1.9.0",
"version": "1.9.2",
"description": "The AnvilSignatureFrame React component for embedded Etch signatures",
"author": "Anvil Foundry Inc.",
"license": "MIT",
Expand All @@ -9,6 +9,9 @@
"scripts": {
"build": "tsc && webpack --mode production",
"build:changelog": "yarn auto-changelog",
"clean": "rimraf dist",
"clean:build": "yarn clean && yarn build",
"prepack": "yarn clean:build",
"pack": "yarn pack",
"version": "yarn build:changelog && git add CHANGELOG.md",
"test": "yarn mocha --config ./test/mocha.js"
Expand Down Expand Up @@ -38,6 +41,7 @@
"prop-types": "^15.8.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"rimraf": "6.0.1",
"typescript": "^4.6.3"
},
"peerDependencies": {
Expand Down
12 changes: 10 additions & 2 deletions packages/react-signature-frame/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@ export function parseURLParams (searchStr, options = {}) {
}
} else if (searchStr) {
// IE does not support URLSearchParams, so this
const parsableString = searchStr.indexOf('=') > -1 ? searchStr : searchStr + '='
const parsableString =
searchStr.indexOf('=') > -1 ? searchStr : searchStr + '='
try {
params = JSON.parse('{"' + parsableString.replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}')
params = JSON.parse(
'{"' +
parsableString
.replace(/"/g, '\\"')
.replace(/&/g, '","')
.replace(/=/g, '":"') +
'"}'
)
} catch (e) {
console.warn(e)
console.warn('Could not parse params from', parsableString)
Expand Down
Loading
Loading