@aguacerowx/react-native 0.0.51 → 0.0.52
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/android/src/main/java/com/aguacerowx/reactnative/SatelliteLayerView.java +11 -3
- package/android/src/main/java/com/aguacerowx/reactnative/WeatherFrameProcessorModule.java +315 -311
- package/ios/SatelliteLayerView.swift +11 -4
- package/ios/WeatherFrameProcessorModule.swift +222 -219
- package/lib/commonjs/WeatherLayerManager.js +61 -45
- package/lib/commonjs/WeatherLayerManager.js.map +1 -1
- package/lib/commonjs/aguaceroRnDebug.js +8 -1
- package/lib/commonjs/aguaceroRnDebug.js.map +1 -1
- package/lib/commonjs/gridCdnAuth.js +64 -0
- package/lib/commonjs/gridCdnAuth.js.map +1 -0
- package/lib/commonjs/index.js +13 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/nexrad/nexradAndroidController.js +25 -25
- package/lib/commonjs/nexrad/nexradAndroidController.js.map +1 -1
- package/lib/commonjs/nexrad/nexradDiag.js +24 -24
- package/lib/commonjs/satellite/satelliteAndroidController.js +15 -15
- package/lib/module/WeatherLayerManager.js +61 -45
- package/lib/module/WeatherLayerManager.js.map +1 -1
- package/lib/module/aguaceroRnDebug.js +8 -1
- package/lib/module/aguaceroRnDebug.js.map +1 -1
- package/lib/module/gridCdnAuth.js +56 -0
- package/lib/module/gridCdnAuth.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/nexrad/nexradAndroidController.js +25 -25
- package/lib/module/nexrad/nexradAndroidController.js.map +1 -1
- package/lib/module/nexrad/nexradDiag.js +24 -24
- package/lib/module/satellite/satelliteAndroidController.js +15 -15
- package/lib/typescript/WeatherLayerManager.d.ts.map +1 -1
- package/lib/typescript/aguaceroRnDebug.d.ts.map +1 -1
- package/lib/typescript/gridCdnAuth.d.ts +24 -0
- package/lib/typescript/gridCdnAuth.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/WeatherLayerManager.js +2024 -2004
- package/src/aguaceroRnDebug.js +8 -1
- package/src/gridCdnAuth.js +56 -0
- package/src/index.js +19 -15
- package/src/nexrad/nexradAndroidController.js +1078 -1078
- package/src/nexrad/nexradDiag.js +150 -150
- package/src/satellite/satelliteAndroidController.js +245 -245
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AguaceroCore satellite mode → Android native {@link SatelliteLayerView} (parity with mapsgl
|
|
3
|
-
* {@link WeatherLayerManager} satellite paths — preload timeline + scrub via {@code targetUnix}).
|
|
1
|
+
/**
|
|
2
|
+
* AguaceroCore satellite mode → Android native {@link SatelliteLayerView} (parity with mapsgl
|
|
3
|
+
* {@link WeatherLayerManager} satellite paths — preload timeline + scrub via {@code targetUnix}).
|
|
4
4
|
*/
|
|
5
5
|
import { resolveSatelliteS3FileName } from '@aguacerowx/javascript-sdk';
|
|
6
6
|
import { satBridgeWarn } from '../satelliteBridgeDiag';
|
|
7
7
|
import { aguaceroDebug, getAguaceroAuthDiagnosticSnapshot, isAguaceroRnDebugEnabled, redactApiKeyFromUrl } from '../aguaceroRnDebug';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Target frame first, then remaining frames by increasing temporal distance to {@code targetUnix}.
|
|
11
|
-
* @param {{ unix: number; url: string; shaderFileName: string }[]} frames
|
|
12
|
-
* @param {number | null} targetUnix
|
|
9
|
+
/**
|
|
10
|
+
* Target frame first, then remaining frames by increasing temporal distance to {@code targetUnix}.
|
|
11
|
+
* @param {{ unix: number; url: string; shaderFileName: string }[]} frames
|
|
12
|
+
* @param {number | null} targetUnix
|
|
13
13
|
*/
|
|
14
14
|
export function sortFramesByTargetProximity(frames, targetUnix) {
|
|
15
15
|
if (!frames.length) return frames;
|
|
@@ -30,9 +30,9 @@ export function sortFramesByTargetProximity(frames, targetUnix) {
|
|
|
30
30
|
}) => rest);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* @param {import('@aguacerowx/javascript-sdk').AguaceroCoreState} state
|
|
35
|
-
* @param {number} satelliteTimestamp
|
|
33
|
+
/**
|
|
34
|
+
* @param {import('@aguacerowx/javascript-sdk').AguaceroCoreState} state
|
|
35
|
+
* @param {number} satelliteTimestamp
|
|
36
36
|
*/
|
|
37
37
|
export function buildSatelliteFetchParts(state, satelliteTimestamp) {
|
|
38
38
|
const fileName = resolveSatelliteS3FileName(state.satelliteChannel, state.satelliteTimeToFileMap, satelliteTimestamp);
|
|
@@ -63,9 +63,9 @@ export function buildSatelliteFetchParts(state, satelliteTimestamp) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
export class SatelliteAndroidController {
|
|
66
|
-
/**
|
|
67
|
-
* @param {import('@aguacerowx/javascript-sdk').AguaceroCore} core
|
|
68
|
-
* @param {React.RefObject<{ syncSatellite?: (json: string) => void; clearSatellite?: () => void; activateSatelliteCachedUnix?: (unix: number) => void; updateSatelliteStyle?: (json: string) => void }>} satelliteLayerRef
|
|
66
|
+
/**
|
|
67
|
+
* @param {import('@aguacerowx/javascript-sdk').AguaceroCore} core
|
|
68
|
+
* @param {React.RefObject<{ syncSatellite?: (json: string) => void; clearSatellite?: () => void; activateSatelliteCachedUnix?: (unix: number) => void; updateSatelliteStyle?: (json: string) => void }>} satelliteLayerRef
|
|
69
69
|
*/
|
|
70
70
|
constructor(core, satelliteLayerRef) {
|
|
71
71
|
this.core = core;
|
|
@@ -90,8 +90,8 @@ export class SatelliteAndroidController {
|
|
|
90
90
|
native?.clearSatellite?.();
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
* @param {import('@aguacerowx/javascript-sdk').AguaceroCoreState} state
|
|
93
|
+
/**
|
|
94
|
+
* @param {import('@aguacerowx/javascript-sdk').AguaceroCoreState} state
|
|
95
95
|
*/
|
|
96
96
|
sync(state) {
|
|
97
97
|
satBridgeWarn('SatelliteAndroidController.sync enter', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WeatherLayerManager.d.ts","sourceRoot":"","sources":["../../src/WeatherLayerManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WeatherLayerManager.d.ts","sourceRoot":"","sources":["../../src/WeatherLayerManager.js"],"names":[],"mappings":"AAyQA,sCAutDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aguaceroRnDebug.d.ts","sourceRoot":"","sources":["../../src/aguaceroRnDebug.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aguaceroRnDebug.d.ts","sourceRoot":"","sources":["../../src/aguaceroRnDebug.js"],"names":[],"mappings":"AAuCA;;GAEG;AACH,mDAFW,OAAO,QAIjB;AAED;;GAEG;AACH,gDAFW;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,QAwB/B;AAED;;;GAGG;AACH,4CAFa,OAAO,CAqBnB;AAUD;;;GAGG;AACH,uCAHW,MAAM,GAAG,IAAI,GAAG,SAAS,GACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkBnC;AAED;;;GAGG;AACH,qCAHW,MAAM,GACJ,MAAM,CAMlB;AAED;;;GAGG;AACH,uCAHW,MAAM,GACJ,MAAM,CAKlB;AAED;;;GAGG;AACH,0CAHW,MAAM,GACJ,OAAO,CAMnB;AAED;;;GAGG;AACH,mCAHW,MAAM,UACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,QAS7C;AAED;;;;GAIG;AACH,uCAHW,MAAM,UACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,QAS7C;AAED;;;GAGG;AACH,wDAHW,GAAiD,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,UACvL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBjC;AAED;;;;GAIG;AACH,4DAJW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAErB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBnC;AA4BD;;GAEG;AACH,iDAiEC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @returns {string}
|
|
3
|
+
*/
|
|
4
|
+
export function readGlobalGridRequestSiteOrigin(): string;
|
|
5
|
+
/**
|
|
6
|
+
* Resolve the site origin used for {@code Origin} / {@code Referer} on grid CDN requests.
|
|
7
|
+
*
|
|
8
|
+
* @param {string | undefined | null} propOrigin - {@link WeatherLayerManager} `gridRequestSiteOrigin` prop
|
|
9
|
+
* @param {{ gridRequestSiteOrigin?: string | null; isReactNative?: boolean } | null | undefined} core
|
|
10
|
+
* @returns {string | null} Normalized origin without trailing slash, or null on web when unset
|
|
11
|
+
*/
|
|
12
|
+
export function resolveGridRequestSiteOrigin(propOrigin: string | undefined | null, core: {
|
|
13
|
+
gridRequestSiteOrigin?: string | null;
|
|
14
|
+
isReactNative?: boolean;
|
|
15
|
+
} | null | undefined): string | null;
|
|
16
|
+
/**
|
|
17
|
+
* CloudFront grid CDN auth helpers for React Native.
|
|
18
|
+
*
|
|
19
|
+
* The CDN returns HTTP 403 when {@code Origin} is missing (even if {@code x-api-key} and
|
|
20
|
+
* {@code apiKey} query are valid). Browsers set Origin automatically; RN native HTTP does not.
|
|
21
|
+
*/
|
|
22
|
+
/** Fallback when no prop/core/global origin is configured (any origin satisfies the CDN). */
|
|
23
|
+
export const RN_DEFAULT_GRID_REQUEST_SITE_ORIGIN: "https://localhost";
|
|
24
|
+
//# sourceMappingURL=gridCdnAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gridCdnAuth.d.ts","sourceRoot":"","sources":["../../src/gridCdnAuth.js"],"names":[],"mappings":"AAUA;;GAEG;AACH,mDAFa,MAAM,CAYlB;AAED;;;;;;GAMG;AACH,yDAJW,MAAM,GAAG,SAAS,GAAG,IAAI,QACzB;IAAE,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GACnF,MAAM,GAAG,IAAI,CAyBzB;AAvDD;;;;;GAKG;AAEH,6FAA6F;AAC7F,kDAAmD,mBAAmB,CAAC"}
|
|
@@ -2,5 +2,6 @@ export { MapManager } from "./MapManager";
|
|
|
2
2
|
export { WeatherLayerManager } from "./WeatherLayerManager";
|
|
3
3
|
export { default as GridRenderLayer } from "./GridRenderLayerNativeComponent";
|
|
4
4
|
export { configureAguaceroRnDebug, setAguaceroRnDebugEnabled, isAguaceroRnDebugEnabled, getAguaceroAuthDiagnosticSnapshot, aguaceroDebug, aguaceroDebugWarn } from "./aguaceroRnDebug";
|
|
5
|
+
export { resolveGridRequestSiteOrigin, RN_DEFAULT_GRID_REQUEST_SITE_ORIGIN } from "./gridCdnAuth";
|
|
5
6
|
export { AGUACERO_NEXRAD_MAP_LAYER_ID, AGUACERO_SATELLITE_MAP_LAYER_ID } from "./nws/nwsAndroidConstants";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|