mftsccs-browser 2.2.9-beta → 2.2.11-beta

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.
@@ -1,4 +1 @@
1
- /*!
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md.
4
- */
1
+ /*! https://mths.be/cssesc v3.0.0 by @mathias */
@@ -0,0 +1 @@
1
+ export declare function GetImageApi(imageName: string): Promise<ReadableStream<Uint8Array<ArrayBuffer>> | null | undefined>;
@@ -1 +1 @@
1
- export declare function LoginToBackend(email: string, password: string): Promise<any>;
1
+ export declare function LoginToBackend(email: string, password: string, application?: string): Promise<any>;
@@ -5,3 +5,4 @@ export declare const DATAIDDATE = 4;
5
5
  export declare const RAW = 5;
6
6
  export declare const ALLID = 6;
7
7
  export declare const LISTNORMAL = 7;
8
+ export declare const DATAV2 = 8;
@@ -8,6 +8,7 @@ export declare class BaseUrl {
8
8
  static MQTT_CONNECTION: any;
9
9
  static BASE_APPLICATION: string;
10
10
  static DOCUMENTATION_WIDGET: number;
11
+ static isNearestCache: boolean;
11
12
  static ACCESS_CONTROL_BASE_URL: string;
12
13
  static FLAGS: any;
13
14
  static BASE_RANDOMIZER: number;
@@ -35,6 +36,7 @@ export declare class BaseUrl {
35
36
  static GetSuggestedConcepts(): string;
36
37
  static GetSuggestedConnections(): string;
37
38
  static PostLogger(): string;
39
+ static LogHealth(): string;
38
40
  static GetAllPrefetchConnectionsUrl(): string;
39
41
  static GetAllLinkerConnectionOfConceptUrl(): string;
40
42
  static GetAllLinkerConnectionToConceptUrl(): string;
@@ -69,6 +71,7 @@ export declare class BaseUrl {
69
71
  static DeleteTheConnectionBulkUrl(): string;
70
72
  static FreeschemaQueryUrl(): string;
71
73
  static uploadImageUrl(): string;
74
+ static uploadImageUrlWithSmall(): string;
72
75
  static uploadFileUrl(): string;
73
76
  static sendMail(): string;
74
77
  static sendBulkMail(): string;
@@ -76,4 +79,5 @@ export declare class BaseUrl {
76
79
  static getLatestWidgetData(): string;
77
80
  static getConnectionsByTypes(): string;
78
81
  static CreatePrototypeUrl(): string;
82
+ static GetCachedImage(ImageName: string): string;
79
83
  }
@@ -1,4 +1,5 @@
1
1
  export declare class TokenStorage {
2
2
  static BearerAccessToken: string;
3
3
  static sessionId: number;
4
+ static setSession(sessionId: any): void;
4
5
  }
@@ -1,4 +1,7 @@
1
1
  export declare class Logger {
2
+ private static isLoggerActive;
3
+ private static lastCheck;
4
+ private static checkInterval;
2
5
  private static logLevel;
3
6
  private static packageLogsData;
4
7
  private static applicationLogsData;
@@ -40,6 +43,7 @@ export declare class Logger {
40
43
  static logfunction(myFunction: string, ...args: any[]): any;
41
44
  static logError(startTime: number, userId: string | number, operationType?: "read" | "create" | "update" | "delete" | "search", requestFrom?: string, requestIP?: string, responseStatus?: number, responseData?: any, functionName?: string, functionParameters?: any[], userAgent?: string, conceptsUsed?: string[]): void;
42
45
  static logApplication(level: string, message: string, data?: any): void;
46
+ static checkLoggerServerStatus(): Promise<void>;
43
47
  /**
44
48
  * Helper method to send logs to the server.
45
49
  */
@@ -156,6 +156,16 @@ export declare class AccessControlService {
156
156
  enable: boolean;
157
157
  connectionTypeId?: number;
158
158
  }): Promise<any>;
159
+ /**
160
+ * Sets access inheritance for multiple concepts in bulk.
161
+ */
162
+ static setAccessInheritanceBulk(request: {
163
+ items: Array<{
164
+ mainConceptId: number;
165
+ connectionTypeIds: number[];
166
+ }>;
167
+ enable: boolean;
168
+ }): Promise<any>;
159
169
  /**
160
170
  * Gets the status of access inheritance for a concept.
161
171
  */
@@ -0,0 +1,4 @@
1
+ import { Connection } from "../../app";
2
+ export declare function FormatFunctionDataV2(connections: Connection[], compositionData?: Record<number, any>, reverse?: number[]): Promise<Record<number, any>>;
3
+ export declare function FormatFunctionDataForDataV2(connections: Connection[], compositionData?: Record<number, any>, reverse?: number[]): Promise<Record<number, any>>;
4
+ export declare function FormatFromConnectionsAlteredArrayExternalV2(connections: Connection[], compositionData: Record<number, any>, mainComposition: number[], reverse: number[] | undefined, CountDictionary: Record<number, any>): Promise<any[]>;
@@ -79,3 +79,4 @@ export declare function formatConnectionsJustId(linkers: number[], conceptIds: n
79
79
  * @returns
80
80
  */
81
81
  export declare function formatConnectionsDataId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
82
+ export declare function formatConnectionsV2(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
@@ -17,6 +17,13 @@ export declare function uploadAttachment(file: File, token?: string): Promise<{
17
17
  * @returns JSON | string | null
18
18
  */
19
19
  export declare function uploadImage(body: FormData, token?: string): Promise<any>;
20
+ /**
21
+ * Method to upload image to server
22
+ * @param body FormData
23
+ * @param token string?
24
+ * @returns JSON | string | null
25
+ */
26
+ export declare function uploadImageV2(body: FormData, token?: string): Promise<any>;
20
27
  /**
21
28
  * Method to upload file to server
22
29
  * @param body FormData
@@ -0,0 +1,14 @@
1
+ /**
2
+ *
3
+ * @param url this is the url of the image that you have. This image will be cached in the cache server
4
+ * @param format this is the format it can be either normal , small, by default it is normal
5
+ * @returns
6
+ */
7
+ export declare function GetFreeschemaImage(url: string, format?: string): Promise<any>;
8
+ /**
9
+ *
10
+ * @param url this is the url of the image that you have. This image will be cached in the cache server
11
+ * @param format this is the format it can be either normal , small, by default it is normal
12
+ * @returns
13
+ */
14
+ export declare function GetFreeschemaImageUrl(url: string, format?: string): string;
@@ -0,0 +1 @@
1
+ export declare function normalizeCSS(cssString: string): Promise<string | null>;
@@ -1,4 +1,4 @@
1
- import { BuilderStatefulWidget, WidgetTree } from "../app";
1
+ import { BuilderStatefulWidget, StatefulWidget, WidgetTree } from "../app";
2
2
  export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<void>;
3
3
  export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
4
4
  export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
@@ -19,7 +19,8 @@ export declare function getWidgetBulkFromId(widgetId: number, visitedWidgets: nu
19
19
  * @returns the widgetree with widgets attached inside of it.
20
20
  * Also this will add the tree to the dom.
21
21
  */
22
- export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, props?: any, state?: any): Promise<BuilderStatefulWidget>;
22
+ export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, props?: any, state?: any, parentWidget?: StatefulWidget | null): Promise<BuilderStatefulWidget>;
23
+ export declare function makeShallow(input: any): any;
23
24
  /**
24
25
  *
25
26
  * @param tree Widget tree from getWidgetFromId(widgetId);
@@ -27,7 +28,7 @@ export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElemen
27
28
  * @returns the widgetree with widgets attached inside of it.
28
29
  * Also this will add the tree to the dom.
29
30
  */
30
- export declare function convertWidgetTreeToWidgetWithWrapper(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, state?: object, isInDevelopment?: boolean): Promise<BuilderStatefulWidget>;
31
+ export declare function convertWidgetTreeToWidgetWithWrapper(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, state?: object, isInDevelopment?: boolean, parentWidget?: StatefulWidget | null): Promise<BuilderStatefulWidget>;
31
32
  export declare function unwrapContainers(parentElement: HTMLElement, selector: string): Promise<void>;
32
33
  /**
33
34
  * Opens documentation modal
@@ -19,6 +19,7 @@ export declare class StatefulWidget extends BaseWidget {
19
19
  */
20
20
  childWidgets: any;
21
21
  childWidgetElement: any;
22
+ parentWidget: any;
22
23
  /**
23
24
  * store widget state datas to pass through child widgets
24
25
  */
@@ -27,7 +27,7 @@ export { GetConnectionById } from './Services/GetConnections';
27
27
  export { MakeTheTimestamp } from './Services/MakeTheTimestamp';
28
28
  export { RecursiveSearchApi, RecursiveSearchApiWithInternalConnections, RecursiveSearchApiRaw, RecursiveSearchApiRawFullLinker, RecursiveSearchApiNewRawFullLinker } from './Api/RecursiveSearch';
29
29
  export { GetCompositionBulkWithDataId, GetCompositionFromConnectionsWithDataIdFromConnections, GetCompositionFromConnectionsWithIndexFromConnections, GetCompositionBulk, GetCompositionFromConnectionsWithDataId } from './Services/GetCompositionBulk';
30
- export { uploadAttachment, uploadFile, uploadImage, validDocumentFormats, validImageFormats } from './Services/Upload';
30
+ export { uploadAttachment, uploadFile, uploadImage, uploadImageV2, validDocumentFormats, validImageFormats } from './Services/Upload';
31
31
  export { GetConceptBulk } from './Api/GetConceptBulk';
32
32
  export { GetConnectionBulk } from './Api/GetConnectionBulk';
33
33
  export { GetAllConnectionsOfCompositionBulk } from './Api/GetAllConnectionsOfCompositionBulk';
@@ -69,7 +69,7 @@ export { GetCompositionWithIdAndDateFromMemory, GetCompositionFromMemoryWithConn
69
69
  export { GetConceptByCharacterAndType } from './Api/GetConceptByCharacterAndType';
70
70
  export { GetConnectionDataPrefetch } from './Services/GetCompositionBulk';
71
71
  export { FormatFromConnectionsAltered } from './Services/Search/SearchLinkMultiple';
72
- export { NORMAL, JUSTDATA, DATAID, DATAIDDATE, RAW, ALLID, LISTNORMAL } from './Constants/FormatConstants';
72
+ export { NORMAL, JUSTDATA, DATAID, DATAIDDATE, RAW, ALLID, LISTNORMAL, DATAV2 } from './Constants/FormatConstants';
73
73
  export { PRIVATE, PUBLIC, ADMIN } from './Constants/AccessConstants';
74
74
  export { SearchWithTypeAndLinkerApi } from './Api/Search/SearchWithTypeAndLinker';
75
75
  export { DependencyObserver } from './WrapperFunctions/DepenedencyObserver';
@@ -80,6 +80,8 @@ export { SearchWithTypeAndLinker } from './Services/Search/SearchWithTypeAndLink
80
80
  export { GetLinkListener } from './WrapperFunctions/GetLinkObservable';
81
81
  export { RecursiveSearchListener } from './WrapperFunctions/RecursiveSearchObservable';
82
82
  export { GetLinkListListener } from './WrapperFunctions/GetLinkListObservable';
83
+ export { GetConnectionTypeForCount } from './Services/Common/DecodeCountInfo';
84
+ export { orderTheConnections } from './Services/Search/orderingConnections';
83
85
  export { SyncData } from './DataStructures/SyncData';
84
86
  export { Concept } from './DataStructures/Concept';
85
87
  export { LConcept } from './DataStructures/Local/LConcept';
@@ -123,12 +125,16 @@ export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/
123
125
  export { BuildWidgetFromId } from './Widgets/WidgetBuild';
124
126
  export { removeAllChildren } from './Services/Common/RemoveAllChild';
125
127
  export { getUserDetails } from './Services/User/UserFromLocalStorage';
128
+ export { CountInfo } from './DataStructures/Count/CountInfo';
126
129
  export { Selector } from './Api/Prototype/Selector';
127
130
  export { AccessControlService } from './Services/AccessControl/AccessControl';
128
131
  export { renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
129
132
  export { CreateData } from './Services/automated/automated-concept-connection';
130
133
  export { Prototype } from './DataStructures/Prototype/Prototype';
131
134
  export { createPrototypeLocal } from './prototype/prototype.service';
135
+ export { GetImageApi } from './Api/Images/GetImages';
136
+ export { GetAllLinkerConnectionsFromTheConcept } from "./Api/GetAllLinkerConnectionsFromTheConcept";
137
+ export { GetFreeschemaImage, GetFreeschemaImageUrl } from './Services/assets/GetImageService';
132
138
  type listeners = {
133
139
  listenerId: string | number;
134
140
  callback: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "2.2.9-beta",
3
+ "version": "2.2.11-beta",
4
4
 
5
5
  "environment": "production",
6
6
  "description": "Full Pack of concept and connection system",
@@ -25,11 +25,9 @@
25
25
  "@babel/plugin-transform-modules-commonjs": "^7.24.8",
26
26
  "@babel/preset-env": "^7.25.4",
27
27
  "@babel/preset-typescript": "^7.24.7",
28
- "babel-jest": "^29.7.0",
29
28
  "cross-fetch": "^4.0.0",
30
- "fake-indexeddb": "^6.0.0",
31
- "jest": "^29.7.0",
32
- "jest-environment-jsdom": "^29.7.0",
29
+ "postcss": "^8.5.6",
30
+ "postcss-nested": "^7.0.2",
33
31
  "ts-loader": "^9.5.1",
34
32
  "typescript": "^5.3.2",
35
33
  "webpack": "^5.89.0",