@cratis/event-models 0.0.0-stage → 0.105.6

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,43 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ export interface SliceAreaItem {
3
+ id: Guid;
4
+ name: string;
5
+ collapsed: boolean;
6
+ }
7
+ interface PendingAddition<T> {
8
+ slice: T;
9
+ afterSliceId?: Guid;
10
+ confirmed: boolean;
11
+ }
12
+ interface PendingMove<T> {
13
+ slice: T;
14
+ index: number;
15
+ confirmed: boolean;
16
+ }
17
+ export interface SliceAreaState<T extends SliceAreaItem> {
18
+ slices: T[];
19
+ snapshot: T[];
20
+ additions: PendingAddition<T>[];
21
+ outgoing: PendingMove<T>[];
22
+ incoming: PendingMove<T>[];
23
+ order?: {
24
+ ids: Guid[];
25
+ confirmed: boolean;
26
+ };
27
+ }
28
+ export declare const createSliceAreaState: <T extends SliceAreaItem>(slices: T[]) => SliceAreaState<T>;
29
+ export declare const insertSlice: <T extends SliceAreaItem>(slices: T[], slice: T, afterSliceId?: Guid) => T[];
30
+ export declare const settleAddedSlice: <T extends SliceAreaItem>(slices: T[], temporaryId: Guid, persistedId?: Guid) => T[];
31
+ export declare const addPendingSlice: <T extends SliceAreaItem>(state: SliceAreaState<T>, slice: T, afterSliceId?: Guid) => SliceAreaState<T>;
32
+ export declare const addProjectedSlice: <T extends SliceAreaItem>(state: SliceAreaState<T>, slice: T, afterSliceId?: Guid) => SliceAreaState<T>;
33
+ export declare const completeAddedSlice: <T extends SliceAreaItem>(state: SliceAreaState<T>, temporaryId: Guid, persistedId?: Guid) => SliceAreaState<T>;
34
+ export declare const moveSliceInArea: <T extends SliceAreaItem>(slices: T[], fromIndex: number, toIndex: number) => T[];
35
+ export declare const reorderPendingSlices: <T extends SliceAreaItem>(state: SliceAreaState<T>, fromIndex: number, toIndex: number) => SliceAreaState<T>;
36
+ export declare const completeReorder: <T extends SliceAreaItem>(state: SliceAreaState<T>, succeeded: boolean) => SliceAreaState<T>;
37
+ export declare const movePendingSliceOut: <T extends SliceAreaItem>(state: SliceAreaState<T>, id: Guid) => SliceAreaState<T>;
38
+ export declare const completeMoveOut: <T extends SliceAreaItem>(state: SliceAreaState<T>, id: Guid, succeeded: boolean) => SliceAreaState<T>;
39
+ export declare const movePendingSliceIn: <T extends SliceAreaItem>(state: SliceAreaState<T>, slice: T, index: number) => SliceAreaState<T>;
40
+ export declare const completeMoveIn: <T extends SliceAreaItem>(state: SliceAreaState<T>, id: Guid, succeeded: boolean) => SliceAreaState<T>;
41
+ export declare const reconcileSliceSnapshot: <T extends SliceAreaItem>(state: SliceAreaState<T>, snapshot: T[]) => SliceAreaState<T>;
42
+ export declare const duplicateSliceName: (names: string[], original: string) => string;
43
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { SliceContextValue } from './SliceContextValue';
2
+ export declare const useSlice: () => SliceContextValue;
3
+ export declare const useSliceReadOnly: () => boolean;
@@ -0,0 +1,12 @@
1
+ import { Guid } from '@cratis/fundamentals';
2
+ import type { EventItem, ReadModelItem, SliceSpecification } from '../Model';
3
+ import { SliceType } from '../Model';
4
+ export interface GivenSectionProps {
5
+ sliceId: Guid;
6
+ sliceType: SliceType;
7
+ specification: SliceSpecification;
8
+ events: readonly EventItem[];
9
+ readModel?: ReadModelItem;
10
+ renamedReadModelName?: string;
11
+ }
12
+ export declare const GivenSection: ({ sliceId, sliceType, specification, events, readModel, renamedReadModelName }: GivenSectionProps) => import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { Guid } from '@cratis/fundamentals';
3
+ import type { SliceSpecification } from '../Model';
4
+ export interface SpecificationAction {
5
+ icon: ReactNode;
6
+ tooltip: string;
7
+ when?: (specification: SliceSpecification) => boolean;
8
+ onActivate: (specificationId: Guid, host: DOMRect) => void | Promise<void>;
9
+ }
10
+ export interface SpecificationCollectionAction {
11
+ icon: ReactNode;
12
+ tooltip: string;
13
+ disabled?: boolean;
14
+ when?: (sliceId: Guid) => boolean;
15
+ onActivate: (sliceId: Guid, host: DOMRect) => void | Promise<void>;
16
+ }
17
+ export interface SpecificationGenerationAction extends Omit<SpecificationCollectionAction, 'onActivate'> {
18
+ onActivate: (sliceId: Guid, host: DOMRect) => Promise<boolean>;
19
+ }
@@ -0,0 +1,11 @@
1
+ export interface SpecificationAddExtra {
2
+ label: string;
3
+ onChosen: () => void;
4
+ }
5
+ export interface SpecificationAddPickerProps<TOption> {
6
+ options: readonly TOption[];
7
+ nameOf: (option: TOption) => string;
8
+ onChosen: (option: TOption) => void;
9
+ errors?: readonly SpecificationAddExtra[];
10
+ }
11
+ export declare const SpecificationAddPicker: <TOption>({ options, nameOf, onChosen, errors }: SpecificationAddPickerProps<TOption>) => import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { type ReactNode } from 'react';
2
+ import { Guid } from '@cratis/fundamentals';
3
+ import type { SliceSpecification } from '../Model';
4
+ import { SpecificationRunState } from './SpecificationRunState';
5
+ export interface SpecificationCollectionProps {
6
+ sliceId: Guid;
7
+ width: number;
8
+ collapsed: boolean;
9
+ specifications: SliceSpecification[];
10
+ runInfoFor: (specification: SliceSpecification) => {
11
+ state: SpecificationRunState;
12
+ message: string;
13
+ };
14
+ renderRows: (specification: SliceSpecification) => ReactNode;
15
+ }
16
+ export declare const SpecificationCollection: ({ sliceId, width, collapsed, specifications: incoming, runInfoFor, renderRows }: SpecificationCollectionProps) => import("react").JSX.Element | null;
@@ -0,0 +1,20 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { SliceSpecification, SpecificationErrorRuleReference } from '../Model';
3
+ import type { SpecificationItemToOpen } from './SpecificationItemToOpen';
4
+ export interface SpecificationEditing {
5
+ onSpecificationAdded?: (sliceId: Guid, specification: SliceSpecification) => Promise<boolean>;
6
+ onSpecificationRemoved?: (sliceId: Guid, specificationId: Guid) => void;
7
+ onSpecificationRenamed?: (sliceId: Guid, specificationId: Guid, name: string) => void;
8
+ onSpecificationOpenStateSet?: (sliceId: Guid, specificationId: Guid, isOpen: boolean) => void;
9
+ onGivenEventAdded?: (sliceId: Guid, specificationId: Guid, itemId: Guid, eventId: Guid, name: string) => void;
10
+ onGivenEventValuesSet?: (sliceId: Guid, specificationId: Guid, itemId: Guid, values: Record<string, unknown>) => void;
11
+ onGivenReadModelSet?: (sliceId: Guid, specificationId: Guid, readModelId: Guid, name: string) => void;
12
+ onWhenCommandSet?: (sliceId: Guid, specificationId: Guid, itemId: Guid, commandId: Guid, name: string) => void;
13
+ onWhenCommandValuesSet?: (sliceId: Guid, specificationId: Guid, values: Record<string, unknown>) => void;
14
+ onThenEventAdded?: (sliceId: Guid, specificationId: Guid, itemId: Guid, eventId: Guid, name: string) => void;
15
+ onThenEventValuesSet?: (sliceId: Guid, specificationId: Guid, itemId: Guid, values: Record<string, unknown>) => void;
16
+ onThenErrorAdded?: (sliceId: Guid, specificationId: Guid, itemId: Guid, name: string) => void;
17
+ onThenRuleErrorAdded?: (sliceId: Guid, specificationId: Guid, itemId: Guid, reference: SpecificationErrorRuleReference) => void;
18
+ onThenErrorRenamed?: (sliceId: Guid, specificationId: Guid, itemId: Guid, name: string) => void;
19
+ onSpecificationItemOpened?: (item: SpecificationItemToOpen) => void;
20
+ }
@@ -0,0 +1,5 @@
1
+ export interface SpecificationErrorCardProps {
2
+ name: string;
3
+ onRenamed?: (name: string) => void;
4
+ }
5
+ export declare const SpecificationErrorCard: ({ name, onRenamed }: SpecificationErrorCardProps) => import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from 'react';
2
+ import { SpecificationRunState } from './SpecificationRunState';
3
+ export interface SpecificationHeaderProps {
4
+ name: string;
5
+ collapsed: boolean;
6
+ onToggleCollapse?: () => void;
7
+ runState: SpecificationRunState;
8
+ runMessage?: string;
9
+ onRenamed?: (name: string) => void;
10
+ onDeleted?: () => void;
11
+ runControl?: ReactNode;
12
+ gutter?: ReactNode;
13
+ }
14
+ export declare const SpecificationHeader: ({ name, collapsed, onToggleCollapse, runState, runMessage, onRenamed, onDeleted, runControl, gutter, }: SpecificationHeaderProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type CardColors } from '../Cards';
2
+ export interface SpecificationItemCardProps {
3
+ name: string;
4
+ colors: CardColors;
5
+ onOpen?: (host: DOMRect) => void;
6
+ }
7
+ export declare const SpecificationItemCard: ({ name, colors, onOpen }: SpecificationItemCardProps) => import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare enum SpecificationItemKind {
2
+ event = "event",
3
+ command = "command",
4
+ readModel = "readModel"
5
+ }
@@ -0,0 +1,14 @@
1
+ import type { Guid } from '@cratis/fundamentals';
2
+ import type { JsonSchema } from '@cratis/components/types';
3
+ import type { SpecificationItemKind } from './SpecificationItemKind';
4
+ export interface SpecificationItemToOpen {
5
+ sliceId: Guid;
6
+ specificationId: Guid;
7
+ itemId: Guid;
8
+ kind: SpecificationItemKind;
9
+ name: string;
10
+ schema?: JsonSchema;
11
+ values: Readonly<Record<string, unknown>>;
12
+ host: DOMRect;
13
+ onValuesSet: (values: Record<string, unknown>) => void;
14
+ }
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface SpecificationRowProps {
3
+ headline: string;
4
+ actions?: ReactNode;
5
+ isLast?: boolean;
6
+ children?: ReactNode;
7
+ }
8
+ export declare const SpecificationRow: ({ headline, actions, isLast, children }: SpecificationRowProps) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { SliceSpecification } from '../Model';
2
+ import { SpecificationRunState } from './SpecificationRunState';
3
+ export interface SpecificationRunButtonProps {
4
+ state: SpecificationRunState;
5
+ specification: SliceSpecification;
6
+ }
7
+ export declare const SpecificationRunButton: ({ state, specification }: SpecificationRunButtonProps) => import("react").JSX.Element | null;
@@ -0,0 +1,23 @@
1
+ import { SpecificationRunOutcome } from '../Model';
2
+ /**
3
+ * Represents the run state of a specification as shown in the UI.
4
+ */
5
+ export declare enum SpecificationRunState {
6
+ /** No run has happened and none is in progress. */
7
+ Idle = "idle",
8
+ /** A run is currently in progress. */
9
+ Running = "running",
10
+ /** The latest run passed. */
11
+ Passed = "passed",
12
+ /** The latest run failed. */
13
+ Failed = "failed",
14
+ /** The latest run could not be conclusively verified. */
15
+ Inconclusive = "inconclusive"
16
+ }
17
+ /**
18
+ * Derives the UI run state from the latest persisted outcome and whether a run is currently in progress.
19
+ * @param outcome The latest persisted outcome, or undefined when no run has completed.
20
+ * @param isRunning Whether a run is currently in progress.
21
+ * @returns The {@link SpecificationRunState}.
22
+ */
23
+ export declare function specificationRunState(outcome: SpecificationRunOutcome | undefined, isRunning: boolean): SpecificationRunState;
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface SpecificationSectionProps {
3
+ headline?: string;
4
+ minHeight: number;
5
+ actions?: ReactNode;
6
+ children?: ReactNode;
7
+ }
8
+ export declare const SpecificationSection: ({ headline, minHeight, actions, children }: SpecificationSectionProps) => import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { SpecificationRunState } from './SpecificationRunState';
3
+ export interface SpecificationStatusProps {
4
+ /** The current run state of the specification. */
5
+ state: SpecificationRunState;
6
+ /** The last run's failure message, surfaced in the tooltip when the run failed. */
7
+ message?: string;
8
+ }
9
+ /**
10
+ * A circular status badge that reflects the outcome of a specification's last run — mirroring the slice status
11
+ * badge — showing whether it has not been run, succeeded, or failed (with the failure reason in its tooltip).
12
+ * When failed with a message, renders as a button to make the error more discoverable.
13
+ */
14
+ export declare const SpecificationStatus: React.FC<SpecificationStatusProps>;
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from 'react';
2
+ import { Guid } from '@cratis/fundamentals';
3
+ import type { CommandItem, EventItem, ReadModelItem, SliceSpecification } from '../Model';
4
+ import { SliceType } from '../Model';
5
+ export interface ThenSectionProps {
6
+ sliceId: Guid;
7
+ sliceType: SliceType;
8
+ specification: SliceSpecification;
9
+ events: readonly EventItem[];
10
+ command?: CommandItem;
11
+ readModel?: ReadModelItem;
12
+ renamedEventNames?: Readonly<Record<string, string>>;
13
+ extra?: ReactNode;
14
+ }
15
+ export declare const ThenSection: ({ sliceId, sliceType, specification, events, command, readModel, renamedEventNames, extra }: ThenSectionProps) => import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { Guid } from '@cratis/fundamentals';
2
+ import type { CommandItem, EventItem, SliceSpecification } from '../Model';
3
+ import { SliceType } from '../Model';
4
+ export interface WhenSectionProps {
5
+ sliceId: Guid;
6
+ sliceType: SliceType;
7
+ specification: SliceSpecification;
8
+ command?: CommandItem;
9
+ renamedCommandName?: string;
10
+ events?: readonly EventItem[];
11
+ }
12
+ export declare const WhenSection: ({ sliceId, sliceType, specification, command, renamedCommandName, events }: WhenSectionProps) => import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export * from './SpecificationRunState';
2
+ export * from './SpecificationRunButton';
3
+ export * from './SpecificationStatus';
4
+ export * from './SpecificationHeader';
5
+ export * from './SpecificationCollection';
6
+ export * from './specificationCollectionState';
7
+ export * from './SpecificationSection';
8
+ export * from './GivenSection';
9
+ export * from './WhenSection';
10
+ export * from './ThenSection';
@@ -0,0 +1,7 @@
1
+ export type ItemValues = Readonly<Record<string, Readonly<Record<string, unknown>>>>;
2
+ export declare const itemValuesOf: (items: readonly {
3
+ id: {
4
+ toString(): string;
5
+ };
6
+ values: Record<string, unknown>;
7
+ }[]) => ItemValues;
@@ -0,0 +1,8 @@
1
+ import { type CommandItem, type EventItem, type SpecificationErrorRuleReference } from '../Model';
2
+ export interface RuleErrorOption {
3
+ reference: SpecificationErrorRuleReference;
4
+ label: string;
5
+ }
6
+ export declare const humanizeRuleType: (ruleType: string) => string;
7
+ export declare const ruleErrorOptions: (command: CommandItem | undefined, events: readonly EventItem[]) => RuleErrorOption[];
8
+ export declare const ruleErrorLabel: (reference: SpecificationErrorRuleReference, events: readonly EventItem[]) => string | undefined;
@@ -0,0 +1,7 @@
1
+ import type { SliceSpecification } from '../Model';
2
+ import type { SpecificationEditing } from './SpecificationEditing';
3
+ export declare const GENERATED_SPECIFICATIONS_ABSORB_WINDOW_MS = 15000;
4
+ export declare const specificationContentSize: (specification: SliceSpecification) => number;
5
+ export declare const followsIncomingSpecifications: (readOnly: boolean, editing: SpecificationEditing) => boolean;
6
+ export declare const reconcileSpecifications: (current: SliceSpecification[], incoming: SliceSpecification[], followsIncoming: boolean, withinGenerationWindow: boolean, removedIds: ReadonlySet<string>) => SliceSpecification[];
7
+ export declare const absorbSpecifications: (current: SliceSpecification[], incoming: SliceSpecification[], removedIds?: ReadonlySet<string>) => SliceSpecification[];
@@ -0,0 +1,3 @@
1
+ import type { EventItem } from '../Model';
2
+ export declare const producedEventsUniqueById: (events: readonly EventItem[]) => EventItem[];
3
+ export declare const offersReadModelInGiven: (hasSliceReadModel: boolean, hasGivenReadModel: boolean) => boolean;
@@ -0,0 +1,5 @@
1
+ import { SliceStatus } from '../Model';
2
+ export interface SliceStatusIconProps {
3
+ status: SliceStatus;
4
+ }
5
+ export declare const SliceStatusIcon: ({ status }: SliceStatusIconProps) => import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { SliceStatus } from '../Model';
2
+ export interface SliceStatusPickerProps {
3
+ status: SliceStatus;
4
+ onStatusChanged?: (status: SliceStatus) => Promise<boolean | void> | void;
5
+ selectable?: readonly SliceStatus[];
6
+ unselectableReason?: string;
7
+ }
8
+ export declare const SliceStatusPicker: ({ status, onStatusChanged, selectable, unselectableReason }: SliceStatusPickerProps) => import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SliceStatus } from '../Model';
2
+ export declare const changeSliceStatus: (previous: SliceStatus, picked: SliceStatus, report: (status: SliceStatus) => Promise<boolean | void> | void, show: (status: SliceStatus) => void) => Promise<void>;
@@ -0,0 +1,4 @@
1
+ export * from './SliceStatusIcon';
2
+ export * from './SliceStatusPicker';
3
+ export * from './sliceStatuses';
4
+ export * from './changeSliceStatus';
@@ -0,0 +1,6 @@
1
+ import { SliceStatus } from '../Model';
2
+ import type { EventModelMessages } from '../Messages';
3
+ export declare const sliceStatusWorkflowOrder: readonly SliceStatus[];
4
+ export declare const sliceStatusColor: (status: SliceStatus) => string;
5
+ export declare const sliceStatusLabel: (status: SliceStatus, messages: EventModelMessages) => string;
6
+ export declare const sliceStatusName: (status: SliceStatus) => string;
@@ -0,0 +1,6 @@
1
+ import type { Position } from '../Model';
2
+ export interface StickyNoteBounds {
3
+ position: Position;
4
+ width: number;
5
+ height: number;
6
+ }
@@ -0,0 +1,9 @@
1
+ import type { Position, StickyNote } from '../Model';
2
+ import type { StickyNoteBounds } from './StickyNoteBounds';
3
+ export interface StickyNoteChanges {
4
+ onStickyNoteAdded?: (note: StickyNote) => Promise<boolean | void> | boolean | void;
5
+ onStickyNoteMoved?: (id: string, position: Position) => Promise<boolean | void> | boolean | void;
6
+ onStickyNoteResized?: (id: string, bounds: StickyNoteBounds) => Promise<boolean | void> | boolean | void;
7
+ onStickyNoteTextChanged?: (id: string, text: string) => Promise<boolean | void> | boolean | void;
8
+ onStickyNoteRemoved?: (id: string) => Promise<boolean | void> | boolean | void;
9
+ }
@@ -0,0 +1,4 @@
1
+ import type { Position } from '../Model';
2
+ export interface StickyNoteHandle {
3
+ add(center: Position): void;
4
+ }
@@ -0,0 +1,16 @@
1
+ import type { StickyNote } from '../Model';
2
+ export declare class StickyNoteState {
3
+ private readonly now;
4
+ private remote;
5
+ private readonly pending;
6
+ constructor(notes: readonly StickyNote[], now?: () => number);
7
+ get notes(): StickyNote[];
8
+ get(id: string): StickyNote | undefined;
9
+ change(id: string, note: StickyNote | null): void;
10
+ begin(id: string, note: StickyNote | null): void;
11
+ settle(id: string, note: StickyNote | null): void;
12
+ reconcile(notes: readonly StickyNote[]): void;
13
+ expire(): void;
14
+ get nextExpiration(): number | undefined;
15
+ rollback(id: string, change: StickyNote | null): void;
16
+ }
@@ -0,0 +1,6 @@
1
+ import type { StickyNote } from '../Model';
2
+ import type { StickyNoteHandle } from './StickyNoteHandle';
3
+ export interface StickyNotesProps {
4
+ notes: readonly StickyNote[];
5
+ }
6
+ export declare const StickyNotes: import("react").ForwardRefExoticComponent<StickyNotesProps & import("react").RefAttributes<StickyNoteHandle>>;
@@ -0,0 +1,6 @@
1
+ export * from './isEditableTarget';
2
+ export * from './StickyNoteBounds';
3
+ export * from './StickyNoteChanges';
4
+ export * from './StickyNoteHandle';
5
+ export * from './StickyNoteState';
6
+ export * from './StickyNotes';
@@ -0,0 +1 @@
1
+ export declare const isEditableTarget: (target: EventTarget | null) => boolean;
@@ -0,0 +1,27 @@
1
+ import React, { ReactNode, RefObject } from 'react';
2
+ /** The side of the anchor the overlay prefers to open on. */
3
+ export type AnchoredOverlaySide = 'above' | 'below' | 'left' | 'right';
4
+ /** Horizontal alignment relative to the anchor (for above/below overlays). */
5
+ export type AnchoredOverlayAlign = 'left' | 'right' | 'center';
6
+ export interface AnchoredOverlayProps {
7
+ /** The element the overlay anchors to. */
8
+ anchorRef: RefObject<HTMLElement | null>;
9
+ /** Whether the overlay is shown. */
10
+ open: boolean;
11
+ /** The preferred side; above/below flip when the viewport leaves no room. */
12
+ side?: AnchoredOverlaySide;
13
+ /** Horizontal alignment for above/below overlays. */
14
+ align?: AnchoredOverlayAlign;
15
+ /** Gap between the anchor and the overlay in pixels. */
16
+ gap?: number;
17
+ /** The overlay content. */
18
+ children: ReactNode;
19
+ }
20
+ /**
21
+ * Renders its children into a fixed-position portal on <body>, anchored to an element on the board.
22
+ * Board overlays (menus, pickers, tooltips) must float above everything: the slice columns use
23
+ * content-visibility paint containment for virtualization, which clips any absolutely-positioned
24
+ * descendant to the column box — portaling is what lets an overlay escape (the same approach the
25
+ * Cratis Dropdown takes with appendTo=document.body).
26
+ */
27
+ export declare const AnchoredOverlay: React.FC<AnchoredOverlayProps>;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ export type GridTooltipPosition = 'top' | 'bottom' | 'left' | 'right';
3
+ export interface GridTooltipProps {
4
+ content: React.ReactNode;
5
+ position?: GridTooltipPosition;
6
+ children: React.ReactNode;
7
+ }
8
+ /**
9
+ * A small hover tooltip for canvas cards and controls. The bubble portals to <body> through
10
+ * AnchoredOverlay so it floats above the whole canvas — an inline absolutely-positioned bubble would be
11
+ * clipped by paint containment (content-visibility) near a scroll/zoom boundary.
12
+ *
13
+ * Pressing the anchor dismisses the bubble and keeps it dismissed until the pointer leaves. Cards that
14
+ * open an editor on click render it *over* the card without the pointer moving — so the browser never
15
+ * re-hit-tests and the anchor would otherwise stay "hovered", leaving the property list floating on top
16
+ * of the editor the user is now typing in.
17
+ *
18
+ * Hover is tracked for mouse pointers only: a touch tap synthesizes an enter with no matching leave,
19
+ * which would strand the bubble on screen on a tablet.
20
+ */
21
+ export declare const GridTooltip: React.FC<GridTooltipProps>;
@@ -0,0 +1,2 @@
1
+ export * from './AnchoredOverlay';
2
+ export * from './GridTooltip';
@@ -0,0 +1,2 @@
1
+ export * from './useInViewport';
2
+ export * from './viewportFlushScheduler';
@@ -0,0 +1,3 @@
1
+ import { RefObject } from 'react';
2
+ import { VerdictWeight } from './viewportFlushScheduler';
3
+ export declare function useInViewport(ref: RefObject<Element | null>, rootMargin?: string, weight?: VerdictWeight): boolean;
@@ -0,0 +1,7 @@
1
+ type ApplyVerdict = (inView: boolean) => void;
2
+ export type VerdictWeight = 'light' | 'heavy';
3
+ export declare const viewportFlushScheduler: {
4
+ request(apply: ApplyVerdict, verdict: boolean, distance?: number, weight?: VerdictWeight): void;
5
+ cancel(apply: ApplyVerdict): void;
6
+ };
7
+ export {};