v0.4.1
Dead-export trim. Files that are still used internally (variant system,
cn, spacing, typography, WIDGET_Z, format-value, interpret-value,
entity-aggregation, empty-state type, to-form-schema) remain in the
source tree but are no longer re-exported from the public package surface.
Bundle dropped from 70.56 kB to 50.74 kB (gzip 19.40 kB to 14.97 kB).
Removed
- Variant system public exports.
builtInVariants,classicGlass,
compactHorizontal,minimal,applyCssVars,applyLayout,
composeVariants,createFlexLayout,extendVariant,getBuiltInVariant,
getBuiltInVariantIds,isBuiltInVariant,mergeVariants. The
framework/variants/directory stays in-tree becauseWidget.tsxand three
internal widgets still resolvevariant="classic-glass"through it; the
variants are simply no longer part of the published API. - Theming color palette.
colors.tsand its exports (GRADIENT_NAMES,
GRADIENT_PRESET_KEYS,GRADIENT_PRESETS,GradientPreset,getGradient,
getGradientFromString,gradientColorPresets,stateColors,
WidgetColorPreset). The channel API (tone/color/colorTo/gradient)
on<Widget>is the only supported color path. - Dead components.
WidgetSubtitle,WidgetMetrics,WidgetEmptyState
component,WidgetStacklayout,Glowbackground.Widget.Subtitle,
Widget.Metrics,Widget.EmptyStatecompound members are detached from
Widget. TheemptyStateprop on<Widget>still renders the inline
empty-state UI. - Dead hooks.
useDebugData,useWidgetConfig,useWidgetEntity,
useWidgetForm,useWidgetResponsive, plus their option/return types.
warnIfStubis no longer exported (the helper itself is removed). - Dead utils.
cn,formatValue,interpretValue,createEmptyStateConfig
and theEmptyStateConfigOptions/WidgetEmptyStateConfigtypes from
the public surface;isEntityAvailable,getEntityState,
countEntitiesByState,countAvailableEntities,allEntitiesInState,
anyEntityInStateremoved entirely.getEntityAttribute,
isEntityActive,countActiveEntitiesremain. - Design system exports.
spacing,getSpacingClass,typography,
WIDGET_Z,WidgetZIndexun-exported. Files stay in-tree because internal
components still consume them. createEntityandEntitytype. The signal infrastructure was dead
legacy from before the sync-layer port. Widgets read entities from
useWidgetEntityGrouporEntityViewprops.getThemeToken. OnlyisDarkremains intheme.ts.- Schema exports.
PublishBodySchema,PublishConfirmSchema,
PublishRequestSchema,GridSizeSchema,parseGridSize,
serializeGridSizeremoved from the root entry. The dedicated
@glasshome/widget-sdk/schemassubpath still exports
WidgetManifestSchemaandformatSchemaError. toFormSchemaandextractDefaults. Used internally by
define-widget.tsandWidgetDialog.tsx; no longer part of the public
surface (file stays in-tree).- Public type surface trim.
AbsoluteLayoutStrategy,BaseComponentProps,
CustomLayoutStrategy,ElementConfig,FlexLayoutStrategy,
GestureConfig,GradientConfig,GridLayoutStrategy,HoldGestureConfig,
ImageOverlay,InteractionConfig,LayoutStrategy,PositionConfig,
SlideGestureConfig,SpacingScale,VariantPlugins,VariantRegistry,
WidgetElement,WidgetVariant,AggregationPreset(kept as it's still
exported via hooks foruseWidgetEntityGroup).GradientConfig,
ImageOverlay,BaseComponentProps,WidgetVariantremoved from the
source file. The rest stay internal forvariants/,gestures/,
design-system/.