Releases: lightsparkdev/js-sdk
Releases · lightsparkdev/js-sdk
@lightsparkdev/ui@1.1.3
@lightsparkdev/lightspark-sdk@1.9.3
@lightsparkdev/lightspark-cli@0.1.3
@lightsparkdev/crypto-wasm@0.1.15
Patch Changes
- Updated dependencies [7ae2525]
- @lightsparkdev/core@1.4.1
@lightsparkdev/core@1.4.1
Patch Changes
- 7ae2525: - Remove unneeded crypto-browserify as dependency
@lightsparkdev/ui@1.1.2
Patch Changes
- 5cfff96: - BirthdayInput
- Dropped internal validity state; added
formatDateToText
hint formatter and “must be before today” validation. - TextInput
- Introduced
success
&contentError
props,hideNonErrorsIfBlurred
, configurableiconOffsets
,iconStrokeWidths
.
- Introduced
- PhoneInput
- Added
onFocus
callback.
- Added
- QRCode
- Swapped in new
LogoMark
asset (vs.FramedLogoOnCircle
), adjusted image sizing.
- Swapped in new
- Drawer & Modal
- Added
alignBottom
anddisableTouchMove
flags to support bottom-aligned, non-dismissable drawers.
- Added
- Button & Checkbox
- New kinds:
green37
,gray99
,white21
. - Added margin props (
mb
,ml
,mr
) for fine-grained spacing.
- New kinds:
- CardForm
- Major refactor: dozens of new props (
aboveHeaderContent
,graphicHeader
,centeredContent
,paddingX
,contentMarginTop
,formButtonTopMargin
,selectMarginTop
,smDontAdjustWidth
, etc.). - Extracted
CardFormHeadline
/CenteredHeader
, wrapped forms in aFlex
when using graphic headers.
- Major refactor: dozens of new props (
- InputSubtext
- Now supports rich React-node
content
, distinguishes error vs. success styling, and respects “hide if blurred” logic.
- Now supports rich React-node
- Toasts
- Added optional
type
(error
|success
|info
) to color toast backgrounds.
- Added optional
- Hooks
useFields
: validator signature now(value, fields?)
; addedmatchesField
andclabe
validators; smarter merge to prevent unnecessary rerenders.useQueryParamBooleans
: new hook for parsing multiple boolean query parameters at once.
- Icons
- Introduced dozens of new icons (e.g.
LogoMark
,LightningBoltOutline
,NonagonCheckmark
,NubankLogo
) plus a full “central” icon set undericons/central/
. - Standardized on a
PathProps
interface for configurable strokes.
- Introduced dozens of new icons (e.g.
- Styles & Theme
- Colors: added
gray35
,gray7
,white21
,green37
,blue32
,linkLight
. - Layout helper:
buildStandardContentInset
gains ansmDontAdjustWidth
opt-out. - Tweaked
smHeaderLogoMarginLeft
(30px → 20px). - Button themes: added
white21
,linkLight
, andtertiary
kinds. - CardForm theme: now allows zero padding for new layout options.
- Colors: added
- Dropped internal validity state; added
- Updated dependencies [5cfff96]
- @lightsparkdev/core@1.4.0
@lightsparkdev/lightspark-sdk@1.9.2
Patch Changes
- Updated dependencies [5cfff96]
- @lightsparkdev/core@1.4.0
- @lightsparkdev/crypto-wasm@0.1.14
@lightsparkdev/lightspark-cli@0.1.2
Patch Changes
- Updated dependencies [5cfff96]
- @lightsparkdev/core@1.4.0
- @lightsparkdev/crypto-wasm@0.1.14
- @lightsparkdev/lightspark-sdk@1.9.2
@lightsparkdev/crypto-wasm@0.1.14
Patch Changes
- Updated dependencies [5cfff96]
- @lightsparkdev/core@1.4.0
@lightsparkdev/core@1.4.0
Minor Changes
- 5cfff96: - Test script
- Renamed
test
totest-cmd
and madetest
an alias that accepts arbitrary Jest patterns. - Requester
- Switched
wsClient
to a lazily initializedPromise
resolved in a newinitWsClient
method. - Moved
autoBind
into constructor and improved cleanup/cancellation logic insubscribe()
.
- Switched
- New tests
- Added
Requester.test.ts
covering query execution, error handling, subscriptions, and signing logic.
- Added
- Errors utility
- Enhanced
errorToJSON
to enumerate non-enumerable props and optionally stringify nested objects.
- Enhanced
- LocalStorage utility
- Made
getLocalStorageBoolean
returntrue
/false
/null
;getLocalStorageConfigItem
now defaults missing keys tofalse
.
- Made
- Type guards
- Tightened
isObject
signature, addedisRecord
, and removed a duplicate intypes.ts
.
- Tightened
- Static assets
- Replaced the monolithic SVG logo with an optimized, higher-resolution
lightspark-logo.svg
.
- Replaced the monolithic SVG logo with an optimized, higher-resolution
- Renamed