Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 11c1407

Browse files
chore: promote main to stable
2 parents 5a71dc8 + cab8848 commit 11c1407

16 files changed

Lines changed: 7136 additions & 2576 deletions

.github/workflows/pr-validation.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ jobs:
3737

3838
- name: Validate commits
3939
run: |
40-
pnpm dlx commitlint \
40+
pnpm exec commitlint \
4141
--from ${{ github.event.pull_request.base.sha }} \
4242
--to ${{ github.event.pull_request.head.sha }}
4343
4444
- run: pnpm lint
4545
- run: pnpm build
46+
- run: pnpm test

.github/workflows/release-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141

4242
- run: pnpm install --frozen-lockfile
4343
- run: pnpm build
44+
- run: pnpm test
4445

4546
- name: Release
4647
id: release

commitlint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'body-max-line-length': [0, 'always'],
5+
'footer-max-line-length': [0, 'always'],
6+
'header-max-length': [0, 'always'],
7+
},
8+
};
9+

demo/src/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ export function App() {
111111
) : (
112112
<>
113113
<h2 style={{ marginBottom: '20px' }}>Employment Agreement</h2>
114+
<p style={{ marginBottom: '16px', color: '#666' }}>
115+
Use the document toolbar to download the current agreement at any time.
116+
</p>
114117
<SuperDocESign
115118
eventId={`demo-${Date.now()}`}
116119
document={{
@@ -144,6 +147,7 @@ export function App() {
144147
}
145148
]
146149
}}
150+
download={{ label: 'Download PDF' }}
147151
onSubmit={handleSubmit}
148152
onDownload={handleDownload}
149153
onStateChange={handleStateChange}
@@ -174,4 +178,4 @@ export function App() {
174178
)}
175179
</div>
176180
);
177-
}
181+
}

demo/src/index.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,28 @@ body {
88
font-family: system-ui, -apple-system, sans-serif;
99
-webkit-font-smoothing: antialiased;
1010
-moz-osx-font-smoothing: grayscale;
11-
}
11+
}
12+
13+
.superdoc-esign-document {
14+
border: 1px solid #e5e7eb;
15+
border-radius: 12px;
16+
overflow: hidden;
17+
background: #ffffff;
18+
}
19+
20+
.superdoc-esign-document-toolbar {
21+
background: #f9fafb;
22+
border-bottom: 1px solid #e5e7eb;
23+
}
24+
25+
.superdoc-esign-document-controls {
26+
justify-content: flex-end;
27+
}
28+
29+
.superdoc-esign-document-viewer {
30+
background: #ffffff;
31+
}
32+
33+
.superdoc-esign-form-actions {
34+
justify-content: flex-end;
35+
}

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"type-check": "tsc --noEmit",
2424
"lint": "eslint src --ext .ts,.tsx",
2525
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
26+
"test": "vitest",
27+
"test:watch": "vitest --watch",
2628
"prepare": "husky",
2729
"release": "semantic-release",
2830
"check:all": "pnpm run type-check && pnpm run lint && pnpm run format"
@@ -55,9 +57,14 @@
5557
"superdoc": "^0.22.0"
5658
},
5759
"devDependencies": {
60+
"@commitlint/cli": "^20.1.0",
61+
"@commitlint/config-conventional": "^20.0.0",
5862
"@eslint/js": "^9.36.0",
5963
"@semantic-release/changelog": "^6.0.3",
6064
"@semantic-release/git": "^10.0.1",
65+
"@testing-library/jest-dom": "^6.9.1",
66+
"@testing-library/react": "^16.3.0",
67+
"@testing-library/user-event": "^14.6.1",
6168
"@types/node": "^24.5.2",
6269
"@types/react": "^19.2.2",
6370
"@types/react-dom": "^19.2.1",
@@ -66,14 +73,16 @@
6673
"eslint-plugin-react": "^7.37.5",
6774
"eslint-plugin-react-hooks": "^6.1.0",
6875
"husky": "^9.1.7",
76+
"jsdom": "^27.0.0",
6977
"prettier": "^3.6.2",
7078
"react": "^19.2.0",
7179
"react-dom": "^19.2.0",
7280
"semantic-release": "^24.2.9",
7381
"typescript": "^5.9.2",
7482
"typescript-eslint": "^8.44.1",
7583
"vite": "^7.1.7",
76-
"vite-plugin-dts": "^4.5.4"
84+
"vite-plugin-dts": "^4.5.4",
85+
"vitest": "^3.2.4"
7786
},
7887
"publishConfig": {
7988
"access": "public"

0 commit comments

Comments
 (0)