@windycom/plugin-devtools 2.0.0 → 3.0.1

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 (143) 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/BottomSlide.d.ts +3 -0
  6. package/types/client/BottomSveltePlugins.d.ts +8 -0
  7. package/types/client/Calendar.d.ts +9 -17
  8. package/types/client/Color.d.ts +44 -91
  9. package/types/client/EcmwfProduct.d.ts +0 -22
  10. package/types/client/Evented.d.ts +4 -0
  11. package/types/client/ExternalSveltePlugin.d.ts +8 -2
  12. package/types/client/IDB.d.ts +69 -0
  13. package/types/client/IconProducts.d.ts +2 -0
  14. package/types/client/Layer.d.ts +1 -2
  15. package/types/client/Metric.d.ts +13 -9
  16. package/types/client/MetricClasses.d.ts +4 -3
  17. package/types/client/Overlay.d.ts +31 -16
  18. package/types/client/OverlayClasses.d.ts +11 -7
  19. package/types/client/Plugin.d.ts +6 -2
  20. package/types/client/Product.d.ts +33 -30
  21. package/types/client/RadarPlusProduct.d.ts +19 -0
  22. package/types/client/Renderer.d.ts +2 -10
  23. package/types/client/SatelliteProduct.d.ts +1 -1
  24. package/types/client/SveltePlugin.d.ts +16 -5
  25. package/types/client/TileLayer.d.ts +1 -2
  26. package/types/client/TopoMap.d.ts +10 -0
  27. package/types/client/WindowPlugin.d.ts +9 -4
  28. package/types/client/appsFlyer.d.ts +2 -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/compatibilityCheck.d.ts +1 -0
  34. package/types/client/connection.d.ts +1 -1
  35. package/types/client/customColors.d.ts +1 -0
  36. package/types/client/d.ts.files/Calendar.d.ts +11 -2
  37. package/types/client/d.ts.files/Color.d.ts +17 -5
  38. package/types/client/d.ts.files/LabelsLayer.d.ts +3 -20
  39. package/types/client/d.ts.files/Layer.d.ts +8 -1
  40. package/types/client/d.ts.files/Metric.d.ts +1 -0
  41. package/types/client/d.ts.files/Renderer.d.ts +22 -1
  42. package/types/client/d.ts.files/alerts.d.ts +119 -0
  43. package/types/client/d.ts.files/broadcast.d.ts +51 -18
  44. package/types/client/d.ts.files/dataSpecifications.d.ts +121 -137
  45. package/types/client/d.ts.files/favs.d.ts +68 -0
  46. package/types/client/d.ts.files/incomingMessages.d.ts +0 -4
  47. package/types/client/d.ts.files/lib.d.ts +5 -7
  48. package/types/client/d.ts.files/notifications.d.ts +2 -2
  49. package/types/client/d.ts.files/plugin-params.d.ts +53 -57
  50. package/types/client/d.ts.files/plugins.d.ts +31 -42
  51. package/types/client/d.ts.files/pois.d.ts +1 -1
  52. package/types/client/d.ts.files/products.d.ts +16 -5
  53. package/types/client/d.ts.files/rootScope.d.ts +13 -31
  54. package/types/client/d.ts.files/startup.d.ts +65 -0
  55. package/types/client/d.ts.files/storage.d.ts +12 -35
  56. package/types/client/d.ts.files/user.d.ts +82 -24
  57. package/types/client/detectDevice.d.ts +0 -3
  58. package/types/client/device.d.ts +1 -0
  59. package/types/client/deviceLogging.d.ts +2 -1
  60. package/types/client/embed.d.ts +70 -0
  61. package/types/client/embed2.d.ts +14 -31
  62. package/types/client/errorLogger.d.ts +28 -3
  63. package/types/client/errors.d.ts +6 -0
  64. package/types/client/fetch.d.ts +41 -16
  65. package/types/client/format.d.ts +1 -1
  66. package/types/client/ga.d.ts +1 -1
  67. package/types/client/geolocation.d.ts +15 -7
  68. package/types/client/globals.d.ts +1 -0
  69. package/types/client/http.d.ts +17 -6
  70. package/types/client/idbInstances.d.ts +36 -0
  71. package/types/client/imaker.d.ts +112 -0
  72. package/types/client/imakerMain.d.ts +49 -0
  73. package/types/client/langFiles.d.ts +2 -0
  74. package/types/client/latestBroadcasts.d.ts +1 -1
  75. package/types/client/layers.d.ts +2 -0
  76. package/types/client/lib.d.ts +6 -22
  77. package/types/client/libHtml.d.ts +1 -1
  78. package/types/client/liveAlerts.d.ts +5 -0
  79. package/types/client/liveAlerts.types.d.ts +28 -0
  80. package/types/client/loadArticlesOrWhatsNew.d.ts +1 -0
  81. package/types/client/location.d.ts +5 -0
  82. package/types/client/log.d.ts +4 -1
  83. package/types/client/lruCache.d.ts +6 -0
  84. package/types/client/map.d.ts +17 -6
  85. package/types/client/mobile.d.ts +31 -22
  86. package/types/client/models.d.ts +7 -5
  87. package/types/client/notifications.d.ts +29 -67
  88. package/types/client/overlays.d.ts +4 -1
  89. package/types/client/params.d.ts +0 -1
  90. package/types/client/permanentPromos.d.ts +1 -1
  91. package/types/client/persistentStorage.d.ts +8 -0
  92. package/types/client/picker.d.ts +1 -1
  93. package/types/client/plugins.d.ts +4 -0
  94. package/types/client/pois.d.ts +1 -2
  95. package/types/client/promo.d.ts +6 -16
  96. package/types/client/pushNotifications.d.ts +1 -1
  97. package/types/client/queryString.d.ts +1 -1
  98. package/types/client/renderUtils.d.ts +1 -1
  99. package/types/client/renderers.d.ts +7 -3
  100. package/types/client/rootScope.d.ts +23 -24
  101. package/types/client/router.d.ts +9 -29
  102. package/types/client/seoParser.d.ts +0 -14
  103. package/types/client/serviceWorkerCtrl.d.ts +8 -0
  104. package/types/client/showableErrorsService.d.ts +6 -10
  105. package/types/client/startupWeather.d.ts +13 -9
  106. package/types/client/store.d.ts +2 -2
  107. package/types/client/storeLastPosition.d.ts +4 -0
  108. package/types/client/subscription.d.ts +1 -0
  109. package/types/client/swDownloader.d.ts +7 -7
  110. package/types/client/swProxy.d.ts +1 -1
  111. package/types/client/swUtils.d.ts +3 -3
  112. package/types/client/trans.d.ts +26 -37
  113. package/types/client/user.d.ts +7 -13
  114. package/types/client/userAlerts.d.ts +68 -0
  115. package/types/client/userConsent.d.ts +6 -0
  116. package/types/client/userFavs.d.ts +46 -122
  117. package/types/client/utils.d.ts +67 -9
  118. package/types/iconfont.d.ts +8 -0
  119. package/types/interfaces.d.ts +226 -284
  120. package/types/lang-files.d.ts +1334 -142
  121. package/types/offline.d.ts +100 -0
  122. package/types/types.d.ts +108 -34
  123. package/types/client/Bar.d.ts +0 -114
  124. package/types/client/BindedBar.d.ts +0 -51
  125. package/types/client/BindedCheckbox.d.ts +0 -30
  126. package/types/client/BindedSwitch.d.ts +0 -35
  127. package/types/client/BottomTagPlugin.d.ts +0 -8
  128. package/types/client/DraggableDiv.d.ts +0 -21
  129. package/types/client/GhostBox.d.ts +0 -17
  130. package/types/client/Legend.d.ts +0 -6
  131. package/types/client/LongTap.d.ts +0 -21
  132. package/types/client/MobileCalendar.d.ts +0 -51
  133. package/types/client/OfflineMessagesClasses.d.ts +0 -30
  134. package/types/client/ProductSwitch.d.ts +0 -14
  135. package/types/client/Scrollable.d.ts +0 -14
  136. package/types/client/Switch.d.ts +0 -24
  137. package/types/client/TimestampBar.d.ts +0 -8
  138. package/types/client/d.ts.files/Product.d.ts +0 -37
  139. package/types/client/d.ts.files/errorLogger.d.ts +0 -35
  140. package/types/client/d.ts.files/trans.d.ts +0 -55
  141. package/types/client/favs.d.ts +0 -83
  142. package/types/client/offlineController.d.ts +0 -20
  143. /package/types/client/d.ts.files/{Webcams.d.ts → webcams.d.ts} +0 -0
@@ -0,0 +1,112 @@
1
+ import './leafletExt/CanvasLayer';
2
+ export * as detectDevice from './dummyModules/detectDevice';
3
+ export * as log from './dummyModules/log';
4
+ export * as promo from './dummyModules/promo';
5
+ export * as location from './dummyModules/location';
6
+ export * as router from './dummyModules/router';
7
+ export * as showableErrorsService from './dummyModules/showableErrorsService';
8
+ export * as userFavs from './dummyModules/userFavs';
9
+ export * as share from './dummyModules/share';
10
+ export * as Evented from './utils/Evented';
11
+ export * as css from './utils/css';
12
+ export * as fetch from './utils/fetch';
13
+ export * as format from './utils/format';
14
+ export * as ga from './utils/ga';
15
+ export * as http from './utils/http';
16
+ export * as levelUtils from './utils/levelUtils';
17
+ export { default as lruCache } from './utils/lruCache';
18
+ export { default as storage } from './utils/storage';
19
+ export * as IDB from './utils/IDB';
20
+ export * as idbInstances from './utils/idbInstances';
21
+ export * as subscription from './utils/subscription';
22
+ export * as utils from './utils/utils';
23
+ export * as Calendar from './weatherClasses/Calendar';
24
+ export * as Color from './weatherClasses/Color';
25
+ export * as EcmwfProduct from './weatherClasses/EcmwfProduct';
26
+ export * as HrrrProducts from './weatherClasses/HrrrProducts';
27
+ export * as IconProducts from './weatherClasses/IconProducts';
28
+ export * as Layer from './weatherClasses/Layer';
29
+ export * as Metric from './weatherClasses/Metric';
30
+ export * as MetricClasses from './weatherClasses/MetricClasses';
31
+ export * as NamProducts from './weatherClasses/NamProducts';
32
+ export * as Overlay from './weatherClasses/Overlay';
33
+ export * as OverlayClasses from './weatherClasses/OverlayClasses';
34
+ export * as Product from './weatherClasses/Product';
35
+ export * as SatelliteProduct from './weatherClasses/SatelliteProduct';
36
+ export * as StaticProduct from './weatherClasses/StaticProduct';
37
+ export { default as layers } from './weather/layers';
38
+ export { default as legends } from './weather/legends';
39
+ export { default as metrics } from './weather/metrics';
40
+ export * as models from './weather/models';
41
+ export { default as overlays } from './weather/overlays';
42
+ export { default as products } from './weather/products';
43
+ export { default as broadcast } from './services/broadcast';
44
+ export * as cloudSync from './services/cloudSync';
45
+ export { default as colors } from './services/colors';
46
+ export * as connection from './services/connection';
47
+ export { default as dataSpecifications } from './services/dataSpecifications';
48
+ export * as device from './services/device';
49
+ export * as deviceLogging from './services/deviceLogging';
50
+ export * as geolocation from './services/geolocation';
51
+ export * as notifications from './services/notifications';
52
+ export * as ogTags from './services/ogTags';
53
+ export * as params from './services/params';
54
+ export * as pois from './services/pois';
55
+ export * as reverseName from './services/reverseName';
56
+ export * as rootScope from './services/rootScope';
57
+ export { default as store } from './services/store';
58
+ export * as trans from './services/trans';
59
+ export * as userAlerts from './services/userAlerts';
60
+ export * as userConsent from './services/userConsent';
61
+ export * as user from './services/user';
62
+ export * as Plugin from './pluginSystem/Plugin';
63
+ export * as SveltePanePlugin from './pluginSystem/SveltePanePlugin';
64
+ export * as SveltePlugin from './pluginSystem/SveltePlugin';
65
+ export * as ExternalSveltePlugin from './pluginSystem/ExternalSveltePlugin';
66
+ export * as TagPlugin from './pluginSystem/TagPlugin';
67
+ export * as WindowPlugin from './pluginSystem/WindowPlugin';
68
+ export { default as plugins } from './pluginSystem/plugins';
69
+ export * as pluginsCtrl from './pluginSystem/pluginsCtrl';
70
+ export * as externalPlugins from './pluginSystem/externalPlugins';
71
+ export * as BottomSlide from './uiClasses/BottomSlide';
72
+ export * as ClickHandler from './uiClasses/ClickHandler';
73
+ export * as Drag from './uiClasses/Drag';
74
+ export * as Swipe from './uiClasses/Swipe';
75
+ export * as Window from './uiClasses/Window';
76
+ export * as components from './ui/components';
77
+ export * as startupWeather from './ui/startupWeather';
78
+ export * as keyboard from './ui/keyboard';
79
+ export * as permanentPromos from './ui/permanentPromos';
80
+ export * as query from './ui/query';
81
+ export * as rhMessage from './ui/rhMessage';
82
+ export * as timeAnimation from './ui/timeAnimation';
83
+ export * as visibility from './ui/visibility';
84
+ export * as loadArticlesOrWhatsNew from './ui/loadArticlesOrWhatsNew';
85
+ export * as DataTiler from './renderClasses/DataTiler';
86
+ export * as Particles from './renderClasses/Particles';
87
+ export * as Renderer from './renderClasses/Renderer';
88
+ export * as TileLayer from './renderClasses/TileLayer';
89
+ export { default as TileLayerCanvas } from './renderClasses/TileLayerCanvas';
90
+ export * as dataLoader from './render/dataLoader';
91
+ export * as interpolator from './render/interpolator';
92
+ export { default as particleRenderers } from './render/particleRenderers';
93
+ export * as renderCtrl from './render/renderCtrl';
94
+ export * as renderUtils from './render/renderUtils';
95
+ export { default as renderers } from './render/renderers';
96
+ export * as tileInterpolator from './render/tileInterpolator';
97
+ export { default as glTileRender } from './render/glTileRender';
98
+ export * as renderTile from './render/renderTile';
99
+ export * as tileLayer from './render/tileLayerInstance';
100
+ export { default as GlObj } from './wgUtils/GlObj';
101
+ export { default as LabelsLayer } from './mapClasses/LabelsLayer';
102
+ export { default as LandMask } from './mapClasses/LandMask';
103
+ export { default as TileLayerMultiPatch } from './mapClasses/TileLayerMultiPatch';
104
+ export * as baseMap from './map/baseMap';
105
+ export * as cityLabels from './map/cityLabels';
106
+ export * as map from './map/map';
107
+ export * as mapGlobeCtrl from './map/mapGlobeCtrl';
108
+ export * as picker from './map/picker';
109
+ export * as singleclick from './map/singleclick';
110
+ export * as pushNotifications from './dummyModules/pushNotifications';
111
+ export * as appsFlyer from './dummyModules/appsFlyer';
112
+ export * as imaker from './services/imakerMain';
@@ -0,0 +1,49 @@
1
+ import type { LatLon } from '@windy/interfaces';
2
+ import type { Overlays, Products, Pois, Levels } from '@windy/rootScope.d';
3
+ import type { DetailDisplayType, StationId, Timestamp } from '@windy/types';
4
+ export type QueryStringImakerParams = LatLon & {
5
+ zoom: number;
6
+ overlay?: Overlays;
7
+ level?: Levels;
8
+ displayPressureIsolines?: boolean;
9
+ product?: Products;
10
+ pois?: Pois;
11
+ timestamp?: Timestamp;
12
+ } & ({
13
+ type: 'map';
14
+ } | {
15
+ type: 'detail';
16
+ detailDisplay?: DetailDisplayType;
17
+ detailProduct?: Products;
18
+ /** Can be absolute or relative number (for debugging purposes) */
19
+ moveToTimestamp?: Timestamp;
20
+ } | {
21
+ type: 'station';
22
+ /** Format is the same as used in URL, for example `wmo-1158` */
23
+ stationId: StationId;
24
+ /** Can be absolute or relative number (for debugging purposes) */
25
+ moveToTimestamp?: Timestamp;
26
+ });
27
+ export interface RenderMapParams extends LatLon {
28
+ zoom: number;
29
+ overlay?: Overlays;
30
+ level?: Levels;
31
+ displayPressureIsolines?: boolean;
32
+ displayParticles?: boolean;
33
+ product?: Products;
34
+ pois?: Pois;
35
+ timestamp?: Timestamp;
36
+ }
37
+ export interface RenderDetailParams extends RenderMapParams {
38
+ detailDisplay?: DetailDisplayType;
39
+ detailProduct?: Products;
40
+ /** Can be absolute or relative number (for debugging purposes) */
41
+ moveToTimestamp?: Timestamp;
42
+ }
43
+ export interface RenderStationParams extends RenderMapParams {
44
+ stationId: StationId;
45
+ moveToTimestamp?: Timestamp;
46
+ }
47
+ export declare const renderMap: (params: RenderMapParams) => Promise<string[]>;
48
+ export declare const renderDetail: (params: RenderDetailParams) => Promise<string[]>;
49
+ export declare const renderStation: (params: RenderStationParams) => Promise<string[]>;
@@ -0,0 +1,2 @@
1
+ declare const _default: string[];
2
+ export default _default;
@@ -10,5 +10,5 @@ export declare const latestBcasts: BcastHistory[];
10
10
  * @param msg
11
11
  * @param data
12
12
  */
13
- export declare const addLatestBcast: (ident: string, msg: string, data?: unknown) => void;
13
+ export declare const addLatestBcast: (ident: string, msg: string, data?: string | unknown) => void;
14
14
  export declare const getLatestBcasts: (now: Timestamp) => string | undefined;
@@ -54,6 +54,7 @@ declare const layers: {
54
54
  dustsm: Layer<NumberedMetric>;
55
55
  radar: Layer<NumberedMetric>;
56
56
  satellite: Layer<NumberedMetric>;
57
+ radarPlus: Layer<NumberedMetric>;
57
58
  gtco3: Layer<NumberedMetric>;
58
59
  pm2p5: Layer<NumberedMetric>;
59
60
  no2: Layer<NumberedMetric>;
@@ -74,5 +75,6 @@ declare const layers: {
74
75
  dfm10h: Layer<NumberedMetric>;
75
76
  turbulence: Layer<NumberedMetric>;
76
77
  icing: Layer<NumberedMetric>;
78
+ topoMap: Layer<undefined>;
77
79
  };
78
80
  export default layers;
@@ -12,7 +12,6 @@ export * as subscription from '../utils/subscription';
12
12
  export * as utils from '../utils/utils';
13
13
  export * as Calendar from '../weatherClasses/Calendar';
14
14
  export * as Color from '../weatherClasses/Color';
15
- export * as EcmwfAnalysisProduct from '../weatherClasses/EcmwfAnalysisProduct';
16
15
  export * as EcmwfProduct from '../weatherClasses/EcmwfProduct';
17
16
  export * as HrrrProducts from '../weatherClasses/HrrrProducts';
18
17
  export * as IconProducts from '../weatherClasses/IconProducts';
@@ -39,14 +38,12 @@ export * as detectDevice from '../services/detectDevice';
39
38
  export * as device from '../services/device';
40
39
  export * as deviceLogging from '../services/deviceLogging';
41
40
  export * as geolocation from '../services/geolocation';
42
- export { default as notifications } from '../services/notifications';
41
+ export * as notifications from '../services/notifications';
43
42
  export * as ogTags from '../services/ogTags';
44
43
  export * as params from '../services/params';
45
44
  export * as rootScope from '../services/rootScope';
46
- export * as showableErrorsService from '../services/showableErrorsService';
47
45
  export { default as store } from '../services/store';
48
46
  export * as trans from '../services/trans';
49
- export * as BottomTagPlugin from '../pluginSystem/BottomTagPlugin';
50
47
  export * as Plugin from '../pluginSystem/Plugin';
51
48
  export * as SveltePanePlugin from '../pluginSystem/SveltePanePlugin';
52
49
  export * as SveltePlugin from '../pluginSystem/SveltePlugin';
@@ -54,22 +51,10 @@ export * as TagPlugin from '../pluginSystem/TagPlugin';
54
51
  export * as WindowPlugin from '../pluginSystem/WindowPlugin';
55
52
  export { default as plugins } from '../pluginSystem/plugins';
56
53
  export * as pluginsCtrl from '../pluginSystem/pluginsCtrl';
57
- export * as Bar from '../uiClasses/Bar';
58
- export * as BindedBar from '../uiClasses/BindedBar';
59
- export * as BindedCheckbox from '../uiClasses/BindedCheckbox';
60
- export * as BindedSwitch from '../uiClasses/BindedSwitch';
61
54
  export * as BottomSlide from '../uiClasses/BottomSlide';
62
55
  export * as ClickHandler from '../uiClasses/ClickHandler';
63
56
  export * as Drag from '../uiClasses/Drag';
64
- export * as DraggableDiv from '../uiClasses/DraggableDiv';
65
- export * as GhostBox from '../uiClasses/GhostBox';
66
- export * as LongTap from '../uiClasses/LongTap';
67
- export * as MobileCalendar from '../uiClasses/MobileCalendar';
68
- export * as ProductSwitch from '../uiClasses/ProductSwitch';
69
- export * as Scrollable from '../uiClasses/Scrollable';
70
57
  export * as Swipe from '../uiClasses/Swipe';
71
- export * as Switch from '../uiClasses/Switch';
72
- export * as TimestampBar from '../uiClasses/TimestampBar';
73
58
  export * as Window from '../uiClasses/Window';
74
59
  export * as rhMessage from '../ui/rhMessage';
75
60
  export * as timeAnimation from '../ui/timeAnimation';
@@ -90,19 +75,18 @@ export { default as glTileRender } from '../render/glTileRender';
90
75
  export * as renderTile from '../render/renderTile';
91
76
  export * as tileLayer from '../render/tileLayerInstance';
92
77
  export { default as GlObj } from '../wgUtils/GlObj';
93
- export * as Favs from '../mapClasses/Favs';
94
78
  export { default as LabelsLayer } from '../mapClasses/LabelsLayer';
95
79
  export { default as LandMask } from '../mapClasses/LandMask';
96
80
  export { default as TileLayerMultiPatch } from '../mapClasses/TileLayerMultiPatch';
97
- export { default as cityLabels } from '../map/cityLabels';
81
+ export * as cityLabels from '../map/cityLabels';
98
82
  export * as map from '../map/map';
99
83
  export * as mapGlobeCtrl from '../map/mapGlobeCtrl';
100
84
  export * as picker from '../map/picker';
101
85
  export * as singleclick from '../map/singleclick';
102
- export { default as favs } from '../dummyModules/favs';
86
+ export * as log from '../dummyModules/log';
87
+ export * as promo from '../dummyModules/promo';
103
88
  export * as location from '../dummyModules/location';
104
- export { default as log } from '../dummyModules/log';
105
- export { default as promo } from '../dummyModules/promo';
106
89
  export * as router from '../dummyModules/router';
107
- export { default as seoParser } from '../dummyModules/seoParser';
90
+ export * as showableErrorsService from '../dummyModules/showableErrorsService';
91
+ export * as userFavs from '../dummyModules/userFavs';
108
92
  export { default as libHtml } from '../lib/libHtml';
@@ -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=\"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";
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--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--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--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=userId-__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,5 @@
1
+ import type { HttpOptions } from '@windy/http';
2
+ import type { LocationEntity } from '@windy/liveAlerts.types';
3
+ export declare function getLocationEntity(locationEntityId: string): Promise<LocationEntity>;
4
+ export declare function upsertLocationEntity(locationEntityId: string, request: Partial<LocationEntity>, options?: HttpOptions): Promise<LocationEntity>;
5
+ export declare function sendTestNotification(locationEntityId: string): Promise<void>;
@@ -0,0 +1,28 @@
1
+ import type { Platform } from '@windy/types';
2
+ export interface LocationEntityServices {
3
+ storms: {
4
+ enabled: boolean;
5
+ };
6
+ rain: {
7
+ enabled: boolean;
8
+ };
9
+ tc?: {
10
+ enabled: boolean;
11
+ };
12
+ cap?: {
13
+ enabled: boolean;
14
+ };
15
+ }
16
+ export type DistanceUnit = 'km' | 'mi' | 'NM';
17
+ export interface LocationEntity {
18
+ services: LocationEntityServices;
19
+ platform: Platform;
20
+ deviceToken: string;
21
+ language: string;
22
+ lat?: number;
23
+ locationEntityId?: string;
24
+ lon?: number;
25
+ units: {
26
+ distance: DistanceUnit;
27
+ };
28
+ }
@@ -0,0 +1 @@
1
+ export declare const loadArticlesOrWhatsNew: () => Promise<void>;
@@ -27,6 +27,11 @@ import type { ExternalPluginIdent } from '@windy/types.d';
27
27
  import type { PluginIdent } from '@windy/Plugin';
28
28
  import type { WindowPlugins } from '@windy/WindowPlugin';
29
29
  import type { PluginsOpenParams } from '@windy/plugin-params';
30
+ /**
31
+ * At what time, the search string was last time updated
32
+ * @param ovr
33
+ * @returns
34
+ */
30
35
  /**
31
36
  * Sets browser's description meta tag for purpose of SEO
32
37
  */
@@ -1,2 +1,5 @@
1
- import type { LogPaths } from '@windy/types.d';
1
+ import type { LogEvents, 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;
4
+ /** Logs an event that happens in Windy */
5
+ export declare const logEvent: (eventIdent: LogEvents, eventPath?: string) => 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,9 +36,11 @@ 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 errors from './utils/errors';
40
+ export * as IDB from './utils/IDB';
41
+ export * as idbInstances from './utils/idbInstances';
24
42
  export * as Calendar from './weatherClasses/Calendar';
25
43
  export * as Color from './weatherClasses/Color';
26
- export * as EcmwfAnalysisProduct from './weatherClasses/EcmwfAnalysisProduct';
27
44
  export * as EcmwfProduct from './weatherClasses/EcmwfProduct';
28
45
  export * as HrrrProducts from './weatherClasses/HrrrProducts';
29
46
  export * as IconProducts from './weatherClasses/IconProducts';
@@ -51,19 +68,20 @@ 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 liveAlerts from './services/liveAlerts';
72
+ export * as notifications from './services/notifications';
56
73
  export * as ogTags from './services/ogTags';
57
74
  export * as params from './services/params';
58
75
  export * as pois from './services/pois';
59
76
  export * as reverseName from './services/reverseName';
60
77
  export * as rootScope from './services/rootScope';
61
78
  export * as router from './services/router';
62
- export * as showableErrorsService from './services/showableErrorsService';
63
79
  export { default as store } from './services/store';
64
80
  export * as trans from './services/trans';
65
- export { default as userFavs } from './services/userFavs';
66
- export * as BottomTagPlugin from './pluginSystem/BottomTagPlugin';
81
+ export * as userFavs from './services/userFavs';
82
+ export * as userAlerts from './services/userAlerts';
83
+ export * as userConsent from './services/userConsent';
84
+ export * as user from './services/user';
67
85
  export * as Plugin from './pluginSystem/Plugin';
68
86
  export * as SveltePanePlugin from './pluginSystem/SveltePanePlugin';
69
87
  export * as SveltePlugin from './pluginSystem/SveltePlugin';
@@ -73,22 +91,10 @@ export * as WindowPlugin from './pluginSystem/WindowPlugin';
73
91
  export { default as plugins } from './pluginSystem/plugins';
74
92
  export * as pluginsCtrl from './pluginSystem/pluginsCtrl';
75
93
  export * as externalPlugins from './pluginSystem/externalPlugins';
76
- export * as Bar from './uiClasses/Bar';
77
- export * as BindedBar from './uiClasses/BindedBar';
78
- export * as BindedCheckbox from './uiClasses/BindedCheckbox';
79
- export * as BindedSwitch from './uiClasses/BindedSwitch';
80
94
  export * as BottomSlide from './uiClasses/BottomSlide';
81
95
  export * as ClickHandler from './uiClasses/ClickHandler';
82
96
  export * as Drag from './uiClasses/Drag';
83
- export * as DraggableDiv from './uiClasses/DraggableDiv';
84
- export * as GhostBox from './uiClasses/GhostBox';
85
- export * as LongTap from './uiClasses/LongTap';
86
- export * as MobileCalendar from './uiClasses/MobileCalendar';
87
- export * as ProductSwitch from './uiClasses/ProductSwitch';
88
- export * as Scrollable from './uiClasses/Scrollable';
89
97
  export * as Swipe from './uiClasses/Swipe';
90
- export * as Switch from './uiClasses/Switch';
91
- export * as TimestampBar from './uiClasses/TimestampBar';
92
98
  export * as Window from './uiClasses/Window';
93
99
  export * as components from './ui/components';
94
100
  export * as startupWeather from './ui/startupWeather';
@@ -99,9 +105,9 @@ export * as promo from './ui/promo';
99
105
  export * as query from './ui/query';
100
106
  export * as rhMessage from './ui/rhMessage';
101
107
  export * as timeAnimation from './ui/timeAnimation';
102
- export * as user from './ui/user';
103
108
  export * as visibility from './ui/visibility';
104
109
  export * as share from './ui/share';
110
+ export * as loadArticlesOrWhatsNew from './ui/loadArticlesOrWhatsNew';
105
111
  export * as DataTiler from './renderClasses/DataTiler';
106
112
  export * as Particles from './renderClasses/Particles';
107
113
  export * as Renderer from './renderClasses/Renderer';
@@ -118,12 +124,11 @@ export { default as glTileRender } from './render/glTileRender';
118
124
  export * as renderTile from './render/renderTile';
119
125
  export * as tileLayer from './render/tileLayerInstance';
120
126
  export { default as GlObj } from './wgUtils/GlObj';
121
- export * as Favs from './mapClasses/Favs';
122
127
  export { default as LabelsLayer } from './mapClasses/LabelsLayer';
123
128
  export { default as LandMask } from './mapClasses/LandMask';
124
129
  export { default as TileLayerMultiPatch } from './mapClasses/TileLayerMultiPatch';
125
130
  export * as baseMap from './map/baseMap';
126
- export { default as cityLabels } from './map/cityLabels';
131
+ export * as cityLabels from './map/cityLabels';
127
132
  export * as map from './map/map';
128
133
  export * as mapGlobeCtrl from './map/mapGlobeCtrl';
129
134
  export * as picker from './map/picker';
@@ -132,5 +137,9 @@ export * as mobile from './capacitor/mobile';
132
137
  export * as mobileUtils from './capacitor/mobileUtils';
133
138
  export * as nativeStorage from './capacitor/nativeStorage';
134
139
  export * as pushNotifications from './capacitor/pushNotifications';
135
- export * as seoParser from './dummyModules/seoParser';
140
+ export * as appsFlyer from './capacitor/appsFlyer';
141
+ export * as showableErrorsService from './capacitor/showableErrorsService';
136
142
  import './ui/patchAndPromoCtrl';
143
+ import './ui/storeLastPosition';
144
+ import './services/customColors';
145
+ import './services/compatibilityCheck';
@@ -18,15 +18,15 @@ export declare const overlay2product: {
18
18
  /**
19
19
  * From list of products deduplicates icon/iconEu, iconWaves/iconEuWaves
20
20
  */
21
- export declare const dedupeIcon: (productsList: Products[]) => Products[];
21
+ export declare const removeModelsFromSameGroup: (productsList: Products[]) => Products[];
22
22
  /**
23
23
  * Return particular icon related model based on rqrd and avbl models
24
24
  */
25
- export declare const getIconModel: (rqrdProduct: Products, avProducts: Products[]) => Products | null;
25
+ export declare const bestModelFromSameGroup: (rqrdProduct: Products, avProducts: Products[]) => Products | null;
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" | "ecmwfAifs" | "namConus" | "namHawaii" | "namAlaska" | "iconEu" | "iconD2" | "arome" | "aromeAntilles" | "aromeReunion" | "canHrdps" | "canRdwpsWaves" | "iconEuWaves" | "hrrrAlaska" | "hrrrConus" | "bomAccess" | "ukv" | "jmaMsm" | "jmaCwmWaves" | "mblue" : "icon" | "satellite" | "radar" | "drought" | "capAlerts" | "gfs" | "ecmwf" | "ecmwfAnalysis" | "ecmwfAifs" | "ecmwfWaves" | "gfsWaves" | "iconWaves" | "cams" | "efi" | "cmems" | "fireDanger" | "activeFires" | "nems" | "namConus" | "namHawaii" | "namAlaska" | "iconEu" | "iconD2" | "arome" | "aromeAntilles" | "aromeReunion" | "canHrdps" | "canRdwpsWaves" | "camsEu" | "iconEuWaves" | "hrrrAlaska" | "hrrrConus" | "bomAccess" | "ukv" | "jmaMsm" | "jmaCwmWaves" | "mblue">(latLon: T, pointFcts?: PT) => R[];
29
+ export declare const betterProducts: <T extends LatLon, PT extends boolean, R extends PT extends true ? "gfs" | "ecmwf" | "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" | "mblue" : "drought" | "radar" | "satellite" | "radarPlus" | "capAlerts" | "topoMap" | "gfs" | "ecmwf" | "ecmwfAnalysis" | "ecmwfWaves" | "gfsWaves" | "icon" | "cams" | "efi" | "cmems" | "fireDanger" | "activeFires" | "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" | "mblue">(latLon: T, pointFcts?: PT) => R[];
30
30
  /**
31
31
  * Return product string on a basis of overlay & wanted forecast model
32
32
  */
@@ -36,7 +36,9 @@ export declare const getProduct: (overlay: Overlays, rqrdProduct: Products) => P
36
36
  */
37
37
  export declare const getAllPointProducts: <T extends LatLon>(latLon: T) => PointProducts[];
38
38
  /**
39
- * Returns dedupped AIR products for point forecast in given location
39
+ * Returns deduped AIR products for point forecast in given location
40
40
  */
41
- export declare const getPointProducts: <T extends LatLon>(latLon: T) => Products[];
41
+ export declare const getPointProducts: <T extends LatLon>(latLon: T) => PointProducts[];
42
+ export declare const hasMoreProducts: (ovr: Layers | UsedOverlays) => boolean;
43
+ export declare const getDefaultProduct: (overlay: Overlays) => Products | undefined;
42
44
  export {};