@dyedurham/search-and-file-widget 2.0.69 → 2.0.71

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.
@@ -84322,10 +84322,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84322
84322
  const isIndividual = incorporator.type !== "entity";
84323
84323
  return {
84324
84324
  incorporatorType: isIndividual ? "individual" : "corporationOrFirm",
84325
- // The API requires a first/last name for both types; for a corporation it is the signatory.
84326
- firstName: (isIndividual ? incorporator.firstName : incorporator.signatory_first_name) ?? "",
84325
+ // Names are only accepted for an individual; a corporation or firm is identified by
84326
+ // `corporationOrFirmName` (the API rejects first/last name otherwise).
84327
+ firstName: isIndividual ? incorporator.firstName ?? "" : void 0,
84327
84328
  middleName: isIndividual ? incorporator.middleName || void 0 : void 0,
84328
- lastName: (isIndividual ? incorporator.lastName : incorporator.signatory_last_name) ?? "",
84329
+ lastName: isIndividual ? incorporator.lastName ?? "" : void 0,
84329
84330
  mailingAddress: mapAddress(incorporator),
84330
84331
  corporationOrFirmName: isIndividual ? void 0 : incorporator.incorporator_name
84331
84332
  };
@@ -84370,8 +84371,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84370
84371
  const streetNumber = getAddressComponent(address, "Street Number Only");
84371
84372
  const streetName = getAddressComponent(address, "Street Only");
84372
84373
  const suite = getAddressComponent(address, "Suite/Apartment");
84374
+ const singleLineStreet = getAddressComponent(address, "Street Address");
84373
84375
  return {
84374
- streetAddress: [streetNumber, streetName].filter(Boolean).join(" ") || address?.street || "",
84376
+ streetAddress: [streetNumber, streetName].filter(Boolean).join(" ") || singleLineStreet || address?.street || "",
84375
84377
  additionalStreetAddress: padShortAddressLine(suite || address?.address2),
84376
84378
  city: address?.city ?? "",
84377
84379
  provinceOrState: toProvinceOrStateCode(address?.province_state, country),
@@ -84594,7 +84596,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84594
84596
  const streetNumber = getAddressComponent(address, "Street Number Only");
84595
84597
  const streetName = getAddressComponent(address, "Street Only");
84596
84598
  const suite = getAddressComponent(address, "Suite/Apartment");
84597
- const street = [streetNumber, streetName].filter(Boolean).join(" ") || address.street || "";
84599
+ const street = [streetNumber, streetName].filter(Boolean).join(" ") || getAddressComponent(address, "Street Address") || address.street || "";
84598
84600
  return [
84599
84601
  suite ? `Unit ${suite}` : "",
84600
84602
  street,
@@ -84712,7 +84714,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84712
84714
  lastName: isPerson ? certified?.lastName ?? "" : "",
84713
84715
  email: certified?.email ?? "",
84714
84716
  mailingAddress: {
84715
- addressLine1: [streetNumber, streetName].filter(Boolean).join(" ") || address?.street || "",
84717
+ addressLine1: [streetNumber, streetName].filter(Boolean).join(" ") || getAddressComponent(address, "Street Address") || address?.street || "",
84716
84718
  addressLine2: getAddressComponent(address, "Suite/Apartment") || address?.address2 || "",
84717
84719
  city: address?.city ?? "",
84718
84720
  provinceState: address?.province_state ?? "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.0.69",
3
+ "version": "2.0.71",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {