@m4l/gclick 0.24.1 → 0.25.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 (86) hide show
  1. package/components/CameraStream/defaults/DefaultPhaseStreaming.d.ts +4 -0
  2. package/components/CameraStream/defaults/DefaultPhaseStreaming.d.ts.map +1 -1
  3. package/components/CameraStream/defaults/DefaultPhaseStreaming.js +35 -33
  4. package/components/CameraStreams/CameraStreamsProvider.d.ts +5 -0
  5. package/components/CameraStreams/CameraStreamsProvider.d.ts.map +1 -1
  6. package/components/CameraStreams/CameraStreamsProvider.js +10 -11
  7. package/components/CameraStreams/contexts/CameraStreamPlayersContext.d.ts +7 -3
  8. package/components/CameraStreams/contexts/CameraStreamPlayersContext.d.ts.map +1 -1
  9. package/components/CameraStreams/contexts/CameraStreamsSuspensionContext.d.ts +15 -0
  10. package/components/CameraStreams/contexts/CameraStreamsSuspensionContext.d.ts.map +1 -0
  11. package/components/CameraStreams/contexts/CameraStreamsSuspensionContext.js +5 -0
  12. package/components/CameraStreams/hooks/useCameraStreamsSuspended.d.ts +7 -0
  13. package/components/CameraStreams/hooks/useCameraStreamsSuspended.d.ts.map +1 -0
  14. package/components/CameraStreams/hooks/useCameraStreamsSuspended.js +8 -0
  15. package/components/CameraStreams/hooks/useStreamPolling.d.ts +1 -11
  16. package/components/CameraStreams/hooks/useStreamPolling.d.ts.map +1 -1
  17. package/components/CameraStreams/hooks/useStreamPolling.js +84 -89
  18. package/components/CameraStreams/hooks/useStreamRequest.d.ts +7 -8
  19. package/components/CameraStreams/hooks/useStreamRequest.d.ts.map +1 -1
  20. package/components/CameraStreams/hooks/useStreamRequest.js +34 -50
  21. package/components/CameraStreams/index.d.ts +2 -0
  22. package/components/CameraStreams/index.d.ts.map +1 -1
  23. package/components/CameraStreams/types.d.ts +23 -10
  24. package/components/CameraStreams/types.d.ts.map +1 -1
  25. package/components/VideoPlayer/VideoPlayer.d.ts +3 -3
  26. package/components/VideoPlayer/VideoPlayer.d.ts.map +1 -1
  27. package/components/VideoPlayer/VideoPlayer.js +29 -25
  28. package/components/VideoPlayer/VideoPlayer.styles.d.ts.map +1 -1
  29. package/components/VideoPlayer/VideoPlayer.styles.js +32 -6
  30. package/components/VideoPlayer/VideojsDefaultSkin.styles.d.ts.map +1 -1
  31. package/components/VideoPlayer/VideojsDefaultSkin.styles.js +936 -807
  32. package/components/VideoPlayer/VideojsMinimalSkin.styles.d.ts.map +1 -1
  33. package/components/VideoPlayer/VideojsMinimalSkin.styles.js +901 -809
  34. package/components/VideoPlayer/constants.d.ts +16 -0
  35. package/components/VideoPlayer/constants.d.ts.map +1 -1
  36. package/components/VideoPlayer/constants.js +27 -8
  37. package/components/VideoPlayer/hlsSource.d.ts +41 -0
  38. package/components/VideoPlayer/hlsSource.d.ts.map +1 -0
  39. package/components/VideoPlayer/hlsSource.js +35 -0
  40. package/components/VideoPlayer/hooks/useMediaReadiness.d.ts +22 -0
  41. package/components/VideoPlayer/hooks/useMediaReadiness.d.ts.map +1 -0
  42. package/components/VideoPlayer/hooks/useMediaReadiness.js +21 -0
  43. package/components/VideoPlayer/hooks/usePlaybackIntent.d.ts +14 -0
  44. package/components/VideoPlayer/hooks/usePlaybackIntent.d.ts.map +1 -0
  45. package/components/VideoPlayer/hooks/usePlaybackIntent.js +33 -0
  46. package/components/VideoPlayer/hooks/usePlayerControl.d.ts +6 -0
  47. package/components/VideoPlayer/hooks/usePlayerControl.d.ts.map +1 -1
  48. package/components/VideoPlayer/hooks/usePlayerControl.js +34 -25
  49. package/components/VideoPlayer/hooks/usePlayerEvents.d.ts +5 -1
  50. package/components/VideoPlayer/hooks/usePlayerEvents.d.ts.map +1 -1
  51. package/components/VideoPlayer/hooks/usePlayerEvents.js +10 -11
  52. package/components/VideoPlayer/player.factory.d.ts +24 -17
  53. package/components/VideoPlayer/player.factory.d.ts.map +1 -1
  54. package/components/VideoPlayer/storeSafety.d.ts +15 -0
  55. package/components/VideoPlayer/storeSafety.d.ts.map +1 -0
  56. package/components/VideoPlayer/storeSafety.js +25 -0
  57. package/components/VideoPlayer/subcomponents/GclickVideoSkin.d.ts +4 -2
  58. package/components/VideoPlayer/subcomponents/GclickVideoSkin.d.ts.map +1 -1
  59. package/components/VideoPlayer/subcomponents/GclickVideoSkin.js +36 -24
  60. package/components/VideoPlayer/subcomponents/VideoPlayerStage.d.ts +5 -3
  61. package/components/VideoPlayer/subcomponents/VideoPlayerStage.d.ts.map +1 -1
  62. package/components/VideoPlayer/subcomponents/VideoPlayerStage.js +64 -49
  63. package/components/VideoPlayer/subcomponents/skin/VideoControlBar.d.ts +14 -2
  64. package/components/VideoPlayer/subcomponents/skin/VideoControlBar.d.ts.map +1 -1
  65. package/components/VideoPlayer/subcomponents/skin/VideoControlBar.js +90 -62
  66. package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.d.ts +11 -0
  67. package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.d.ts.map +1 -1
  68. package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.js +16 -13
  69. package/components/VideoPlayer/subcomponents/skin/VideoInputIndicators.d.ts +15 -0
  70. package/components/VideoPlayer/subcomponents/skin/VideoInputIndicators.d.ts.map +1 -0
  71. package/components/VideoPlayer/subcomponents/skin/VideoInputIndicators.js +57 -0
  72. package/components/VideoPlayer/subcomponents/skin/VideoSettingsMenu.d.ts.map +1 -1
  73. package/components/VideoPlayer/subcomponents/skin/VideoSettingsMenu.js +10 -12
  74. package/components/VideoPlayer/subcomponents/skin/primitives.d.ts +11 -2
  75. package/components/VideoPlayer/subcomponents/skin/primitives.d.ts.map +1 -1
  76. package/components/VideoPlayer/subcomponents/skin/primitives.js +74 -72
  77. package/components/VideoPlayer/types.d.ts +43 -5
  78. package/components/VideoPlayer/types.d.ts.map +1 -1
  79. package/index.js +149 -145
  80. package/package.json +4 -2
  81. package/components/CameraStreams/subcomponents/CameraStreamsSuspensionController.d.ts +0 -18
  82. package/components/CameraStreams/subcomponents/CameraStreamsSuspensionController.d.ts.map +0 -1
  83. package/components/CameraStreams/subcomponents/CameraStreamsSuspensionController.js +0 -35
  84. package/components/VideoPlayer/hlsConfig.d.ts +0 -30
  85. package/components/VideoPlayer/hlsConfig.d.ts.map +0 -1
  86. package/components/VideoPlayer/hlsConfig.js +0 -33
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { isObservableFeatureEventCaptured as o, useObservableFeatureEventHandlers as t } from "./components/maps/components/GpsMap/hooks/useObservableFeatureEventHandlers.js";
2
2
  import { getDeviceComponentsDictionary as m } from "./components/Device/dictionary.js";
3
3
  import { getDeviceByData as s } from "./components/Device/helpers.js";
4
- import { getDeviceStatusByData as n } from "./components/Device/helpers/helperDeviceStatus.js";
4
+ import { getDeviceStatusByData as i } from "./components/Device/helpers/helperDeviceStatus.js";
5
5
  import { DEVICE_STATUSES_CONFIG as x } from "./components/Device/hooks/constants.js";
6
6
  import { useDeviceStatus as C } from "./components/Device/hooks/useDeviceStatus.js";
7
7
  import { Device as u } from "./components/Device/Device.js";
@@ -27,7 +27,7 @@ import { useDisableMapEventsOnMouseOver as re } from "./components/maps/componen
27
27
  import { useDisableMapEventsOnFlag as te } from "./components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.js";
28
28
  import { useMapInteractionCapture as me } from "./components/maps/components/GpsMap/hooks/useMapInteractionCapture.js";
29
29
  import { useScopedMapInteractionCapture as se } from "./components/maps/components/GpsMap/hooks/useScopedMapInteractionCapture.js";
30
- import { useMapStore as ne } from "./components/maps/components/GpsMap/hooks/useMapStore/index.js";
30
+ import { useMapStore as ie } from "./components/maps/components/GpsMap/hooks/useMapStore/index.js";
31
31
  import { useRegisterMapToolController as xe } from "./components/maps/components/GpsMap/hooks/useRegisterMapToolController.js";
32
32
  import { coordsToQuadKey as Ce } from "./components/maps/utils/coordsToQuadKey.js";
33
33
  import { courseToCartesianAngle as ue } from "./components/maps/utils/courseToCartesianAngle.js";
@@ -52,92 +52,95 @@ import { TIME_VISIBLE_OPTIONS_KEYS as Ze } from "./components/VideoTimeLineSelec
52
52
  import { COMPONENT_VIDEO_PLAYER_KEY_COMPONENT as er, VIDEO_PLAYER_VARIANTS as rr } from "./components/VideoPlayer/constants.js";
53
53
  import { isHlsLiveDuration as tr, resolveIsLive as ar } from "./components/VideoPlayer/utils.js";
54
54
  import { VideoPlayer as pr } from "./components/VideoPlayer/VideoPlayer.js";
55
- import { CameraStreamsProvider as ir } from "./components/CameraStreams/CameraStreamsProvider.js";
55
+ import { CameraStreamsProvider as nr } from "./components/CameraStreams/CameraStreamsProvider.js";
56
56
  import { CameraStreamsContext as fr } from "./components/CameraStreams/contexts/CameraStreamsContext.js";
57
57
  import { CameraStreamPlayersContext as lr } from "./components/CameraStreams/contexts/CameraStreamPlayersContext.js";
58
- import { createCameraStreamsStore as Sr } from "./components/CameraStreams/store.js";
59
- import { useCameraStreams as Dr } from "./components/CameraStreams/hooks/useCameraStreams.js";
60
- import { useCameraStreamsStore as Tr } from "./components/CameraStreams/hooks/useCameraStreamsStore.js";
61
- import { useCameraStreamPlayers as cr } from "./components/CameraStreams/hooks/useCameraStreamPlayers.js";
62
- import { useStreamRequest as Ar } from "./components/CameraStreams/hooks/useStreamRequest.js";
63
- import { isCloudFrontUrl as Ir, useCloudFrontCookieManager as yr, useCloudFrontCookieManagerCore as Mr, useIsCloudFrontUrl as gr } from "./components/CameraStreams/hooks/useCloudFrontCookie.js";
64
- import { CAMERA_STREAM_POLL_SCHEDULE as Pr, CAMERA_STREAM_WAITING_STAGES as Nr, COMPONENT_CAMERA_STREAMS_KEY_COMPONENT as Fr, DEFAULT_CAMERA_STREAMS_DURATION_SECONDS as vr, DEFAULT_CAMERA_STREAMS_POLL_BUDGET_SECONDS as Lr } from "./components/CameraStreams/constants.js";
65
- import { resolvePollInterval as hr } from "./components/CameraStreams/helpers/pollSchedule.js";
66
- import { pendingStageBoundaries as Yr, resolveWaitingStage as Br } from "./components/CameraStreams/helpers/waitingStages.js";
67
- import { cleanErrorMessage as Ur, extractErrorMessage as Hr, extractHlsUrlFromResponse as Kr, isBusyStreamError as wr, resolveCommandErrorMessage as Jr, safeParseJson as Qr } from "./components/CameraStreams/helpers/commandError.js";
68
- import { CAMERA_STREAMS_DICTIONARY_KEYS as kr, getCameraStreamsComponentDictionary as zr, resolveCameraStreamsDictionaryLabels as jr } from "./components/CameraStreams/dictionary.js";
69
- import { buildPlayerKey as Xr } from "./components/CameraStreams/types.js";
70
- import { CameraStream as $r } from "./components/CameraStream/CameraStream.js";
71
- import { CAMERA_STREAM_DRAG_HANDLE_CLASSNAME as ro } from "./components/CameraStream/types.js";
72
- import { COMPONENT_CAMERA_STREAM_KEY_COMPONENT as to, COMPONENT_CAMERA_STREAM_TEST_ID as ao } from "./components/CameraStream/constants.js";
73
- import { CameraStreamSlotsStyled as po } from "./components/CameraStream/slots/CameraStreamEnum.js";
74
- import { cameraStreamStyles as io } from "./components/CameraStream/CameraStream.styles.js";
75
- import { DefaultLabel as fo } from "./components/CameraStream/defaults/DefaultLabel.js";
76
- import { DefaultLiveBadge as lo } from "./components/CameraStream/defaults/DefaultLiveBadge.js";
77
- import { DefaultPhaseChannelBusy as So } from "./components/CameraStream/defaults/DefaultPhaseChannelBusy.js";
78
- import { DefaultPhaseError as Do } from "./components/CameraStream/defaults/DefaultPhaseError.js";
79
- import { DefaultPhaseIdle as To } from "./components/CameraStream/defaults/DefaultPhaseIdle.js";
80
- import { DefaultPhasePolling as co } from "./components/CameraStream/defaults/DefaultPhasePolling.js";
81
- import { DefaultPhaseRequesting as Ao } from "./components/CameraStream/defaults/DefaultPhaseRequesting.js";
82
- import { DefaultPhaseStreaming as yo } from "./components/CameraStream/defaults/DefaultPhaseStreaming.js";
83
- import { DefaultPhaseTimeout as go } from "./components/CameraStream/defaults/DefaultPhaseTimeout.js";
84
- import { DefaultReplayBadge as Po } from "./components/CameraStream/defaults/DefaultReplayBadge.js";
85
- import { DefaultRoot as Fo } from "./components/CameraStream/defaults/DefaultRoot.js";
86
- import { DefaultSharedBadge as Lo } from "./components/CameraStream/defaults/DefaultSharedBadge.js";
87
- import { ReportsViewer as ho } from "./components/ReportsViewer/ReportsViewer.js";
88
- import { resolveReportDateTimeRange as Yo } from "./components/ReportsViewer/helpers/resolveReportDateTimeRange/index.js";
89
- import { REPORTS_VIEWER_DICTIONARY as bo, REPORTS_VIEWER_DICTIONARY_ID as Uo, getReportsViewerComponentsDictionary as Ho } from "./components/ReportsViewer/dictionary.js";
90
- import { TimelineCardsViewer as wo } from "./components/TimelineCardsViewer/TimelineCardsViewer.js";
91
- import { buildTimelineItemKey as Qo } from "./components/TimelineCardsViewer/helpers/buildTimelineRows.js";
92
- import { TCV_DICTIONARY as ko, TCV_DICTIONARY_ID as zo, getTimelineCardsViewerComponentsDictionary as jo } from "./components/TimelineCardsViewer/dictionary.js";
93
- import { createJourneyRenderers as Xo, createJourneyTimelineRenderers as Zo, journeyRenderers as $o } from "./components/TimelineCardsViewer/presets/journey/createJourneyTimelineRenderers.js";
94
- import { createJourneyTimelineAccessors as rt, resolveJourneySegmentVariant as ot } from "./components/TimelineCardsViewer/presets/journey/helpers.js";
95
- import { AddressLocation as at } from "./components/AddressLocation/AddressLocation.js";
96
- import { getAddressLocationComponentsDictionary as pt } from "./components/AddressLocation/dictionary.js";
97
- import { RHFAddressLocation as it } from "./components/RHFs/RHFAddressLocation/RHFAddressLocation.js";
98
- import { fetchReportDynamicFormData as ft, hasReportDynamicFormCloneMetadata as xt, hydrateReportDynamicFormStructure as lt, isReportFormMetadataKey as Ct, normalizeReportFormValueKey as St, resolveReportDynamicFormTitle as ut, resolveReportFormId as Dt, resolveReportTypeId as Et, unwrapDynamicFormCurrentValue as Tt } from "./reports/reportDynamicForm/reportDynamicForm.js";
99
- import { capitalizeFirstLetter as ct } from "./utils/capitalizeFirstLetter.js";
100
- import { isValidDate as At } from "./utils/isValidDate.js";
101
- import { getComponentUtilityClass as It } from "./utils/getComponentUtilityClass.js";
102
- import { getPaletteColor as Mt } from "./utils/getPaletteColor.js";
103
- import { getTypographyStyles as Ot } from "./utils/getTypographyStyles.js";
104
- import { getHeightSizeStyles as Nt } from "./utils/getSizeStyles/getSizeStyles.js";
105
- import { ObjectQueue as vt } from "./utils/ObjectQueue.js";
106
- import { getComponentClasses as Vt, getComponentSlotRoot as ht } from "./utils/getComponentSlotRoot.js";
107
- import { getHdopPresentation as Yt } from "./utils/getHdopPresentation/getHdopPresentation.js";
108
- import { HDOP_PRESENTATION_RANGES as bt, HDOP_QUALITY_COLORS as Ut } from "./utils/getHdopPresentation/constants.js";
109
- import { TEST_PROP_ID as Kt, getNameDataTestId as wt, getPropDataTestId as Jt } from "./utils/testIds.js";
58
+ import { CameraStreamsSuspensionContext as Sr } from "./components/CameraStreams/contexts/CameraStreamsSuspensionContext.js";
59
+ import { createCameraStreamsStore as Dr } from "./components/CameraStreams/store.js";
60
+ import { useCameraStreams as Tr } from "./components/CameraStreams/hooks/useCameraStreams.js";
61
+ import { useCameraStreamsStore as cr } from "./components/CameraStreams/hooks/useCameraStreamsStore.js";
62
+ import { useCameraStreamPlayers as Ar } from "./components/CameraStreams/hooks/useCameraStreamPlayers.js";
63
+ import { useCameraStreamsSuspended as Ir } from "./components/CameraStreams/hooks/useCameraStreamsSuspended.js";
64
+ import { useStreamRequest as Mr } from "./components/CameraStreams/hooks/useStreamRequest.js";
65
+ import { isCloudFrontUrl as Or, useCloudFrontCookieManager as Pr, useCloudFrontCookieManagerCore as Nr, useIsCloudFrontUrl as Fr } from "./components/CameraStreams/hooks/useCloudFrontCookie.js";
66
+ import { CAMERA_STREAM_POLL_SCHEDULE as Lr, CAMERA_STREAM_WAITING_STAGES as Vr, COMPONENT_CAMERA_STREAMS_KEY_COMPONENT as hr, DEFAULT_CAMERA_STREAMS_DURATION_SECONDS as Gr, DEFAULT_CAMERA_STREAMS_POLL_BUDGET_SECONDS as Yr } from "./components/CameraStreams/constants.js";
67
+ import { resolvePollInterval as br } from "./components/CameraStreams/helpers/pollSchedule.js";
68
+ import { pendingStageBoundaries as Hr, resolveWaitingStage as Kr } from "./components/CameraStreams/helpers/waitingStages.js";
69
+ import { cleanErrorMessage as Jr, extractErrorMessage as Qr, extractHlsUrlFromResponse as Wr, isBusyStreamError as kr, resolveCommandErrorMessage as zr, safeParseJson as jr } from "./components/CameraStreams/helpers/commandError.js";
70
+ import { CAMERA_STREAMS_DICTIONARY_KEYS as Xr, getCameraStreamsComponentDictionary as Zr, resolveCameraStreamsDictionaryLabels as $r } from "./components/CameraStreams/dictionary.js";
71
+ import { buildPlayerKey as ro } from "./components/CameraStreams/types.js";
72
+ import { CameraStream as to } from "./components/CameraStream/CameraStream.js";
73
+ import { CAMERA_STREAM_DRAG_HANDLE_CLASSNAME as mo } from "./components/CameraStream/types.js";
74
+ import { COMPONENT_CAMERA_STREAM_KEY_COMPONENT as so, COMPONENT_CAMERA_STREAM_TEST_ID as no } from "./components/CameraStream/constants.js";
75
+ import { CameraStreamSlotsStyled as fo } from "./components/CameraStream/slots/CameraStreamEnum.js";
76
+ import { cameraStreamStyles as lo } from "./components/CameraStream/CameraStream.styles.js";
77
+ import { DefaultLabel as So } from "./components/CameraStream/defaults/DefaultLabel.js";
78
+ import { DefaultLiveBadge as Do } from "./components/CameraStream/defaults/DefaultLiveBadge.js";
79
+ import { DefaultPhaseChannelBusy as To } from "./components/CameraStream/defaults/DefaultPhaseChannelBusy.js";
80
+ import { DefaultPhaseError as co } from "./components/CameraStream/defaults/DefaultPhaseError.js";
81
+ import { DefaultPhaseIdle as Ao } from "./components/CameraStream/defaults/DefaultPhaseIdle.js";
82
+ import { DefaultPhasePolling as yo } from "./components/CameraStream/defaults/DefaultPhasePolling.js";
83
+ import { DefaultPhaseRequesting as go } from "./components/CameraStream/defaults/DefaultPhaseRequesting.js";
84
+ import { DefaultPhaseStreaming as Po } from "./components/CameraStream/defaults/DefaultPhaseStreaming.js";
85
+ import { DefaultPhaseTimeout as Fo } from "./components/CameraStream/defaults/DefaultPhaseTimeout.js";
86
+ import { DefaultReplayBadge as Lo } from "./components/CameraStream/defaults/DefaultReplayBadge.js";
87
+ import { DefaultRoot as ho } from "./components/CameraStream/defaults/DefaultRoot.js";
88
+ import { DefaultSharedBadge as Yo } from "./components/CameraStream/defaults/DefaultSharedBadge.js";
89
+ import { ReportsViewer as bo } from "./components/ReportsViewer/ReportsViewer.js";
90
+ import { resolveReportDateTimeRange as Ho } from "./components/ReportsViewer/helpers/resolveReportDateTimeRange/index.js";
91
+ import { REPORTS_VIEWER_DICTIONARY as wo, REPORTS_VIEWER_DICTIONARY_ID as Jo, getReportsViewerComponentsDictionary as Qo } from "./components/ReportsViewer/dictionary.js";
92
+ import { TimelineCardsViewer as ko } from "./components/TimelineCardsViewer/TimelineCardsViewer.js";
93
+ import { buildTimelineItemKey as jo } from "./components/TimelineCardsViewer/helpers/buildTimelineRows.js";
94
+ import { TCV_DICTIONARY as Xo, TCV_DICTIONARY_ID as Zo, getTimelineCardsViewerComponentsDictionary as $o } from "./components/TimelineCardsViewer/dictionary.js";
95
+ import { createJourneyRenderers as rt, createJourneyTimelineRenderers as ot, journeyRenderers as tt } from "./components/TimelineCardsViewer/presets/journey/createJourneyTimelineRenderers.js";
96
+ import { createJourneyTimelineAccessors as mt, resolveJourneySegmentVariant as pt } from "./components/TimelineCardsViewer/presets/journey/helpers.js";
97
+ import { AddressLocation as nt } from "./components/AddressLocation/AddressLocation.js";
98
+ import { getAddressLocationComponentsDictionary as ft } from "./components/AddressLocation/dictionary.js";
99
+ import { RHFAddressLocation as lt } from "./components/RHFs/RHFAddressLocation/RHFAddressLocation.js";
100
+ import { fetchReportDynamicFormData as St, hasReportDynamicFormCloneMetadata as ut, hydrateReportDynamicFormStructure as Dt, isReportFormMetadataKey as Et, normalizeReportFormValueKey as Tt, resolveReportDynamicFormTitle as _t, resolveReportFormId as ct, resolveReportTypeId as Rt, unwrapDynamicFormCurrentValue as At } from "./reports/reportDynamicForm/reportDynamicForm.js";
101
+ import { capitalizeFirstLetter as It } from "./utils/capitalizeFirstLetter.js";
102
+ import { isValidDate as Mt } from "./utils/isValidDate.js";
103
+ import { getComponentUtilityClass as Ot } from "./utils/getComponentUtilityClass.js";
104
+ import { getPaletteColor as Nt } from "./utils/getPaletteColor.js";
105
+ import { getTypographyStyles as vt } from "./utils/getTypographyStyles.js";
106
+ import { getHeightSizeStyles as Vt } from "./utils/getSizeStyles/getSizeStyles.js";
107
+ import { ObjectQueue as Gt } from "./utils/ObjectQueue.js";
108
+ import { getComponentClasses as Bt, getComponentSlotRoot as bt } from "./utils/getComponentSlotRoot.js";
109
+ import { getHdopPresentation as Ht } from "./utils/getHdopPresentation/getHdopPresentation.js";
110
+ import { HDOP_PRESENTATION_RANGES as wt, HDOP_QUALITY_COLORS as Jt } from "./utils/getHdopPresentation/constants.js";
111
+ import { TEST_PROP_ID as Wt, getNameDataTestId as kt, getPropDataTestId as zt } from "./utils/testIds.js";
110
112
  export {
111
- at as AddressLocation,
112
- kr as CAMERA_STREAMS_DICTIONARY_KEYS,
113
- ro as CAMERA_STREAM_DRAG_HANDLE_CLASSNAME,
114
- Pr as CAMERA_STREAM_POLL_SCHEDULE,
115
- Nr as CAMERA_STREAM_WAITING_STAGES,
116
- Fr as COMPONENT_CAMERA_STREAMS_KEY_COMPONENT,
117
- to as COMPONENT_CAMERA_STREAM_KEY_COMPONENT,
118
- ao as COMPONENT_CAMERA_STREAM_TEST_ID,
113
+ nt as AddressLocation,
114
+ Xr as CAMERA_STREAMS_DICTIONARY_KEYS,
115
+ mo as CAMERA_STREAM_DRAG_HANDLE_CLASSNAME,
116
+ Lr as CAMERA_STREAM_POLL_SCHEDULE,
117
+ Vr as CAMERA_STREAM_WAITING_STAGES,
118
+ hr as COMPONENT_CAMERA_STREAMS_KEY_COMPONENT,
119
+ so as COMPONENT_CAMERA_STREAM_KEY_COMPONENT,
120
+ no as COMPONENT_CAMERA_STREAM_TEST_ID,
119
121
  er as COMPONENT_VIDEO_PLAYER_KEY_COMPONENT,
120
- $r as CameraStream,
122
+ to as CameraStream,
121
123
  lr as CameraStreamPlayersContext,
122
- po as CameraStreamSlotsStyled,
124
+ fo as CameraStreamSlotsStyled,
123
125
  fr as CameraStreamsContext,
124
- ir as CameraStreamsProvider,
126
+ nr as CameraStreamsProvider,
127
+ Sr as CameraStreamsSuspensionContext,
125
128
  P as CourseFormatter,
126
- vr as DEFAULT_CAMERA_STREAMS_DURATION_SECONDS,
127
- Lr as DEFAULT_CAMERA_STREAMS_POLL_BUDGET_SECONDS,
129
+ Gr as DEFAULT_CAMERA_STREAMS_DURATION_SECONDS,
130
+ Yr as DEFAULT_CAMERA_STREAMS_POLL_BUDGET_SECONDS,
128
131
  x as DEVICE_STATUSES_CONFIG,
129
- fo as DefaultLabel,
130
- lo as DefaultLiveBadge,
131
- So as DefaultPhaseChannelBusy,
132
- Do as DefaultPhaseError,
133
- To as DefaultPhaseIdle,
134
- co as DefaultPhasePolling,
135
- Ao as DefaultPhaseRequesting,
136
- yo as DefaultPhaseStreaming,
137
- go as DefaultPhaseTimeout,
138
- Po as DefaultReplayBadge,
139
- Fo as DefaultRoot,
140
- Lo as DefaultSharedBadge,
132
+ So as DefaultLabel,
133
+ Do as DefaultLiveBadge,
134
+ To as DefaultPhaseChannelBusy,
135
+ co as DefaultPhaseError,
136
+ Ao as DefaultPhaseIdle,
137
+ yo as DefaultPhasePolling,
138
+ go as DefaultPhaseRequesting,
139
+ Po as DefaultPhaseStreaming,
140
+ Fo as DefaultPhaseTimeout,
141
+ Lo as DefaultReplayBadge,
142
+ ho as DefaultRoot,
143
+ Yo as DefaultSharedBadge,
141
144
  u as Device,
142
145
  R as DeviceLabel,
143
146
  _ as DeviceStatus,
@@ -147,8 +150,8 @@ export {
147
150
  L as GpsMap,
148
151
  Fe as GpsMapToolsContext,
149
152
  ve as GpsMapToolsProvider,
150
- bt as HDOP_PRESENTATION_RANGES,
151
- Ut as HDOP_QUALITY_COLORS,
153
+ wt as HDOP_PRESENTATION_RANGES,
154
+ Jt as HDOP_QUALITY_COLORS,
152
155
  Be as INDICATOR_BATTERY_SEMANTIC_STATUS,
153
156
  Q as INTERACTION_CHANNELS,
154
157
  Ve as IndicatorBattery,
@@ -159,103 +162,104 @@ export {
159
162
  h as MapContext,
160
163
  G as MapProvider,
161
164
  k as MarkerFeatureRender,
162
- vt as ObjectQueue,
165
+ Gt as ObjectQueue,
163
166
  j as PolylineWithArrows,
164
- bo as REPORTS_VIEWER_DICTIONARY,
165
- Uo as REPORTS_VIEWER_DICTIONARY_ID,
166
- it as RHFAddressLocation,
167
- ho as ReportsViewer,
168
- ko as TCV_DICTIONARY,
169
- zo as TCV_DICTIONARY_ID,
170
- Kt as TEST_PROP_ID,
167
+ wo as REPORTS_VIEWER_DICTIONARY,
168
+ Jo as REPORTS_VIEWER_DICTIONARY_ID,
169
+ lt as RHFAddressLocation,
170
+ bo as ReportsViewer,
171
+ Xo as TCV_DICTIONARY,
172
+ Zo as TCV_DICTIONARY_ID,
173
+ Wt as TEST_PROP_ID,
171
174
  Ze as TIME_VISIBLE_OPTIONS_KEYS,
172
- wo as TimelineCardsViewer,
175
+ ko as TimelineCardsViewer,
173
176
  rr as VIDEO_PLAYER_VARIANTS,
174
177
  pr as VideoPlayer,
175
178
  ze as VideoTimeLineSelector,
176
- Xr as buildPlayerKey,
177
- Qo as buildTimelineItemKey,
178
- io as cameraStreamStyles,
179
- ct as capitalizeFirstLetter,
180
- Ur as cleanErrorMessage,
179
+ ro as buildPlayerKey,
180
+ jo as buildTimelineItemKey,
181
+ lo as cameraStreamStyles,
182
+ It as capitalizeFirstLetter,
183
+ Jr as cleanErrorMessage,
181
184
  Ce as coordsToQuadKey,
182
185
  ue as courseToCartesianAngle,
183
186
  F as courseToCssAngle,
184
- Sr as createCameraStreamsStore,
187
+ Dr as createCameraStreamsStore,
185
188
  K as createFeatureIndexKey,
186
- Xo as createJourneyRenderers,
187
- rt as createJourneyTimelineAccessors,
188
- Zo as createJourneyTimelineRenderers,
189
+ rt as createJourneyRenderers,
190
+ mt as createJourneyTimelineAccessors,
191
+ ot as createJourneyTimelineRenderers,
189
192
  $ as createPixelPathDecimationFilter,
190
- Hr as extractErrorMessage,
191
- Kr as extractHlsUrlFromResponse,
192
- ft as fetchReportDynamicFormData,
193
- pt as getAddressLocationComponentsDictionary,
194
- zr as getCameraStreamsComponentDictionary,
195
- Vt as getComponentClasses,
196
- ht as getComponentSlotRoot,
197
- It as getComponentUtilityClass,
193
+ Qr as extractErrorMessage,
194
+ Wr as extractHlsUrlFromResponse,
195
+ St as fetchReportDynamicFormData,
196
+ ft as getAddressLocationComponentsDictionary,
197
+ Zr as getCameraStreamsComponentDictionary,
198
+ Bt as getComponentClasses,
199
+ bt as getComponentSlotRoot,
200
+ Ot as getComponentUtilityClass,
198
201
  y as getCourseDirection,
199
202
  g as getCourseFormatterComponentsDictionary,
200
203
  s as getDeviceByData,
201
204
  m as getDeviceComponentsDictionary,
202
- n as getDeviceStatusByData,
205
+ i as getDeviceStatusByData,
203
206
  E as getDeviceStatusComponentsDictionary,
204
207
  w as getFeatureFromLayer,
205
208
  Pe as getGpsMapToolsComponentsDictionary,
206
- Yt as getHdopPresentation,
207
- Nt as getHeightSizeStyles,
209
+ Ht as getHdopPresentation,
210
+ Vt as getHeightSizeStyles,
208
211
  Ge as getIndicatorBatteryComponentsDictionary,
209
212
  Ke as getIndicatorCSQComponentsDictionary,
210
213
  B as getMapComponentsDictionary,
211
- wt as getNameDataTestId,
212
- Mt as getPaletteColor,
213
- Jt as getPropDataTestId,
214
- Ho as getReportsViewerComponentsDictionary,
215
- jo as getTimelineCardsViewerComponentsDictionary,
216
- Ot as getTypographyStyles,
214
+ kt as getNameDataTestId,
215
+ Nt as getPaletteColor,
216
+ zt as getPropDataTestId,
217
+ Qo as getReportsViewerComponentsDictionary,
218
+ $o as getTimelineCardsViewerComponentsDictionary,
219
+ vt as getTypographyStyles,
217
220
  qe as getVideoTimeLineSelectorComponentDictionary,
218
- xt as hasReportDynamicFormCloneMetadata,
219
- lt as hydrateReportDynamicFormStructure,
220
- wr as isBusyStreamError,
221
- Ir as isCloudFrontUrl,
221
+ ut as hasReportDynamicFormCloneMetadata,
222
+ Dt as hydrateReportDynamicFormStructure,
223
+ kr as isBusyStreamError,
224
+ Or as isCloudFrontUrl,
222
225
  Ee as isFeature,
223
226
  _e as isFeatureCollection,
224
227
  Re as isFeatureCollectionDraft,
225
228
  de as isGeometry,
226
229
  tr as isHlsLiveDuration,
227
230
  o as isObservableFeatureEventCaptured,
228
- Ct as isReportFormMetadataKey,
229
- At as isValidDate,
230
- $o as journeyRenderers,
231
- St as normalizeReportFormValueKey,
232
- Yr as pendingStageBoundaries,
233
- jr as resolveCameraStreamsDictionaryLabels,
234
- Jr as resolveCommandErrorMessage,
231
+ Et as isReportFormMetadataKey,
232
+ Mt as isValidDate,
233
+ tt as journeyRenderers,
234
+ Tt as normalizeReportFormValueKey,
235
+ Hr as pendingStageBoundaries,
236
+ $r as resolveCameraStreamsDictionaryLabels,
237
+ zr as resolveCommandErrorMessage,
235
238
  ar as resolveIsLive,
236
- ot as resolveJourneySegmentVariant,
237
- hr as resolvePollInterval,
238
- Yo as resolveReportDateTimeRange,
239
- ut as resolveReportDynamicFormTitle,
240
- Dt as resolveReportFormId,
241
- Et as resolveReportTypeId,
242
- Br as resolveWaitingStage,
243
- Qr as safeParseJson,
244
- Tt as unwrapDynamicFormCurrentValue,
245
- cr as useCameraStreamPlayers,
246
- Dr as useCameraStreams,
247
- Tr as useCameraStreamsStore,
248
- yr as useCloudFrontCookieManager,
249
- Mr as useCloudFrontCookieManagerCore,
239
+ pt as resolveJourneySegmentVariant,
240
+ br as resolvePollInterval,
241
+ Ho as resolveReportDateTimeRange,
242
+ _t as resolveReportDynamicFormTitle,
243
+ ct as resolveReportFormId,
244
+ Rt as resolveReportTypeId,
245
+ Kr as resolveWaitingStage,
246
+ jr as safeParseJson,
247
+ At as unwrapDynamicFormCurrentValue,
248
+ Ar as useCameraStreamPlayers,
249
+ Tr as useCameraStreams,
250
+ cr as useCameraStreamsStore,
251
+ Ir as useCameraStreamsSuspended,
252
+ Pr as useCloudFrontCookieManager,
253
+ Nr as useCloudFrontCookieManagerCore,
250
254
  C as useDeviceStatus,
251
255
  te as useDisableMapEventsOnFlag,
252
256
  re as useDisableMapEventsOnMouseOver,
253
257
  X as useFilterDecimation,
254
- gr as useIsCloudFrontUrl,
258
+ Fr as useIsCloudFrontUrl,
255
259
  me as useMapInteractionCapture,
256
- ne as useMapStore,
260
+ ie as useMapStore,
257
261
  t as useObservableFeatureEventHandlers,
258
262
  xe as useRegisterMapToolController,
259
263
  se as useScopedMapInteractionCapture,
260
- Ar as useStreamRequest
264
+ Mr as useStreamRequest
261
265
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/gclick",
3
- "version": "0.24.1",
3
+ "version": "0.25.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,7 +40,9 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@tanstack/react-virtual": "3.13.23",
43
- "@videojs/react": "10.0.0-beta.25",
43
+ "@videojs/core": "10.0.0-beta.32",
44
+ "@videojs/react": "10.0.0-beta.32",
45
+ "@videojs/store": "10.0.0-beta.32",
44
46
  "echarts": "6.0.0",
45
47
  "echarts-for-react": "3.0.6",
46
48
  "@m4l/gclick-realtime": "^1.0.1",
@@ -1,18 +0,0 @@
1
- interface CameraStreamsSuspensionControllerProps {
2
- /** Whether the provider's subtree is currently suspended (hidden). */
3
- suspended: boolean;
4
- }
5
- /**
6
- * Invisible coordinator that pauses/resumes video decode when the provider is
7
- * suspended (the subtree is hidden but kept alive, e.g. behind an inactive tab).
8
- *
9
- * On suspend it pauses every currently-playing clip — freeing decode while
10
- * preserving the playhead and store — and remembers exactly that set so it can
11
- * resume it later. It also pauses any clip that starts streaming *while*
12
- * suspended (an in-flight request resolving after the tab was hidden), which a
13
- * one-shot snapshot would miss. On resume it replays only the clips it paused;
14
- * idle, ended, and user-paused players are left untouched.
15
- */
16
- export declare function CameraStreamsSuspensionController({ suspended, }: CameraStreamsSuspensionControllerProps): null;
17
- export {};
18
- //# sourceMappingURL=CameraStreamsSuspensionController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CameraStreamsSuspensionController.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/CameraStreams/subcomponents/CameraStreamsSuspensionController.tsx"],"names":[],"mappings":"AAOA,UAAU,sCAAsC;IAC9C,sEAAsE;IACtE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iCAAiC,CAAC,EAChD,SAAS,GACV,EAAE,sCAAsC,GAAG,IAAI,CAsD/C"}
@@ -1,35 +0,0 @@
1
- import { useContext as i, useRef as c, useEffect as f } from "react";
2
- import { CameraStreamPlayersContext as d } from "../contexts/CameraStreamPlayersContext.js";
3
- function p({
4
- suspended: n
5
- }) {
6
- const e = i(d), o = c(/* @__PURE__ */ new Set());
7
- return f(() => {
8
- if (!e)
9
- return;
10
- const s = o.current;
11
- if (!n) {
12
- s.forEach((t) => {
13
- e.get(t)?.play();
14
- }), s.clear();
15
- return;
16
- }
17
- const a = new Set(e.keys());
18
- e.keys().forEach((t) => {
19
- const r = e.get(t);
20
- r && !r.isPaused() && (r.pause(), s.add(t));
21
- });
22
- const u = () => {
23
- e.keys().forEach((t) => {
24
- if (a.has(t) || s.has(t))
25
- return;
26
- const r = e.get(t);
27
- r && (r.pause(), s.add(t));
28
- });
29
- };
30
- return e.subscribe(u);
31
- }, [n, e]), null;
32
- }
33
- export {
34
- p as CameraStreamsSuspensionController
35
- };
@@ -1,30 +0,0 @@
1
- import { HlsMediaProps } from '@videojs/core/dom/media/hls-js';
2
- /** The `config` prop accepted by `<HlsJsVideo>` — playback path + hls.js options. */
3
- type HlsMediaConfig = NonNullable<HlsMediaProps['config']>;
4
- /**
5
- * `<HlsJsVideo>` configuration so every HLS request (manifest + each segment)
6
- * carries the CloudFront signed cookies.
7
- *
8
- * video.js v10 has no first-class `withCredentials` prop. Since beta.25 the
9
- * element takes a SINGLE `config` object that nests the playback path
10
- * (`preferPlayback`) alongside the options forwarded to hls.js (`config.hlsJs`,
11
- * spread into the constructor as `new HlsJsOnlyMedia({ config: { ...hlsJs } })`).
12
- * Up to beta.24 the shape was flat — `preferPlayback` was a top-level prop and
13
- * `config` WAS the hls.js option bag. Getting this wrong fails silently: the
14
- * loader hooks below never reach hls.js, no cookie travels, and every segment
15
- * comes back 403 with no error surfaced by the player. Keep the nesting.
16
- *
17
- * We hook BOTH the default XHR loader (`xhrSetup`) and the Fetch loader
18
- * (`fetchSetup`) so the cookies travel regardless of which loader hls.js
19
- * selects, and we force `autoStartLoad` because v10 defaults it to `false` —
20
- * without it a muted autoplay tile would mount but never begin fetching.
21
- *
22
- * The native/Safari HLS path bypasses hls.js entirely; the `crossOrigin`
23
- * attribute on `<HlsJsVideo>` (see {@link HLS_CROSS_ORIGIN}) covers that path.
24
- * Credentialed CORS forbids `Access-Control-Allow-Origin: *`, so CloudFront
25
- * must echo the exact request origin and send
26
- * `Access-Control-Allow-Credentials: true` for the segments to authenticate.
27
- */
28
- export declare function buildCredentialedHlsConfig(preferPlayback: HlsMediaConfig['preferPlayback']): HlsMediaConfig;
29
- export {};
30
- //# sourceMappingURL=hlsConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hlsConfig.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/VideoPlayer/hlsConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,qFAAqF;AACrF,KAAK,cAAc,GAAG,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,cAAc,CAAC,gBAAgB,CAAC,GAC/C,cAAc,CAgChB"}
@@ -1,33 +0,0 @@
1
- function u(r) {
2
- return {
3
- // Playback path selection moved INSIDE `config` in beta.25 (it used to be a
4
- // top-level prop). Left outside, it would land on the `<video>` element as
5
- // an unknown DOM attribute and be ignored.
6
- preferPlayback: r,
7
- // Everything below is forwarded verbatim to the hls.js constructor.
8
- hlsJs: {
9
- // v10 default is `false` (lazy load); force eager load so muted autoplay
10
- // starts fetching as soon as the tile mounts.
11
- autoStartLoad: !0,
12
- // Start from the beginning, NOT the live edge. hls.js defaults to the live
13
- // edge for live streams, which anchors the MSE timeline mid-stream — once a
14
- // finished live stream flips to VOD, the segments before the join point can
15
- // no longer be buffered, so the seek bar cannot reach 0:00 (it loops
16
- // re-fetching the first segment). Anchoring at 0 buffers the whole stream
17
- // from the start, so the recording is fully seekable once it ends.
18
- startPosition: 0,
19
- /** Default XHR loader hook — sends cookies on every manifest + segment XHR. */
20
- xhrSetup: (e) => {
21
- e.withCredentials = !0;
22
- },
23
- /**
24
- * Fetch loader hook — `xhrSetup` only fires when hls.js uses the XHR
25
- * loader, so we also set `credentials: 'include'` for the Fetch path.
26
- */
27
- fetchSetup: (e, t) => (t.credentials = "include", new Request(e.url, t))
28
- }
29
- };
30
- }
31
- export {
32
- u as buildCredentialedHlsConfig
33
- };