restage_shared 2.0.0
restage_shared: ^2.0.0 copied to clipboard
Pure-Dart Remote Flutter Widget (RFW) catalog format, schemas, validation, and shared value types used across the Restage packages.
Changelog #
2.0.0 #
-
The
data.device.*contract publishesviewPaddingTop,viewPaddingBottom,viewPaddingLeftandviewPaddingRight— the insets the operating system applies regardless of what covers the screen. -
The
data.theme.*contract publishesbrightness, alight/darktoken for the ambient theme's brightness. -
The
data.theme.*contract publishestextTheme.<style>.<field>for the fifteen Material text-theme styles. Each style, anddefaultTextStyle, carries everyTextStylefield a slot holds as a scalar or a list of scalars:color,backgroundColor,fontFamily,fontFamilyFallback,fontSize,fontWeight,fontStyle,letterSpacing,wordSpacing,height,leadingDistribution,textBaseline,overflow,decoration,decorationColor,decorationStyle, anddecorationThickness.shadows,fontFeatures,fontVariations,foreground,background,locale,debugLabel, andinheritare not carried. -
The published
data.device.*contract is shared askDeviceContractPathsandkDeviceContractPathKinds, and gains thelanguageCodeandcountryCodelocale subtags. It also gainsshortestSide,longestSide, andorientation. -
Breaking:
SurfaceExperimentAssignmentand assignment fields on standalone-screen delivery types are removed. Purchase-intent and analytics envelopes no longer include experiment assignment metadata. -
Breaking: the default
restage_shared.dartexport no longer exposes the former commerce types: purchase intents, entitlement synchronization, transaction reporting, offer signatures,RestageProduct,RestageEntitlement, andEntitlementSource. For new provider-neutral requests and responses, importpackage:restage/commerce.dart. -
Breaking: flow documents now support schema version 2 for typed survey declarations. Version 2 carries the ordered
surveyQuestionOrderfield; version 1 remains accepted without that field. -
Breaking: the legacy behavioral-analytics event and wire vocabulary (
AnalyticsEvent,AnalyticsAppContext, the reserved-key and clock-skew helpers, the taxonomy registry, and the wire enums) moves behind thelegacy_analytics.dartentrypoint and leaves the default export. Importpackage:restage_shared/legacy_analytics.dartto keep using it. It retires with the legacy analytics runtime. New code should measure throughpackage:restage_measurement_schema/restage_measurement_schema.dart. -
Breaking: re-export catalog schema v5, where callback property names are open event identities and the closed event-name enum is removed. Decoding a v4 catalog still works.
-
Re-export the pure-Dart A2UI and RFW custom target annotations from the new
a2ui.dartandrfw.dartentrypoints.
1.2.0 #
- Re-export the typed constraint model and nested-data annotations from
rfw_catalog_schema1.2.0.
1.1.0 #
- Additive schema support for upcoming surface work; no breaking changes.
1.0.2 #
- Add flow predicate sugar: the
FlowPredicateOperator/FlowPredicateValueArityvocabulary and related flow-document support for decision-state authoring.
1.0.1 #
- Add a usage example.
1.0.0 #
- Initial public release: the Restage paywall/surface format, schemas, validation, and shared catalog types.
- Vendor
package:rfw1.1.3'sformatssublibrary intolib/src/rfw_formats/(binary.dart,model.dart,text.dart) so the Restage backend can parse.rfwtxtand round-trip.rfwblobs from pure-Dart server images without taking a Flutter SDK dependency. - Add
lib/src/rfw_formats.dartbarrel mirroring upstreampackage:rfw/formats.dart. - Re-export the rfw formats API from the package barrel (
lib/restage_shared.dart). - Reproduce upstream BSD-3-Clause license verbatim at
lib/src/rfw_formats/LICENSE-rfwfor attribution.