@oneblink/sdk-core
Advanced tools
Comparing version 3.1.0 to 3.2.0-beta.1
@@ -16,2 +16,3 @@ import { FormTypes, SubmissionEventTypes } from '@oneblink/types'; | ||
toStorageElement: (e: FormTypes.FormElement) => FormTypes.StorageElement | undefined; | ||
toAutoLookupElement: (e: FormTypes.FormElement) => FormTypes.LocationElement | FormTypes.FilesElement | FormTypes.GeoscapeAddressElement | FormTypes.PointAddressElement | FormTypes.BooleanElement | FormTypes.CivicaStreetNameElement | FormTypes.RadioButtonElement | FormTypes.AutoCompleteElement | FormTypes.ComplianceElement | undefined; | ||
}; | ||
@@ -18,0 +19,0 @@ declare const submissionEvents: { |
@@ -152,2 +152,20 @@ "use strict"; | ||
}; | ||
const toAutoLookupElement = (e) => { | ||
switch (e.type) { | ||
case 'radio': | ||
case 'boolean': | ||
case 'files': | ||
case 'location': | ||
case 'geoscapeAddress': | ||
case 'pointAddress': | ||
case 'compliance': | ||
case 'civicaStreetName': | ||
case 'autocomplete': { | ||
return e; | ||
} | ||
default: { | ||
return; | ||
} | ||
} | ||
}; | ||
const formElements = { | ||
@@ -165,2 +183,3 @@ toOptionsElement, | ||
toStorageElement, | ||
toAutoLookupElement, | ||
}; | ||
@@ -167,0 +186,0 @@ exports.formElements = formElements; |
{ | ||
"name": "@oneblink/sdk-core", | ||
"description": "OneBlink SDK for JavaScript (works in Browsers and NodeJS)", | ||
"version": "3.1.0", | ||
"version": "3.2.0-beta.1", | ||
"author": "OneBlink <developers@oneblink.io> (https://oneblink.io)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245784
2837
1