@boldpenguin/sdk
11.0.1
Patch Changes
- Add README and LICENSE files to
@boldpenguin/sdk
11.0.0
Major Changes
@boldpenguin/sdk-types
- Add
IQuestionIndex
type - Add
IAnswerIndex
type - Add
IApplicationFormQuickView
type - Add missing fields to
IApplicationFormIndex
type
@boldpenguin/sdk-types
- Remove
ISocketData
type, useTWebsocketEvent
type instead
@boldpenguin/sdk-web-components, @boldpenguin/sdk-types
- Remove
isRefilteringEnabled
property frombp-sdk-business-classification-selector
component and associated types + components. - Remove
bp-sdk-business-classification-selector-nudge-container
component
@boldpenguin/sdk-web-components
getApplicationFormCarriersProducts
prop has been removed frombp-sdk-quote-request-container
componentonlineQuotesSortFn
has been renamed toquotesSortFn
onbp-sdk-quote-request-container
component which resolves an issue with compilation when using Angular and passing in that property- Most
IQuoteRequest
types on components have been updated toIQuotesState
which will reflect the correct data being passed in - Added
bp-sdk-quote-request-logo-container
component which wrapsbp-sdk-quote-request-logo
component and passes data from Redux in
@boldpenguin/sdk-types
- Remove
COVERAGE_TYPES
export. Useimport { COVERAGE_REFERENCES } from '@boldpenguin/sdk';
instead
@boldpenguin/sdk-web-components, @boldpenguin/sdk-types
- Add support for new question
field_type: 'month_year'
@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-icons, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo
Add off-platform carrier portal url endpoint
- Adds endpoint which returns carrier portal url (
ApplicationForm.getCarrierPortalUrl()
) - Endpoint returns new type
ICarrierPortalUrlResponse
- Remove references to
carrier_bind_url
property onIQuoteRequest
type
- Adds endpoint which returns carrier portal url (
@boldpenguin/sdk-redux
- Remove
store
export. Useimport { getStore } from '@boldpenguin/sdk';
andconst store = getStore()
as a drop in replacement.
@boldpenguin/sdk-web-components, @boldpenguin/sdk-types
- Remove
is_readonly
onIQuestion
, code should referenceis_readonly
on parentIAnswer
instead
@boldpenguin/sdk-redux, @boldpenguin/sdk-auth, @boldpenguin/sdk-core
New meta package to consume all of the Bold Penguin SDK. You can change over all imports to
@boldpenguin/sdk
or@boldpenguin/sdk/vite
except where noted below:Rename some Redux actions and selectors to avoid conflicts with top level SDK exports
- logout action has been renamed to loggedOut
- getToken selector has been renamed to selectToken
- getTokenExpiration selector has been renamed to selectTokenExpiration
- getUser selector has been renamed to selectUser
- getAuthExpiration selector has been renamed to selectAuthExpiration
- getErrors selector has been renamed to selectErrors
@boldpenguin/sdk-auth
no longer exports the following methods, import them from@boldpenguin/sdk
instead:- getToken
- getTokenExpiration
- getUser
- hasPermission
- isTokenExpired
@boldpenguin/sdk-core
no longer exports the following methods, import them from@boldpenguin/sdk
instead:- getItem
- getPermissionsObject
- getUser
- getUserInfo
- hasPermission
- removeItem
- setItem
@boldpenguin/sdk-requests
- Remove deprecated
createCarrierProductBuckets
anddeleteCarrierProductBuckets
requests
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Update
IQuoteRequestQuote
products type to new typeIProductDetail
Minor Changes
@boldpenguin/sdk-utility, @boldpenguin/sdk-types
- Add
compliance_status
property to theIRawUserInfo
interface
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
copy
attribute to applicationIApplicationForm
andIFormState
@boldpenguin/sdk-types
- Correct types coming from API on quotes objects to be
string
instead ofDate
@boldpenguin/sdk-web-components
- Add wholesale supplier information to
bp-sdk-quote-request
component - Add
quoteId
property tobp-sdk-quote-request-header
component - Add
shouldQuoteCardRenderSupplierLogos
option when initializing SDK to render supplier logos inbp-sdk-quote-request-logo-container
component
@boldpenguin/sdk-utility, @boldpenguin/sdk-types
- Add
tenant_state
property toIRawUserInfo
- Add
tenantState
property toIAuthState
@boldpenguin/sdk-utility, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth
Sort messages based on priority
- Add
priority
property toIMessage
type - Sort messages based on priority when the message state changes
- Priority messages will display before other messages
- Add
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Quotes slice will now process new nested quotes being sent from backend. This change should be transparent to consuming applications.
IQuotesState
type has been updated, it no longer just extendsIQuoteRequest
to accomodate the multiple quotes change.- Add
IQuoteRequestQuote
type - Add
quotes: IQuoteRequestQuote[]
property toIQuoteRequest
type
@boldpenguin/sdk-types
- Add
logo_img_url_full
property toITerminalTheme
type
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add support for inlining messages into other parts of the application form
- Add
location
andlevel
properties toIMessage
type - Add
bp-sdk-message-outlet
component
- Add
@boldpenguin/sdk-types
- Remove
name
property fromICarrierProductBucket
type
@boldpenguin/sdk-types
- Add
answer_pools
property toICreateApplicationFormParams
. - Add
answered_by_type
andanswered_by_source
properties toICreateApplicationFormAnswerValue
.
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
referred_by
property toIApplicationForm
andIApplicationFormIndex
types
@boldpenguin/sdk-web-components, @boldpenguin/sdk-icons
- Add Vite support to
@boldpenguin/sdk-web-components
and@boldpenguin/sdk-icons
packages @boldpenguin/sdk
now has a Vite specific entrypoint to accomodate differences in bundler import behaviors. Try importing from@boldpenguin/sdk/vite
if you are having issues with the default exports
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
viewState.quotes.filteredOnlineQuotes
andviewState.quotes.filteredOfflineQuotes
to Redux store - Add
satisfies_application_form_product_request
property toIQuoteRequest
type - Pass
satisfiesApplicationFormProductRequest
property tobp-sdk-quote-request
component - Add new Redux selectors
- selectFilteredOfflineQuotes
- selectFilteredOnlineQuotes
- selectViewState
- selectViewStateQuotes
@boldpenguin/sdk-types
- Add
question_codes
property toITranslatedMessage
type
@boldpenguin/sdk-web-components, @boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Handle document upload in vehicle panel state for Commercial Auto quotes
- Add
getVehicleSelection
selector - Add
lazyLoadVehicleOptions
thunk
- Add
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
getStorefrontActiveEnrolledProductsCodes
Redux selector - Add
storefront_active_enrolled_product_codes
property toIApplicationForm
andIFormState
types
Patch Changes
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
status
property toIFeatureState
@boldpenguin/sdk-web-components
- Pass minDate and maxDate args in month-year components
@boldpenguin/sdk-web-components
- Remove pattern property from bp-sdk-month-year components
@boldpenguin/sdk-types
- Add
template_subdomain
property toIUser
type
@boldpenguin/sdk-types
- Add
received_by_wholesaler_at
property toIApplicationForm
type
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
effective_date
property toIQuoteRequest
type
@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-icons, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo
- Add
tenant
property toIApplicationForm
andIApplicationFormIndex
types
@boldpenguin/sdk-redux
- Properly calculate
is_blank
for child question sets
@boldpenguin/sdk-redux, @boldpenguin/sdk-types
- Add
logo_url_small
property toICarrier
type and associated Redux store
@boldpenguin/sdk-web-components, @boldpenguin/sdk-websockets, @boldpenguin/sdk-polyfill, @boldpenguin/sdk-requests, @boldpenguin/sdk-utility, @boldpenguin/sdk-icons, @boldpenguin/sdk-redux, @boldpenguin/sdk-types, @boldpenguin/sdk-auth, @boldpenguin/sdk-core, @boldpenguin/sdk-demo
- Some users will have access to select functionality on certain tenants. This list of "tenants" is exposed in the user data and has properties explaining which functionality on that tenant the user may access.
- Add
tenants
toIRawUserInfo
type
- Add
@boldpenguin/sdk-types
- Add
labels
property toIQuoteRequest
type
@boldpenguin/sdk-redux
- Sync
status.remote.quotes
Redux state correctly