@oxy.so/bloom 7.27.0 → 7.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/docs/design-tokens.mdx +20 -16
  2. package/docs/zoomable-media-gallery.mdx +24 -0
  3. package/lib/commonjs/layout/ScrollArea.js +2 -4
  4. package/lib/commonjs/layout/ScrollArea.js.map +1 -1
  5. package/lib/commonjs/multi-agent-chat/ScrollSurface.js +1 -2
  6. package/lib/commonjs/multi-agent-chat/ScrollSurface.js.map +1 -1
  7. package/lib/commonjs/styles/styled-primitives.js +2 -1
  8. package/lib/commonjs/styles/styled-primitives.js.map +1 -1
  9. package/lib/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.js +27 -12
  10. package/lib/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.js.map +1 -1
  11. package/lib/module/layout/ScrollArea.js +2 -4
  12. package/lib/module/layout/ScrollArea.js.map +1 -1
  13. package/lib/module/multi-agent-chat/ScrollSurface.js +1 -2
  14. package/lib/module/multi-agent-chat/ScrollSurface.js.map +1 -1
  15. package/lib/module/styles/styled-primitives.js +2 -1
  16. package/lib/module/styles/styled-primitives.js.map +1 -1
  17. package/lib/module/zoomable-media-gallery/ZoomableMediaGalleryBase.js +27 -12
  18. package/lib/module/zoomable-media-gallery/ZoomableMediaGalleryBase.js.map +1 -1
  19. package/lib/typescript/commonjs/accordion/Accordion.d.ts +25 -14
  20. package/lib/typescript/commonjs/accordion/Accordion.d.ts.map +1 -1
  21. package/lib/typescript/commonjs/collapsible/CollapsibleFrame.d.ts +7 -4
  22. package/lib/typescript/commonjs/collapsible/CollapsibleFrame.d.ts.map +1 -1
  23. package/lib/typescript/commonjs/layout/ScrollArea.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/multi-agent-chat/ScrollSurface.d.ts.map +1 -1
  25. package/lib/typescript/commonjs/rating/RatingBar.d.ts +16 -7
  26. package/lib/typescript/commonjs/rating/RatingBar.d.ts.map +1 -1
  27. package/lib/typescript/commonjs/stat-bar/Meter.d.ts +10 -5
  28. package/lib/typescript/commonjs/stat-bar/Meter.d.ts.map +1 -1
  29. package/lib/typescript/commonjs/styles/styled-primitives.d.ts.map +1 -1
  30. package/lib/typescript/commonjs/text-field/FieldBox.d.ts +5 -1
  31. package/lib/typescript/commonjs/text-field/FieldBox.d.ts.map +1 -1
  32. package/lib/typescript/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.d.ts.map +1 -1
  33. package/lib/typescript/commonjs/zoomable-media-gallery/types.d.ts +6 -0
  34. package/lib/typescript/commonjs/zoomable-media-gallery/types.d.ts.map +1 -1
  35. package/lib/typescript/module/accordion/Accordion.d.ts +25 -14
  36. package/lib/typescript/module/accordion/Accordion.d.ts.map +1 -1
  37. package/lib/typescript/module/collapsible/CollapsibleFrame.d.ts +7 -4
  38. package/lib/typescript/module/collapsible/CollapsibleFrame.d.ts.map +1 -1
  39. package/lib/typescript/module/layout/ScrollArea.d.ts.map +1 -1
  40. package/lib/typescript/module/multi-agent-chat/ScrollSurface.d.ts.map +1 -1
  41. package/lib/typescript/module/rating/RatingBar.d.ts +16 -7
  42. package/lib/typescript/module/rating/RatingBar.d.ts.map +1 -1
  43. package/lib/typescript/module/stat-bar/Meter.d.ts +10 -5
  44. package/lib/typescript/module/stat-bar/Meter.d.ts.map +1 -1
  45. package/lib/typescript/module/styles/styled-primitives.d.ts.map +1 -1
  46. package/lib/typescript/module/text-field/FieldBox.d.ts +5 -1
  47. package/lib/typescript/module/text-field/FieldBox.d.ts.map +1 -1
  48. package/lib/typescript/module/zoomable-media-gallery/ZoomableMediaGalleryBase.d.ts.map +1 -1
  49. package/lib/typescript/module/zoomable-media-gallery/types.d.ts +6 -0
  50. package/lib/typescript/module/zoomable-media-gallery/types.d.ts.map +1 -1
  51. package/package.json +4 -4
  52. package/src/layout/ScrollArea.tsx +2 -4
  53. package/src/multi-agent-chat/ScrollSurface.tsx +1 -4
  54. package/src/styles/styled-primitives.ts +3 -2
  55. package/src/zoomable-media-gallery/ZoomableMediaGalleryBase.tsx +27 -13
  56. package/src/zoomable-media-gallery/types.ts +6 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollSurface.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/ScrollSurface.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAoB,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAY,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAmB1E,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,OAAqB,EACrB,SAAS,EACT,KAAK,EACL,UAAkB,EAClB,MAAM,EAAE,OAAO,EACf,GAAG,KAAK,EACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;IAC3C,SAAS,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,eAAe,2CAkFlB"}
1
+ {"version":3,"file":"ScrollSurface.d.ts","sourceRoot":"","sources":["../../../../src/multi-agent-chat/ScrollSurface.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAoB,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAY,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAgB1E,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,OAAqB,EACrB,SAAS,EACT,KAAK,EACL,UAAkB,EAClB,MAAM,EAAE,OAAO,EACf,GAAG,KAAK,EACT,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;IAC3C,SAAS,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,eAAe,2CAkFlB"}
@@ -1,14 +1,23 @@
1
1
  import React from 'react';
2
2
  import { type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
3
3
  import type { RatingBarProps } from './types';
4
- export declare const RatingBar: React.MemoExoticComponent<(props: import("react-native-css").StyledProps<RatingBarProps & {
4
+ export declare const RatingBar: React.MemoExoticComponent<React.ComponentClass<RatingBarProps & {
5
5
  labelStyle?: StyleProp<TextStyle>;
6
6
  displayStyle?: StyleProp<TextStyle>;
7
7
  trackStyle?: StyleProp<ViewStyle>;
8
- }, {
9
- readonly className: "style";
10
- readonly labelClassName: "labelStyle";
11
- readonly displayClassName: "displayStyle";
12
- readonly trackClassName: "trackStyle";
13
- }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>;
8
+ } & {
9
+ readonly className?: string | undefined;
10
+ readonly labelClassName?: string | undefined;
11
+ readonly displayClassName?: string | undefined;
12
+ readonly trackClassName?: string | undefined;
13
+ }, any> | React.FunctionComponent<RatingBarProps & {
14
+ labelStyle?: StyleProp<TextStyle>;
15
+ displayStyle?: StyleProp<TextStyle>;
16
+ trackStyle?: StyleProp<ViewStyle>;
17
+ } & {
18
+ readonly className?: string | undefined;
19
+ readonly labelClassName?: string | undefined;
20
+ readonly displayClassName?: string | undefined;
21
+ readonly trackClassName?: string | undefined;
22
+ }>>;
14
23
  //# sourceMappingURL=RatingBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RatingBar.d.ts","sourceRoot":"","sources":["../../../../src/rating/RatingBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0E9C,eAAO,MAAM,SAAS;iBAjDP,SAAS,CAAC,SAAS,CAAC;mBAAiB,SAAS,CAAC,SAAS,CAAC;iBAAe,SAAS,CAAC,SAAS,CAAC;;;;;;8FAiDoE,CAAC"}
1
+ {"version":3,"file":"RatingBar.d.ts","sourceRoot":"","sources":["../../../../src/rating/RatingBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0E9C,eAAO,MAAM,SAAS;iBAjDP,SAAS,CAAC,SAAS,CAAC;mBAAiB,SAAS,CAAC,SAAS,CAAC;iBAAe,SAAS,CAAC,SAAS,CAAC;;;;;;;iBAA5F,SAAS,CAAC,SAAS,CAAC;mBAAiB,SAAS,CAAC,SAAS,CAAC;iBAAe,SAAS,CAAC,SAAS,CAAC;;;;;;GAiDoE,CAAC"}
@@ -1,10 +1,15 @@
1
1
  import React from 'react';
2
2
  import { type StyleProp, type ViewStyle } from 'react-native';
3
3
  import type { AnyMeterProps } from './types';
4
- export declare const Meter: React.MemoExoticComponent<(props: import("react-native-css").StyledProps<AnyMeterProps & {
4
+ export declare const Meter: React.MemoExoticComponent<React.ComponentClass<(AnyMeterProps & {
5
5
  fillStyle?: StyleProp<ViewStyle>;
6
- }, {
7
- readonly className: "style";
8
- readonly fillClassName: "fillStyle";
9
- }>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>;
6
+ }) & {
7
+ readonly className?: string | undefined;
8
+ readonly fillClassName?: string | undefined;
9
+ }, any> | React.FunctionComponent<(AnyMeterProps & {
10
+ fillStyle?: StyleProp<ViewStyle>;
11
+ }) & {
12
+ readonly className?: string | undefined;
13
+ readonly fillClassName?: string | undefined;
14
+ }>>;
10
15
  //# sourceMappingURL=Meter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Meter.d.ts","sourceRoot":"","sources":["../../../../src/stat-bar/Meter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAExD,OAAO,EAA4B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAYxF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA0G7C,eAAO,MAAM,KAAK;gBAjF2C,SAAS,CAAC,SAAS,CAAC;;;;8FAiFoB,CAAC"}
1
+ {"version":3,"file":"Meter.d.ts","sourceRoot":"","sources":["../../../../src/stat-bar/Meter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAExD,OAAO,EAA4B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAYxF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA0G7C,eAAO,MAAM,KAAK;gBAjF2C,SAAS,CAAC,SAAS,CAAC;;;;;gBAApB,SAAS,CAAC,SAAS,CAAC;;;;GAiFoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styled-primitives.d.ts","sourceRoot":"","sources":["../../../../src/styles/styled-primitives.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EACL,KAAK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GAAG,CAAC,KAAK,CAAC,CAAA;CAAE,CAEvE,CAAC;AAGH,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC,oBAAoB,CAG/D,CAAC"}
@@ -14,6 +14,10 @@ interface FieldBoxProps {
14
14
  testID?: string;
15
15
  }
16
16
  declare function FieldBoxComponent({ children, className, style, baseStyle, stateStyle, dir, pointerEvents, onClick, onMouseOver, onMouseOut, testID }: FieldBoxProps): import("react/jsx-runtime").JSX.Element;
17
- export declare const FieldBox: typeof FieldBoxComponent;
17
+ export declare const FieldBox: typeof FieldBoxComponent | (React.ComponentClass<FieldBoxProps & {
18
+ readonly className?: string | undefined;
19
+ }, any> | React.FunctionComponent<FieldBoxProps & {
20
+ readonly className?: string | undefined;
21
+ }>);
18
22
  export {};
19
23
  //# sourceMappingURL=FieldBox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldBox.d.ts","sourceRoot":"","sources":["../../../../src/text-field/FieldBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAc9E,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,C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Base.d.ts","sourceRoot":"","sources":["../../../../src/zoomable-media-gallery/ZoomableMediaGalleryBase.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6E,MAAM,OAAO,CAAC;AA+BlG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAoCnD,OAAO,KAAK,EAGV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAwDjB,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,gHAuhClF"}
1
+ {"version":3,"file":"ZoomableMediaGalleryBase.d.ts","sourceRoot":"","sources":["../../../../src/zoomable-media-gallery/ZoomableMediaGalleryBase.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA6E,MAAM,OAAO,CAAC;AA+BlG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAoCnD,OAAO,KAAK,EAGV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAwDjB,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,gHAqiClF"}
@@ -81,6 +81,12 @@ export interface ZoomableMediaGalleryProps {
81
81
  appearance?: 'overlay' | 'page';
82
82
  /** Zero-based media index, emitted on opening and once per actual page change. */
83
83
  onIndexChange?: (index: number) => void;
84
+ /**
85
+ * Reports an accepted opening and completion of the closing transition.
86
+ * Also reports false if an open viewer unmounts. No initial false event.
87
+ * Use this to coordinate consumer-owned video players with inline views.
88
+ */
89
+ onOpenChange?: (open: boolean) => void;
84
90
  /** Overrides any of the viewer's names. */
85
91
  labels?: Partial<ZoomableMediaGalleryLabels>;
86
92
  /** Measures any thumbnail by its media subset index, used on dismiss. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/zoomable-media-gallery/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,iBA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AAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,IAAI,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;CAC3E;AAED,mGAAmG;AACnG,MAAM,WAAW,0BAA0B;IACzC,4FAA4F;IAC5F,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,0FAA0F;IAC1F,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,yBAAyB;IACxC,oFAAoF;IACpF,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAChC,kFAAkF;IAClF,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,2CAA2C;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC7C,yEAAyE;IACzE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACjC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACzC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/bloom",
3
- "version": "7.27.0",
3
+ "version": "7.29.0",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
6
6
  "main": "lib/commonjs/index.js",
@@ -3576,7 +3576,7 @@
3576
3576
  "expo-video": "~57.0.2",
3577
3577
  "jest": "^30.3.0",
3578
3578
  "jest-environment-jsdom": "^30.4.1",
3579
- "nativewind": "5.0.0-preview.3",
3579
+ "nativewind": "5.0.0-rc.0",
3580
3580
  "react": "19.2.0",
3581
3581
  "react-dom": "19.2.0",
3582
3582
  "react-native": "0.83.2",
@@ -3609,7 +3609,7 @@
3609
3609
  "expo-symbols": ">=0.4.5",
3610
3610
  "expo-video": "*",
3611
3611
  "lottie-react-native": ">=7.0.0",
3612
- "nativewind": ">=5.0.0",
3612
+ "nativewind": ">=5.0.0 || 5.0.0-rc.0",
3613
3613
  "react": ">=18.0.0",
3614
3614
  "react-dom": ">=18.0.0",
3615
3615
  "react-native": ">=0.73.0",
@@ -3686,7 +3686,7 @@
3686
3686
  },
3687
3687
  "dependencies": {
3688
3688
  "@tanstack/react-virtual": "^3.14.3",
3689
- "react-native-css": "3.0.7",
3689
+ "react-native-css": "3.1.0-rc.0",
3690
3690
  "react-remove-scroll-bar": "^2.3.8"
3691
3691
  },
3692
3692
  "overrides": {
@@ -10,10 +10,8 @@ export interface ScrollAreaProps extends ScrollViewProps {
10
10
  contentContainerClassName?: string;
11
11
  }
12
12
 
13
- // Narrow only the styled mapping input to avoid ScrollViewProps' recursive
14
- // dot-path union. The public component retains the complete ScrollView contract.
15
- const ScrollAreaBase: ComponentType<Pick<ScrollViewProps, 'style' | 'contentContainerStyle'>> = ScrollView;
16
- const StyledScrollView: ComponentType<ScrollAreaProps & { ref?: Ref<ScrollView> }> = styled(ScrollAreaBase, {
13
+ // Preserve the native instance type so styled forwards the imperative ref.
14
+ const StyledScrollView: ComponentType<ScrollAreaProps & { ref?: Ref<ScrollView> }> = styled(ScrollView, {
17
15
  className: 'style',
18
16
  contentContainerClassName: 'contentContainerStyle',
19
17
  });
@@ -5,16 +5,13 @@ import { EdgeScrim } from '../page-header/EdgeScrim';
5
5
  import { StyledView } from '../styles/styled-primitives';
6
6
  import type { WebCssStyle } from '../styles/web-view-style';
7
7
  import { useTheme } from '../theme/use-theme';
8
- const ScrollSurfaceBase: React.ComponentType<
9
- Pick<ScrollViewProps, 'style' | 'contentContainerStyle'>
10
- > = ScrollView;
11
8
  const StyledScrollView: React.ComponentType<
12
9
  ScrollViewProps & {
13
10
  className?: string;
14
11
  contentContainerClassName?: string;
15
12
  ref?: Ref<ScrollView>;
16
13
  }
17
- > = styled(ScrollSurfaceBase, {
14
+ > = styled(ScrollView, {
18
15
  className: 'style',
19
16
  contentContainerClassName: 'contentContainerStyle',
20
17
  });
@@ -22,7 +22,7 @@
22
22
  * versions stay unanimated so an element type is not created twice for the same
23
23
  * primitive. `button/Button.tsx` is the reference.
24
24
  */
25
- import type { ComponentType, Ref } from 'react';
25
+ import type { ComponentType, ForwardRefExoticComponent, Ref, RefAttributes } from 'react';
26
26
  import {
27
27
  Image,
28
28
  Pressable,
@@ -121,7 +121,8 @@ export const StyledImage: ComponentType<ImageProps & { ref?: Ref<Image> }> = sty
121
121
  className: 'style',
122
122
  });
123
123
 
124
+ const PressableBase: ForwardRefExoticComponent<StyledPressableBase & RefAttributes<View>> = Pressable;
124
125
  export const StyledPressable: ComponentType<StyledPressableProps> = styled(
125
- Pressable as ComponentType<StyledPressableBase>,
126
+ PressableBase,
126
127
  { className: 'style' },
127
128
  );
@@ -184,7 +184,7 @@ function resolveCornerRadius(cornerRadius: number | 'circle', fit: FittedSize):
184
184
  * `expo-video` is an OPTIONAL peer loaded through `media-flight/expo-video-module`.
185
185
  * Without it a video page degrades to its poster, once, with a dev warning.
186
186
  */
187
- const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, ZoomableMediaGalleryProps>(({ appearance = 'overlay', onIndexChange, measureThumb, cornerRadius = DEFAULT_CORNER_RADIUS, indicatorVariant = 'dots', videoControls = false, labels: labelsProp }, ref) => {
187
+ const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, ZoomableMediaGalleryProps>(({ appearance = 'overlay', onIndexChange, onOpenChange, measureThumb, cornerRadius = DEFAULT_CORNER_RADIUS, indicatorVariant = 'dots', videoControls = false, labels: labelsProp }, ref) => {
188
188
  const { messages } = useMessages(ZOOMABLE_MEDIA_GALLERY_MESSAGES);
189
189
  const themeContext = React.useContext(BloomThemeContext);
190
190
  if (appearance === 'page' && !themeContext) {
@@ -198,6 +198,14 @@ const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, Z
198
198
  const pageColors = pagePalette ? { background: pagePalette.backgroundSecondary, foreground: pagePalette.text } : undefined;
199
199
  const onIndexChangeRef = useRef(onIndexChange);
200
200
  onIndexChangeRef.current = onIndexChange;
201
+ const onOpenChangeRef = useRef(onOpenChange);
202
+ onOpenChangeRef.current = onOpenChange;
203
+ const openRef = useRef(false);
204
+ const reportOpen = useCallback((next: boolean) => {
205
+ if (openRef.current === next) return;
206
+ openRef.current = next;
207
+ onOpenChangeRef.current?.(next);
208
+ }, []);
201
209
  const labels = useMemo(() => ({ ...messages, ...labelsProp }), [messages, labelsProp]);
202
210
  const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = useWindowDimensions();
203
211
  // The viewer is full-bleed, so its chrome must clear the status bar, the
@@ -294,16 +302,20 @@ const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, Z
294
302
  pendingRef.current.add(handle);
295
303
  }, []);
296
304
  useEffect(
297
- () => () => {
298
- unmountedRef.current = true;
299
- for (const handle of pendingRef.current) clearTimeout(handle);
300
- pendingRef.current.clear();
301
- if (frameRef.current !== null) {
302
- cancelAnimationFrame(frameRef.current);
303
- frameRef.current = null;
304
- }
305
+ () => {
306
+ unmountedRef.current = false;
307
+ return () => {
308
+ unmountedRef.current = true;
309
+ reportOpen(false);
310
+ for (const handle of pendingRef.current) clearTimeout(handle);
311
+ pendingRef.current.clear();
312
+ if (frameRef.current !== null) {
313
+ cancelAnimationFrame(frameRef.current);
314
+ frameRef.current = null;
315
+ }
316
+ };
305
317
  },
306
- [],
318
+ [reportOpen],
307
319
  );
308
320
 
309
321
  // Single writer for the current index: updates state (drives indicator + open
@@ -396,7 +408,8 @@ const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, Z
396
408
  translateX.value = 0;
397
409
  translateY.value = 0;
398
410
  opacity.value = 0;
399
- }, [opacity, scale, translateX, translateY]);
411
+ reportOpen(false);
412
+ }, [opacity, reportOpen, scale, translateX, translateY]);
400
413
 
401
414
  // Fly the (possibly dragged) media back toward `target` — the rect of the
402
415
  // thumbnail currently being viewed — shrinking to its footprint. Uses the
@@ -493,7 +506,7 @@ const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, Z
493
506
 
494
507
  const open = useCallback(
495
508
  (nextItems: GalleryMedia[], index: number, rect?: MeasuredRect) => {
496
- if (isOpen || nextItems.length === 0) return;
509
+ if (openRef.current || unmountedRef.current || nextItems.length === 0) return;
497
510
  dismissingRef.current = false;
498
511
  const safeIndex = Math.min(Math.max(index, 0), nextItems.length - 1);
499
512
  const target = nextItems[safeIndex];
@@ -542,6 +555,7 @@ const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, Z
542
555
  }
543
556
 
544
557
  setIsOpen(true);
558
+ reportOpen(true);
545
559
  translateX.value = originX.value;
546
560
  translateY.value = originY.value;
547
561
  scale.value = originScale.value;
@@ -569,7 +583,6 @@ const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, Z
569
583
  }
570
584
  },
571
585
  [
572
- isOpen,
573
586
  SCREEN_WIDTH,
574
587
  SCREEN_HEIGHT,
575
588
  fitForRatio,
@@ -578,6 +591,7 @@ const ZoomableMediaGalleryInner = React.forwardRef<ZoomableMediaGalleryHandle, Z
578
591
  originX,
579
592
  originY,
580
593
  revealPager,
594
+ reportOpen,
581
595
  scale,
582
596
  schedule,
583
597
  setActiveIndexBoth,
@@ -93,6 +93,12 @@ export interface ZoomableMediaGalleryProps {
93
93
  appearance?: 'overlay' | 'page';
94
94
  /** Zero-based media index, emitted on opening and once per actual page change. */
95
95
  onIndexChange?: (index: number) => void;
96
+ /**
97
+ * Reports an accepted opening and completion of the closing transition.
98
+ * Also reports false if an open viewer unmounts. No initial false event.
99
+ * Use this to coordinate consumer-owned video players with inline views.
100
+ */
101
+ onOpenChange?: (open: boolean) => void;
96
102
  /** Overrides any of the viewer's names. */
97
103
  labels?: Partial<ZoomableMediaGalleryLabels>;
98
104
  /** Measures any thumbnail by its media subset index, used on dismiss. */