flutter_adaptive_cards_host_fs 0.16.0
flutter_adaptive_cards_host_fs: ^0.16.0 copied to clipboard
Backend invoke bridge for Flutter Adaptive Cards — request serialization, response parsing, and handler wiring.
Changelog #
0.16.0 #
- no changes yet
0.15.0 #
- no changes yet
0.14.0 #
Added 0.14.0 #
- Add card
authenticationsign-in support:AdaptiveCardBackendHandlersopens the sign-in URL viaurlOpenerandcompleteSignin(state:)POSTs a signin invoke (signin/verifyStatefor Teams) whosereplaceCardresponse swaps in the returned card. AddsAdaptiveCardInvokeKind.signin,AdaptiveCardInvokeRequest.fromSignin, andconnectionNamefield on the request model.
Docs 0.14.0 #
- README: "How actions reach your handlers" is now a short host-focused summary (when your callback fires vs. not) that links to the canonical per-action table and dispatch diagrams in
docs/actions-architecture.md. The fullGenericAction→InheritedAdaptiveCardHandlerstable + a component and sequence diagram moved there;docs/backend-host-integration.mdgained sequence diagrams for the invoke and sign-in round-trips.
0.13.0 #
Added 0.13.0 #
Action.Httptransport (deprecated/legacy action) —Action.Httpis the original Adaptive Cards HTTP action model (schema v1.0), superseded byAction.Execute(Universal Action Model, schema v1.4) and still used by Outlook Actionable Messages. NewAdaptiveHttpExecutorinterface and defaultHttpAdaptiveHttpExecutor(built onpackage:http) perform the card-authoredGET/POST.AdaptiveCardBackendHandlersgains an optionalhttpExecutorand wires the coreonHttpcallback: on success it honorsCARD-UPDATE-IN-BODY: trueby replacing the rendered card (reusingonCardReplaced+cardValidator), and surfacesCARD-ACTION-STATUS/ non-2xx failures viaonError. Response bodies are byte-capped.
Changed 0.13.0 #
- Docs: README now has an Implementation status section summarizing Phase 1 / Phase 2 coverage and linking to the central status matrix.
Tests 0.13.0 #
- Expanded
AdaptiveCardBackendHandlerstests to cover Execute / Refresh / onChange invoke kinds and both error paths (missing mounted card state, backendpostfailure), bringingbackend_handlers.dartto full coverage.
0.12.0 #
Security 0.12.0 #
- Bounded backend response decoding:
HttpAdaptiveCardBackendClientgainsmaxResponseBytes(default 1 MiB) and decodes viadecodeJsonMapWithLimit, throwingAdaptiveJsonTooLargeExceptionon oversized bodies instead of decoding unbounded untrusted JSON. - Optional
replaceCardvalidator:AdaptiveCardInvokeResponse.applyToandAdaptiveCardBackendHandlers.wrapaccept anAdaptiveCardValidator; a backend-supplied replacement card that fails validation is rejected (AdaptiveCardInvokeResponseParseException) and never rendered.
0.11.0 #
- no changes yet
0.10.0 #
- Initial release:
AdaptiveCardInvokeRequest, PlainJson and Teams adapters,AdaptiveCardInvokeResponsewithapplyTo,HttpAdaptiveCardBackendClient, andAdaptiveCardBackendHandlers. AdaptiveCardBackendHandlers: optionalonRefreshwired to the same backend invoke path asAction.Execute(viaExecuteActionInvokepayload).