@cratis/components 3.6.1 → 4.1.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.
- package/CONFORMANCE.md +18 -0
- package/LICENSE +21 -0
- package/MIGRATION.md +569 -0
- package/README.md +217 -748
- package/THIRD_PARTY_NOTICES.md +35 -0
- package/compat-manifest.json +305 -0
- package/dist/esm/Canvas/Canvas.d.ts +95 -6
- package/dist/esm/Canvas/Canvas.js +116 -189
- package/dist/esm/Canvas/Canvas.js.map +1 -1
- package/dist/esm/Canvas/CanvasControls.d.ts +40 -2
- package/dist/esm/Canvas/CanvasControls.js +25 -13
- package/dist/esm/Canvas/CanvasControls.js.map +1 -1
- package/dist/esm/Canvas/CanvasItem.d.ts +25 -1
- package/dist/esm/Canvas/CanvasItem.d.ts.map +1 -1
- package/dist/esm/Canvas/CanvasItem.js +13 -12
- package/dist/esm/Canvas/CanvasItem.js.map +1 -1
- package/dist/esm/Canvas/CanvasMinimap.d.ts +18 -0
- package/dist/esm/Canvas/CanvasMinimap.d.ts.map +1 -1
- package/dist/esm/Canvas/CanvasMinimap.js +9 -6
- package/dist/esm/Canvas/CanvasMinimap.js.map +1 -1
- package/dist/esm/Canvas/CanvasOverlay.d.ts +5 -2
- package/dist/esm/Canvas/CanvasOverlay.d.ts.map +1 -1
- package/dist/esm/Canvas/CanvasOverlay.js +7 -3
- package/dist/esm/Canvas/CanvasOverlay.js.map +1 -1
- package/dist/esm/Canvas/canvasGesture.d.ts +10 -0
- package/dist/esm/Canvas/canvasGesture.d.ts.map +1 -1
- package/dist/esm/Canvas/canvasGesture.js +0 -12
- package/dist/esm/Canvas/canvasGesture.js.map +1 -1
- package/dist/esm/Canvas/canvasTransformActivity.d.ts +7 -0
- package/dist/esm/Canvas/canvasTransformActivity.d.ts.map +1 -1
- package/dist/esm/Canvas/canvasTransformActivity.js +1 -10
- package/dist/esm/Canvas/canvasTransformActivity.js.map +1 -1
- package/dist/esm/Canvas/index.d.ts +17 -18
- package/dist/esm/Canvas/index.js +21 -31
- package/dist/esm/Canvas/index.js.map +1 -1
- package/dist/esm/Canvas/isBackgroundPointerTarget.js +0 -7
- package/dist/esm/Canvas/isBackgroundPointerTarget.js.map +1 -1
- package/dist/esm/Canvas/isWithinScrollableContent.d.ts +7 -0
- package/dist/esm/Canvas/isWithinScrollableContent.d.ts.map +1 -1
- package/dist/esm/Canvas/isWithinScrollableContent.js +0 -13
- package/dist/esm/Canvas/isWithinScrollableContent.js.map +1 -1
- package/dist/esm/Canvas/panMomentum.d.ts +14 -0
- package/dist/esm/Canvas/panMomentum.d.ts.map +1 -1
- package/dist/esm/Canvas/panMomentum.js +0 -13
- package/dist/esm/Canvas/panMomentum.js.map +1 -1
- package/dist/esm/Canvas/pinchGesture.d.ts +16 -0
- package/dist/esm/Canvas/pinchGesture.d.ts.map +1 -1
- package/dist/esm/Canvas/pinchGesture.js +0 -11
- package/dist/esm/Canvas/pinchGesture.js.map +1 -1
- package/dist/esm/Canvas/selfSuspendingFrameLoop.d.ts +15 -0
- package/dist/esm/Canvas/selfSuspendingFrameLoop.d.ts.map +1 -1
- package/dist/esm/Canvas/selfSuspendingFrameLoop.js +1 -8
- package/dist/esm/Canvas/selfSuspendingFrameLoop.js.map +1 -1
- package/dist/esm/Canvas/shapes/ChatBubble/index.d.ts +1 -32
- package/dist/esm/Canvas/shapes/ChatBubble/index.js +9 -18
- package/dist/esm/Canvas/shapes/Note/Note.d.ts +30 -1
- package/dist/esm/Canvas/shapes/Note/Note.d.ts.map +1 -1
- package/dist/esm/Canvas/shapes/Note/Note.js +26 -36
- package/dist/esm/Canvas/shapes/Note/Note.js.map +1 -1
- package/dist/esm/Canvas/shapes/Note/NoteTextChanged.d.ts +12 -1
- package/dist/esm/Canvas/shapes/Note/NoteTextChanged.d.ts.map +1 -1
- package/dist/esm/Canvas/shapes/Note/NoteTextChanged.js +0 -7
- package/dist/esm/Canvas/shapes/Note/NoteTextChanged.js.map +1 -1
- package/dist/esm/Canvas/shapes/Note/index.d.ts +3 -4
- package/dist/esm/Canvas/shapes/Note/index.js +4 -3
- package/dist/esm/Canvas/shapes/Note/noteFont.d.ts +8 -0
- package/dist/esm/Canvas/shapes/Note/noteFont.d.ts.map +1 -1
- package/dist/esm/Canvas/shapes/Note/noteFont.js +0 -14
- package/dist/esm/Canvas/shapes/Note/noteFont.js.map +1 -1
- package/dist/esm/Canvas/shapes/Region/ItemAddedToRegion.d.ts +14 -1
- package/dist/esm/Canvas/shapes/Region/ItemAddedToRegion.d.ts.map +1 -1
- package/dist/esm/Canvas/shapes/Region/ItemAddedToRegion.js +0 -9
- package/dist/esm/Canvas/shapes/Region/ItemAddedToRegion.js.map +1 -1
- package/dist/esm/Canvas/shapes/Region/ItemRemovedFromRegion.d.ts +13 -1
- package/dist/esm/Canvas/shapes/Region/ItemRemovedFromRegion.d.ts.map +1 -1
- package/dist/esm/Canvas/shapes/Region/ItemRemovedFromRegion.js +0 -8
- package/dist/esm/Canvas/shapes/Region/ItemRemovedFromRegion.js.map +1 -1
- package/dist/esm/Canvas/shapes/Region/Region.d.ts +45 -2
- package/dist/esm/Canvas/shapes/Region/Region.d.ts.map +1 -1
- package/dist/esm/Canvas/shapes/Region/Region.js +31 -49
- package/dist/esm/Canvas/shapes/Region/Region.js.map +1 -1
- package/dist/esm/Canvas/shapes/Region/index.d.ts +6 -7
- package/dist/esm/Canvas/shapes/Region/index.js +6 -5
- package/dist/esm/Canvas/shapes/Region/regionContainment.d.ts +37 -0
- package/dist/esm/Canvas/shapes/Region/regionContainment.d.ts.map +1 -1
- package/dist/esm/Canvas/shapes/Region/regionContainment.js +1 -16
- package/dist/esm/Canvas/shapes/Region/regionContainment.js.map +1 -1
- package/dist/esm/Canvas/useDragSelectionGuard.d.ts +9 -0
- package/dist/esm/Canvas/useDragSelectionGuard.d.ts.map +1 -1
- package/dist/esm/Canvas/useDragSelectionGuard.js +0 -11
- package/dist/esm/Canvas/useDragSelectionGuard.js.map +1 -1
- package/dist/esm/Canvas/zoomMechanism.d.ts +30 -0
- package/dist/esm/Canvas/zoomMechanism.d.ts.map +1 -1
- package/dist/esm/Canvas/zoomMechanism.js +0 -38
- package/dist/esm/Canvas/zoomMechanism.js.map +1 -1
- package/dist/esm/Chat/ChatAuthor.d.ts +12 -2
- package/dist/esm/Chat/ChatAuthor.js +2 -0
- package/dist/esm/Chat/ChatAuthor.js.map +1 -1
- package/dist/esm/Chat/ChatConversation.d.ts +80 -13
- package/dist/esm/Chat/ChatConversation.js +30 -29
- package/dist/esm/Chat/ChatConversation.js.map +1 -1
- package/dist/esm/Chat/ChatIdentifier.d.ts +18 -0
- package/dist/esm/Chat/ChatIdentifier.d.ts.map +1 -1
- package/dist/esm/Chat/ChatIdentifier.js +0 -14
- package/dist/esm/Chat/ChatIdentifier.js.map +1 -1
- package/dist/esm/Chat/ChatMention.d.ts +11 -3
- package/dist/esm/Chat/ChatMention.js +2 -0
- package/dist/esm/Chat/ChatMention.js.map +1 -1
- package/dist/esm/Chat/ChatMessage.d.ts +19 -3
- package/dist/esm/Chat/ChatMessage.js +2 -0
- package/dist/esm/Chat/ChatMessage.js.map +1 -1
- package/dist/esm/Chat/ChatMessageAction.d.ts +19 -2
- package/dist/esm/Chat/ChatMessageAction.js +2 -0
- package/dist/esm/Chat/ChatMessageAction.js.map +1 -1
- package/dist/esm/Chat/ChatMessageBody.d.ts +12 -2
- package/dist/esm/Chat/ChatMessageBody.js +3 -11
- package/dist/esm/Chat/ChatMessageBody.js.map +1 -1
- package/dist/esm/Chat/ChatSidebar.d.ts +112 -13
- package/dist/esm/Chat/ChatSidebar.js +33 -26
- package/dist/esm/Chat/ChatSidebar.js.map +1 -1
- package/dist/esm/Chat/ChatSidebarForObservableQueries.d.ts +29 -5
- package/dist/esm/Chat/ChatSidebarForObservableQueries.js +3 -8
- package/dist/esm/Chat/ChatSidebarForObservableQueries.js.map +1 -1
- package/dist/esm/Chat/ChatTopic.d.ts +13 -2
- package/dist/esm/Chat/ChatTopic.js +2 -0
- package/dist/esm/Chat/ChatTopic.js.map +1 -1
- package/dist/esm/Chat/ChatTopicList.d.ts +58 -8
- package/dist/esm/Chat/ChatTopicList.js +18 -14
- package/dist/esm/Chat/ChatTopicList.js.map +1 -1
- package/dist/esm/Chat/Kit/AnchoredOverlay.d.ts +34 -0
- package/dist/esm/Chat/Kit/AnchoredOverlay.d.ts.map +1 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/AnchoredOverlay.js +9 -13
- package/dist/esm/Chat/Kit/AnchoredOverlay.js.map +1 -0
- package/dist/esm/Chat/Kit/Avatar/PersonAvatarCircle.d.ts +51 -0
- package/dist/esm/Chat/Kit/Avatar/PersonAvatarCircle.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Avatar/PersonAvatarCircle.js +25 -0
- package/dist/esm/Chat/Kit/Avatar/PersonAvatarCircle.js.map +1 -0
- package/dist/esm/Chat/Kit/Avatar/getAvatarColor.d.ts +9 -0
- package/dist/esm/Chat/Kit/Avatar/getAvatarColor.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Avatar/getAvatarColor.js +20 -0
- package/dist/esm/Chat/Kit/Avatar/getAvatarColor.js.map +1 -0
- package/dist/esm/Chat/Kit/Avatar/getInitials.d.ts +7 -0
- package/dist/esm/Chat/Kit/Avatar/getInitials.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Avatar/getInitials.js +4 -0
- package/dist/esm/Chat/Kit/Avatar/getInitials.js.map +1 -0
- package/dist/esm/Chat/Kit/Avatar/index.d.ts +3 -0
- package/dist/esm/Chat/Kit/Avatar/index.js +6 -0
- package/dist/esm/Chat/Kit/Chat.d.ts +106 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/Chat.js +8 -16
- package/dist/esm/Chat/Kit/Chat.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatAuthorKind.d.ts +11 -0
- package/dist/esm/Chat/Kit/ChatAuthorKind.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatAuthorKind.js +8 -0
- package/dist/esm/Chat/Kit/ChatAuthorKind.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatBubble.d.ts +38 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/ChatBubble.js +35 -7
- package/dist/esm/Chat/Kit/ChatBubble.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatComposer.d.ts +62 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/ChatComposer.js +26 -29
- package/dist/esm/Chat/Kit/ChatComposer.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessage.d.ts +42 -0
- package/dist/esm/Chat/Kit/ChatMessage.js +4 -0
- package/dist/esm/Chat/Kit/ChatMessage.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessageAdded.d.ts +17 -0
- package/dist/esm/Chat/Kit/ChatMessageAdded.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessageAdded.js +11 -0
- package/dist/esm/Chat/Kit/ChatMessageAdded.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessageBubble.d.ts +60 -0
- package/dist/esm/Chat/Kit/ChatMessageBubble.js +41 -0
- package/dist/esm/Chat/Kit/ChatMessageBubble.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessageReaction.d.ts +11 -0
- package/dist/esm/Chat/Kit/ChatMessageReaction.js +4 -0
- package/dist/esm/Chat/Kit/ChatMessageReaction.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessageReactionUser.d.ts +18 -0
- package/dist/esm/Chat/Kit/ChatMessageReactionUser.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessageReactionUser.js +4 -0
- package/dist/esm/Chat/Kit/ChatMessageReactionUser.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatOwnReaction.d.ts +13 -0
- package/dist/esm/Chat/Kit/ChatOwnReaction.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatOwnReaction.js +4 -0
- package/dist/esm/Chat/Kit/ChatOwnReaction.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatTypingAuthor.d.ts +15 -0
- package/dist/esm/Chat/Kit/ChatTypingAuthor.js +4 -0
- package/dist/esm/Chat/Kit/ChatTypingAuthor.js.map +1 -0
- package/dist/esm/Chat/Kit/ChatVariant.d.ts +10 -0
- package/dist/esm/Chat/Kit/ChatVariant.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatVariant.js +8 -0
- package/dist/esm/Chat/Kit/ChatVariant.js.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiCategory.d.ts +8 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiCategory.js +4 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiCategory.js.map +1 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/Emoji/EmojiCategoryKey.d.ts +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiCategoryKey.d.ts.map +1 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/Emoji/EmojiCategoryKey.js +0 -3
- package/dist/esm/Chat/Kit/Emoji/EmojiCategoryKey.js.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiMemory.d.ts +12 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiMemory.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiMemory.js +4 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiMemory.js.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiPicker.d.ts +32 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/Emoji/EmojiPicker.js +2 -12
- package/dist/esm/Chat/Kit/Emoji/EmojiPicker.js.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/emojiCatalog.d.ts +13 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/Emoji/emojiCatalog.js +0 -13
- package/dist/esm/Chat/Kit/Emoji/emojiCatalog.js.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/index.d.ts +4 -0
- package/dist/esm/Chat/Kit/Emoji/index.js +10 -0
- package/dist/esm/Chat/Kit/Emoji/recentEmojis.d.ts +23 -0
- package/dist/esm/Chat/Kit/Emoji/recentEmojis.js +35 -0
- package/dist/esm/Chat/Kit/Emoji/recentEmojis.js.map +1 -0
- package/dist/esm/Chat/Kit/FailedReply.d.ts +57 -0
- package/dist/esm/Chat/Kit/FailedReply.js +22 -0
- package/dist/esm/Chat/Kit/FailedReply.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/MentionCandidate.d.ts +17 -0
- package/dist/esm/Chat/Kit/Mentions/MentionCandidate.js +4 -0
- package/dist/esm/Chat/Kit/Mentions/MentionCandidate.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/MentionQuery.d.ts +10 -0
- package/dist/esm/Chat/Kit/Mentions/MentionQuery.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/MentionQuery.js +4 -0
- package/dist/esm/Chat/Kit/Mentions/MentionQuery.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.d.ts +25 -0
- package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.js +8 -0
- package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.d.ts +8 -0
- package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.js +20 -0
- package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/applyMention.d.ts +19 -0
- package/dist/esm/Chat/Kit/Mentions/applyMention.js +11 -0
- package/dist/esm/Chat/Kit/Mentions/applyMention.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/extractMentions.d.ts +12 -0
- package/dist/esm/Chat/Kit/Mentions/extractMentions.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/extractMentions.js +14 -0
- package/dist/esm/Chat/Kit/Mentions/extractMentions.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/findMentionRanges.d.ts +27 -0
- package/dist/esm/Chat/Kit/Mentions/findMentionRanges.d.ts.map +1 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/Mentions/findMentionRanges.js +2 -15
- package/dist/esm/Chat/Kit/Mentions/findMentionRanges.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/index.d.ts +6 -0
- package/dist/esm/Chat/Kit/Mentions/index.js +11 -0
- package/dist/esm/Chat/Kit/Mentions/matchCandidates.d.ts +8 -0
- package/dist/esm/Chat/Kit/Mentions/matchCandidates.js +13 -0
- package/dist/esm/Chat/Kit/Mentions/matchCandidates.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/mentionSegments.d.ts +23 -0
- package/dist/esm/Chat/Kit/Mentions/mentionSegments.d.ts.map +1 -0
- package/dist/esm/{Canvas/shapes/ChatBubble → Chat/Kit}/Mentions/mentionSegments.js +4 -10
- package/dist/esm/Chat/Kit/Mentions/mentionSegments.js.map +1 -0
- package/dist/esm/Chat/Kit/MessageReactions.d.ts +18 -0
- package/dist/esm/Chat/Kit/MessageReactions.js +19 -0
- package/dist/esm/Chat/Kit/MessageReactions.js.map +1 -0
- package/dist/esm/Chat/Kit/ReactionPicker.d.ts +55 -0
- package/dist/esm/Chat/Kit/ReactionPicker.js +38 -0
- package/dist/esm/Chat/Kit/ReactionPicker.js.map +1 -0
- package/dist/esm/Chat/Kit/TypingIndicator.d.ts +21 -0
- package/dist/esm/Chat/Kit/TypingIndicator.js +13 -0
- package/dist/esm/Chat/Kit/TypingIndicator.js.map +1 -0
- package/dist/esm/Chat/Kit/findOwnReaction.d.ts +12 -0
- package/dist/esm/Chat/Kit/findOwnReaction.js +9 -0
- package/dist/esm/Chat/Kit/findOwnReaction.js.map +1 -0
- package/dist/esm/Chat/Kit/index.d.ts +30 -0
- package/dist/esm/Chat/Kit/index.js +21 -0
- package/dist/esm/{Canvas/shapes/ChatBubble/reactionsExcludingUser.js → Chat/Kit/reactionsExcludingUser.d.ts} +3 -8
- package/dist/esm/Chat/Kit/reactionsExcludingUser.js +6 -0
- package/dist/esm/Chat/Kit/reactionsExcludingUser.js.map +1 -0
- package/dist/esm/Chat/index.d.ts +28 -29
- package/dist/esm/Chat/index.js +4 -7
- package/dist/esm/Chat/index.js.map +1 -1
- package/dist/esm/Chat/isTopicUnnamed.d.ts +9 -2
- package/dist/esm/Chat/isTopicUnnamed.js +0 -10
- package/dist/esm/Chat/isTopicUnnamed.js.map +1 -1
- package/dist/esm/Chat/relativeTimestamp.d.ts +12 -0
- package/dist/esm/Chat/relativeTimestamp.d.ts.map +1 -1
- package/dist/esm/Chat/relativeTimestamp.js +0 -10
- package/dist/esm/Chat/relativeTimestamp.js.map +1 -1
- package/dist/esm/Chat/shouldRequestTopicName.d.ts +9 -0
- package/dist/esm/Chat/shouldRequestTopicName.d.ts.map +1 -1
- package/dist/esm/Chat/shouldRequestTopicName.js +0 -11
- package/dist/esm/Chat/shouldRequestTopicName.js.map +1 -1
- package/dist/esm/Chat/topicsByActivity.d.ts +7 -2
- package/dist/esm/Chat/topicsByActivity.js +0 -14
- package/dist/esm/Chat/topicsByActivity.js.map +1 -1
- package/dist/esm/CommandDialog/CommandDialog.d.ts +42 -4
- package/dist/esm/CommandDialog/CommandDialog.js +16 -129
- package/dist/esm/CommandDialog/CommandDialog.js.map +1 -1
- package/dist/esm/CommandDialog/CommandStepper.d.ts +131 -25
- package/dist/esm/CommandDialog/CommandStepper.js +6 -187
- package/dist/esm/CommandDialog/CommandStepper.js.map +1 -1
- package/dist/esm/CommandDialog/CommandStepperContent.d.ts +45 -0
- package/dist/esm/CommandDialog/CommandStepperContent.js +145 -0
- package/dist/esm/CommandDialog/CommandStepperContent.js.map +1 -0
- package/dist/esm/CommandDialog/StepperCommandDialog.d.ts +77 -4
- package/dist/esm/CommandDialog/StepperCommandDialog.js +39 -131
- package/dist/esm/CommandDialog/StepperCommandDialog.js.map +1 -1
- package/dist/esm/CommandDialog/StepperPanel.d.ts +29 -0
- package/dist/esm/CommandDialog/StepperPanel.d.ts.map +1 -1
- package/dist/esm/CommandDialog/StepperPanel.js +0 -25
- package/dist/esm/CommandDialog/StepperPanel.js.map +1 -1
- package/dist/esm/CommandDialog/applyBeforeExecute.d.ts +32 -0
- package/dist/esm/CommandDialog/applyBeforeExecute.d.ts.map +1 -1
- package/dist/esm/CommandDialog/applyBeforeExecute.js +0 -21
- package/dist/esm/CommandDialog/applyBeforeExecute.js.map +1 -1
- package/dist/esm/CommandDialog/index.d.ts +5 -6
- package/dist/esm/CommandDialog/index.js +1 -4
- package/dist/esm/CommandDialog/index.js.map +1 -1
- package/dist/esm/CommandDialog/stepChildren.d.ts +19 -0
- package/dist/esm/CommandDialog/stepChildren.d.ts.map +1 -1
- package/dist/esm/CommandDialog/stepChildren.js +0 -21
- package/dist/esm/CommandDialog/stepChildren.js.map +1 -1
- package/dist/esm/CommandForm/AutoCommandForm.d.ts +25 -3
- package/dist/esm/CommandForm/AutoCommandForm.d.ts.map +1 -1
- package/dist/esm/CommandForm/AutoCommandForm.js +8 -20
- package/dist/esm/CommandForm/AutoCommandForm.js.map +1 -1
- package/dist/esm/CommandForm/FieldTypeProvider.d.ts +13 -0
- package/dist/esm/CommandForm/FieldTypeProvider.d.ts.map +1 -1
- package/dist/esm/CommandForm/FieldTypeProvider.js +2 -0
- package/dist/esm/CommandForm/FieldTypeProvider.js.map +1 -1
- package/dist/esm/CommandForm/commandFormMarkers.d.ts +58 -0
- package/dist/esm/CommandForm/commandFormMarkers.d.ts.map +1 -1
- package/dist/esm/CommandForm/commandFormMarkers.js +0 -44
- package/dist/esm/CommandForm/commandFormMarkers.js.map +1 -1
- package/dist/esm/CommandForm/defaultFieldTypeProviders.d.ts +5 -0
- package/dist/esm/CommandForm/defaultFieldTypeProviders.d.ts.map +1 -1
- package/dist/esm/CommandForm/defaultFieldTypeProviders.js +16 -11
- package/dist/esm/CommandForm/defaultFieldTypeProviders.js.map +1 -1
- package/dist/esm/CommandForm/fieldTypeProviderRegistry.d.ts +18 -2
- package/dist/esm/CommandForm/fieldTypeProviderRegistry.js +0 -19
- package/dist/esm/CommandForm/fieldTypeProviderRegistry.js.map +1 -1
- package/dist/esm/CommandForm/fields/CalendarField.d.ts +37 -6
- package/dist/esm/CommandForm/fields/CalendarField.js +10 -18
- package/dist/esm/CommandForm/fields/CalendarField.js.map +1 -1
- package/dist/esm/CommandForm/fields/CheckboxField.d.ts +18 -7
- package/dist/esm/CommandForm/fields/CheckboxField.js +21 -15
- package/dist/esm/CommandForm/fields/CheckboxField.js.map +1 -1
- package/dist/esm/CommandForm/fields/ChipsField.d.ts +20 -8
- package/dist/esm/CommandForm/fields/ChipsField.js +50 -19
- package/dist/esm/CommandForm/fields/ChipsField.js.map +1 -1
- package/dist/esm/CommandForm/fields/ColorPickerField.d.ts +16 -7
- package/dist/esm/CommandForm/fields/ColorPickerField.js +21 -33
- package/dist/esm/CommandForm/fields/ColorPickerField.js.map +1 -1
- package/dist/esm/CommandForm/fields/DropdownField.d.ts +34 -4
- package/dist/esm/CommandForm/fields/DropdownField.js +13 -18
- package/dist/esm/CommandForm/fields/DropdownField.js.map +1 -1
- package/dist/esm/CommandForm/fields/InputTextField.d.ts +12 -7
- package/dist/esm/CommandForm/fields/InputTextField.js +17 -46
- package/dist/esm/CommandForm/fields/InputTextField.js.map +1 -1
- package/dist/esm/CommandForm/fields/MultiSelectField.d.ts +39 -4
- package/dist/esm/CommandForm/fields/MultiSelectField.js +13 -15
- package/dist/esm/CommandForm/fields/MultiSelectField.js.map +1 -1
- package/dist/esm/CommandForm/fields/NumberField.d.ts +14 -7
- package/dist/esm/CommandForm/fields/NumberField.js +21 -16
- package/dist/esm/CommandForm/fields/NumberField.js.map +1 -1
- package/dist/esm/CommandForm/fields/PasswordField.d.ts +18 -7
- package/dist/esm/CommandForm/fields/PasswordField.js +26 -15
- package/dist/esm/CommandForm/fields/PasswordField.js.map +1 -1
- package/dist/esm/CommandForm/fields/RadioButtonField.d.ts +20 -7
- package/dist/esm/CommandForm/fields/RadioButtonField.js +22 -17
- package/dist/esm/CommandForm/fields/RadioButtonField.js.map +1 -1
- package/dist/esm/CommandForm/fields/RadioGroupField.d.ts +22 -7
- package/dist/esm/CommandForm/fields/RadioGroupField.js +44 -33
- package/dist/esm/CommandForm/fields/RadioGroupField.js.map +1 -1
- package/dist/esm/CommandForm/fields/RatingField.d.ts +20 -7
- package/dist/esm/CommandForm/fields/RatingField.js +43 -14
- package/dist/esm/CommandForm/fields/RatingField.js.map +1 -1
- package/dist/esm/CommandForm/fields/SliderField.d.ts +16 -7
- package/dist/esm/CommandForm/fields/SliderField.js +20 -14
- package/dist/esm/CommandForm/fields/SliderField.js.map +1 -1
- package/dist/esm/CommandForm/fields/TextAreaField.d.ts +12 -7
- package/dist/esm/CommandForm/fields/TextAreaField.js +18 -17
- package/dist/esm/CommandForm/fields/TextAreaField.js.map +1 -1
- package/dist/esm/CommandForm/fields/ToggleSwitchField.d.ts +18 -7
- package/dist/esm/CommandForm/fields/ToggleSwitchField.js +18 -15
- package/dist/esm/CommandForm/fields/ToggleSwitchField.js.map +1 -1
- package/dist/esm/CommandForm/fields/chipValues.d.ts +6 -0
- package/dist/esm/CommandForm/fields/chipValues.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/chipValues.js +17 -0
- package/dist/esm/CommandForm/fields/chipValues.js.map +1 -0
- package/dist/esm/CommandForm/fields/fieldAccessibility.d.ts +33 -0
- package/dist/esm/CommandForm/fields/fieldAccessibility.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/fieldAccessibility.js +24 -0
- package/dist/esm/CommandForm/fields/fieldAccessibility.js.map +1 -0
- package/dist/esm/CommandForm/fields/fieldValueFromEvent.d.ts +16 -0
- package/dist/esm/CommandForm/fields/fieldValueFromEvent.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/fieldValueFromEvent.js +20 -0
- package/dist/esm/CommandForm/fields/fieldValueFromEvent.js.map +1 -0
- package/dist/esm/CommandForm/fields/index.d.ts +15 -16
- package/dist/esm/CommandForm/fields/index.js +17 -16
- package/dist/esm/CommandForm/index.d.ts +5 -6
- package/dist/esm/CommandForm/index.js +0 -3
- package/dist/esm/CommandForm/index.js.map +1 -1
- package/dist/esm/Common/ActionMenubar.d.ts +28 -9
- package/dist/esm/Common/ActionMenubar.js +16 -15
- package/dist/esm/Common/ActionMenubar.js.map +1 -1
- package/dist/esm/Common/Button.d.ts +75 -8
- package/dist/esm/Common/Button.js +13 -24
- package/dist/esm/Common/Button.js.map +1 -1
- package/dist/esm/Common/ButtonImplementation.d.ts +3 -0
- package/dist/esm/Common/ButtonImplementation.js +65 -0
- package/dist/esm/Common/ButtonImplementation.js.map +1 -0
- package/dist/esm/Common/Checkbox.d.ts +34 -0
- package/dist/esm/Common/Checkbox.js +17 -0
- package/dist/esm/Common/Checkbox.js.map +1 -0
- package/dist/esm/Common/CheckboxImplementation.d.ts +3 -0
- package/dist/esm/Common/CheckboxImplementation.js +44 -0
- package/dist/esm/Common/CheckboxImplementation.js.map +1 -0
- package/dist/esm/Common/CratisComponentsContext.d.ts +4 -0
- package/dist/esm/Common/CratisComponentsContext.js +8 -0
- package/dist/esm/Common/CratisComponentsContext.js.map +1 -0
- package/dist/esm/Common/CratisComponentsDefaults.d.ts +3 -0
- package/dist/esm/Common/CratisComponentsDefaults.js +58 -0
- package/dist/esm/Common/CratisComponentsDefaults.js.map +1 -0
- package/dist/esm/Common/CratisComponentsProvider.d.ts +178 -8
- package/dist/esm/Common/CratisComponentsProvider.js +63 -50
- package/dist/esm/Common/CratisComponentsProvider.js.map +1 -1
- package/dist/esm/Common/DatePickerInput.d.ts +98 -9
- package/dist/esm/Common/DatePickerInput.js +11 -29
- package/dist/esm/Common/DatePickerInput.js.map +1 -1
- package/dist/esm/Common/DatePickerInputImplementation.d.ts +6 -0
- package/dist/esm/Common/DatePickerInputImplementation.js +86 -0
- package/dist/esm/Common/DatePickerInputImplementation.js.map +1 -0
- package/dist/esm/Common/ErrorBoundary.d.ts +48 -1
- package/dist/esm/Common/ErrorBoundary.d.ts.map +1 -1
- package/dist/esm/Common/ErrorBoundary.js +1 -33
- package/dist/esm/Common/ErrorBoundary.js.map +1 -1
- package/dist/esm/Common/FormElement.d.ts +33 -0
- package/dist/esm/Common/FormElement.d.ts.map +1 -1
- package/dist/esm/Common/FormElement.js +1 -13
- package/dist/esm/Common/FormElement.js.map +1 -1
- package/dist/esm/Common/Icon.d.ts +12 -0
- package/dist/esm/Common/Icon.d.ts.map +1 -1
- package/dist/esm/Common/Icon.js +1 -15
- package/dist/esm/Common/Icon.js.map +1 -1
- package/dist/esm/Common/IconButton.d.ts +15 -0
- package/dist/esm/Common/IconButton.js +17 -0
- package/dist/esm/Common/IconButton.js.map +1 -0
- package/dist/esm/Common/IconButtonImplementation.d.ts +3 -0
- package/dist/esm/Common/IconButtonImplementation.js +10 -0
- package/dist/esm/Common/IconButtonImplementation.js.map +1 -0
- package/dist/esm/Common/Page.d.ts +34 -0
- package/dist/esm/Common/Page.d.ts.map +1 -1
- package/dist/esm/Common/Page.js +1 -14
- package/dist/esm/Common/Page.js.map +1 -1
- package/dist/esm/Common/Radio.d.ts +38 -0
- package/dist/esm/Common/Radio.js +17 -0
- package/dist/esm/Common/Radio.js.map +1 -0
- package/dist/esm/Common/RadioImplementation.d.ts +3 -0
- package/dist/esm/Common/RadioImplementation.js +46 -0
- package/dist/esm/Common/RadioImplementation.js.map +1 -0
- package/dist/esm/Common/Surface.d.ts +18 -0
- package/dist/esm/Common/Surface.d.ts.map +1 -0
- package/dist/esm/Common/Surface.js +17 -0
- package/dist/esm/Common/Surface.js.map +1 -0
- package/dist/esm/Common/SurfaceImplementation.d.ts +3 -0
- package/dist/esm/Common/SurfaceImplementation.js +19 -0
- package/dist/esm/Common/SurfaceImplementation.js.map +1 -0
- package/dist/esm/Common/Switch.d.ts +34 -0
- package/dist/esm/Common/Switch.js +17 -0
- package/dist/esm/Common/Switch.js.map +1 -0
- package/dist/esm/Common/SwitchImplementation.d.ts +3 -0
- package/dist/esm/Common/SwitchImplementation.js +46 -0
- package/dist/esm/Common/SwitchImplementation.js.map +1 -0
- package/dist/esm/Common/TextArea.d.ts +18 -0
- package/dist/esm/Common/TextArea.js +17 -0
- package/dist/esm/Common/TextArea.js.map +1 -0
- package/dist/esm/Common/TextAreaImplementation.d.ts +3 -0
- package/dist/esm/Common/TextAreaImplementation.js +21 -0
- package/dist/esm/Common/TextAreaImplementation.js.map +1 -0
- package/dist/esm/Common/TextInput.d.ts +22 -0
- package/dist/esm/Common/TextInput.js +17 -0
- package/dist/esm/Common/TextInput.js.map +1 -0
- package/dist/esm/Common/TextInputImplementation.d.ts +3 -0
- package/dist/esm/Common/TextInputImplementation.js +21 -0
- package/dist/esm/Common/TextInputImplementation.js.map +1 -0
- package/dist/esm/Common/Tooltip.d.ts +18 -3
- package/dist/esm/Common/Tooltip.d.ts.map +1 -1
- package/dist/esm/Common/Tooltip.js +11 -26
- package/dist/esm/Common/Tooltip.js.map +1 -1
- package/dist/esm/Common/TooltipImplementation.d.ts +3 -0
- package/dist/esm/Common/TooltipImplementation.js +22 -0
- package/dist/esm/Common/TooltipImplementation.js.map +1 -0
- package/dist/esm/Common/index.d.ts +17 -11
- package/dist/esm/Common/index.js +10 -4
- package/dist/esm/Common/index.js.map +1 -1
- package/dist/esm/{Canvas/messaging/useOptionalMessenger.js → Common/messaging/useOptionalMessenger.d.ts} +10 -15
- package/dist/esm/Common/messaging/useOptionalMessenger.d.ts.map +1 -0
- package/dist/esm/Common/messaging/useOptionalMessenger.js +13 -0
- package/dist/esm/Common/messaging/useOptionalMessenger.js.map +1 -0
- package/dist/esm/Common/normalizeIconClass.d.ts +11 -1
- package/dist/esm/Common/normalizeIconClass.d.ts.map +1 -1
- package/dist/esm/Common/normalizeIconClass.js +1 -41
- package/dist/esm/Common/normalizeIconClass.js.map +1 -1
- package/dist/esm/Common/reactAriaProps.d.ts +7 -0
- package/dist/esm/Common/reactAriaProps.d.ts.map +1 -0
- package/dist/esm/Common/reactAriaProps.js +6 -0
- package/dist/esm/Common/reactAriaProps.js.map +1 -0
- package/dist/esm/Common/useNativeCheckedState.d.ts +8 -0
- package/dist/esm/Common/useNativeCheckedState.d.ts.map +1 -0
- package/dist/esm/Common/useNativeCheckedState.js +43 -0
- package/dist/esm/Common/useNativeCheckedState.js.map +1 -0
- package/dist/esm/DataPage/DataPage.d.ts +263 -14
- package/dist/esm/DataPage/DataPage.js +18 -156
- package/dist/esm/DataPage/DataPage.js.map +1 -1
- package/dist/esm/DataPage/DataPageLayout.d.ts +14 -0
- package/dist/esm/DataPage/DataPageLayout.d.ts.map +1 -1
- package/dist/esm/DataPage/DataPageLayout.js +0 -20
- package/dist/esm/DataPage/DataPageLayout.js.map +1 -1
- package/dist/esm/DataPage/index.d.ts +2 -3
- package/dist/esm/DataPage/index.js +0 -3
- package/dist/esm/DataPage/index.js.map +1 -1
- package/dist/esm/DataTables/Column.d.ts +44 -4
- package/dist/esm/DataTables/Column.js +0 -19
- package/dist/esm/DataTables/Column.js.map +1 -1
- package/dist/esm/DataTables/ColumnFilterMenu.d.ts +77 -6
- package/dist/esm/DataTables/ColumnFilterMenu.js +127 -60
- package/dist/esm/DataTables/ColumnFilterMenu.js.map +1 -1
- package/dist/esm/DataTables/DataTableCore.d.ts +67 -8
- package/dist/esm/DataTables/DataTableCore.js +232 -57
- package/dist/esm/DataTables/DataTableCore.js.map +1 -1
- package/dist/esm/DataTables/DataTableFilterMatcherRegistry.d.ts +16 -2
- package/dist/esm/DataTables/DataTableFilterMatcherRegistry.js +2 -18
- package/dist/esm/DataTables/DataTableFilterMatcherRegistry.js.map +1 -1
- package/dist/esm/DataTables/DataTableFilterMeta.d.ts +27 -1
- package/dist/esm/DataTables/DataTableFilterMeta.d.ts.map +1 -1
- package/dist/esm/DataTables/DataTableFilterMeta.js +0 -3
- package/dist/esm/DataTables/DataTableFilterMeta.js.map +1 -1
- package/dist/esm/DataTables/DataTableForObservableQuery.d.ts +98 -7
- package/dist/esm/DataTables/DataTableForObservableQuery.js +2 -51
- package/dist/esm/DataTables/DataTableForObservableQuery.js.map +1 -1
- package/dist/esm/DataTables/DataTableForQuery.d.ts +111 -7
- package/dist/esm/DataTables/DataTableForQuery.js +2 -47
- package/dist/esm/DataTables/DataTableForQuery.js.map +1 -1
- package/dist/esm/DataTables/DataTableSelectionChangeEvent.d.ts +10 -0
- package/dist/esm/DataTables/DataTableSelectionChangeEvent.d.ts.map +1 -1
- package/dist/esm/DataTables/DataTableSelectionChangeEvent.js +2 -0
- package/dist/esm/DataTables/DataTableSelectionChangeEvent.js.map +1 -1
- package/dist/esm/DataTables/TablePaginator.d.ts +38 -2
- package/dist/esm/DataTables/TablePaginator.js +11 -26
- package/dist/esm/DataTables/TablePaginator.js.map +1 -1
- package/dist/esm/DataTables/TablePaginatorImplementation.d.ts +8 -0
- package/dist/esm/DataTables/TablePaginatorImplementation.js +35 -0
- package/dist/esm/DataTables/TablePaginatorImplementation.js.map +1 -0
- package/dist/esm/DataTables/index.d.ts +9 -9
- package/dist/esm/DataTables/index.js +2 -4
- package/dist/esm/DataTables/index.js.map +1 -1
- package/dist/esm/DataTables/paginatorRange.d.ts +9 -0
- package/dist/esm/DataTables/paginatorRange.d.ts.map +1 -1
- package/dist/esm/DataTables/paginatorRange.js +0 -11
- package/dist/esm/DataTables/paginatorRange.js.map +1 -1
- package/dist/esm/DataTables/selectionKeys.d.ts +4 -1
- package/dist/esm/DataTables/selectionKeys.d.ts.map +1 -1
- package/dist/esm/DataTables/selectionKeys.js +7 -23
- package/dist/esm/DataTables/selectionKeys.js.map +1 -1
- package/dist/esm/Dialogs/BusyIndicatorDialog.d.ts +50 -0
- package/dist/esm/Dialogs/BusyIndicatorDialog.d.ts.map +1 -1
- package/dist/esm/Dialogs/BusyIndicatorDialog.js +1 -51
- package/dist/esm/Dialogs/BusyIndicatorDialog.js.map +1 -1
- package/dist/esm/Dialogs/ConfirmationDialog.d.ts +25 -0
- package/dist/esm/Dialogs/ConfirmationDialog.d.ts.map +1 -1
- package/dist/esm/Dialogs/ConfirmationDialog.js +1 -1
- package/dist/esm/Dialogs/ConfirmationDialog.js.map +1 -1
- package/dist/esm/Dialogs/Dialog.d.ts +72 -8
- package/dist/esm/Dialogs/Dialog.js +11 -216
- package/dist/esm/Dialogs/Dialog.js.map +1 -1
- package/dist/esm/Dialogs/DialogImplementation.d.ts +6 -0
- package/dist/esm/Dialogs/DialogImplementation.js +122 -0
- package/dist/esm/Dialogs/DialogImplementation.js.map +1 -0
- package/dist/esm/Dialogs/DialogInitialFocus.d.ts +38 -0
- package/dist/esm/Dialogs/DialogInitialFocus.d.ts.map +1 -1
- package/dist/esm/Dialogs/DialogInitialFocus.js +0 -40
- package/dist/esm/Dialogs/DialogInitialFocus.js.map +1 -1
- package/dist/esm/Dialogs/index.d.ts +4 -5
- package/dist/esm/Dialogs/index.js +0 -3
- package/dist/esm/Dialogs/index.js.map +1 -1
- package/dist/esm/Display/Avatar.d.ts +11 -3
- package/dist/esm/Display/Avatar.d.ts.map +1 -1
- package/dist/esm/Display/Avatar.js +1 -8
- package/dist/esm/Display/Avatar.js.map +1 -1
- package/dist/esm/Display/Badge.d.ts +13 -4
- package/dist/esm/Display/Badge.d.ts.map +1 -1
- package/dist/esm/Display/Badge.js +1 -6
- package/dist/esm/Display/Badge.js.map +1 -1
- package/dist/esm/Display/Chip.d.ts +11 -3
- package/dist/esm/Display/Chip.d.ts.map +1 -1
- package/dist/esm/Display/Chip.js +1 -6
- package/dist/esm/Display/Chip.js.map +1 -1
- package/dist/esm/Display/Message.d.ts +13 -5
- package/dist/esm/Display/Message.d.ts.map +1 -1
- package/dist/esm/Display/Message.js +9 -21
- package/dist/esm/Display/Message.js.map +1 -1
- package/dist/esm/Display/ProgressBar.d.ts +11 -1
- package/dist/esm/Display/ProgressBar.d.ts.map +1 -1
- package/dist/esm/Display/ProgressBar.js +12 -8
- package/dist/esm/Display/ProgressBar.js.map +1 -1
- package/dist/esm/Display/ProgressBarImplementation.d.ts +3 -0
- package/dist/esm/Display/ProgressBarImplementation.js +11 -0
- package/dist/esm/Display/ProgressBarImplementation.js.map +1 -0
- package/dist/esm/Display/ProgressSpinner.d.ts +8 -3
- package/dist/esm/Display/ProgressSpinner.d.ts.map +1 -1
- package/dist/esm/Display/ProgressSpinner.js +2 -9
- package/dist/esm/Display/ProgressSpinner.js.map +1 -1
- package/dist/esm/Display/Skeleton.d.ts +8 -1
- package/dist/esm/Display/Skeleton.d.ts.map +1 -1
- package/dist/esm/Display/Skeleton.js +5 -13
- package/dist/esm/Display/Skeleton.js.map +1 -1
- package/dist/esm/Display/Tag.d.ts +17 -5
- package/dist/esm/Display/Tag.d.ts.map +1 -1
- package/dist/esm/Display/Tag.js +3 -8
- package/dist/esm/Display/Tag.js.map +1 -1
- package/dist/esm/Display/index.d.ts +8 -9
- package/dist/esm/Display/index.js +0 -3
- package/dist/esm/Display/index.js.map +1 -1
- package/dist/esm/Dropdown/Dropdown.d.ts +88 -12
- package/dist/esm/Dropdown/Dropdown.js +11 -33
- package/dist/esm/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/Dropdown/DropdownImplementation.d.ts +7 -0
- package/dist/esm/Dropdown/DropdownImplementation.js +156 -0
- package/dist/esm/Dropdown/DropdownImplementation.js.map +1 -0
- package/dist/esm/Dropdown/index.d.ts +1 -2
- package/dist/esm/Dropdown/index.js +0 -3
- package/dist/esm/Dropdown/index.js.map +1 -1
- package/dist/esm/Filter/FilterEditor.d.ts +28 -2
- package/dist/esm/Filter/FilterEditor.js +0 -20
- package/dist/esm/Filter/FilterEditor.js.map +1 -1
- package/dist/esm/Filter/FilterEditorProps.d.ts +8 -0
- package/dist/esm/Filter/FilterEditorProps.js +4 -0
- package/dist/esm/Filter/FilterEditorProps.js.map +1 -0
- package/dist/esm/Filter/FilterPanel.d.ts +46 -3
- package/dist/esm/Filter/FilterPanel.js +63 -33
- package/dist/esm/Filter/FilterPanel.js.map +1 -1
- package/dist/esm/Filter/RangeHistogramFilter.d.ts +61 -4
- package/dist/esm/Filter/RangeHistogramFilter.js +49 -8
- package/dist/esm/Filter/RangeHistogramFilter.js.map +1 -1
- package/dist/esm/Filter/index.d.ts +11 -12
- package/dist/esm/Filter/index.js +1 -4
- package/dist/esm/Filter/index.js.map +1 -1
- package/dist/esm/Filter/types.d.ts +32 -4
- package/dist/esm/Filter/types.d.ts.map +1 -1
- package/dist/esm/Filter/types.js +2 -0
- package/dist/esm/Filter/types.js.map +1 -1
- package/dist/esm/Filter/useFilterState.d.ts +25 -2
- package/dist/esm/Filter/useFilterState.js +1 -13
- package/dist/esm/Filter/useFilterState.js.map +1 -1
- package/dist/esm/Filter/utils.d.ts +39 -2
- package/dist/esm/Filter/utils.js +34 -12
- package/dist/esm/Filter/utils.js.map +1 -1
- package/dist/esm/Notifications/Toaster.d.ts +30 -6
- package/dist/esm/Notifications/Toaster.d.ts.map +1 -1
- package/dist/esm/Notifications/Toaster.js +42 -42
- package/dist/esm/Notifications/Toaster.js.map +1 -1
- package/dist/esm/Notifications/index.d.ts +3 -4
- package/dist/esm/Notifications/index.js +1 -4
- package/dist/esm/Notifications/index.js.map +1 -1
- package/dist/esm/Notifications/toast.d.ts +102 -0
- package/dist/esm/Notifications/toast.d.ts.map +1 -1
- package/dist/esm/Notifications/toast.js +73 -67
- package/dist/esm/Notifications/toast.js.map +1 -1
- package/dist/esm/Notifications/toastCommandResult.d.ts +33 -0
- package/dist/esm/Notifications/toastCommandResult.d.ts.map +1 -1
- package/dist/esm/Notifications/toastCommandResult.js +0 -28
- package/dist/esm/Notifications/toastCommandResult.js.map +1 -1
- package/dist/esm/ObjectContentEditor/ObjectContentEditor.d.ts +45 -4
- package/dist/esm/ObjectContentEditor/ObjectContentEditor.js +96 -47
- package/dist/esm/ObjectContentEditor/ObjectContentEditor.js.map +1 -1
- package/dist/esm/ObjectContentEditor/index.d.ts +1 -2
- package/dist/esm/ObjectContentEditor/index.js +0 -3
- package/dist/esm/ObjectContentEditor/index.js.map +1 -1
- package/dist/esm/ObjectContentEditor/objectHelpers.d.ts +5 -2
- package/dist/esm/ObjectContentEditor/objectHelpers.js +0 -6
- package/dist/esm/ObjectContentEditor/objectHelpers.js.map +1 -1
- package/dist/esm/ObjectNavigationalBar/ObjectNavigationalBar.d.ts +23 -1
- package/dist/esm/ObjectNavigationalBar/ObjectNavigationalBar.d.ts.map +1 -1
- package/dist/esm/ObjectNavigationalBar/ObjectNavigationalBar.js +18 -14
- package/dist/esm/ObjectNavigationalBar/ObjectNavigationalBar.js.map +1 -1
- package/dist/esm/ObjectNavigationalBar/breadcrumbHelpers.d.ts +4 -0
- package/dist/esm/ObjectNavigationalBar/breadcrumbHelpers.d.ts.map +1 -1
- package/dist/esm/ObjectNavigationalBar/breadcrumbHelpers.js +0 -6
- package/dist/esm/ObjectNavigationalBar/breadcrumbHelpers.js.map +1 -1
- package/dist/esm/ObjectNavigationalBar/index.d.ts +1 -2
- package/dist/esm/ObjectNavigationalBar/index.js +0 -3
- package/dist/esm/ObjectNavigationalBar/index.js.map +1 -1
- package/dist/esm/PatrickHand-OFL.txt +93 -0
- package/dist/esm/PivotViewer/PivotViewer.d.ts +21 -3
- package/dist/esm/PivotViewer/PivotViewer.js +74 -104
- package/dist/esm/PivotViewer/PivotViewer.js.map +1 -1
- package/dist/esm/PivotViewer/components/AxisLabels.d.ts +1 -2
- package/dist/esm/PivotViewer/components/AxisLabels.js +1 -5
- package/dist/esm/PivotViewer/components/AxisLabels.js.map +1 -1
- package/dist/esm/PivotViewer/components/DetailPanel.d.ts +1 -0
- package/dist/esm/PivotViewer/components/DetailPanel.d.ts.map +1 -1
- package/dist/esm/PivotViewer/components/FilterPanel.d.ts +2 -3
- package/dist/esm/PivotViewer/components/FilterPanel.js +0 -1
- package/dist/esm/PivotViewer/components/FilterPanel.js.map +1 -1
- package/dist/esm/PivotViewer/components/FilterPanelContainer.d.ts +1 -2
- package/dist/esm/PivotViewer/components/PivotCanvas.d.ts +22 -4
- package/dist/esm/PivotViewer/components/PivotCanvas.js +70 -168
- package/dist/esm/PivotViewer/components/PivotCanvas.js.map +1 -1
- package/dist/esm/PivotViewer/components/PivotViewerMain.d.ts +7 -5
- package/dist/esm/PivotViewer/components/PivotViewerMain.js +2 -6
- package/dist/esm/PivotViewer/components/PivotViewerMain.js.map +1 -1
- package/dist/esm/PivotViewer/components/RangeHistogramFilter.d.ts +3 -3
- package/dist/esm/PivotViewer/components/RangeHistogramFilter.js +11 -6
- package/dist/esm/PivotViewer/components/RangeHistogramFilter.js.map +1 -1
- package/dist/esm/PivotViewer/components/Spinner.js +0 -2
- package/dist/esm/PivotViewer/components/Spinner.js.map +1 -1
- package/dist/esm/PivotViewer/components/Toolbar.d.ts +4 -3
- package/dist/esm/PivotViewer/components/Toolbar.js +2 -2
- package/dist/esm/PivotViewer/components/Toolbar.js.map +1 -1
- package/dist/esm/PivotViewer/components/ToolbarContainer.d.ts +1 -2
- package/dist/esm/PivotViewer/components/index.d.ts +8 -9
- package/dist/esm/PivotViewer/components/index.js +9 -8
- package/dist/esm/PivotViewer/components/pivot/animation.d.ts +1 -2
- package/dist/esm/PivotViewer/components/pivot/animation.js +1 -8
- package/dist/esm/PivotViewer/components/pivot/animation.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/colorResolver.d.ts +18 -4
- package/dist/esm/PivotViewer/components/pivot/colorResolver.js +143 -37
- package/dist/esm/PivotViewer/components/pivot/colorResolver.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/constants.d.ts +12 -6
- package/dist/esm/PivotViewer/components/pivot/constants.d.ts.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/constants.js +7 -10
- package/dist/esm/PivotViewer/components/pivot/constants.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/ellipsize.d.ts +33 -0
- package/dist/esm/PivotViewer/components/pivot/ellipsize.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/ellipsize.js +30 -0
- package/dist/esm/PivotViewer/components/pivot/ellipsize.js.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/groups.d.ts +2 -3
- package/dist/esm/PivotViewer/components/pivot/groups.js +5 -20
- package/dist/esm/PivotViewer/components/pivot/groups.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/sprites.d.ts +3 -2
- package/dist/esm/PivotViewer/components/pivot/sprites.js +104 -74
- package/dist/esm/PivotViewer/components/pivot/sprites.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/visibility.d.ts +2 -3
- package/dist/esm/PivotViewer/components/pivot/visibility.js +3 -102
- package/dist/esm/PivotViewer/components/pivot/visibility.js.map +1 -1
- package/dist/esm/PivotViewer/constants.js +0 -2
- package/dist/esm/PivotViewer/constants.js.map +1 -1
- package/dist/esm/PivotViewer/engine/layout.d.ts +1 -2
- package/dist/esm/PivotViewer/engine/layout.js +0 -23
- package/dist/esm/PivotViewer/engine/layout.js.map +1 -1
- package/dist/esm/PivotViewer/engine/pivot.worker.d.ts.map +1 -1
- package/dist/esm/PivotViewer/engine/pivot.worker.js +9 -2
- package/dist/esm/PivotViewer/engine/requestCorrelator.d.ts +24 -0
- package/dist/esm/PivotViewer/engine/requestCorrelator.d.ts.map +1 -0
- package/dist/esm/PivotViewer/engine/requestCorrelator.js +23 -0
- package/dist/esm/PivotViewer/engine/requestCorrelator.js.map +1 -0
- package/dist/esm/PivotViewer/engine/store.d.ts +22 -2
- package/dist/esm/PivotViewer/engine/store.js +31 -41
- package/dist/esm/PivotViewer/engine/store.js.map +1 -1
- package/dist/esm/PivotViewer/engine/types.d.ts +87 -0
- package/dist/esm/PivotViewer/engine/types.d.ts.map +1 -1
- package/dist/esm/PivotViewer/engine/types.js +2 -0
- package/dist/esm/PivotViewer/engine/types.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/index.d.ts +18 -18
- package/dist/esm/PivotViewer/hooks/index.js +20 -18
- package/dist/esm/PivotViewer/hooks/useAnimationModeTracking.d.ts +3 -0
- package/dist/esm/PivotViewer/hooks/useAnimationModeTracking.d.ts.map +1 -1
- package/dist/esm/PivotViewer/hooks/useAnimationModeTracking.js +0 -8
- package/dist/esm/PivotViewer/hooks/useAnimationModeTracking.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useCardSelection.d.ts +2 -3
- package/dist/esm/PivotViewer/hooks/useCardSelection.js +27 -20
- package/dist/esm/PivotViewer/hooks/useCardSelection.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useContainerDimensions.d.ts +7 -0
- package/dist/esm/PivotViewer/hooks/useContainerDimensions.d.ts.map +1 -1
- package/dist/esm/PivotViewer/hooks/useContainerDimensions.js +0 -11
- package/dist/esm/PivotViewer/hooks/useContainerDimensions.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useCurrentFilters.d.ts +8 -4
- package/dist/esm/PivotViewer/hooks/useCurrentFilters.js +2 -10
- package/dist/esm/PivotViewer/hooks/useCurrentFilters.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useDetailPanelClose.d.ts +2 -3
- package/dist/esm/PivotViewer/hooks/useDetailPanelClose.js +19 -16
- package/dist/esm/PivotViewer/hooks/useDetailPanelClose.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useDimensionState.d.ts +1 -2
- package/dist/esm/PivotViewer/hooks/useDimensionState.js +0 -2
- package/dist/esm/PivotViewer/hooks/useDimensionState.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFieldExtractors.d.ts +2 -3
- package/dist/esm/PivotViewer/hooks/useFieldExtractors.js +0 -2
- package/dist/esm/PivotViewer/hooks/useFieldExtractors.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFilterOptions.d.ts +2 -3
- package/dist/esm/PivotViewer/hooks/useFilterOptions.js +0 -2
- package/dist/esm/PivotViewer/hooks/useFilterOptions.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFilterPanelDrag.js +2 -0
- package/dist/esm/PivotViewer/hooks/useFilterPanelDrag.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFilterState.d.ts +4 -2
- package/dist/esm/PivotViewer/hooks/useFilterState.js +0 -5
- package/dist/esm/PivotViewer/hooks/useFilterState.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFilteredData.d.ts +2 -3
- package/dist/esm/PivotViewer/hooks/useFilteredData.js +11 -3
- package/dist/esm/PivotViewer/hooks/usePanning.js +0 -14
- package/dist/esm/PivotViewer/hooks/usePanning.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/usePivotEngine.d.ts +1 -2
- package/dist/esm/PivotViewer/hooks/usePivotEngine.js +16 -29
- package/dist/esm/PivotViewer/hooks/usePivotEngine.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useScrollSync.d.ts +4 -2
- package/dist/esm/PivotViewer/hooks/useScrollSync.js +0 -6
- package/dist/esm/PivotViewer/hooks/useScrollSync.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useSelectedItem.js +3 -2
- package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.d.ts +5 -3
- package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.js +13 -14
- package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useWheelZoom.d.ts.map +1 -1
- package/dist/esm/PivotViewer/hooks/useWheelZoom.js +11 -11
- package/dist/esm/PivotViewer/hooks/useWheelZoom.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useZoomScrollAnchor.d.ts +27 -0
- package/dist/esm/PivotViewer/hooks/useZoomScrollAnchor.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useZoomScrollAnchor.js +54 -0
- package/dist/esm/PivotViewer/hooks/useZoomScrollAnchor.js.map +1 -0
- package/dist/esm/PivotViewer/hooks/useZoomState.js +0 -2
- package/dist/esm/PivotViewer/hooks/useZoomState.js.map +1 -1
- package/dist/esm/PivotViewer/index.d.ts +3 -5
- package/dist/esm/PivotViewer/index.js +1 -4
- package/dist/esm/PivotViewer/index.js.map +1 -1
- package/dist/esm/PivotViewer/types.d.ts +97 -19
- package/dist/esm/PivotViewer/types.js +5 -13
- package/dist/esm/PivotViewer/types.js.map +1 -1
- package/dist/esm/PivotViewer/utils/animations.d.ts +9 -0
- package/dist/esm/PivotViewer/utils/animations.d.ts.map +1 -1
- package/dist/esm/PivotViewer/utils/animations.js +2 -35
- package/dist/esm/PivotViewer/utils/animations.js.map +1 -1
- package/dist/esm/PivotViewer/utils/cardPosition.d.ts +14 -5
- package/dist/esm/PivotViewer/utils/cardPosition.js +3 -21
- package/dist/esm/PivotViewer/utils/cardPosition.js.map +1 -1
- package/dist/esm/PivotViewer/utils/constants.js +0 -3
- package/dist/esm/PivotViewer/utils/constants.js.map +1 -1
- package/dist/esm/PivotViewer/utils/idResolution.d.ts +22 -2
- package/dist/esm/PivotViewer/utils/idResolution.js +29 -17
- package/dist/esm/PivotViewer/utils/idResolution.js.map +1 -1
- package/dist/esm/PivotViewer/utils/index.d.ts +5 -6
- package/dist/esm/PivotViewer/utils/index.js +7 -6
- package/dist/esm/PivotViewer/utils/search.d.ts +11 -0
- package/dist/esm/PivotViewer/utils/search.js +30 -0
- package/dist/esm/PivotViewer/utils/search.js.map +1 -0
- package/dist/esm/PivotViewer/utils/selection.d.ts +7 -2
- package/dist/esm/PivotViewer/utils/selection.js +0 -25
- package/dist/esm/PivotViewer/utils/selection.js.map +1 -1
- package/dist/esm/PivotViewer/utils/utils.d.ts +11 -2
- package/dist/esm/PivotViewer/utils/utils.js +0 -5
- package/dist/esm/PivotViewer/utils/utils.js.map +1 -1
- package/dist/esm/SchemaEditor/NameCell.d.ts +4 -3
- package/dist/esm/SchemaEditor/NameCell.js +14 -5
- package/dist/esm/SchemaEditor/NameCell.js.map +1 -1
- package/dist/esm/SchemaEditor/SchemaEditor.d.ts +68 -5
- package/dist/esm/SchemaEditor/SchemaEditor.js +226 -74
- package/dist/esm/SchemaEditor/SchemaEditor.js.map +1 -1
- package/dist/esm/SchemaEditor/TypeCell.d.ts +5 -5
- package/dist/esm/SchemaEditor/TypeCell.js +36 -18
- package/dist/esm/SchemaEditor/TypeCell.js.map +1 -1
- package/dist/esm/SchemaEditor/index.d.ts +3 -4
- package/dist/esm/SchemaEditor/index.js +0 -3
- package/dist/esm/SchemaEditor/index.js.map +1 -1
- package/dist/esm/SchemaEditor/schemaHelpers.d.ts +7 -2
- package/dist/esm/SchemaEditor/schemaHelpers.js +5 -9
- package/dist/esm/SchemaEditor/schemaHelpers.js.map +1 -1
- package/dist/esm/TimeMachine/EventsView.d.ts +35 -10
- package/dist/esm/TimeMachine/EventsView.js +23 -41
- package/dist/esm/TimeMachine/EventsView.js.map +1 -1
- package/dist/esm/TimeMachine/Properties.d.ts +7 -0
- package/dist/esm/TimeMachine/Properties.d.ts.map +1 -1
- package/dist/esm/TimeMachine/Properties.js +11 -8
- package/dist/esm/TimeMachine/Properties.js.map +1 -1
- package/dist/esm/TimeMachine/ReadModelView.d.ts +29 -4
- package/dist/esm/TimeMachine/ReadModelView.js +3 -12
- package/dist/esm/TimeMachine/ReadModelView.js.map +1 -1
- package/dist/esm/TimeMachine/TimeMachine.d.ts +22 -7
- package/dist/esm/TimeMachine/TimeMachine.js +23 -23
- package/dist/esm/TimeMachine/TimeMachine.js.map +1 -1
- package/dist/esm/TimeMachine/TimeMachineLabels.d.ts +15 -0
- package/dist/esm/TimeMachine/TimeMachineLabels.d.ts.map +1 -1
- package/dist/esm/TimeMachine/TimeMachineLabels.js +0 -3
- package/dist/esm/TimeMachine/TimeMachineLabels.js.map +1 -1
- package/dist/esm/TimeMachine/index.d.ts +9 -8
- package/dist/esm/TimeMachine/index.js +0 -3
- package/dist/esm/TimeMachine/index.js.map +1 -1
- package/dist/esm/TimeMachine/propertiesHelpers.d.ts +3 -0
- package/dist/esm/TimeMachine/propertiesHelpers.d.ts.map +1 -1
- package/dist/esm/TimeMachine/propertiesHelpers.js +0 -5
- package/dist/esm/TimeMachine/propertiesHelpers.js.map +1 -1
- package/dist/esm/TimeMachine/types.d.ts +24 -0
- package/dist/esm/TimeMachine/types.d.ts.map +1 -1
- package/dist/esm/TimeMachine/types.js +2 -0
- package/dist/esm/TimeMachine/types.js.map +1 -1
- package/dist/esm/Toolbar/Toolbar.d.ts +32 -2
- package/dist/esm/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/esm/Toolbar/Toolbar.js +20 -6
- package/dist/esm/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarButton.d.ts +41 -4
- package/dist/esm/Toolbar/ToolbarButton.js +7 -14
- package/dist/esm/Toolbar/ToolbarButton.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarContext.d.ts +16 -0
- package/dist/esm/Toolbar/ToolbarContext.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarContext.js +0 -8
- package/dist/esm/Toolbar/ToolbarContext.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarDragContext.d.ts +16 -0
- package/dist/esm/Toolbar/ToolbarDragContext.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarDragContext.js +0 -12
- package/dist/esm/Toolbar/ToolbarDragContext.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarFanOutItem.d.ts +33 -5
- package/dist/esm/Toolbar/ToolbarFanOutItem.js +23 -21
- package/dist/esm/Toolbar/ToolbarFanOutItem.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarFolder.d.ts +40 -6
- package/dist/esm/Toolbar/ToolbarFolder.js +29 -17
- package/dist/esm/Toolbar/ToolbarFolder.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarFolderContext.d.ts +9 -0
- package/dist/esm/Toolbar/ToolbarFolderContext.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarFolderContext.js +0 -10
- package/dist/esm/Toolbar/ToolbarFolderContext.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarGroup.d.ts +41 -2
- package/dist/esm/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarGroup.js +7 -49
- package/dist/esm/Toolbar/ToolbarGroup.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarItemVisibilityContext.d.ts +3 -0
- package/dist/esm/Toolbar/ToolbarItemVisibilityContext.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarItemVisibilityContext.js +8 -0
- package/dist/esm/Toolbar/ToolbarItemVisibilityContext.js.map +1 -0
- package/dist/esm/Toolbar/ToolbarLayout.d.ts +71 -2
- package/dist/esm/Toolbar/ToolbarLayout.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarLayout.js +8 -66
- package/dist/esm/Toolbar/ToolbarLayout.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarSection.d.ts +30 -2
- package/dist/esm/Toolbar/ToolbarSection.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarSection.js +6 -33
- package/dist/esm/Toolbar/ToolbarSection.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarSeparator.d.ts +17 -1
- package/dist/esm/Toolbar/ToolbarSeparator.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarSeparator.js +1 -7
- package/dist/esm/Toolbar/ToolbarSeparator.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarSlot.d.ts +46 -0
- package/dist/esm/Toolbar/ToolbarSlot.d.ts.map +1 -1
- package/dist/esm/Toolbar/ToolbarSlot.js +1 -46
- package/dist/esm/Toolbar/ToolbarSlot.js.map +1 -1
- package/dist/esm/Toolbar/index.d.ts +21 -22
- package/dist/esm/Toolbar/index.js +0 -3
- package/dist/esm/Toolbar/index.js.map +1 -1
- package/dist/esm/index.d.ts +18 -25
- package/dist/esm/index.js +3 -45
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/renderer/RendererContext.d.ts +50 -0
- package/dist/esm/renderer/RendererContext.js +128 -0
- package/dist/esm/renderer/RendererContext.js.map +1 -0
- package/dist/esm/renderer/RendererScope.d.ts +19 -0
- package/dist/esm/renderer/RendererScope.js +54 -0
- package/dist/esm/renderer/RendererScope.js.map +1 -0
- package/dist/esm/renderer/builtin/index.d.ts +12 -0
- package/dist/esm/renderer/builtin/index.d.ts.map +1 -0
- package/dist/esm/renderer/builtin/index.js +47 -0
- package/dist/esm/renderer/builtin/index.js.map +1 -0
- package/dist/esm/renderer/capabilities.d.ts +8 -0
- package/dist/esm/renderer/capabilities.d.ts.map +1 -0
- package/dist/esm/renderer/capabilities.js +4 -0
- package/dist/esm/renderer/capabilities.js.map +1 -0
- package/dist/esm/renderer/coreSlots.d.ts +80 -0
- package/dist/esm/renderer/coreSlots.js +35 -0
- package/dist/esm/renderer/coreSlots.js.map +1 -0
- package/dist/esm/renderer/errors.d.ts +58 -0
- package/dist/esm/renderer/errors.js +24 -0
- package/dist/esm/renderer/errors.js.map +1 -0
- package/dist/esm/renderer/index.d.ts +60 -0
- package/dist/esm/renderer/index.js +7 -0
- package/dist/esm/{Styled → renderer}/index.js.map +1 -1
- package/dist/esm/renderer/manifest.d.ts +97 -0
- package/dist/esm/renderer/manifest.js +36 -0
- package/dist/esm/renderer/manifest.js.map +1 -0
- package/dist/esm/renderer/overlayEnvironment.d.ts +23 -0
- package/dist/esm/renderer/overlayEnvironment.d.ts.map +1 -0
- package/dist/esm/renderer/overlayEnvironment.js +6 -0
- package/dist/esm/renderer/overlayEnvironment.js.map +1 -0
- package/dist/esm/renderer/presentation.d.ts +93 -0
- package/dist/esm/renderer/presentation.js +119 -0
- package/dist/esm/renderer/presentation.js.map +1 -0
- package/dist/esm/renderer/renderSlot.d.ts +8 -0
- package/dist/esm/renderer/renderSlot.d.ts.map +1 -0
- package/dist/esm/renderer/renderSlot.js +12 -0
- package/dist/esm/renderer/renderSlot.js.map +1 -0
- package/dist/esm/renderer/resolve.d.ts +37 -0
- package/dist/esm/renderer/resolve.js +123 -0
- package/dist/esm/renderer/resolve.js.map +1 -0
- package/dist/esm/renderer/slots.d.ts +52 -0
- package/dist/esm/renderer/slots.d.ts.map +1 -0
- package/dist/esm/renderer/slots.js +4 -0
- package/dist/esm/renderer/slots.js.map +1 -0
- package/dist/esm/schemas/ui-adapter.schema.d.ts +7 -0
- package/dist/esm/schemas/ui-adapter.schema.json +210 -0
- package/dist/esm/styles.css +5046 -3820
- package/dist/esm/theme.css +172 -434
- package/dist/esm/tokens.css +55 -97
- package/dist/esm/types/ChangeHandler.d.ts +13 -0
- package/dist/esm/types/ChangeHandler.js +4 -0
- package/dist/esm/types/ChangeHandler.js.map +1 -0
- package/dist/esm/types/ChangeMeta.d.ts +26 -0
- package/dist/esm/types/ChangeMeta.d.ts.map +1 -0
- package/dist/esm/types/ChangeMeta.js +4 -0
- package/dist/esm/types/ChangeMeta.js.map +1 -0
- package/dist/esm/types/ExactPartKeys.d.ts +6 -0
- package/dist/esm/types/ExactPartKeys.d.ts.map +1 -0
- package/dist/esm/types/ExactPartKeys.js +4 -0
- package/dist/esm/types/ExactPartKeys.js.map +1 -0
- package/dist/esm/types/JsonSchema.d.ts +40 -1
- package/dist/esm/types/JsonSchema.d.ts.map +1 -1
- package/dist/esm/types/JsonSchema.js +2 -0
- package/dist/esm/types/JsonSchema.js.map +1 -1
- package/dist/esm/types/TypeFormat.d.ts +11 -0
- package/dist/esm/types/TypeFormat.d.ts.map +1 -1
- package/dist/esm/types/TypeFormat.js +0 -2
- package/dist/esm/types/TypeFormat.js.map +1 -1
- package/dist/esm/types/index.d.ts +5 -3
- package/dist/esm/types/index.js +1 -3
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/parts.d.ts +467 -0
- package/dist/esm/types/parts.d.ts.map +1 -0
- package/dist/esm/types/parts.js +453 -0
- package/dist/esm/types/parts.js.map +1 -0
- package/package.json +125 -46
- package/dist/esm/Canvas/Canvas.d.ts.map +0 -1
- package/dist/esm/Canvas/CanvasControls.d.ts.map +0 -1
- package/dist/esm/Canvas/glassAttributes.d.ts +0 -4
- package/dist/esm/Canvas/glassAttributes.d.ts.map +0 -1
- package/dist/esm/Canvas/glassAttributes.js +0 -25
- package/dist/esm/Canvas/glassAttributes.js.map +0 -1
- package/dist/esm/Canvas/index.d.ts.map +0 -1
- package/dist/esm/Canvas/messaging/useOptionalMessenger.d.ts +0 -3
- package/dist/esm/Canvas/messaging/useOptionalMessenger.d.ts.map +0 -1
- package/dist/esm/Canvas/messaging/useOptionalMessenger.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/AnchoredOverlay.d.ts +0 -13
- package/dist/esm/Canvas/shapes/ChatBubble/AnchoredOverlay.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/AnchoredOverlay.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/PersonAvatarCircle.d.ts +0 -20
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/PersonAvatarCircle.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/PersonAvatarCircle.js +0 -27
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/PersonAvatarCircle.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/getAvatarColor.d.ts +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/getAvatarColor.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/getAvatarColor.js +0 -20
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/getAvatarColor.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/getInitials.d.ts +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/getInitials.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/getInitials.js +0 -11
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/getInitials.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/index.d.ts +0 -5
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/index.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/index.js +0 -4
- package/dist/esm/Canvas/shapes/ChatBubble/Avatar/index.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Chat.d.ts +0 -43
- package/dist/esm/Canvas/shapes/ChatBubble/Chat.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Chat.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatAuthorKind.d.ts +0 -5
- package/dist/esm/Canvas/shapes/ChatBubble/ChatAuthorKind.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatAuthorKind.js +0 -14
- package/dist/esm/Canvas/shapes/ChatBubble/ChatAuthorKind.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatBubble.d.ts +0 -18
- package/dist/esm/Canvas/shapes/ChatBubble/ChatBubble.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatBubble.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatComposer.d.ts +0 -24
- package/dist/esm/Canvas/shapes/ChatBubble/ChatComposer.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatComposer.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessage.d.ts +0 -17
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessage.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessage.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessage.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageAdded.d.ts +0 -6
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageAdded.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageAdded.js +0 -18
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageAdded.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageBubble.d.ts +0 -25
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageBubble.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageBubble.js +0 -31
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageBubble.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageReaction.d.ts +0 -6
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageReaction.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageReaction.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageReaction.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageReactionUser.d.ts +0 -7
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageReactionUser.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageReactionUser.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/ChatMessageReactionUser.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatOwnReaction.d.ts +0 -6
- package/dist/esm/Canvas/shapes/ChatBubble/ChatOwnReaction.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatOwnReaction.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/ChatOwnReaction.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatTypingAuthor.d.ts +0 -8
- package/dist/esm/Canvas/shapes/ChatBubble/ChatTypingAuthor.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatTypingAuthor.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/ChatTypingAuthor.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatVariant.d.ts +0 -5
- package/dist/esm/Canvas/shapes/ChatBubble/ChatVariant.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ChatVariant.js +0 -15
- package/dist/esm/Canvas/shapes/ChatBubble/ChatVariant.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiCategory.d.ts +0 -6
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiCategory.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiCategory.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiCategory.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiCategoryKey.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiCategoryKey.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiMemory.d.ts +0 -5
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiMemory.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiMemory.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiMemory.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiPicker.d.ts +0 -14
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiPicker.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/EmojiPicker.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/emojiCatalog.d.ts +0 -3
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/emojiCatalog.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/emojiCatalog.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/index.d.ts +0 -7
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/index.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/index.js +0 -7
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/index.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/recentEmojis.d.ts +0 -6
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/recentEmojis.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/recentEmojis.js +0 -59
- package/dist/esm/Canvas/shapes/ChatBubble/Emoji/recentEmojis.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/FailedReply.d.ts +0 -23
- package/dist/esm/Canvas/shapes/ChatBubble/FailedReply.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/FailedReply.js +0 -28
- package/dist/esm/Canvas/shapes/ChatBubble/FailedReply.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionCandidate.d.ts +0 -9
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionCandidate.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionCandidate.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionCandidate.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionQuery.d.ts +0 -5
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionQuery.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionQuery.js +0 -2
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionQuery.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionSuggestions.d.ts +0 -11
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionSuggestions.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionSuggestions.js +0 -14
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/MentionSuggestions.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/activeMentionQuery.d.ts +0 -3
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/activeMentionQuery.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/activeMentionQuery.js +0 -34
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/activeMentionQuery.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/applyMention.d.ts +0 -7
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/applyMention.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/applyMention.js +0 -23
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/applyMention.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/extractMentions.d.ts +0 -4
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/extractMentions.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/extractMentions.js +0 -24
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/extractMentions.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/findMentionRanges.d.ts +0 -11
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/findMentionRanges.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/findMentionRanges.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/index.d.ts +0 -10
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/index.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/index.js +0 -10
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/index.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/matchCandidates.d.ts +0 -3
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/matchCandidates.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/matchCandidates.js +0 -24
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/matchCandidates.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/mentionSegments.d.ts +0 -10
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/mentionSegments.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/Mentions/mentionSegments.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/MessageReactions.d.ts +0 -6
- package/dist/esm/Canvas/shapes/ChatBubble/MessageReactions.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/MessageReactions.js +0 -28
- package/dist/esm/Canvas/shapes/ChatBubble/MessageReactions.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ReactionPicker.d.ts +0 -20
- package/dist/esm/Canvas/shapes/ChatBubble/ReactionPicker.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/ReactionPicker.js +0 -50
- package/dist/esm/Canvas/shapes/ChatBubble/ReactionPicker.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/TypingIndicator.d.ts +0 -9
- package/dist/esm/Canvas/shapes/ChatBubble/TypingIndicator.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/TypingIndicator.js +0 -18
- package/dist/esm/Canvas/shapes/ChatBubble/TypingIndicator.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/findOwnReaction.d.ts +0 -5
- package/dist/esm/Canvas/shapes/ChatBubble/findOwnReaction.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/findOwnReaction.js +0 -19
- package/dist/esm/Canvas/shapes/ChatBubble/findOwnReaction.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/index.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/index.js.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/reactionsExcludingUser.d.ts +0 -4
- package/dist/esm/Canvas/shapes/ChatBubble/reactionsExcludingUser.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/ChatBubble/reactionsExcludingUser.js.map +0 -1
- package/dist/esm/Canvas/shapes/Note/index.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/Note/index.js.map +0 -1
- package/dist/esm/Canvas/shapes/Region/index.d.ts.map +0 -1
- package/dist/esm/Canvas/shapes/Region/index.js.map +0 -1
- package/dist/esm/Chat/ChatAuthor.d.ts.map +0 -1
- package/dist/esm/Chat/ChatConversation.d.ts.map +0 -1
- package/dist/esm/Chat/ChatMention.d.ts.map +0 -1
- package/dist/esm/Chat/ChatMessage.d.ts.map +0 -1
- package/dist/esm/Chat/ChatMessageAction.d.ts.map +0 -1
- package/dist/esm/Chat/ChatMessageBody.d.ts.map +0 -1
- package/dist/esm/Chat/ChatSidebar.d.ts.map +0 -1
- package/dist/esm/Chat/ChatSidebarForObservableQueries.d.ts.map +0 -1
- package/dist/esm/Chat/ChatTopic.d.ts.map +0 -1
- package/dist/esm/Chat/ChatTopicList.d.ts.map +0 -1
- package/dist/esm/Chat/index.d.ts.map +0 -1
- package/dist/esm/Chat/isTopicUnnamed.d.ts.map +0 -1
- package/dist/esm/Chat/topicsByActivity.d.ts.map +0 -1
- package/dist/esm/CommandDialog/CommandDialog.d.ts.map +0 -1
- package/dist/esm/CommandDialog/CommandStepper.d.ts.map +0 -1
- package/dist/esm/CommandDialog/StepperCommandDialog.d.ts.map +0 -1
- package/dist/esm/CommandDialog/index.d.ts.map +0 -1
- package/dist/esm/CommandForm/fieldTypeProviderRegistry.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/CalendarField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/CheckboxField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/ChipsField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/ColorPickerField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/DropdownField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/InputTextField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/MultiSelectField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/NumberField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/PasswordField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/RadioButtonField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/RadioGroupField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/RatingField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/SliderField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/TextAreaField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/ToggleSwitchField.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/index.d.ts.map +0 -1
- package/dist/esm/CommandForm/fields/index.js.map +0 -1
- package/dist/esm/CommandForm/index.d.ts.map +0 -1
- package/dist/esm/Common/ActionMenubar.d.ts.map +0 -1
- package/dist/esm/Common/Button.d.ts.map +0 -1
- package/dist/esm/Common/CratisComponentsProvider.d.ts.map +0 -1
- package/dist/esm/Common/DatePickerInput.d.ts.map +0 -1
- package/dist/esm/Common/index.d.ts.map +0 -1
- package/dist/esm/Compatibility/PrimeReact11PassThroughComponent.d.ts +0 -3
- package/dist/esm/Compatibility/PrimeReact11PassThroughComponent.d.ts.map +0 -1
- package/dist/esm/Compatibility/PrimeReact11PassThroughComponent.js +0 -2
- package/dist/esm/Compatibility/PrimeReact11PassThroughComponent.js.map +0 -1
- package/dist/esm/Compatibility/assertPrimeReact11PassThroughCompatibility.d.ts +0 -3
- package/dist/esm/Compatibility/assertPrimeReact11PassThroughCompatibility.d.ts.map +0 -1
- package/dist/esm/Compatibility/assertPrimeReact11PassThroughCompatibility.js +0 -49
- package/dist/esm/Compatibility/assertPrimeReact11PassThroughCompatibility.js.map +0 -1
- package/dist/esm/Compatibility/components3PrimeReact11PassThroughContract.d.ts +0 -369
- package/dist/esm/Compatibility/components3PrimeReact11PassThroughContract.d.ts.map +0 -1
- package/dist/esm/Compatibility/components3PrimeReact11PassThroughContract.js +0 -271
- package/dist/esm/Compatibility/components3PrimeReact11PassThroughContract.js.map +0 -1
- package/dist/esm/Compatibility/index.d.ts +0 -5
- package/dist/esm/Compatibility/index.d.ts.map +0 -1
- package/dist/esm/Compatibility/index.js +0 -7
- package/dist/esm/Compatibility/index.js.map +0 -1
- package/dist/esm/Compatibility/primeReact11PassThroughSentinelPreset.d.ts +0 -8
- package/dist/esm/Compatibility/primeReact11PassThroughSentinelPreset.d.ts.map +0 -1
- package/dist/esm/Compatibility/primeReact11PassThroughSentinelPreset.js +0 -48
- package/dist/esm/Compatibility/primeReact11PassThroughSentinelPreset.js.map +0 -1
- package/dist/esm/DataPage/DataPage.d.ts.map +0 -1
- package/dist/esm/DataPage/index.d.ts.map +0 -1
- package/dist/esm/DataTables/Column.d.ts.map +0 -1
- package/dist/esm/DataTables/ColumnFilterMenu.d.ts.map +0 -1
- package/dist/esm/DataTables/DataTableCore.d.ts.map +0 -1
- package/dist/esm/DataTables/DataTableFilterMatcherRegistry.d.ts.map +0 -1
- package/dist/esm/DataTables/DataTableForObservableQuery.d.ts.map +0 -1
- package/dist/esm/DataTables/DataTableForQuery.d.ts.map +0 -1
- package/dist/esm/DataTables/TablePaginator.d.ts.map +0 -1
- package/dist/esm/DataTables/index.d.ts.map +0 -1
- package/dist/esm/Dialogs/Dialog.d.ts.map +0 -1
- package/dist/esm/Dialogs/index.d.ts.map +0 -1
- package/dist/esm/Display/index.d.ts.map +0 -1
- package/dist/esm/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/esm/Dropdown/index.d.ts.map +0 -1
- package/dist/esm/Filter/FilterEditor.d.ts.map +0 -1
- package/dist/esm/Filter/FilterPanel.d.ts.map +0 -1
- package/dist/esm/Filter/RangeHistogramFilter.d.ts.map +0 -1
- package/dist/esm/Filter/index.d.ts.map +0 -1
- package/dist/esm/Filter/useFilterState.d.ts.map +0 -1
- package/dist/esm/Filter/utils.d.ts.map +0 -1
- package/dist/esm/Notifications/index.d.ts.map +0 -1
- package/dist/esm/ObjectContentEditor/ObjectContentEditor.d.ts.map +0 -1
- package/dist/esm/ObjectContentEditor/index.d.ts.map +0 -1
- package/dist/esm/ObjectContentEditor/objectHelpers.d.ts.map +0 -1
- package/dist/esm/ObjectNavigationalBar/index.d.ts.map +0 -1
- package/dist/esm/PivotViewer/PivotViewer.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/AxisLabels.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/FilterPanel.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/FilterPanelContainer.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/PivotCanvas.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/PivotViewerMain.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/RangeHistogramFilter.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/Toolbar.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/ToolbarContainer.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/index.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/index.js.map +0 -1
- package/dist/esm/PivotViewer/components/pivot/animation.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/pivot/colorResolver.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/pivot/groups.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/pivot/sprites.d.ts.map +0 -1
- package/dist/esm/PivotViewer/components/pivot/visibility.d.ts.map +0 -1
- package/dist/esm/PivotViewer/engine/layout.d.ts.map +0 -1
- package/dist/esm/PivotViewer/engine/pivot.worker.js.map +0 -1
- package/dist/esm/PivotViewer/engine/store.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/index.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/index.js.map +0 -1
- package/dist/esm/PivotViewer/hooks/useCardSelection.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useCurrentFilters.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useDetailPanelClose.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useDimensionState.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useFieldExtractors.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useFilterOptions.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useFilterState.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useFilteredData.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useFilteredData.js.map +0 -1
- package/dist/esm/PivotViewer/hooks/usePivotEngine.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useScrollSync.d.ts.map +0 -1
- package/dist/esm/PivotViewer/hooks/useSelectedItem.js.map +0 -1
- package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.d.ts.map +0 -1
- package/dist/esm/PivotViewer/index.d.ts.map +0 -1
- package/dist/esm/PivotViewer/types.d.ts.map +0 -1
- package/dist/esm/PivotViewer/utils/cardPosition.d.ts.map +0 -1
- package/dist/esm/PivotViewer/utils/idResolution.d.ts.map +0 -1
- package/dist/esm/PivotViewer/utils/index.d.ts.map +0 -1
- package/dist/esm/PivotViewer/utils/index.js.map +0 -1
- package/dist/esm/PivotViewer/utils/selection.d.ts.map +0 -1
- package/dist/esm/PivotViewer/utils/utils.d.ts.map +0 -1
- package/dist/esm/SchemaEditor/NameCell.d.ts.map +0 -1
- package/dist/esm/SchemaEditor/SchemaEditor.d.ts.map +0 -1
- package/dist/esm/SchemaEditor/TypeCell.d.ts.map +0 -1
- package/dist/esm/SchemaEditor/index.d.ts.map +0 -1
- package/dist/esm/SchemaEditor/schemaHelpers.d.ts.map +0 -1
- package/dist/esm/Styled/CratisPreset.d.ts +0 -2
- package/dist/esm/Styled/CratisPreset.d.ts.map +0 -1
- package/dist/esm/Styled/CratisPreset.js +0 -80
- package/dist/esm/Styled/CratisPreset.js.map +0 -1
- package/dist/esm/Styled/index.d.ts +0 -4
- package/dist/esm/Styled/index.d.ts.map +0 -1
- package/dist/esm/Styled/index.js +0 -4
- package/dist/esm/Styled/primeReactStyles.d.ts +0 -3
- package/dist/esm/Styled/primeReactStyles.d.ts.map +0 -1
- package/dist/esm/Styled/primeReactStyles.js +0 -202
- package/dist/esm/Styled/primeReactStyles.js.map +0 -1
- package/dist/esm/Styled/styledMode.d.ts +0 -12
- package/dist/esm/Styled/styledMode.d.ts.map +0 -1
- package/dist/esm/Styled/styledMode.js +0 -68
- package/dist/esm/Styled/styledMode.js.map +0 -1
- package/dist/esm/TimeMachine/EventsView.d.ts.map +0 -1
- package/dist/esm/TimeMachine/ReadModelView.d.ts.map +0 -1
- package/dist/esm/TimeMachine/TimeMachine.d.ts.map +0 -1
- package/dist/esm/TimeMachine/index.d.ts.map +0 -1
- package/dist/esm/Toolbar/ToolbarButton.d.ts.map +0 -1
- package/dist/esm/Toolbar/ToolbarFanOutItem.d.ts.map +0 -1
- package/dist/esm/Toolbar/ToolbarFolder.d.ts.map +0 -1
- package/dist/esm/Toolbar/index.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/primereact-v10-palette.css +0 -242
- package/dist/esm/types/index.d.ts.map +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React, { useRef, useState, useCallback, useEffect, useMemo } from 'react';
|
|
3
3
|
import * as PIXI from 'pixi.js';
|
|
4
|
-
import { LAYER_ATTR, TRANSFORM_HOST_ATTR } from './glassAttributes.js';
|
|
5
4
|
import { CanvasControls } from './CanvasControls.js';
|
|
6
5
|
import { canvasGesture } from './canvasGesture.js';
|
|
7
6
|
import { canvasTransformActivity } from './canvasTransformActivity.js';
|
|
@@ -12,33 +11,17 @@ import { pinchSnapshotOf, pinchChangeBetween } from './pinchGesture.js';
|
|
|
12
11
|
import { useDragSelectionGuard } from './useDragSelectionGuard.js';
|
|
13
12
|
import { applyZoomLayer, shouldUseCssZoom, isMultiTouchCapableDevice } from './zoomMechanism.js';
|
|
14
13
|
|
|
15
|
-
/**
|
|
16
|
-
* The easing curve for programmatic camera moves: a cubic ease-in-out, so the camera picks up speed gently
|
|
17
|
-
* and settles gently instead of starting at full tilt — the difference between a camera move and a yank.
|
|
18
|
-
* @param progress Linear progress through the animation, 0 to 1.
|
|
19
|
-
* @returns The eased progress.
|
|
20
|
-
*/
|
|
21
14
|
function easeInOutCubic(progress) {
|
|
22
15
|
return progress < 0.5
|
|
23
16
|
? 4 * progress * progress * progress
|
|
24
|
-
: 1 -
|
|
17
|
+
: 1 - (-2 * progress + 2) ** 3 / 2;
|
|
25
18
|
}
|
|
26
19
|
const CanvasItemRegistryContext = React.createContext(null);
|
|
27
20
|
const ZOOM_INTENSITY = 0.008;
|
|
28
|
-
// How long after the last wheel event a gesture counts as settled - the moment the crisp resting zoom is
|
|
29
|
-
// re-applied and the held-back virtualization updates flush.
|
|
30
21
|
const GESTURE_SETTLE_MS = 150;
|
|
31
|
-
// A trackpad's momentum comes for free — the OS keeps delivering decaying wheel events after the
|
|
32
|
-
// fingers lift. A touch drag has no such thing: `touch-action: none` hands the whole gesture to us,
|
|
33
|
-
// so lifting a finger stops the pan dead unless we fake the same decay ourselves. These tune that feel.
|
|
34
|
-
// Only samples within this trailing window (from the drag's last moment, not its whole history)
|
|
35
|
-
// contribute to the release velocity, so a drag that was moving fast but came to rest before the
|
|
36
|
-
// finger actually lifted correctly produces no momentum.
|
|
37
22
|
const MOMENTUM_SAMPLE_WINDOW_MS = 100;
|
|
38
|
-
// Below this speed (px/ms) momentum is imperceptible — used both to skip starting it on a slow
|
|
39
|
-
// release and to end the decay loop once it coasts down to a stop.
|
|
40
23
|
const MOMENTUM_MIN_VELOCITY = 0.02;
|
|
41
|
-
function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady, onTransformChange, onHandleReady, initialZoom = 1, initialPan = { x: 0, y: 0 }, minZoom = 0.1, maxZoom = 5, showControls = true, showMinimap = false, minimapWorldWidth, minimapWorldHeight, minimapItems, controlsPlacement = 'bottom-left', className, style, onHelp, helpTitle, disableControlsGlass = false,
|
|
24
|
+
function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady, onTransformChange, onHandleReady, initialZoom = 1, initialPan = { x: 0, y: 0 }, minZoom = 0.1, maxZoom = 5, showControls = true, showMinimap = false, minimapWorldWidth, minimapWorldHeight, minimapItems, controlsPlacement = 'bottom-left', className, style, onHelp, helpTitle, controlsLabels, controlsGlassSurface, disableControlsGlass = false, captureAttributes, readOnly = false, backgroundDragPans = true, }) {
|
|
42
25
|
const containerRef = useRef(null);
|
|
43
26
|
useDragSelectionGuard(containerRef);
|
|
44
27
|
const appRef = useRef(null);
|
|
@@ -49,73 +32,58 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
49
32
|
const spritesRef = useRef(new Map());
|
|
50
33
|
const animationFrameRef = useRef(null);
|
|
51
34
|
const [pixiReady, setPixiReady] = useState(false);
|
|
52
|
-
// Mutable refs so event callbacks always read current values without re-binding
|
|
53
35
|
const panRef = useRef({ x: initialPan.x, y: initialPan.y });
|
|
54
36
|
const zoomRef = useRef(initialZoom);
|
|
55
|
-
// The transform styles rendered by JSX are frozen at their first-mount values: after mount the
|
|
56
|
-
// overlay/zoom-layer styles are owned exclusively by the imperative per-frame writes. If the JSX
|
|
57
|
-
// re-rendered them from live props (a parent may persist and echo the transform back through
|
|
58
|
-
// `initialPan`/`initialZoom`), a React commit racing a gesture would rewrite the styles with
|
|
59
|
-
// stale values — visible as the viewport flicking to an old position and back.
|
|
60
37
|
const initialTransformRef = useRef({ pan: initialPan, zoom: initialZoom });
|
|
61
|
-
// Wheel gestures coalesce onto animation frames (trackpads deliver several events per frame, and each
|
|
62
|
-
// direct style write would reflow), and while a gesture is in motion the zoom layer stays on the
|
|
63
|
-
// composited transform path with virtualization told to hold still. The settle timer restores the crisp
|
|
64
|
-
// resting state shortly after the last wheel event.
|
|
65
38
|
const gestureActiveRef = useRef(false);
|
|
66
39
|
const gestureSettleTimerRef = useRef(undefined);
|
|
67
40
|
const transformFramePendingRef = useRef(false);
|
|
68
41
|
const isPanningRef = useRef(false);
|
|
69
42
|
const lastPointerRef = useRef({ x: 0, y: 0 });
|
|
70
|
-
// Direct DOM write, not React state — the container's base cursor is 'default' (StudioIssues#222:
|
|
71
|
-
// an idle background shouldn't look grabbable until you actually start dragging it), and swapping
|
|
72
|
-
// to 'grabbing' for the life of a drag-pan is exactly the kind of per-gesture churn this file
|
|
73
|
-
// already avoids re-rendering for elsewhere (see the transform writes below).
|
|
74
43
|
const setPanCursor = useCallback((panning) => {
|
|
75
44
|
if (containerRef.current)
|
|
76
45
|
containerRef.current.style.cursor = panning ? 'grabbing' : 'default';
|
|
77
46
|
}, []);
|
|
78
|
-
// Touch pointers currently down on the canvas, in the order they landed, plus the pinch geometry
|
|
79
|
-
// they had on the previous move. Touch is the only input that can deliver several simultaneous
|
|
80
|
-
// pointers, so mouse/pen never enter this map and keep the single-pointer drag path below.
|
|
81
47
|
const touchPointersRef = useRef(new Map());
|
|
82
48
|
const pinchRef = useRef(null);
|
|
83
|
-
// Recent positions of the single finger currently panning, newest last, trimmed to
|
|
84
|
-
// MOMENTUM_SAMPLE_WINDOW_MS — the trailing window startTouchMomentum reads the release velocity from.
|
|
85
49
|
const touchPanSamplesRef = useRef([]);
|
|
86
|
-
// Keep callback refs current to avoid stale closures in PIXI event handlers
|
|
87
50
|
const onReadyRef = useRef(onReady);
|
|
88
51
|
const onItemPointerDownRef = useRef(onItemPointerDown);
|
|
89
52
|
const onTransformChangeRef = useRef(onTransformChange);
|
|
90
53
|
const onHandleReadyRef = useRef(onHandleReady);
|
|
91
54
|
const itemsRef = useRef(items);
|
|
92
|
-
useEffect(() => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
useEffect(() => {
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
onReadyRef.current = onReady;
|
|
57
|
+
}, [onReady]);
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
onItemPointerDownRef.current = onItemPointerDown;
|
|
60
|
+
}, [onItemPointerDown]);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
onTransformChangeRef.current = onTransformChange;
|
|
63
|
+
}, [onTransformChange]);
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
onHandleReadyRef.current = onHandleReady;
|
|
66
|
+
}, [onHandleReady]);
|
|
96
67
|
useEffect(() => {
|
|
97
68
|
itemsRef.current = items;
|
|
98
69
|
}, [items]);
|
|
99
|
-
// ── Item registry — auto-builds minimap items from CanvasItem children ──
|
|
100
70
|
const itemRegistryRef = useRef(new Map());
|
|
101
71
|
const [itemRegistryVersion, setItemRegistryVersion] = useState(0);
|
|
102
|
-
// The read/subscribe side of the registry. The snapshot is a fresh shallow copy taken on every
|
|
103
|
-
// actual content change (register/unregister guard against no-op writes below), so its identity
|
|
104
|
-
// is a faithful change signal for useSyncExternalStore consumers — same reference back means
|
|
105
|
-
// nothing changed. Entry objects are replaced wholesale on update, never mutated, so entries
|
|
106
|
-
// shared between an old snapshot and a new one are safe to hold onto.
|
|
107
72
|
const registrySnapshotRef = useRef(new Map());
|
|
108
73
|
const registryListenersRef = useRef(new Set());
|
|
109
74
|
const notifyRegistryChanged = useCallback(() => {
|
|
110
75
|
registrySnapshotRef.current = new Map(itemRegistryRef.current);
|
|
111
|
-
setItemRegistryVersion(version => version + 1);
|
|
112
|
-
registryListenersRef.current.forEach(listener => listener());
|
|
76
|
+
setItemRegistryVersion((version) => version + 1);
|
|
77
|
+
registryListenersRef.current.forEach((listener) => listener());
|
|
113
78
|
}, []);
|
|
114
79
|
const registerItem = useCallback((id, entry) => {
|
|
115
80
|
const existing = itemRegistryRef.current.get(id);
|
|
116
81
|
if (existing &&
|
|
117
|
-
existing.x === entry.x &&
|
|
118
|
-
existing.
|
|
82
|
+
existing.x === entry.x &&
|
|
83
|
+
existing.y === entry.y &&
|
|
84
|
+
existing.width === entry.width &&
|
|
85
|
+
existing.height === entry.height &&
|
|
86
|
+
existing.anonymous === entry.anonymous)
|
|
119
87
|
return;
|
|
120
88
|
itemRegistryRef.current.set(id, entry);
|
|
121
89
|
notifyRegistryChanged();
|
|
@@ -128,7 +96,9 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
128
96
|
const getRegistrySnapshot = useCallback(() => registrySnapshotRef.current, []);
|
|
129
97
|
const subscribeToRegistry = useCallback((listener) => {
|
|
130
98
|
registryListenersRef.current.add(listener);
|
|
131
|
-
return () => {
|
|
99
|
+
return () => {
|
|
100
|
+
registryListenersRef.current.delete(listener);
|
|
101
|
+
};
|
|
132
102
|
}, []);
|
|
133
103
|
const registryContextValue = useMemo(() => ({
|
|
134
104
|
register: registerItem,
|
|
@@ -138,8 +108,13 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
138
108
|
}), [registerItem, unregisterItem, getRegistrySnapshot, subscribeToRegistry]);
|
|
139
109
|
const autoMinimapItems = useMemo(() => {
|
|
140
110
|
const result = [];
|
|
141
|
-
itemRegistryRef.current.forEach(entry => {
|
|
142
|
-
result.push({
|
|
111
|
+
itemRegistryRef.current.forEach((entry) => {
|
|
112
|
+
result.push({
|
|
113
|
+
x: entry.x,
|
|
114
|
+
y: entry.y,
|
|
115
|
+
width: entry.width,
|
|
116
|
+
height: entry.height,
|
|
117
|
+
});
|
|
143
118
|
});
|
|
144
119
|
return result;
|
|
145
120
|
}, [itemRegistryVersion]);
|
|
@@ -156,16 +131,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
156
131
|
return;
|
|
157
132
|
world.position.set(panRef.current.x, panRef.current.y);
|
|
158
133
|
world.scale.set(zoomRef.current);
|
|
159
|
-
// Pan is a CSS transform on the outer overlay; zoom is applied to an inner layer. The zoom
|
|
160
|
-
// mechanism is hybrid, split at 100% (the two are identical there, so the switch is seamless):
|
|
161
|
-
// - Above 100% we use CSS `zoom`, which re-lays-out and re-rasterizes at the effective
|
|
162
|
-
// resolution — `transform: scale()` would rasterize once at 1x and stretch, blurring text
|
|
163
|
-
// when UPSCALING in Safari. EXCEPT on multi-touch-capable devices (iPad and friends), which
|
|
164
|
-
// always use `transform: scale()` even above 100% — see zoomMechanism.ts for why.
|
|
165
|
-
// - At or below 100% we use `transform: scale()`, which is GPU-composited: zooming out stays
|
|
166
|
-
// smooth (no per-frame full-board reflow) and text scales down properly. CSS `zoom` instead
|
|
167
|
-
// reflows every step (jerky) and clamps font-size to a floor when zoomed out, so labels stop
|
|
168
|
-
// shrinking and word-wrap. Downscaling never blurs, so the crispness reason does not apply here.
|
|
169
134
|
if (overlayRef.current) {
|
|
170
135
|
overlayRef.current.style.transform = `translate(${panRef.current.x}px, ${panRef.current.y}px)`;
|
|
171
136
|
}
|
|
@@ -173,24 +138,17 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
173
138
|
applyZoomLayer(zoomLayerRef.current, zoomRef.current, gestureActiveRef.current);
|
|
174
139
|
}
|
|
175
140
|
onTransformChangeRef.current?.(zoomRef.current, panRef.current);
|
|
176
|
-
// Every applied transform frame is announced so followers (cursors, selection toolbar, tour
|
|
177
|
-
// anchors) can ride the transform instead of polling it on their own animation-frame loops.
|
|
178
141
|
canvasTransformActivity.notify();
|
|
179
142
|
}, []);
|
|
180
143
|
const render = useCallback(() => {
|
|
181
144
|
const app = appRef.current;
|
|
182
145
|
if (!app)
|
|
183
146
|
return;
|
|
184
|
-
// Boards that only use the HTML overlay leave the PIXI world empty — skip the per-frame
|
|
185
|
-
// GPU pass entirely rather than clearing and presenting an empty stage on every gesture frame.
|
|
186
147
|
if ((worldRef.current?.children.length ?? 0) === 0)
|
|
187
148
|
return;
|
|
188
|
-
// The system ticker is stopped (see the init effect below) — drive pixi's scheduled
|
|
189
|
-
// housekeeping (texture GC and friends) from the frames that actually render instead.
|
|
190
149
|
PIXI.Ticker.system.update();
|
|
191
150
|
app.renderer.render(app.stage);
|
|
192
151
|
}, []);
|
|
193
|
-
// Initialize PIXI once
|
|
194
152
|
useEffect(() => {
|
|
195
153
|
const container = containerRef.current;
|
|
196
154
|
if (!container || appRef.current)
|
|
@@ -202,8 +160,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
202
160
|
const height = rect.height > 0 ? rect.height : container.clientHeight || 600;
|
|
203
161
|
const app = new PIXI.Application();
|
|
204
162
|
await app.init({
|
|
205
|
-
// Transparent clear: the body carries the surface color and the user-selected
|
|
206
|
-
// appearance background, which must show through the canvas like everywhere else.
|
|
207
163
|
backgroundAlpha: 0,
|
|
208
164
|
antialias: true,
|
|
209
165
|
autoDensity: true,
|
|
@@ -217,7 +173,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
217
173
|
return;
|
|
218
174
|
}
|
|
219
175
|
appRef.current = app;
|
|
220
|
-
// World container - all items live here; zoom/pan applied via transform
|
|
221
176
|
const world = new PIXI.Container();
|
|
222
177
|
world.position.set(panRef.current.x, panRef.current.y);
|
|
223
178
|
world.scale.set(zoomRef.current);
|
|
@@ -226,18 +181,9 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
226
181
|
const canvas = app.canvas;
|
|
227
182
|
canvas.style.display = 'block';
|
|
228
183
|
canvas.style.touchAction = 'none';
|
|
229
|
-
// WebGL canvases rasterize as opaque black in the glass capture pipeline - exclude
|
|
230
|
-
// this one from every captured scene so glass never refracts a black rectangle.
|
|
231
|
-
canvas.setAttribute(LAYER_ATTR, 'true');
|
|
232
184
|
containerRef.current.appendChild(canvas);
|
|
233
185
|
setPixiReady(true);
|
|
234
186
|
app.renderer.render(app.stage);
|
|
235
|
-
// Initializing a renderer hooks pixi's SchedulerSystem onto the auto-starting system
|
|
236
|
-
// ticker, which then runs a requestAnimationFrame loop forever even though nothing here
|
|
237
|
-
// renders from a ticker (autoStart is false and every render is explicit) — one of the
|
|
238
|
-
// permanent loops that kept an idle board page busy (StudioIssues#200). Stop it after
|
|
239
|
-
// every init, because each new renderer restarts it; render() drives the scheduled
|
|
240
|
-
// housekeeping instead.
|
|
241
187
|
PIXI.Ticker.system.stop();
|
|
242
188
|
onReadyRef.current?.({ app, world });
|
|
243
189
|
})();
|
|
@@ -250,8 +196,15 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
250
196
|
}
|
|
251
197
|
spritesRef.current.clear();
|
|
252
198
|
};
|
|
253
|
-
}, []);
|
|
254
|
-
|
|
199
|
+
}, []);
|
|
200
|
+
useEffect(() => {
|
|
201
|
+
const canvas = appRef.current?.canvas;
|
|
202
|
+
const attribute = captureAttributes?.layer;
|
|
203
|
+
if (!canvas || !attribute)
|
|
204
|
+
return;
|
|
205
|
+
canvas.setAttribute(attribute, 'true');
|
|
206
|
+
return () => canvas.removeAttribute(attribute);
|
|
207
|
+
}, [pixiReady, captureAttributes?.layer]);
|
|
255
208
|
useEffect(() => {
|
|
256
209
|
const container = containerRef.current;
|
|
257
210
|
if (!container)
|
|
@@ -266,10 +219,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
266
219
|
observer.observe(container);
|
|
267
220
|
return () => observer.disconnect();
|
|
268
221
|
}, [render]);
|
|
269
|
-
// One transform apply per animation frame, no matter how many wheel events arrived - the refs already
|
|
270
|
-
// hold the latest pan/zoom, so coalescing loses nothing and avoids multiple reflows per frame.
|
|
271
|
-
// No React state is touched here: a gesture must cause zero Canvas re-renders (the controls'
|
|
272
|
-
// zoom readout polls the ref on its own slow interval instead).
|
|
273
222
|
const scheduleTransformApply = useCallback(() => {
|
|
274
223
|
if (transformFramePendingRef.current)
|
|
275
224
|
return;
|
|
@@ -281,10 +230,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
281
230
|
render();
|
|
282
231
|
});
|
|
283
232
|
}, [applyWorldTransform, refreshMinimap, render]);
|
|
284
|
-
// Marks the gesture active (composited zoom path, virtualization held still) and re-arms the settle
|
|
285
|
-
// timer. On settle the crisp resting hybrid is re-applied through the same applyWorldTransform as
|
|
286
|
-
// every gesture frame — one writer, one atomic style pass — and a new gesture cancels the timer,
|
|
287
|
-
// so a settle can never land in the middle of the next gesture.
|
|
288
233
|
const noteGestureActivity = useCallback(() => {
|
|
289
234
|
gestureActiveRef.current = true;
|
|
290
235
|
canvasGesture.set(true);
|
|
@@ -299,30 +244,26 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
299
244
|
clearTimeout(gestureSettleTimerRef.current);
|
|
300
245
|
canvasGesture.set(false);
|
|
301
246
|
}, []);
|
|
302
|
-
// Zooms toward a fixed focus point on the container, holding the world point under it still —
|
|
303
|
-
// the one zoom every input path shares, whether the factor came from a wheel delta or a pinch.
|
|
304
247
|
const zoomTowards = useCallback((focusX, focusY, factor) => {
|
|
305
248
|
const newZoom = Math.max(minZoom, Math.min(maxZoom, zoomRef.current * factor));
|
|
306
249
|
const worldX = (focusX - panRef.current.x) / zoomRef.current;
|
|
307
250
|
const worldY = (focusY - panRef.current.y) / zoomRef.current;
|
|
308
|
-
panRef.current = {
|
|
251
|
+
panRef.current = {
|
|
252
|
+
x: focusX - worldX * newZoom,
|
|
253
|
+
y: focusY - worldY * newZoom,
|
|
254
|
+
};
|
|
309
255
|
zoomRef.current = newZoom;
|
|
310
256
|
noteGestureActivity();
|
|
311
257
|
scheduleTransformApply();
|
|
312
258
|
}, [minZoom, maxZoom, noteGestureActivity, scheduleTransformApply]);
|
|
313
|
-
// Wheel: pan (scroll) or zoom (Ctrl+scroll / pinch)
|
|
314
259
|
const handleWheel = useCallback((e) => {
|
|
315
260
|
const container = containerRef.current;
|
|
316
261
|
if (!container)
|
|
317
262
|
return;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
// (StudioIssues#229). A zoom gesture (ctrl/cmd) always wins — pinch-to-zoom over a chat
|
|
321
|
-
// panel is still a zoom, not a captured scroll.
|
|
322
|
-
if (!(e.ctrlKey || e.metaKey) && isWithinScrollableContent(e.target, container))
|
|
263
|
+
if (!(e.ctrlKey || e.metaKey) &&
|
|
264
|
+
isWithinScrollableContent(e.target, container))
|
|
323
265
|
return;
|
|
324
266
|
e.preventDefault();
|
|
325
|
-
// A fresh gesture always wins over a still-coasting one from the last touch pan.
|
|
326
267
|
if (animationFrameRef.current !== null) {
|
|
327
268
|
cancelAnimationFrame(animationFrameRef.current);
|
|
328
269
|
animationFrameRef.current = null;
|
|
@@ -334,7 +275,10 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
334
275
|
zoomTowards(mouseX, mouseY, Math.exp(-e.deltaY * ZOOM_INTENSITY));
|
|
335
276
|
}
|
|
336
277
|
else {
|
|
337
|
-
panRef.current = {
|
|
278
|
+
panRef.current = {
|
|
279
|
+
x: panRef.current.x - e.deltaX,
|
|
280
|
+
y: panRef.current.y - e.deltaY,
|
|
281
|
+
};
|
|
338
282
|
noteGestureActivity();
|
|
339
283
|
scheduleTransformApply();
|
|
340
284
|
}
|
|
@@ -346,15 +290,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
346
290
|
container.addEventListener('wheel', handleWheel, { passive: false });
|
|
347
291
|
return () => container.removeEventListener('wheel', handleWheel);
|
|
348
292
|
}, [handleWheel]);
|
|
349
|
-
// Safari/WebKit reports a trackpad pinch through its own non-standard gesture events —
|
|
350
|
-
// including on iPadOS with a Magic Keyboard trackpad — separately from the wheel+ctrlKey path
|
|
351
|
-
// above, which Safari never fires for a trackpad pinch. Left unhandled, Safari's default action
|
|
352
|
-
// is to zoom the whole page instead of the canvas — but canceling that alone would swallow the
|
|
353
|
-
// pinch entirely, so gesturechange also drives the same zoom-towards-focus the ctrl+wheel path
|
|
354
|
-
// applies. A touchscreen pinch fires these gesture events too, alongside the pointer events the
|
|
355
|
-
// touch path already zooms from — with touch pointers down, this handler only cancels the page
|
|
356
|
-
// zoom and leaves the zooming to the touch path. The events don't exist outside WebKit, so all
|
|
357
|
-
// of this is a no-op everywhere else.
|
|
358
293
|
useEffect(() => {
|
|
359
294
|
const container = containerRef.current;
|
|
360
295
|
if (!container)
|
|
@@ -376,11 +311,12 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
376
311
|
lastScale = gesture.scale;
|
|
377
312
|
};
|
|
378
313
|
const handleGestureEnd = (event) => event.preventDefault();
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
container.addEventListener('
|
|
383
|
-
|
|
314
|
+
container.addEventListener('gesturestart', handleGestureStart, {
|
|
315
|
+
passive: false,
|
|
316
|
+
});
|
|
317
|
+
container.addEventListener('gesturechange', handleGestureChange, {
|
|
318
|
+
passive: false,
|
|
319
|
+
});
|
|
384
320
|
container.addEventListener('gestureend', handleGestureEnd, { passive: false });
|
|
385
321
|
return () => {
|
|
386
322
|
container.removeEventListener('gesturestart', handleGestureStart);
|
|
@@ -388,26 +324,20 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
388
324
|
container.removeEventListener('gestureend', handleGestureEnd);
|
|
389
325
|
};
|
|
390
326
|
}, [zoomTowards]);
|
|
391
|
-
// The two handlers above only ever see events that bubble through the canvas surface's own DOM
|
|
392
|
-
// subtree — but a toolbar, panel, or minimap floating over the canvas is frequently portalled to
|
|
393
|
-
// document.body (or otherwise rendered as a sibling, not a descendant), so a pinch or Ctrl/Cmd+
|
|
394
|
-
// wheel with the cursor sitting over one of those never reaches the listeners above at all, and
|
|
395
|
-
// the browser is free to zoom the whole page instead (StudioIssues#228). Listen at the window
|
|
396
|
-
// level too, and go purely by screen position — no matter what element actually receives the
|
|
397
|
-
// event, if it lands within the canvas's own rectangle the browser's native zoom is cancelled.
|
|
398
|
-
// For events whose target sits inside the canvas subtree this only cancels the browser zoom —
|
|
399
|
-
// the container's own listeners drive the canvas zoom, so applying it here too would double up.
|
|
400
|
-
// For a pinch whose target is a portalled sibling (never reaching the container listeners), it
|
|
401
|
-
// also drives the same zoom-towards-focus, so a pinch over a floating panel zooms the board
|
|
402
|
-
// instead of dying with the browser zoom cancelled (StudioIssues#241).
|
|
403
327
|
useEffect(() => {
|
|
404
328
|
const isWithinCanvas = (x, y) => {
|
|
405
329
|
const rect = containerRef.current?.getBoundingClientRect();
|
|
406
|
-
return !!rect &&
|
|
330
|
+
return (!!rect &&
|
|
331
|
+
x >= rect.left &&
|
|
332
|
+
x <= rect.right &&
|
|
333
|
+
y >= rect.top &&
|
|
334
|
+
y <= rect.bottom);
|
|
407
335
|
};
|
|
408
|
-
const reachesContainerListeners = (event) => event.target instanceof Node &&
|
|
336
|
+
const reachesContainerListeners = (event) => event.target instanceof Node &&
|
|
337
|
+
!!containerRef.current?.contains(event.target);
|
|
409
338
|
const handleWindowWheel = (event) => {
|
|
410
|
-
if ((event.ctrlKey || event.metaKey) &&
|
|
339
|
+
if ((event.ctrlKey || event.metaKey) &&
|
|
340
|
+
isWithinCanvas(event.clientX, event.clientY)) {
|
|
411
341
|
event.preventDefault();
|
|
412
342
|
}
|
|
413
343
|
};
|
|
@@ -441,11 +371,13 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
441
371
|
if (isWithinCanvas(gesture.clientX, gesture.clientY))
|
|
442
372
|
event.preventDefault();
|
|
443
373
|
};
|
|
444
|
-
// Non-passive everywhere: WebKit treating any of these as passive is what lets the page
|
|
445
|
-
// zoom through, and window-level listeners are exactly where it is most inclined to.
|
|
446
374
|
window.addEventListener('wheel', handleWindowWheel, { passive: false });
|
|
447
|
-
window.addEventListener('gesturestart', handleWindowGestureStart, {
|
|
448
|
-
|
|
375
|
+
window.addEventListener('gesturestart', handleWindowGestureStart, {
|
|
376
|
+
passive: false,
|
|
377
|
+
});
|
|
378
|
+
window.addEventListener('gesturechange', handleWindowGestureChange, {
|
|
379
|
+
passive: false,
|
|
380
|
+
});
|
|
449
381
|
window.addEventListener('gestureend', handleWindowGestureEnd, { passive: false });
|
|
450
382
|
return () => {
|
|
451
383
|
window.removeEventListener('wheel', handleWindowWheel);
|
|
@@ -454,9 +386,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
454
386
|
window.removeEventListener('gestureend', handleWindowGestureEnd);
|
|
455
387
|
};
|
|
456
388
|
}, [zoomTowards]);
|
|
457
|
-
// Touch: two fingers pan and zoom together, anywhere on the surface — the trackpad's
|
|
458
|
-
// wheel/ctrl+wheel equivalent for a tablet. The world point under the pinch midpoint stays put
|
|
459
|
-
// while the midpoint itself drags the board, so zooming and panning feel like one gesture.
|
|
460
389
|
const applyPinch = useCallback(() => {
|
|
461
390
|
const container = containerRef.current;
|
|
462
391
|
const snapshot = pinchSnapshotOf(touchPointersRef.current.values());
|
|
@@ -464,7 +393,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
464
393
|
return;
|
|
465
394
|
const previous = pinchRef.current;
|
|
466
395
|
pinchRef.current = snapshot;
|
|
467
|
-
// The first move of a gesture only establishes the baseline — there is nothing to move yet.
|
|
468
396
|
if (!previous)
|
|
469
397
|
return;
|
|
470
398
|
const change = pinchChangeBetween(previous, snapshot);
|
|
@@ -472,8 +400,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
472
400
|
const focusX = snapshot.center.x - rect.left;
|
|
473
401
|
const focusY = snapshot.center.y - rect.top;
|
|
474
402
|
const newZoom = Math.max(minZoom, Math.min(maxZoom, zoomRef.current * change.scale));
|
|
475
|
-
// The world point that was under the midpoint BEFORE this step is the one being held, so the
|
|
476
|
-
// midpoint's own movement is what pans — exactly as zoom-towards-cursor does for the wheel.
|
|
477
403
|
const worldX = (focusX - change.panX - panRef.current.x) / zoomRef.current;
|
|
478
404
|
const worldY = (focusY - change.panY - panRef.current.y) / zoomRef.current;
|
|
479
405
|
panRef.current = { x: focusX - worldX * newZoom, y: focusY - worldY * newZoom };
|
|
@@ -481,10 +407,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
481
407
|
noteGestureActivity();
|
|
482
408
|
scheduleTransformApply();
|
|
483
409
|
}, [minZoom, maxZoom, noteGestureActivity, scheduleTransformApply]);
|
|
484
|
-
// Coasts the board after a touch pan release, decaying the release velocity to a stop — the
|
|
485
|
-
// manual equivalent of the momentum a trackpad's own wheel-event stream gives panning for free.
|
|
486
|
-
// Shares animationFrameRef with smoothPanToWorld/smoothPanZoomToWorld so only one of the three
|
|
487
|
-
// ever drives the transform at once; each cancels whichever of the others was still running.
|
|
488
410
|
const startTouchMomentum = useCallback(() => {
|
|
489
411
|
const initialVelocity = velocityFromSamples(touchPanSamplesRef.current, MOMENTUM_MIN_VELOCITY);
|
|
490
412
|
if (!initialVelocity)
|
|
@@ -516,9 +438,7 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
516
438
|
};
|
|
517
439
|
animationFrameRef.current = requestAnimationFrame(animate);
|
|
518
440
|
}, [applyWorldTransform, refreshMinimap, render, noteGestureActivity]);
|
|
519
|
-
// Pointer: pan via middle mouse, left-click on empty background, or a single finger on it
|
|
520
441
|
const handlePointerDown = useCallback((e) => {
|
|
521
|
-
// A fresh gesture always wins over a still-coasting one from the last touch pan.
|
|
522
442
|
if (animationFrameRef.current !== null) {
|
|
523
443
|
cancelAnimationFrame(animationFrameRef.current);
|
|
524
444
|
animationFrameRef.current = null;
|
|
@@ -526,8 +446,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
526
446
|
if (e.pointerType === 'touch') {
|
|
527
447
|
touchPointersRef.current.set(e.pointerId, { x: e.clientX, y: e.clientY });
|
|
528
448
|
if (touchPointersRef.current.size > 1) {
|
|
529
|
-
// A second finger turns whatever was happening into a pinch: end the one-finger drag
|
|
530
|
-
// so the two paths never both move the board in the same frame.
|
|
531
449
|
isPanningRef.current = false;
|
|
532
450
|
setPanCursor(false);
|
|
533
451
|
pinchRef.current = pinchSnapshotOf(touchPointersRef.current.values());
|
|
@@ -535,8 +453,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
535
453
|
}
|
|
536
454
|
}
|
|
537
455
|
const isBackground = isBackgroundPointerTarget(e.pointerType, readOnly, e.target, containerRef.current);
|
|
538
|
-
// A host that claims the background drag for itself only gives up the mouse/pen gesture: touch
|
|
539
|
-
// has no middle button and no wheel, so one finger must keep panning or the board is stuck.
|
|
540
456
|
const mayDragPan = backgroundDragPans || e.pointerType === 'touch';
|
|
541
457
|
if (e.button === 1 || (e.button === 0 && isBackground && mayDragPan)) {
|
|
542
458
|
if (e.button === 1)
|
|
@@ -545,7 +461,9 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
545
461
|
setPanCursor(true);
|
|
546
462
|
lastPointerRef.current = { x: e.clientX, y: e.clientY };
|
|
547
463
|
if (e.pointerType === 'touch') {
|
|
548
|
-
touchPanSamplesRef.current = [
|
|
464
|
+
touchPanSamplesRef.current = [
|
|
465
|
+
{ x: e.clientX, y: e.clientY, time: performance.now() },
|
|
466
|
+
];
|
|
549
467
|
}
|
|
550
468
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
551
469
|
}
|
|
@@ -563,29 +481,31 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
563
481
|
const deltaX = e.clientX - lastPointerRef.current.x;
|
|
564
482
|
const deltaY = e.clientY - lastPointerRef.current.y;
|
|
565
483
|
lastPointerRef.current = { x: e.clientX, y: e.clientY };
|
|
566
|
-
panRef.current = {
|
|
484
|
+
panRef.current = {
|
|
485
|
+
x: panRef.current.x + deltaX,
|
|
486
|
+
y: panRef.current.y + deltaY,
|
|
487
|
+
};
|
|
567
488
|
if (e.pointerType === 'touch') {
|
|
568
|
-
const samples = [
|
|
489
|
+
const samples = [
|
|
490
|
+
...touchPanSamplesRef.current,
|
|
491
|
+
{ x: e.clientX, y: e.clientY, time: performance.now() },
|
|
492
|
+
];
|
|
569
493
|
touchPanSamplesRef.current = trimSamples(samples, MOMENTUM_SAMPLE_WINDOW_MS);
|
|
570
494
|
}
|
|
571
|
-
// Same gesture path as wheel pan: coalesce onto one rAF and signal the gesture so
|
|
572
|
-
// virtualization holds still during a drag-pan too.
|
|
573
495
|
noteGestureActivity();
|
|
574
496
|
scheduleTransformApply();
|
|
575
497
|
}, [applyPinch, noteGestureActivity, scheduleTransformApply]);
|
|
576
498
|
const handlePointerUp = useCallback((e) => {
|
|
577
499
|
if (touchPointersRef.current.delete(e.pointerId)) {
|
|
578
|
-
// Re-baseline on the fingers that are left: keeping the old geometry would register the
|
|
579
|
-
// lifted finger's absence as a huge pinch/pan step on the next move.
|
|
580
500
|
pinchRef.current = pinchSnapshotOf(touchPointersRef.current.values());
|
|
581
501
|
const [remaining] = [...touchPointersRef.current.values()];
|
|
582
502
|
if (remaining) {
|
|
583
|
-
// Lifting back down to one finger continues the same gesture as a plain drag-pan
|
|
584
|
-
// rather than stopping dead until the user lifts and starts over.
|
|
585
503
|
isPanningRef.current = true;
|
|
586
504
|
setPanCursor(true);
|
|
587
505
|
lastPointerRef.current = { x: remaining.x, y: remaining.y };
|
|
588
|
-
touchPanSamplesRef.current = [
|
|
506
|
+
touchPanSamplesRef.current = [
|
|
507
|
+
{ x: remaining.x, y: remaining.y, time: performance.now() },
|
|
508
|
+
];
|
|
589
509
|
return;
|
|
590
510
|
}
|
|
591
511
|
}
|
|
@@ -595,13 +515,11 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
595
515
|
if (wasPanningTouch)
|
|
596
516
|
startTouchMomentum();
|
|
597
517
|
}, [startTouchMomentum, setPanCursor]);
|
|
598
|
-
// Sync items → PIXI containers
|
|
599
518
|
useEffect(() => {
|
|
600
519
|
const world = worldRef.current;
|
|
601
520
|
if (!pixiReady || !world || !renderItem)
|
|
602
521
|
return;
|
|
603
|
-
const incoming = new Map(items.map(item => [item.id, item]));
|
|
604
|
-
// Remove deleted items
|
|
522
|
+
const incoming = new Map(items.map((item) => [item.id, item]));
|
|
605
523
|
spritesRef.current.forEach((container, id) => {
|
|
606
524
|
if (!incoming.has(id)) {
|
|
607
525
|
world.removeChild(container);
|
|
@@ -609,12 +527,10 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
609
527
|
spritesRef.current.delete(id);
|
|
610
528
|
}
|
|
611
529
|
});
|
|
612
|
-
|
|
613
|
-
items.forEach(item => {
|
|
530
|
+
items.forEach((item) => {
|
|
614
531
|
const existing = spritesRef.current.get(item.id);
|
|
615
532
|
if (existing) {
|
|
616
533
|
existing.position.set(item.x, item.y);
|
|
617
|
-
// Refresh handler so it always references the latest item object
|
|
618
534
|
existing.removeAllListeners('pointerdown');
|
|
619
535
|
existing.on('pointerdown', (event) => {
|
|
620
536
|
onItemPointerDownRef.current?.(item, event);
|
|
@@ -631,11 +547,8 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
631
547
|
spritesRef.current.set(item.id, container);
|
|
632
548
|
}
|
|
633
549
|
});
|
|
634
|
-
// Render directly (not via the empty-world-skipping render()) so removing the last item
|
|
635
|
-
// still clears its pixels from the canvas.
|
|
636
550
|
appRef.current?.renderer.render(appRef.current.stage);
|
|
637
551
|
}, [pixiReady, items, renderItem]);
|
|
638
|
-
// Controls handlers
|
|
639
552
|
const handleZoomIn = useCallback(() => {
|
|
640
553
|
const container = containerRef.current;
|
|
641
554
|
if (!container)
|
|
@@ -729,7 +642,6 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
729
642
|
const endZoom = Math.min(maxZoom, Math.max(minZoom, targetZoom));
|
|
730
643
|
const startPanX = panRef.current.x;
|
|
731
644
|
const startPanY = panRef.current.y;
|
|
732
|
-
// Final pan that centers the world point at the target zoom.
|
|
733
645
|
const endPanX = viewportWidth / 2 - worldX * endZoom;
|
|
734
646
|
const endPanY = viewportHeight / 2 - worldY * endZoom;
|
|
735
647
|
const startTime = performance.now();
|
|
@@ -757,30 +669,45 @@ function Canvas({ children, items = [], renderItem, onItemPointerDown, onReady,
|
|
|
757
669
|
const getContainerRect = useCallback(() => {
|
|
758
670
|
return containerRef.current?.getBoundingClientRect() ?? null;
|
|
759
671
|
}, []);
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
672
|
+
const getItemBounds = useCallback(() => Array.from(itemRegistryRef.current.values(), (entry) => ({
|
|
673
|
+
x: entry.x,
|
|
674
|
+
y: entry.y,
|
|
675
|
+
width: entry.width,
|
|
676
|
+
height: entry.height,
|
|
677
|
+
})), []);
|
|
765
678
|
useEffect(() => {
|
|
766
679
|
if (!pixiReady)
|
|
767
680
|
return;
|
|
768
|
-
onHandleReadyRef.current?.({
|
|
769
|
-
|
|
770
|
-
|
|
681
|
+
onHandleReadyRef.current?.({
|
|
682
|
+
smoothPanToWorld,
|
|
683
|
+
smoothPanZoomToWorld,
|
|
684
|
+
getContainerRect,
|
|
685
|
+
getItemBounds,
|
|
686
|
+
});
|
|
687
|
+
}, [
|
|
688
|
+
pixiReady,
|
|
689
|
+
smoothPanToWorld,
|
|
690
|
+
smoothPanZoomToWorld,
|
|
691
|
+
getContainerRect,
|
|
692
|
+
getItemBounds,
|
|
693
|
+
]);
|
|
694
|
+
return (jsxs("div", { ref: containerRef, className: `canvas-surface cratis:relative cratis:overflow-hidden${className ? ` ${className}` : ''}`, style: { cursor: 'default', ...style }, onPointerDown: handlePointerDown, onPointerMove: handlePointerMove, onPointerUp: handlePointerUp, onPointerCancel: handlePointerUp, children: [jsx(CanvasItemRegistryContext.Provider, { value: registryContextValue, children: jsx("div", { ref: overlayRef, ...(captureAttributes?.transformHost
|
|
695
|
+
? { [captureAttributes.transformHost]: 'true' }
|
|
696
|
+
: {}), style: {
|
|
771
697
|
position: 'absolute',
|
|
772
698
|
top: 0,
|
|
773
699
|
left: 0,
|
|
774
700
|
transformOrigin: '0 0',
|
|
775
701
|
transform: `translate(${initialTransformRef.current.pan.x}px, ${initialTransformRef.current.pan.y}px)`,
|
|
776
702
|
pointerEvents: 'none',
|
|
777
|
-
}, children: jsx("div", { ref: zoomLayerRef,
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
// activated (a public viewer must never be able to fire a command).
|
|
781
|
-
inert: readOnly, style: shouldUseCssZoom(initialTransformRef.current.zoom, false, isMultiTouchCapableDevice)
|
|
703
|
+
}, children: jsx("div", { ref: zoomLayerRef, ...(captureAttributes?.transformHost
|
|
704
|
+
? { [captureAttributes.transformHost]: 'true' }
|
|
705
|
+
: {}), inert: readOnly, style: shouldUseCssZoom(initialTransformRef.current.zoom, false, isMultiTouchCapableDevice)
|
|
782
706
|
? { zoom: initialTransformRef.current.zoom }
|
|
783
|
-
: {
|
|
707
|
+
: {
|
|
708
|
+
transform: `scale(${initialTransformRef.current.zoom})`,
|
|
709
|
+
transformOrigin: '0 0',
|
|
710
|
+
}, children: children }) }) }), readOnly && (jsx("div", { style: { position: 'absolute', inset: 0, zIndex: 2, cursor: 'grab' } })), showControls && (jsx(CanvasControls, { getZoom: () => zoomRef.current, onZoomIn: handleZoomIn, onZoomOut: handleZoomOut, onZoomReset: handleZoomReset, showMinimapToggle: showMinimap, minimapRef: minimapRef, minimapWorldWidth: minimapWorldWidth, minimapWorldHeight: minimapWorldHeight, minimapItems: effectiveMinimapItems, onMinimapPan: handleMinimapPan, placement: controlsPlacement, onHelp: onHelp, helpTitle: helpTitle, labels: controlsLabels, glassSurface: controlsGlassSurface, contentCaptureAttribute: captureAttributes?.content, disableGlass: disableControlsGlass }))] }));
|
|
784
711
|
}
|
|
785
712
|
|
|
786
713
|
export { Canvas, CanvasItemRegistryContext };
|