@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.
- package/components/CameraStream/defaults/DefaultPhaseStreaming.d.ts +4 -0
- package/components/CameraStream/defaults/DefaultPhaseStreaming.d.ts.map +1 -1
- package/components/CameraStream/defaults/DefaultPhaseStreaming.js +35 -33
- package/components/CameraStreams/CameraStreamsProvider.d.ts +5 -0
- package/components/CameraStreams/CameraStreamsProvider.d.ts.map +1 -1
- package/components/CameraStreams/CameraStreamsProvider.js +10 -11
- package/components/CameraStreams/contexts/CameraStreamPlayersContext.d.ts +7 -3
- package/components/CameraStreams/contexts/CameraStreamPlayersContext.d.ts.map +1 -1
- package/components/CameraStreams/contexts/CameraStreamsSuspensionContext.d.ts +15 -0
- package/components/CameraStreams/contexts/CameraStreamsSuspensionContext.d.ts.map +1 -0
- package/components/CameraStreams/contexts/CameraStreamsSuspensionContext.js +5 -0
- package/components/CameraStreams/hooks/useCameraStreamsSuspended.d.ts +7 -0
- package/components/CameraStreams/hooks/useCameraStreamsSuspended.d.ts.map +1 -0
- package/components/CameraStreams/hooks/useCameraStreamsSuspended.js +8 -0
- package/components/CameraStreams/hooks/useStreamPolling.d.ts +1 -11
- package/components/CameraStreams/hooks/useStreamPolling.d.ts.map +1 -1
- package/components/CameraStreams/hooks/useStreamPolling.js +84 -89
- package/components/CameraStreams/hooks/useStreamRequest.d.ts +7 -8
- package/components/CameraStreams/hooks/useStreamRequest.d.ts.map +1 -1
- package/components/CameraStreams/hooks/useStreamRequest.js +34 -50
- package/components/CameraStreams/index.d.ts +2 -0
- package/components/CameraStreams/index.d.ts.map +1 -1
- package/components/CameraStreams/types.d.ts +23 -10
- package/components/CameraStreams/types.d.ts.map +1 -1
- package/components/VideoPlayer/VideoPlayer.d.ts +3 -3
- package/components/VideoPlayer/VideoPlayer.d.ts.map +1 -1
- package/components/VideoPlayer/VideoPlayer.js +29 -25
- package/components/VideoPlayer/VideoPlayer.styles.d.ts.map +1 -1
- package/components/VideoPlayer/VideoPlayer.styles.js +32 -6
- package/components/VideoPlayer/VideojsDefaultSkin.styles.d.ts.map +1 -1
- package/components/VideoPlayer/VideojsDefaultSkin.styles.js +936 -807
- package/components/VideoPlayer/VideojsMinimalSkin.styles.d.ts.map +1 -1
- package/components/VideoPlayer/VideojsMinimalSkin.styles.js +901 -809
- package/components/VideoPlayer/constants.d.ts +16 -0
- package/components/VideoPlayer/constants.d.ts.map +1 -1
- package/components/VideoPlayer/constants.js +27 -8
- package/components/VideoPlayer/hlsSource.d.ts +41 -0
- package/components/VideoPlayer/hlsSource.d.ts.map +1 -0
- package/components/VideoPlayer/hlsSource.js +35 -0
- package/components/VideoPlayer/hooks/useMediaReadiness.d.ts +22 -0
- package/components/VideoPlayer/hooks/useMediaReadiness.d.ts.map +1 -0
- package/components/VideoPlayer/hooks/useMediaReadiness.js +21 -0
- package/components/VideoPlayer/hooks/usePlaybackIntent.d.ts +14 -0
- package/components/VideoPlayer/hooks/usePlaybackIntent.d.ts.map +1 -0
- package/components/VideoPlayer/hooks/usePlaybackIntent.js +33 -0
- package/components/VideoPlayer/hooks/usePlayerControl.d.ts +6 -0
- package/components/VideoPlayer/hooks/usePlayerControl.d.ts.map +1 -1
- package/components/VideoPlayer/hooks/usePlayerControl.js +34 -25
- package/components/VideoPlayer/hooks/usePlayerEvents.d.ts +5 -1
- package/components/VideoPlayer/hooks/usePlayerEvents.d.ts.map +1 -1
- package/components/VideoPlayer/hooks/usePlayerEvents.js +10 -11
- package/components/VideoPlayer/player.factory.d.ts +24 -17
- package/components/VideoPlayer/player.factory.d.ts.map +1 -1
- package/components/VideoPlayer/storeSafety.d.ts +15 -0
- package/components/VideoPlayer/storeSafety.d.ts.map +1 -0
- package/components/VideoPlayer/storeSafety.js +25 -0
- package/components/VideoPlayer/subcomponents/GclickVideoSkin.d.ts +4 -2
- package/components/VideoPlayer/subcomponents/GclickVideoSkin.d.ts.map +1 -1
- package/components/VideoPlayer/subcomponents/GclickVideoSkin.js +36 -24
- package/components/VideoPlayer/subcomponents/VideoPlayerStage.d.ts +5 -3
- package/components/VideoPlayer/subcomponents/VideoPlayerStage.d.ts.map +1 -1
- package/components/VideoPlayer/subcomponents/VideoPlayerStage.js +64 -49
- package/components/VideoPlayer/subcomponents/skin/VideoControlBar.d.ts +14 -2
- package/components/VideoPlayer/subcomponents/skin/VideoControlBar.d.ts.map +1 -1
- package/components/VideoPlayer/subcomponents/skin/VideoControlBar.js +90 -62
- package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.d.ts +11 -0
- package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.d.ts.map +1 -1
- package/components/VideoPlayer/subcomponents/skin/VideoErrorDialog.js +16 -13
- package/components/VideoPlayer/subcomponents/skin/VideoInputIndicators.d.ts +15 -0
- package/components/VideoPlayer/subcomponents/skin/VideoInputIndicators.d.ts.map +1 -0
- package/components/VideoPlayer/subcomponents/skin/VideoInputIndicators.js +57 -0
- package/components/VideoPlayer/subcomponents/skin/VideoSettingsMenu.d.ts.map +1 -1
- package/components/VideoPlayer/subcomponents/skin/VideoSettingsMenu.js +10 -12
- package/components/VideoPlayer/subcomponents/skin/primitives.d.ts +11 -2
- package/components/VideoPlayer/subcomponents/skin/primitives.d.ts.map +1 -1
- package/components/VideoPlayer/subcomponents/skin/primitives.js +74 -72
- package/components/VideoPlayer/types.d.ts +43 -5
- package/components/VideoPlayer/types.d.ts.map +1 -1
- package/index.js +149 -145
- package/package.json +4 -2
- package/components/CameraStreams/subcomponents/CameraStreamsSuspensionController.d.ts +0 -18
- package/components/CameraStreams/subcomponents/CameraStreamsSuspensionController.d.ts.map +0 -1
- package/components/CameraStreams/subcomponents/CameraStreamsSuspensionController.js +0 -35
- package/components/VideoPlayer/hlsConfig.d.ts +0 -30
- package/components/VideoPlayer/hlsConfig.d.ts.map +0 -1
- 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
|
|
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
|
|
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
|
|
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 {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
|
|
122
|
+
to as CameraStream,
|
|
121
123
|
lr as CameraStreamPlayersContext,
|
|
122
|
-
|
|
124
|
+
fo as CameraStreamSlotsStyled,
|
|
123
125
|
fr as CameraStreamsContext,
|
|
124
|
-
|
|
126
|
+
nr as CameraStreamsProvider,
|
|
127
|
+
Sr as CameraStreamsSuspensionContext,
|
|
125
128
|
P as CourseFormatter,
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
151
|
-
|
|
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
|
-
|
|
165
|
+
Gt as ObjectQueue,
|
|
163
166
|
j as PolylineWithArrows,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
175
|
+
ko as TimelineCardsViewer,
|
|
173
176
|
rr as VIDEO_PLAYER_VARIANTS,
|
|
174
177
|
pr as VideoPlayer,
|
|
175
178
|
ze as VideoTimeLineSelector,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
187
|
+
Dr as createCameraStreamsStore,
|
|
185
188
|
K as createFeatureIndexKey,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
rt as createJourneyRenderers,
|
|
190
|
+
mt as createJourneyTimelineAccessors,
|
|
191
|
+
ot as createJourneyTimelineRenderers,
|
|
189
192
|
$ as createPixelPathDecimationFilter,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
-
|
|
205
|
+
i as getDeviceStatusByData,
|
|
203
206
|
E as getDeviceStatusComponentsDictionary,
|
|
204
207
|
w as getFeatureFromLayer,
|
|
205
208
|
Pe as getGpsMapToolsComponentsDictionary,
|
|
206
|
-
|
|
207
|
-
|
|
209
|
+
Ht as getHdopPresentation,
|
|
210
|
+
Vt as getHeightSizeStyles,
|
|
208
211
|
Ge as getIndicatorBatteryComponentsDictionary,
|
|
209
212
|
Ke as getIndicatorCSQComponentsDictionary,
|
|
210
213
|
B as getMapComponentsDictionary,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
|
|
258
|
+
Fr as useIsCloudFrontUrl,
|
|
255
259
|
me as useMapInteractionCapture,
|
|
256
|
-
|
|
260
|
+
ie as useMapStore,
|
|
257
261
|
t as useObservableFeatureEventHandlers,
|
|
258
262
|
xe as useRegisterMapToolController,
|
|
259
263
|
se as useScopedMapInteractionCapture,
|
|
260
|
-
|
|
264
|
+
Mr as useStreamRequest
|
|
261
265
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/gclick",
|
|
3
|
-
"version": "0.
|
|
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/
|
|
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
|
-
};
|