@omnia/fx 8.0.129-dev → 8.0.130-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 (206) hide show
  1. package/internal-do-not-import-from-here/core/index.d.ts +1 -1
  2. package/internal-do-not-import-from-here/core/messaging/BuiltInTopics.d.ts +1 -1
  3. package/internal-do-not-import-from-here/core/messaging/index.d.ts +1 -1
  4. package/internal-do-not-import-from-here/runtime/core/ManifestResourceLoader.d.ts +1 -1
  5. package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker/ChromeBlueprintsPicker.css.d.ts → blueprintTemplate/BlueprintsTemplatePicker.css.d.ts} +1 -1
  6. package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker/ChromeBlueprintsPicker.d.ts → blueprintTemplate/BlueprintsTemplatePicker.d.ts} +120 -98
  7. package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromePicker.d.ts +95 -95
  8. package/internal-do-not-import-from-here/ux/blueprintpickers/typography/TypographyBlueprintsViewer.css.d.ts +4 -0
  9. package/internal-do-not-import-from-here/ux/blueprintpickers/typography/TypographyBlueprintsViewer.d.ts +76 -0
  10. package/internal-do-not-import-from-here/ux/colorschemapicker/ColorSchemaPicker.d.ts +90 -90
  11. package/internal-do-not-import-from-here/ux/docs/services/DocsService.d.ts +1 -1
  12. package/internal-do-not-import-from-here/ux/identities/components/shared/IdentitySyncRuleSetup.d.ts +1 -1
  13. package/internal-do-not-import-from-here/ux/oxide/datatable/DataTable.css.d.ts +949 -947
  14. package/internal-do-not-import-from-here/ux/oxide/datatable/DataTable.d.ts +2294 -2290
  15. package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +2294 -2290
  16. package/internal-do-not-import-from-here/ux/properties/models/PropertyApi.d.ts +1 -1
  17. package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/{chrome → components}/store/ChromeEditorStore.d.ts +1 -7
  18. package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/components/store/ComponentEditorStore.d.ts +2 -0
  19. package/internal-do-not-import-from-here/ux/theming-v2/designkits/core/BlueprintsTemplates.d.ts +4 -11
  20. package/internal-do-not-import-from-here/ux/theming-v2/designkits/core/ThemeDefinitionInstance.d.ts +1 -0
  21. package/internal-do-not-import-from-here/ux/theming-v2/store/ChromeBlueprintStore.d.ts +938 -935
  22. package/internal-do-not-import-from-here/ux/theming-v2/store/ColorSchemaStore.d.ts +943 -940
  23. package/internal-do-not-import-from-here/ux/theming-v2/store/ComponentBlueprintStore.d.ts +938 -935
  24. package/internal-do-not-import-from-here/ux/theming-v2/store/SpacingBlueprintStore.d.ts +938 -935
  25. package/internal-do-not-import-from-here/ux/theming-v2/store/ThemeContextStore.d.ts +45 -54
  26. package/internal-do-not-import-from-here/ux/theming-v2/store/ThemeStoreV2.d.ts +0 -1
  27. package/internal-do-not-import-from-here/ux/theming-v2/store/TypographyBlueprintStore.d.ts +938 -935
  28. package/internal-do-not-import-from-here/ux/theming-v2/styling/UseStyling.d.ts +11540 -11520
  29. package/internal-do-not-import-from-here/ux/theming-v2/themepicker/ThemeViewer.d.ts +68 -0
  30. package/internal-do-not-import-from-here/ux/theming-v2/themeprovider/ThemeProvider.d.ts +10 -10
  31. package/internal-do-not-import-from-here/ux/use/UseColorSchemaSetup.d.ts +949 -947
  32. package/internal-do-not-import-from-here/ux/velcron/core/index.d.ts +1 -1
  33. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +1 -1
  34. package/internal-do-not-import-from-here/ux/velcron/core/stores/VelcronColorSchema.d.ts +6 -6
  35. package/internal-do-not-import-from-here/ux/velcron/renderer/VelcronRenderer.d.ts +5 -5
  36. package/internal-do-not-import-from-here/wctypings.d.ts +53 -42
  37. package/package.json +2 -2
  38. package/internal-do-not-import-from-here/shared/broadcasting/Broadcast.d.ts +0 -37
  39. package/internal-do-not-import-from-here/shared/broadcasting/InternalTopics.d.ts +0 -23
  40. package/internal-do-not-import-from-here/shared/broadcasting/index.d.ts +0 -1
  41. package/internal-do-not-import-from-here/shared/factory/DefineFactory.d.ts +0 -12
  42. package/internal-do-not-import-from-here/shared/factory/Inject.d.ts +0 -30
  43. package/internal-do-not-import-from-here/shared/factory/Injectable.d.ts +0 -4
  44. package/internal-do-not-import-from-here/shared/factory/ServiceContainer.d.ts +0 -45
  45. package/internal-do-not-import-from-here/shared/factory/index.d.ts +0 -4
  46. package/internal-do-not-import-from-here/shared/http/Http.d.ts +0 -141
  47. package/internal-do-not-import-from-here/shared/http/index.d.ts +0 -1
  48. package/internal-do-not-import-from-here/shared/index.d.ts +0 -12
  49. package/internal-do-not-import-from-here/shared/messaging/MessageBus.d.ts +0 -48
  50. package/internal-do-not-import-from-here/shared/messaging/MessageBusMediator.d.ts +0 -30
  51. package/internal-do-not-import-from-here/shared/messaging/index.d.ts +0 -2
  52. package/internal-do-not-import-from-here/shared/models/Broadcasting.d.ts +0 -25
  53. package/internal-do-not-import-from-here/shared/models/Broadcasting.js +0 -12
  54. package/internal-do-not-import-from-here/shared/models/DependencyInjection.d.ts +0 -19
  55. package/internal-do-not-import-from-here/shared/models/DependencyInjection.js +0 -9
  56. package/internal-do-not-import-from-here/shared/models/DynamicState.d.ts +0 -1
  57. package/internal-do-not-import-from-here/shared/models/DynamicState.js +0 -2
  58. package/internal-do-not-import-from-here/shared/models/Equals.d.ts +0 -3
  59. package/internal-do-not-import-from-here/shared/models/Equals.js +0 -44
  60. package/internal-do-not-import-from-here/shared/models/Future.d.ts +0 -60
  61. package/internal-do-not-import-from-here/shared/models/Future.js +0 -149
  62. package/internal-do-not-import-from-here/shared/models/Guid.d.ts +0 -25
  63. package/internal-do-not-import-from-here/shared/models/Guid.js +0 -80
  64. package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +0 -41
  65. package/internal-do-not-import-from-here/shared/models/HttpCommon.js +0 -9
  66. package/internal-do-not-import-from-here/shared/models/Messaging.d.ts +0 -23
  67. package/internal-do-not-import-from-here/shared/models/Messaging.js +0 -2
  68. package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +0 -34
  69. package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.js +0 -2
  70. package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +0 -28
  71. package/internal-do-not-import-from-here/shared/models/Realtime.js +0 -19
  72. package/internal-do-not-import-from-here/shared/models/SharedConstants.d.ts +0 -5
  73. package/internal-do-not-import-from-here/shared/models/SharedConstants.js +0 -9
  74. package/internal-do-not-import-from-here/shared/models/StringExtensions.d.ts +0 -6
  75. package/internal-do-not-import-from-here/shared/models/StringExtensions.js +0 -3
  76. package/internal-do-not-import-from-here/shared/models/StronglyTypedId.d.ts +0 -3
  77. package/internal-do-not-import-from-here/shared/models/StronglyTypedId.js +0 -2
  78. package/internal-do-not-import-from-here/shared/models/Tenant.d.ts +0 -4
  79. package/internal-do-not-import-from-here/shared/models/Tenant.js +0 -2
  80. package/internal-do-not-import-from-here/shared/models/Tokens.d.ts +0 -15
  81. package/internal-do-not-import-from-here/shared/models/Tokens.js +0 -2
  82. package/internal-do-not-import-from-here/shared/models/Topic.d.ts +0 -10
  83. package/internal-do-not-import-from-here/shared/models/Topic.js +0 -2
  84. package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +0 -14
  85. package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.js +0 -18
  86. package/internal-do-not-import-from-here/shared/models/Workers.d.ts +0 -29
  87. package/internal-do-not-import-from-here/shared/models/Workers.js +0 -8
  88. package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.d.ts +0 -13
  89. package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.js +0 -20
  90. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +0 -75
  91. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +0 -13
  92. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.d.ts +0 -7
  93. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +0 -5
  94. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.d.ts +0 -14
  95. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.js +0 -15
  96. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +0 -31
  97. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.js +0 -2
  98. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +0 -15
  99. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +0 -5
  100. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.d.ts +0 -8
  101. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.js +0 -2
  102. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +0 -16
  103. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +0 -5
  104. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +0 -40
  105. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +0 -17
  106. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +0 -8
  107. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +0 -11
  108. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +0 -21
  109. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +0 -10
  110. package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +0 -2
  111. package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.js +0 -2
  112. package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +0 -2
  113. package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +0 -5
  114. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.d.ts +0 -3
  115. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +0 -5
  116. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.d.ts +0 -4
  117. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +0 -5
  118. package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.d.ts +0 -2
  119. package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.js +0 -5
  120. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +0 -7
  121. package/internal-do-not-import-from-here/shared/models/hub/index.js +0 -10
  122. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +0 -10
  123. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.js +0 -2
  124. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +0 -5
  125. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.js +0 -2
  126. package/internal-do-not-import-from-here/shared/models/hub/social/index.d.ts +0 -2
  127. package/internal-do-not-import-from-here/shared/models/hub/social/index.js +0 -5
  128. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +0 -10
  129. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +0 -19
  130. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +0 -3
  131. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +0 -7
  132. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +0 -1
  133. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +0 -4
  134. package/internal-do-not-import-from-here/shared/models/index.d.ts +0 -21
  135. package/internal-do-not-import-from-here/shared/models/index.js +0 -25
  136. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +0 -116
  137. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.js +0 -12
  138. package/internal-do-not-import-from-here/shared/models/theming/Chrome.d.ts +0 -16
  139. package/internal-do-not-import-from-here/shared/models/theming/Chrome.js +0 -2
  140. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +0 -2
  141. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +0 -38
  142. package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.d.ts +0 -1
  143. package/internal-do-not-import-from-here/shared/models/theming/SharedColorMethods.js +0 -45
  144. package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +0 -22
  145. package/internal-do-not-import-from-here/shared/models/theming/Spacing.js +0 -11
  146. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +0 -107
  147. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +0 -28
  148. package/internal-do-not-import-from-here/shared/models/theming/Typography.d.ts +0 -59
  149. package/internal-do-not-import-from-here/shared/models/theming/Typography.js +0 -17
  150. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +0 -9
  151. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +0 -99
  152. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +0 -8
  153. package/internal-do-not-import-from-here/shared/models/theming/index.js +0 -12
  154. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +0 -87
  155. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.js +0 -2
  156. package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +0 -22
  157. package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.js +0 -2
  158. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +0 -20
  159. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +0 -5
  160. package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +0 -3
  161. package/internal-do-not-import-from-here/shared/models/velcron/index.js +0 -6
  162. package/internal-do-not-import-from-here/shared/services/ActivityService.d.ts +0 -27
  163. package/internal-do-not-import-from-here/shared/services/ActivitySubscriptionService.d.ts +0 -15
  164. package/internal-do-not-import-from-here/shared/services/DefineService.d.ts +0 -6
  165. package/internal-do-not-import-from-here/shared/services/RealtimeService.d.ts +0 -8
  166. package/internal-do-not-import-from-here/shared/services/index.d.ts +0 -4
  167. package/internal-do-not-import-from-here/shared/utils/index.d.ts +0 -4
  168. package/internal-do-not-import-from-here/shared/workers/Leader.d.ts +0 -6
  169. package/internal-do-not-import-from-here/shared/workers/WorkerProxy.d.ts +0 -11
  170. package/internal-do-not-import-from-here/shared/workers/index.d.ts +0 -2
  171. package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/chrome/ChromeJourney.d.ts +0 -22
  172. /package/internal-do-not-import-from-here/ux/blueprintpickers/{backgroundstylepicker → backgroundstyle}/BackgroundStyleEditor.d.ts +0 -0
  173. /package/internal-do-not-import-from-here/ux/blueprintpickers/{backgroundstylepicker → backgroundstyle}/docs/ExampleComponents.d.ts +0 -0
  174. /package/internal-do-not-import-from-here/ux/blueprintpickers/{backgroundstylepicker → backgroundstyle}/docs/SampleComponent.d.ts +0 -0
  175. /package/internal-do-not-import-from-here/ux/blueprintpickers/{backgroundstylepicker → backgroundstyle}/docs/index.d.ts +0 -0
  176. /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/ButtonBlueprintsViewer.d.ts +0 -0
  177. /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/ButtonStyleEditor.d.ts +0 -0
  178. /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/ButtonStylePicker.css.d.ts +0 -0
  179. /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/ButtonStylePicker.d.ts +0 -0
  180. /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/docs/ExampleComponents.d.ts +0 -0
  181. /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/docs/SampleComponent.d.ts +0 -0
  182. /package/internal-do-not-import-from-here/ux/blueprintpickers/{buttonstylepicker → buttonstyle}/docs/index.d.ts +0 -0
  183. /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromeBlueprintsViewer.d.ts +0 -0
  184. /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromeEditor.d.ts +0 -0
  185. /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromePicker.css.d.ts +0 -0
  186. /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/ChromeViewer.d.ts +0 -0
  187. /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/docs/ExampleComponents.d.ts +0 -0
  188. /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/docs/SampleComponent.d.ts +0 -0
  189. /package/internal-do-not-import-from-here/ux/blueprintpickers/{chromepicker → chrome}/docs/index.d.ts +0 -0
  190. /package/internal-do-not-import-from-here/ux/blueprintpickers/spacingpicker/{SpacingPreview.d.ts → SpacingViewer.d.ts} +0 -0
  191. /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/TabBlueprintsViewer.d.ts +0 -0
  192. /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/TabStyleEditor.d.ts +0 -0
  193. /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/TabStylePicker.css.d.ts +0 -0
  194. /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/TabStylePicker.d.ts +0 -0
  195. /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/docs/ExampleComponents.d.ts +0 -0
  196. /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/docs/SampleComponent.d.ts +0 -0
  197. /package/internal-do-not-import-from-here/ux/blueprintpickers/{tabstylepicker → tabs}/docs/index.d.ts +0 -0
  198. /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/TypographyEditor.d.ts +0 -0
  199. /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/TypographyPicker.css.d.ts +0 -0
  200. /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/TypographyPicker.d.ts +0 -0
  201. /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/docs/ExampleComponents.d.ts +0 -0
  202. /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/docs/SampleComponent.d.ts +0 -0
  203. /package/internal-do-not-import-from-here/ux/blueprintpickers/{typographypicker → typography}/docs/index.d.ts +0 -0
  204. /package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/{chrome/blades/ChromeBlueprintsBlade.d.ts → components/blades/BlockBlade.d.ts} +0 -0
  205. /package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/{chrome/blades/EditChromeBlueprintBlade.d.ts → components/blades/BlockBladeEdit.d.ts} +0 -0
  206. /package/internal-do-not-import-from-here/ux/theming-v2/admin/blades/blueprints/components/blades/{EditBlueprint.d.ts → EditBlueprints.d.ts} +0 -0
@@ -1 +0,0 @@
1
- export * from "./Http";
@@ -1,12 +0,0 @@
1
- /**
2
- * fx/shared that contain all code to share between worker and browser.
3
- * NOTE: it cant have any dependencies to fx core, worker and vendors stuffs
4
- * ***/
5
- export * from "./models";
6
- export * from "./broadcasting";
7
- export * from "./workers";
8
- export * from "./http";
9
- export * from "./services";
10
- export * from "./utils";
11
- export * from "./factory";
12
- export * from "./messaging";
@@ -1,48 +0,0 @@
1
- import { Topic, TopicSettings } from "../models";
2
- /**
3
- * A message bus where messages can be published and subscribed to based on a path
4
- * @class MessageBus
5
- */
6
- export declare class MessageBus {
7
- private static _subscribers;
8
- private static _subscriptionConfigs;
9
- /**
10
- * Publishes a message on the topic
11
- */
12
- static publish<T>(topic: Topic<T>, obj: T): void;
13
- /**
14
- * Clears the message cache for the topic
15
- */
16
- static clearCache<T>(topic: Topic<T>): number;
17
- /**
18
- * Subscribes to the specified Topic and triggers function when a message is published
19
- */
20
- static subscribe<T>(topic: Topic<T>, fn: (obj: T) => void): void;
21
- /**
22
- * Unsubscribes from the specified Topic
23
- */
24
- static unsubscribe<T>(topic: Topic<T>, fn: (obj: T) => void): void;
25
- /**
26
- * Creates a topic that messages can be published to, if topic already exists it will throw exception
27
- */
28
- static createTopic<T>(topic: Topic<T>, settings?: TopicSettings): void;
29
- /**
30
- * Creates a topic if it dosent exists, if it already exists it will ignore and continue without exception
31
- * @param topic
32
- * @param settings
33
- * @returns true/false created
34
- */
35
- static ensureTopic<T>(topic: Topic<T>, settings?: TopicSettings): boolean;
36
- /**
37
- * Returns true if the topic exists already
38
- */
39
- static topicExists<T>(topic: Topic<T>): boolean;
40
- /**
41
- * Builds the full path
42
- */
43
- private static buildTopicPath;
44
- /**
45
- * Ensures the subscribers array on the path
46
- */
47
- private static ensureSubscribers;
48
- }
@@ -1,30 +0,0 @@
1
- import { Topic, TopicSettings, IMessageBusSubscriptionHandler, IMessageBusTopicSubscription, IMessageBusTopicPublishSubscriber, IMessageBusTopicPublication, TopicCreatedFunc } from "../models";
2
- export declare class SubscriptionHandler implements IMessageBusSubscriptionHandler {
3
- private unSubcribeHandlers;
4
- constructor();
5
- /**
6
- * Unsubscribe to the related subscription(s)
7
- * and/or any subscriptions added using add method)
8
- * */
9
- unsubscribe: () => void;
10
- /**
11
- * Adds another unsubscribe handler, all will be unsubscribed to if calling unsubscribe
12
- * @param unSubscriptionHandler
13
- */
14
- add: (unSubscriptionHandler: IMessageBusSubscriptionHandler) => void;
15
- }
16
- export declare class MessageBusExposeOnlySubscription<T> implements IMessageBusTopicSubscription<T> {
17
- subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
18
- constructor(publishSubscriber: IMessageBusTopicPublishSubscriber<T>);
19
- }
20
- export declare class MessageBusExposeOnlyPublication<T> implements IMessageBusTopicPublication<T> {
21
- publish: (msg: T) => void;
22
- constructor(publishSubscriber: IMessageBusTopicPublishSubscriber<T>);
23
- }
24
- export declare class MessageBusTopicMediator<T> implements IMessageBusTopicPublishSubscriber<T> {
25
- private _topic;
26
- constructor(topic: Topic<T>, settings?: TopicSettings, onTopicCreated?: TopicCreatedFunc<T>);
27
- publish: (msg: T) => void;
28
- subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
29
- clearMessageCache: () => number;
30
- }
@@ -1,2 +0,0 @@
1
- export * from "./MessageBus";
2
- export * from "./MessageBusMediator";
@@ -1,25 +0,0 @@
1
- import { Topic } from "./Topic";
2
- export declare enum BroadcastTopicScopes {
3
- localUi = "localUi",
4
- localWorker = "localWorker",
5
- localAll = "localAll",
6
- globalUi = "globalUi",
7
- globalWorker = "globalWorker",
8
- globalAll = "globalAll"
9
- }
10
- export interface BroadcastTopic<TMessage> extends Topic<TMessage> {
11
- scope: BroadcastTopicScopes;
12
- }
13
- export interface BroadcastInvokeTopic<TMessage, TReturnValue> extends Topic<TMessage> {
14
- scope: BroadcastTopicScopes;
15
- }
16
- export interface BroadcastMessage<TMessage> extends BroadcastTopic<TMessage> {
17
- message: TMessage;
18
- }
19
- export interface BroadcastInvokeMessage<TMessage, TReturnValue> extends BroadcastInvokeTopic<TMessage, TReturnValue> {
20
- messageId: string;
21
- message: TMessage;
22
- type: "request" | "response";
23
- error?: string;
24
- response?: TReturnValue;
25
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BroadcastTopicScopes = void 0;
4
- var BroadcastTopicScopes;
5
- (function (BroadcastTopicScopes) {
6
- BroadcastTopicScopes["localUi"] = "localUi";
7
- BroadcastTopicScopes["localWorker"] = "localWorker";
8
- BroadcastTopicScopes["localAll"] = "localAll";
9
- BroadcastTopicScopes["globalUi"] = "globalUi";
10
- BroadcastTopicScopes["globalWorker"] = "globalWorker";
11
- BroadcastTopicScopes["globalAll"] = "globalAll";
12
- })(BroadcastTopicScopes || (exports.BroadcastTopicScopes = BroadcastTopicScopes = {}));
@@ -1,19 +0,0 @@
1
- export interface ActivationOptions {
2
- lifetime?: InstanceLifetimes;
3
- onStartup?: (type: any) => void;
4
- createFactory?: (classType: any) => any;
5
- onInstanceCreated?: (instance: any) => void;
6
- onBeforeInstanceCreated?: () => void;
7
- onDisposing?: (instance: any) => void;
8
- }
9
- export interface TypeDefinition extends ActivationOptions {
10
- type: any;
11
- }
12
- export declare enum InstanceLifetimes {
13
- Transient = 0,
14
- Singleton = 1,
15
- Scoped = 2
16
- }
17
- export interface IDisposable {
18
- onDisposing: () => void;
19
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstanceLifetimes = void 0;
4
- var InstanceLifetimes;
5
- (function (InstanceLifetimes) {
6
- InstanceLifetimes[InstanceLifetimes["Transient"] = 0] = "Transient";
7
- InstanceLifetimes[InstanceLifetimes["Singleton"] = 1] = "Singleton";
8
- InstanceLifetimes[InstanceLifetimes["Scoped"] = 2] = "Scoped";
9
- })(InstanceLifetimes || (exports.InstanceLifetimes = InstanceLifetimes = {}));
@@ -1 +0,0 @@
1
- export type DynamicState = object;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface IEquals<T extends Object> {
2
- equals: T;
3
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //have issue with guidvalue can't auto cast to string if have more extension method here.
4
- // declare global {
5
- // interface String {
6
- // equals?: {
7
- // component<TElement = typeof omfx>(cb: (elements: TElement) => any): boolean;
8
- // }
9
- // }
10
- // }
11
- const _equalsObject = {};
12
- const _equalsString = {};
13
- // only add extension methods when running in browser, not in node.js
14
- if (globalThis.omnia) {
15
- Object.defineProperty(String.prototype, "equals", {
16
- get() {
17
- _equalsString["_this_value"] = this;
18
- return _equalsString;
19
- },
20
- configurable: false,
21
- enumerable: false
22
- });
23
- Object.defineProperty(Object.prototype, "equals", {
24
- value: _equalsObject,
25
- writable: true,
26
- configurable: false,
27
- enumerable: false
28
- });
29
- // Object.defineProperty(String.prototype["equals"], "element", {
30
- // value: function () {
31
- // return function (cb: (elements) => any) {
32
- // const elementName = cb(new Proxy({}, {
33
- // get(target, key: string) {
34
- // return key;
35
- // }
36
- // }) as any);
37
- // return this.toString().replace(/-/g, "").toLowerCase().indexof(elementName.toLowerCase()) > -1;
38
- // };
39
- // },
40
- // writable: false,
41
- // configurable: false,
42
- // enumerable: false
43
- // });
44
- }
@@ -1,60 +0,0 @@
1
- export declare class Future<T> extends Promise<T> {
2
- resolve: (value: T) => void;
3
- reject: (reason: any) => void;
4
- resolving: boolean;
5
- private _resolved;
6
- private _rejected;
7
- private onAborted;
8
- constructor(executor: (resolve: (value: T) => void, reject: (reason?: any) => void, onAborted: (cb: (reason?: any) => void) => void) => void);
9
- /**
10
- * Handles success / rejection from Promise and returns the result as an object.
11
- * If the promise is rejected, the error will be in the error property.
12
- * No need to try/catch the promise when using this method.
13
- *
14
- * @return {*} {Future<{ success?: T, error?: Error; }>}
15
- * @memberof Future
16
- */
17
- tryCatch(): Future<{
18
- success: T;
19
- error: Error;
20
- }>;
21
- /**
22
- * Aborts the request
23
- *
24
- * @param {*} [reason]
25
- * @memberof Future
26
- */
27
- abort(reason?: any): void;
28
- /**
29
- * Creates a Future that resolves after a specified delay.
30
- *
31
- * @param {number} ms - The time to delay in milliseconds.
32
- * @returns {Future<void>} A Future that resolves after the specified delay.
33
- */
34
- static delay(ms: number): Future<void>;
35
- /**
36
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
37
- * resolve, or rejected when any Promise is rejected.
38
- * @param values An array of Promises.
39
- * @returns A new Promise.
40
- */
41
- static all<T extends readonly unknown[] | []>(values: T): Promise<{
42
- -readonly [P in keyof T]: Awaited<T[P]>;
43
- }>;
44
- get resolved(): boolean;
45
- get rejected(): boolean;
46
- static get [Symbol.species](): PromiseConstructor;
47
- get [Symbol.toStringTag](): string;
48
- /**
49
- * Creates a new instance of the Future class with a specific return value type.
50
- *
51
- * @template TReturnValue - The type of the return value for the Future instance.
52
- * @returns {Future<TReturnValue>} - A new instance of the Future class.
53
- */
54
- static new<TReturnValue>(): Future<TReturnValue>;
55
- }
56
- export declare class ResponsePromise<T> extends Promise<T> {
57
- cancelCb: (() => void);
58
- constructor(executor: any);
59
- cancel(): void;
60
- }
@@ -1,149 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResponsePromise = exports.Future = void 0;
4
- class Future extends Promise {
5
- constructor(executor) {
6
- let resolveLocal;
7
- let rejectLocal;
8
- // Cant have function here since this is undefined in setTimeout
9
- // eslint-disable-next-line func-style
10
- const onAborted = (cb) => {
11
- setTimeout(() => {
12
- this.onAborted = cb;
13
- });
14
- };
15
- function exec(resolve, reject) {
16
- // assign to local to prevent error assignbefore call super;
17
- resolveLocal = resolve;
18
- rejectLocal = reject;
19
- }
20
- super(exec);
21
- this.resolving = false;
22
- this._resolved = false;
23
- this._rejected = false;
24
- this.resolve = (value) => {
25
- this.resolving = false;
26
- this._resolved = true;
27
- resolveLocal(value);
28
- };
29
- this.reject = (reason) => {
30
- this.resolving = false;
31
- this._rejected = true;
32
- rejectLocal(reason);
33
- };
34
- if (executor) {
35
- executor(this.resolve, this.reject, onAborted);
36
- }
37
- }
38
- /**
39
- * Handles success / rejection from Promise and returns the result as an object.
40
- * If the promise is rejected, the error will be in the error property.
41
- * No need to try/catch the promise when using this method.
42
- *
43
- * @return {*} {Future<{ success?: T, error?: Error; }>}
44
- * @memberof Future
45
- */
46
- //tryCatch(): Future<{ success?: T, error?: Error; }> {
47
- tryCatch() {
48
- return new Future(async (resolve) => {
49
- try {
50
- const data = await this;
51
- resolve({ success: data, error: undefined });
52
- }
53
- catch (error) {
54
- resolve({ success: undefined, error });
55
- }
56
- });
57
- }
58
- /**
59
- * Aborts the request
60
- *
61
- * @param {*} [reason]
62
- * @memberof Future
63
- */
64
- abort(reason) {
65
- if (this.onAborted) {
66
- this.onAborted(reason);
67
- }
68
- else {
69
- throw "Failed calling abort() => The future has no onAborted callback or you tried to call abort immediately after the future was created.";
70
- }
71
- }
72
- /**
73
- * Creates a Future that resolves after a specified delay.
74
- *
75
- * @param {number} ms - The time to delay in milliseconds.
76
- * @returns {Future<void>} A Future that resolves after the specified delay.
77
- */
78
- static delay(ms) {
79
- return new Future((resolve) => {
80
- setTimeout(() => {
81
- resolve();
82
- }, ms);
83
- });
84
- }
85
- /**
86
- * Creates a Promise that is resolved with an array of results when all of the provided Promises
87
- * resolve, or rejected when any Promise is rejected.
88
- * @param values An array of Promises.
89
- * @returns A new Promise.
90
- */
91
- static all(values) {
92
- // have issue with Promise.all not working when promises is mixin Future and promise
93
- // so implement Future.all to make a wrapper promise to Future to resolve that issue.
94
- const promises = values.map(p => p instanceof Future ? new Promise((resolve, reject) => p.then(resolve, reject)) : p);
95
- return Promise.all(promises);
96
- }
97
- get resolved() {
98
- return this._resolved;
99
- }
100
- get rejected() {
101
- return this._rejected;
102
- }
103
- static get [Symbol.species]() {
104
- return Promise;
105
- }
106
- get [Symbol.toStringTag]() {
107
- // return Object value to make vue can build get/set reactive.
108
- // return "Object";
109
- //<<vue3>> back to normal because vue 3 use native proxy.
110
- return "Future";
111
- }
112
- /**
113
- * Creates a new instance of the Future class with a specific return value type.
114
- *
115
- * @template TReturnValue - The type of the return value for the Future instance.
116
- * @returns {Future<TReturnValue>} - A new instance of the Future class.
117
- */
118
- static new() {
119
- return new Future(() => { });
120
- }
121
- }
122
- exports.Future = Future;
123
- // Future.prototype["promise_then"] = Promise.prototype.then;
124
- // Future.prototype["then"] = function (resolve, reject) {
125
- // return Future.prototype["promise_then"].apply(this, arguments);
126
- // };
127
- class ResponsePromise extends Promise {
128
- constructor(executor) {
129
- const onCancel = (cb) => {
130
- //using nextTick because we cant use "this" before super()
131
- setTimeout(() => {
132
- this.cancelCb = cb;
133
- });
134
- };
135
- const oExecutor = (resolve, reject) => {
136
- executor(resolve, reject, onCancel);
137
- };
138
- super(oExecutor);
139
- }
140
- cancel() {
141
- if (this.cancelCb) {
142
- this.cancelCb();
143
- }
144
- else {
145
- console.warn("onCancel not provided");
146
- }
147
- }
148
- }
149
- exports.ResponsePromise = ResponsePromise;
@@ -1,25 +0,0 @@
1
- import "./Equals";
2
- import { IEquals } from "./Equals";
3
- export interface GuidValue extends Partial<IEquals<{
4
- guid(value: GuidValue): boolean;
5
- }>> {
6
- toString: () => string;
7
- }
8
- /**
9
- * Class to create a guid
10
- */
11
- export declare class Guid implements GuidValue {
12
- private static _empty;
13
- private value;
14
- equals: {
15
- guid: (value: GuidValue) => boolean;
16
- };
17
- static newGuid(): GuidValue;
18
- static get empty(): GuidValue;
19
- static isValid(guid: string | GuidValue): boolean;
20
- constructor(guid: string);
21
- toString(): string;
22
- toJSON: () => string;
23
- valueOf(): string;
24
- }
25
- export declare function guid(value: string): GuidValue;
@@ -1,80 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.guid = exports.Guid = void 0;
4
- //export interface GuidValue {
5
- // :string;
6
- //}
7
- require("./Equals"); // ensure execute code in equals first
8
- // export interface GuidValue {
9
- // toString: () => string;
10
- // }
11
- /**
12
- * Class to create a guid
13
- */
14
- class Guid {
15
- static { this._empty = new Guid("00000000-0000-0000-0000-000000000000"); }
16
- static newGuid() {
17
- return new Guid("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
18
- const r = Math.random() * 16 | 0;
19
- const v = (c == "x") ? r : (r & 0x3 | 0x8);
20
- return v.toString(16);
21
- }));
22
- }
23
- static get empty() {
24
- return this._empty;
25
- }
26
- static isValid(guid) {
27
- if (guid === undefined || guid === null) {
28
- return false;
29
- }
30
- const validRegex = /^[{]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}[}]?$/;
31
- return validRegex.test(guid.toString());
32
- }
33
- constructor(guid) {
34
- this.value = "";
35
- this.equals = {
36
- guid: (value) => {
37
- return this.toString() === value.toString();
38
- }
39
- };
40
- //We serialize as string value
41
- this.toJSON = () => {
42
- return this.value.toLowerCase();
43
- };
44
- if (guid) {
45
- if (Guid.isValid(guid)) {
46
- this.value = guid;
47
- }
48
- else {
49
- throw `The string '${guid}' is not a valid Guid`;
50
- }
51
- }
52
- }
53
- toString() {
54
- return this.value.toLowerCase();
55
- }
56
- valueOf() {
57
- return this.value.toLowerCase();
58
- }
59
- }
60
- exports.Guid = Guid;
61
- // only add extension methods when running in browser, not in node.js
62
- if (globalThis.omnia) {
63
- Object.defineProperty(String.prototype["equals"], "guid", {
64
- value: function (value) {
65
- return this["_this_value"].toString() === value.toString();
66
- },
67
- writable: false,
68
- configurable: false,
69
- enumerable: false
70
- });
71
- }
72
- // will make Guid class to static class to prevent new Guid instance later on
73
- // now expose new function to create guid
74
- function guid(value) {
75
- if (!Guid.isValid(value)) {
76
- throw `The string '${value}' is not a valid Guid`;
77
- }
78
- return value;
79
- }
80
- exports.guid = guid;
@@ -1,41 +0,0 @@
1
- export type HttpMethods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
2
- export type HttpCacheOptions = "no-cache" | "reload" | "force-cache" | "only-if-cached";
3
- export type HttpCredentials = "include" | "omit" | "same-origin";
4
- export interface HttpInterceptOptions {
5
- beforeRequest?: (request: HttpConfig) => HttpConfig;
6
- afterRequest?: <T>(response: HttpResponse<T>, request: HttpConfig) => HttpResponse<T>;
7
- }
8
- export interface HttpConfig {
9
- baseUrl?: string;
10
- headers?: {
11
- [key: string]: string;
12
- };
13
- query?: {
14
- [key: string]: string;
15
- };
16
- cache?: HttpCacheOptions;
17
- interceptors?: HttpInterceptOptions;
18
- abortable?: boolean;
19
- credentials?: HttpCredentials;
20
- executeOnWorker?: boolean;
21
- }
22
- export interface HttpResponse<TData> {
23
- data?: TData;
24
- status: Number;
25
- statusText: String;
26
- ok: Boolean;
27
- }
28
- export interface ApiResponse<T> {
29
- data: T;
30
- errorMessage: string;
31
- success: boolean;
32
- responseCode: ApiResponseCodes | number;
33
- }
34
- export interface HttpHeaders {
35
- [key: string]: string;
36
- }
37
- export declare enum ApiResponseCodes {
38
- Success = 0,
39
- UnAuthorized = 1,
40
- Exception = 2
41
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiResponseCodes = void 0;
4
- var ApiResponseCodes;
5
- (function (ApiResponseCodes) {
6
- ApiResponseCodes[ApiResponseCodes["Success"] = 0] = "Success";
7
- ApiResponseCodes[ApiResponseCodes["UnAuthorized"] = 1] = "UnAuthorized";
8
- ApiResponseCodes[ApiResponseCodes["Exception"] = 2] = "Exception";
9
- })(ApiResponseCodes || (exports.ApiResponseCodes = ApiResponseCodes = {}));
@@ -1,23 +0,0 @@
1
- export interface TopicCreatedFunc<T> {
2
- (created: IMessageBusTopicPublishSubscriber<T>): void;
3
- }
4
- export interface IMessageBusSubscriptionHandler {
5
- /**
6
- * Unsubscribe to the related subscription(s)
7
- * and/or any subscriptions added using add method)
8
- * */
9
- unsubscribe(): any;
10
- /**
11
- * Adds another unsubscribe handler, all will be unsubscribed to if calling unsubscribe
12
- * @param unSubscriptionHandler
13
- */
14
- add(unSubscriptionHandler: IMessageBusSubscriptionHandler): any;
15
- }
16
- export interface IMessageBusTopicSubscription<T> {
17
- subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
18
- }
19
- export interface IMessageBusTopicPublication<T> {
20
- publish: (msg: T) => void;
21
- }
22
- export interface IMessageBusTopicPublishSubscriber<T> extends IMessageBusTopicSubscription<T>, IMessageBusTopicPublication<T> {
23
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,34 +0,0 @@
1
- import { OmniaToken } from "./Tokens";
2
- import { Guid, GuidValue } from "./Guid";
3
- import { TenantIdentifier } from "./Tenant";
4
- import { ActorId } from "./hub";
5
- export interface OmniaSharedBootstrapData {
6
- uiThreadId: GuidValue;
7
- workerThreadId: GuidValue;
8
- customDomain?: string;
9
- defaultDomain: string;
10
- routePrefixes: string[];
11
- language: string;
12
- /**
13
- * The tokenKey is only avilable if we are running ITP or Dev intent
14
- */
15
- tokenKey?: OmniaToken;
16
- tokenRef: GuidValue;
17
- identity: string;
18
- hubActorId?: ActorId;
19
- licenses: Array<Guid>;
20
- hubDev?: boolean;
21
- realtimeDevPort?: string;
22
- tenant: TenantIdentifier;
23
- servingMode?: boolean;
24
- serviceDnsMapping: OmniaServiceToDnsMapping;
25
- authDisabled?: boolean;
26
- analytics: OmniaAnalytics;
27
- }
28
- export interface OmniaAnalytics {
29
- paq: any[];
30
- enabled: boolean;
31
- }
32
- export interface OmniaServiceToDnsMapping {
33
- [serviceId: string]: string;
34
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });