@ama-mfe/ng-utils 14.0.0-next.7 → 14.0.0-next.9

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/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { SafeResourceUrl } from '@angular/platform-browser';
4
4
  import { Logger } from '@o3r/logger';
5
5
  import { MessagePeerConfig, MessagePeerServiceType } from '@amadeus-it-group/microfrontends-angular';
6
6
  export { MessagePeerConfig as ConnectionConfig, MessagePeerService as ConnectionService } from '@amadeus-it-group/microfrontends-angular';
7
- import { HistoryMessage, HistoryV1_0, NavigationMessage, NavigationV1_0, ResizeMessage, ResizeV1_0, ThemeMessage, ThemeV1_0, ThemeStructure } from '@ama-mfe/messages';
7
+ import { UserActivityMessage, HistoryMessage, HistoryV1_0, NavigationMessage, NavigationV1_0, ResizeMessage, ResizeV1_0, ThemeMessage, ThemeV1_0, ThemeStructure, UserActivityEventType, UserActivityMessageV1_0 } from '@ama-mfe/messages';
8
8
  import { VersionedMessage, RoutedMessage, PeerConnectionOptions } from '@amadeus-it-group/microfrontends';
9
9
  import * as rxjs from 'rxjs';
10
10
 
@@ -99,6 +99,12 @@ declare const isErrorMessage: (message: any) => message is VersionedMessage & {
99
99
  type: typeof ERROR_MESSAGE_TYPE;
100
100
  } & ErrorContent;
101
101
 
102
+ /**
103
+ * Type guard to check if a message is a user activity message
104
+ * @param message The message to check
105
+ */
106
+ declare function isUserActivityMessage(message: unknown): message is UserActivityMessage;
107
+
102
108
  /**
103
109
  * Use the message payload to execute an action based on message type
104
110
  * @param message message to consume
@@ -761,6 +767,297 @@ declare class ThemeProducerService implements MessageProducer<ThemeMessage> {
761
767
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeProducerService>;
762
768
  }
763
769
 
770
+ /**
771
+ * Information about user activity received from another context
772
+ */
773
+ interface ActivityInfo {
774
+ /** The channel ID (source ID) that sent the activity */
775
+ channelId: string;
776
+ /** The type of activity event */
777
+ eventType: string;
778
+ /** Timestamp when the activity occurred */
779
+ timestamp: number;
780
+ }
781
+ /**
782
+ * Configuration options for the activity producer service
783
+ */
784
+ interface ActivityProducerConfig {
785
+ /**
786
+ * Minimum interval in milliseconds between activity messages sent to the consumer.
787
+ * When multiple events occur within this interval, only the first one triggers a message.
788
+ * This prevents flooding the communication channel with too many messages.
789
+ */
790
+ throttleMs: number;
791
+ /**
792
+ * Optional filter function to determine if an event should be broadcast to the host(shell) app.
793
+ * Return true to broadcast the event, false to ignore it.
794
+ * Useful for filtering out events that occur on specific elements (e.g., iframes handled separately).
795
+ * @param event The DOM event that triggered the activity
796
+ * @returns Whether the event should be broadcast
797
+ */
798
+ shouldBroadcast?: (event: Event) => boolean;
799
+ /**
800
+ * Enable tracking of nested iframes. When enabled, the service will detect when focus
801
+ * moves to an iframe within the document and send periodic activity signals while
802
+ * the iframe has focus. This is useful for modules that contain iframes whose content
803
+ * cannot be modified to include activity tracking.
804
+ */
805
+ trackNestedIframes?: boolean;
806
+ /**
807
+ * Interval in milliseconds for polling document.activeElement to detect iframe focus.
808
+ * Only used when trackNestedIframes is true.
809
+ * @default 1000
810
+ */
811
+ nestedIframePollIntervalMs?: number;
812
+ /**
813
+ * Interval in milliseconds for sending activity signals to the host(shell) app while a nested iframe has focus.
814
+ * Only used when trackNestedIframes is true.
815
+ * @default 30000
816
+ */
817
+ nestedIframeActivityEmitIntervalMs?: number;
818
+ /**
819
+ * Throttle time in milliseconds for high-frequency events (scroll, mousemove).
820
+ * These events are throttled to avoid performance issues.
821
+ * @default 300
822
+ */
823
+ highFrequencyThrottleMs?: number;
824
+ }
825
+ /**
826
+ * Configuration for the iframe activity tracker
827
+ */
828
+ interface IframeActivityTrackerConfig {
829
+ /**
830
+ * Interval in milliseconds for polling document.activeElement to detect iframe focus.
831
+ * @default 1000
832
+ */
833
+ pollIntervalMs?: number;
834
+ /**
835
+ * Interval in milliseconds for sending activity signals to the host(shell) app while an iframe has focus.
836
+ * @default 30000
837
+ */
838
+ activityIntervalMs?: number;
839
+ /**
840
+ * Callback to invoke when activity is detected
841
+ */
842
+ onActivity: () => void;
843
+ }
844
+
845
+ /**
846
+ * DOM events that indicate user activity
847
+ */
848
+ declare const ACTIVITY_EVENTS: readonly Exclude<UserActivityEventType, 'visibilitychange'>[];
849
+ /**
850
+ * Custom activity event type for iframe interactions.
851
+ * Emitted programmatically when an iframe gains focus, not from a DOM event listener.
852
+ */
853
+ declare const IFRAME_INTERACTION_EVENT: UserActivityEventType;
854
+ /**
855
+ * Custom activity event type for visibility changes.
856
+ * Emitted programmatically when the document becomes visible, not from a DOM event listener.
857
+ */
858
+ declare const VISIBILITY_CHANGE_EVENT: UserActivityEventType;
859
+ /**
860
+ * High-frequency events that require throttling to avoid performance issues
861
+ */
862
+ declare const HIGH_FREQUENCY_EVENTS: readonly UserActivityEventType[];
863
+ /**
864
+ * Default configuration values for the ActivityProducerService
865
+ */
866
+ declare const DEFAULT_ACTIVITY_PRODUCER_CONFIG: Readonly<ActivityProducerConfig>;
867
+
868
+ /**
869
+ * Generic service that tracks user activity and sends messages.
870
+ * Can be configured for different contexts (cockpit or modules) via start() method parameter.
871
+ */
872
+ declare class ActivityProducerService implements MessageProducer<UserActivityMessage> {
873
+ private readonly messageService;
874
+ private readonly destroyRef;
875
+ private readonly iframeActivityTracker;
876
+ private readonly logger;
877
+ /**
878
+ * Timestamp of the last sent activity message
879
+ */
880
+ private lastSentTimestamp;
881
+ /**
882
+ * Bound event listeners for cleanup
883
+ */
884
+ private readonly boundListeners;
885
+ /**
886
+ * Last emission timestamps for throttled high-frequency events
887
+ */
888
+ private readonly lastEmitTimestamps;
889
+ /**
890
+ * Whether the service has been started
891
+ */
892
+ private started;
893
+ /**
894
+ * Signal that emits local activity information.
895
+ * This allows consumers to react to activity detected by this producer.
896
+ */
897
+ private readonly localActivityWritable;
898
+ /**
899
+ * Read-only signal containing the latest local activity info.
900
+ * Use this signal to react to locally detected activity.
901
+ */
902
+ readonly localActivity: i0.Signal<ActivityInfo | undefined>;
903
+ /**
904
+ * @inheritdoc
905
+ */
906
+ readonly types = "user_activity";
907
+ constructor();
908
+ /**
909
+ * Handles high-frequency events by applying a per-eventType throttle before calling onActivity.
910
+ *
911
+ * Difference with onActivity:
912
+ * - onActivityThrottled limits how often a given high-frequency event type (e.g. scroll) is processed
913
+ * (based on highFrequencyThrottleMs and lastEmitTimestamps)
914
+ * - onActivity updates the local activity signal and applies the global message throttle
915
+ * (based on global throttleMs and lastSentTimestamp)
916
+ * @param eventType The type of activity event that occurred
917
+ * @param configObject
918
+ */
919
+ private onActivityThrottled;
920
+ /**
921
+ * Handles activity by sending a throttled message and emitting to local signal.
922
+ * @param eventType The type of activity event that occurred
923
+ * @param configObject
924
+ */
925
+ private onActivity;
926
+ /**
927
+ * Sends an activity message.
928
+ * @param eventType The type of activity event
929
+ * @param timestamp The timestamp of the event
930
+ */
931
+ private sendActivityMessage;
932
+ /**
933
+ * @inheritdoc
934
+ */
935
+ handleError(message: ErrorContent<UserActivityMessage>): void;
936
+ /**
937
+ * Starts observing user activity events.
938
+ * When activity is detected, it sends a throttled message.
939
+ * Event listeners are attached after the next render to ensure DOM is ready.
940
+ * @param config Configuration for the activity producer
941
+ */
942
+ start(config?: Partial<ActivityProducerConfig>): void;
943
+ /**
944
+ * Stops observing user activity events.
945
+ */
946
+ stop(): void;
947
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActivityProducerService, never>;
948
+ static ɵprov: i0.ɵɵInjectableDeclaration<ActivityProducerService>;
949
+ }
950
+
951
+ /**
952
+ * Generic service that consumes user activity messages.
953
+ * Can be used in both shell (to receive from modules) and modules (to receive from shell).
954
+ */
955
+ declare class ActivityConsumerService implements BasicMessageConsumer<UserActivityMessageV1_0> {
956
+ private readonly consumerManagerService;
957
+ /**
958
+ * Signal containing the latest activity info
959
+ */
960
+ private readonly latestReceivedActivityWritable;
961
+ /**
962
+ * Read-only signal containing the latest activity info received from other peers via the message protocol.
963
+ * Access the timestamp via latestReceivedActivity()?.timestamp
964
+ */
965
+ readonly latestReceivedActivity: i0.Signal<ActivityInfo | undefined>;
966
+ /**
967
+ * @inheritdoc
968
+ */
969
+ readonly type = "user_activity";
970
+ /**
971
+ * @inheritdoc
972
+ */
973
+ readonly supportedVersions: Record<string, (message: RoutedMessage<UserActivityMessageV1_0>) => void>;
974
+ /**
975
+ * Starts the activity consumer service by registering it with the consumer manager.
976
+ */
977
+ start(): void;
978
+ /**
979
+ * Stops the activity consumer service by unregistering it from the consumer manager.
980
+ */
981
+ stop(): void;
982
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActivityConsumerService, never>;
983
+ static ɵprov: i0.ɵɵInjectableDeclaration<ActivityConsumerService>;
984
+ }
985
+
986
+ /**
987
+ * Service that tracks user activity within nested iframes.
988
+ *
989
+ * Polls document.activeElement frequently to detect when an iframe has focus.
990
+ * When an iframe gains focus, emits immediately and then at the configured interval.
991
+ * When focus leaves the iframe, it stops emitting.
992
+ *
993
+ * This is needed because cross-origin iframes don't fire focus/blur events
994
+ * that bubble to the parent, and the regular activity tracker can't detect
995
+ * user interactions inside iframes.
996
+ */
997
+ declare class IframeActivityTrackerService {
998
+ /**
999
+ * Interval ID for polling activeElement
1000
+ */
1001
+ private pollIntervalId?;
1002
+ /**
1003
+ * Interval ID for emitting activity at configured interval
1004
+ */
1005
+ private activityIntervalId?;
1006
+ /**
1007
+ * Current configuration
1008
+ */
1009
+ private config?;
1010
+ /**
1011
+ * Bound visibility change handler for cleanup
1012
+ */
1013
+ private readonly visibilityChangeHandler;
1014
+ /**
1015
+ * Whether the service has been started
1016
+ */
1017
+ private get started();
1018
+ /**
1019
+ * Whether we are currently tracking iframe activity (iframe had focus on last poll)
1020
+ */
1021
+ private get isTrackingIframeActivity();
1022
+ /**
1023
+ * Polls document.activeElement to detect iframe focus changes.
1024
+ * When iframe gains focus: emit immediately and start activity interval.
1025
+ * When iframe loses focus: stop activity interval.
1026
+ */
1027
+ private checkActiveElement;
1028
+ /**
1029
+ * Handles visibility change events to pause/resume polling when tab visibility changes.
1030
+ */
1031
+ private handleVisibilityChange;
1032
+ /**
1033
+ * Starts polling for active element changes.
1034
+ */
1035
+ private startPolling;
1036
+ /**
1037
+ * Stops polling for active element changes.
1038
+ */
1039
+ private stopPolling;
1040
+ /**
1041
+ * Starts the activity emission interval.
1042
+ */
1043
+ private startActivityInterval;
1044
+ /**
1045
+ * Stops the activity emission interval.
1046
+ */
1047
+ private stopActivityInterval;
1048
+ /**
1049
+ * Starts tracking nested iframes within the document.
1050
+ * @param config Configuration for the tracker
1051
+ */
1052
+ start(config: IframeActivityTrackerConfig): void;
1053
+ /**
1054
+ * Stops tracking nested iframes and cleans up resources.
1055
+ */
1056
+ stop(): void;
1057
+ static ɵfac: i0.ɵɵFactoryDeclaration<IframeActivityTrackerService, never>;
1058
+ static ɵprov: i0.ɵɵInjectableDeclaration<IframeActivityTrackerService>;
1059
+ }
1060
+
764
1061
  /**
765
1062
  * A constant array of known message types and their versions.
766
1063
  */
@@ -779,6 +1076,6 @@ declare function getDefaultClientEndpointStartOptions(): PeerConnectionOptions;
779
1076
  */
780
1077
  declare function isEmbedded(windowParam?: Window): boolean;
781
1078
 
782
- export { ApplyTheme, ConnectDirective, ConsumerManagerService, ERROR_MESSAGE_TYPE, HistoryConsumerService, HostInfoPipe, KNOWN_MESSAGES, MFE_HOST_APPLICATION_ID_PARAM, MFE_HOST_URL_PARAM, MFE_MODULE_APPLICATION_ID_PARAM, NavigationConsumerService, ProducerManagerService, ResizeConsumerService, ResizeService, RestoreRoute, RouteMemorizeDirective, RouteMemorizeService, RoutingService, ScalableDirective, THEME_QUERY_PARAM_NAME, THEME_URL_SUFFIX, ThemeConsumerService, ThemeProducerService, applyInitialTheme, applyTheme, downloadApplicationThemeCss, getAvailableConsumers, getDefaultClientEndpointStartOptions, getHostInfo, getStyle, hostQueryParams, isEmbedded, isErrorMessage, persistHostInfo, provideConnection, provideHistoryOverrides, registerConsumer, registerProducer, sendError };
783
- export type { BasicMessageConsumer, ConnectionConfigOptions, ErrorContent, ErrorMessage, ErrorMessageV1_0, ErrorReason, MFEHostInformation, MessageCallback, MessageConsumer, MessageProducer, MessageVersions, RestoreRouteOptions, RoutingServiceOptions, StyleHelperOptions };
1079
+ export { ACTIVITY_EVENTS, ActivityConsumerService, ActivityProducerService, ApplyTheme, ConnectDirective, ConsumerManagerService, DEFAULT_ACTIVITY_PRODUCER_CONFIG, ERROR_MESSAGE_TYPE, HIGH_FREQUENCY_EVENTS, HistoryConsumerService, HostInfoPipe, IFRAME_INTERACTION_EVENT, IframeActivityTrackerService, KNOWN_MESSAGES, MFE_HOST_APPLICATION_ID_PARAM, MFE_HOST_URL_PARAM, MFE_MODULE_APPLICATION_ID_PARAM, NavigationConsumerService, ProducerManagerService, ResizeConsumerService, ResizeService, RestoreRoute, RouteMemorizeDirective, RouteMemorizeService, RoutingService, ScalableDirective, THEME_QUERY_PARAM_NAME, THEME_URL_SUFFIX, ThemeConsumerService, ThemeProducerService, VISIBILITY_CHANGE_EVENT, applyInitialTheme, applyTheme, downloadApplicationThemeCss, getAvailableConsumers, getDefaultClientEndpointStartOptions, getHostInfo, getStyle, hostQueryParams, isEmbedded, isErrorMessage, isUserActivityMessage, persistHostInfo, provideConnection, provideHistoryOverrides, registerConsumer, registerProducer, sendError };
1080
+ export type { ActivityInfo, ActivityProducerConfig, BasicMessageConsumer, ConnectionConfigOptions, ErrorContent, ErrorMessage, ErrorMessageV1_0, ErrorReason, IframeActivityTrackerConfig, MFEHostInformation, MessageCallback, MessageConsumer, MessageProducer, MessageVersions, RestoreRouteOptions, RoutingServiceOptions, StyleHelperOptions };
784
1081
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../src/connect/connect-directive.ts","../src/connect/connect-providers.ts","../src/messages/available-sender.ts","../src/messages/error/base.ts","../src/messages/error/error-versions.ts","../src/messages/error/index.ts","../src/messages/error-sender.ts","../src/managers/interfaces.ts","../src/managers/consumer-manager-service.ts","../src/managers/producer-manager-service.ts","../src/managers/utils.ts","../src/history/history-consumer-service.ts","../src/history/history-providers.ts","../src/host-info/host-info.ts","../src/host-info/host-info-pipe.ts","../src/navigation/navigation-consumer-service.ts","../src/navigation/restore-route-pipe.ts","../src/navigation/route-memorize/route-memorize-directive.ts","../src/navigation/route-memorize/route-memorize-service.ts","../src/navigation/routing-service.ts","../src/resize/resize-consumer-service.ts","../src/resize/resize-producer-service.ts","../src/resize/scalable-directive.ts","../src/theme/apply-theme-pipe.ts","../src/theme/theme-consumer-service.ts","../src/theme/theme-helpers.ts","../src/theme/theme-producer-service.ts","../src/utils.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_angular_core","ConnectionConfig"],"mappings":";;;;;;;;;;AAqBA,cAAA,gBAAA;AAKE;;AAEG;AACI,aAAOA,EAAA,CAAA,WAAA;AAEd;;AAEG;AACI,SAAGA,EAAA,CAAA,WAAA,CAAA,eAAA;AAEV;;AAEG;AACH,mBAAA,eAAA;AAKA;AACA;AACA;AAEA;;;;AAmCD;;ACtDD;AACM,UAAA,uBAAA,SAAA,IAAA,CAAAC,iBAAA;;;;;AAKL;AAED;;;AAGG;AACH,iBAAA,iBAAA,2BAAA,uBAAA,GAAmFD,EAAA,CAAA,oBAAA;;AClCnF;;;;AAIG;AACH,cAAA,qBAAA,cAAA,oBAAA;;;;;;;;;ACRA;AACA,cAAA,kBAAA;AAEA;;AAEG;AACG,KAAA,WAAA;AAEN;;;AAGG;;;;;;AAMF;;ACdD;AACM,UAAA,gBAAA,WAAA,gBAAA,GAAA,gBAAA,UAAA,gBAAA,EAAA,YAAA;;;;;AAKL;;ACND;AACM,KAAA,YAAA,GAAA,gBAAA;;ACIN;;;;AAIG;AACH,cAAA,SAAA,SAAA,sBAAA,gBAAA,YAAA;AAQA;;;AAGG;AAEH,cAAA,cAAA,+BAAA,gBAAA;;AAA+G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A,iBAAA,WAAA,kBAAA,GAAA,OAAA,CAAA,oBAAA;;ACrCA;;AAEG;AACH,cAAA,oBAAA,YAAA,eAAA,CAAA,YAAA;AAIE;AACA;;AAEA;AAEA;;AAEA,2BAA4BA,EAAA,CAAA,MAAA,CAAA,cAAA;AAE5B;;AAEG;AACH;;AA+CA;;;AAGG;;AAYH;;AAEG;AACI;AAIP;;AAEG;;;;AAKJ;;ACrHD;;AAEG;AACH,cAAA,cAAA;;;;AAOA;;;AAGG;AACH,iBAAA,oCAAA,IAAA,qBAAA;AAWA;;;AAGG;AACH,iBAAA,UAAA,eAAA,MAAA;;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../src/connect/connect-directive.ts","../src/connect/connect-providers.ts","../src/messages/available-sender.ts","../src/messages/error/base.ts","../src/messages/error/error-versions.ts","../src/messages/error/index.ts","../src/messages/error-sender.ts","../src/messages/user-activity.ts","../src/managers/interfaces.ts","../src/managers/consumer-manager-service.ts","../src/managers/producer-manager-service.ts","../src/managers/utils.ts","../src/history/history-consumer-service.ts","../src/history/history-providers.ts","../src/host-info/host-info.ts","../src/host-info/host-info-pipe.ts","../src/navigation/navigation-consumer-service.ts","../src/navigation/restore-route-pipe.ts","../src/navigation/route-memorize/route-memorize-directive.ts","../src/navigation/route-memorize/route-memorize-service.ts","../src/navigation/routing-service.ts","../src/resize/resize-consumer-service.ts","../src/resize/resize-producer-service.ts","../src/resize/scalable-directive.ts","../src/theme/apply-theme-pipe.ts","../src/theme/theme-consumer-service.ts","../src/theme/theme-helpers.ts","../src/theme/theme-producer-service.ts","../src/user-activity/interfaces.ts","../src/user-activity/config.ts","../src/user-activity/activity-producer.service.ts","../src/user-activity/activity-consumer.service.ts","../src/user-activity/iframe-activity-tracker.service.ts","../src/utils.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_angular_core","ConnectionConfig"],"mappings":";;;;;;;;;;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,iBAAA,oCAAA,IAAA,qBAAA;AAWA;;;AAGG;AACH,iBAAA,UAAA,eAAA,MAAA;;;;"}
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "name": "@ama-mfe/ng-utils",
3
- "version": "14.0.0-next.7",
3
+ "version": "14.0.0-next.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "peerDependencies": {
8
- "@ama-mfe/messages": "~14.0.0-next.7",
9
- "@amadeus-it-group/microfrontends": "0.0.9",
10
- "@amadeus-it-group/microfrontends-angular": "0.0.9",
8
+ "@ama-mfe/messages": "~14.0.0-next.9",
9
+ "@amadeus-it-group/microfrontends": "0.0.10",
10
+ "@amadeus-it-group/microfrontends-angular": "0.0.10",
11
11
  "@angular-devkit/core": "^20.0.0",
12
12
  "@angular-devkit/schematics": "^20.0.0",
13
13
  "@angular/common": "^20.0.0",
14
14
  "@angular/core": "^20.0.0",
15
15
  "@angular/platform-browser": "^20.0.0",
16
16
  "@angular/router": "^20.0.0",
17
- "@o3r/logger": "~14.0.0-next.7",
18
- "@o3r/schematics": "~14.0.0-next.7",
17
+ "@o3r/logger": "~14.0.0-next.9",
18
+ "@o3r/schematics": "~14.0.0-next.9",
19
19
  "rxjs": "^7.8.1",
20
- "type-fest": "^4.30.1"
20
+ "type-fest": "^5.3.1"
21
21
  },
22
22
  "dependencies": {
23
- "@amadeus-it-group/microfrontends": "0.0.9",
24
- "@amadeus-it-group/microfrontends-angular": "0.0.9",
25
- "@o3r/logger": "~14.0.0-next.7",
26
- "@o3r/schematics": "~14.0.0-next.7",
23
+ "@amadeus-it-group/microfrontends": "0.0.10",
24
+ "@amadeus-it-group/microfrontends-angular": "0.0.10",
25
+ "@o3r/logger": "~14.0.0-next.9",
26
+ "@o3r/schematics": "~14.0.0-next.9",
27
27
  "tslib": "^2.6.2"
28
28
  },
29
29
  "sideEffects": false,