@oxyhq/bloom 1.0.6 → 1.2.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.
- package/docs/level-picker.mdx +105 -0
- package/docs/media-flight.mdx +272 -0
- package/docs/migrating-the-media-gallery.mdx +103 -0
- package/docs/migrating-to-1.0.mdx +1 -1
- package/docs/slider.mdx +3 -1
- package/docs/zoomable-media-gallery.mdx +116 -0
- package/lib/commonjs/floating/index.js.map +1 -1
- package/lib/commonjs/image-aspect-ratio-cache/aspect-ratio-cache.js +1 -1
- package/lib/commonjs/index.js +8 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +33 -25
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/level-picker/LevelPicker.js +349 -0
- package/lib/commonjs/level-picker/LevelPicker.js.map +1 -0
- package/lib/commonjs/level-picker/LevelPicker.web.js +346 -0
- package/lib/commonjs/level-picker/LevelPicker.web.js.map +1 -0
- package/lib/commonjs/level-picker/constants.js +137 -0
- package/lib/commonjs/level-picker/constants.js.map +1 -0
- package/lib/commonjs/level-picker/index.js +13 -0
- package/lib/commonjs/level-picker/index.js.map +1 -0
- package/lib/commonjs/level-picker/index.web.js +13 -0
- package/lib/commonjs/level-picker/index.web.js.map +1 -0
- package/lib/commonjs/level-picker/types.js +6 -0
- package/lib/commonjs/level-picker/types.js.map +1 -0
- package/lib/commonjs/media-flight/MediaFlightLayer.js +151 -0
- package/lib/commonjs/media-flight/MediaFlightLayer.js.map +1 -0
- package/lib/commonjs/media-flight/MediaSurface.js +188 -0
- package/lib/commonjs/media-flight/MediaSurface.js.map +1 -0
- package/lib/commonjs/media-flight/constants.js +39 -0
- package/lib/commonjs/media-flight/constants.js.map +1 -0
- package/lib/commonjs/media-flight/expo-video-module.js +148 -0
- package/lib/commonjs/media-flight/expo-video-module.js.map +1 -0
- package/lib/commonjs/media-flight/index.js +102 -0
- package/lib/commonjs/media-flight/index.js.map +1 -0
- package/lib/commonjs/media-flight/store.js +457 -0
- package/lib/commonjs/media-flight/store.js.map +1 -0
- package/lib/commonjs/media-flight/types.js +6 -0
- package/lib/commonjs/media-flight/types.js.map +1 -0
- package/lib/commonjs/media-flight/use-media-flight.js +41 -0
- package/lib/commonjs/media-flight/use-media-flight.js.map +1 -0
- package/lib/commonjs/tab-bar/TabBarBase.js +1 -1
- package/lib/commonjs/{zoomable-image-gallery/ZoomableImageGallery.js → zoomable-media-gallery/ZoomableMediaGallery.js} +185 -131
- package/lib/commonjs/zoomable-media-gallery/ZoomableMediaGallery.js.map +1 -0
- package/lib/commonjs/{zoomable-image-gallery → zoomable-media-gallery}/constants.js.map +1 -1
- package/lib/commonjs/{zoomable-image-gallery → zoomable-media-gallery}/index.js +5 -5
- package/lib/commonjs/{zoomable-image-gallery → zoomable-media-gallery}/index.js.map +1 -1
- package/lib/commonjs/zoomable-media-gallery/types.js +6 -0
- package/lib/commonjs/{zoomable-image-gallery → zoomable-media-gallery}/types.js.map +1 -1
- package/lib/module/floating/index.js +5 -0
- package/lib/module/floating/index.js.map +1 -1
- package/lib/module/image-aspect-ratio-cache/aspect-ratio-cache.js +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +3 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/level-picker/LevelPicker.js +343 -0
- package/lib/module/level-picker/LevelPicker.js.map +1 -0
- package/lib/module/level-picker/LevelPicker.web.js +340 -0
- package/lib/module/level-picker/LevelPicker.web.js.map +1 -0
- package/lib/module/level-picker/constants.js +131 -0
- package/lib/module/level-picker/constants.js.map +1 -0
- package/lib/module/level-picker/index.js +4 -0
- package/lib/module/level-picker/index.js.map +1 -0
- package/lib/module/level-picker/index.web.js +4 -0
- package/lib/module/level-picker/index.web.js.map +1 -0
- package/lib/module/level-picker/types.js +4 -0
- package/lib/module/level-picker/types.js.map +1 -0
- package/lib/module/media-flight/MediaFlightLayer.js +146 -0
- package/lib/module/media-flight/MediaFlightLayer.js.map +1 -0
- package/lib/module/media-flight/MediaSurface.js +180 -0
- package/lib/module/media-flight/MediaSurface.js.map +1 -0
- package/lib/module/media-flight/constants.js +35 -0
- package/lib/module/media-flight/constants.js.map +1 -0
- package/lib/module/media-flight/expo-video-module.js +142 -0
- package/lib/module/media-flight/expo-video-module.js.map +1 -0
- package/lib/module/media-flight/index.js +9 -0
- package/lib/module/media-flight/index.js.map +1 -0
- package/lib/module/media-flight/store.js +439 -0
- package/lib/module/media-flight/store.js.map +1 -0
- package/lib/module/media-flight/types.js +4 -0
- package/lib/module/media-flight/types.js.map +1 -0
- package/lib/module/media-flight/use-media-flight.js +36 -0
- package/lib/module/media-flight/use-media-flight.js.map +1 -0
- package/lib/module/tab-bar/TabBarBase.js +1 -1
- package/lib/module/{zoomable-image-gallery/ZoomableImageGallery.js → zoomable-media-gallery/ZoomableMediaGallery.js} +184 -130
- package/lib/module/zoomable-media-gallery/ZoomableMediaGallery.js.map +1 -0
- package/lib/module/{zoomable-image-gallery → zoomable-media-gallery}/constants.js.map +1 -1
- package/lib/module/zoomable-media-gallery/index.js +5 -0
- package/lib/module/zoomable-media-gallery/index.js.map +1 -0
- package/lib/module/zoomable-media-gallery/types.js +4 -0
- package/lib/module/{zoomable-image-gallery → zoomable-media-gallery}/types.js.map +1 -1
- package/lib/typescript/commonjs/floating/index.d.ts +5 -0
- package/lib/typescript/commonjs/floating/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +2 -0
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/level-picker/LevelPicker.d.ts +6 -0
- package/lib/typescript/commonjs/level-picker/LevelPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/level-picker/LevelPicker.web.d.ts +6 -0
- package/lib/typescript/commonjs/level-picker/LevelPicker.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/level-picker/constants.d.ts +93 -0
- package/lib/typescript/commonjs/level-picker/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/level-picker/index.d.ts +3 -0
- package/lib/typescript/commonjs/level-picker/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/level-picker/index.web.d.ts +3 -0
- package/lib/typescript/commonjs/level-picker/index.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/level-picker/types.d.ts +63 -0
- package/lib/typescript/commonjs/level-picker/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/media-flight/MediaFlightLayer.d.ts +11 -0
- package/lib/typescript/commonjs/media-flight/MediaFlightLayer.d.ts.map +1 -0
- package/lib/typescript/commonjs/media-flight/MediaSurface.d.ts +106 -0
- package/lib/typescript/commonjs/media-flight/MediaSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/media-flight/constants.d.ts +18 -0
- package/lib/typescript/commonjs/media-flight/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/media-flight/expo-video-module.d.ts +103 -0
- package/lib/typescript/commonjs/media-flight/expo-video-module.d.ts.map +1 -0
- package/lib/typescript/commonjs/media-flight/index.d.ts +9 -0
- package/lib/typescript/commonjs/media-flight/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/media-flight/store.d.ts +132 -0
- package/lib/typescript/commonjs/media-flight/store.d.ts.map +1 -0
- package/lib/typescript/commonjs/media-flight/types.d.ts +195 -0
- package/lib/typescript/commonjs/media-flight/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/media-flight/use-media-flight.d.ts +4 -0
- package/lib/typescript/commonjs/media-flight/use-media-flight.d.ts.map +1 -0
- package/lib/typescript/commonjs/zoomable-media-gallery/ZoomableMediaGallery.d.ts +5 -0
- package/lib/typescript/commonjs/zoomable-media-gallery/ZoomableMediaGallery.d.ts.map +1 -0
- package/lib/typescript/commonjs/{zoomable-image-gallery → zoomable-media-gallery}/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/zoomable-media-gallery/index.d.ts +4 -0
- package/lib/typescript/commonjs/{zoomable-image-gallery → zoomable-media-gallery}/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/zoomable-media-gallery/types.d.ts +90 -0
- package/lib/typescript/commonjs/zoomable-media-gallery/types.d.ts.map +1 -0
- package/lib/typescript/module/floating/index.d.ts +5 -0
- package/lib/typescript/module/floating/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +2 -0
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/level-picker/LevelPicker.d.ts +6 -0
- package/lib/typescript/module/level-picker/LevelPicker.d.ts.map +1 -0
- package/lib/typescript/module/level-picker/LevelPicker.web.d.ts +6 -0
- package/lib/typescript/module/level-picker/LevelPicker.web.d.ts.map +1 -0
- package/lib/typescript/module/level-picker/constants.d.ts +93 -0
- package/lib/typescript/module/level-picker/constants.d.ts.map +1 -0
- package/lib/typescript/module/level-picker/index.d.ts +3 -0
- package/lib/typescript/module/level-picker/index.d.ts.map +1 -0
- package/lib/typescript/module/level-picker/index.web.d.ts +3 -0
- package/lib/typescript/module/level-picker/index.web.d.ts.map +1 -0
- package/lib/typescript/module/level-picker/types.d.ts +63 -0
- package/lib/typescript/module/level-picker/types.d.ts.map +1 -0
- package/lib/typescript/module/media-flight/MediaFlightLayer.d.ts +11 -0
- package/lib/typescript/module/media-flight/MediaFlightLayer.d.ts.map +1 -0
- package/lib/typescript/module/media-flight/MediaSurface.d.ts +106 -0
- package/lib/typescript/module/media-flight/MediaSurface.d.ts.map +1 -0
- package/lib/typescript/module/media-flight/constants.d.ts +18 -0
- package/lib/typescript/module/media-flight/constants.d.ts.map +1 -0
- package/lib/typescript/module/media-flight/expo-video-module.d.ts +103 -0
- package/lib/typescript/module/media-flight/expo-video-module.d.ts.map +1 -0
- package/lib/typescript/module/media-flight/index.d.ts +9 -0
- package/lib/typescript/module/media-flight/index.d.ts.map +1 -0
- package/lib/typescript/module/media-flight/store.d.ts +132 -0
- package/lib/typescript/module/media-flight/store.d.ts.map +1 -0
- package/lib/typescript/module/media-flight/types.d.ts +195 -0
- package/lib/typescript/module/media-flight/types.d.ts.map +1 -0
- package/lib/typescript/module/media-flight/use-media-flight.d.ts +4 -0
- package/lib/typescript/module/media-flight/use-media-flight.d.ts.map +1 -0
- package/lib/typescript/module/zoomable-media-gallery/ZoomableMediaGallery.d.ts +5 -0
- package/lib/typescript/module/zoomable-media-gallery/ZoomableMediaGallery.d.ts.map +1 -0
- package/lib/typescript/module/{zoomable-image-gallery → zoomable-media-gallery}/constants.d.ts.map +1 -1
- package/lib/typescript/module/zoomable-media-gallery/index.d.ts +4 -0
- package/lib/typescript/module/{zoomable-image-gallery → zoomable-media-gallery}/index.d.ts.map +1 -1
- package/lib/typescript/module/zoomable-media-gallery/types.d.ts +90 -0
- package/lib/typescript/module/zoomable-media-gallery/types.d.ts.map +1 -0
- package/package.json +61 -8
- package/src/floating/index.ts +5 -0
- package/src/image-aspect-ratio-cache/aspect-ratio-cache.ts +1 -1
- package/src/index.ts +4 -1
- package/src/index.web.ts +4 -1
- package/src/level-picker/LevelPicker.tsx +365 -0
- package/src/level-picker/LevelPicker.web.tsx +374 -0
- package/src/level-picker/constants.ts +131 -0
- package/src/level-picker/index.ts +2 -0
- package/src/level-picker/index.web.ts +2 -0
- package/src/level-picker/types.ts +63 -0
- package/src/media-flight/MediaFlightLayer.tsx +144 -0
- package/src/media-flight/MediaSurface.tsx +233 -0
- package/src/media-flight/constants.ts +32 -0
- package/src/media-flight/expo-video-module.ts +181 -0
- package/src/media-flight/index.ts +33 -0
- package/src/media-flight/store.ts +497 -0
- package/src/media-flight/types.ts +210 -0
- package/src/media-flight/use-media-flight.ts +42 -0
- package/src/tab-bar/TabBarBase.tsx +1 -1
- package/src/{zoomable-image-gallery/ZoomableImageGallery.tsx → zoomable-media-gallery/ZoomableMediaGallery.tsx} +192 -117
- package/src/zoomable-media-gallery/index.ts +11 -0
- package/src/zoomable-media-gallery/types.ts +100 -0
- package/docs/zoomable-image-gallery.mdx +0 -66
- package/lib/commonjs/zoomable-image-gallery/ZoomableImageGallery.js.map +0 -1
- package/lib/commonjs/zoomable-image-gallery/types.js +0 -2
- package/lib/module/zoomable-image-gallery/ZoomableImageGallery.js.map +0 -1
- package/lib/module/zoomable-image-gallery/index.js +0 -5
- package/lib/module/zoomable-image-gallery/index.js.map +0 -1
- package/lib/module/zoomable-image-gallery/types.js +0 -2
- package/lib/typescript/commonjs/zoomable-image-gallery/ZoomableImageGallery.d.ts +0 -5
- package/lib/typescript/commonjs/zoomable-image-gallery/ZoomableImageGallery.d.ts.map +0 -1
- package/lib/typescript/commonjs/zoomable-image-gallery/index.d.ts +0 -4
- package/lib/typescript/commonjs/zoomable-image-gallery/types.d.ts +0 -56
- package/lib/typescript/commonjs/zoomable-image-gallery/types.d.ts.map +0 -1
- package/lib/typescript/module/zoomable-image-gallery/ZoomableImageGallery.d.ts +0 -5
- package/lib/typescript/module/zoomable-image-gallery/ZoomableImageGallery.d.ts.map +0 -1
- package/lib/typescript/module/zoomable-image-gallery/index.d.ts +0 -4
- package/lib/typescript/module/zoomable-image-gallery/types.d.ts +0 -56
- package/lib/typescript/module/zoomable-image-gallery/types.d.ts.map +0 -1
- package/src/zoomable-image-gallery/index.ts +0 -9
- package/src/zoomable-image-gallery/types.ts +0 -59
- /package/lib/commonjs/{zoomable-image-gallery → zoomable-media-gallery}/constants.js +0 -0
- /package/lib/module/{zoomable-image-gallery → zoomable-media-gallery}/constants.js +0 -0
- /package/lib/typescript/commonjs/{zoomable-image-gallery → zoomable-media-gallery}/constants.d.ts +0 -0
- /package/lib/typescript/module/{zoomable-image-gallery → zoomable-media-gallery}/constants.d.ts +0 -0
- /package/src/{zoomable-image-gallery → zoomable-media-gallery}/constants.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mapp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AM,oBAAoB,CAAC;AAClE,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAGxB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGtC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG3D,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAG/B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
|
@@ -77,6 +77,8 @@ export { InputGroup, InputGroupAddon } from './input-group';
|
|
|
77
77
|
export type { InputGroupProps, InputGroupAddonProps } from './input-group';
|
|
78
78
|
export { Slider } from './slider';
|
|
79
79
|
export type { SliderProps } from './slider';
|
|
80
|
+
export { LevelPicker } from './level-picker/index.web';
|
|
81
|
+
export type { LevelPickerProps } from './level-picker/index.web';
|
|
80
82
|
export { Combobox } from './combobox/index.web';
|
|
81
83
|
export type { ComboboxProps, ComboboxOption } from './combobox/index.web';
|
|
82
84
|
export { BottomSheet } from './bottom-sheet/index.web';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AAqCA,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKhF,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,MAAM,EACN,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,cAAc,EACd,yBAAyB,EACzB,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,UAAU,GACX,MAAM,iBAAiB,CAAC;AAOzB,cAAc,SAAS,CAAC;AAGxB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,KAAK,KAAK,IAAI,SAAS,EAAE,KAAK,IAAI,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGhG,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC3E,YAAY,EAAE,aA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,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LevelPickerProps } from './types';
|
|
2
|
+
export declare function LevelPicker({ levels, value, onValueChange, accessibilityLabel, minLabel, maxLabel, detailsLabel, expanded, defaultExpanded, onExpandedChange, children, className, style, testID, }: LevelPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace LevelPicker {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=LevelPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LevelPicker.d.ts","sourceRoot":"","sources":["../../../../src/level-picker/LevelPicker.tsx"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAsChD,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,YAAwB,EACxB,QAAQ,EACR,eAAuB,EACvB,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,MAAM,GACP,EAAE,gBAAgB,2CA4PlB;yBA3Qe,WAAW"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LevelPickerProps } from './types';
|
|
2
|
+
export declare function LevelPicker({ levels, value, onValueChange, accessibilityLabel, minLabel, maxLabel, detailsLabel, expanded, defaultExpanded, onExpandedChange, children, className, style, testID, }: LevelPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace LevelPicker {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=LevelPicker.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LevelPicker.web.d.ts","sourceRoot":"","sources":["../../../../src/level-picker/LevelPicker.web.tsx"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAqBhD,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,YAAwB,EACxB,QAAQ,EACR,eAAuB,EACvB,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,MAAM,GACP,EAAE,gBAAgB,2CA8RlB;yBA7Se,WAAW"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The level picker's SPEC: the geometry both forks lay out from, the colour
|
|
3
|
+
* roles as Tailwind classes, and the two functions that map a stop to a
|
|
4
|
+
* position and a pointer back to a stop.
|
|
5
|
+
*
|
|
6
|
+
* ── WHY GEOMETRY IS NUMBERS HERE AND COLOUR IS CLASSES ───────────────────────
|
|
7
|
+
*
|
|
8
|
+
* `floating/constants.ts` states the menu vocabulary as class strings, so a
|
|
9
|
+
* consumer can restyle a row with a utility. That reasoning applies to the
|
|
10
|
+
* parts a consumer addresses — and none of these are: the rail, its stops and
|
|
11
|
+
* its knob are one control's internals, and the caller's `className` lands on
|
|
12
|
+
* the picker's ROOT.
|
|
13
|
+
*
|
|
14
|
+
* What it buys instead is the property that matters most for a two-fork
|
|
15
|
+
* component: the web fork positions a stop with `calc()` and the native fork
|
|
16
|
+
* with a measured pixel offset, and BOTH read the numbers below and call
|
|
17
|
+
* {@link levelStopPosition}. Two forks that agreed only by having the same
|
|
18
|
+
* literals typed into them is exactly the drift `MENU_SUB_SIDE_OFFSET` and
|
|
19
|
+
* `SUB_TRIGGER_CLASS` exist to prevent one level up.
|
|
20
|
+
*
|
|
21
|
+
* Colour stays in classes, because that is what the surrounding menu rows are
|
|
22
|
+
* painted with and because a token is never derived from — `bg-muted-foreground/25`
|
|
23
|
+
* is the opacity UTILITY (`color-mix`, resolved by the build), never an alpha
|
|
24
|
+
* appended to a resolved `rgb(...)`, which parses back opaque.
|
|
25
|
+
*/
|
|
26
|
+
/** The rail: a 24px pill, tall enough to read as a track rather than a line. */
|
|
27
|
+
export declare const LEVEL_TRACK_HEIGHT = 24;
|
|
28
|
+
/**
|
|
29
|
+
* The knob, LARGER than the rail on purpose (30 against 24), so it reads as a
|
|
30
|
+
* control riding the track rather than a dot inside it. It therefore overhangs
|
|
31
|
+
* the rail by 3px top and bottom, and by 2px past each end once
|
|
32
|
+
* {@link LEVEL_STOP_INSET} is applied — which is why nothing between the rail
|
|
33
|
+
* and the picker's root may clip.
|
|
34
|
+
*/
|
|
35
|
+
export declare const LEVEL_THUMB_SIZE = 30;
|
|
36
|
+
/** A stop: a 4px dot, drawn under the knob. */
|
|
37
|
+
export declare const LEVEL_STOP_SIZE = 4;
|
|
38
|
+
/**
|
|
39
|
+
* How far the FIRST and LAST stop sit in from the rail's ends.
|
|
40
|
+
*
|
|
41
|
+
* Not a cosmetic margin: it is what stops the knob from hanging half off the
|
|
42
|
+
* rail at either extreme, so it is also the value {@link levelFromOffset} has
|
|
43
|
+
* to subtract before it can read a fraction — a hit map that ignores it snaps
|
|
44
|
+
* to the wrong stop for the first and last {@link LEVEL_STOP_INSET} pixels,
|
|
45
|
+
* which is precisely where a user aiming for "least" or "most" clicks.
|
|
46
|
+
*/
|
|
47
|
+
export declare const LEVEL_STOP_INSET = 13;
|
|
48
|
+
/** The row the rail sits in — one Bloom row taller than the rail itself. */
|
|
49
|
+
export declare const LEVEL_SLIDER_ROW_HEIGHT = 40;
|
|
50
|
+
/**
|
|
51
|
+
* The horizontal inset of everything in the picker that is not a menu row,
|
|
52
|
+
* matching `floating/constants`' `ROW_CLASS` (`px-space-8`) so the rail and the
|
|
53
|
+
* end captions line up with the rows above and below them.
|
|
54
|
+
*/
|
|
55
|
+
export declare const LEVEL_ROW_INSET = 8;
|
|
56
|
+
/** The unfilled rail. */
|
|
57
|
+
export declare const LEVEL_TRACK_CLASS = "relative rounded-full bg-muted-foreground/25";
|
|
58
|
+
/** The filled part, which ends under the knob rather than at the rail's end. */
|
|
59
|
+
export declare const LEVEL_FILL_CLASS = "absolute left-0 rounded-full bg-primary";
|
|
60
|
+
/** A stop the level has NOT reached: a dot on the bare rail. */
|
|
61
|
+
export declare const LEVEL_STOP_CLASS = "absolute rounded-full bg-muted-foreground/65";
|
|
62
|
+
/** A stop the level HAS reached: the same dot, on the fill, in its on-colour. */
|
|
63
|
+
export declare const LEVEL_STOP_REACHED_CLASS = "absolute rounded-full bg-primary-foreground/35";
|
|
64
|
+
/** The knob. `shadow-s` is Bloom's control-raise role, the same one `Slider` takes. */
|
|
65
|
+
export declare const LEVEL_THUMB_CLASS = "absolute rounded-full bg-background shadow-s";
|
|
66
|
+
/** The two end captions, one de-emphasis step back, as a menu shortcut is. */
|
|
67
|
+
export declare const LEVEL_CAPTION_CLASS = "text-xs text-muted-foreground";
|
|
68
|
+
/** The hairline between the summary row and the details region. */
|
|
69
|
+
export declare const LEVEL_SEPARATOR_CLASS = "h-px bg-border";
|
|
70
|
+
/**
|
|
71
|
+
* Where a stop sits along the rail, as a PERCENTAGE of the rail plus a pixel
|
|
72
|
+
* OFFSET — the one form both forks can render from.
|
|
73
|
+
*
|
|
74
|
+
* The web fork spells it `calc(P% + Opx)` and never measures; the native fork
|
|
75
|
+
* multiplies the percentage by a laid-out width. Returning the pair rather than
|
|
76
|
+
* a finished value is what lets one formula serve both: a shared function that
|
|
77
|
+
* returned pixels would force the web fork to measure, and one that returned a
|
|
78
|
+
* CSS string would be unusable on native.
|
|
79
|
+
*/
|
|
80
|
+
export declare function levelStopPosition(index: number, count: number): {
|
|
81
|
+
percent: number;
|
|
82
|
+
offset: number;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Which stop a pointer at `offsetX` from the rail's left edge is asking for.
|
|
86
|
+
*
|
|
87
|
+
* The inverse of {@link levelStopPosition}, and it undoes the inset for the
|
|
88
|
+
* reason spelled out there. `trackWidth` is the rail's own width — the caller
|
|
89
|
+
* measures it (`getBoundingClientRect().width` on web, `onLayout` on native),
|
|
90
|
+
* so this stays pure and testable.
|
|
91
|
+
*/
|
|
92
|
+
export declare function levelFromOffset(offsetX: number, trackWidth: number, count: number): number;
|
|
93
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/level-picker/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAMH,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,+CAA+C;AAC/C,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AAMjC,yBAAyB;AACzB,eAAO,MAAM,iBAAiB,iDAAiD,CAAC;AAEhF,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,4CAA4C,CAAC;AAE1E,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,iDAAiD,CAAC;AAE/E,iFAAiF;AACjF,eAAO,MAAM,wBAAwB,mDAAmD,CAAC;AAEzF,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,iDAAiD,CAAC;AAEhF,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,kCAAkC,CAAC;AAEnE,mEAAmE;AACnE,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AAMtD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAMrC;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/level-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/level-picker/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface LevelPickerProps {
|
|
4
|
+
/**
|
|
5
|
+
* The levels, in order, low to high. Its LENGTH is the number of stops and
|
|
6
|
+
* each entry is that stop's own name — read out as the slider's value
|
|
7
|
+
* (`aria-valuetext`), so it is what a screen reader says instead of an index.
|
|
8
|
+
*
|
|
9
|
+
* Two levels is the floor at which the control means anything; one renders a
|
|
10
|
+
* rail with a single stop and no travel.
|
|
11
|
+
*/
|
|
12
|
+
levels: readonly string[];
|
|
13
|
+
/** The selected level, as an index into {@link levels}. Controlled. */
|
|
14
|
+
value: number;
|
|
15
|
+
/** Fired with the new index as the user drags, clicks or steps the rail. */
|
|
16
|
+
onValueChange: (value: number) => void;
|
|
17
|
+
/**
|
|
18
|
+
* The slider's accessible NAME — WHAT the level applies to.
|
|
19
|
+
*
|
|
20
|
+
* Required, not optional. A rail with a knob renders no text of its own, so
|
|
21
|
+
* ARIA can compute no name from its contents and there is nothing for the
|
|
22
|
+
* value to be announced against: without this the control says "slider, High"
|
|
23
|
+
* and never what is High. The end captions and the summary row beside it are
|
|
24
|
+
* SIBLINGS, not labels.
|
|
25
|
+
*/
|
|
26
|
+
accessibilityLabel: string;
|
|
27
|
+
/**
|
|
28
|
+
* Captions for the two ends of the rail, shown while the slider is active
|
|
29
|
+
* (hovered, focused or being dragged) and faded out otherwise, in the place
|
|
30
|
+
* the summary row occupies.
|
|
31
|
+
*
|
|
32
|
+
* Both are optional and independent of {@link levels}: they name the
|
|
33
|
+
* DIRECTION of the scale ("Cheaper"/"Sharper"), which is a different claim
|
|
34
|
+
* from what any one stop is called, and a picker whose levels speak for
|
|
35
|
+
* themselves can leave them off entirely.
|
|
36
|
+
*/
|
|
37
|
+
minLabel?: string;
|
|
38
|
+
maxLabel?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The summary row's label — the disclosure that reveals {@link children}.
|
|
41
|
+
* Defaults to `Details`, matching the `<details>`/`<summary>` vocabulary this
|
|
42
|
+
* is the same shape as.
|
|
43
|
+
*/
|
|
44
|
+
detailsLabel?: string;
|
|
45
|
+
/** Whether the details region is showing. Controlled. */
|
|
46
|
+
expanded?: boolean;
|
|
47
|
+
/** Its initial state when uncontrolled. Defaults to `false`. */
|
|
48
|
+
defaultExpanded?: boolean;
|
|
49
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
50
|
+
/**
|
|
51
|
+
* The details region's contents — the rows the summary row reveals.
|
|
52
|
+
*
|
|
53
|
+
* Ordinary menu rows: `DropdownMenuSub` triggers, `DropdownMenuItem`s,
|
|
54
|
+
* anything the surrounding surface publishes. The picker owns the reveal, the
|
|
55
|
+
* spacing and the hairline above them, and nothing about what they are.
|
|
56
|
+
*/
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
/** Appended to the root's own classes, never substituted for them. */
|
|
59
|
+
className?: string;
|
|
60
|
+
style?: StyleProp<ViewStyle>;
|
|
61
|
+
testID?: string;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/level-picker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;OAOG;IACH,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gEAAgE;IAChE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mount ONCE, at the app root, above the router. Renders nothing at all until a
|
|
3
|
+
* flight is live, so it costs a subscription and no view while idle — and takes
|
|
4
|
+
* an overlay rank only while it is actually painting, which is what keeps the
|
|
5
|
+
* overlay stack's counter able to reset (see `overlay/stack.ts`).
|
|
6
|
+
*/
|
|
7
|
+
export declare function MediaFlightLayer(): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export declare namespace MediaFlightLayer {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=MediaFlightLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaFlightLayer.d.ts","sourceRoot":"","sources":["../../../../src/media-flight/MediaFlightLayer.tsx"],"names":[],"mappings":"AA+CA;;;;;GAKG;AACH,wBAAgB,gBAAgB,mDAkB/B;yBAlBe,gBAAgB"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ONE renderer for "an image or a video, painted into a box".
|
|
3
|
+
*
|
|
4
|
+
* Both the flight layer and the media gallery need exactly this, and they need
|
|
5
|
+
* it to be the same code: a flight that lands inside the gallery hands its
|
|
6
|
+
* surface over frame-for-frame, so two renderers that disagree by a pixel of
|
|
7
|
+
* `contentFit` or a corner radius show the swap.
|
|
8
|
+
*
|
|
9
|
+
* BOTH ARMS RENDER THE SAME BOX — an `Animated.View` with the media filling it —
|
|
10
|
+
* rather than the image arm rendering an animated `Image` directly. That is the
|
|
11
|
+
* property that makes an image and a video interchangeable at a call site: the
|
|
12
|
+
* caller's style means the same thing either way, the corner radius clips a
|
|
13
|
+
* platform video surface the way it rounds an image, and the transform lands on
|
|
14
|
+
* a node reanimated is allowed to drive (expo-video's own host is not one).
|
|
15
|
+
*/
|
|
16
|
+
import { type ComponentProps } from 'react';
|
|
17
|
+
import { type ImageStyle, type StyleProp, type ViewStyle } from 'react-native';
|
|
18
|
+
import Animated from 'react-native-reanimated';
|
|
19
|
+
import type { MediaSurfaceContent } from './types';
|
|
20
|
+
import { type VideoSurfaceType } from './expo-video-module';
|
|
21
|
+
/**
|
|
22
|
+
* Exactly what `Animated.View` accepts, taken from the component rather than
|
|
23
|
+
* restated: a caller hands this component the output of `useAnimatedStyle` and a
|
|
24
|
+
* hand-written `StyleProp<ViewStyle>` would reject it.
|
|
25
|
+
*/
|
|
26
|
+
export type MediaSurfaceStyle = ComponentProps<typeof Animated.View>['style'];
|
|
27
|
+
/**
|
|
28
|
+
* The style a STILL accepts. The intersection is what lets one value reach both
|
|
29
|
+
* an `Image` and a `View`: `ViewStyle` and `ImageStyle` disagree on exactly one
|
|
30
|
+
* key (`overflow`, which `ViewStyle` also allows to be `'scroll'`), and the
|
|
31
|
+
* intersection narrows it to the two values both accept.
|
|
32
|
+
*/
|
|
33
|
+
export type MediaPosterStyle = StyleProp<ViewStyle & ImageStyle>;
|
|
34
|
+
export interface MediaSurfaceProps {
|
|
35
|
+
/** What to paint: a still image, or a consumer-owned expo-video player. */
|
|
36
|
+
content: MediaSurfaceContent;
|
|
37
|
+
/** Size, radius and transform of the box. May carry an animated style. */
|
|
38
|
+
style?: MediaSurfaceStyle;
|
|
39
|
+
/** How the media fills the box. Defaults to `'contain'`. */
|
|
40
|
+
contentFit?: 'contain' | 'cover';
|
|
41
|
+
/**
|
|
42
|
+
* Android's rendering surface for the video arm. Defaults to `'textureView'`
|
|
43
|
+
* and is CAPTURED ON FIRST RENDER: expo-video documents that this prop must
|
|
44
|
+
* not change at runtime, and a `surfaceView` is composited outside the app's
|
|
45
|
+
* view hierarchy — it ignores its parent's clip, radius and transform, which
|
|
46
|
+
* is every property a flying box relies on.
|
|
47
|
+
*/
|
|
48
|
+
surfaceType?: VideoSurfaceType;
|
|
49
|
+
/** Whether the video arm shows expo-video's own controls. Defaults to `false`. */
|
|
50
|
+
nativeControls?: boolean;
|
|
51
|
+
accessibilityLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Passed through as a PROP, never as a style key: react-native-web resolves
|
|
54
|
+
* the RN-only `box-none`/`box-only` values from the prop path only.
|
|
55
|
+
*/
|
|
56
|
+
pointerEvents?: 'auto' | 'none' | 'box-none' | 'box-only';
|
|
57
|
+
/**
|
|
58
|
+
* Set this on the DESTINATION surface of a media flight, to the same id the
|
|
59
|
+
* flight was started with. When this surface presents its first frame it tells
|
|
60
|
+
* the layer to let the flying copy go.
|
|
61
|
+
*
|
|
62
|
+
* It exists so the ordering knowledge stays in Bloom. The alternative is a
|
|
63
|
+
* consumer releasing the flight on a timer — and the timer is always wrong,
|
|
64
|
+
* because a fullscreen video route measured ~1 s from tap to first frame
|
|
65
|
+
* against production while a flight animation lasts ~300 ms. Whoever guessed
|
|
66
|
+
* would be choosing between a hole and a surface that overstays.
|
|
67
|
+
*
|
|
68
|
+
* Leave it unset on an origin surface, and on the flight layer's own: a
|
|
69
|
+
* surface that handed off to itself would release on its own first frame.
|
|
70
|
+
*/
|
|
71
|
+
flightId?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A still image, or a video fed by a player the CONSUMER owns.
|
|
75
|
+
*
|
|
76
|
+
* The video arm mounts a `VideoView` around the caller's `player`. Bloom never
|
|
77
|
+
* creates, replaces or releases that player — handing one player to a new view
|
|
78
|
+
* is what moves a playing video between surfaces without restarting it, and it
|
|
79
|
+
* is the reason this component takes a player object rather than a source URL.
|
|
80
|
+
*/
|
|
81
|
+
export declare const MediaSurface: import("react").NamedExoticComponent<MediaSurfaceProps>;
|
|
82
|
+
/**
|
|
83
|
+
* The STILL of a media item — a video's poster, or the image itself — and never
|
|
84
|
+
* a video view.
|
|
85
|
+
*
|
|
86
|
+
* This is what every surface that is not the live one renders: an off-screen
|
|
87
|
+
* gallery page, a thumbnail-strip tile, an origin placeholder while its media is
|
|
88
|
+
* in flight. Mounting a `MediaSurface` there instead would put a second
|
|
89
|
+
* `VideoView` on the same player, which is precisely what the "one live surface
|
|
90
|
+
* per id" contract forbids — and on a thumbnail strip it would mean one decoder
|
|
91
|
+
* per tile.
|
|
92
|
+
*/
|
|
93
|
+
export declare function MediaPoster({ content, style, contentFit, accessibilityLabel, }: {
|
|
94
|
+
content: MediaSurfaceContent;
|
|
95
|
+
style?: MediaPosterStyle;
|
|
96
|
+
contentFit?: 'contain' | 'cover';
|
|
97
|
+
accessibilityLabel?: string;
|
|
98
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
/**
|
|
100
|
+
* A box with no media at all — what a gallery page renders for a video item
|
|
101
|
+
* whose poster is unknown, so the layout never collapses.
|
|
102
|
+
*/
|
|
103
|
+
export declare function EmptyMediaSurface({ style }: {
|
|
104
|
+
style?: MediaPosterStyle;
|
|
105
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
//# sourceMappingURL=MediaSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaSurface.d.ts","sourceRoot":"","sources":["../../../../src/media-flight/MediaSurface.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAA+B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAG/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,SAAS,GAAG,UAAU,CAAC,CAAC;AASjE,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,OAAO,EAAE,mBAAmB,CAAC;IAC7B,0EAA0E;IAC1E,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,4DAA4D;IAC5D,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACjC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,kFAAkF;IAClF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IAC1D;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,yDAsEvB,CAAC;AAIH;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,UAAoB,EACpB,kBAAkB,GACnB,EAAE;IACD,OAAO,EAAE,mBAAmB,CAAC;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,2CAaA;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;CAAE,2CAExE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How long `flyTo` will wait for `<MediaFlightLayer>` to commit the surface
|
|
3
|
+
* before letting the caller carry on regardless (ms).
|
|
4
|
+
*
|
|
5
|
+
* The wait is a COMMIT, not a network round-trip: the surface only has to be
|
|
6
|
+
* mounted, because that is what puts it in expo-video's `_mountedVideos` set
|
|
7
|
+
* while the origin is still there — which is the whole mechanism that carries
|
|
8
|
+
* `currentTime` across. One React commit is a frame or two. Painting is a
|
|
9
|
+
* separate, slower thing that the poster covers (see `MediaSurface`), so it is
|
|
10
|
+
* deliberately NOT waited on here: blocking a tap on a decode would trade a
|
|
11
|
+
* problem nobody can see for one everybody can feel.
|
|
12
|
+
*
|
|
13
|
+
* The timeout exists for the case where no layer is mounted at all. Without it
|
|
14
|
+
* the promise never settles and the consumer never navigates — an app that
|
|
15
|
+
* forgot one line at its root would appear to have a dead feed.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SURFACE_MOUNT_TIMEOUT_MS = 250;
|
|
18
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/media-flight/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,wBAAwB,MAAM,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The optional-peer boundary for `expo-video`.
|
|
3
|
+
*
|
|
4
|
+
* Bloom ships no native code and never will, so `expo-video` cannot be a hard
|
|
5
|
+
* dependency: an app that renders no video must not be made to install a native
|
|
6
|
+
* module. It is therefore an OPTIONAL peer, and a static `import` contradicts
|
|
7
|
+
* that — Metro resolves every static import in the eager graph, so an omitted
|
|
8
|
+
* "optional" peer does not degrade, it aborts the whole bundle with `Unable to
|
|
9
|
+
* resolve module expo-video`, naming a package the app never mentions.
|
|
10
|
+
*
|
|
11
|
+
* The load has to be dynamic in the ONE shape Metro understands: a `require()`
|
|
12
|
+
* of a STRING LITERAL as a DIRECT STATEMENT of a `try` block, which Metro
|
|
13
|
+
* collects as an optional dependency (resolving the real module when installed,
|
|
14
|
+
* writing `null` into the dependency map when it is not, so the failure lands in
|
|
15
|
+
* the `catch` below at evaluation time instead of at build time). One `if` of
|
|
16
|
+
* nesting loses that — `isOptionalDependency` returns at the FIRST BlockStatement
|
|
17
|
+
* it meets — hence the `typeof require` guard sits OUTSIDE the try.
|
|
18
|
+
*
|
|
19
|
+
* `require` may also not exist at all (this file backs the `import` condition
|
|
20
|
+
* too, i.e. an ESM build under Node), hence that guard.
|
|
21
|
+
*
|
|
22
|
+
* A missing video module is invisible — a poster where a video should be looks
|
|
23
|
+
* exactly like a video that has not started — so {@link warnExpoVideoUnavailable}
|
|
24
|
+
* names the package once, in dev.
|
|
25
|
+
*
|
|
26
|
+
* @see connection-status/netinfo.ts — the same boundary for netinfo.
|
|
27
|
+
* @see hooks/haptics-module.ts — the same boundary for expo-haptics.
|
|
28
|
+
*/
|
|
29
|
+
import type { ComponentType } from 'react';
|
|
30
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
31
|
+
/**
|
|
32
|
+
* The slice of `expo-video`'s `VideoPlayer` Bloom depends on.
|
|
33
|
+
*
|
|
34
|
+
* Hand-written rather than `typeof import('expo-video')` so no expo-video type
|
|
35
|
+
* reaches Bloom's emitted declarations — a consumer that skips the optional peer
|
|
36
|
+
* must not inherit a TS7016 from Bloom's own `.d.ts`. The two are kept in step by
|
|
37
|
+
* the assignability check in `__tests__/MediaFlight.test.tsx`, which is excluded
|
|
38
|
+
* from the build and so may name the real package.
|
|
39
|
+
*
|
|
40
|
+
* Bloom never CALLS any of this. **The consumer creates the player, owns it and
|
|
41
|
+
* destroys it**; Bloom only hands the object back to a `VideoView`, which is the
|
|
42
|
+
* whole mechanism that lets a video move between surfaces without restarting
|
|
43
|
+
* (expo-video's own docs: "when the same player is playing in multiple video
|
|
44
|
+
* views"). The three members below exist so the type is not `object` — a
|
|
45
|
+
* structural minimum the real `VideoPlayer` satisfies, and that an arbitrary
|
|
46
|
+
* object does not.
|
|
47
|
+
*
|
|
48
|
+
* `play`/`pause` are declared in METHOD syntax deliberately: `strictFunctionTypes`
|
|
49
|
+
* exempts method parameters from contravariance, which keeps a real
|
|
50
|
+
* `VideoPlayer` assignable here across `@types/react` copies.
|
|
51
|
+
*/
|
|
52
|
+
export interface VideoPlayerLike {
|
|
53
|
+
readonly playing: boolean;
|
|
54
|
+
play(): void;
|
|
55
|
+
pause(): void;
|
|
56
|
+
}
|
|
57
|
+
/** How a video is scaled inside its box. Mirrors expo-video's `VideoContentFit`. */
|
|
58
|
+
export type VideoSurfaceContentFit = 'contain' | 'cover' | 'fill';
|
|
59
|
+
/**
|
|
60
|
+
* Android's rendering surface for a video view.
|
|
61
|
+
*
|
|
62
|
+
* `textureView` is what Bloom asks for everywhere, because a `SurfaceView` is
|
|
63
|
+
* composited by the system OUTSIDE the app's view hierarchy: it ignores the
|
|
64
|
+
* parent's clip, corner radius and transform, so a video flying between two
|
|
65
|
+
* rects would paint as an un-rounded rectangle at the wrong place. It also
|
|
66
|
+
* cannot be changed at runtime (expo-video: "This prop should not be changed at
|
|
67
|
+
* runtime"), which is why {@link MediaSurfaceProps.surfaceType} is captured on
|
|
68
|
+
* first render.
|
|
69
|
+
*/
|
|
70
|
+
export type VideoSurfaceType = 'textureView' | 'surfaceView';
|
|
71
|
+
/** The slice of `VideoViewProps` Bloom passes. */
|
|
72
|
+
export interface VideoViewLikeProps {
|
|
73
|
+
player?: VideoPlayerLike | null;
|
|
74
|
+
contentFit?: VideoSurfaceContentFit;
|
|
75
|
+
surfaceType?: VideoSurfaceType;
|
|
76
|
+
nativeControls?: boolean;
|
|
77
|
+
style?: StyleProp<ViewStyle>;
|
|
78
|
+
pointerEvents?: 'auto' | 'none' | 'box-none' | 'box-only';
|
|
79
|
+
accessibilityLabel?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Raised once the mounted player has rendered its first frame into this view.
|
|
82
|
+
* On web expo-video raises it from the element's `loadeddata` event; it is the
|
|
83
|
+
* only OBSERVABLE "this surface is live now" the package offers, and the media
|
|
84
|
+
* flight layer's hand-off depends on it rather than on a timer.
|
|
85
|
+
*/
|
|
86
|
+
onFirstFrameRender?: () => void;
|
|
87
|
+
}
|
|
88
|
+
/** The slice of expo-video's module surface Bloom renders. */
|
|
89
|
+
export interface ExpoVideoLike {
|
|
90
|
+
VideoView: ComponentType<VideoViewLikeProps>;
|
|
91
|
+
}
|
|
92
|
+
/** The expo-video module, or `null` when the optional peer is not installed. */
|
|
93
|
+
export declare function loadExpoVideo(): ExpoVideoLike | null;
|
|
94
|
+
/**
|
|
95
|
+
* One warning per module lifetime, and none in production — the same mechanism
|
|
96
|
+
* as `connection-status/netinfo.ts` and `hooks/haptics-module.ts`. Metro and
|
|
97
|
+
* Vite/Rolldown both fold the `NODE_ENV` check statically, so a production
|
|
98
|
+
* bundle keeps neither the branch nor the message.
|
|
99
|
+
*/
|
|
100
|
+
export declare function warnExpoVideoUnavailable(): void;
|
|
101
|
+
/** Test seam — drops the cached module handle so a suite can load it again. */
|
|
102
|
+
export declare function resetExpoVideoModule(): void;
|
|
103
|
+
//# sourceMappingURL=expo-video-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expo-video-module.d.ts","sourceRoot":"","sources":["../../../../src/media-flight/expo-video-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AASzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;CACf;AAED,oFAAoF;AACpF,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAElE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,aAAa,CAAC;AAE7D,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IAC1D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AAED,8DAA8D;AAC9D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAC9C;AAQD,gFAAgF;AAChF,wBAAgB,aAAa,IAAI,aAAa,GAAG,IAAI,CAiCpD;AAUD;;;;;GAKG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAa/C;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,IAAI,CAI3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { MediaFlightLayer } from './MediaFlightLayer';
|
|
2
|
+
export { MediaSurface, MediaPoster, EmptyMediaSurface } from './MediaSurface';
|
|
3
|
+
export { useMediaFlight } from './use-media-flight';
|
|
4
|
+
export { DEFAULT_FLIGHT_CORNER_RADIUS, flightProgress, handOffFlight, hasFlight, releaseFlight, resetMediaFlight, } from './store';
|
|
5
|
+
export { SURFACE_MOUNT_TIMEOUT_MS } from './constants';
|
|
6
|
+
export { loadExpoVideo, warnExpoVideoUnavailable, resetExpoVideoModule, type ExpoVideoLike, type VideoPlayerLike, type VideoSurfaceContentFit, type VideoSurfaceType, type VideoViewLikeProps, } from './expo-video-module';
|
|
7
|
+
export type { MediaFlight, MediaFlightAnchorNode, MediaFlightController, MediaFlightOptions, MediaSurfaceContent, MediaSurfaceImage, MediaSurfaceVideo, MeasuredRect, } from './types';
|
|
8
|
+
export type { MediaSurfaceProps } from './MediaSurface';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/media-flight/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,aAAa,EACb,SAAS,EACT,aAAa,EACb,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,oBAAoB,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,WAAW,EACX,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|