@dyedurham/search-and-file-widget 2.0.41 → 2.0.42
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.
- package/dnd-filing-shell.js +20 -4
- package/package.json +11 -11
package/dnd-filing-shell.js
CHANGED
|
@@ -84443,8 +84443,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84443
84443
|
static generateAddressFormGroup(address) {
|
|
84444
84444
|
const config2 = {};
|
|
84445
84445
|
if (address) {
|
|
84446
|
-
const
|
|
84447
|
-
const
|
|
84446
|
+
const street = this.resolveStreet(address);
|
|
84447
|
+
const streetOnly = street.name;
|
|
84448
|
+
const streetNumberOnly = street.number;
|
|
84448
84449
|
const { StreetName, StreetType: StreetType2, StreetDirection: StreetDirection2 } = parseStreetAddress(streetOnly);
|
|
84449
84450
|
const streetType = StreetType2 ? mapStreetType(StreetType2) : "";
|
|
84450
84451
|
const streetDirection = StreetDirection2 ? mapStreetDirection(StreetDirection2) : "";
|
|
@@ -84490,6 +84491,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84490
84491
|
}
|
|
84491
84492
|
return config2;
|
|
84492
84493
|
}
|
|
84494
|
+
static resolveStreet(address) {
|
|
84495
|
+
const componentStreetName = getAddressComponent(address, "Street Only");
|
|
84496
|
+
const componentStreetNumber = getAddressComponent(address, "Street Number Only");
|
|
84497
|
+
if (componentStreetName || componentStreetNumber) {
|
|
84498
|
+
return {
|
|
84499
|
+
number: componentStreetNumber,
|
|
84500
|
+
name: componentStreetName
|
|
84501
|
+
};
|
|
84502
|
+
}
|
|
84503
|
+
const line = address.street?.trim() || address.display?.line1?.trim() || "";
|
|
84504
|
+
const match = /^(\d[\w-]*)\s+(.+)$/.exec(line);
|
|
84505
|
+
return match ? { number: match[1], name: match[2] } : { number: "", name: line };
|
|
84506
|
+
}
|
|
84493
84507
|
};
|
|
84494
84508
|
}
|
|
84495
84509
|
});
|
|
@@ -87936,7 +87950,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87936
87950
|
}) : void 0,
|
|
87937
87951
|
Directors: directors.map((d) => transformDirector(d, directorsDelta[d.participant._id], consentToProvideEmails)),
|
|
87938
87952
|
Incorporators: incorporators.map((i) => transformIncorporator(i)),
|
|
87939
|
-
|
|
87953
|
+
// Cover letter is the Contact's: name, email and phone must all come from the same person.
|
|
87954
|
+
// officerPhone is the incorporator/signatory's and is empty for a body corporate.
|
|
87955
|
+
CoverLetter: createCoverLetter2(officialBusinessEmail, contactPerson, formatPhone(pickPhone(contactPerson)) || officerPhone),
|
|
87940
87956
|
DirectorNumberType: isFixedDirectors ? ECoreDirectorNumberType.Fixed : ECoreDirectorNumberType.Range
|
|
87941
87957
|
}, isFixedDirectors ? { FixedNumberOfDirectors: minDirectors } : {
|
|
87942
87958
|
MinimumNumberOfDirectors: minDirectors || 1,
|
|
@@ -89642,7 +89658,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89642
89658
|
}
|
|
89643
89659
|
const federalPayload = buildFederalFormationValidateRequest(task, deltaData);
|
|
89644
89660
|
const validatedIncorporation = deltaData?.validatedData?.Incorporation;
|
|
89645
|
-
if (!task._ext?._future_filing_date && validatedIncorporation) {
|
|
89661
|
+
if (!task._ext?._future_filing_date && validatedIncorporation?.EffectiveType === federalPayload.Incorporation.EffectiveType) {
|
|
89646
89662
|
federalPayload.Incorporation.EffectiveDate = validatedIncorporation.EffectiveDate;
|
|
89647
89663
|
federalPayload.Incorporation.EffectiveType = validatedIncorporation.EffectiveType;
|
|
89648
89664
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dyedurham/search-and-file-widget",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dnd-filing-shell.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"author": "",
|
|
10
|
-
"license": "ISC"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dyedurham/search-and-file-widget",
|
|
3
|
+
"version": "2.0.42",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dnd-filing-shell.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC"
|
|
11
|
+
}
|