mftsccs-browser 2.1.240-dev → 2.1.241-dev

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.
@@ -0,0 +1 @@
1
+ /*! https://mths.be/cssesc v3.0.0 by @mathias */
@@ -5,6 +5,7 @@ export declare class AccessTracker {
5
5
  private static nextSyncTime;
6
6
  static activateStatus: boolean;
7
7
  private static readonly accessData;
8
+ private static autoSyncInterval;
8
9
  /**
9
10
  * Increments the count for a specific conceptId.
10
11
  */
@@ -42,7 +43,11 @@ export declare class AccessTracker {
42
43
  * Starts auto-syncing to the server every specified time interval.
43
44
  * This will automatically call `syncToServer` every 5 minutes
44
45
  */
45
- private static startAutoSync;
46
+ static startAutoSync(): void;
47
+ /**
48
+ * Stops the access tracker auto-sync timer.
49
+ */
50
+ static stopAutoSync(): void;
46
51
  /**
47
52
  * Sync immediately called by setInterval when time to sync has arrived.
48
53
  */
@@ -1,5 +1,10 @@
1
- import { Concept, Connection } from "../app";
2
- export declare const broadcastChannel: BroadcastChannel;
1
+ import type { Concept, Connection } from "../app";
2
+ export declare const broadcastChannel: {
3
+ addEventListener(type: "message", listener: (event: MessageEvent) => void): void;
4
+ removeEventListener(type: "message", listener: (event: MessageEvent) => void): void;
5
+ postMessage(message: any): void;
6
+ close(): void;
7
+ };
3
8
  export interface InnerActions {
4
9
  concepts: Concept[];
5
10
  connections: Connection[];
@@ -16,6 +16,7 @@ export declare class BinaryTree {
16
16
  static root: Node | null;
17
17
  /** Primary data store: concept ID → Concept object */
18
18
  private static conceptMap;
19
+ private static normalizeId;
19
20
  /**
20
21
  * Low-level add — stores the node's key/value in the Map.
21
22
  * Kept for API compatibility (called internally by addConceptToTree).
@@ -1,4 +1,14 @@
1
1
  export declare class ApplicationMonitor {
2
+ private static globalErrorHandlersInitialized;
3
+ private static consoleErrorPatched;
4
+ private static errorEventListenerRegistered;
5
+ private static unhandledErrorListenerRegistered;
6
+ private static userInteractionListenersRegistered;
7
+ private static networkRequestsPatched;
8
+ private static performanceMetricsRegistered;
9
+ private static routeChangeListenersRegistered;
10
+ private static webSocketEventsPatched;
11
+ private static initialLoadTimeout;
2
12
  static initialize(): void;
3
13
  static initGlobalErrorHandlers(): void;
4
14
  static logCatchError(): void;
@@ -11,4 +21,5 @@ export declare class ApplicationMonitor {
11
21
  static logOnWindowLoad(): void;
12
22
  static logSample(): void;
13
23
  static logWebSocketEvents(): void;
24
+ private static isBrowser;
14
25
  }
@@ -17,11 +17,11 @@ export declare class Logger {
17
17
  * Automatically starts the auto-sync mechanism.
18
18
  * This is private and does not need external interaction.
19
19
  */
20
- private static startAutoSync;
20
+ static startAutoSync(): void;
21
21
  /**
22
22
  * Automatically stops the auto-sync mechanism when required.
23
23
  */
24
- private static stopAutoSync;
24
+ static stopAutoSync(): void;
25
25
  /**
26
26
  * Set the log level (e.g., "DEBUG", "INFO", "WARNING", "ERROR").
27
27
  */
@@ -2,5 +2,6 @@ type RequestHeader = Record<string, string>;
2
2
  export declare function GetRequestHeader(contentType?: string, Accept?: string): Promise<RequestHeader>;
3
3
  export declare function GetRequestHeaderWithAuthorization(contentType?: string, token?: string, Accept?: string): Promise<RequestHeader>;
4
4
  export declare function GetOnlyTokenHeader(): Promise<Headers>;
5
+ export declare function fetchWithAuthRetry(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
5
6
  export declare function getValidAccessToken(token?: string): Promise<string>;
6
7
  export {};
@@ -35,6 +35,27 @@ export declare class DependencyObserver {
35
35
  eventHandlers: {
36
36
  [key: string]: (event: Event) => void;
37
37
  };
38
+ /** Map of handler keys to actual browser event names. */
39
+ private eventNames;
40
+ /** Whether this observer has been disposed. */
41
+ protected isDisposed: boolean;
42
+ /**
43
+ * Registers a window listener and tracks enough metadata to remove it later.
44
+ * The key identifies the logical subscription; eventName is the CustomEvent name.
45
+ */
46
+ protected addTrackedEventListener(key: string | number, eventName: string | number, handler: (event: Event) => void): void;
47
+ /**
48
+ * Removes a previously tracked window listener by its logical key.
49
+ */
50
+ protected removeTrackedEventListener(key: string | number): void;
51
+ /**
52
+ * Hook for subclasses that maintain additional subscriptions.
53
+ */
54
+ protected onDispose(): void;
55
+ /**
56
+ * Removes all listeners owned by this observer.
57
+ */
58
+ dispose(): void;
38
59
  /**
39
60
  * Listens to changes for a specific concept type and updates subscribers when new concepts of that type are created.
40
61
  * @param id - The type concept ID to track
@@ -15,12 +15,16 @@ export declare class SearchLinkMultipleAllObservable extends DependencyObserver
15
15
  totalCount: number;
16
16
  /** Cleanup function for cache subscription */
17
17
  private unsubscribeCache;
18
+ /** Prevents duplicate async cache listener setup. */
19
+ private cacheSubscriptionStarted;
18
20
  /**
19
21
  * Creates a new schema query observable.
20
22
  * @param query - FreeschemaQuery object with search parameters
21
23
  * @param token - Authentication token
22
24
  */
23
25
  constructor(query: FreeschemaQuery, token: string);
26
+ private ensureCacheSubscription;
27
+ protected onDispose(): void;
24
28
  /**
25
29
  * Executes the query once without subscribing to updates.
26
30
  * @returns Formatted query results
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "2.1.240-dev",
3
+ "version": "2.1.241-dev",
4
4
  "environment": "production",
5
5
  "description": "Full Pack of concept and connection system",
6
6
  "main": "dist/main.bundle.js",