@m4l/gclick 0.16.0 → 0.17.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 (58) hide show
  1. package/components/CameraStream/defaults/DefaultPhaseStreaming.d.ts +2 -2
  2. package/components/CameraStream/defaults/DefaultPhaseStreaming.d.ts.map +1 -1
  3. package/components/CameraStream/defaults/DefaultPhaseStreaming.js +23 -21
  4. package/components/CameraStream/types.d.ts +9 -0
  5. package/components/CameraStream/types.d.ts.map +1 -1
  6. package/components/VideoPlayer/VideoPlayer.d.ts +4 -1
  7. package/components/VideoPlayer/VideoPlayer.d.ts.map +1 -1
  8. package/components/VideoPlayer/VideoPlayer.js +28 -25
  9. package/components/VideoPlayer/VideoPlayer.styles.d.ts +7 -1
  10. package/components/VideoPlayer/VideoPlayer.styles.d.ts.map +1 -1
  11. package/components/VideoPlayer/VideoPlayer.styles.js +72 -10
  12. package/components/VideoPlayer/VideojsDefaultSkin.styles.d.ts +8 -0
  13. package/components/VideoPlayer/VideojsDefaultSkin.styles.d.ts.map +1 -0
  14. package/components/VideoPlayer/{VideojsSkin.styles.js → VideojsDefaultSkin.styles.js} +478 -248
  15. package/components/VideoPlayer/VideojsMinimalSkin.styles.d.ts +8 -0
  16. package/components/VideoPlayer/VideojsMinimalSkin.styles.d.ts.map +1 -0
  17. package/components/VideoPlayer/VideojsMinimalSkin.styles.js +1561 -0
  18. package/components/VideoPlayer/constants.d.ts +33 -0
  19. package/components/VideoPlayer/constants.d.ts.map +1 -1
  20. package/components/VideoPlayer/constants.js +20 -4
  21. package/components/VideoPlayer/hlsConfig.d.ts +21 -11
  22. package/components/VideoPlayer/hlsConfig.d.ts.map +1 -1
  23. package/components/VideoPlayer/hlsConfig.js +28 -21
  24. package/components/VideoPlayer/index.d.ts +2 -2
  25. package/components/VideoPlayer/index.d.ts.map +1 -1
  26. package/components/VideoPlayer/player.factory.d.ts +3 -3
  27. package/components/VideoPlayer/player.factory.d.ts.map +1 -1
  28. package/components/VideoPlayer/slots/VideoPlayerSlots.d.ts +1 -1
  29. package/components/VideoPlayer/subcomponents/GclickVideoSkin.d.ts +5 -2
  30. package/components/VideoPlayer/subcomponents/GclickVideoSkin.d.ts.map +1 -1
  31. package/components/VideoPlayer/subcomponents/GclickVideoSkin.js +34 -178
  32. package/components/VideoPlayer/subcomponents/VideoPlayerStage.d.ts +4 -3
  33. package/components/VideoPlayer/subcomponents/VideoPlayerStage.d.ts.map +1 -1
  34. package/components/VideoPlayer/subcomponents/VideoPlayerStage.js +43 -42
  35. package/components/VideoPlayer/subcomponents/skin/VideoControlBar.d.ts +6 -0
  36. package/components/VideoPlayer/subcomponents/skin/VideoControlBar.d.ts.map +1 -0
  37. package/components/VideoPlayer/subcomponents/skin/VideoControlBar.js +87 -0
  38. package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.d.ts +9 -0
  39. package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.d.ts.map +1 -0
  40. package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.js +17 -0
  41. package/components/VideoPlayer/subcomponents/skin/VideoInputBindings.d.ts +11 -0
  42. package/components/VideoPlayer/subcomponents/skin/VideoInputBindings.d.ts.map +1 -0
  43. package/components/VideoPlayer/subcomponents/skin/VideoInputBindings.js +19 -0
  44. package/components/VideoPlayer/subcomponents/skin/VideoSettingsMenu.d.ts +9 -0
  45. package/components/VideoPlayer/subcomponents/skin/VideoSettingsMenu.d.ts.map +1 -0
  46. package/components/VideoPlayer/subcomponents/skin/VideoSettingsMenu.js +48 -0
  47. package/components/VideoPlayer/subcomponents/skin/primitives.d.ts +81 -0
  48. package/components/VideoPlayer/subcomponents/skin/primitives.d.ts.map +1 -0
  49. package/components/VideoPlayer/subcomponents/skin/primitives.js +142 -0
  50. package/components/VideoPlayer/subcomponents/skin/skinVariant.d.ts +19 -0
  51. package/components/VideoPlayer/subcomponents/skin/skinVariant.d.ts.map +1 -0
  52. package/components/VideoPlayer/subcomponents/skin/skinVariant.js +23 -0
  53. package/components/VideoPlayer/types.d.ts +25 -6
  54. package/components/VideoPlayer/types.d.ts.map +1 -1
  55. package/index.js +123 -122
  56. package/package.json +4 -4
  57. package/components/VideoPlayer/VideojsSkin.styles.d.ts +0 -9
  58. package/components/VideoPlayer/VideojsSkin.styles.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { M4LOverridesStyleRules } from '@m4l/components';
2
2
  import { Theme } from '@mui/material/styles';
3
3
  import { Ref } from 'react';
4
- import { COMPONENT_VIDEO_PLAYER_KEY_COMPONENT } from './constants';
4
+ import { COMPONENT_VIDEO_PLAYER_KEY_COMPONENT, VIDEO_PLAYER_VARIANTS } from './constants';
5
5
  import { VideoPlayerSlots } from './slots/slots';
6
6
  /**
7
7
  * Media error surfaced to consumers. Mirrors the DOM `MediaError` shape the
@@ -59,6 +59,11 @@ export interface VideoPlayerProps {
59
59
  * snapshot). Forwarded to the skin's poster slot.
60
60
  */
61
61
  poster?: string;
62
+ /**
63
+ * Which vendor skin to wear. Defaults to `'default'` (the full chrome); pass
64
+ * `'minimal'` for dense grid tiles. See {@link VideoPlayerVariant}.
65
+ */
66
+ variant?: VideoPlayerVariant;
62
67
  /**
63
68
  * Optional className applied to the root (container) slot. Intended for
64
69
  * plain/static classes: composing an Emotion-registered class (e.g. via
@@ -93,12 +98,26 @@ export interface VideoPlayerProps {
93
98
  ref?: Ref<VideoPlayerControl>;
94
99
  }
95
100
  /**
96
- * Internal owner state for the styled slots. The player has no owner-state-driven
97
- * styling (the single composed skin adapts to the runtime stream type), so this
98
- * is empty — kept only for the `ComponentsPropsList` theme registration, in
99
- * parity with the other M4L components.
101
+ * Vendor skin the player wears.
102
+ *
103
+ * `default` is the full chrome; `minimal` drops the frosted panels and groups
104
+ * the time displays — leaner for dense grid tiles, which is what the vendor
105
+ * designed it for (its layout reveals controls progressively through container
106
+ * queries). Both come from `@videojs/react`'s `/video` preset.
107
+ */
108
+ export type VideoPlayerVariant = keyof typeof VIDEO_PLAYER_VARIANTS;
109
+ /**
110
+ * Internal owner state for the styled slots.
111
+ *
112
+ * `variant` lives here because it drives styling, not just markup: the `root`
113
+ * slot spreads ONE of the two translated vendor stylesheets depending on it.
114
+ * Spreading both would inject ~1900 unused declarations and, worse, emit the
115
+ * un-scopable `@keyframes media-shake` / `@property --media-progress-fill`
116
+ * twice into the global namespace, since both sheets declare them identically.
100
117
  */
101
- export type VideoPlayerOwnerState = Record<string, never>;
118
+ export type VideoPlayerOwnerState = {
119
+ variant: VideoPlayerVariant;
120
+ };
102
121
  export type VideoPlayerSlotsType = keyof typeof VideoPlayerSlots;
103
122
  export type VideoPlayerStyles = M4LOverridesStyleRules<VideoPlayerSlotsType, typeof COMPONENT_VIDEO_PLAYER_KEY_COMPONENT, Theme>;
104
123
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/VideoPlayer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,qEAAqE;IACrE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,sBAAsB;IACtB,KAAK,IAAI,IAAI,CAAC;IACd,4CAA4C;IAC5C,QAAQ,IAAI,OAAO,CAAC;IACpB,gFAAgF;IAChF,QA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C,CAAC;CAC/B;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CACpD,oBAAoB,EACpB,OAAO,oCAAoC,EAC3C,KAAK,CACN,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/VideoPlayer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,KAAK,EAAE,oCAAoC,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,qEAAqE;IACrE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,sBAAsB;IACtB,KAAK,IAAI,IAAI,CAAC;IACd,4CAA4C;IAC5C,QAAQ,IAAI,OAAO,CAAC;IACpB,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/B,6CAA6C;IAC7C,OAAO,IAAI,OAAO,CAAC;IACnB,2EAA2E;IAC3E,MAAM,IAAI,OAAO,CAAC;IAClB,+DAA+D;IAC/D,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,yEAAyE;IACzE,eAAe,CAAC,IA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EF,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CACpD,oBAAoB,EACpB,OAAO,oCAAoC,EAC3C,KAAK,CACN,CAAC"}
package/index.js CHANGED
@@ -9,11 +9,11 @@ import { getDeviceStatusComponentsDictionary as T } from "./components/DeviceSta
9
9
  import { DeviceStatus as E } from "./components/DeviceStatus/DeviceStatus.js";
10
10
  import { DeviceLabel as A } from "./components/DeviceLabel/DeviceLabel.js";
11
11
  import { GaugeCircular as I } from "./components/GaugeCircular/GaugeCircular.js";
12
- import { getCourseDirection as O } from "./components/formatters/CourseFormatter/helper.js";
12
+ import { getCourseDirection as y } from "./components/formatters/CourseFormatter/helper.js";
13
13
  import { getCourseFormatterComponentsDictionary as M } from "./components/formatters/CourseFormatter/dictionary.js";
14
14
  import { CourseFormatter as N } from "./components/formatters/CourseFormatter/CourseFormatter.js";
15
- import { courseToCssAngle as v } from "./components/maps/utils/courseToCssAngle.js";
16
- import { GpsMap as L } from "./components/maps/components/GpsMap/GpsMap.js";
15
+ import { courseToCssAngle as L } from "./components/maps/utils/courseToCssAngle.js";
16
+ import { GpsMap as F } from "./components/maps/components/GpsMap/GpsMap.js";
17
17
  import { MapContext as b, MapProvider as h } from "./components/maps/components/GpsMap/contexts/MapContext/MapContext.js";
18
18
  import { getMapComponentsDictionary as Y } from "./components/maps/components/GpsMap/dictionary.js";
19
19
  import { LAT_LON_FIXED_DIGITS as H } from "./components/maps/components/GpsMap/constants.js";
@@ -35,10 +35,10 @@ import { isFeature as Te } from "./components/maps/utils/isFeature.js";
35
35
  import { isFeatureCollection as Ee } from "./components/maps/utils/isFeatureCollection.js";
36
36
  import { isFeatureCollectionDraft as Ae } from "./components/maps/utils/isFeatureCollectionDraft.js";
37
37
  import { isGeometry as Ie } from "./components/maps/utils/isGeometry.js";
38
- import { GeofencesTool as Oe } from "./components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.js";
38
+ import { GeofencesTool as ye } from "./components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.js";
39
39
  import { GEOFENCES_TOOL as Me } from "./components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.js";
40
40
  import { getGpsMapToolsComponentsDictionary as Ne } from "./components/maps/components/GpsMapTools/dictionary.js";
41
- import { GpsMapToolsContext as ve, GpsMapToolsProvider as Fe } from "./components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.js";
41
+ import { GpsMapToolsContext as Le, GpsMapToolsProvider as ve } from "./components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.js";
42
42
  import { IndicatorBattery as Ve } from "./components/indicators/IndicatorBattery/IndicatorBattery.js";
43
43
  import { getIndicatorBatteryComponentsDictionary as he } from "./components/indicators/IndicatorBattery/dictionary.js";
44
44
  import { INDICATOR_BATTERY_SEMANTIC_STATUS as Ye } from "./components/indicators/IndicatorBattery/types.js";
@@ -49,95 +49,95 @@ import { IndicatorValueAndMagnitude as ke } from "./components/indicators/Indica
49
49
  import { VideoTimeLineSelector as qe } from "./components/VideoTimeLineSelector/VideoTimeLineSelector.js";
50
50
  import { getVideoTimeLineSelectorComponentDictionary as We } from "./components/VideoTimeLineSelector/dictionary.js";
51
51
  import { TIME_VISIBLE_OPTIONS_KEYS as Ze } from "./components/VideoTimeLineSelector/constants.js";
52
- import { COMPONENT_VIDEO_PLAYER_KEY_COMPONENT as er } from "./components/VideoPlayer/constants.js";
53
- import { isHlsLiveDuration as or, resolveIsLive as tr } from "./components/VideoPlayer/utils.js";
54
- import { VideoPlayer as mr } from "./components/VideoPlayer/VideoPlayer.js";
55
- import { CameraStreamsProvider as sr } from "./components/CameraStreams/CameraStreamsProvider.js";
56
- import { CameraStreamsContext as ir } from "./components/CameraStreams/CameraStreamsContext.js";
57
- import { CameraStreamPlayersContext as xr } from "./components/CameraStreams/CameraStreamPlayersContext.js";
58
- import { createCameraStreamsStore as lr } from "./components/CameraStreams/store.js";
59
- import { useCameraStreams as Sr } from "./components/CameraStreams/useCameraStreams.js";
60
- import { useCameraStreamsStore as Tr } from "./components/CameraStreams/useCameraStreamsStore.js";
61
- import { useCameraStreamPlayers as Er } from "./components/CameraStreams/useCameraStreamPlayers.js";
62
- import { useStreamRequest as Ar } from "./components/CameraStreams/hooks/useStreamRequest.js";
63
- import { isCloudFrontUrl as Ir, useCloudFrontCookieManager as yr, useCloudFrontCookieManagerCore as Or, useIsCloudFrontUrl as gr } from "./components/CameraStreams/hooks/useCloudFrontCookie.js";
64
- import { COMPONENT_CAMERA_STREAMS_KEY_COMPONENT as Rr, DEFAULT_CAMERA_STREAMS_DURATION_SECONDS as Nr } from "./components/CameraStreams/constants.js";
65
- import { CAMERA_STREAMS_DICTIONARY_KEYS as vr, getCameraStreamsComponentDictionary as Fr, resolveCameraStreamsDictionaryLabels as Lr } from "./components/CameraStreams/dictionary.js";
66
- import { buildPlayerKey as br } from "./components/CameraStreams/types.js";
67
- import { CameraStream as Gr } from "./components/CameraStream/CameraStream.js";
68
- import { CAMERA_STREAM_DRAG_HANDLE_CLASSNAME as Br } from "./components/CameraStream/types.js";
69
- import { COMPONENT_CAMERA_STREAM_KEY_COMPONENT as Kr, COMPONENT_CAMERA_STREAM_TEST_ID as Ur } from "./components/CameraStream/constants.js";
70
- import { CameraStreamSlotsStyled as wr } from "./components/CameraStream/slots/slots.js";
71
- import { cameraStreamStyles as kr } from "./components/CameraStream/CameraStream.styles.js";
72
- import { DefaultLabel as qr } from "./components/CameraStream/defaults/DefaultLabel.js";
73
- import { DefaultLiveBadge as Wr } from "./components/CameraStream/defaults/DefaultLiveBadge.js";
74
- import { DefaultPhaseChannelBusy as Zr } from "./components/CameraStream/defaults/DefaultPhaseChannelBusy.js";
75
- import { DefaultPhaseError as eo } from "./components/CameraStream/defaults/DefaultPhaseError.js";
76
- import { DefaultPhaseIdle as oo } from "./components/CameraStream/defaults/DefaultPhaseIdle.js";
77
- import { DefaultPhasePolling as ao } from "./components/CameraStream/defaults/DefaultPhasePolling.js";
78
- import { DefaultPhaseRequesting as po } from "./components/CameraStream/defaults/DefaultPhaseRequesting.js";
79
- import { DefaultPhaseStreaming as fo } from "./components/CameraStream/defaults/DefaultPhaseStreaming.js";
80
- import { DefaultPhaseTimeout as no } from "./components/CameraStream/defaults/DefaultPhaseTimeout.js";
81
- import { DefaultReplayBadge as Co } from "./components/CameraStream/defaults/DefaultReplayBadge.js";
82
- import { DefaultRoot as uo } from "./components/CameraStream/defaults/DefaultRoot.js";
83
- import { ReportsViewer as Do } from "./components/ReportsViewer/ReportsViewer.js";
84
- import { TimelineCardsViewer as co } from "./components/TimelineCardsViewer/TimelineCardsViewer.js";
85
- import { buildTimelineItemKey as _o } from "./components/TimelineCardsViewer/helpers/buildTimelineRows.js";
86
- import { TCV_DICTIONARY as Io, TCV_DICTIONARY_ID as yo, getTimelineCardsViewerComponentsDictionary as Oo } from "./components/TimelineCardsViewer/dictionary.js";
87
- import { createJourneyRenderers as Mo, createJourneyTimelineRenderers as Ro, journeyRenderers as No } from "./components/TimelineCardsViewer/presets/journey/createJourneyTimelineRenderers.js";
52
+ import { COMPONENT_VIDEO_PLAYER_KEY_COMPONENT as er, VIDEO_PLAYER_VARIANTS as rr } from "./components/VideoPlayer/constants.js";
53
+ import { isHlsLiveDuration as tr, resolveIsLive as ar } from "./components/VideoPlayer/utils.js";
54
+ import { VideoPlayer as pr } from "./components/VideoPlayer/VideoPlayer.js";
55
+ import { CameraStreamsProvider as fr } from "./components/CameraStreams/CameraStreamsProvider.js";
56
+ import { CameraStreamsContext as nr } from "./components/CameraStreams/CameraStreamsContext.js";
57
+ import { CameraStreamPlayersContext as Cr } from "./components/CameraStreams/CameraStreamPlayersContext.js";
58
+ import { createCameraStreamsStore as ur } from "./components/CameraStreams/store.js";
59
+ import { useCameraStreams as Dr } from "./components/CameraStreams/useCameraStreams.js";
60
+ import { useCameraStreamsStore as cr } from "./components/CameraStreams/useCameraStreamsStore.js";
61
+ import { useCameraStreamPlayers as _r } from "./components/CameraStreams/useCameraStreamPlayers.js";
62
+ import { useStreamRequest as dr } from "./components/CameraStreams/hooks/useStreamRequest.js";
63
+ import { isCloudFrontUrl as Or, useCloudFrontCookieManager as yr, useCloudFrontCookieManagerCore as gr, useIsCloudFrontUrl as Mr } from "./components/CameraStreams/hooks/useCloudFrontCookie.js";
64
+ import { COMPONENT_CAMERA_STREAMS_KEY_COMPONENT as Nr, DEFAULT_CAMERA_STREAMS_DURATION_SECONDS as Pr } from "./components/CameraStreams/constants.js";
65
+ import { CAMERA_STREAMS_DICTIONARY_KEYS as vr, getCameraStreamsComponentDictionary as Fr, resolveCameraStreamsDictionaryLabels as Vr } from "./components/CameraStreams/dictionary.js";
66
+ import { buildPlayerKey as hr } from "./components/CameraStreams/types.js";
67
+ import { CameraStream as Yr } from "./components/CameraStream/CameraStream.js";
68
+ import { CAMERA_STREAM_DRAG_HANDLE_CLASSNAME as Hr } from "./components/CameraStream/types.js";
69
+ import { COMPONENT_CAMERA_STREAM_KEY_COMPONENT as Ur, COMPONENT_CAMERA_STREAM_TEST_ID as Qr } from "./components/CameraStream/constants.js";
70
+ import { CameraStreamSlotsStyled as Jr } from "./components/CameraStream/slots/slots.js";
71
+ import { cameraStreamStyles as jr } from "./components/CameraStream/CameraStream.styles.js";
72
+ import { DefaultLabel as zr } from "./components/CameraStream/defaults/DefaultLabel.js";
73
+ import { DefaultLiveBadge as Xr } from "./components/CameraStream/defaults/DefaultLiveBadge.js";
74
+ import { DefaultPhaseChannelBusy as $r } from "./components/CameraStream/defaults/DefaultPhaseChannelBusy.js";
75
+ import { DefaultPhaseError as ro } from "./components/CameraStream/defaults/DefaultPhaseError.js";
76
+ import { DefaultPhaseIdle as to } from "./components/CameraStream/defaults/DefaultPhaseIdle.js";
77
+ import { DefaultPhasePolling as mo } from "./components/CameraStream/defaults/DefaultPhasePolling.js";
78
+ import { DefaultPhaseRequesting as so } from "./components/CameraStream/defaults/DefaultPhaseRequesting.js";
79
+ import { DefaultPhaseStreaming as io } from "./components/CameraStream/defaults/DefaultPhaseStreaming.js";
80
+ import { DefaultPhaseTimeout as xo } from "./components/CameraStream/defaults/DefaultPhaseTimeout.js";
81
+ import { DefaultReplayBadge as lo } from "./components/CameraStream/defaults/DefaultReplayBadge.js";
82
+ import { DefaultRoot as So } from "./components/CameraStream/defaults/DefaultRoot.js";
83
+ import { ReportsViewer as To } from "./components/ReportsViewer/ReportsViewer.js";
84
+ import { TimelineCardsViewer as Eo } from "./components/TimelineCardsViewer/TimelineCardsViewer.js";
85
+ import { buildTimelineItemKey as Ao } from "./components/TimelineCardsViewer/helpers/buildTimelineRows.js";
86
+ import { TCV_DICTIONARY as Oo, TCV_DICTIONARY_ID as yo, getTimelineCardsViewerComponentsDictionary as go } from "./components/TimelineCardsViewer/dictionary.js";
87
+ import { createJourneyRenderers as Ro, createJourneyTimelineRenderers as No, journeyRenderers as Po } from "./components/TimelineCardsViewer/presets/journey/createJourneyTimelineRenderers.js";
88
88
  import { createJourneyTimelineAccessors as vo, resolveJourneySegmentVariant as Fo } from "./components/TimelineCardsViewer/presets/journey/helpers.js";
89
- import { AddressLocation as Vo } from "./components/AddressLocation/AddressLocation.js";
90
- import { getAddressLocationComponentsDictionary as ho } from "./components/AddressLocation/dictionary.js";
91
- import { RHFAddressLocation as Yo } from "./components/RHFs/RHFAddressLocation/RHFAddressLocation.js";
92
- import { capitalizeFirstLetter as Ho } from "./utils/capitalizeFirstLetter.js";
93
- import { isValidDate as Uo } from "./utils/isValidDate.js";
94
- import { getComponentUtilityClass as wo } from "./utils/getComponentUtilityClass.js";
95
- import { getPaletteColor as ko } from "./utils/getPaletteColor.js";
96
- import { getTypographyStyles as qo } from "./utils/getTypographyStyles.js";
97
- import { getHeightSizeStyles as Wo } from "./utils/getSizeStyles/getSizeStyles.js";
98
- import { ObjectQueue as Zo } from "./utils/ObjectQueue.js";
99
- import { getComponentClasses as et, getComponentSlotRoot as rt } from "./utils/getComponentSlotRoot.js";
100
- import { getHdopPresentation as tt } from "./utils/getHdopPresentation/getHdopPresentation.js";
101
- import { HDOP_PRESENTATION_RANGES as mt, HDOP_QUALITY_COLORS as pt } from "./utils/getHdopPresentation/constants.js";
102
- import { TEST_PROP_ID as ft, getNameDataTestId as it, getPropDataTestId as nt } from "./utils/testIds.js";
89
+ import { AddressLocation as bo } from "./components/AddressLocation/AddressLocation.js";
90
+ import { getAddressLocationComponentsDictionary as Go } from "./components/AddressLocation/dictionary.js";
91
+ import { RHFAddressLocation as Bo } from "./components/RHFs/RHFAddressLocation/RHFAddressLocation.js";
92
+ import { capitalizeFirstLetter as Ko } from "./utils/capitalizeFirstLetter.js";
93
+ import { isValidDate as Qo } from "./utils/isValidDate.js";
94
+ import { getComponentUtilityClass as Jo } from "./utils/getComponentUtilityClass.js";
95
+ import { getPaletteColor as jo } from "./utils/getPaletteColor.js";
96
+ import { getTypographyStyles as zo } from "./utils/getTypographyStyles.js";
97
+ import { getHeightSizeStyles as Xo } from "./utils/getSizeStyles/getSizeStyles.js";
98
+ import { ObjectQueue as $o } from "./utils/ObjectQueue.js";
99
+ import { getComponentClasses as rt, getComponentSlotRoot as ot } from "./utils/getComponentSlotRoot.js";
100
+ import { getHdopPresentation as at } from "./utils/getHdopPresentation/getHdopPresentation.js";
101
+ import { HDOP_PRESENTATION_RANGES as pt, HDOP_QUALITY_COLORS as st } from "./utils/getHdopPresentation/constants.js";
102
+ import { TEST_PROP_ID as it, getNameDataTestId as nt, getPropDataTestId as xt } from "./utils/testIds.js";
103
103
  export {
104
- Vo as AddressLocation,
104
+ bo as AddressLocation,
105
105
  vr as CAMERA_STREAMS_DICTIONARY_KEYS,
106
- Br as CAMERA_STREAM_DRAG_HANDLE_CLASSNAME,
107
- Rr as COMPONENT_CAMERA_STREAMS_KEY_COMPONENT,
108
- Kr as COMPONENT_CAMERA_STREAM_KEY_COMPONENT,
109
- Ur as COMPONENT_CAMERA_STREAM_TEST_ID,
106
+ Hr as CAMERA_STREAM_DRAG_HANDLE_CLASSNAME,
107
+ Nr as COMPONENT_CAMERA_STREAMS_KEY_COMPONENT,
108
+ Ur as COMPONENT_CAMERA_STREAM_KEY_COMPONENT,
109
+ Qr as COMPONENT_CAMERA_STREAM_TEST_ID,
110
110
  er as COMPONENT_VIDEO_PLAYER_KEY_COMPONENT,
111
- Gr as CameraStream,
112
- xr as CameraStreamPlayersContext,
113
- wr as CameraStreamSlotsStyled,
114
- ir as CameraStreamsContext,
115
- sr as CameraStreamsProvider,
111
+ Yr as CameraStream,
112
+ Cr as CameraStreamPlayersContext,
113
+ Jr as CameraStreamSlotsStyled,
114
+ nr as CameraStreamsContext,
115
+ fr as CameraStreamsProvider,
116
116
  N as CourseFormatter,
117
- Nr as DEFAULT_CAMERA_STREAMS_DURATION_SECONDS,
117
+ Pr as DEFAULT_CAMERA_STREAMS_DURATION_SECONDS,
118
118
  x as DEVICE_STATUSES_CONFIG,
119
- qr as DefaultLabel,
120
- Wr as DefaultLiveBadge,
121
- Zr as DefaultPhaseChannelBusy,
122
- eo as DefaultPhaseError,
123
- oo as DefaultPhaseIdle,
124
- ao as DefaultPhasePolling,
125
- po as DefaultPhaseRequesting,
126
- fo as DefaultPhaseStreaming,
127
- no as DefaultPhaseTimeout,
128
- Co as DefaultReplayBadge,
129
- uo as DefaultRoot,
119
+ zr as DefaultLabel,
120
+ Xr as DefaultLiveBadge,
121
+ $r as DefaultPhaseChannelBusy,
122
+ ro as DefaultPhaseError,
123
+ to as DefaultPhaseIdle,
124
+ mo as DefaultPhasePolling,
125
+ so as DefaultPhaseRequesting,
126
+ io as DefaultPhaseStreaming,
127
+ xo as DefaultPhaseTimeout,
128
+ lo as DefaultReplayBadge,
129
+ So as DefaultRoot,
130
130
  S as Device,
131
131
  A as DeviceLabel,
132
132
  E as DeviceStatus,
133
133
  Me as GEOFENCES_TOOL,
134
134
  I as GaugeCircular,
135
- Oe as GeofencesTool,
136
- L as GpsMap,
137
- ve as GpsMapToolsContext,
138
- Fe as GpsMapToolsProvider,
139
- mt as HDOP_PRESENTATION_RANGES,
140
- pt as HDOP_QUALITY_COLORS,
135
+ ye as GeofencesTool,
136
+ F as GpsMap,
137
+ Le as GpsMapToolsContext,
138
+ ve as GpsMapToolsProvider,
139
+ pt as HDOP_PRESENTATION_RANGES,
140
+ st as HDOP_QUALITY_COLORS,
141
141
  Ye as INDICATOR_BATTERY_SEMANTIC_STATUS,
142
142
  J as INTERACTION_CHANNELS,
143
143
  Ve as IndicatorBattery,
@@ -148,36 +148,37 @@ export {
148
148
  b as MapContext,
149
149
  h as MapProvider,
150
150
  j as MarkerFeatureRender,
151
- Zo as ObjectQueue,
151
+ $o as ObjectQueue,
152
152
  z as PolylineWithArrows,
153
- Yo as RHFAddressLocation,
154
- Do as ReportsViewer,
155
- Io as TCV_DICTIONARY,
153
+ Bo as RHFAddressLocation,
154
+ To as ReportsViewer,
155
+ Oo as TCV_DICTIONARY,
156
156
  yo as TCV_DICTIONARY_ID,
157
- ft as TEST_PROP_ID,
157
+ it as TEST_PROP_ID,
158
158
  Ze as TIME_VISIBLE_OPTIONS_KEYS,
159
- co as TimelineCardsViewer,
160
- mr as VideoPlayer,
159
+ Eo as TimelineCardsViewer,
160
+ rr as VIDEO_PLAYER_VARIANTS,
161
+ pr as VideoPlayer,
161
162
  qe as VideoTimeLineSelector,
162
- br as buildPlayerKey,
163
- _o as buildTimelineItemKey,
164
- kr as cameraStreamStyles,
165
- Ho as capitalizeFirstLetter,
163
+ hr as buildPlayerKey,
164
+ Ao as buildTimelineItemKey,
165
+ jr as cameraStreamStyles,
166
+ Ko as capitalizeFirstLetter,
166
167
  le as coordsToQuadKey,
167
168
  Se as courseToCartesianAngle,
168
- v as courseToCssAngle,
169
- lr as createCameraStreamsStore,
169
+ L as courseToCssAngle,
170
+ ur as createCameraStreamsStore,
170
171
  U as createFeatureIndexKey,
171
- Mo as createJourneyRenderers,
172
+ Ro as createJourneyRenderers,
172
173
  vo as createJourneyTimelineAccessors,
173
- Ro as createJourneyTimelineRenderers,
174
+ No as createJourneyTimelineRenderers,
174
175
  $ as createPixelPathDecimationFilter,
175
- ho as getAddressLocationComponentsDictionary,
176
+ Go as getAddressLocationComponentsDictionary,
176
177
  Fr as getCameraStreamsComponentDictionary,
177
- et as getComponentClasses,
178
- rt as getComponentSlotRoot,
179
- wo as getComponentUtilityClass,
180
- O as getCourseDirection,
178
+ rt as getComponentClasses,
179
+ ot as getComponentSlotRoot,
180
+ Jo as getComponentUtilityClass,
181
+ y as getCourseDirection,
181
182
  M as getCourseFormatterComponentsDictionary,
182
183
  s as getDeviceByData,
183
184
  m as getDeviceComponentsDictionary,
@@ -185,43 +186,43 @@ export {
185
186
  T as getDeviceStatusComponentsDictionary,
186
187
  Q as getFeatureFromLayer,
187
188
  Ne as getGpsMapToolsComponentsDictionary,
188
- tt as getHdopPresentation,
189
- Wo as getHeightSizeStyles,
189
+ at as getHdopPresentation,
190
+ Xo as getHeightSizeStyles,
190
191
  he as getIndicatorBatteryComponentsDictionary,
191
192
  Ue as getIndicatorCSQComponentsDictionary,
192
193
  Y as getMapComponentsDictionary,
193
- it as getNameDataTestId,
194
- ko as getPaletteColor,
195
- nt as getPropDataTestId,
196
- Oo as getTimelineCardsViewerComponentsDictionary,
197
- qo as getTypographyStyles,
194
+ nt as getNameDataTestId,
195
+ jo as getPaletteColor,
196
+ xt as getPropDataTestId,
197
+ go as getTimelineCardsViewerComponentsDictionary,
198
+ zo as getTypographyStyles,
198
199
  We as getVideoTimeLineSelectorComponentDictionary,
199
- Ir as isCloudFrontUrl,
200
+ Or as isCloudFrontUrl,
200
201
  Te as isFeature,
201
202
  Ee as isFeatureCollection,
202
203
  Ae as isFeatureCollectionDraft,
203
204
  Ie as isGeometry,
204
- or as isHlsLiveDuration,
205
+ tr as isHlsLiveDuration,
205
206
  o as isObservableFeatureEventCaptured,
206
- Uo as isValidDate,
207
- No as journeyRenderers,
208
- Lr as resolveCameraStreamsDictionaryLabels,
209
- tr as resolveIsLive,
207
+ Qo as isValidDate,
208
+ Po as journeyRenderers,
209
+ Vr as resolveCameraStreamsDictionaryLabels,
210
+ ar as resolveIsLive,
210
211
  Fo as resolveJourneySegmentVariant,
211
- Er as useCameraStreamPlayers,
212
- Sr as useCameraStreams,
213
- Tr as useCameraStreamsStore,
212
+ _r as useCameraStreamPlayers,
213
+ Dr as useCameraStreams,
214
+ cr as useCameraStreamsStore,
214
215
  yr as useCloudFrontCookieManager,
215
- Or as useCloudFrontCookieManagerCore,
216
+ gr as useCloudFrontCookieManagerCore,
216
217
  l as useDeviceStatus,
217
218
  te as useDisableMapEventsOnFlag,
218
219
  re as useDisableMapEventsOnMouseOver,
219
220
  X as useFilterDecimation,
220
- gr as useIsCloudFrontUrl,
221
+ Mr as useIsCloudFrontUrl,
221
222
  me as useMapInteractionCapture,
222
223
  ie as useMapStore,
223
224
  t as useObservableFeatureEventHandlers,
224
225
  xe as useRegisterMapToolController,
225
226
  se as useScopedMapInteractionCapture,
226
- Ar as useStreamRequest
227
+ dr as useStreamRequest
227
228
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/gclick",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  "@emotion/react": "11.14.0",
27
27
  "@emotion/styled": "11.14.1",
28
28
  "@tanstack/react-virtual": "^3.13.23",
29
- "@videojs/react": "^10.0.0-beta.24",
29
+ "@videojs/react": "^10.0.0-beta.25",
30
30
  "react": "^19.0.0",
31
31
  "react-dom": "^19.0.0"
32
32
  },
@@ -43,12 +43,12 @@
43
43
  "kdbush": "4.0.2",
44
44
  "camelcase-keys": "9.1.3",
45
45
  "@mui/material": "5.16.7",
46
- "@videojs/react": "10.0.0-beta.24",
46
+ "@videojs/react": "10.0.0-beta.25",
47
47
  "react-dom": "19.1.0",
48
48
  "immer": "9.0.21",
49
49
  "react-hook-form": "7.71.1",
50
- "@googlemaps/js-api-loader": "1.16.10",
51
50
  "leaflet.markercluster": "1.5.3",
51
+ "@googlemaps/js-api-loader": "1.16.10",
52
52
  "yup": "0.32.11"
53
53
  }
54
54
  }
@@ -1,9 +0,0 @@
1
- import { CSSObject, Theme } from '@mui/material/styles';
2
- /**
3
- * Returns the official v10 video skin stylesheet converted to Emotion
4
- * `CSSObject`s, keyed by the vendor's original selectors. Spread it into the
5
- * `VideoPlayer` root slot so the skin chrome is styled without any global CSS
6
- * import. Memoized per theme (see `skinStylesCache`).
7
- */
8
- export declare const videojsSkinAllStyles: (theme: Theme) => Record<string, CSSObject>;
9
- //# sourceMappingURL=VideojsSkin.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideojsSkin.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/VideoPlayer/VideojsSkin.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AA40C7D;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,KAAK,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAO3E,CAAC"}