@@ -9,23 +9,24 @@ import "superdoc/dist/style.css";
99import "./App.css" ;
1010
1111const availableFields : FieldDefinition [ ] = [
12- // Contact Information
13- { id : "applicant_name" , label : "Applicant Name" , category : "Applicant" } ,
14- { id : "applicant_email" , label : "Applicant Email" , category : "Applicant" } ,
15- { id : "applicant_phone" , label : "Applicant Phone" , category : "Applicant" } ,
12+ // Agreement
13+ { id : '1242142770' , label : 'Agreement Date' , category : 'Agreement' } ,
1614
17- // Company Information
18- { id : 'organization_name' , label : 'Organization Name' , category : 'Organization' } ,
19- { id : 'organization_email' , label : 'Organization Email' , category : 'Organization' } ,
15+ // Parties
16+ { id : '1242142771' , label : 'User Name' , category : 'Parties' } ,
17+ { id : '1242142772' , label : 'Company Name' , category : 'Parties' } ,
18+
19+ // Scope
20+ { id : '1242142773' , label : 'Service Type' , category : 'Scope' } ,
2021
2122 // Legal
22- { id : 'effective_date ' , label : 'Effective Date ' , category : 'Legal' } ,
23- { id : 'termination_date' , label : 'Termination Date' , category : 'Legal' } ,
24- { id : 'jurisdiction' , label : 'Jurisdiction' , category : 'Legal' } ,
25- { id : 'governing_law ' , label : 'Governing Law ' , category : 'Legal ' } ,
23+ { id : '1242142774 ' , label : 'Agreement Jurisdiction ' , category : 'Legal' } ,
24+
25+ // Company Details
26+ { id : '1242142775 ' , label : 'Company Address ' , category : 'Company ' } ,
2627
27- // Product/Service
28- { id : 'service_description ' , label : 'Service Description ' , category : 'Product ' } ,
28+ // Signatures
29+ { id : '1242142776 ' , label : 'Signature ' , category : 'Signatures ' } ,
2930] ;
3031
3132export function App ( ) {
@@ -35,7 +36,7 @@ export function App() {
3536 const [ isImporting , setIsImporting ] = useState ( false ) ;
3637 const [ importError , setImportError ] = useState < string | null > ( null ) ;
3738 const [ documentSource , setDocumentSource ] = useState < string | File > (
38- "https://storage.googleapis.com/public_static_hosting/public_demo_docs/service_agreement .docx" ,
39+ "https://storage.googleapis.com/public_static_hosting/public_demo_docs/new_service_agreement .docx" ,
3940 ) ;
4041 const builderRef = useRef < SuperDocTemplateBuilderHandle > ( null ) ;
4142 const fileInputRef = useRef < HTMLInputElement > ( null ) ;
@@ -56,7 +57,7 @@ export function App() {
5657 log ( `✓ Inserted: ${ field . alias } ` ) ;
5758 } , [ log ] ) ;
5859
59- const handleFieldDelete = useCallback ( ( fieldId : string ) => {
60+ const handleFieldDelete = useCallback ( ( fieldId : string | number ) => {
6061 log ( `✗ Deleted: ${ fieldId } ` ) ;
6162 } , [ log ] ) ;
6263
0 commit comments