mftsccs-browser 2.1.238-beta → 2.1.239-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.
Files changed (274) hide show
  1. package/dist/main.bundle.js +43918 -2
  2. package/dist/main.bundle.js.map +1 -0
  3. package/dist/serviceWorker.bundle.js +44844 -2
  4. package/dist/serviceWorker.bundle.js.map +1 -0
  5. package/package.json +4 -1
  6. package/dist/main.bundle.js.LICENSE.txt +0 -1
  7. package/dist/serviceWorker.bundle.js.LICENSE.txt +0 -1
  8. package/dist/types/AccessTracker/accessTracker.d.ts +0 -67
  9. package/dist/types/Anomaly/anomaly.d.ts +0 -103
  10. package/dist/types/Api/Create/CreateTheCharacter.d.ts +0 -24
  11. package/dist/types/Api/Create/CreateTheConceptApi.d.ts +0 -20
  12. package/dist/types/Api/Create/CreateTheConnectionApi.d.ts +0 -18
  13. package/dist/types/Api/Create/CreateTheGhostConceptApi.d.ts +0 -28
  14. package/dist/types/Api/Create/CreateTheGhostConnectionApi.d.ts +0 -18
  15. package/dist/types/Api/Create/CreateTheTextData.d.ts +0 -18
  16. package/dist/types/Api/Delete/DeleteConceptInBackend.d.ts +0 -14
  17. package/dist/types/Api/Delete/DeleteUserInBackend.d.ts +0 -19
  18. package/dist/types/Api/DeleteConnectionBulkApi.d.ts +0 -20
  19. package/dist/types/Api/DeleteTheConcept.d.ts +0 -20
  20. package/dist/types/Api/DeleteTheConnection.d.ts +0 -20
  21. package/dist/types/Api/GetAiData.d.ts +0 -10
  22. package/dist/types/Api/GetAllConceptsByType.d.ts +0 -12
  23. package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +0 -23
  24. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +0 -23
  25. package/dist/types/Api/GetAllLinkerConnectionsFromTheConcept.d.ts +0 -12
  26. package/dist/types/Api/GetAllLinkerConnectionsToTheConcept.d.ts +0 -12
  27. package/dist/types/Api/GetCharacterDataByCharacter.d.ts +0 -12
  28. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +0 -13
  29. package/dist/types/Api/GetConcept.d.ts +0 -6
  30. package/dist/types/Api/GetConceptBulk.d.ts +0 -20
  31. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +0 -15
  32. package/dist/types/Api/GetConceptByCharacterValue.d.ts +0 -12
  33. package/dist/types/Api/GetConnection.d.ts +0 -15
  34. package/dist/types/Api/GetConnectionBulk.d.ts +0 -7
  35. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +0 -15
  36. package/dist/types/Api/GetConnectionToTheConcept.d.ts +0 -17
  37. package/dist/types/Api/GetConnections/GetConnectionsBetweenApi.d.ts +0 -40
  38. package/dist/types/Api/GetConnections/GetConnectionsByTypeApi.d.ts +0 -15
  39. package/dist/types/Api/GetInstanceConceptByCharacterType.d.ts +0 -9
  40. package/dist/types/Api/GetReservedConnectionIds.d.ts +0 -10
  41. package/dist/types/Api/GetReservedIds.d.ts +0 -10
  42. package/dist/types/Api/Images/GetImages.d.ts +0 -15
  43. package/dist/types/Api/Local/GetLocalConceptByCharacterValue.d.ts +0 -13
  44. package/dist/types/Api/Login.d.ts +0 -78
  45. package/dist/types/Api/MakeTheNameInBackend.d.ts +0 -14
  46. package/dist/types/Api/MakeTheTypeConceptApi.d.ts +0 -9
  47. package/dist/types/Api/Prototype/Selector.d.ts +0 -26
  48. package/dist/types/Api/RecursiveSearch.d.ts +0 -67
  49. package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +0 -18
  50. package/dist/types/Api/Search/Search.d.ts +0 -73
  51. package/dist/types/Api/Search/SearchInternalApi.d.ts +0 -28
  52. package/dist/types/Api/Search/SearchLinkMultipleApi.d.ts +0 -15
  53. package/dist/types/Api/Search/SearchWithLinker.d.ts +0 -16
  54. package/dist/types/Api/Search/SearchWithTypeAndLinker.d.ts +0 -14
  55. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +0 -12
  56. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryDirect.d.ts +0 -13
  57. package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +0 -15
  58. package/dist/types/Api/Session/CreateSession.d.ts +0 -16
  59. package/dist/types/Api/Session/CreateSessionVisit.d.ts +0 -12
  60. package/dist/types/Api/Signin.d.ts +0 -24
  61. package/dist/types/Api/Signup.d.ts +0 -61
  62. package/dist/types/Api/Translate/TranslateLocalToReal.d.ts +0 -12
  63. package/dist/types/Api/View/ViewInternalDataApi.d.ts +0 -15
  64. package/dist/types/Constants/AccessConstants.d.ts +0 -3
  65. package/dist/types/Constants/ApiConstants.d.ts +0 -23
  66. package/dist/types/Constants/FormatConstants.d.ts +0 -8
  67. package/dist/types/Constants/ckeditorCSS.d.ts +0 -1
  68. package/dist/types/Constants/general.const.d.ts +0 -6
  69. package/dist/types/Constants/page.const.d.ts +0 -5
  70. package/dist/types/DataStructures/BaseUrl.d.ts +0 -89
  71. package/dist/types/DataStructures/BinaryCharacterTree.d.ts +0 -16
  72. package/dist/types/DataStructures/BinaryTree.d.ts +0 -77
  73. package/dist/types/DataStructures/BinaryTypeTree.d.ts +0 -17
  74. package/dist/types/DataStructures/CharacterRepository.d.ts +0 -8
  75. package/dist/types/DataStructures/Composition/Composition.d.ts +0 -14
  76. package/dist/types/DataStructures/Composition/CompositionBinaryTree.d.ts +0 -10
  77. package/dist/types/DataStructures/Composition/CompositionNode.d.ts +0 -21
  78. package/dist/types/DataStructures/Concept.d.ts +0 -25
  79. package/dist/types/DataStructures/ConceptData.d.ts +0 -30
  80. package/dist/types/DataStructures/ConceptsToDraw.d.ts +0 -11
  81. package/dist/types/DataStructures/Connection.d.ts +0 -23
  82. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +0 -81
  83. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +0 -27
  84. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfNode.d.ts +0 -10
  85. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionOfTheTree.d.ts +0 -24
  86. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeNode.d.ts +0 -10
  87. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +0 -20
  88. package/dist/types/DataStructures/ConnectionBinaryTree/NodePrimitive.d.ts +0 -15
  89. package/dist/types/DataStructures/ConnectionByType/GetConnectionByType.d.ts +0 -4
  90. package/dist/types/DataStructures/ConnectionData.d.ts +0 -26
  91. package/dist/types/DataStructures/Count/CountInfo.d.ts +0 -6
  92. package/dist/types/DataStructures/FetchConnection.d.ts +0 -64
  93. package/dist/types/DataStructures/FilterSearch.d.ts +0 -9
  94. package/dist/types/DataStructures/IdentifierFlags.d.ts +0 -11
  95. package/dist/types/DataStructures/Local/LConcept.d.ts +0 -23
  96. package/dist/types/DataStructures/Local/LConnection.d.ts +0 -18
  97. package/dist/types/DataStructures/Local/LNode.d.ts +0 -29
  98. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +0 -13
  99. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +0 -13
  100. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +0 -13
  101. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +0 -21
  102. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +0 -20
  103. package/dist/types/DataStructures/Local/LocalGhostIdTree.d.ts +0 -11
  104. package/dist/types/DataStructures/Local/LocalId.d.ts +0 -19
  105. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +0 -33
  106. package/dist/types/DataStructures/Node.d.ts +0 -30
  107. package/dist/types/DataStructures/PatcherStructure.d.ts +0 -8
  108. package/dist/types/DataStructures/Prototype/Prototype.d.ts +0 -19
  109. package/dist/types/DataStructures/Prototype/PrototypeOption.d.ts +0 -4
  110. package/dist/types/DataStructures/Prototype/QuerySelector.d.ts +0 -4
  111. package/dist/types/DataStructures/ReservedIds.d.ts +0 -10
  112. package/dist/types/DataStructures/Responses/ErrorResponse.d.ts +0 -74
  113. package/dist/types/DataStructures/Responses/StandardResponses.d.ts +0 -6
  114. package/dist/types/DataStructures/Returner.d.ts +0 -7
  115. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +0 -25
  116. package/dist/types/DataStructures/Search/SearchStructure.d.ts +0 -10
  117. package/dist/types/DataStructures/SearchQuery.d.ts +0 -17
  118. package/dist/types/DataStructures/Security/SecureStorage.d.ts +0 -14
  119. package/dist/types/DataStructures/Security/TokenStorage.d.ts +0 -24
  120. package/dist/types/DataStructures/Session/SessionData.d.ts +0 -13
  121. package/dist/types/DataStructures/SettingData.d.ts +0 -5
  122. package/dist/types/DataStructures/Settings.d.ts +0 -4
  123. package/dist/types/DataStructures/SigninModel.d.ts +0 -4
  124. package/dist/types/DataStructures/SignupModel.d.ts +0 -4
  125. package/dist/types/DataStructures/SyncData.d.ts +0 -14
  126. package/dist/types/DataStructures/TheCharacter.d.ts +0 -13
  127. package/dist/types/DataStructures/TheTexts.d.ts +0 -14
  128. package/dist/types/DataStructures/TypeLibrary.d.ts +0 -19
  129. package/dist/types/DataStructures/TypeNode.d.ts +0 -18
  130. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +0 -13
  131. package/dist/types/DataStructures/User/UserNode.d.ts +0 -18
  132. package/dist/types/DataStructures/WidgetCache/WidgetCache.d.ts +0 -10
  133. package/dist/types/DataStructures/WidgetCache/WidgetDetails.d.ts +0 -9
  134. package/dist/types/DataStructures/WidgetCache/WidgetNode.d.ts +0 -18
  135. package/dist/types/DataStructures/environments/environments.d.ts +0 -48
  136. package/dist/types/Database/CacheDatabase.d.ts +0 -57
  137. package/dist/types/Database/IndexUpdate.d.ts +0 -47
  138. package/dist/types/Database/NoIndexDb.d.ts +0 -9
  139. package/dist/types/Database/indexdblocal.d.ts +0 -43
  140. package/dist/types/Database/indexeddb.d.ts +0 -58
  141. package/dist/types/Helpers/CheckIfExists.d.ts +0 -9
  142. package/dist/types/Helpers/RemoveFromArray.d.ts +0 -5
  143. package/dist/types/Helpers/UniqueInsert.d.ts +0 -1
  144. package/dist/types/Middleware/ApplicationMonitor.d.ts +0 -14
  145. package/dist/types/Middleware/logger.service.d.ts +0 -144
  146. package/dist/types/ServiceWorker/actions/connectionActions.d.ts +0 -2
  147. package/dist/types/ServiceWorker/actions/createActions.d.ts +0 -2
  148. package/dist/types/ServiceWorker/actions/deleteActions.d.ts +0 -2
  149. package/dist/types/ServiceWorker/actions/getActions.d.ts +0 -2
  150. package/dist/types/ServiceWorker/actions/index.d.ts +0 -15
  151. package/dist/types/ServiceWorker/actions/searchActions.d.ts +0 -2
  152. package/dist/types/ServiceWorker/actions/syncActions.d.ts +0 -2
  153. package/dist/types/ServiceWorker/actions/updateActions.d.ts +0 -2
  154. package/dist/types/ServiceWorker/index.d.ts +0 -11
  155. package/dist/types/Services/CacheClear.d.ts +0 -7
  156. package/dist/types/Services/CheckForConnectionDeletion.d.ts +0 -3
  157. package/dist/types/Services/Common/DecodeCountInfo.d.ts +0 -3
  158. package/dist/types/Services/Common/DelayFunction.d.ts +0 -7
  159. package/dist/types/Services/Common/ErrorPosting.d.ts +0 -10
  160. package/dist/types/Services/Common/MergeArrays.d.ts +0 -7
  161. package/dist/types/Services/Common/RegexFunction.d.ts +0 -1
  162. package/dist/types/Services/Common/RemoveAllChild.d.ts +0 -1
  163. package/dist/types/Services/Composition/BuildComposition.d.ts +0 -3
  164. package/dist/types/Services/Composition/CompositionCache.d.ts +0 -4
  165. package/dist/types/Services/Composition/CreateCompositionCache.d.ts +0 -3
  166. package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +0 -5
  167. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +0 -5
  168. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +0 -5
  169. package/dist/types/Services/CreateConnection/CreateConnectionEntity.d.ts +0 -2
  170. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +0 -5
  171. package/dist/types/Services/CreateDefaultConcept.d.ts +0 -3
  172. package/dist/types/Services/CreateTheComposition.d.ts +0 -1
  173. package/dist/types/Services/CreateTheConcept.d.ts +0 -122
  174. package/dist/types/Services/CreateTheConnection.d.ts +0 -63
  175. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +0 -2
  176. package/dist/types/Services/DeleteConcept.d.ts +0 -2
  177. package/dist/types/Services/DeleteConnection.d.ts +0 -2
  178. package/dist/types/Services/DeleteConnectionByType.d.ts +0 -22
  179. package/dist/types/Services/FindConeceptsFromConnection.d.ts +0 -6
  180. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +0 -1
  181. package/dist/types/Services/GetComposition.d.ts +0 -205
  182. package/dist/types/Services/GetCompositionBulk.d.ts +0 -100
  183. package/dist/types/Services/GetCompositionList.d.ts +0 -7
  184. package/dist/types/Services/GetConceptByCharacter.d.ts +0 -2
  185. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +0 -11
  186. package/dist/types/Services/GetConnections.d.ts +0 -1
  187. package/dist/types/Services/GetDataFromIndexDb.d.ts +0 -2
  188. package/dist/types/Services/GetLink.d.ts +0 -3
  189. package/dist/types/Services/GetLinkerConnectionFromConcept.d.ts +0 -3
  190. package/dist/types/Services/GetRelation.d.ts +0 -3
  191. package/dist/types/Services/GetTheConcept.d.ts +0 -96
  192. package/dist/types/Services/InitializeSystem.d.ts +0 -2
  193. package/dist/types/Services/Local/ConvertFromLConceptToConcept.d.ts +0 -41
  194. package/dist/types/Services/Local/ConvertFromLConnectionToConnection.d.ts +0 -47
  195. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +0 -44
  196. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +0 -46
  197. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +0 -34
  198. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +0 -104
  199. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +0 -84
  200. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +0 -140
  201. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +0 -47
  202. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +0 -37
  203. package/dist/types/Services/Local/GetCompositionLocal.d.ts +0 -97
  204. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +0 -56
  205. package/dist/types/Services/Local/GetConnectionOfTheConceptLocal.d.ts +0 -19
  206. package/dist/types/Services/Local/GetRelationLocal.d.ts +0 -21
  207. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +0 -63
  208. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +0 -22
  209. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +0 -164
  210. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +0 -36
  211. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +0 -42
  212. package/dist/types/Services/Logs/LogEvent.d.ts +0 -1
  213. package/dist/types/Services/Mail.d.ts +0 -18
  214. package/dist/types/Services/MakeTheCharacter.d.ts +0 -2
  215. package/dist/types/Services/MakeTheCharacterData.d.ts +0 -2
  216. package/dist/types/Services/MakeTheConcept.d.ts +0 -2
  217. package/dist/types/Services/MakeTheInstanceConcept.d.ts +0 -15
  218. package/dist/types/Services/MakeTheTimestamp.d.ts +0 -1
  219. package/dist/types/Services/MakeTheTypeConcept.d.ts +0 -1
  220. package/dist/types/Services/Mqtt/publishMessage.d.ts +0 -1
  221. package/dist/types/Services/Search/DataIdFormat.d.ts +0 -32
  222. package/dist/types/Services/Search/FormatData.d.ts +0 -36
  223. package/dist/types/Services/Search/JustIdFormat.d.ts +0 -23
  224. package/dist/types/Services/Search/NewFormat.d.ts +0 -4
  225. package/dist/types/Services/Search/SearchLinkInternal.d.ts +0 -3
  226. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +0 -55
  227. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +0 -82
  228. package/dist/types/Services/Search/orderingConnections.d.ts +0 -2
  229. package/dist/types/Services/Security/GetRequestHeader.d.ts +0 -6
  230. package/dist/types/Services/SplitStrings.d.ts +0 -1
  231. package/dist/types/Services/Transaction/LocalTransaction.d.ts +0 -117
  232. package/dist/types/Services/UpdateComposition.d.ts +0 -2
  233. package/dist/types/Services/Upload.d.ts +0 -34
  234. package/dist/types/Services/User/UserFromLocalStorage.d.ts +0 -10
  235. package/dist/types/Services/User/UserTranslation.d.ts +0 -3
  236. package/dist/types/Services/View/ViewInternalData.d.ts +0 -1
  237. package/dist/types/Services/assets/GetImageService.d.ts +0 -14
  238. package/dist/types/Services/automated/automated-concept-connection.d.ts +0 -7
  239. package/dist/types/Services/cacheService.d.ts +0 -1
  240. package/dist/types/Validator/constant.d.ts +0 -3
  241. package/dist/types/Validator/interface.d.ts +0 -19
  242. package/dist/types/Validator/utils.d.ts +0 -7
  243. package/dist/types/Validator/validator.d.ts +0 -37
  244. package/dist/types/Visualize/ConceptCircle.d.ts +0 -35
  245. package/dist/types/Visualize/ConceptCircleList.d.ts +0 -9
  246. package/dist/types/Visualize/ConnectionLine.d.ts +0 -21
  247. package/dist/types/Visualize/ConnectionLineList.d.ts +0 -6
  248. package/dist/types/Visualize/drawExistingConcepts.d.ts +0 -8
  249. package/dist/types/Visualize/helper.d.ts +0 -15
  250. package/dist/types/Widgets/BaseObserver.d.ts +0 -25
  251. package/dist/types/Widgets/BaseWidget.d.ts +0 -37
  252. package/dist/types/Widgets/BuilderSpeceficFunctions.d.ts +0 -11
  253. package/dist/types/Widgets/BuilderStatefulWidget.d.ts +0 -392
  254. package/dist/types/Widgets/CacheWidget.service.d.ts +0 -77
  255. package/dist/types/Widgets/NormalizeStyles.service.d.ts +0 -10
  256. package/dist/types/Widgets/RenderPage.service.d.ts +0 -17
  257. package/dist/types/Widgets/RenderWidgetLibrary.service.d.ts +0 -22
  258. package/dist/types/Widgets/RenderWidgetService.d.ts +0 -187
  259. package/dist/types/Widgets/StatefulWidget.d.ts +0 -167
  260. package/dist/types/Widgets/WidgetBuild.d.ts +0 -45
  261. package/dist/types/Widgets/WidgetCacheManager.d.ts +0 -108
  262. package/dist/types/Widgets/WidgetTree.d.ts +0 -61
  263. package/dist/types/WrapperFunctions/DepenedencyObserver.d.ts +0 -95
  264. package/dist/types/WrapperFunctions/GetCompositionListObservable.d.ts +0 -51
  265. package/dist/types/WrapperFunctions/GetCompositionObservable.d.ts +0 -35
  266. package/dist/types/WrapperFunctions/GetLinkListObservable.d.ts +0 -57
  267. package/dist/types/WrapperFunctions/GetLinkObservable.d.ts +0 -50
  268. package/dist/types/WrapperFunctions/QueryCacheManager.d.ts +0 -107
  269. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +0 -55
  270. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +0 -60
  271. package/dist/types/WrapperFunctions/SearchLinkMultipleAllObservable.d.ts +0 -36
  272. package/dist/types/app.d.ts +0 -377
  273. package/dist/types/prototype/prototype.service.d.ts +0 -25
  274. package/dist/types/service-worker.d.ts +0 -1
@@ -1,187 +0,0 @@
1
- import { BuilderStatefulWidget, StatefulWidget, WidgetTree } from "../app";
2
- /**
3
- * Renders a complete page with its widgets and properties.
4
- *
5
- * Fetches page data, applies page-level properties (meta tags, styles), and renders
6
- * the page body widget. Adds fspage class for styling.
7
- *
8
- * @param pageId - The page concept ID to render
9
- * @param attachNode - DOM element to attach the page to
10
- * @param props - Optional properties to pass to the page widget
11
- * @param showDocumentation - Whether to show documentation button
12
- */
13
- export declare function renderPage(pageId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<void>;
14
- /**
15
- * Imports the latest version of a widget into cache for later rendering.
16
- *
17
- * Fetches widget data, builds widget tree, and stores in DataCache.
18
- * Used for pre-loading widgets before rendering.
19
- *
20
- * @param widgetId - The widget origin ID to import
21
- * @param attachNode - Optional DOM element (for future use)
22
- * @param props - Optional properties to pass to the widget
23
- * @param showDocumentation - Whether to show documentation button
24
- * @returns Promise resolving to the widget tree
25
- */
26
- export declare function importLatestWidget(widgetId: number, attachNode?: HTMLElement, props?: any, showDocumentation?: boolean): Promise<WidgetTree | undefined>;
27
- /**
28
- * Imports the latest version of a widget into cache for later rendering.
29
- *
30
- * Fetches widget data, builds widget tree, and stores in DataCache.
31
- * Used for pre-loading widgets before rendering.
32
- *
33
- * @param widgetId - The widget origin ID to import
34
- * @param attachNode - Optional DOM element (for future use)
35
- * @param props - Optional properties to pass to the widget
36
- * @param showDocumentation - Whether to show documentation button
37
- * @returns Promise resolving to the widget tree
38
- */
39
- export declare function importRecentWidget(widgetId: number, attachNode?: HTMLElement, props?: any, showDocumentation?: boolean): Promise<WidgetTree | undefined>;
40
- /**
41
- * Renders a previously imported widget from cache.
42
- *
43
- * Retrieves widget tree from DataCache and renders it to the DOM.
44
- * Must call importLatestWidget() first to populate cache.
45
- *
46
- * @param widgetId - The widget origin ID to render
47
- * @param attachNode - DOM element to attach the widget to
48
- * @param props - Optional properties to pass to the widget
49
- * @param showDocumentation - Whether to show documentation button
50
- * @returns Promise resolving to the rendered widget instance
51
- */
52
- export declare function renderImportedWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
53
- /**
54
- * Renders the latest published version of a widget.
55
- *
56
- * Fetches and renders the most recent version of a widget by origin ID.
57
- * Automatically handles "use latest" flag for child widgets.
58
- *
59
- * @param widgetId - The widget origin ID to render
60
- * @param attachNode - DOM element to attach the widget to
61
- * @param props - Optional properties to pass to the widget
62
- * @param showDocumentation - Whether to show documentation button
63
- */
64
- export declare function renderLatestWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
65
- /**
66
- * Renders a specific widget by ID.
67
- *
68
- * Fetches widget data and renders the exact version specified (not latest).
69
- *
70
- * @param widgetId - The specific widget ID to render
71
- * @param attachNode - DOM element to attach the widget to
72
- * @param props - Optional properties to pass to the widget
73
- * @param showDocumentation - Whether to show documentation button
74
- * @returns Promise resolving to the rendered widget instance
75
- */
76
- export declare function renderWidget(widgetId: number, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
77
- /**
78
- * Materializes a widget tree into DOM elements with styles and scripts.
79
- *
80
- * Core rendering logic that converts widget data into live DOM, applies styles,
81
- * initializes libraries, and attaches documentation if enabled.
82
- *
83
- * @param widgetId - The widget ID being materialized
84
- * @param bulkWidget - Bulk widget data from backend
85
- * @param attachNode - DOM element to attach the widget to
86
- * @param props - Optional properties to pass to the widget
87
- * @param showDocumentation - Whether to show documentation button (default: true)
88
- * @returns Promise resolving to the rendered widget instance
89
- */
90
- export declare function materializeWidget(widgetId: number, bulkWidget: any, attachNode: HTMLElement, props?: any, showDocumentation?: boolean): Promise<BuilderStatefulWidget | undefined>;
91
- /**
92
- * Fetches and builds a complete widget tree from a widget ID.
93
- *
94
- * @param widgetId - The widget ID to fetch
95
- * @param visitedWidgets - Array to track visited widgets (prevents cycles)
96
- * @param token - Optional authentication token
97
- * @returns Promise resolving to the widget tree
98
- */
99
- export declare function getWidgetFromId(widgetId: number, visitedWidgets?: number[], token?: string): Promise<WidgetTree>;
100
- /**
101
- * Builds a complete widget tree from bulk widget data.
102
- *
103
- * Recursively processes widget hierarchy including children, custom functions,
104
- * libraries, and lifecycle hooks to create a full WidgetTree structure.
105
- *
106
- * @param widgetId - The widget ID to build tree for
107
- * @param visitedWidgets - Array tracking visited widgets to prevent cycles
108
- * @param bulkWidget - Bulk widget data from backend
109
- * @param token - Optional authentication token
110
- * @returns Promise resolving to the complete widget tree
111
- */
112
- export declare function getWidgetBulkFromId(widgetId: number, visitedWidgets: number[] | undefined, bulkWidget: any, token?: string): Promise<WidgetTree>;
113
- /**
114
- * Converts a widget tree structure into live widget instances and mounts to DOM.
115
- *
116
- * Recursively instantiates widgets from tree data, sets up parent-child relationships,
117
- * applies styles, and mounts to the specified parent element.
118
- *
119
- * @param tree - The widget tree to convert
120
- * @param parentElement - DOM element to mount the widget to
121
- * @param isMain - Whether this is the main/root widget
122
- * @param props - Optional properties to pass to the widget
123
- * @param state - Optional state data to pass to the widget
124
- * @param parentWidget - Parent widget instance for context
125
- * @returns Promise resolving to the instantiated widget
126
- */
127
- export declare function convertWidgetTreeToWidget(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, props?: any, state?: any, parentWidget?: StatefulWidget | null): Promise<BuilderStatefulWidget>;
128
- /**
129
- * Creates a shallow copy of an object, excluding arrays and nested objects.
130
- *
131
- * @param input - Object to create shallow copy from
132
- * @returns Shallow copy with only primitive and null values
133
- */
134
- export declare function makeShallow(input: any): any;
135
- /**
136
- * Converts widget tree to widget instances with development mode wrapper support.
137
- *
138
- * Similar to convertWidgetTreeToWidget but includes development mode features
139
- * like visual editing and type selection.
140
- *
141
- * @param tree - The widget tree to convert
142
- * @param parentElement - DOM element to mount the widget to
143
- * @param isMain - Whether this is the main/root widget
144
- * @param state - Optional state data to pass to the widget
145
- * @param isInDevelopment - Enable development mode features
146
- * @param parentWidget - Parent widget instance for context
147
- * @returns Promise resolving to the instantiated widget
148
- */
149
- export declare function convertWidgetTreeToWidgetWithWrapper(tree: WidgetTree, parentElement: HTMLElement, isMain?: boolean, state?: object, isInDevelopment?: boolean, parentWidget?: StatefulWidget | null): Promise<BuilderStatefulWidget>;
150
- /**
151
- * Recursively unwraps all matching container elements within a parent.
152
- *
153
- * @param parentElement - Parent element to search within
154
- * @param selector - CSS selector for containers to unwrap
155
- */
156
- export declare function unwrapContainers(parentElement: HTMLElement, selector: string): Promise<void>;
157
- /**
158
- * Opens the documentation preview modal for a widget.
159
- *
160
- * Fetches and displays widget documentation including API specs, code examples,
161
- * images, videos, and links.
162
- *
163
- * @param widgetId - The widget ID to show documentation for
164
- */
165
- export declare function openDocumentationPreviewModal(widgetId: number): Promise<void>;
166
- /**
167
- * Renders widget documentation content into the documentation view.
168
- *
169
- * Formats and displays documentation data including text, API details,
170
- * code examples, and media attachments.
171
- *
172
- * @param widgetDocumentData - Documentation data to display
173
- * @param widgetId - The widget ID being documented
174
- */
175
- export declare function showWidgetDocumentation(widgetDocumentData: any, widgetId: number): Promise<void>;
176
- /**
177
- * Opens a modal dialog by ID.
178
- *
179
- * @param modalId - The ID of the modal element to open
180
- */
181
- export declare function openModal(modalId: string): Promise<void>;
182
- /**
183
- * Closes a modal dialog by ID and resets its form if present.
184
- *
185
- * @param modalId - The ID of the modal element to close
186
- */
187
- export declare function closeModal(modalId: string): Promise<void>;
@@ -1,167 +0,0 @@
1
- import { BaseWidget } from "./BaseWidget";
2
- /**
3
- * Stateful widget with lifecycle management and hierarchical composition.
4
- *
5
- * Provides a React-like component system with state management, lifecycle hooks,
6
- * and parent-child widget relationships. Extend this class to create custom widgets
7
- * compatible with the concept connection system.
8
- */
9
- export declare class StatefulWidget extends BaseWidget {
10
- /** Optional parameters passed to the widget */
11
- params: any;
12
- /** HTML template string for the widget */
13
- html: string;
14
- /** CSS styles for the widget */
15
- css: string;
16
- /** JavaScript code for the widget */
17
- js: string;
18
- /** Current widget state object */
19
- state: {
20
- [key: string]: any;
21
- };
22
- /** Previous widget state for change detection */
23
- previousState: {
24
- [key: string]: any;
25
- };
26
- /** Array of child widget instances */
27
- childWidgets: any;
28
- /** Array of DOM elements hosting child widgets */
29
- childWidgetElement: any;
30
- /** Reference to the parent widget instance */
31
- parentWidget: any;
32
- /** Shared state data passed to child widgets */
33
- widgetState: {
34
- [key: string]: any;
35
- };
36
- /** ID of the parent DOM element containing this widget */
37
- parentElement: string;
38
- /**
39
- * Finds the first element matching a CSS selector within this widget.
40
- *
41
- * @param selector - CSS selector string
42
- * @returns The first matching element or null
43
- */
44
- querySelector(selector: string): Element | null;
45
- /**
46
- * Finds all elements matching a CSS selector within this widget.
47
- *
48
- * @param selector - CSS selector string
49
- * @returns NodeList of matching elements or null
50
- */
51
- querySelectorAll(selector: string): NodeListOf<Element> | null;
52
- /**
53
- * Gets the root DOM element of this widget.
54
- *
55
- * @returns The widget's root HTML element
56
- */
57
- getElement(): HTMLElement | null;
58
- /**
59
- * Sets the browser document title.
60
- *
61
- * @param title - The new document title
62
- */
63
- setTitle(title: string): void;
64
- /**
65
- * Gets the HTML template for this widget.
66
- *
67
- * @returns HTML string to be rendered
68
- */
69
- getHtml(): string;
70
- /**
71
- * Updates a child widget's data and triggers re-render.
72
- *
73
- * @param value - New data to pass to the child widget
74
- * @param widget - The child widget instance to update
75
- */
76
- UpdateChildData(value: any, widget: StatefulWidget): void;
77
- /**
78
- * Lifecycle hook called after widget data is updated.
79
- * Override this method to handle post-update logic.
80
- */
81
- update(): void;
82
- /**
83
- * Updates the entire widget state and triggers re-render if changed.
84
- *
85
- * @param newState - New state data to replace current state
86
- */
87
- setState(newState: any): void;
88
- /**
89
- * Updates specific state properties and triggers re-render if changed.
90
- *
91
- * @param newProperty - Object containing properties to update
92
- */
93
- setStateProperty(newProperty: Object): void;
94
- /**
95
- * Checks if the widget state has changed since last update.
96
- *
97
- * @returns True if state changed, false otherwise
98
- */
99
- hasStateChanged(): boolean;
100
- /**
101
- * Compares two state objects for shallow equality.
102
- *
103
- * @param obj1 - First state object
104
- * @param obj2 - Second state object
105
- * @returns True if objects are equal, false otherwise
106
- */
107
- private isPropertyEqual;
108
- /**
109
- * Mounts all registered child widgets to their designated parent elements.
110
- */
111
- loadChildWidgets(): void;
112
- /**
113
- * Re-renders the widget by updating the DOM with current HTML template.
114
- * Also triggers child widget loading and after_render hook.
115
- */
116
- render(): void;
117
- /**
118
- * Finds all elements with a specific class name within this widget.
119
- *
120
- * @param identifier - Class name to search for (without '.' prefix)
121
- * @returns NodeList of matching elements
122
- */
123
- getElementByClassName(identifier: string): never[] | NodeListOf<Element>;
124
- /**
125
- * Lifecycle hook for mounting child widgets.
126
- * Override this method to define custom child mounting logic.
127
- */
128
- mount_child(): void;
129
- /**
130
- * Mounts the widget to a parent DOM element and initializes lifecycle.
131
- *
132
- * Creates a wrapper div, assigns unique ID, renders HTML, and executes
133
- * lifecycle hooks in sequence.
134
- *
135
- * @param parent - The parent HTML element to mount this widget into
136
- */
137
- mount(parent: HTMLElement): Promise<void>;
138
- /**
139
- * Lifecycle hook called before rendering.
140
- * Override for initialization logic. Default implementation calls render().
141
- */
142
- before_render(): void;
143
- /**
144
- * Lifecycle hook called after rendering.
145
- * Override to add event listeners or post-render logic.
146
- */
147
- after_render(): void;
148
- /**
149
- * Recursively renders all child widgets in the hierarchy.
150
- */
151
- renderChildWidgets(): void;
152
- /**
153
- * Sets shared state data and propagates to all child widgets recursively.
154
- *
155
- * @param key - State property key
156
- * @param value - State value to set
157
- */
158
- setWidgetState(key: string, value: any): void;
159
- /**
160
- * Retrieves shared state data by key.
161
- *
162
- * @param key - State property key to retrieve
163
- * @param defaultValue - Default value if key doesn't exist
164
- * @returns The state value or default value
165
- */
166
- getWidgetState(key: string, defaultValue: any): object;
167
- }
@@ -1,45 +0,0 @@
1
- /**
2
- * Fetches and builds widget data from the backend by widget ID.
3
- *
4
- * Retrieves complete widget structure including concepts, connections, and metadata.
5
- * Uses caching to prevent duplicate requests for the same widget.
6
- *
7
- * @param id - The widget ID to fetch
8
- * @returns Promise resolving to formatted widget data
9
- */
10
- export declare function BuildWidgetFromId(id: number): Promise<any>;
11
- /**
12
- * Builds widget data from local cache instead of making API request.
13
- *
14
- * @param id - The widget ID to fetch from cache
15
- * @returns Promise resolving to widget data object with mainId
16
- */
17
- export declare function BuildWidgetFromCache(id: number): Promise<any>;
18
- /**
19
- * Fetches the latest published version of a widget by origin ID.
20
- *
21
- * Retrieves the most recent version of a widget, useful for always displaying
22
- * updated content. Uses separate cache from standard widget requests.
23
- *
24
- * @param id - The origin widget ID to fetch latest version for
25
- * @returns Promise resolving to object with widget data and mainId
26
- */
27
- export declare function BuildWidgetFromIdForLatest(id: number): Promise<any>;
28
- /**
29
- * Fetches the recent published version of a widget by origin ID.
30
- *
31
- * Retrieves the most recent version of a widget, useful for always displaying
32
- * updated content. Uses separate cache from standard widget requests.
33
- *
34
- * @param id - The origin widget ID to fetch latest version for
35
- * @returns Promise resolving to object with widget data and mainId
36
- */
37
- export declare function BuildWidgetFromIdForRecent(id: number): Promise<any>;
38
- /**
39
- * Finds and returns a specific widget from bulk widget data by ID.
40
- *
41
- * @param data - Array of widget data objects
42
- * @param id - The widget ID to find
43
- * @returns The matching widget object or undefined
44
- */
45
- export declare function GetWidgetForTree(data: any, id: number): any;
@@ -1,108 +0,0 @@
1
- /**
2
- * WidgetCacheManager — In-memory cache with IndexedDB persistence for widget data.
3
- *
4
- * Architecture:
5
- * - **Reads** are synchronous from in-memory Maps (fastest possible lookup).
6
- * - **Writes** update the in-memory Map immediately, then persist to IndexedDB
7
- * in the background (fire-and-forget) so data survives page reloads.
8
- * - **On startup**, `init()` loads all persisted data from IndexedDB into the Maps.
9
- *
10
- * This gives us the speed of in-memory access (no async overhead, no JSON.parse)
11
- * with the durability of IndexedDB (no 5 MB limit, survives reloads).
12
- *
13
- * Three separate caches are maintained:
14
- * - **widgetMap** — standard widget data keyed by widget ID
15
- * - **latestMap** — latest published version keyed by origin ID
16
- * - **recentMap** — recent published version keyed by origin ID
17
- */
18
- export declare class WidgetCacheManager {
19
- /** In-memory cache for standard widget data */
20
- private static widgetMap;
21
- /** In-memory cache for latest-version widget data */
22
- private static latestMap;
23
- /** In-memory cache for recent-version widget data */
24
- private static recentMap;
25
- /**
26
- * Loads all persisted widget cache data from IndexedDB into memory.
27
- * Called automatically during `init()` / `initConceptConnection()`.
28
- * Safe to call multiple times — just overwrites the Maps.
29
- *
30
- * Skips entirely when `Environments.getValue('enableCache', true)` is `false`,
31
- * keeping all three maps empty so no stale data is ever served.
32
- */
33
- static init(): Promise<void>;
34
- /**
35
- * Retrieves cached widget data by widget ID (synchronous, from memory).
36
- * Returns `null` when cache is disabled via `Environments.setValue('enableCache', false)`,
37
- * causing `BuildWidgetFromId` to always fetch fresh from the backend.
38
- * @param id - The widget ID to look up
39
- * @returns The cached data object, or null if not cached or cache is disabled
40
- */
41
- static getWidget(id: number): any | null;
42
- /**
43
- * Stores widget data in memory and persists to IndexedDB in the background.
44
- * No-ops when cache is disabled via `Environments.setValue('enableCache', false)`.
45
- * Skips if data is identical to what's already cached (dedup guard).
46
- * @param id - The widget ID
47
- * @param data - The widget data object to cache
48
- */
49
- static setWidget(id: number, data: any): void;
50
- /**
51
- * Removes a single widget entry from memory and IndexedDB.
52
- * @param id - The widget ID to remove
53
- */
54
- static removeWidget(id: number): void;
55
- /**
56
- * Retrieves cached latest-version widget data (synchronous, from memory).
57
- * Returns `null` when cache is disabled, causing a live backend fetch.
58
- * @param id - The origin widget ID
59
- * @returns The cached data object, or null if not cached or cache is disabled
60
- */
61
- static getLatest(id: number): any | null;
62
- /**
63
- * Stores latest-version widget data in memory and persists to IndexedDB.
64
- * No-ops when cache is disabled. Skips if data is identical to what's already cached.
65
- * @param id - The origin widget ID
66
- * @param data - The latest widget data to cache
67
- */
68
- static setLatest(id: number, data: any): void;
69
- /**
70
- * Removes a single latest-version entry from memory and IndexedDB.
71
- * @param id - The origin widget ID to remove
72
- */
73
- static removeLatest(id: number): void;
74
- /**
75
- * Retrieves cached recent-version widget data (synchronous, from memory).
76
- * Returns `null` when cache is disabled, causing a live backend fetch.
77
- * @param id - The origin widget ID
78
- * @returns The cached data object, or null if not cached or cache is disabled
79
- */
80
- static getRecent(id: number): any | null;
81
- /**
82
- * Stores recent-version widget data in memory and persists to IndexedDB.
83
- * No-ops when cache is disabled. Skips if data is identical to what's already cached.
84
- * @param id - The origin widget ID
85
- * @param data - The recent widget data to cache
86
- */
87
- static setRecent(id: number, data: any): void;
88
- /**
89
- * Removes a single recent-version entry from memory and IndexedDB.
90
- * @param id - The origin widget ID to remove
91
- */
92
- static removeRecent(id: number): void;
93
- /**
94
- * Clears all three widget caches from both memory and IndexedDB.
95
- * Useful for cache invalidation on logout or environment switch.
96
- */
97
- static clearAll(): void;
98
- /**
99
- * Checks if the new data is identical to what's already in the Map.
100
- * Prevents unnecessary IndexedDB writes when data hasn't changed.
101
- *
102
- * @param map - The in-memory Map to check against
103
- * @param id - The key to check
104
- * @param data - The new data to compare
105
- * @returns true if data is a duplicate (should be skipped)
106
- */
107
- private static _isDuplicate;
108
- }
@@ -1,61 +0,0 @@
1
- import { TAssistant, TCustomFunction, TMainLibrary } from "../DataStructures/TypeLibrary";
2
- import { BuilderStatefulWidget } from "./BuilderStatefulWidget";
3
- /**
4
- * Hierarchical widget tree structure for nested widget composition.
5
- *
6
- * Represents a widget and its complete metadata including HTML, styles, scripts,
7
- * lifecycle hooks, and child widgets. Used for building complex widget hierarchies.
8
- */
9
- export declare class WidgetTree {
10
- /** Unique widget identifier */
11
- id: number;
12
- /** Widget display name */
13
- name: string;
14
- /** HTML template string */
15
- html: string;
16
- /** CSS styles string */
17
- css: string;
18
- /** JavaScript code string */
19
- js: string;
20
- /** External CSS and JS library dependencies */
21
- library: TMainLibrary;
22
- /** AI assistant configuration for the widget */
23
- assistant: TAssistant;
24
- /** Creation/update timestamp */
25
- timestamp: string;
26
- /** Widget ID reference */
27
- widgetId: number;
28
- /** Widget type identifier (e.g., "the_element_name") */
29
- type: string;
30
- /** Clean/sanitized version of the widget */
31
- clean: string;
32
- /** Code to execute after widget renders */
33
- after_render: string;
34
- /** Code to execute before widget renders */
35
- before_render: string;
36
- /** Array of custom function definitions */
37
- custom_functions: TCustomFunction[];
38
- /** Code to execute on widget update */
39
- update: string;
40
- /** Origin widget ID for versioning */
41
- origin: number;
42
- /** Version number of this widget */
43
- version: number;
44
- /** Code to execute when mounting child widgets */
45
- mount_child: string;
46
- /** Array of child widget trees */
47
- children: WidgetTree[];
48
- /** ID of the wrapper element for this widget */
49
- wrapper: string;
50
- /** The instantiated widget object */
51
- widget: BuilderStatefulWidget;
52
- /** Child widget ID reference */
53
- sChildId?: number;
54
- /** Whether the widget is published */
55
- isPublished?: boolean;
56
- /** Whether to use the latest version of this widget */
57
- useLatest?: boolean;
58
- /** Widget dependency code string */
59
- dependency: string;
60
- root: number;
61
- }
@@ -1,95 +0,0 @@
1
- /**
2
- * Base observable class that tracks concepts and connections for reactive state management.
3
- * Implements the observer pattern to notify subscribers when tracked data changes.
4
- */
5
- export declare class DependencyObserver {
6
- /** List of subscriber callbacks */
7
- subscribers: any[];
8
- /** Primary concept ID being observed */
9
- mainConcept: number;
10
- /** List of composition IDs */
11
- compositionIds: number[];
12
- /** List of concept IDs */
13
- conceptIds: number[];
14
- /** List of internal connection IDs */
15
- internalConnections: number[];
16
- /** List of reverse connection IDs */
17
- reverse: number[];
18
- /** List of linker connection IDs */
19
- linkers: number[];
20
- /** List of newly added IDs */
21
- newIds: number[];
22
- /** List of dependency IDs */
23
- dependency: number[];
24
- /** Whether initial data has been loaded */
25
- isDataLoaded: boolean;
26
- /** Whether an update is currently in progress */
27
- isUpdating: boolean;
28
- /** The observable data to be returned */
29
- data: any;
30
- /** Whether data has been fetched */
31
- fetched: boolean;
32
- /** Output format (NORMAL, DATAID, JUSTDATA, etc.) */
33
- format: number;
34
- /** Map of concept IDs to their event handlers (string keys to support composite keys) */
35
- eventHandlers: {
36
- [key: string]: (event: Event) => void;
37
- };
38
- /**
39
- * Listens to changes for a specific concept type and updates subscribers when new concepts of that type are created.
40
- * @param id - The type concept ID to track
41
- */
42
- listenToEventType(id: number): void;
43
- /**
44
- * Listens to connection changes for a specific concept and updates subscribers when connections are modified.
45
- * @param id - The concept ID to track
46
- */
47
- listenToEvent(id: number): void;
48
- /**
49
- * Removes an event listener for a specific concept ID.
50
- * @param id - The concept ID to stop tracking
51
- */
52
- removeListenToEvent(id: number): void;
53
- /**
54
- * Listens to connection changes filtered by connection type for a specific concept.
55
- * @param id - The concept ID to track
56
- * @param connectionType - The connection type ID to filter by
57
- */
58
- listenToEventConnectionType(id: number, connectionType: number): void;
59
- /**
60
- * Binds and refreshes the observable data. Override in subclasses to implement specific data fetching logic.
61
- * @returns The bound data
62
- */
63
- bind(): Promise<void>;
64
- /**
65
- * Executes the observable without subscribing. Override in subclasses for non-reactive data fetching.
66
- * @returns The executed data
67
- */
68
- run(): Promise<void>;
69
- /**
70
- * Forces a data refresh and notifies all subscribers.
71
- */
72
- update(): Promise<void>;
73
- /**
74
- * Subscribes a callback to receive data updates whenever tracked concepts/connections change.
75
- * @param callback - Function to call with (data, observer) when updates occur
76
- * @param errorCallback - Optional function to call when errors occur
77
- * @returns Result of calling the callback with current data
78
- */
79
- subscribe(callback: any, errorCallback?: (error: Error) => void): any;
80
- /**
81
- * Executes the observable once without subscribing to updates.
82
- * @returns The executed data
83
- */
84
- execute(): Promise<void>;
85
- /**
86
- * Removes a callback from the subscriber list.
87
- * @param callback - The callback function to remove
88
- * @returns Number of remaining subscribers
89
- */
90
- unsubscribe(callback: any): number;
91
- /**
92
- * Notifies all subscribers with the current data.
93
- */
94
- notify(): void;
95
- }