Skip to content

Commit 2f472d5

Browse files
committed
chore: release v0.15.0
1 parent 4b058a8 commit 2f472d5

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.15.0] - 2025-11-25
11+
12+
### Added
13+
14+
- **Map Component Features**:
15+
- **Display Mode Synchronization**: Map component now automatically syncs with ChatGPT's `displayMode` changes
16+
- Uses `useDisplayMode()` hook to listen for display mode changes from ChatGPT
17+
- Clicking ChatGPT's X button automatically collapses the map to compact view
18+
- Two-way sync: widget responds to both internal and external display mode changes
19+
- Only syncs in uncontrolled mode (respects external state management)
20+
- **Auto-Expand on Carousel Click**: New `autoExpandOnCarouselClick` prop for Map component
21+
- Automatically expands to fullscreen when user clicks a carousel card
22+
- Provides faster access to detailed location information (one click instead of two)
23+
- Default: `false` (opt-in behavior)
24+
- **Popup Control**: New `showPopup` prop to disable marker popup bubbles
25+
- Useful when using external UI like Inspector panels or sidebars for location details
26+
- Default: `true` (popups enabled)
27+
- **Scroll Wheel Zoom Control**: New `scrollWheelZoom` prop for zoom behavior customization
28+
- `true`: Native Leaflet scroll zoom (best for fullscreen maps)
29+
- `false`: Custom pinch-to-zoom for embedded maps (default)
30+
- **Custom Marker Rendering**: New `renderMarker` API for customizing map markers
31+
- Supports React components for markers
32+
- Global styling, per-location customization, and hybrid modes
33+
- Performance optimized with proper cleanup
34+
35+
### Changed
36+
37+
- **Storybook Documentation**:
38+
- Updated Map component docs to document display mode sync behavior
39+
- Added ChatGPT Apps SDK Integration section explaining automatic sync
40+
- Documented new interaction control props (showPopup, scrollWheelZoom, autoExpandOnCarouselClick)
41+
- Added examples for custom marker rendering
42+
43+
### Fixed
44+
45+
- **Map Display Mode Bug**: Fixed issue where clicking ChatGPT's X button didn't collapse the Map component
46+
- Previously: Map stayed in fullscreen mode when ChatGPT's displayMode changed to 'inline'
47+
- Now: Map automatically collapses to compact view when ChatGPT closes fullscreen
48+
- Root cause: Map wasn't listening to ChatGPT's displayMode changes
49+
- Solution: Added useDisplayMode() hook with useEffect to sync internal state
50+
1051
## [0.14.0] - 2025-11-24
1152

1253
### Breaking Changes

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ainativekit/ui",
3-
"version": "0.14.0",
3+
"version": "0.15.0",
44
"description": "React UI component library for ChatGPT Apps SDK - Production-ready components, hooks, and design system",
55
"type": "module",
66
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)