@windycom/plugin-devtools 1.0.9 → 3.0.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/README.md +4 -0
- package/index.mjs +2 -2
- package/package.json +2 -3
- package/types/client/AccessProducts.d.ts +8 -0
- package/types/client/BottomSveltePlugins.d.ts +8 -0
- package/types/client/Calendar.d.ts +9 -17
- package/types/client/Color.d.ts +43 -90
- package/types/client/Drag.d.ts +8 -1
- package/types/client/Evented.d.ts +4 -0
- package/types/client/ExternalSveltePlugin.d.ts +2 -1
- package/types/client/IDB.d.ts +63 -0
- package/types/client/IconProducts.d.ts +2 -0
- package/types/client/Layer.d.ts +1 -2
- package/types/client/Metric.d.ts +8 -8
- package/types/client/MetricClasses.d.ts +4 -3
- package/types/client/Overlay.d.ts +30 -15
- package/types/client/OverlayClasses.d.ts +11 -7
- package/types/client/Plugin.d.ts +2 -2
- package/types/client/Product.d.ts +53 -30
- package/types/client/RadarPlusProduct.d.ts +19 -0
- package/types/client/Renderer.d.ts +2 -10
- package/types/client/SveltePanePlugin.d.ts +4 -3
- package/types/client/SveltePlugin.d.ts +9 -5
- package/types/client/TileLayer.d.ts +1 -2
- package/types/client/TopoMap.d.ts +10 -0
- package/types/client/Window.d.ts +0 -4
- package/types/client/WindowPlugin.d.ts +15 -10
- package/types/client/appsFlyer.d.ts +3 -0
- package/types/client/baseMap.d.ts +8 -5
- package/types/client/cityLabels.d.ts +10 -2
- package/types/client/cloudSync.d.ts +3 -1
- package/types/client/colorGradients.d.ts +13 -0
- package/types/client/d.ts.files/Calendar.d.ts +11 -2
- package/types/client/d.ts.files/Color.d.ts +16 -5
- package/types/client/d.ts.files/LabelsLayer.d.ts +1 -18
- package/types/client/d.ts.files/Layer.d.ts +8 -1
- package/types/client/d.ts.files/Metric.d.ts +1 -0
- package/types/client/d.ts.files/Renderer.d.ts +22 -1
- package/types/client/d.ts.files/alerts.d.ts +120 -0
- package/types/client/d.ts.files/broadcast.d.ts +44 -17
- package/types/client/d.ts.files/dataSpecifications.d.ts +94 -137
- package/types/client/d.ts.files/favs.d.ts +69 -0
- package/types/client/d.ts.files/incomingMessages.d.ts +0 -4
- package/types/client/d.ts.files/notifications.d.ts +2 -2
- package/types/client/d.ts.files/plugin-params.d.ts +44 -58
- package/types/client/d.ts.files/plugins.d.ts +37 -52
- package/types/client/d.ts.files/pois.d.ts +1 -1
- package/types/client/d.ts.files/products.d.ts +19 -2
- package/types/client/d.ts.files/rootScope.d.ts +3 -21
- package/types/client/d.ts.files/satellite.d.ts +1 -0
- package/types/client/d.ts.files/startup.d.ts +59 -0
- package/types/client/d.ts.files/storage.d.ts +12 -35
- package/types/client/d.ts.files/user.d.ts +79 -24
- package/types/client/device.d.ts +0 -1
- package/types/client/deviceLogging.d.ts +2 -1
- package/types/client/embed2.d.ts +15 -35
- package/types/client/fetch.d.ts +31 -24
- package/types/client/ga.d.ts +4 -0
- package/types/client/geolocation.d.ts +14 -7
- package/types/client/globals.d.ts +1 -0
- package/types/client/http.d.ts +17 -0
- package/types/client/idbInstances.d.ts +45 -0
- package/types/client/interpolator.d.ts +2 -1
- package/types/client/langFiles.d.ts +2 -0
- package/types/client/layers.d.ts +2 -0
- package/types/client/lib.d.ts +7 -25
- package/types/client/libHtml.d.ts +1 -1
- package/types/client/loadArticlesOrWhatsNew.d.ts +1 -0
- package/types/client/log.d.ts +1 -0
- package/types/client/lruCache.d.ts +6 -0
- package/types/client/map.d.ts +17 -6
- package/types/client/mobile.d.ts +33 -27
- package/types/client/models.d.ts +1 -1
- package/types/client/nativeStorage.d.ts +0 -14
- package/types/client/notifications.d.ts +32 -67
- package/types/client/overlays.d.ts +4 -1
- package/types/client/params.d.ts +0 -1
- package/types/client/patchAndPromoCtrl.d.ts +13 -0
- package/types/client/permanentPromos.d.ts +1 -2
- package/types/client/persistentStorage.d.ts +8 -0
- package/types/client/picker.d.ts +1 -1
- package/types/client/pois.d.ts +1 -2
- package/types/client/promo.d.ts +16 -32
- package/types/client/pushNotifications.d.ts +13 -1
- package/types/client/queryString.d.ts +1 -1
- package/types/client/renderUtils.d.ts +1 -1
- package/types/client/renderers.d.ts +7 -3
- package/types/client/rootScope.d.ts +22 -27
- package/types/client/router.d.ts +10 -6
- package/types/client/seoParser.d.ts +21 -0
- package/types/client/serviceWorkerCtrl.d.ts +8 -0
- package/types/client/startupWeather.d.ts +27 -0
- package/types/client/store.d.ts +2 -2
- package/types/client/storeLastPosition.d.ts +1 -0
- package/types/client/subscription.d.ts +1 -0
- package/types/client/swDownloader.d.ts +7 -7
- package/types/client/swProxy.d.ts +1 -1
- package/types/client/swUtils.d.ts +3 -3
- package/types/client/trans.d.ts +26 -37
- package/types/client/user.d.ts +11 -14
- package/types/client/userAlerts.d.ts +68 -0
- package/types/client/userConsent.d.ts +6 -0
- package/types/client/userFavs.d.ts +46 -128
- package/types/client/utils.d.ts +46 -10
- package/types/iconfont.d.ts +6 -4
- package/types/interfaces.d.ts +199 -348
- package/types/lang-files.d.ts +736 -128
- package/types/offline.d.ts +100 -0
- package/types/types.d.ts +116 -29
- package/types/client/Bar.d.ts +0 -114
- package/types/client/BindedBar.d.ts +0 -51
- package/types/client/BindedCheckbox.d.ts +0 -30
- package/types/client/BindedDropDown.d.ts +0 -14
- package/types/client/BindedSwitch.d.ts +0 -35
- package/types/client/BottomTagPlugin.d.ts +0 -8
- package/types/client/Detail1hCheckbox.d.ts +0 -4
- package/types/client/DraggableDiv.d.ts +0 -21
- package/types/client/DropDown.d.ts +0 -37
- package/types/client/GhostBox.d.ts +0 -17
- package/types/client/Legend.d.ts +0 -6
- package/types/client/LongTap.d.ts +0 -21
- package/types/client/MobileCalendar.d.ts +0 -47
- package/types/client/OfflineMessagesClasses.d.ts +0 -30
- package/types/client/ProductSwitch.d.ts +0 -14
- package/types/client/Scrollable.d.ts +0 -14
- package/types/client/Switch.d.ts +0 -24
- package/types/client/TimestampBar.d.ts +0 -8
- package/types/client/Webcams.d.ts +0 -66
- package/types/client/d.ts.files/Product.d.ts +0 -37
- package/types/client/d.ts.files/trans.d.ts +0 -55
- package/types/client/favs.d.ts +0 -83
- package/types/client/hp.d.ts +0 -15
- package/types/client/offlineController.d.ts +0 -20
- /package/types/client/{loadersUI.d.ts → customColors.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "\n\n<div id=\"map-container\"\n style=\"position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%;\"\n class=\"noselect\"></div>\n\n<div id=\"bottom\" class=\"
|
|
1
|
+
declare const _default: "\n\n<div id=\"map-container\"\n style=\"position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%;\"\n class=\"noselect\"></div>\n\n<div id=\"bottom\" class=\"hide-on-picker-drag right-border\">\n\n\n <!-- progress bar -->\n <div id=\"progress-bar\" class=\"progress-bar\">\n\n <div class=\"progress-line\">\n <div class=\"played\"></div><div class=\"avbl\"></div>\n <i></i>\n </div>\n\n <!-- GHOST -->\n <div class=\"timecode ghost-timecode\">\n <div class=\"box\"></div>\n </div>\n\n <!-- M A I N -->\n <div data-title=\"D_LT2\" class=\"timecode main-timecode\">\n <div class=\"box\"></div><div class=\"loading loading--variant-gray size-l loader-path\"></div><!-- dayLoader -->\n </div>\n\n <!-- PLAY BUTTON apply class play/pause-->\n <div id=\"playpause\" class=\"play-pause iconfont clickable\"></div>\n\n <!-- CALENDAR WITH DAYS -->\n <div id=\"calendar\"></div>\n\n </div>\n\n <!-- ACCUMULATIONS -->\n <div id=\"accumulations\" class=\"size-s fg-yellow\">\n\n <span id=\"acc-title-rain\" data-t=\"RAINACCU\" class=\"capitalize\"></span>\n <span id=\"acc-title-snow\" data-t=\"SNOWACCU\" class=\"capitalize\"></span>\n\n <div class=\"switch switch--variant-uiswitch notap\"></div>\n\n </div>\n\n <!-- mobile version of calendar -->\n <div id=\"mobile-calendar\">\n\n <div id=\"timecode-mobile\" data-title=\"D_LT2\" class=\"timecode\">\n <div id=\"mobile_box\" class=\"box\"></div><div class=\"loading loading--variant-gray size-l loader-path\"></div><!-- dayLoader -->\n </div>\n\n <div id=\"days\"></div>\n\n <!-- PLAY BUTTON FOR MOBILE VERSION apply class play/pause-->\n <div id=\"playpause-mobile\" class=\"play-pause iconfont\"></div>\n\n </div>\n\n</div>\n\n<!-- LOGO -->\n<div id=\"logo-wrapper\" class=\"top-border right-border\">\n <a id=\"logo\" href=\"https://www.windy.com/?utm_medium=__APIUSER__&utm_source=api4\" target=\"_top\">\n <img class=\"clickable\" alt=\"Windy.com\" src=\"<!-- @echo IMG_ABSOLUTE_PATH -->/logo201802/logo-full-windycom-white.svg\" />\n </a>\n</div>\n\n\n<div id=\"plugins\" class=\"hide-on-picker-drag\"></div>\n\n<div id=\"mobile-ovr-select\" data-icon=\"<!-- @echo icon-wind -->\" class=\"top-border clickable\" data-do=\"rqstOpen,menu\"></div>\n\n<div id=\"embed-zoom\">\n <div data-do=\"bcast,zoomIn\" class=\"clickable iconfont zoom-ctrl zoom-plus\" title=\"Zoom in\"><!-- @echo icon-plus --></div>\n <div data-do=\"bcast,zoomOut\" class=\"clickable iconfont zoom-ctrl zoom-minus\" title=\"Zoom out\"><!-- @echo icon-minus --></div>\n</div>\n";
|
|
2
2
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const loadArticlesOrWhatsNew: () => Promise<void>;
|
package/types/client/log.d.ts
CHANGED
|
@@ -65,5 +65,11 @@ declare class LRUCache<T = unknown> {
|
|
|
65
65
|
* Removes all entries
|
|
66
66
|
*/
|
|
67
67
|
removeAll(): void;
|
|
68
|
+
/**
|
|
69
|
+
* @summary Applies given callback to each element in the cache
|
|
70
|
+
* - call order is ASC in terms of record age (from oldest to newest)
|
|
71
|
+
* @param callback Callback to call for each element
|
|
72
|
+
*/
|
|
73
|
+
forEach(callback: (val: T, key: string) => void): void;
|
|
68
74
|
}
|
|
69
75
|
export default LRUCache;
|
package/types/client/map.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import type { LatLon } from '@windy/interfaces.d';
|
|
14
14
|
import type { Pixel } from '@windy/types';
|
|
15
|
+
import type { MapLibreMap } from 'plugins/_shared/maplibre/mapLibreMap';
|
|
15
16
|
/**
|
|
16
17
|
* Already initialized instance of Leaflet L.Map
|
|
17
18
|
*
|
|
@@ -50,6 +51,7 @@ export declare const markers: Record<string, L.DivIcon>;
|
|
|
50
51
|
export interface CenterOptions extends LatLon {
|
|
51
52
|
zoom?: number;
|
|
52
53
|
paddingTop?: number;
|
|
54
|
+
paddingLeft?: number;
|
|
53
55
|
}
|
|
54
56
|
/**
|
|
55
57
|
* Centers/zooms leaflet map with optional offset to the left or top
|
|
@@ -57,7 +59,7 @@ export interface CenterOptions extends LatLon {
|
|
|
57
59
|
*/
|
|
58
60
|
export declare function centerMap(coords: CenterOptions, animation?: boolean): void;
|
|
59
61
|
/**
|
|
60
|
-
* Makes sure point is visible from bottom of the pane (will be
|
|
62
|
+
* Makes sure point is visible from bottom of the pane (will be deprecated)
|
|
61
63
|
* @ignore
|
|
62
64
|
*/
|
|
63
65
|
export declare function ensurePointVisibleY(lat: number, lon: number, offset: number): void;
|
|
@@ -67,14 +69,23 @@ export declare function ensurePointVisibleY(lat: number, lon: number, offset: nu
|
|
|
67
69
|
* @ignore
|
|
68
70
|
*/
|
|
69
71
|
export declare function panToOffset(y: Pixel, lat: number, lon: number): void;
|
|
70
|
-
/**
|
|
71
|
-
* Changes base map of underlying Windy.com map.
|
|
72
|
-
* @ignore
|
|
73
|
-
*/
|
|
74
|
-
export declare const baseLayer: L.GridLayer;
|
|
75
72
|
/**
|
|
76
73
|
* Retrieves the map tiles from the mapTilesRecord.
|
|
77
74
|
* @ignore
|
|
78
75
|
* @returns The map tiles.
|
|
79
76
|
*/
|
|
80
77
|
export declare const getMapTiles: (patchType?: string) => Record<import("@windy/baseMap").MapTilesKeys, string>;
|
|
78
|
+
/**
|
|
79
|
+
* Following object (singleton) contains all the stuff required for
|
|
80
|
+
* integration of mapLibre Gl into the client.
|
|
81
|
+
*/
|
|
82
|
+
export declare const mapLibre: {
|
|
83
|
+
/**
|
|
84
|
+
* Instance of our own mapLibre map wrapper Class
|
|
85
|
+
*/
|
|
86
|
+
wrapper: MapLibreMap | null;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Just handy shortcut to detect that globe is active
|
|
90
|
+
*/
|
|
91
|
+
export declare const isGlobeActive: () => boolean;
|
package/types/client/mobile.d.ts
CHANGED
|
@@ -9,6 +9,21 @@
|
|
|
9
9
|
* and modules consumed by plugins, MUST be listed here.
|
|
10
10
|
*/
|
|
11
11
|
export * as errorLogger from './utils/errorLogger';
|
|
12
|
+
/**
|
|
13
|
+
const originalGetCurrentPosition = navigator.geolocation.getCurrentPosition;
|
|
14
|
+
navigator.geolocation.getCurrentPosition = (...args) => {
|
|
15
|
+
alert(`XXX getCurrentPosition ${new Error().stack}`);
|
|
16
|
+
debugger;
|
|
17
|
+
originalGetCurrentPosition.call(navigator.geolocation, ...args);
|
|
18
|
+
};
|
|
19
|
+
// Monkey-patch watchPosition
|
|
20
|
+
const originalWatchPosition = navigator.geolocation.watchPosition;
|
|
21
|
+
navigator.geolocation.watchPosition = (...args) => {
|
|
22
|
+
alert('XXX watchPosition');
|
|
23
|
+
debugger;
|
|
24
|
+
return originalWatchPosition.call(navigator.geolocation, ...args);
|
|
25
|
+
};
|
|
26
|
+
*/
|
|
12
27
|
import './leafletExt/CanvasLayer';
|
|
13
28
|
export * as Evented from './utils/Evented';
|
|
14
29
|
export * as css from './utils/css';
|
|
@@ -21,6 +36,8 @@ export { default as lruCache } from './utils/lruCache';
|
|
|
21
36
|
export { default as storage } from './utils/storage';
|
|
22
37
|
export * as subscription from './utils/subscription';
|
|
23
38
|
export * as utils from './utils/utils';
|
|
39
|
+
export * as IDB from './utils/IDB';
|
|
40
|
+
export * as idbInstances from './utils/idbInstances';
|
|
24
41
|
export * as Calendar from './weatherClasses/Calendar';
|
|
25
42
|
export * as Color from './weatherClasses/Color';
|
|
26
43
|
export * as EcmwfAnalysisProduct from './weatherClasses/EcmwfAnalysisProduct';
|
|
@@ -51,60 +68,45 @@ export * as detectDevice from './services/detectDevice';
|
|
|
51
68
|
export * as device from './services/device';
|
|
52
69
|
export * as deviceLogging from './services/deviceLogging';
|
|
53
70
|
export * as geolocation from './services/geolocation';
|
|
54
|
-
export
|
|
55
|
-
export * as offlineController from './services/offlineController';
|
|
71
|
+
export * as notifications from './services/notifications';
|
|
56
72
|
export * as ogTags from './services/ogTags';
|
|
57
73
|
export * as params from './services/params';
|
|
58
74
|
export * as pois from './services/pois';
|
|
59
75
|
export * as reverseName from './services/reverseName';
|
|
60
76
|
export * as rootScope from './services/rootScope';
|
|
61
77
|
export * as router from './services/router';
|
|
62
|
-
export * as showableErrorsService from './services/showableErrorsService';
|
|
63
78
|
export { default as store } from './services/store';
|
|
64
79
|
export * as trans from './services/trans';
|
|
65
|
-
export
|
|
66
|
-
export * as
|
|
80
|
+
export * as userFavs from './services/userFavs';
|
|
81
|
+
export * as userAlerts from './services/userAlerts';
|
|
82
|
+
export * as userConsent from './services/userConsent';
|
|
83
|
+
export * as user from './services/user';
|
|
67
84
|
export * as Plugin from './pluginSystem/Plugin';
|
|
68
85
|
export * as SveltePanePlugin from './pluginSystem/SveltePanePlugin';
|
|
69
86
|
export * as SveltePlugin from './pluginSystem/SveltePlugin';
|
|
87
|
+
export * as ExternalSveltePlugin from './pluginSystem/ExternalSveltePlugin';
|
|
70
88
|
export * as TagPlugin from './pluginSystem/TagPlugin';
|
|
71
89
|
export * as WindowPlugin from './pluginSystem/WindowPlugin';
|
|
72
90
|
export { default as plugins } from './pluginSystem/plugins';
|
|
73
91
|
export * as pluginsCtrl from './pluginSystem/pluginsCtrl';
|
|
74
|
-
export * as
|
|
75
|
-
export * as BindedBar from './uiClasses/BindedBar';
|
|
76
|
-
export * as BindedCheckbox from './uiClasses/BindedCheckbox';
|
|
77
|
-
export * as BindedDropDown from './uiClasses/BindedDropDown';
|
|
78
|
-
export * as BindedSwitch from './uiClasses/BindedSwitch';
|
|
92
|
+
export * as externalPlugins from './pluginSystem/externalPlugins';
|
|
79
93
|
export * as BottomSlide from './uiClasses/BottomSlide';
|
|
80
94
|
export * as ClickHandler from './uiClasses/ClickHandler';
|
|
81
|
-
export * as Detail1hCheckbox from './uiClasses/Detail1hCheckbox';
|
|
82
95
|
export * as Drag from './uiClasses/Drag';
|
|
83
|
-
export * as DraggableDiv from './uiClasses/DraggableDiv';
|
|
84
|
-
export * as DropDown from './uiClasses/DropDown';
|
|
85
|
-
export * as GhostBox from './uiClasses/GhostBox';
|
|
86
|
-
export * as LongTap from './uiClasses/LongTap';
|
|
87
|
-
export * as MobileCalendar from './uiClasses/MobileCalendar';
|
|
88
|
-
export * as ProductSwitch from './uiClasses/ProductSwitch';
|
|
89
|
-
export * as Scrollable from './uiClasses/Scrollable';
|
|
90
96
|
export * as Swipe from './uiClasses/Swipe';
|
|
91
|
-
export * as Switch from './uiClasses/Switch';
|
|
92
|
-
export * as TimestampBar from './uiClasses/TimestampBar';
|
|
93
|
-
export * as Webcams from './uiClasses/Webcams';
|
|
94
97
|
export * as Window from './uiClasses/Window';
|
|
95
98
|
export * as components from './ui/components';
|
|
96
|
-
export * as
|
|
99
|
+
export * as startupWeather from './ui/startupWeather';
|
|
97
100
|
export * as keyboard from './ui/keyboard';
|
|
98
|
-
export * as loadersUI from './ui/loadersUI';
|
|
99
101
|
export * as location from './ui/location';
|
|
100
102
|
export * as permanentPromos from './ui/permanentPromos';
|
|
101
|
-
export
|
|
103
|
+
export * as promo from './ui/promo';
|
|
102
104
|
export * as query from './ui/query';
|
|
103
105
|
export * as rhMessage from './ui/rhMessage';
|
|
104
106
|
export * as timeAnimation from './ui/timeAnimation';
|
|
105
|
-
export * as user from './ui/user';
|
|
106
107
|
export * as visibility from './ui/visibility';
|
|
107
108
|
export * as share from './ui/share';
|
|
109
|
+
export * as loadArticlesOrWhatsNew from './ui/loadArticlesOrWhatsNew';
|
|
108
110
|
export * as DataTiler from './renderClasses/DataTiler';
|
|
109
111
|
export * as Particles from './renderClasses/Particles';
|
|
110
112
|
export * as Renderer from './renderClasses/Renderer';
|
|
@@ -121,12 +123,11 @@ export { default as glTileRender } from './render/glTileRender';
|
|
|
121
123
|
export * as renderTile from './render/renderTile';
|
|
122
124
|
export * as tileLayer from './render/tileLayerInstance';
|
|
123
125
|
export { default as GlObj } from './wgUtils/GlObj';
|
|
124
|
-
export * as Favs from './mapClasses/Favs';
|
|
125
126
|
export { default as LabelsLayer } from './mapClasses/LabelsLayer';
|
|
126
127
|
export { default as LandMask } from './mapClasses/LandMask';
|
|
127
128
|
export { default as TileLayerMultiPatch } from './mapClasses/TileLayerMultiPatch';
|
|
128
129
|
export * as baseMap from './map/baseMap';
|
|
129
|
-
export
|
|
130
|
+
export * as cityLabels from './map/cityLabels';
|
|
130
131
|
export * as map from './map/map';
|
|
131
132
|
export * as mapGlobeCtrl from './map/mapGlobeCtrl';
|
|
132
133
|
export * as picker from './map/picker';
|
|
@@ -135,4 +136,9 @@ export * as mobile from './capacitor/mobile';
|
|
|
135
136
|
export * as mobileUtils from './capacitor/mobileUtils';
|
|
136
137
|
export * as nativeStorage from './capacitor/nativeStorage';
|
|
137
138
|
export * as pushNotifications from './capacitor/pushNotifications';
|
|
139
|
+
export * as appsFlyer from './capacitor/appsFlyer';
|
|
140
|
+
export * as showableErrorsService from './capacitor/showableErrorsService';
|
|
138
141
|
export * as seoParser from './dummyModules/seoParser';
|
|
142
|
+
import './ui/patchAndPromoCtrl';
|
|
143
|
+
import './ui/storeLastPosition';
|
|
144
|
+
import './services/customColors';
|
package/types/client/models.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const getIconModel: (rqrdProduct: Products, avProducts: Products[
|
|
|
26
26
|
/**
|
|
27
27
|
* Return idents of visible local products available in the current map boundaries (or empty array undefined)
|
|
28
28
|
*/
|
|
29
|
-
export declare const betterProducts: <T extends LatLon, PT extends boolean, R extends PT extends true ? "icon" | "
|
|
29
|
+
export declare const betterProducts: <T extends LatLon, PT extends boolean, R extends PT extends true ? "icon" | "namConus" | "namHawaii" | "namAlaska" | "iconEu" | "iconD2" | "arome" | "aromeAntilles" | "aromeFrance" | "aromeReunion" | "canHrdps" | "canRdwpsWaves" | "czeAladin" | "iconEuWaves" | "hrrrAlaska" | "hrrrConus" | "bomAccess" | "bomAccessAd" | "bomAccessBn" | "bomAccessDn" | "bomAccessNq" | "bomAccessPh" | "bomAccessSy" | "bomAccessVt" | "ukv" | "jmaMsm" | "jmaCwmWaves" | "gfs" | "ecmwf" | "mblue" : "icon" | "radar" | "satellite" | "radarPlus" | "capAlerts" | "topoMap" | "nems" | "namConus" | "namHawaii" | "namAlaska" | "iconEu" | "iconD2" | "arome" | "aromeAntilles" | "aromeFrance" | "aromeReunion" | "canHrdps" | "canRdwpsWaves" | "camsEu" | "czeAladin" | "iconEuWaves" | "hrrrAlaska" | "hrrrConus" | "bomAccess" | "bomAccessAd" | "bomAccessBn" | "bomAccessDn" | "bomAccessNq" | "bomAccessPh" | "bomAccessSy" | "bomAccessVt" | "ukv" | "jmaMsm" | "jmaCwmWaves" | "gfs" | "ecmwf" | "ecmwfAnalysis" | "ecmwfWaves" | "gfsWaves" | "cams" | "efi" | "cmems" | "drought" | "fireDanger" | "activeFires" | "mblue">(latLon: T, pointFcts?: PT) => R[];
|
|
30
30
|
/**
|
|
31
31
|
* Return product string on a basis of overlay & wanted forecast model
|
|
32
32
|
*/
|
|
@@ -14,18 +14,4 @@ export interface WindyWidgetPlugin {
|
|
|
14
14
|
value: boolean;
|
|
15
15
|
}>;
|
|
16
16
|
}
|
|
17
|
-
export interface WindyBackupPlugin {
|
|
18
|
-
syncCounter: (arg: {
|
|
19
|
-
clientCounter: number;
|
|
20
|
-
}) => Promise<{
|
|
21
|
-
nativeCounter: number;
|
|
22
|
-
backup?: string;
|
|
23
|
-
}>;
|
|
24
|
-
saveBackup: (arg: {
|
|
25
|
-
clientCounter: number;
|
|
26
|
-
backup: string;
|
|
27
|
-
}) => Promise<void>;
|
|
28
|
-
reloadApp: () => Promise<void>;
|
|
29
|
-
clearBackup: () => Promise<void>;
|
|
30
|
-
}
|
|
31
17
|
export {};
|
|
@@ -1,67 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
markAlertAsSeen(id: string): Promise<HttpPayload<void>>;
|
|
34
|
-
/**
|
|
35
|
-
* Mark notification as seen by its id. It affects just and only one specific notification.
|
|
36
|
-
*
|
|
37
|
-
* @param id Notification id
|
|
38
|
-
* @returns
|
|
39
|
-
*/
|
|
40
|
-
markNotificationAsSeen(id: string): Promise<http.HttpPayload<void>>;
|
|
41
|
-
/**
|
|
42
|
-
* Mark all notifications ad received (= not seen yet, but already delivered)
|
|
43
|
-
*
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
markNotificationsAsReceived(): Promise<void | http.HttpPayload<void>>;
|
|
47
|
-
/**
|
|
48
|
-
* Delete all users notifications
|
|
49
|
-
*
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
deleteAllNotifications(): Promise<http.HttpPayload<void>>;
|
|
53
|
-
/**
|
|
54
|
-
* Mark all users notifications as seen
|
|
55
|
-
*/
|
|
56
|
-
markAllAsSeen(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Update notification state. It updates store value so all necessary events are triggered.
|
|
59
|
-
*
|
|
60
|
-
* @param vals `totalCount` and `newCount` values to set
|
|
61
|
-
* @param vals.totalCount Total count of all notifications (already seen is included)
|
|
62
|
-
* @param vals.newCount Count of new unseen notifications
|
|
63
|
-
*/
|
|
64
|
-
updateInfo({ totalCount, newCount }: NotificationInfo): void;
|
|
65
|
-
}
|
|
66
|
-
declare const _default: Notification;
|
|
67
|
-
export default _default;
|
|
1
|
+
import type { NotificationExtraPayload } from './d.ts.files/pushNotifications';
|
|
2
|
+
import type { HttpPayload } from './d.ts.files/http';
|
|
3
|
+
export declare const canReceiveNotifications: Promise<void>;
|
|
4
|
+
export declare function loadNotifications(): Promise<void>;
|
|
5
|
+
/**
|
|
6
|
+
* Delete all users notifications
|
|
7
|
+
*/
|
|
8
|
+
export declare function deleteAllNotifications(): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Mark all users notifications as seen
|
|
11
|
+
*/
|
|
12
|
+
export declare function markAllAsSeen(): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Mark notification as seen
|
|
15
|
+
*
|
|
16
|
+
* @param id Alert id
|
|
17
|
+
* @param processId Process id
|
|
18
|
+
*/
|
|
19
|
+
export declare function markNotificationAsSeen(data: NotificationExtraPayload): Promise<HttpPayload<void>>;
|
|
20
|
+
/**
|
|
21
|
+
* Mark notification as received
|
|
22
|
+
*
|
|
23
|
+
* @param id Alert id
|
|
24
|
+
* @param processId Process id
|
|
25
|
+
*/
|
|
26
|
+
export declare function markNotificationAsReceived(data: NotificationExtraPayload): Promise<HttpPayload<void>>;
|
|
27
|
+
/**
|
|
28
|
+
* After this BE will send notification to device
|
|
29
|
+
* @param type
|
|
30
|
+
* @param device
|
|
31
|
+
*/
|
|
32
|
+
export declare function sendTestNotification(type: NotificationExtraPayload['category'], registrationHash: string): void;
|
|
@@ -47,9 +47,9 @@ declare const overlays: {
|
|
|
47
47
|
dustsm: Overlay<"dustsm", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
48
48
|
ptype: RainPtypeOverlay<"ptype">;
|
|
49
49
|
ccl: Overlay<"ccl", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
50
|
-
gh: Overlay<"gh", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
51
50
|
radar: Overlay<"radar", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
52
51
|
satellite: Overlay<"satellite", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
52
|
+
radarPlus: Overlay<"radarPlus", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
53
53
|
satelliteIRBT: Overlay<"satellite", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
54
54
|
capAlerts: Overlay<"capAlerts", undefined, import("../weatherClasses/Layer").Layer<undefined>>;
|
|
55
55
|
efiWind: Overlay<"efiWind", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
@@ -63,5 +63,8 @@ declare const overlays: {
|
|
|
63
63
|
soilMoisture100: Overlay<"soilMoisture100", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
64
64
|
fwi: FwiOverlay<"fwi">;
|
|
65
65
|
dfm10h: Overlay<"dfm10h", import("../weatherClasses/MetricClasses").NumberedMetric, import("../weatherClasses/Layer").Layer<import("../weatherClasses/MetricClasses").NumberedMetric>>;
|
|
66
|
+
heatmaps: Overlay<"heatmaps", undefined, undefined>;
|
|
67
|
+
topoMap: Overlay<"topoMap", undefined, import("../weatherClasses/Layer").Layer<undefined>>;
|
|
68
|
+
hurricanes: Overlay<"hurricanes", undefined, undefined>;
|
|
66
69
|
};
|
|
67
70
|
export default overlays;
|
package/types/client/params.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # @windy/patchAndPromoCtrl
|
|
3
|
+
*
|
|
4
|
+
* This module is responsible for initializing and running promos and patches
|
|
5
|
+
* loaded from `patch.ts` ES module (repository `client-patch`).
|
|
6
|
+
*
|
|
7
|
+
* IMPORTANT: Some promos are displayed after startup-weather is shown in the
|
|
8
|
+
* position of startup-articles. Therefore it is this module that
|
|
9
|
+
* determines if, and initiates load of `startup-articles` plugin.
|
|
10
|
+
*
|
|
11
|
+
* @module patchAndPromoCtrl
|
|
12
|
+
*/
|
|
13
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const neverDisplayLongTapPromo: () => void;
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare class PersistentStorage {
|
|
2
|
+
private readonly internalStorage;
|
|
3
|
+
constructor();
|
|
4
|
+
getItem(key: string): Promise<string | null>;
|
|
5
|
+
setItem(key: string, value: string): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const persistentStorage: PersistentStorage;
|
|
8
|
+
export {};
|
package/types/client/picker.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare class PickerDot {
|
|
|
32
32
|
* Locks picker in position, so any change in picker location
|
|
33
33
|
* will sync its position to desired lat,lons
|
|
34
34
|
*/
|
|
35
|
-
lockPosition():
|
|
35
|
+
lockPosition(): LatLon;
|
|
36
36
|
unlockPosition(): void;
|
|
37
37
|
/**
|
|
38
38
|
* Sets & lock the position of picker dot
|
package/types/client/pois.d.ts
CHANGED
|
@@ -11,6 +11,5 @@ import type { PoisCheckboxes } from './d.ts.files/pois.d';
|
|
|
11
11
|
export declare const poisCheckboxes: PoisCheckboxes;
|
|
12
12
|
/**
|
|
13
13
|
* Is there something to display on map as a POI
|
|
14
|
-
* TODO: Make sure Alerts are included in favs too by creating alert on map
|
|
15
14
|
*/
|
|
16
|
-
export declare const displayPoiOnMap: () => boolean
|
|
15
|
+
export declare const displayPoiOnMap: () => Promise<boolean>;
|
package/types/client/promo.d.ts
CHANGED
|
@@ -1,37 +1,21 @@
|
|
|
1
|
-
import '@windy/
|
|
1
|
+
import type { Timestamp } from '@windy/types';
|
|
2
2
|
export interface PromoInfoObject {
|
|
3
|
+
id: string;
|
|
3
4
|
displayed: number;
|
|
4
|
-
ts:
|
|
5
|
+
ts: Timestamp;
|
|
5
6
|
}
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* Get basic info about promo for given ident
|
|
8
9
|
*/
|
|
9
|
-
declare const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
hitCounter: (ident: string) => void;
|
|
23
|
-
/**
|
|
24
|
-
* Flag the promo to be never seen again (by setting
|
|
25
|
-
* its number to 1000)
|
|
26
|
-
*
|
|
27
|
-
* @param ident Ident
|
|
28
|
-
*/
|
|
29
|
-
neverSee: (ident: string) => void;
|
|
30
|
-
/**
|
|
31
|
-
* Get raw promo object from localStorage
|
|
32
|
-
*
|
|
33
|
-
* @returns Local promos
|
|
34
|
-
*/
|
|
35
|
-
getAll: () => Record<string, number>;
|
|
36
|
-
};
|
|
37
|
-
export default _default;
|
|
10
|
+
export declare const getCounter: (id: string) => Promise<PromoInfoObject>;
|
|
11
|
+
/**
|
|
12
|
+
* Increases 'seen' counter for particular promo
|
|
13
|
+
*/
|
|
14
|
+
export declare const hitCounter: (id: string) => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Flag the promo to be never seen again (by setting
|
|
17
|
+
* its number to 1000)
|
|
18
|
+
*
|
|
19
|
+
* @param ident Ident
|
|
20
|
+
*/
|
|
21
|
+
export declare const neverSee: (ident: string) => void;
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LatLon } from '@windy/interfaces.d';
|
|
2
|
+
export interface NotificationExtraPayload extends LatLon {
|
|
3
|
+
/** Identifier of the process in node-notif */
|
|
4
|
+
processId: string;
|
|
5
|
+
id: string | undefined;
|
|
6
|
+
hrTimestamps: string;
|
|
7
|
+
icao?: string;
|
|
8
|
+
category: 'alert' | 'metar';
|
|
9
|
+
notificationId?: string;
|
|
10
|
+
locationEntityId?: string;
|
|
11
|
+
}
|
|
12
|
+
export type RegistrationHash = string;
|
|
13
|
+
export declare function registerDevice(): Promise<RegistrationHash | null>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type ParsedQueryString = Record<string, string>;
|
|
1
|
+
export type ParsedQueryString = Record<string, string | undefined>;
|
|
2
2
|
export declare function parseQueryString(searchQuery: string | undefined): ParsedQueryString | undefined;
|
|
@@ -5,7 +5,7 @@ import { Evented } from '@windy/Evented';
|
|
|
5
5
|
import type { Color } from '@windy/Color';
|
|
6
6
|
import type { Layer } from '@windy/Layer';
|
|
7
7
|
import type { FullRenderParameters } from '@windy/Layer.d';
|
|
8
|
-
import type { DataQuality } from '@windy/Product
|
|
8
|
+
import type { DataQuality } from '@windy/Product';
|
|
9
9
|
import type { TileParams } from '@windy/Renderer.d';
|
|
10
10
|
import type { TilePoint } from '@windy/interfaces.d';
|
|
11
11
|
interface Events {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Renderer } from '@windy/Renderer';
|
|
2
|
+
import { TopoMap } from '@windy/TopoMap';
|
|
2
3
|
import { TileLayer } from '@windy/TileLayer';
|
|
3
4
|
declare const renderers: {
|
|
4
5
|
/**
|
|
@@ -8,13 +9,16 @@ declare const renderers: {
|
|
|
8
9
|
*/
|
|
9
10
|
tileLayer: TileLayer;
|
|
10
11
|
noUserControl: TileLayer;
|
|
11
|
-
radar: Renderer<"radar",
|
|
12
|
-
satellite: Renderer<"satellite",
|
|
13
|
-
|
|
12
|
+
radar: Renderer<"radar", any>;
|
|
13
|
+
satellite: Renderer<"satellite", any>;
|
|
14
|
+
radarPlus: Renderer<"radar-plus", any>;
|
|
15
|
+
capAlerts: Renderer<"cap-alerts", typeof import("../pluginSystem/SveltePlugin").SvelteApp & typeof import("../../plugins/cap-alerts/cap-alerts")>;
|
|
14
16
|
isolines: Renderer<"isolines", typeof import("../../plugins/isolines/isolines")>;
|
|
15
17
|
particles: Renderer<"gl-particles", typeof import("../../plugins/gl-particles/gl-particles")> | Renderer<"particles", typeof import("../../plugins/particles/particles")>;
|
|
16
18
|
/** Extreme forecast and intersucho layers */
|
|
17
19
|
daySwitcher: TileLayer;
|
|
18
20
|
accumulations: TileLayer;
|
|
21
|
+
/** Seznam topographic Map */
|
|
22
|
+
topoMap: TopoMap;
|
|
19
23
|
};
|
|
20
24
|
export default renderers;
|