@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.
Files changed (134) hide show
  1. package/README.md +4 -0
  2. package/index.mjs +2 -2
  3. package/package.json +2 -3
  4. package/types/client/AccessProducts.d.ts +8 -0
  5. package/types/client/BottomSveltePlugins.d.ts +8 -0
  6. package/types/client/Calendar.d.ts +9 -17
  7. package/types/client/Color.d.ts +43 -90
  8. package/types/client/Drag.d.ts +8 -1
  9. package/types/client/Evented.d.ts +4 -0
  10. package/types/client/ExternalSveltePlugin.d.ts +2 -1
  11. package/types/client/IDB.d.ts +63 -0
  12. package/types/client/IconProducts.d.ts +2 -0
  13. package/types/client/Layer.d.ts +1 -2
  14. package/types/client/Metric.d.ts +8 -8
  15. package/types/client/MetricClasses.d.ts +4 -3
  16. package/types/client/Overlay.d.ts +30 -15
  17. package/types/client/OverlayClasses.d.ts +11 -7
  18. package/types/client/Plugin.d.ts +2 -2
  19. package/types/client/Product.d.ts +53 -30
  20. package/types/client/RadarPlusProduct.d.ts +19 -0
  21. package/types/client/Renderer.d.ts +2 -10
  22. package/types/client/SveltePanePlugin.d.ts +4 -3
  23. package/types/client/SveltePlugin.d.ts +9 -5
  24. package/types/client/TileLayer.d.ts +1 -2
  25. package/types/client/TopoMap.d.ts +10 -0
  26. package/types/client/Window.d.ts +0 -4
  27. package/types/client/WindowPlugin.d.ts +15 -10
  28. package/types/client/appsFlyer.d.ts +3 -0
  29. package/types/client/baseMap.d.ts +8 -5
  30. package/types/client/cityLabels.d.ts +10 -2
  31. package/types/client/cloudSync.d.ts +3 -1
  32. package/types/client/colorGradients.d.ts +13 -0
  33. package/types/client/d.ts.files/Calendar.d.ts +11 -2
  34. package/types/client/d.ts.files/Color.d.ts +16 -5
  35. package/types/client/d.ts.files/LabelsLayer.d.ts +1 -18
  36. package/types/client/d.ts.files/Layer.d.ts +8 -1
  37. package/types/client/d.ts.files/Metric.d.ts +1 -0
  38. package/types/client/d.ts.files/Renderer.d.ts +22 -1
  39. package/types/client/d.ts.files/alerts.d.ts +120 -0
  40. package/types/client/d.ts.files/broadcast.d.ts +44 -17
  41. package/types/client/d.ts.files/dataSpecifications.d.ts +94 -137
  42. package/types/client/d.ts.files/favs.d.ts +69 -0
  43. package/types/client/d.ts.files/incomingMessages.d.ts +0 -4
  44. package/types/client/d.ts.files/notifications.d.ts +2 -2
  45. package/types/client/d.ts.files/plugin-params.d.ts +44 -58
  46. package/types/client/d.ts.files/plugins.d.ts +37 -52
  47. package/types/client/d.ts.files/pois.d.ts +1 -1
  48. package/types/client/d.ts.files/products.d.ts +19 -2
  49. package/types/client/d.ts.files/rootScope.d.ts +3 -21
  50. package/types/client/d.ts.files/satellite.d.ts +1 -0
  51. package/types/client/d.ts.files/startup.d.ts +59 -0
  52. package/types/client/d.ts.files/storage.d.ts +12 -35
  53. package/types/client/d.ts.files/user.d.ts +79 -24
  54. package/types/client/device.d.ts +0 -1
  55. package/types/client/deviceLogging.d.ts +2 -1
  56. package/types/client/embed2.d.ts +15 -35
  57. package/types/client/fetch.d.ts +31 -24
  58. package/types/client/ga.d.ts +4 -0
  59. package/types/client/geolocation.d.ts +14 -7
  60. package/types/client/globals.d.ts +1 -0
  61. package/types/client/http.d.ts +17 -0
  62. package/types/client/idbInstances.d.ts +45 -0
  63. package/types/client/interpolator.d.ts +2 -1
  64. package/types/client/langFiles.d.ts +2 -0
  65. package/types/client/layers.d.ts +2 -0
  66. package/types/client/lib.d.ts +7 -25
  67. package/types/client/libHtml.d.ts +1 -1
  68. package/types/client/loadArticlesOrWhatsNew.d.ts +1 -0
  69. package/types/client/log.d.ts +1 -0
  70. package/types/client/lruCache.d.ts +6 -0
  71. package/types/client/map.d.ts +17 -6
  72. package/types/client/mobile.d.ts +33 -27
  73. package/types/client/models.d.ts +1 -1
  74. package/types/client/nativeStorage.d.ts +0 -14
  75. package/types/client/notifications.d.ts +32 -67
  76. package/types/client/overlays.d.ts +4 -1
  77. package/types/client/params.d.ts +0 -1
  78. package/types/client/patchAndPromoCtrl.d.ts +13 -0
  79. package/types/client/permanentPromos.d.ts +1 -2
  80. package/types/client/persistentStorage.d.ts +8 -0
  81. package/types/client/picker.d.ts +1 -1
  82. package/types/client/pois.d.ts +1 -2
  83. package/types/client/promo.d.ts +16 -32
  84. package/types/client/pushNotifications.d.ts +13 -1
  85. package/types/client/queryString.d.ts +1 -1
  86. package/types/client/renderUtils.d.ts +1 -1
  87. package/types/client/renderers.d.ts +7 -3
  88. package/types/client/rootScope.d.ts +22 -27
  89. package/types/client/router.d.ts +10 -6
  90. package/types/client/seoParser.d.ts +21 -0
  91. package/types/client/serviceWorkerCtrl.d.ts +8 -0
  92. package/types/client/startupWeather.d.ts +27 -0
  93. package/types/client/store.d.ts +2 -2
  94. package/types/client/storeLastPosition.d.ts +1 -0
  95. package/types/client/subscription.d.ts +1 -0
  96. package/types/client/swDownloader.d.ts +7 -7
  97. package/types/client/swProxy.d.ts +1 -1
  98. package/types/client/swUtils.d.ts +3 -3
  99. package/types/client/trans.d.ts +26 -37
  100. package/types/client/user.d.ts +11 -14
  101. package/types/client/userAlerts.d.ts +68 -0
  102. package/types/client/userConsent.d.ts +6 -0
  103. package/types/client/userFavs.d.ts +46 -128
  104. package/types/client/utils.d.ts +46 -10
  105. package/types/iconfont.d.ts +6 -4
  106. package/types/interfaces.d.ts +199 -348
  107. package/types/lang-files.d.ts +736 -128
  108. package/types/offline.d.ts +100 -0
  109. package/types/types.d.ts +116 -29
  110. package/types/client/Bar.d.ts +0 -114
  111. package/types/client/BindedBar.d.ts +0 -51
  112. package/types/client/BindedCheckbox.d.ts +0 -30
  113. package/types/client/BindedDropDown.d.ts +0 -14
  114. package/types/client/BindedSwitch.d.ts +0 -35
  115. package/types/client/BottomTagPlugin.d.ts +0 -8
  116. package/types/client/Detail1hCheckbox.d.ts +0 -4
  117. package/types/client/DraggableDiv.d.ts +0 -21
  118. package/types/client/DropDown.d.ts +0 -37
  119. package/types/client/GhostBox.d.ts +0 -17
  120. package/types/client/Legend.d.ts +0 -6
  121. package/types/client/LongTap.d.ts +0 -21
  122. package/types/client/MobileCalendar.d.ts +0 -47
  123. package/types/client/OfflineMessagesClasses.d.ts +0 -30
  124. package/types/client/ProductSwitch.d.ts +0 -14
  125. package/types/client/Scrollable.d.ts +0 -14
  126. package/types/client/Switch.d.ts +0 -24
  127. package/types/client/TimestampBar.d.ts +0 -8
  128. package/types/client/Webcams.d.ts +0 -66
  129. package/types/client/d.ts.files/Product.d.ts +0 -37
  130. package/types/client/d.ts.files/trans.d.ts +0 -55
  131. package/types/client/favs.d.ts +0 -83
  132. package/types/client/hp.d.ts +0 -15
  133. package/types/client/offlineController.d.ts +0 -20
  134. /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=\"shy 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 ld-gray-light 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 ld-gray-light 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-size\" 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=\"shy\"></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";
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>;
@@ -1,2 +1,3 @@
1
1
  import type { LogPaths } from '@windy/types.d';
2
+ /** Log event to GA. Path `appsflyer` is logged as key_event instead of page_view by node-services */
2
3
  export declare const logPage: (path: LogPaths, item?: string | boolean) => void;
@@ -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;
@@ -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 depreciated)
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;
@@ -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 { default as notifications } from './services/notifications';
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 { default as userFavs } from './services/userFavs';
66
- export * as BottomTagPlugin from './pluginSystem/BottomTagPlugin';
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 Bar from './uiClasses/Bar';
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 hp from './ui/hp';
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 { default as promo } from './ui/promo';
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 { default as cityLabels } from './map/cityLabels';
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';
@@ -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" | "gfs" | "ecmwf" | "namConus" | "namHawaii" | "namAlaska" | "iconEu" | "iconD2" | "arome" | "aromeAntilles" | "aromeReunion" | "iconEuWaves" | "hrrrAlaska" | "hrrrConus" | "bomAccess" | "ukv" | "mblue" : "icon" | "radar" | "satellite" | "capAlerts" | "gfs" | "ecmwf" | "ecmwfAnalysis" | "ecmwfWaves" | "gfsWaves" | "iconWaves" | "cams" | "efi" | "cmems" | "drought" | "fireDanger" | "activeFires" | "nems" | "namConus" | "namHawaii" | "namAlaska" | "iconEu" | "iconD2" | "arome" | "aromeAntilles" | "aromeReunion" | "camsEu" | "iconEuWaves" | "hrrrAlaska" | "hrrrConus" | "bomAccess" | "ukv" | "mblue">(latLon: T, pointFcts?: PT) => R[];
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 { Evented } from '@windy/Evented';
2
- import * as http from '@windy/http';
3
- import type { HttpPayload } from './d.ts.files/http.d';
4
- import type { NotificationInfo } from './d.ts.files/notifications.d';
5
- declare class Notification extends Evented<Notification> {
6
- data: Record<string, unknown>;
7
- eventSource: null | EventSource;
8
- canReceiveNotif: boolean;
9
- hasUnloadListener: boolean;
10
- constructor();
11
- /**
12
- * Close SSE event stream
13
- */
14
- clean(): void;
15
- /**
16
- * Connect to SSE event stream and hook all event listeners
17
- */
18
- watchChanges(): void;
19
- /**
20
- * Get notifications list (paging is applied)
21
- *
22
- * @param currentPage Page number to get
23
- * @param pageSize Page size to include into list
24
- * @returns Page is updated with received data or error is shown if anything failed
25
- */
26
- loadNotificationList(currentPage: number, pageSize: number): Promise<void | NotificationInfo>;
27
- /**
28
- * Mark alert as seen by its id. This may affect more notifications if the alert has some.
29
- *
30
- * @param id Alert id
31
- * @returns
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;
@@ -1,2 +1 @@
1
1
  import '@windy/renderCtrl';
2
- import '@windy/router';
@@ -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
- import '@windy/geolocation';
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 {};
@@ -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(): void;
35
+ lockPosition(): LatLon;
36
36
  unlockPosition(): void;
37
37
  /**
38
38
  * Sets & lock the position of picker dot
@@ -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>;
@@ -1,37 +1,21 @@
1
- import '@windy/geolocation';
1
+ import type { Timestamp } from '@windy/types';
2
2
  export interface PromoInfoObject {
3
+ id: string;
3
4
  displayed: number;
4
- ts: number;
5
+ ts: Timestamp;
5
6
  }
6
7
  /**
7
- * TODO: Keep this as default export due to backward compatibility with client-patch
8
+ * Get basic info about promo for given ident
8
9
  */
9
- declare const _default: {
10
- /**
11
- * Get basic info about promo
12
- *
13
- * @param ident Identificator
14
- * @returns Promo info object
15
- */
16
- getCounter2: (ident: string) => PromoInfoObject;
17
- /**
18
- * Increases 'seen' counter for particular promo
19
- *
20
- * @param ident Ident
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
- export declare function registerDevice(): Promise<string | unknown>;
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.d';
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", typeof import("../../plugins/radar/radar")>;
12
- satellite: Renderer<"satellite", typeof import("../../plugins/satellite/satellite")>;
13
- capAlerts: Renderer<"cap-alerts", typeof import("../../plugins/cap-alerts/cap-alerts")>;
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;