@cratis/event-models 0.0.0-stage → 0.106.0

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 (343) hide show
  1. package/README.md +44 -2
  2. package/dist/Board/BoardActions.d.ts +37 -0
  3. package/dist/Board/BoardCanvas.d.ts +6 -0
  4. package/dist/Board/BoardCanvasChrome.d.ts +9 -0
  5. package/dist/Board/BoardCollectionView.d.ts +22 -0
  6. package/dist/Board/BoardCollections.d.ts +17 -0
  7. package/dist/Board/BoardContextValue.d.ts +8 -0
  8. package/dist/Board/BoardEditing.d.ts +22 -0
  9. package/dist/Board/BoardInteraction.d.ts +10 -0
  10. package/dist/Board/BoardInteractionContext.d.ts +3 -0
  11. package/dist/Board/BoardInteractionProvider.d.ts +6 -0
  12. package/dist/Board/BoardNavigation.d.ts +4 -0
  13. package/dist/Board/BoardProvider.d.ts +7 -0
  14. package/dist/Board/BoardReadOnlyContext.d.ts +1 -0
  15. package/dist/Board/BoardSelection.d.ts +5 -0
  16. package/dist/Board/BoardToolbar.d.ts +7 -0
  17. package/dist/Board/EventModelBoard.d.ts +13 -0
  18. package/dist/Board/EventModelBoardEditor.d.ts +16 -0
  19. package/dist/Board/EventModelBoardHandle.d.ts +5 -0
  20. package/dist/Board/HostedEventModelBoard.d.ts +18 -0
  21. package/dist/Board/boardMinimap.d.ts +20 -0
  22. package/dist/Board/index.d.ts +19 -0
  23. package/dist/Board/isLargeBoard.d.ts +4 -0
  24. package/dist/Board/useBoard.d.ts +2 -0
  25. package/dist/Cards/ArtifactCard.d.ts +17 -0
  26. package/dist/Cards/ArtifactCardKind.d.ts +5 -0
  27. package/dist/Cards/Card.d.ts +18 -0
  28. package/dist/Cards/CardAction.d.ts +12 -0
  29. package/dist/Cards/CardActionButton.d.ts +9 -0
  30. package/dist/Cards/CardCorner.d.ts +4 -0
  31. package/dist/Cards/CardNameInput.d.ts +11 -0
  32. package/dist/Cards/CardSurface.d.ts +6 -0
  33. package/dist/Cards/EventTags.d.ts +8 -0
  34. package/dist/Cards/autoFitTitle.d.ts +29 -0
  35. package/dist/Cards/cardColors.d.ts +30 -0
  36. package/dist/Cards/index.d.ts +12 -0
  37. package/dist/Cards/pascalCaseBreak.d.ts +20 -0
  38. package/dist/Cards/useAutoFitTitle.d.ts +21 -0
  39. package/dist/Collections/CollectionGrid.d.ts +28 -0
  40. package/dist/Collections/CollectionGridEditor.d.ts +16 -0
  41. package/dist/Collections/CollectionGridFeature.d.ts +19 -0
  42. package/dist/Collections/CollectionGridFeatureColumn.d.ts +26 -0
  43. package/dist/Collections/CollectionGridFeatureHeaderControls.d.ts +13 -0
  44. package/dist/Collections/CollectionGridModule.d.ts +23 -0
  45. package/dist/Collections/CollectionGridModuleHeaderControls.d.ts +8 -0
  46. package/dist/Collections/CollectionGridSlice.d.ts +19 -0
  47. package/dist/Collections/CollectionGridSliceHeaderControls.d.ts +14 -0
  48. package/dist/Collections/CollectionGridSlots.d.ts +20 -0
  49. package/dist/Collections/CollectionGridTemplate.d.ts +6 -0
  50. package/dist/Collections/CollectionMoveHandle.d.ts +12 -0
  51. package/dist/Collections/CollectionMoved.d.ts +4 -0
  52. package/dist/Collections/CollectionViewport.d.ts +27 -0
  53. package/dist/Collections/collectionGridLayout.d.ts +11 -0
  54. package/dist/Collections/collectionState.d.ts +24 -0
  55. package/dist/Collections/estimateCollectionSize.d.ts +7 -0
  56. package/dist/Collections/index.d.ts +13 -0
  57. package/dist/Collections/useCollectionMove.d.ts +10 -0
  58. package/dist/Collections/useCollectionsArea.d.ts +27 -0
  59. package/dist/Connections/Connectors.d.ts +23 -0
  60. package/dist/Connections/FlowNodeActor.d.ts +13 -0
  61. package/dist/Connections/SliceConnections.d.ts +7 -0
  62. package/dist/Connections/SliceConnectionsContext.d.ts +11 -0
  63. package/dist/Connections/computeSliceConnections.d.ts +23 -0
  64. package/dist/Connections/flowNodeOrder.d.ts +3 -0
  65. package/dist/Connections/index.d.ts +7 -0
  66. package/dist/Connections/useConnectionHighlight.d.ts +7 -0
  67. package/dist/Features/FeatureAddMenu.d.ts +10 -0
  68. package/dist/Features/FeatureColumnFrame.d.ts +10 -0
  69. package/dist/Features/FeatureGridSurface.d.ts +15 -0
  70. package/dist/Features/FeatureHeader.d.ts +21 -0
  71. package/dist/Features/FeatureHeaderAction.d.ts +12 -0
  72. package/dist/Features/FeatureHeaderCell.d.ts +10 -0
  73. package/dist/Features/FeatureHeaderMenu.d.ts +10 -0
  74. package/dist/Features/FeatureHeaderMenuAction.d.ts +14 -0
  75. package/dist/Features/FeatureHeaderSuggestion.d.ts +9 -0
  76. package/dist/Features/FeatureSuggestions.d.ts +4 -0
  77. package/dist/Features/FeaturesArea.d.ts +42 -0
  78. package/dist/Features/FeaturesReordered.d.ts +2 -0
  79. package/dist/Features/featureAreaState.d.ts +27 -0
  80. package/dist/Features/featureDropEdge.d.ts +2 -0
  81. package/dist/Features/featureHeaderMenuItems.d.ts +4 -0
  82. package/dist/Features/index.d.ts +12 -0
  83. package/dist/Features/useFeatureDrag.d.ts +16 -0
  84. package/dist/Features/useFeatureSlotTargets.d.ts +11 -0
  85. package/dist/Geometry/CurveAxis.d.ts +5 -0
  86. package/dist/Geometry/connectionCurve.d.ts +13 -0
  87. package/dist/Geometry/index.d.ts +5 -0
  88. package/dist/Geometry/linkGeometry.d.ts +62 -0
  89. package/dist/Geometry/pillLabelWidth.d.ts +38 -0
  90. package/dist/Geometry/rowLabelWidth.d.ts +1 -0
  91. package/dist/HeaderDragging/HeaderDragGhost.d.ts +6 -0
  92. package/dist/HeaderDragging/HeaderDragStart.d.ts +8 -0
  93. package/dist/HeaderDragging/HeaderDragState.d.ts +8 -0
  94. package/dist/HeaderDragging/createHeaderDragGhost.d.ts +1 -0
  95. package/dist/HeaderDragging/headerDropIndex.d.ts +5 -0
  96. package/dist/HeaderDragging/index.d.ts +8 -0
  97. package/dist/HeaderDragging/reorderedIds.d.ts +2 -0
  98. package/dist/HeaderDragging/useHeaderDragIntent.d.ts +8 -0
  99. package/dist/HeaderDragging/zoomOfAncestor.d.ts +1 -0
  100. package/dist/Headers/CollapseButton.d.ts +6 -0
  101. package/dist/Headers/DetailsToggle.d.ts +5 -0
  102. package/dist/Headers/EditableLabel.d.ts +10 -0
  103. package/dist/Headers/EntityErrorIndicator.d.ts +10 -0
  104. package/dist/Headers/EntityErrorKind.d.ts +6 -0
  105. package/dist/Headers/ErroredEntity.d.ts +17 -0
  106. package/dist/Headers/PillHeader.d.ts +25 -0
  107. package/dist/Headers/index.d.ts +7 -0
  108. package/dist/Icons/CogWheel.d.ts +1 -0
  109. package/dist/Icons/index.d.ts +1 -0
  110. package/dist/Layout/boardMetrics.d.ts +20 -0
  111. package/dist/Layout/index.d.ts +3 -0
  112. package/dist/Layout/sliceLayout.d.ts +14 -0
  113. package/dist/Layout/sliceRows.d.ts +7 -0
  114. package/dist/Links/ModuleCollectionLinks.d.ts +19 -0
  115. package/dist/Links/drawableLinks.d.ts +8 -0
  116. package/dist/Links/index.d.ts +2 -0
  117. package/dist/Links/linkState.d.ts +17 -0
  118. package/dist/Menus/MenuDropdown.d.ts +29 -0
  119. package/dist/Menus/index.d.ts +1 -0
  120. package/dist/Messages/EventModelMessages.d.ts +153 -0
  121. package/dist/Messages/EventModelMessagesContext.d.ts +3 -0
  122. package/dist/Messages/EventModelMessagesProvider.d.ts +7 -0
  123. package/dist/Messages/defaultEventModelMessages.d.ts +2 -0
  124. package/dist/Messages/index.d.ts +4 -0
  125. package/dist/Model/Actor.d.ts +9 -0
  126. package/dist/Model/ActorType.d.ts +5 -0
  127. package/dist/Model/Assignee.d.ts +8 -0
  128. package/dist/Model/AssigneeKind.d.ts +5 -0
  129. package/dist/Model/AutomationTrigger.d.ts +9 -0
  130. package/dist/Model/AutomationTriggerSchedule.d.ts +8 -0
  131. package/dist/Model/AutomationTriggerType.d.ts +6 -0
  132. package/dist/Model/CommandConcurrency.d.ts +9 -0
  133. package/dist/Model/CommandItem.d.ts +13 -0
  134. package/dist/Model/CommandPropertyRules.d.ts +5 -0
  135. package/dist/Model/CommandRule.d.ts +4 -0
  136. package/dist/Model/ConcurrencyBinding.d.ts +5 -0
  137. package/dist/Model/ConcurrencyValueSource.d.ts +5 -0
  138. package/dist/Model/EventConstraint.d.ts +4 -0
  139. package/dist/Model/EventConstraints.d.ts +5 -0
  140. package/dist/Model/EventItem.d.ts +11 -0
  141. package/dist/Model/EventModel.d.ts +11 -0
  142. package/dist/Model/ExternalEventItem.d.ts +6 -0
  143. package/dist/Model/Feature.d.ts +14 -0
  144. package/dist/Model/Module.d.ts +12 -0
  145. package/dist/Model/ModuleCollection.d.ts +10 -0
  146. package/dist/Model/ModuleCollectionLink.d.ts +6 -0
  147. package/dist/Model/PersonaReference.d.ts +5 -0
  148. package/dist/Model/Position.d.ts +4 -0
  149. package/dist/Model/QueryItem.d.ts +7 -0
  150. package/dist/Model/QueryParameter.d.ts +5 -0
  151. package/dist/Model/QueryParameterType.d.ts +8 -0
  152. package/dist/Model/ReadModelItem.d.ts +8 -0
  153. package/dist/Model/ScreenTemplate.d.ts +4 -0
  154. package/dist/Model/Slice.d.ts +31 -0
  155. package/dist/Model/SliceSpecification.d.ts +19 -0
  156. package/dist/Model/SliceStatus.d.ts +9 -0
  157. package/dist/Model/SliceType.d.ts +6 -0
  158. package/dist/Model/SpecificationCommand.d.ts +7 -0
  159. package/dist/Model/SpecificationError.d.ts +7 -0
  160. package/dist/Model/SpecificationErrorRuleKind.d.ts +5 -0
  161. package/dist/Model/SpecificationErrorRuleReference.d.ts +8 -0
  162. package/dist/Model/SpecificationGivenEvent.d.ts +7 -0
  163. package/dist/Model/SpecificationReadModel.d.ts +6 -0
  164. package/dist/Model/SpecificationRunOutcome.d.ts +5 -0
  165. package/dist/Model/SpecificationThenEvent.d.ts +7 -0
  166. package/dist/Model/StickyNote.d.ts +8 -0
  167. package/dist/Model/UserExperienceActor.d.ts +10 -0
  168. package/dist/Model/index.d.ts +43 -0
  169. package/dist/Modules/ModuleColumnFrame.d.ts +11 -0
  170. package/dist/Modules/ModuleDropIndicator.d.ts +1 -0
  171. package/dist/Modules/ModuleHeader.d.ts +20 -0
  172. package/dist/Modules/ModuleHeaderAction.d.ts +14 -0
  173. package/dist/Modules/ModuleHeaderCell.d.ts +7 -0
  174. package/dist/Modules/ModuleHeaderMenu.d.ts +10 -0
  175. package/dist/Modules/ModulePlaceholder.d.ts +6 -0
  176. package/dist/Modules/ModuleSurface.d.ts +15 -0
  177. package/dist/Modules/ModulesArea.d.ts +23 -0
  178. package/dist/Modules/ModulesReordered.d.ts +2 -0
  179. package/dist/Modules/index.d.ts +12 -0
  180. package/dist/Modules/moduleAreaState.d.ts +27 -0
  181. package/dist/Modules/moduleWidth.d.ts +2 -0
  182. package/dist/Modules/persistModuleChange.d.ts +1 -0
  183. package/dist/Modules/useModuleDrag.d.ts +15 -0
  184. package/dist/Pickers/EventReferencePicker.d.ts +10 -0
  185. package/dist/Pickers/PickerPanel.d.ts +16 -0
  186. package/dist/Pickers/index.d.ts +2 -0
  187. package/dist/Pickers/useDismissOnOutsidePointer.d.ts +2 -0
  188. package/dist/Presentation/DetailLevel.d.ts +20 -0
  189. package/dist/Presentation/EventModelPresentation.d.ts +8 -0
  190. package/dist/Presentation/EventModelPresentationContext.d.ts +3 -0
  191. package/dist/Presentation/EventModelPresentationProvider.d.ts +7 -0
  192. package/dist/Presentation/VisualizationMode.d.ts +1 -0
  193. package/dist/Presentation/defaultEventModelPresentation.d.ts +2 -0
  194. package/dist/Presentation/detailsVisibility.d.ts +12 -0
  195. package/dist/Presentation/index.d.ts +7 -0
  196. package/dist/Properties/SchemaTooltipProperties.d.ts +9 -0
  197. package/dist/Properties/TypeBadge.d.ts +10 -0
  198. package/dist/Properties/index.d.ts +3 -0
  199. package/dist/Properties/schemaProperties.d.ts +6 -0
  200. package/dist/Reading/DocumentNode.d.ts +22 -0
  201. package/dist/Reading/InvalidEventModelDocument.d.ts +4 -0
  202. package/dist/Reading/index.d.ts +4 -0
  203. package/dist/Reading/isKnownValue.d.ts +1 -0
  204. package/dist/Reading/readActors.d.ts +4 -0
  205. package/dist/Reading/readBoardItems.d.ts +5 -0
  206. package/dist/Reading/readEventModelDocument.d.ts +2 -0
  207. package/dist/Reading/readJsonSchema.d.ts +2 -0
  208. package/dist/Reading/readModules.d.ts +3 -0
  209. package/dist/Reading/readSlice.d.ts +3 -0
  210. package/dist/Reading/readSliceItems.d.ts +7 -0
  211. package/dist/Reading/readSpecification.d.ts +3 -0
  212. package/dist/References/EventNavigateButton.d.ts +5 -0
  213. package/dist/References/ExternalEventCard.d.ts +14 -0
  214. package/dist/References/index.d.ts +3 -0
  215. package/dist/References/useReferenceHover.d.ts +12 -0
  216. package/dist/RowLabels/ActorRowDragGhost.d.ts +5 -0
  217. package/dist/RowLabels/ActorRowDropIndicator.d.ts +1 -0
  218. package/dist/RowLabels/ActorsReordered.d.ts +3 -0
  219. package/dist/RowLabels/RowLabel.d.ts +19 -0
  220. package/dist/RowLabels/RowLabelAction.d.ts +8 -0
  221. package/dist/RowLabels/RowLabelBadge.d.ts +8 -0
  222. package/dist/RowLabels/RowLabelsColumn.d.ts +20 -0
  223. package/dist/RowLabels/RowLabelsColumnFrame.d.ts +7 -0
  224. package/dist/RowLabels/actorKinds.d.ts +8 -0
  225. package/dist/RowLabels/actorRows.d.ts +4 -0
  226. package/dist/RowLabels/index.d.ts +12 -0
  227. package/dist/RowLabels/rowTypeName.d.ts +3 -0
  228. package/dist/RowLabels/useActorRowDrag.d.ts +30 -0
  229. package/dist/Rows/CellAction.d.ts +8 -0
  230. package/dist/Rows/CellActionButton.d.ts +6 -0
  231. package/dist/Rows/CellCorner.d.ts +7 -0
  232. package/dist/Rows/CellCornerAction.d.ts +7 -0
  233. package/dist/Rows/CellCornerPlacement.d.ts +4 -0
  234. package/dist/Rows/Chat/ChatCell.d.ts +9 -0
  235. package/dist/Rows/Chat/index.d.ts +1 -0
  236. package/dist/Rows/Events/EventCard.d.ts +9 -0
  237. package/dist/Rows/Events/EventReferenceCard.d.ts +7 -0
  238. package/dist/Rows/Events/EventsCell.d.ts +12 -0
  239. package/dist/Rows/Events/SliceEvents.d.ts +11 -0
  240. package/dist/Rows/Events/index.d.ts +5 -0
  241. package/dist/Rows/Events/referenceableEvents.d.ts +2 -0
  242. package/dist/Rows/Interaction/InteractionCard.d.ts +14 -0
  243. package/dist/Rows/Interaction/InteractionCell.d.ts +31 -0
  244. package/dist/Rows/Interaction/InteractionMiniCard.d.ts +4 -0
  245. package/dist/Rows/Interaction/OptionalReadModel.d.ts +6 -0
  246. package/dist/Rows/Interaction/SliceInteraction.d.ts +11 -0
  247. package/dist/Rows/Interaction/index.d.ts +5 -0
  248. package/dist/Rows/RowType.d.ts +7 -0
  249. package/dist/Rows/System/SystemCell.d.ts +12 -0
  250. package/dist/Rows/System/TriggerControl.d.ts +8 -0
  251. package/dist/Rows/System/TriggerKind.d.ts +5 -0
  252. package/dist/Rows/System/index.d.ts +4 -0
  253. package/dist/Rows/System/triggerBadges.d.ts +4 -0
  254. package/dist/Rows/UserExperience/AddPrototypeButton.d.ts +7 -0
  255. package/dist/Rows/UserExperience/PrototypeTemplate.d.ts +6 -0
  256. package/dist/Rows/UserExperience/UiCell.d.ts +17 -0
  257. package/dist/Rows/UserExperience/addPrototypeMenuItems.d.ts +8 -0
  258. package/dist/Rows/UserExperience/index.d.ts +4 -0
  259. package/dist/Rows/eventRowAffordances.d.ts +5 -0
  260. package/dist/Rows/index.d.ts +12 -0
  261. package/dist/SliceDragging/SliceDragGestureVerdict.d.ts +5 -0
  262. package/dist/SliceDragging/SliceDragGhost.d.ts +6 -0
  263. package/dist/SliceDragging/SliceDropIndicator.d.ts +5 -0
  264. package/dist/SliceDragging/SliceDropTarget.d.ts +14 -0
  265. package/dist/SliceDragging/SliceDropVerdict.d.ts +4 -0
  266. package/dist/SliceDragging/SliceMoved.d.ts +2 -0
  267. package/dist/SliceDragging/ValidateSliceDrop.d.ts +3 -0
  268. package/dist/SliceDragging/dropIndicatorClassName.d.ts +1 -0
  269. package/dist/SliceDragging/index.d.ts +14 -0
  270. package/dist/SliceDragging/readSliceDragGesture.d.ts +5 -0
  271. package/dist/SliceDragging/readSlicePress.d.ts +20 -0
  272. package/dist/SliceDragging/sliceMove.d.ts +10 -0
  273. package/dist/SliceDragging/snapshotSlice.d.ts +8 -0
  274. package/dist/SliceDragging/useSliceDrag.d.ts +30 -0
  275. package/dist/SliceDragging/useSliceDragIntent.d.ts +10 -0
  276. package/dist/SliceTypes/SliceTypeIcon.d.ts +5 -0
  277. package/dist/SliceTypes/SliceTypeMenu.d.ts +6 -0
  278. package/dist/SliceTypes/index.d.ts +3 -0
  279. package/dist/SliceTypes/sliceTypeMenuItems.d.ts +7 -0
  280. package/dist/Slices/SliceColumn.d.ts +18 -0
  281. package/dist/Slices/SliceColumnFrame.d.ts +20 -0
  282. package/dist/Slices/SliceContext.d.ts +2 -0
  283. package/dist/Slices/SliceContextValue.d.ts +7 -0
  284. package/dist/Slices/SliceHeader.d.ts +14 -0
  285. package/dist/Slices/SliceHeaderAction.d.ts +10 -0
  286. package/dist/Slices/SliceHeaderSlice.d.ts +2 -0
  287. package/dist/Slices/SliceNames.d.ts +6 -0
  288. package/dist/Slices/SlicePlaceholder.d.ts +15 -0
  289. package/dist/Slices/SliceProvider.d.ts +10 -0
  290. package/dist/Slices/SliceRows.d.ts +28 -0
  291. package/dist/Slices/SlicesArea.d.ts +38 -0
  292. package/dist/Slices/createOptimisticSlice.d.ts +3 -0
  293. package/dist/Slices/index.d.ts +15 -0
  294. package/dist/Slices/resolveSliceReadOnly.d.ts +3 -0
  295. package/dist/Slices/sliceAreaState.d.ts +43 -0
  296. package/dist/Slices/useSlice.d.ts +3 -0
  297. package/dist/Specifications/GivenSection.d.ts +12 -0
  298. package/dist/Specifications/SpecificationAction.d.ts +19 -0
  299. package/dist/Specifications/SpecificationAddPicker.d.ts +11 -0
  300. package/dist/Specifications/SpecificationCollection.d.ts +16 -0
  301. package/dist/Specifications/SpecificationEditing.d.ts +20 -0
  302. package/dist/Specifications/SpecificationErrorCard.d.ts +5 -0
  303. package/dist/Specifications/SpecificationHeader.d.ts +14 -0
  304. package/dist/Specifications/SpecificationItemCard.d.ts +7 -0
  305. package/dist/Specifications/SpecificationItemKind.d.ts +5 -0
  306. package/dist/Specifications/SpecificationItemToOpen.d.ts +14 -0
  307. package/dist/Specifications/SpecificationRow.d.ts +8 -0
  308. package/dist/Specifications/SpecificationRunButton.d.ts +7 -0
  309. package/dist/Specifications/SpecificationRunState.d.ts +23 -0
  310. package/dist/Specifications/SpecificationSection.d.ts +8 -0
  311. package/dist/Specifications/SpecificationStatus.d.ts +14 -0
  312. package/dist/Specifications/ThenSection.d.ts +15 -0
  313. package/dist/Specifications/WhenSection.d.ts +12 -0
  314. package/dist/Specifications/index.d.ts +10 -0
  315. package/dist/Specifications/itemValues.d.ts +7 -0
  316. package/dist/Specifications/ruleErrors.d.ts +8 -0
  317. package/dist/Specifications/specificationCollectionState.d.ts +7 -0
  318. package/dist/Specifications/specificationEvents.d.ts +3 -0
  319. package/dist/Statuses/SliceStatusIcon.d.ts +5 -0
  320. package/dist/Statuses/SliceStatusPicker.d.ts +8 -0
  321. package/dist/Statuses/changeSliceStatus.d.ts +2 -0
  322. package/dist/Statuses/index.d.ts +4 -0
  323. package/dist/Statuses/sliceStatuses.d.ts +6 -0
  324. package/dist/StickyNotes/StickyNoteBounds.d.ts +6 -0
  325. package/dist/StickyNotes/StickyNoteChanges.d.ts +9 -0
  326. package/dist/StickyNotes/StickyNoteHandle.d.ts +4 -0
  327. package/dist/StickyNotes/StickyNoteState.d.ts +16 -0
  328. package/dist/StickyNotes/StickyNotes.d.ts +6 -0
  329. package/dist/StickyNotes/index.d.ts +6 -0
  330. package/dist/StickyNotes/isEditableTarget.d.ts +1 -0
  331. package/dist/Tooltips/AnchoredOverlay.d.ts +27 -0
  332. package/dist/Tooltips/GridTooltip.d.ts +21 -0
  333. package/dist/Tooltips/index.d.ts +2 -0
  334. package/dist/Viewport/index.d.ts +2 -0
  335. package/dist/Viewport/useInViewport.d.ts +3 -0
  336. package/dist/Viewport/viewportFlushScheduler.d.ts +7 -0
  337. package/dist/event-model-document.schema.json +827 -0
  338. package/dist/event-models.css +2 -0
  339. package/dist/index.d.ts +30 -0
  340. package/dist/index.js +7682 -0
  341. package/dist/index.js.map +1 -0
  342. package/dist/theme.css +53 -0
  343. package/package.json +66 -3
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { EventModelMessages } from './EventModelMessages';
3
+ export interface EventModelMessagesProviderProps {
4
+ messages: EventModelMessages;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare const EventModelMessagesProvider: ({ messages, children }: EventModelMessagesProviderProps) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { EventModelMessages } from './EventModelMessages';
2
+ export declare const defaultEventModelMessages: EventModelMessages;
@@ -0,0 +1,4 @@
1
+ export * from './EventModelMessages';
2
+ export * from './defaultEventModelMessages';
3
+ export * from './EventModelMessagesContext';
4
+ export * from './EventModelMessagesProvider';
@@ -0,0 +1,9 @@
1
+ import type { ActorType } from './ActorType';
2
+ import type { PersonaReference } from './PersonaReference';
3
+ export interface Actor {
4
+ id: string;
5
+ name: string;
6
+ actorType: ActorType;
7
+ description: string;
8
+ persona?: PersonaReference;
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ActorType {
2
+ UIRole = 0,
3
+ systemRole = 1,
4
+ chatRole = 2
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { AssigneeKind } from './AssigneeKind';
3
+ export interface Assignee {
4
+ id: Guid;
5
+ name: string;
6
+ kind: AssigneeKind;
7
+ avatar?: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum AssigneeKind {
2
+ system = "system",
3
+ agent = "agent",
4
+ user = "user"
5
+ }
@@ -0,0 +1,9 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { AutomationTriggerSchedule } from './AutomationTriggerSchedule';
3
+ import type { AutomationTriggerType } from './AutomationTriggerType';
4
+ export interface AutomationTrigger {
5
+ type: AutomationTriggerType;
6
+ description: string;
7
+ schedule?: AutomationTriggerSchedule;
8
+ eventId?: Guid;
9
+ }
@@ -0,0 +1,8 @@
1
+ export interface AutomationTriggerSchedule {
2
+ intervalMinutes: number;
3
+ intervalHours: number;
4
+ timeOfDay: string;
5
+ dayOfWeek: number;
6
+ dayOfMonth: number;
7
+ description: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum AutomationTriggerType {
2
+ timer = 0,
3
+ event = 1,
4
+ custom = 2,
5
+ none = 3
6
+ }
@@ -0,0 +1,9 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { ConcurrencyBinding } from './ConcurrencyBinding';
3
+ export interface CommandConcurrency {
4
+ scopeId?: Guid;
5
+ includeEventSource: boolean;
6
+ eventSourceType?: ConcurrencyBinding;
7
+ eventStreamType?: ConcurrencyBinding;
8
+ eventStreamId?: ConcurrencyBinding;
9
+ }
@@ -0,0 +1,13 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { JsonSchema } from '@cratis/components/types';
3
+ import type { CommandConcurrency } from './CommandConcurrency';
4
+ import type { CommandPropertyRules } from './CommandPropertyRules';
5
+ export interface CommandItem {
6
+ id: Guid;
7
+ name: string;
8
+ schema: JsonSchema;
9
+ stateSchema: JsonSchema;
10
+ logicDescription: string;
11
+ rules?: CommandPropertyRules[];
12
+ concurrency?: CommandConcurrency;
13
+ }
@@ -0,0 +1,5 @@
1
+ import type { CommandRule } from './CommandRule';
2
+ export interface CommandPropertyRules {
3
+ propertyName: string;
4
+ rules: CommandRule[];
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface CommandRule {
2
+ errorMessage: string;
3
+ ruleType: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import type { ConcurrencyValueSource } from './ConcurrencyValueSource';
2
+ export interface ConcurrencyBinding {
3
+ source: ConcurrencyValueSource;
4
+ value: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ConcurrencyValueSource {
2
+ notSet = 0,
3
+ value = 1,
4
+ commandProperty = 2
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface EventConstraint {
2
+ name: string;
3
+ message: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import type { EventConstraint } from './EventConstraint';
2
+ export interface EventConstraints {
3
+ unique?: EventConstraint;
4
+ uniqueEventType?: EventConstraint;
5
+ }
@@ -0,0 +1,11 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { JsonSchema } from '@cratis/components/types';
3
+ import type { EventConstraints } from './EventConstraints';
4
+ export interface EventItem {
5
+ id: Guid;
6
+ name: string;
7
+ schema: JsonSchema;
8
+ sourceEventId?: string;
9
+ tags?: string[];
10
+ constraints?: EventConstraints;
11
+ }
@@ -0,0 +1,11 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { ModuleCollection } from './ModuleCollection';
3
+ import type { ModuleCollectionLink } from './ModuleCollectionLink';
4
+ import type { StickyNote } from './StickyNote';
5
+ export interface EventModel {
6
+ id: Guid;
7
+ name: string;
8
+ collections: ModuleCollection[];
9
+ stickyNotes: StickyNote[];
10
+ links: ModuleCollectionLink[];
11
+ }
@@ -0,0 +1,6 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export interface ExternalEventItem {
3
+ id: Guid;
4
+ name: string;
5
+ sourceEventId: string;
6
+ }
@@ -0,0 +1,14 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { ScreenTemplate } from './ScreenTemplate';
3
+ import type { Slice } from './Slice';
4
+ export interface Feature {
5
+ id: Guid;
6
+ name: string;
7
+ subFeatures: Feature[];
8
+ slices: Slice[];
9
+ collapsed: boolean;
10
+ rowCollapsed: boolean;
11
+ enabled: boolean;
12
+ screenTemplate?: ScreenTemplate;
13
+ commentCount: number;
14
+ }
@@ -0,0 +1,12 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { Feature } from './Feature';
3
+ import type { ScreenTemplate } from './ScreenTemplate';
4
+ export interface Module {
5
+ id: Guid;
6
+ name: string;
7
+ features: Feature[];
8
+ collapsed: boolean;
9
+ sortOrder: number;
10
+ screenTemplate?: ScreenTemplate;
11
+ commentCount: number;
12
+ }
@@ -0,0 +1,10 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { Actor } from './Actor';
3
+ import type { Module } from './Module';
4
+ import type { Position } from './Position';
5
+ export interface ModuleCollection {
6
+ id: Guid;
7
+ position: Position;
8
+ modules: Module[];
9
+ actors: Actor[];
10
+ }
@@ -0,0 +1,6 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export interface ModuleCollectionLink {
3
+ id: Guid;
4
+ sourceCollectionId: Guid;
5
+ targetCollectionId: Guid;
6
+ }
@@ -0,0 +1,5 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export interface PersonaReference {
3
+ id: Guid;
4
+ name: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface Position {
2
+ x: number;
3
+ y: number;
4
+ }
@@ -0,0 +1,7 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { QueryParameter } from './QueryParameter';
3
+ export interface QueryItem {
4
+ id: Guid;
5
+ name: string;
6
+ parameters: QueryParameter[];
7
+ }
@@ -0,0 +1,5 @@
1
+ import type { QueryParameterType } from './QueryParameterType';
2
+ export interface QueryParameter {
3
+ name: string;
4
+ type: QueryParameterType;
5
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum QueryParameterType {
2
+ text = 0,
3
+ number = 1,
4
+ boolean = 2,
5
+ date = 3,
6
+ time = 4,
7
+ uniqueId = 5
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { JsonSchema } from '@cratis/components/types';
3
+ export interface ReadModelItem {
4
+ id: Guid;
5
+ name: string;
6
+ schema: JsonSchema;
7
+ materializes: boolean;
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface ScreenTemplate {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,31 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { Assignee } from './Assignee';
3
+ import type { AutomationTrigger } from './AutomationTrigger';
4
+ import type { CommandItem } from './CommandItem';
5
+ import type { EventItem } from './EventItem';
6
+ import type { ExternalEventItem } from './ExternalEventItem';
7
+ import type { QueryItem } from './QueryItem';
8
+ import type { ReadModelItem } from './ReadModelItem';
9
+ import type { SliceSpecification } from './SliceSpecification';
10
+ import type { SliceStatus } from './SliceStatus';
11
+ import type { SliceType } from './SliceType';
12
+ import type { UserExperienceActor } from './UserExperienceActor';
13
+ export interface Slice {
14
+ id: Guid;
15
+ name: string;
16
+ sliceType: SliceType;
17
+ description: string;
18
+ status: SliceStatus;
19
+ collapsed: boolean;
20
+ sortOrder: number;
21
+ command?: CommandItem;
22
+ readModel?: ReadModelItem;
23
+ externalEvents: ExternalEventItem[];
24
+ events: EventItem[];
25
+ queries: QueryItem[];
26
+ actors: UserExperienceActor[];
27
+ automationTrigger?: AutomationTrigger;
28
+ specifications: SliceSpecification[];
29
+ commentCount: number;
30
+ assignee?: Assignee;
31
+ }
@@ -0,0 +1,19 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { SpecificationCommand } from './SpecificationCommand';
3
+ import type { SpecificationError } from './SpecificationError';
4
+ import type { SpecificationGivenEvent } from './SpecificationGivenEvent';
5
+ import type { SpecificationReadModel } from './SpecificationReadModel';
6
+ import type { SpecificationRunOutcome } from './SpecificationRunOutcome';
7
+ import type { SpecificationThenEvent } from './SpecificationThenEvent';
8
+ export interface SliceSpecification {
9
+ id: Guid;
10
+ name: string;
11
+ given: SpecificationGivenEvent[];
12
+ when?: SpecificationCommand;
13
+ givenReadModel?: SpecificationReadModel;
14
+ thenEvents: SpecificationThenEvent[];
15
+ thenErrors: SpecificationError[];
16
+ collapsed: boolean;
17
+ lastRunOutcome?: SpecificationRunOutcome;
18
+ lastRunMessage?: string;
19
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum SliceStatus {
2
+ notStarted = 0,
3
+ draft = 1,
4
+ readyForImplementation = 2,
5
+ inProgress = 3,
6
+ readyForReview = 4,
7
+ done = 5,
8
+ analysis = 6
9
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum SliceType {
2
+ stateChange = 0,
3
+ stateView = 1,
4
+ automation = 2,
5
+ translator = 3
6
+ }
@@ -0,0 +1,7 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export interface SpecificationCommand {
3
+ id: Guid;
4
+ commandId?: Guid;
5
+ name: string;
6
+ values: Record<string, unknown>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { SpecificationErrorRuleReference } from './SpecificationErrorRuleReference';
3
+ export interface SpecificationError {
4
+ id: Guid;
5
+ name: string;
6
+ reference?: SpecificationErrorRuleReference;
7
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum SpecificationErrorRuleKind {
2
+ commandValidationRule = 0,
3
+ eventUniqueConstraint = 1,
4
+ eventUniqueEventTypeConstraint = 2
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { SpecificationErrorRuleKind } from './SpecificationErrorRuleKind';
3
+ export interface SpecificationErrorRuleReference {
4
+ kind: SpecificationErrorRuleKind;
5
+ itemId: Guid;
6
+ propertyName: string;
7
+ ruleType: string;
8
+ }
@@ -0,0 +1,7 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export interface SpecificationGivenEvent {
3
+ id: Guid;
4
+ name: string;
5
+ eventId: Guid;
6
+ values: Record<string, unknown>;
7
+ }
@@ -0,0 +1,6 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export interface SpecificationReadModel {
3
+ id: Guid;
4
+ readModelItemId: Guid;
5
+ name: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum SpecificationRunOutcome {
2
+ passed = 0,
3
+ failed = 1,
4
+ inconclusive = 2
5
+ }
@@ -0,0 +1,7 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export interface SpecificationThenEvent {
3
+ id: Guid;
4
+ name: string;
5
+ eventId: Guid;
6
+ values: Record<string, unknown>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import type { Position } from './Position';
2
+ export interface StickyNote {
3
+ id: string;
4
+ position: Position;
5
+ width: number;
6
+ height: number;
7
+ text: string;
8
+ }
@@ -0,0 +1,10 @@
1
+ import type { PrototypeLayout, UIElement } from '@cratis/scene';
2
+ import type { ActorType } from './ActorType';
3
+ export interface UserExperienceActor {
4
+ id: string;
5
+ type: ActorType;
6
+ elements: UIElement[];
7
+ layout: PrototypeLayout;
8
+ windowWidth: number;
9
+ windowHeight: number;
10
+ }
@@ -0,0 +1,43 @@
1
+ export * from './Actor';
2
+ export * from './ActorType';
3
+ export * from './Assignee';
4
+ export * from './AssigneeKind';
5
+ export * from './AutomationTrigger';
6
+ export * from './AutomationTriggerSchedule';
7
+ export * from './AutomationTriggerType';
8
+ export * from './CommandConcurrency';
9
+ export * from './CommandItem';
10
+ export * from './CommandPropertyRules';
11
+ export * from './CommandRule';
12
+ export * from './ConcurrencyBinding';
13
+ export * from './ConcurrencyValueSource';
14
+ export * from './EventConstraint';
15
+ export * from './EventConstraints';
16
+ export * from './EventItem';
17
+ export * from './EventModel';
18
+ export * from './ExternalEventItem';
19
+ export * from './Feature';
20
+ export * from './Module';
21
+ export * from './ModuleCollection';
22
+ export * from './ModuleCollectionLink';
23
+ export * from './PersonaReference';
24
+ export * from './Position';
25
+ export * from './QueryItem';
26
+ export * from './QueryParameter';
27
+ export * from './QueryParameterType';
28
+ export * from './ReadModelItem';
29
+ export * from './ScreenTemplate';
30
+ export * from './Slice';
31
+ export * from './SliceSpecification';
32
+ export * from './SliceStatus';
33
+ export * from './SliceType';
34
+ export * from './SpecificationCommand';
35
+ export * from './SpecificationError';
36
+ export * from './SpecificationErrorRuleKind';
37
+ export * from './SpecificationErrorRuleReference';
38
+ export * from './SpecificationGivenEvent';
39
+ export * from './SpecificationReadModel';
40
+ export * from './SpecificationRunOutcome';
41
+ export * from './SpecificationThenEvent';
42
+ export * from './StickyNote';
43
+ export * from './UserExperienceActor';
@@ -0,0 +1,11 @@
1
+ import type { ReactNode, Ref } from 'react';
2
+ import type { Guid } from '@cratis/fundamentals';
3
+ export interface ModuleColumnFrameProps {
4
+ moduleId: Guid;
5
+ collectionId?: Guid;
6
+ marginLeft: number;
7
+ dragging?: boolean;
8
+ ref?: Ref<HTMLDivElement>;
9
+ children?: ReactNode;
10
+ }
11
+ export declare const ModuleColumnFrame: ({ moduleId, collectionId, marginLeft, dragging, ref, children }: ModuleColumnFrameProps) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ModuleDropIndicator: () => import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { SliceStatus } from '../Model';
3
+ import { type HeaderDragStart } from '../HeaderDragging';
4
+ export interface ModuleHeaderProps {
5
+ moduleId: Guid;
6
+ name: string;
7
+ height: number;
8
+ collapsed: boolean;
9
+ onToggleCollapse?: () => void;
10
+ onAddModule?: () => void;
11
+ onAddFeature?: () => void;
12
+ onRenamed?: (moduleId: Guid, name: string) => void;
13
+ validateName?: (name: string) => string | undefined;
14
+ status?: SliceStatus;
15
+ detailsVisible?: boolean;
16
+ onToggleDetails?: () => void;
17
+ onDragStart?: (start: HeaderDragStart) => void;
18
+ error?: string;
19
+ }
20
+ export declare const ModuleHeader: ({ moduleId, name, height, collapsed, onToggleCollapse, onAddModule, onAddFeature, onRenamed, validateName, status, detailsVisible, onToggleDetails, onDragStart, error, }: ModuleHeaderProps) => import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { Guid } from '@cratis/fundamentals';
3
+ export interface ModuleHeaderAction {
4
+ id: string;
5
+ label: string;
6
+ icon?: ReactNode;
7
+ description?: string;
8
+ disabled?: boolean;
9
+ tooltip?: string;
10
+ indicator?: boolean;
11
+ isSeparator?: boolean;
12
+ items?: readonly ModuleHeaderAction[];
13
+ onActivate: (moduleId: Guid, host: DOMRect) => void;
14
+ }
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface ModuleHeaderCellProps {
3
+ width: number;
4
+ collapsed: boolean;
5
+ children?: ReactNode;
6
+ }
7
+ export declare const ModuleHeaderCell: ({ width, collapsed, children }: ModuleHeaderCellProps) => import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { ModuleHeaderAction } from './ModuleHeaderAction';
3
+ export interface ModuleHeaderMenuProps {
4
+ moduleId: Guid;
5
+ actions: readonly ModuleHeaderAction[];
6
+ onAddModule?: () => void;
7
+ onAddFeature?: () => void;
8
+ kind: 'options' | 'add';
9
+ }
10
+ export declare const ModuleHeaderMenu: ({ moduleId, actions, onAddModule, onAddFeature, kind }: ModuleHeaderMenuProps) => import("react").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ export interface ModulePlaceholderProps {
2
+ width: number;
3
+ height: number;
4
+ featureWidths: readonly number[];
5
+ }
6
+ export declare const ModulePlaceholder: ({ width, height, featureWidths }: ModulePlaceholderProps) => import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { ReactNode, Ref } from 'react';
2
+ import type { Guid } from '@cratis/fundamentals';
3
+ export interface ModuleSurfaceProps {
4
+ moduleId: Guid;
5
+ collectionId: Guid;
6
+ index: number;
7
+ width: number;
8
+ collapsed: boolean;
9
+ dragging?: boolean;
10
+ frameRef?: Ref<HTMLDivElement>;
11
+ header: ReactNode;
12
+ template?: ReactNode;
13
+ content: ReactNode;
14
+ }
15
+ export declare const ModuleSurface: ({ moduleId, collectionId, index, width, collapsed, dragging, frameRef, header, template, content }: ModuleSurfaceProps) => import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Guid } from '@cratis/fundamentals';
3
+ import { type HeaderDragStart } from '../HeaderDragging';
4
+ import { type ModuleAreaItem } from './moduleAreaState';
5
+ export interface ModulesAreaProps<T extends ModuleAreaItem> {
6
+ collectionId: Guid;
7
+ initialModules: T[];
8
+ onAddModule?: () => Promise<T | undefined>;
9
+ onModulesReordered?: (orderedIds: Guid[]) => Promise<boolean>;
10
+ onCollapseChanged?: (moduleId: Guid, collapsed: boolean) => Promise<boolean>;
11
+ onRenameModule?: (moduleId: Guid, name: string) => Promise<boolean>;
12
+ onPersistenceError?: (error: unknown) => void;
13
+ renderModule: (module: T, options: {
14
+ index: number;
15
+ dragging: boolean;
16
+ onDragStart?: (start: HeaderDragStart) => void;
17
+ onAddModule?: () => void;
18
+ onToggleCollapse?: () => void;
19
+ onRenamed?: (name: string) => void;
20
+ }) => ReactNode;
21
+ onModulesChanged?: (modules: T[]) => void;
22
+ }
23
+ export declare function ModulesArea<T extends ModuleAreaItem>({ collectionId, initialModules, onAddModule, onModulesReordered, onCollapseChanged, onRenameModule, onPersistenceError, renderModule, onModulesChanged, }: ModulesAreaProps<T>): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export type ModulesReordered = (collectionId: Guid, orderedIds: Guid[]) => void;
@@ -0,0 +1,12 @@
1
+ export * from './ModuleColumnFrame';
2
+ export * from './ModuleDropIndicator';
3
+ export * from './ModuleHeader';
4
+ export * from './ModuleHeaderAction';
5
+ export * from './ModulesArea';
6
+ export * from './moduleAreaState';
7
+ export * from './moduleWidth';
8
+ export * from './ModuleHeaderCell';
9
+ export * from './ModulePlaceholder';
10
+ export * from './ModuleSurface';
11
+ export * from './ModulesReordered';
12
+ export * from './useModuleDrag';