@cratis/components 4.19.1 → 4.19.2
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/compat-manifest.json +11 -11
- package/dist/esm/Canvas/Canvas.d.ts +1 -0
- package/dist/esm/Canvas/Canvas.d.ts.map +1 -0
- package/dist/esm/Canvas/Canvas.js.map +1 -1
- package/dist/esm/Canvas/CanvasControls.d.ts +1 -0
- package/dist/esm/Canvas/CanvasControls.d.ts.map +1 -0
- package/dist/esm/Canvas/CanvasControls.js.map +1 -1
- package/dist/esm/Canvas/CanvasItem.js.map +1 -1
- package/dist/esm/Canvas/CanvasMinimap.js.map +1 -1
- package/dist/esm/Canvas/CanvasOverlay.js.map +1 -1
- package/dist/esm/Canvas/canvasGesture.js.map +1 -1
- package/dist/esm/Canvas/canvasTransformActivity.js.map +1 -1
- package/dist/esm/Canvas/index.d.ts +1 -0
- package/dist/esm/Canvas/index.d.ts.map +1 -0
- package/dist/esm/Canvas/isBackgroundPointerTarget.js.map +1 -1
- package/dist/esm/Canvas/isWithinScrollableContent.js.map +1 -1
- package/dist/esm/Canvas/panMomentum.js.map +1 -1
- package/dist/esm/Canvas/pinchGesture.js.map +1 -1
- package/dist/esm/Canvas/selfSuspendingFrameLoop.js.map +1 -1
- package/dist/esm/Canvas/shapes/ChatBubble/index.d.ts +1 -0
- package/dist/esm/Canvas/shapes/ChatBubble/index.d.ts.map +1 -0
- package/dist/esm/Canvas/shapes/ChatBubble/index.js +1 -0
- package/dist/esm/Canvas/shapes/ChatBubble/index.js.map +1 -0
- package/dist/esm/Canvas/shapes/Note/Note.js.map +1 -1
- package/dist/esm/Canvas/shapes/Note/NoteTextChanged.js.map +1 -1
- package/dist/esm/Canvas/shapes/Note/index.d.ts +1 -0
- package/dist/esm/Canvas/shapes/Note/index.d.ts.map +1 -0
- package/dist/esm/Canvas/shapes/Note/index.js +1 -0
- package/dist/esm/Canvas/shapes/Note/index.js.map +1 -0
- package/dist/esm/Canvas/shapes/Note/noteFont.js.map +1 -1
- package/dist/esm/Canvas/shapes/Region/ItemAddedToRegion.js.map +1 -1
- package/dist/esm/Canvas/shapes/Region/ItemRemovedFromRegion.js.map +1 -1
- package/dist/esm/Canvas/shapes/Region/Region.js.map +1 -1
- package/dist/esm/Canvas/shapes/Region/index.d.ts +1 -0
- package/dist/esm/Canvas/shapes/Region/index.d.ts.map +1 -0
- package/dist/esm/Canvas/shapes/Region/index.js +1 -0
- package/dist/esm/Canvas/shapes/Region/index.js.map +1 -0
- package/dist/esm/Canvas/shapes/Region/regionContainment.js.map +1 -1
- package/dist/esm/Canvas/useDragSelectionGuard.js.map +1 -1
- package/dist/esm/Canvas/zoomMechanism.js.map +1 -1
- package/dist/esm/Chat/ChatAuthor.d.ts +1 -0
- package/dist/esm/Chat/ChatAuthor.d.ts.map +1 -0
- package/dist/esm/Chat/ChatAuthor.js.map +1 -1
- package/dist/esm/Chat/ChatConversation.d.ts +1 -0
- package/dist/esm/Chat/ChatConversation.d.ts.map +1 -0
- package/dist/esm/Chat/ChatConversation.js.map +1 -1
- package/dist/esm/Chat/ChatIdentifier.js.map +1 -1
- package/dist/esm/Chat/ChatMention.d.ts +1 -0
- package/dist/esm/Chat/ChatMention.d.ts.map +1 -0
- package/dist/esm/Chat/ChatMention.js.map +1 -1
- package/dist/esm/Chat/ChatMessage.d.ts +1 -0
- package/dist/esm/Chat/ChatMessage.d.ts.map +1 -0
- package/dist/esm/Chat/ChatMessage.js.map +1 -1
- package/dist/esm/Chat/ChatMessageAction.d.ts +1 -0
- package/dist/esm/Chat/ChatMessageAction.d.ts.map +1 -0
- package/dist/esm/Chat/ChatMessageAction.js.map +1 -1
- package/dist/esm/Chat/ChatMessageBody.d.ts +1 -0
- package/dist/esm/Chat/ChatMessageBody.d.ts.map +1 -0
- package/dist/esm/Chat/ChatMessageBody.js.map +1 -1
- package/dist/esm/Chat/ChatSidebar.d.ts +1 -0
- package/dist/esm/Chat/ChatSidebar.d.ts.map +1 -0
- package/dist/esm/Chat/ChatSidebar.js.map +1 -1
- package/dist/esm/Chat/ChatSidebarForObservableQueries.d.ts +1 -0
- package/dist/esm/Chat/ChatSidebarForObservableQueries.d.ts.map +1 -0
- package/dist/esm/Chat/ChatSidebarForObservableQueries.js.map +1 -1
- package/dist/esm/Chat/ChatStatus.js.map +1 -1
- package/dist/esm/Chat/ChatTopic.d.ts +1 -0
- package/dist/esm/Chat/ChatTopic.d.ts.map +1 -0
- package/dist/esm/Chat/ChatTopic.js.map +1 -1
- package/dist/esm/Chat/ChatTopicList.d.ts +1 -0
- package/dist/esm/Chat/ChatTopicList.d.ts.map +1 -0
- package/dist/esm/Chat/ChatTopicList.js.map +1 -1
- package/dist/esm/Chat/Kit/AnchoredOverlay.js.map +1 -1
- package/dist/esm/Chat/Kit/Avatar/PersonAvatarCircle.js.map +1 -1
- package/dist/esm/Chat/Kit/Avatar/getAvatarColor.js.map +1 -1
- package/dist/esm/Chat/Kit/Avatar/getInitials.js.map +1 -1
- package/dist/esm/Chat/Kit/Avatar/index.d.ts +1 -0
- package/dist/esm/Chat/Kit/Avatar/index.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Avatar/index.js +1 -0
- package/dist/esm/Chat/Kit/Avatar/index.js.map +1 -0
- package/dist/esm/Chat/Kit/Chat.d.ts +1 -0
- package/dist/esm/Chat/Kit/Chat.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Chat.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatAuthorKind.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatBubble.d.ts +1 -0
- package/dist/esm/Chat/Kit/ChatBubble.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatBubble.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatComposer.d.ts +1 -0
- package/dist/esm/Chat/Kit/ChatComposer.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatComposer.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatMessage.d.ts +1 -0
- package/dist/esm/Chat/Kit/ChatMessage.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessage.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatMessageAdded.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatMessageBubble.d.ts +1 -0
- package/dist/esm/Chat/Kit/ChatMessageBubble.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessageBubble.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatMessageReaction.d.ts +1 -0
- package/dist/esm/Chat/Kit/ChatMessageReaction.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatMessageReaction.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatMessageReactionUser.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatOwnReaction.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatTypingAuthor.d.ts +1 -0
- package/dist/esm/Chat/Kit/ChatTypingAuthor.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ChatTypingAuthor.js.map +1 -1
- package/dist/esm/Chat/Kit/ChatVariant.js.map +1 -1
- package/dist/esm/Chat/Kit/Emoji/EmojiCategory.d.ts +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiCategory.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiCategory.js.map +1 -1
- package/dist/esm/Chat/Kit/Emoji/EmojiCategoryKey.js.map +1 -1
- package/dist/esm/Chat/Kit/Emoji/EmojiMemory.js.map +1 -1
- package/dist/esm/Chat/Kit/Emoji/EmojiPicker.d.ts +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiPicker.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/EmojiPicker.js.map +1 -1
- package/dist/esm/Chat/Kit/Emoji/emojiCatalog.d.ts +1 -0
- package/dist/esm/Chat/Kit/Emoji/emojiCatalog.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/emojiCatalog.js.map +1 -1
- package/dist/esm/Chat/Kit/Emoji/index.d.ts +1 -0
- package/dist/esm/Chat/Kit/Emoji/index.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/index.js +1 -0
- package/dist/esm/Chat/Kit/Emoji/index.js.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/recentEmojis.d.ts +1 -0
- package/dist/esm/Chat/Kit/Emoji/recentEmojis.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Emoji/recentEmojis.js.map +1 -1
- package/dist/esm/Chat/Kit/FailedReply.d.ts +1 -0
- package/dist/esm/Chat/Kit/FailedReply.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/FailedReply.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/MentionCandidate.d.ts +1 -0
- package/dist/esm/Chat/Kit/Mentions/MentionCandidate.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/MentionCandidate.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/MentionQuery.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.d.ts +1 -0
- package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.d.ts +1 -0
- package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/activeMentionQuery.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/applyMention.d.ts +1 -0
- package/dist/esm/Chat/Kit/Mentions/applyMention.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/applyMention.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/extractMentions.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/findMentionRanges.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/index.d.ts +1 -0
- package/dist/esm/Chat/Kit/Mentions/index.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/index.js +1 -0
- package/dist/esm/Chat/Kit/Mentions/index.js.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/matchCandidates.d.ts +1 -0
- package/dist/esm/Chat/Kit/Mentions/matchCandidates.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/Mentions/matchCandidates.js.map +1 -1
- package/dist/esm/Chat/Kit/Mentions/mentionSegments.js.map +1 -1
- package/dist/esm/Chat/Kit/MessageReactions.d.ts +1 -0
- package/dist/esm/Chat/Kit/MessageReactions.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/MessageReactions.js.map +1 -1
- package/dist/esm/Chat/Kit/ReactionPicker.d.ts +1 -0
- package/dist/esm/Chat/Kit/ReactionPicker.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/ReactionPicker.js.map +1 -1
- package/dist/esm/Chat/Kit/TypingIndicator.d.ts +1 -0
- package/dist/esm/Chat/Kit/TypingIndicator.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/TypingIndicator.js.map +1 -1
- package/dist/esm/Chat/Kit/findOwnReaction.d.ts +1 -0
- package/dist/esm/Chat/Kit/findOwnReaction.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/findOwnReaction.js.map +1 -1
- package/dist/esm/Chat/Kit/index.d.ts +1 -0
- package/dist/esm/Chat/Kit/index.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/index.js +1 -0
- package/dist/esm/Chat/Kit/index.js.map +1 -0
- package/dist/esm/Chat/Kit/reactionsExcludingUser.d.ts +1 -0
- package/dist/esm/Chat/Kit/reactionsExcludingUser.d.ts.map +1 -0
- package/dist/esm/Chat/Kit/reactionsExcludingUser.js.map +1 -1
- package/dist/esm/Chat/index.d.ts +1 -0
- package/dist/esm/Chat/index.d.ts.map +1 -0
- package/dist/esm/Chat/isTopicUnnamed.d.ts +1 -0
- package/dist/esm/Chat/isTopicUnnamed.d.ts.map +1 -0
- package/dist/esm/Chat/isTopicUnnamed.js.map +1 -1
- package/dist/esm/Chat/relativeTimestamp.js.map +1 -1
- package/dist/esm/Chat/shouldRequestTopicName.js.map +1 -1
- package/dist/esm/Chat/topicsByActivity.d.ts +1 -0
- package/dist/esm/Chat/topicsByActivity.d.ts.map +1 -0
- package/dist/esm/Chat/topicsByActivity.js.map +1 -1
- package/dist/esm/CommandDialog/CommandDialog.d.ts +1 -0
- package/dist/esm/CommandDialog/CommandDialog.d.ts.map +1 -0
- package/dist/esm/CommandDialog/CommandDialog.js.map +1 -1
- package/dist/esm/CommandDialog/CommandStepper.d.ts +1 -0
- package/dist/esm/CommandDialog/CommandStepper.d.ts.map +1 -0
- package/dist/esm/CommandDialog/CommandStepper.js.map +1 -1
- package/dist/esm/CommandDialog/CommandStepperContent.d.ts +1 -0
- package/dist/esm/CommandDialog/CommandStepperContent.d.ts.map +1 -0
- package/dist/esm/CommandDialog/CommandStepperContent.js.map +1 -1
- package/dist/esm/CommandDialog/StepperCommandDialog.d.ts +1 -0
- package/dist/esm/CommandDialog/StepperCommandDialog.d.ts.map +1 -0
- package/dist/esm/CommandDialog/StepperCommandDialog.js.map +1 -1
- package/dist/esm/CommandDialog/StepperPanel.js.map +1 -1
- package/dist/esm/CommandDialog/applyBeforeExecute.js.map +1 -1
- package/dist/esm/CommandDialog/commandValuesUnchanged.js.map +1 -1
- package/dist/esm/CommandDialog/confirmBeforeExecute.js.map +1 -1
- package/dist/esm/CommandDialog/index.d.ts +1 -0
- package/dist/esm/CommandDialog/index.d.ts.map +1 -0
- package/dist/esm/CommandDialog/stepChildren.js.map +1 -1
- package/dist/esm/CommandDialog/transitionStep.d.ts +1 -0
- package/dist/esm/CommandDialog/transitionStep.d.ts.map +1 -0
- package/dist/esm/CommandDialog/transitionStep.js.map +1 -1
- package/dist/esm/CommandDialog/useCommandExecution.d.ts +1 -0
- package/dist/esm/CommandDialog/useCommandExecution.d.ts.map +1 -0
- package/dist/esm/CommandDialog/useCommandExecution.js.map +1 -1
- package/dist/esm/CommandDialog/useSubmissionFlight.js.map +1 -1
- package/dist/esm/CommandForm/AutoCommandForm.js.map +1 -1
- package/dist/esm/CommandForm/FieldTypeProvider.js.map +1 -1
- package/dist/esm/CommandForm/commandFormMarkers.js.map +1 -1
- package/dist/esm/CommandForm/defaultFieldTypeProviders.js.map +1 -1
- package/dist/esm/CommandForm/fieldTypeProviderRegistry.d.ts +1 -0
- package/dist/esm/CommandForm/fieldTypeProviderRegistry.d.ts.map +1 -0
- package/dist/esm/CommandForm/fieldTypeProviderRegistry.js.map +1 -1
- package/dist/esm/CommandForm/fields/CalendarField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/CalendarField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/CalendarField.js.map +1 -1
- package/dist/esm/CommandForm/fields/CheckboxField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/CheckboxField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/CheckboxField.js.map +1 -1
- package/dist/esm/CommandForm/fields/ChipsField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/ChipsField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/ChipsField.js.map +1 -1
- package/dist/esm/CommandForm/fields/ColorPickerField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/ColorPickerField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/ColorPickerField.js.map +1 -1
- package/dist/esm/CommandForm/fields/DropdownField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/DropdownField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/DropdownField.js.map +1 -1
- package/dist/esm/CommandForm/fields/InputTextField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/InputTextField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/InputTextField.js.map +1 -1
- package/dist/esm/CommandForm/fields/MultiSelectField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/MultiSelectField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/MultiSelectField.js.map +1 -1
- package/dist/esm/CommandForm/fields/NumberField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/NumberField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/NumberField.js.map +1 -1
- package/dist/esm/CommandForm/fields/NumberInputField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/NumberInputField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/NumberInputField.js.map +1 -1
- package/dist/esm/CommandForm/fields/PasswordField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/PasswordField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/PasswordField.js.map +1 -1
- package/dist/esm/CommandForm/fields/RadioButtonField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/RadioButtonField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/RadioButtonField.js.map +1 -1
- package/dist/esm/CommandForm/fields/RadioGroupField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/RadioGroupField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/RadioGroupField.js.map +1 -1
- package/dist/esm/CommandForm/fields/RatingField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/RatingField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/RatingField.js.map +1 -1
- package/dist/esm/CommandForm/fields/SliderField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/SliderField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/SliderField.js.map +1 -1
- package/dist/esm/CommandForm/fields/TextAreaField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/TextAreaField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/TextAreaField.js.map +1 -1
- package/dist/esm/CommandForm/fields/ToggleSwitchField.d.ts +1 -0
- package/dist/esm/CommandForm/fields/ToggleSwitchField.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/ToggleSwitchField.js.map +1 -1
- package/dist/esm/CommandForm/fields/chipValues.js.map +1 -1
- package/dist/esm/CommandForm/fields/fieldAccessibility.js.map +1 -1
- package/dist/esm/CommandForm/fields/fieldValueFromEvent.js.map +1 -1
- package/dist/esm/CommandForm/fields/index.d.ts +1 -0
- package/dist/esm/CommandForm/fields/index.d.ts.map +1 -0
- package/dist/esm/CommandForm/fields/index.js +1 -0
- package/dist/esm/CommandForm/fields/index.js.map +1 -0
- package/dist/esm/CommandForm/index.d.ts +1 -0
- package/dist/esm/CommandForm/index.d.ts.map +1 -0
- package/dist/esm/Common/ActionMenubar.d.ts +1 -0
- package/dist/esm/Common/ActionMenubar.d.ts.map +1 -0
- package/dist/esm/Common/ActionMenubar.js.map +1 -1
- package/dist/esm/Common/Breadcrumbs.js.map +1 -1
- package/dist/esm/Common/Button.d.ts +1 -0
- package/dist/esm/Common/Button.d.ts.map +1 -0
- package/dist/esm/Common/Button.js.map +1 -1
- package/dist/esm/Common/ButtonImplementation.d.ts +1 -0
- package/dist/esm/Common/ButtonImplementation.d.ts.map +1 -0
- package/dist/esm/Common/ButtonImplementation.js.map +1 -1
- package/dist/esm/Common/Checkbox.d.ts +1 -0
- package/dist/esm/Common/Checkbox.d.ts.map +1 -0
- package/dist/esm/Common/Checkbox.js.map +1 -1
- package/dist/esm/Common/CheckboxImplementation.d.ts +1 -0
- package/dist/esm/Common/CheckboxImplementation.d.ts.map +1 -0
- package/dist/esm/Common/CheckboxImplementation.js.map +1 -1
- package/dist/esm/Common/ComboBox.js.map +1 -1
- package/dist/esm/Common/CratisComponentsProvider.d.ts +1 -0
- package/dist/esm/Common/CratisComponentsProvider.d.ts.map +1 -0
- package/dist/esm/Common/CratisComponentsProvider.js.map +1 -1
- package/dist/esm/Common/DatePickerInput.d.ts +1 -0
- package/dist/esm/Common/DatePickerInput.d.ts.map +1 -0
- package/dist/esm/Common/DatePickerInput.js.map +1 -1
- package/dist/esm/Common/DatePickerInputImplementation.d.ts +1 -0
- package/dist/esm/Common/DatePickerInputImplementation.d.ts.map +1 -0
- package/dist/esm/Common/DatePickerInputImplementation.js.map +1 -1
- package/dist/esm/Common/ErrorBoundary.js.map +1 -1
- package/dist/esm/Common/FormElement.js.map +1 -1
- package/dist/esm/Common/Icon.js.map +1 -1
- package/dist/esm/Common/IconButton.d.ts +1 -0
- package/dist/esm/Common/IconButton.d.ts.map +1 -0
- package/dist/esm/Common/IconButton.js.map +1 -1
- package/dist/esm/Common/IconButtonImplementation.d.ts +1 -0
- package/dist/esm/Common/IconButtonImplementation.d.ts.map +1 -0
- package/dist/esm/Common/IconButtonImplementation.js.map +1 -1
- package/dist/esm/Common/NumberInput.d.ts +1 -0
- package/dist/esm/Common/NumberInput.d.ts.map +1 -0
- package/dist/esm/Common/NumberInput.js.map +1 -1
- package/dist/esm/Common/NumberInputCommitReason.js.map +1 -1
- package/dist/esm/Common/NumberInputPartAttributes.js.map +1 -1
- package/dist/esm/Common/Page.js.map +1 -1
- package/dist/esm/Common/Radio.d.ts +1 -0
- package/dist/esm/Common/Radio.d.ts.map +1 -0
- package/dist/esm/Common/Radio.js.map +1 -1
- package/dist/esm/Common/RadioImplementation.d.ts +1 -0
- package/dist/esm/Common/RadioImplementation.d.ts.map +1 -0
- package/dist/esm/Common/RadioImplementation.js.map +1 -1
- package/dist/esm/Common/Surface.js.map +1 -1
- package/dist/esm/Common/SurfaceImplementation.d.ts +1 -0
- package/dist/esm/Common/SurfaceImplementation.d.ts.map +1 -0
- package/dist/esm/Common/SurfaceImplementation.js.map +1 -1
- package/dist/esm/Common/Switch.d.ts +1 -0
- package/dist/esm/Common/Switch.d.ts.map +1 -0
- package/dist/esm/Common/Switch.js.map +1 -1
- package/dist/esm/Common/SwitchImplementation.d.ts +1 -0
- package/dist/esm/Common/SwitchImplementation.d.ts.map +1 -0
- package/dist/esm/Common/SwitchImplementation.js.map +1 -1
- package/dist/esm/Common/Tabs.js.map +1 -1
- package/dist/esm/Common/TagGroup.js.map +1 -1
- package/dist/esm/Common/TextArea.d.ts +1 -0
- package/dist/esm/Common/TextArea.d.ts.map +1 -0
- package/dist/esm/Common/TextArea.js.map +1 -1
- package/dist/esm/Common/TextAreaImplementation.d.ts +1 -0
- package/dist/esm/Common/TextAreaImplementation.d.ts.map +1 -0
- package/dist/esm/Common/TextAreaImplementation.js.map +1 -1
- package/dist/esm/Common/TextInput.d.ts +1 -0
- package/dist/esm/Common/TextInput.d.ts.map +1 -0
- package/dist/esm/Common/TextInput.js.map +1 -1
- package/dist/esm/Common/TextInputImplementation.d.ts +1 -0
- package/dist/esm/Common/TextInputImplementation.d.ts.map +1 -0
- package/dist/esm/Common/TextInputImplementation.js.map +1 -1
- package/dist/esm/Common/ToggleGroup.js.map +1 -1
- package/dist/esm/Common/ToolbarFocusMode.js.map +1 -1
- package/dist/esm/Common/Tooltip.js.map +1 -1
- package/dist/esm/Common/TooltipImplementation.d.ts +1 -0
- package/dist/esm/Common/TooltipImplementation.d.ts.map +1 -0
- package/dist/esm/Common/TooltipImplementation.js.map +1 -1
- package/dist/esm/Common/index.d.ts +1 -0
- package/dist/esm/Common/index.d.ts.map +1 -0
- package/dist/esm/Common/messaging/useOptionalMessenger.js.map +1 -1
- package/dist/esm/Common/normalizeIconClass.js.map +1 -1
- package/dist/esm/Common/reactAriaProps.js.map +1 -1
- package/dist/esm/Common/useNativeCheckedState.js.map +1 -1
- package/dist/esm/Common/useToolbarKeyboardNavigation.d.ts +1 -0
- package/dist/esm/Common/useToolbarKeyboardNavigation.d.ts.map +1 -0
- package/dist/esm/Common/useToolbarKeyboardNavigation.js.map +1 -1
- package/dist/esm/DataPage/DataPage.d.ts +1 -0
- package/dist/esm/DataPage/DataPage.d.ts.map +1 -0
- package/dist/esm/DataPage/DataPage.js.map +1 -1
- package/dist/esm/DataPage/DataPageLayout.js.map +1 -1
- package/dist/esm/DataPage/index.d.ts +1 -0
- package/dist/esm/DataPage/index.d.ts.map +1 -0
- package/dist/esm/DataTables/Column.d.ts +1 -0
- package/dist/esm/DataTables/Column.d.ts.map +1 -0
- package/dist/esm/DataTables/Column.js.map +1 -1
- package/dist/esm/DataTables/ColumnFilterMenu.d.ts +1 -0
- package/dist/esm/DataTables/ColumnFilterMenu.d.ts.map +1 -0
- package/dist/esm/DataTables/ColumnFilterMenu.js.map +1 -1
- package/dist/esm/DataTables/DataTableCore.d.ts +1 -0
- package/dist/esm/DataTables/DataTableCore.d.ts.map +1 -0
- package/dist/esm/DataTables/DataTableCore.js.map +1 -1
- package/dist/esm/DataTables/DataTableFilterMatcherRegistry.d.ts +1 -0
- package/dist/esm/DataTables/DataTableFilterMatcherRegistry.d.ts.map +1 -0
- package/dist/esm/DataTables/DataTableFilterMatcherRegistry.js.map +1 -1
- package/dist/esm/DataTables/DataTableFilterMeta.js.map +1 -1
- package/dist/esm/DataTables/DataTableForObservableQuery.d.ts +1 -0
- package/dist/esm/DataTables/DataTableForObservableQuery.d.ts.map +1 -0
- package/dist/esm/DataTables/DataTableForObservableQuery.js.map +1 -1
- package/dist/esm/DataTables/DataTableForQuery.d.ts +1 -0
- package/dist/esm/DataTables/DataTableForQuery.d.ts.map +1 -0
- package/dist/esm/DataTables/DataTableForQuery.js.map +1 -1
- package/dist/esm/DataTables/DataTableSelectionChangeEvent.js.map +1 -1
- package/dist/esm/DataTables/DataTableStatus.js.map +1 -1
- package/dist/esm/DataTables/TablePaginator.d.ts +1 -0
- package/dist/esm/DataTables/TablePaginator.d.ts.map +1 -0
- package/dist/esm/DataTables/TablePaginator.js.map +1 -1
- package/dist/esm/DataTables/TablePaginatorImplementation.d.ts +1 -0
- package/dist/esm/DataTables/TablePaginatorImplementation.d.ts.map +1 -0
- package/dist/esm/DataTables/TablePaginatorImplementation.js.map +1 -1
- package/dist/esm/DataTables/index.d.ts +1 -0
- package/dist/esm/DataTables/index.d.ts.map +1 -0
- package/dist/esm/DataTables/paginatorRange.js.map +1 -1
- package/dist/esm/DataTables/resolveDataTableStatus.d.ts +1 -0
- package/dist/esm/DataTables/resolveDataTableStatus.d.ts.map +1 -0
- package/dist/esm/DataTables/resolveDataTableStatus.js.map +1 -1
- package/dist/esm/DataTables/selectionKeys.js.map +1 -1
- package/dist/esm/Dialogs/BusyIndicatorDialog.js.map +1 -1
- package/dist/esm/Dialogs/ConfirmationDialog.js.map +1 -1
- package/dist/esm/Dialogs/Dialog.d.ts +1 -0
- package/dist/esm/Dialogs/Dialog.d.ts.map +1 -0
- package/dist/esm/Dialogs/Dialog.js.map +1 -1
- package/dist/esm/Dialogs/DialogImplementation.d.ts +1 -0
- package/dist/esm/Dialogs/DialogImplementation.d.ts.map +1 -0
- package/dist/esm/Dialogs/DialogImplementation.js.map +1 -1
- package/dist/esm/Dialogs/DialogInitialFocus.js.map +1 -1
- package/dist/esm/Dialogs/index.d.ts +1 -0
- package/dist/esm/Dialogs/index.d.ts.map +1 -0
- package/dist/esm/Display/Avatar.js.map +1 -1
- package/dist/esm/Display/Badge.js.map +1 -1
- package/dist/esm/Display/Chip.js.map +1 -1
- package/dist/esm/Display/Message.js.map +1 -1
- package/dist/esm/Display/ProgressBar.js.map +1 -1
- package/dist/esm/Display/ProgressBarImplementation.d.ts +1 -0
- package/dist/esm/Display/ProgressBarImplementation.d.ts.map +1 -0
- package/dist/esm/Display/ProgressBarImplementation.js.map +1 -1
- package/dist/esm/Display/ProgressSpinner.js.map +1 -1
- package/dist/esm/Display/Skeleton.js.map +1 -1
- package/dist/esm/Display/Tag.js.map +1 -1
- package/dist/esm/Display/index.d.ts +1 -0
- package/dist/esm/Display/index.d.ts.map +1 -0
- package/dist/esm/Dropdown/Dropdown.d.ts +1 -0
- package/dist/esm/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/esm/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/Dropdown/DropdownImplementation.d.ts +1 -0
- package/dist/esm/Dropdown/DropdownImplementation.d.ts.map +1 -0
- package/dist/esm/Dropdown/DropdownImplementation.js.map +1 -1
- package/dist/esm/Dropdown/index.d.ts +1 -0
- package/dist/esm/Dropdown/index.d.ts.map +1 -0
- package/dist/esm/Dropdown/observeLabelAssociations.js.map +1 -1
- package/dist/esm/Dropdown/useExternalLabel.js.map +1 -1
- package/dist/esm/Filter/CheckboxListFilter.d.ts +1 -0
- package/dist/esm/Filter/CheckboxListFilter.d.ts.map +1 -0
- package/dist/esm/Filter/CheckboxListFilter.js.map +1 -1
- package/dist/esm/Filter/FilterEditor.d.ts +1 -0
- package/dist/esm/Filter/FilterEditor.d.ts.map +1 -0
- package/dist/esm/Filter/FilterEditor.js.map +1 -1
- package/dist/esm/Filter/FilterEditorProps.d.ts +1 -0
- package/dist/esm/Filter/FilterEditorProps.d.ts.map +1 -0
- package/dist/esm/Filter/FilterEditorProps.js.map +1 -1
- package/dist/esm/Filter/FilterPanel.d.ts +1 -0
- package/dist/esm/Filter/FilterPanel.d.ts.map +1 -0
- package/dist/esm/Filter/FilterPanel.js.map +1 -1
- package/dist/esm/Filter/RangeHistogramFilter.d.ts +1 -0
- package/dist/esm/Filter/RangeHistogramFilter.d.ts.map +1 -0
- package/dist/esm/Filter/RangeHistogramFilter.js.map +1 -1
- package/dist/esm/Filter/index.d.ts +1 -0
- package/dist/esm/Filter/index.d.ts.map +1 -0
- package/dist/esm/Filter/types.js.map +1 -1
- package/dist/esm/Filter/useFilterState.d.ts +1 -0
- package/dist/esm/Filter/useFilterState.d.ts.map +1 -0
- package/dist/esm/Filter/useFilterState.js.map +1 -1
- package/dist/esm/Filter/useOptionListOverflow.js.map +1 -1
- package/dist/esm/Filter/utils.d.ts +1 -0
- package/dist/esm/Filter/utils.d.ts.map +1 -0
- package/dist/esm/Filter/utils.js.map +1 -1
- package/dist/esm/Notifications/Toaster.js.map +1 -1
- package/dist/esm/Notifications/index.d.ts +1 -0
- package/dist/esm/Notifications/index.d.ts.map +1 -0
- package/dist/esm/Notifications/toast.js.map +1 -1
- package/dist/esm/Notifications/toastCommandResult.js.map +1 -1
- package/dist/esm/ObjectContentEditor/ObjectContentEditor.d.ts +1 -0
- package/dist/esm/ObjectContentEditor/ObjectContentEditor.d.ts.map +1 -0
- package/dist/esm/ObjectContentEditor/ObjectContentEditor.js.map +1 -1
- package/dist/esm/ObjectContentEditor/index.d.ts +1 -0
- package/dist/esm/ObjectContentEditor/index.d.ts.map +1 -0
- package/dist/esm/ObjectContentEditor/objectHelpers.d.ts +1 -0
- package/dist/esm/ObjectContentEditor/objectHelpers.d.ts.map +1 -0
- package/dist/esm/ObjectContentEditor/objectHelpers.js.map +1 -1
- package/dist/esm/ObjectNavigationalBar/ObjectNavigationalBar.js.map +1 -1
- package/dist/esm/ObjectNavigationalBar/breadcrumbHelpers.js.map +1 -1
- package/dist/esm/ObjectNavigationalBar/index.d.ts +1 -0
- package/dist/esm/ObjectNavigationalBar/index.d.ts.map +1 -0
- package/dist/esm/PivotViewer/PivotViewer.d.ts +1 -0
- package/dist/esm/PivotViewer/PivotViewer.d.ts.map +1 -0
- package/dist/esm/PivotViewer/PivotViewer.js.map +1 -1
- package/dist/esm/PivotViewer/PivotViewerLabels.js.map +1 -1
- package/dist/esm/PivotViewer/components/AxisLabels.d.ts +1 -0
- package/dist/esm/PivotViewer/components/AxisLabels.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/AxisLabels.js.map +1 -1
- package/dist/esm/PivotViewer/components/DetailPanel.js.map +1 -1
- package/dist/esm/PivotViewer/components/FilterPanel.d.ts +1 -0
- package/dist/esm/PivotViewer/components/FilterPanel.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/FilterPanel.js.map +1 -1
- package/dist/esm/PivotViewer/components/FilterPanelContainer.d.ts +1 -0
- package/dist/esm/PivotViewer/components/FilterPanelContainer.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/FilterPanelContainer.js.map +1 -1
- package/dist/esm/PivotViewer/components/PivotCanvas.d.ts +1 -0
- package/dist/esm/PivotViewer/components/PivotCanvas.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/PivotCanvas.js.map +1 -1
- package/dist/esm/PivotViewer/components/PivotViewerMain.d.ts +1 -0
- package/dist/esm/PivotViewer/components/PivotViewerMain.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/PivotViewerMain.js.map +1 -1
- package/dist/esm/PivotViewer/components/RangeHistogramFilter.d.ts +1 -0
- package/dist/esm/PivotViewer/components/RangeHistogramFilter.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/RangeHistogramFilter.js.map +1 -1
- package/dist/esm/PivotViewer/components/Spinner.js.map +1 -1
- package/dist/esm/PivotViewer/components/Toolbar.d.ts +1 -0
- package/dist/esm/PivotViewer/components/Toolbar.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/Toolbar.js.map +1 -1
- package/dist/esm/PivotViewer/components/ToolbarContainer.d.ts +1 -0
- package/dist/esm/PivotViewer/components/ToolbarContainer.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/ToolbarContainer.js.map +1 -1
- package/dist/esm/PivotViewer/components/index.d.ts +1 -0
- package/dist/esm/PivotViewer/components/index.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/index.js +1 -0
- package/dist/esm/PivotViewer/components/index.js.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/animation.d.ts +1 -0
- package/dist/esm/PivotViewer/components/pivot/animation.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/animation.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/colorResolver.d.ts +1 -0
- package/dist/esm/PivotViewer/components/pivot/colorResolver.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/colorResolver.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/constants.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/ellipsize.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/groups.d.ts +1 -0
- package/dist/esm/PivotViewer/components/pivot/groups.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/groups.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/sprites.d.ts +1 -0
- package/dist/esm/PivotViewer/components/pivot/sprites.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/sprites.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/syncScrollSprites.d.ts +1 -0
- package/dist/esm/PivotViewer/components/pivot/syncScrollSprites.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/syncScrollSprites.js.map +1 -1
- package/dist/esm/PivotViewer/components/pivot/visibility.d.ts +1 -0
- package/dist/esm/PivotViewer/components/pivot/visibility.d.ts.map +1 -0
- package/dist/esm/PivotViewer/components/pivot/visibility.js.map +1 -1
- package/dist/esm/PivotViewer/constants.js.map +1 -1
- package/dist/esm/PivotViewer/engine/layout.d.ts +1 -0
- package/dist/esm/PivotViewer/engine/layout.d.ts.map +1 -0
- package/dist/esm/PivotViewer/engine/layout.js.map +1 -1
- package/dist/esm/PivotViewer/engine/pivot.worker.js +1 -0
- package/dist/esm/PivotViewer/engine/pivot.worker.js.map +1 -0
- package/dist/esm/PivotViewer/engine/requestCorrelator.js.map +1 -1
- package/dist/esm/PivotViewer/engine/store.d.ts +1 -0
- package/dist/esm/PivotViewer/engine/store.d.ts.map +1 -0
- package/dist/esm/PivotViewer/engine/store.js.map +1 -1
- package/dist/esm/PivotViewer/engine/types.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/index.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/index.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/index.js +1 -0
- package/dist/esm/PivotViewer/hooks/index.js.map +1 -0
- package/dist/esm/PivotViewer/hooks/useAnimationModeTracking.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useCardSelection.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useCardSelection.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useCardSelection.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useContainerDimensions.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useCurrentFilters.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useCurrentFilters.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useCurrentFilters.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useDetailPanelClose.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useDetailPanelClose.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useDetailPanelClose.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useDimensionState.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useDimensionState.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useDimensionState.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFieldExtractors.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useFieldExtractors.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useFieldExtractors.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFilterOptions.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useFilterOptions.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useFilterOptions.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFilterPanelDrag.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFilterState.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useFilterState.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useFilterState.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useFilteredData.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useFilteredData.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useFilteredData.js +1 -0
- package/dist/esm/PivotViewer/hooks/useFilteredData.js.map +1 -0
- package/dist/esm/PivotViewer/hooks/usePanning.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/usePivotEngine.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/usePivotEngine.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/usePivotEngine.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useScrollSync.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useScrollSync.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useScrollSync.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useSelectedItem.js +1 -0
- package/dist/esm/PivotViewer/hooks/useSelectedItem.js.map +1 -0
- package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.d.ts +1 -0
- package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.d.ts.map +1 -0
- package/dist/esm/PivotViewer/hooks/useViewModeScrollHandling.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useWheelZoom.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useZoomScrollAnchor.js.map +1 -1
- package/dist/esm/PivotViewer/hooks/useZoomState.js.map +1 -1
- package/dist/esm/PivotViewer/index.d.ts +1 -0
- package/dist/esm/PivotViewer/index.d.ts.map +1 -0
- package/dist/esm/PivotViewer/types.d.ts +1 -0
- package/dist/esm/PivotViewer/types.d.ts.map +1 -0
- package/dist/esm/PivotViewer/types.js.map +1 -1
- package/dist/esm/PivotViewer/utils/animations.js.map +1 -1
- package/dist/esm/PivotViewer/utils/cardPosition.d.ts +1 -0
- package/dist/esm/PivotViewer/utils/cardPosition.d.ts.map +1 -0
- package/dist/esm/PivotViewer/utils/cardPosition.js.map +1 -1
- package/dist/esm/PivotViewer/utils/constants.js.map +1 -1
- package/dist/esm/PivotViewer/utils/idResolution.d.ts +1 -0
- package/dist/esm/PivotViewer/utils/idResolution.d.ts.map +1 -0
- package/dist/esm/PivotViewer/utils/idResolution.js.map +1 -1
- package/dist/esm/PivotViewer/utils/index.d.ts +1 -0
- package/dist/esm/PivotViewer/utils/index.d.ts.map +1 -0
- package/dist/esm/PivotViewer/utils/index.js +1 -0
- package/dist/esm/PivotViewer/utils/index.js.map +1 -0
- package/dist/esm/PivotViewer/utils/presentGrouping.d.ts +1 -0
- package/dist/esm/PivotViewer/utils/presentGrouping.d.ts.map +1 -0
- package/dist/esm/PivotViewer/utils/presentGrouping.js.map +1 -1
- package/dist/esm/PivotViewer/utils/search.d.ts +1 -0
- package/dist/esm/PivotViewer/utils/search.d.ts.map +1 -0
- package/dist/esm/PivotViewer/utils/search.js.map +1 -1
- package/dist/esm/PivotViewer/utils/selection.d.ts +1 -0
- package/dist/esm/PivotViewer/utils/selection.d.ts.map +1 -0
- package/dist/esm/PivotViewer/utils/selection.js.map +1 -1
- package/dist/esm/PivotViewer/utils/utils.d.ts +1 -0
- package/dist/esm/PivotViewer/utils/utils.d.ts.map +1 -0
- package/dist/esm/PivotViewer/utils/utils.js.map +1 -1
- package/dist/esm/QueryStatus/QueryStatus.js.map +1 -1
- package/dist/esm/QueryStatus/resolveQueryStatus.d.ts +1 -0
- package/dist/esm/QueryStatus/resolveQueryStatus.d.ts.map +1 -0
- package/dist/esm/QueryStatus/resolveQueryStatus.js.map +1 -1
- package/dist/esm/SchemaEditor/NameCell.d.ts +1 -0
- package/dist/esm/SchemaEditor/NameCell.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/NameCell.js.map +1 -1
- package/dist/esm/SchemaEditor/SchemaEditor.d.ts +1 -0
- package/dist/esm/SchemaEditor/SchemaEditor.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/SchemaEditor.js.map +1 -1
- package/dist/esm/SchemaEditor/TypeCell.d.ts +1 -0
- package/dist/esm/SchemaEditor/TypeCell.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/TypeCell.js.map +1 -1
- package/dist/esm/SchemaEditor/index.d.ts +1 -0
- package/dist/esm/SchemaEditor/index.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/schemaHelpers.d.ts +1 -0
- package/dist/esm/SchemaEditor/schemaHelpers.d.ts.map +1 -0
- package/dist/esm/SchemaEditor/schemaHelpers.js.map +1 -1
- package/dist/esm/TimeMachine/EventsView.d.ts +1 -0
- package/dist/esm/TimeMachine/EventsView.d.ts.map +1 -0
- package/dist/esm/TimeMachine/EventsView.js.map +1 -1
- package/dist/esm/TimeMachine/Properties.js.map +1 -1
- package/dist/esm/TimeMachine/ReadModelView.d.ts +1 -0
- package/dist/esm/TimeMachine/ReadModelView.d.ts.map +1 -0
- package/dist/esm/TimeMachine/ReadModelView.js.map +1 -1
- package/dist/esm/TimeMachine/TimeMachine.d.ts +1 -0
- package/dist/esm/TimeMachine/TimeMachine.d.ts.map +1 -0
- package/dist/esm/TimeMachine/TimeMachine.js.map +1 -1
- package/dist/esm/TimeMachine/TimeMachineLabels.js.map +1 -1
- package/dist/esm/TimeMachine/index.d.ts +1 -0
- package/dist/esm/TimeMachine/index.d.ts.map +1 -0
- package/dist/esm/TimeMachine/propertiesHelpers.js.map +1 -1
- package/dist/esm/TimeMachine/types.js.map +1 -1
- package/dist/esm/Toolbar/Toolbar.d.ts +1 -0
- package/dist/esm/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/esm/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarButton.d.ts +1 -0
- package/dist/esm/Toolbar/ToolbarButton.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarButton.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarContext.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarDragContext.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarFanOutItem.d.ts +1 -0
- package/dist/esm/Toolbar/ToolbarFanOutItem.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarFanOutItem.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarFolder.d.ts +1 -0
- package/dist/esm/Toolbar/ToolbarFolder.d.ts.map +1 -0
- package/dist/esm/Toolbar/ToolbarFolder.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarFolderContext.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarGroup.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarItemVisibilityContext.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarLayout.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarSection.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarSeparator.js.map +1 -1
- package/dist/esm/Toolbar/ToolbarSlot.js.map +1 -1
- package/dist/esm/Toolbar/index.d.ts +1 -0
- package/dist/esm/Toolbar/index.d.ts.map +1 -0
- package/dist/esm/configuration/CratisComponentsContext.d.ts +1 -0
- package/dist/esm/configuration/CratisComponentsContext.d.ts.map +1 -0
- package/dist/esm/configuration/CratisComponentsContext.js.map +1 -1
- package/dist/esm/configuration/CratisComponentsDefaults.d.ts +1 -0
- package/dist/esm/configuration/CratisComponentsDefaults.d.ts.map +1 -0
- package/dist/esm/configuration/CratisComponentsDefaults.js.map +1 -1
- package/dist/esm/configuration/useCratisIcon.d.ts +1 -0
- package/dist/esm/configuration/useCratisIcon.d.ts.map +1 -0
- package/dist/esm/configuration/useCratisIcon.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/renderer/DialogStackContext.js.map +1 -1
- package/dist/esm/renderer/RendererContext.d.ts +1 -0
- package/dist/esm/renderer/RendererContext.d.ts.map +1 -0
- package/dist/esm/renderer/RendererContext.js.map +1 -1
- package/dist/esm/renderer/RendererScope.d.ts +1 -0
- package/dist/esm/renderer/RendererScope.d.ts.map +1 -0
- package/dist/esm/renderer/RendererScope.js.map +1 -1
- package/dist/esm/renderer/builtin/index.js.map +1 -1
- package/dist/esm/renderer/capabilities.js.map +1 -1
- package/dist/esm/renderer/coreSlots.d.ts +1 -0
- package/dist/esm/renderer/coreSlots.d.ts.map +1 -0
- package/dist/esm/renderer/coreSlots.js.map +1 -1
- package/dist/esm/renderer/dialogStack.js.map +1 -1
- package/dist/esm/renderer/errors.d.ts +1 -0
- package/dist/esm/renderer/errors.d.ts.map +1 -0
- package/dist/esm/renderer/errors.js.map +1 -1
- package/dist/esm/renderer/index.d.ts +1 -0
- package/dist/esm/renderer/index.d.ts.map +1 -0
- package/dist/esm/renderer/manifest.d.ts +1 -0
- package/dist/esm/renderer/manifest.d.ts.map +1 -0
- package/dist/esm/renderer/manifest.js.map +1 -1
- package/dist/esm/renderer/overlayEnvironment.js.map +1 -1
- package/dist/esm/renderer/presentation.d.ts +1 -0
- package/dist/esm/renderer/presentation.d.ts.map +1 -0
- package/dist/esm/renderer/presentation.js.map +1 -1
- package/dist/esm/renderer/renderSlot.js.map +1 -1
- package/dist/esm/renderer/resolve.d.ts +1 -0
- package/dist/esm/renderer/resolve.d.ts.map +1 -0
- package/dist/esm/renderer/resolve.js.map +1 -1
- package/dist/esm/renderer/slots.js.map +1 -1
- package/dist/esm/types/ChangeHandler.d.ts +1 -0
- package/dist/esm/types/ChangeHandler.d.ts.map +1 -0
- package/dist/esm/types/ChangeHandler.js.map +1 -1
- package/dist/esm/types/ChangeMeta.js.map +1 -1
- package/dist/esm/types/ExactPartKeys.js.map +1 -1
- package/dist/esm/types/JsonSchema.js.map +1 -1
- package/dist/esm/types/TypeFormat.js.map +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/parts.js.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatComposer.js","sources":["../../../../Chat/Kit/ChatComposer.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;AAoFO,MAAM,YAAY,GAAG,UAAU,CAClC,CACI,EACI,iBAAiB,EACjB,wBAAwB,EACxB,MAAM,EACN,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,cAAc,EACd,MAAM,GACT,EACD,SAAS,KACT;AACA,IAAA,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAC1D,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;IAC3D,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;IAC7D,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,QAAQ,CACxD,EAAE,CACL;AACD,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAsB,IAAI,CAAC;AAClD,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC;AAClC,I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ACjB,MAAM,EAAE,WAAW,IAAI,cAAc,EAAA,QAAA,EAEjDD,cACI,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EAAA,aAAA,EACL,MAAM,aAElBC,GAAA,CAAA,MAAA,EAAA,EAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAA,CAAG,EACvCA,GAAA,CAAA,SAAA,EAAA,EAAS,MAAM,EAAC,2BAA2B,EAAA,CAAG,CAAA,EAAA,CAC5C,GACD,EAGTA,GAAA,CAAC,eAAe,EAAA,EACZ,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE,eAAe,IAAI,CAAC,QAAQ,EAClC,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,OAAO,EACb,GAAG,EAAE,CAAC,EAAA,QAAA,EAENA,GAAA,CAAC,cAAc,EAAA,EACX,SAAS,EAAE,cAAc,EACzB,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,MAAM,kBAAkB,CAAC,KAAK,CAAC,EAC1C,MAAM,EAAE,MAAM,EAAE,cAAc,GAChC,EAAA,CACY,CAAA,EAAA,CAChB;AAEd,CAAC;AAEL,YAAY,CAAC,WAAW,GAAG,cAAc;;"}
|
|
1
|
+
{"version":3,"file":"ChatComposer.js","sources":["../../../../Chat/Kit/ChatComposer.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type React from 'react';\nimport { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';\nimport { AnchoredOverlay } from './AnchoredOverlay';\nimport type { BuildAvatarUrlParams } from './Avatar';\nimport { activeMentionQuery } from './Mentions/activeMentionQuery';\nimport { applyMention } from './Mentions/applyMention';\nimport { extractMentions } from './Mentions/extractMentions';\nimport { matchCandidates } from './Mentions/matchCandidates';\nimport { MentionSuggestions, type MentionCandidate } from './Mentions';\nimport { ReactionPicker, type ReactionPickerLabels } from './ReactionPicker';\n\n/** Overrides for the composer's own labels. Any field left unset falls back to a literal English\n * default. */\nexport interface ChatComposerLabels {\n /** Placeholder text for the draft input. Defaults to `'Write a message… (Enter to send)'`. */\n placeholder?: string;\n /** Tooltip/accessible label for the emoji-insert toggle. Defaults to `'Insert emoji'`. */\n insertEmoji?: string;\n /** Tooltip for the send button. Defaults to `'Send'`. */\n send?: string;\n /** Accessible label for the send button. Defaults to `'Send message'`. */\n sendMessage?: string;\n /** Labels forwarded to the emoji-insert {@link ReactionPicker}. */\n reactionPicker?: ReactionPickerLabels;\n}\n\n/**\n * Props for the compose row of a conversation — the text area, the `@` mention list it opens, and\n * the send button. It owns the draft so the surrounding panel stays a renderer of messages.\n */\nexport interface ChatComposerProps {\n /** Everyone who can be mentioned from this conversation. Omit to turn mentions off. */\n mentionCandidates?: MentionCandidate[];\n\n /**\n * Resolves who can be mentioned as the person types, invoked with what has been typed after\n * the `@` — for hosts whose candidates come from a lookup rather than a list they already\n * hold. May answer synchronously or with a promise; a stale answer (one that arrives after\n * the query has moved on) is dropped. Combines with {@link mentionCandidates} when both are\n * given.\n * @param query What has been typed after the `@`.\n * @returns The candidates matching the query.\n */\n resolveMentionCandidates?: (\n query: string,\n ) => MentionCandidate[] | Promise<MentionCandidate[]>;\n\n /**\n * Invoked with the trimmed message text when the user sends, together with who that text\n * actually mentions — reduced from every candidate the draft saw, so a mention that was\n * picked but edited away again does not count.\n */\n onSend: (text: string, mentions: MentionCandidate[]) => void;\n\n /** Whether to take focus when mounted. */\n autoFocus?: boolean;\n\n /** Disables drafting, emoji insertion, and sending. Defaults to false. */\n disabled?: boolean;\n\n /** Builds the avatar image URL for mention candidates. Omit to always show initials. */\n buildAvatarUrl?: (params: BuildAvatarUrlParams) => string;\n\n /** Overrides for the composer's labels. Unset fields fall back to literal English defaults. */\n labels?: ChatComposerLabels;\n}\n\n/**\n * Imperative actions a caller can drive on the composer without owning its draft state — used by a\n * quick reply, which sets the starting text for whatever the person types next rather than sending\n * anything itself.\n */\nexport interface ChatComposerHandle {\n /** Replaces the current draft and takes focus, caret placed at the end. */\n prefill: (text: string) => void;\n}\n\n/**\n * The compose row of a conversation — the text area, the `@` mention list it opens, and the send\n * button. It owns the draft so the surrounding panel stays a renderer of messages.\n */\nexport const ChatComposer = forwardRef<ChatComposerHandle, ChatComposerProps>(\n (\n {\n mentionCandidates,\n resolveMentionCandidates,\n onSend,\n autoFocus = false,\n disabled = false,\n buildAvatarUrl,\n labels,\n },\n handleRef,\n ) => {\n const [draft, setDraft] = useState({ text: '', caret: 0 });\n const [highlightedIndex, setHighlightedIndex] = useState(0);\n const [showEmojiPicker, setShowEmojiPicker] = useState(false);\n const [resolvedCandidates, setResolvedCandidates] = useState<MentionCandidate[]>(\n [],\n );\n const inputRef = useRef<HTMLTextAreaElement>(null);\n const didAutoFocus = useRef(false);\n const emojiButtonRef = useRef<HTMLButtonElement>(null);\n // Every candidate this draft has seen — resolved or picked — so the mentions reported on\n // send can be found again even when the resolver's latest answer no longer includes them.\n const seenCandidatesRef = useRef(new Map<string, MentionCandidate>());\n\n const mentionsEnabled = !!mentionCandidates || !!resolveMentionCandidates;\n const query = mentionsEnabled\n ? activeMentionQuery(draft.text, draft.caret)\n : null;\n const queryText = query?.text;\n\n useEffect(() => {\n if (!resolveMentionCandidates || queryText === undefined) {\n setResolvedCandidates((previous) =>\n previous.length === 0 ? previous : [],\n );\n return;\n }\n let cancelled = false;\n Promise.resolve(resolveMentionCandidates(queryText))\n .then((candidates) => {\n if (cancelled) return;\n setResolvedCandidates(candidates);\n candidates.forEach((candidate) =>\n seenCandidatesRef.current.set(candidate.id, candidate),\n );\n })\n .catch(() => {\n if (!cancelled) {\n setResolvedCandidates([]);\n }\n });\n return () => {\n cancelled = true;\n };\n }, [resolveMentionCandidates, queryText]);\n\n const uniqueById = (candidates: MentionCandidate[]): MentionCandidate[] => {\n const byId = new Map<string, MentionCandidate>();\n candidates.forEach((candidate) => {\n if (!byId.has(candidate.id)) {\n byId.set(candidate.id, candidate);\n }\n });\n return [...byId.values()];\n };\n\n const candidatePool = uniqueById([\n ...(mentionCandidates ?? []),\n ...resolvedCandidates,\n ]);\n // A query that ends in whitespace and spells a candidate's full name is a mention already\n // made — the trailing space applyMention writes is its closing. Without this, Enter right\n // after picking would re-pick the same name instead of sending the message.\n const queryIsCompleteMention =\n query !== null &&\n /\\s$/.test(query.text) &&\n candidatePool.some(\n (candidate) =>\n candidate.name.toLowerCase() === query.text.trim().toLowerCase(),\n );\n const suggestions =\n query && !queryIsCompleteMention\n ? matchCandidates(candidatePool, query.text)\n : [];\n const isSuggesting = !disabled && suggestions.length > 0;\n const highlighted = Math.min(highlightedIndex, suggestions.length - 1);\n\n useEffect(() => {\n if (autoFocus && !disabled && !didAutoFocus.current && inputRef.current) {\n inputRef.current.focus();\n didAutoFocus.current = true;\n }\n }, [autoFocus, disabled]);\n\n useEffect(() => {\n if (disabled) {\n setShowEmojiPicker(false);\n }\n }, [disabled]);\n\n useImperativeHandle(\n handleRef,\n () => ({\n prefill: (text: string) => {\n setDraft({ text, caret: text.length });\n requestAnimationFrame(() => {\n inputRef.current?.focus();\n inputRef.current?.setSelectionRange(text.length, text.length);\n });\n },\n }),\n [],\n );\n\n const readDraft = (element: HTMLTextAreaElement) => {\n const text = element.value;\n // Only editing the text restarts the selection. Resetting on every key event would undo the\n // arrow-key navigation on the very next keyup.\n if (text !== draft.text) {\n setHighlightedIndex(0);\n }\n setDraft({ text, caret: element.selectionStart ?? text.length });\n };\n\n const send = () => {\n const trimmed = draft.text.trim();\n if (!trimmed || disabled) return;\n const known = uniqueById([\n ...(mentionCandidates ?? []),\n ...seenCandidatesRef.current.values(),\n ]);\n onSend(trimmed, extractMentions(trimmed, known));\n seenCandidatesRef.current.clear();\n setDraft({ text: '', caret: 0 });\n };\n\n const choose = (candidate: MentionCandidate) => {\n if (!query) return;\n seenCandidatesRef.current.set(candidate.id, candidate);\n const applied = applyMention(draft.text, draft.caret, query, candidate.name);\n setDraft(applied);\n setHighlightedIndex(0);\n // The caret has to be restored after React has written the new value back into the element.\n requestAnimationFrame(() =>\n inputRef.current?.setSelectionRange(applied.caret, applied.caret),\n );\n inputRef.current?.focus();\n };\n\n const insertEmoji = (emoji: string) => {\n const text = `${draft.text.slice(0, draft.caret)}${emoji}${draft.text.slice(draft.caret)}`;\n const caret = draft.caret + emoji.length;\n setDraft({ text, caret });\n setShowEmojiPicker(false);\n // Same restore-after-write pattern as choose() above — React has to write the new value in\n // before the caret can be placed past the emoji it inserted.\n requestAnimationFrame(() => {\n inputRef.current?.focus();\n inputRef.current?.setSelectionRange(caret, caret);\n });\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (isSuggesting) {\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n event.preventDefault();\n const step = event.key === 'ArrowDown' ? 1 : suggestions.length - 1;\n setHighlightedIndex((highlighted + step) % suggestions.length);\n return;\n }\n\n if (event.key === 'Enter' || event.key === 'Tab') {\n event.preventDefault();\n choose(suggestions[highlighted]);\n return;\n }\n\n if (event.key === 'Escape') {\n event.preventDefault();\n // Closing the list without changing the text: move the caret past the mention so the\n // query no longer resolves.\n setDraft((previous) => ({\n ...previous,\n caret: previous.text.length,\n }));\n return;\n }\n }\n\n if (event.key === 'Enter' && !event.shiftKey) {\n event.preventDefault();\n send();\n }\n };\n\n return (\n <div className='chat-composer'>\n {isSuggesting && (\n <MentionSuggestions\n candidates={suggestions}\n highlightedIndex={highlighted}\n onSelect={choose}\n onHighlight={setHighlightedIndex}\n buildAvatarUrl={buildAvatarUrl}\n />\n )}\n <textarea\n ref={inputRef}\n className='chat-composer__input'\n value={draft.text}\n onChange={(event) => readDraft(event.target)}\n onKeyUp={(event) => readDraft(event.currentTarget)}\n onClick={(event) => readDraft(event.currentTarget)}\n onKeyDown={handleKeyDown}\n placeholder={\n labels?.placeholder ?? 'Write a message… (Enter to send)'\n }\n rows={2}\n disabled={disabled}\n />\n <button\n ref={emojiButtonRef}\n type='button'\n className='chat-composer__emoji-toggle'\n disabled={disabled}\n onMouseDown={(event) => event.preventDefault()}\n onClick={() => setShowEmojiPicker((previous) => !previous)}\n title={labels?.insertEmoji ?? 'Insert emoji'}\n aria-label={labels?.insertEmoji ?? 'Insert emoji'}\n aria-expanded={showEmojiPicker}\n >\n ☺\n </button>\n <button\n type='button'\n className='chat-composer__send'\n onClick={send}\n disabled={disabled || !draft.text.trim()}\n title={labels?.send ?? 'Send'}\n aria-label={labels?.sendMessage ?? 'Send message'}\n >\n <svg\n width='16'\n height='16'\n viewBox='0 0 24 24'\n fill='none'\n stroke='currentColor'\n strokeWidth='2.5'\n aria-hidden='true'\n >\n <line x1='22' y1='2' x2='11' y2='13' />\n <polygon points='22 2 15 22 11 13 2 9 22 2' />\n </svg>\n </button>\n {/* Portaled to <body>, same reason as the reaction picker on a message bubble: the chat\n panel scrolls/clips, so a picker positioned inside it would be cut off at the edge. */}\n <AnchoredOverlay\n anchorRef={emojiButtonRef}\n open={showEmojiPicker && !disabled}\n side='above'\n align='right'\n gap={6}\n >\n <ReactionPicker\n anchorRef={emojiButtonRef}\n onPick={insertEmoji}\n onDismiss={() => setShowEmojiPicker(false)}\n labels={labels?.reactionPicker}\n />\n </AnchoredOverlay>\n </div>\n );\n },\n);\nChatComposer.displayName = 'ChatComposer';\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;AAoFO,MAAM,YAAY,GAAG,UAAU,CAClC,CACI,EACI,iBAAiB,EACjB,wBAAwB,EACxB,MAAM,EACN,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,cAAc,EACd,MAAM,GACT,EACD,SAAS,KACT;AACA,IAAA,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE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;AAEL,YAAY,CAAC,WAAW,GAAG,cAAc;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAAuB,CAAC;AAEjE;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,+BAA+B;IAC/B,EAAE,EAAE,IAAI,CAAC;IAET,mEAAmE;IACnE,QAAQ,EAAE,IAAI,CAAC;IAEf,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC;IAEnB,uDAAuD;IACvD,cAAc,EAAE,MAAM,CAAC;IAEvB,uDAAuD;IACvD,SAAS,EAAE,OAAO,CAAC;IAEnB,6FAA6F;IAC7F,UAAU,EAAE,cAAc,CAAC;IAE3B,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IAEb,iCAAiC;IACjC,SAAS,EAAE,IAAI,CAAC;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessage.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessage.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Guid } from '@cratis/fundamentals';\nimport { ChatAuthorKind } from './ChatAuthorKind';\nimport type { ChatMessageReaction } from './ChatMessageReaction';\n\n/**\n * One message in a conversation, carrying who said it, what was said, when it was said, and optional\n * reactions. A message whose {@link failureDetail} is set renders as a failure line rather than as\n * something its author said.\n */\nexport interface ChatMessage {\n /** Stable message identity. */\n id: Guid;\n\n /** The identifier of the person or agent who wrote the message. */\n authorId: Guid;\n\n /** The author's display name. */\n authorName: string;\n\n /** The author's initials, used for avatar fallback. */\n authorInitials: string;\n\n /** Whether the author has an uploaded avatar image. */\n hasAvatar: boolean;\n\n /** Whether a person or an agent wrote it, which decides where the avatar is fetched from. */\n authorKind: ChatAuthorKind;\n\n /** The message text. */\n text: string;\n\n /** When the message was sent. */\n timestamp: Date;\n\n /**\n * Set when the turn ended in failure instead of an answer, holding the reason behind it. Such a\n * message renders as a failure line rather than as something its author said.\n */\n failureDetail?: string;\n\n /**\n * Set when the turn carried the work out rather than only describing it — the agent was asked to\n * change something and went and changed it. Such a message needs no additional action offer.\n */\n didAct?: boolean;\n\n /**\n * The quick emoji reactions given to this message, grouped by emoji. Omitted entirely for a\n * conversation that does not support reactions, which keeps the reaction affordance off a bubble\n * whose backend cannot yet record one.\n */\n reactions?: ChatMessageReaction[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessageAdded.js","sources":["../../../../Chat/Kit/ChatMessageAdded.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"ChatMessageAdded.js","sources":["../../../../Chat/Kit/ChatMessageAdded.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * Published over the Arc messenger by a {@link Chat} when its composer sends a message — the same\n * moment the `onSend` callback fires. Only published when the chat was given an `id`; a chat without\n * one has nothing to key the message by and stays silent.\n */\nexport class ChatMessageAdded {\n constructor(\n /** Caller-owned identity of the conversation that accepted the message. */\n readonly chatId: string,\n /** Full text submitted by the composer. */\n readonly text: string,\n ) {}\n}\n"],"names":[],"mappings":"MAQa,gBAAgB,CAAA;AAGZ,IAAA,MAAA;AAEA,IAAA,IAAA;IAJb,WAAA,CAEa,MAAc,EAEd,IAAY,EAAA;QAFZ,IAAA,CAAA,MAAM,GAAN,MAAM;QAEN,IAAA,CAAA,IAAI,GAAJ,IAAI;IACd;AACN;;"}
|
|
@@ -58,3 +58,4 @@ export interface ChatMessageBubbleProps {
|
|
|
58
58
|
* a conversation that does not pass it renders exactly as it did before reactions existed.
|
|
59
59
|
*/
|
|
60
60
|
export declare const ChatMessageBubble: ({ message, showAuthor, showTimestamp, formattedTimestamp, currentUserId, onReact, onQuickReply, onAct, buildAvatarUrl, labels, }: ChatMessageBubbleProps) => import("react").JSX.Element;
|
|
61
|
+
//# sourceMappingURL=ChatMessageBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMessageBubble.d.ts","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessageBubble.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAsB,KAAK,oBAAoB,EAAE,MAAM,mBAAU,CAAC;AAEzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAe,CAAC;AAGjD,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,qBAAkB,CAAC;AAI7E;iFACiF;AACjF,MAAM,WAAW,uBAAuB;IACpC;wCACoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;oCACgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4FAA4F;IAC5F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;mCAC+B;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACzC;AAED;;;;GAIG;AACH,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,OAAO,EAAA,EAAA,aAAA,EAAa,MAAM,EAAA,CAAG,EAAA,CACzB,CACZ,EACA,KAAK,KACFA,GAAA,CAAA,QAAA,EAAA,EACI,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EACD,MAAM,EAAE,eAAe,IAAI,qBAAqB,EAAA,YAAA,EAGhD,MAAM,EAAE,eAAe,IAAI,qBAAqB,EAEpD,OAAO,EAAE,MAAM,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,EAAA,QAAA,EAEhCA,GAAA,CAAC,MAAM,EAAA,EAAA,aAAA,EAAa,MAAM,EAAA,CAAG,EAAA,CACxB,CACZ,CAAA,EAAA,CACC,CACT,IACC,EACL,aAAa,KACVA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,kBAAkB,EAAA,QAAA,EAAE,kBAAkB,EAAA,CAAQ,CACjE,EACA,iBAAiB,IAAIA,GAAA,CAAC,gBAAgB,EAAA,EAAC,SAAS,EAAE,cAAc,EAAA,CAAI,EAGrEA,GAAA,CAAC,eAAe,EAAA,EACZ,SAAS,EAAE,iBAAiB,EAC5B,IAAI,EAAE,UAAU,EAChB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,OAAO,EACb,GAAG,EAAE,CAAC,YAENA,GAAA,CAAC,cAAc,EAAA,EACX,QAAQ,EAAE,WAAW,EAAE,KAAK,EAC5B,SAAS,EAAE,OAAO,CAAC,SAAS,EAC5B,SAAS,EAAE,iBAAiB,EAC5B,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,MAAM,aAAa,CAAC,KAAK,CAAC,EACrC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAA,CAChC,EAAA,CACY,CAAA,EAAA,CAChB,CAAA,EAAA,CACJ;AAEd;;"}
|
|
1
|
+
{"version":3,"file":"ChatMessageBubble.js","sources":["../../../../Chat/Kit/ChatMessageBubble.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useRef, useState } from 'react';\nimport type { Guid } from '@cratis/fundamentals';\nimport { AnchoredOverlay } from './AnchoredOverlay';\nimport { PersonAvatarCircle, type BuildAvatarUrlParams } from './Avatar';\nimport { ChatAuthorKind } from './ChatAuthorKind';\nimport type { ChatMessage } from './ChatMessage';\nimport { findOwnReaction } from './findOwnReaction';\nimport { MessageReactions } from './MessageReactions';\nimport { ReactionPicker, type ReactionPickerLabels } from './ReactionPicker';\nimport { reactionsExcludingUser } from './reactionsExcludingUser';\nimport { FaBolt, FaReply } from 'react-icons/fa6';\n\n/** Overrides for the bubble's own labels. Any field left unset falls back to a literal English\n * default. `{emoji}`/`{name}` placeholders are substituted by the component. */\nexport interface ChatMessageBubbleLabels {\n /** Tooltip/accessible label when the viewer has already reacted. Defaults to\n * `'You reacted with {emoji}'`. */\n yourReaction?: string;\n /** Tooltip/accessible label for the reaction button before reacting. Defaults to\n * `'Add a quick reaction'`. */\n addReaction?: string;\n /** Tooltip/accessible label for the quick-reply button. Defaults to `'Reply to {name}'`. */\n quickReplyTo?: string;\n /** Tooltip/accessible label for the \"turn into an action\" button. Defaults to\n * `'Turn into an action'`. */\n convertToAction?: string;\n /** Labels forwarded to the reaction {@link ReactionPicker}. */\n reactionPicker?: ReactionPickerLabels;\n}\n\n/**\n * Props for one message bubble in a conversation, with optional quick-reaction and quick-reply\n * affordances. The affordances are opt-in via {@link currentUserId} — a conversation that does not\n * pass it renders exactly as it did before reactions existed.\n */\nexport interface ChatMessageBubbleProps {\n /** The message to render. */\n message: ChatMessage;\n\n /** Whether to show the author row above the message — false for a continuation bubble. */\n showAuthor: boolean;\n\n /** Whether to show the timestamp below the message. */\n showTimestamp: boolean;\n\n /** The formatted relative timestamp to render when {@link showTimestamp} is true. */\n formattedTimestamp: string;\n\n /**\n * The identifier of whoever is looking at the conversation. Reactions and quick reply are only\n * offered when this is given — a conversation whose backend cannot yet record a reaction simply\n * does not render the affordance.\n */\n currentUserId?: Guid;\n\n /** Invoked with the emoji picked for this message, whether given, changed, or taken back. */\n onReact?: (messageId: Guid, emoji: string) => void;\n\n /** Invoked to prefill the composer with a reply addressed to this message's author. */\n onQuickReply?: (authorName: string) => void;\n\n /**\n * Invoked to ask for what this message asks for to be carried out. Omit to leave the affordance off.\n */\n onAct?: (messageId: Guid) => void;\n\n /** Builds the avatar image URL. Omit to always show initials. */\n buildAvatarUrl?: (params: BuildAvatarUrlParams) => string;\n\n /** Overrides for the bubble's labels. Unset fields fall back to literal English defaults. */\n labels?: ChatMessageBubbleLabels;\n}\n\n/**\n * One message in a conversation, with the optional quick-reaction and quick-reply affordances a\n * conversation may offer. The affordances are opt-in via {@link ChatMessageBubbleProps.currentUserId} —\n * a conversation that does not pass it renders exactly as it did before reactions existed.\n */\nexport const ChatMessageBubble = ({\n message,\n showAuthor,\n showTimestamp,\n formattedTimestamp,\n currentUserId,\n onReact,\n onQuickReply,\n onAct,\n buildAvatarUrl,\n labels,\n}: ChatMessageBubbleProps) => {\n const [pickerOpen, setPickerOpen] = useState(false);\n const reactionButtonRef = useRef<HTMLButtonElement>(null);\n const supportsReactions = !!currentUserId && !!onReact;\n const showActionsRow = supportsReactions || !!onQuickReply || !!onAct;\n const ownReaction = supportsReactions\n ? findOwnReaction(message.reactions, currentUserId)\n : undefined;\n const otherReactions = supportsReactions\n ? reactionsExcludingUser(message.reactions, currentUserId)\n : [];\n\n const pick = (emoji: string) => {\n setPickerOpen(false);\n onReact?.(message.id, emoji);\n };\n\n return (\n <div className={`chat-bubble${showAuthor ? '' : ' chat-bubble--continuation'}`}>\n {showAuthor && (\n <div className='chat-bubble-author'>\n <PersonAvatarCircle\n userId={message.authorId}\n name={message.authorName}\n hasAvatar={message.hasAvatar}\n size={22}\n ownerType={\n message.authorKind === ChatAuthorKind.Agent\n ? 'Agents'\n : 'Users'\n }\n buildAvatarUrl={buildAvatarUrl}\n />\n <span className='chat-bubble-name'>{message.authorName}</span>\n </div>\n )}\n <div className='chat-bubble-body'>\n <div\n className={`chat-bubble-panel${showActionsRow ? ' chat-bubble-panel--with-actions' : ''}`}\n >\n <p className='chat-bubble-text'>{message.text}</p>\n {showActionsRow && (\n <div className='chat-bubble-actions'>\n {supportsReactions && (\n <button\n ref={reactionButtonRef}\n type='button'\n className={`chat-bubble-action${ownReaction ? ' chat-bubble-action--own-reaction' : ''}`}\n title={\n ownReaction\n ? (\n labels?.yourReaction ??\n 'You reacted with {emoji}'\n ).replace('{emoji}', ownReaction.emoji)\n : (labels?.addReaction ??\n 'Add a quick reaction')\n }\n aria-label={\n ownReaction\n ? (\n labels?.yourReaction ??\n 'You reacted with {emoji}'\n ).replace('{emoji}', ownReaction.emoji)\n : (labels?.addReaction ??\n 'Add a quick reaction')\n }\n aria-expanded={pickerOpen}\n onClick={() => setPickerOpen((previous) => !previous)}\n >\n {ownReaction ? ownReaction.emoji : '☺'}\n </button>\n )}\n {onQuickReply && (\n <button\n type='button'\n className='chat-bubble-action'\n title={(\n labels?.quickReplyTo ?? 'Reply to {name}'\n ).replace('{name}', message.authorName)}\n aria-label={(\n labels?.quickReplyTo ?? 'Reply to {name}'\n ).replace('{name}', message.authorName)}\n onClick={() => onQuickReply(message.authorName)}\n >\n <FaReply aria-hidden='true' />\n </button>\n )}\n {onAct && (\n <button\n type='button'\n className='chat-bubble-action'\n title={\n labels?.convertToAction ?? 'Turn into an action'\n }\n aria-label={\n labels?.convertToAction ?? 'Turn into an action'\n }\n onClick={() => onAct(message.id)}\n >\n <FaBolt aria-hidden='true' />\n </button>\n )}\n </div>\n )}\n </div>\n {showTimestamp && (\n <span className='chat-bubble-time'>{formattedTimestamp}</span>\n )}\n {supportsReactions && <MessageReactions reactions={otherReactions} />}\n {/* Portaled to <body> rather than positioned inside the bubble: the chat panel scrolls,\n so a picker positioned within it is clipped the moment it reaches the panel's edge. */}\n <AnchoredOverlay\n anchorRef={reactionButtonRef}\n open={pickerOpen}\n side='above'\n align='right'\n gap={6}\n >\n <ReactionPicker\n ownEmoji={ownReaction?.emoji}\n reactions={message.reactions}\n anchorRef={reactionButtonRef}\n onPick={pick}\n onDismiss={() => setPickerOpen(false)}\n labels={labels?.reactionPicker}\n />\n </AnchoredOverlay>\n </div>\n </div>\n );\n};\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;AAiFO,MAAM,iBAAiB,GAAG,CAAC,EAC9B,OAAO,EACP,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,OAAO,EACP,YAAY,EACZ,KAAK,EACL,cAAc,EACd,MAAM,GACe,KAAI;IACzB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AACnD,IAAA,MAAM,iBAAiB,GAAG,MAAM,CAAoB,IAAI,CAAC;IACzD,MAAM,iBAAiB,GAAG,CAAC,CAAC,aAAa,IAAI,CAAC,CAAC,OAAO;IACtD,MAAM,cAAc,GAAG,iBAAiB,IAAI,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,KAAK;IACrE,MAAM,WAAW,GAAG;UACd,eAAe,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa;UAChD,SAAS;IACf,MAAM,cAAc,GAAG;UACjB,sBAAsB,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa;UACvD,EAAE;AAER,IAAA,MAAM,IAAI,GAAG,CAAC,KAAa,KAAI;QAC3B,aAAa,CAAC,KAAK,CAAC;QACpB,OAAO,GAAG,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC;AAChC,IAAA,CAAC;IAED,QACIA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,CAAA,WAAA,EAAc,UAAU,GAAG,EAAE,GAAG,4BAA4B,CAAA,CAAE,EAAA,QAAA,EAAA,CACzE,UAAU,KACPA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,oBAAoB,EAAA,QAAA,EAAA,CAC/BC,GAAA,CAAC,kBAAkB,EAAA,EACf,MAAM,EAAE,OAAO,CAAC,QA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B,IAAI,EAAE,UAAU,EAChB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,OAAO,EACb,GAAG,EAAE,CAAC,YAENA,GAAA,CAAC,cAAc,EAAA,EACX,QAAQ,EAAE,WAAW,EAAE,KAAK,EAC5B,SAAS,EAAE,OAAO,CAAC,SAAS,EAC5B,SAAS,EAAE,iBAAiB,EAC5B,MAAM,EAAE,IAAI,EACZ,SAAS,EAAE,MAAM,aAAa,CAAC,KAAK,CAAC,EACrC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAA,CAChC,EAAA,CACY,CAAA,EAAA,CAChB,CAAA,EAAA,CACJ;AAEd;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMessageReaction.d.ts","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessageReaction.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA2B,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAEhC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IAEd,0DAA0D;IAC1D,KAAK,EAAE,uBAAuB,EAAE,CAAC;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessageReaction.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessageReaction.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"ChatMessageReaction.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessageReaction.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { ChatMessageReactionUser } from './ChatMessageReactionUser';\n\n/**\n * Everyone who gave the same emoji as a quick reaction to a message — grouped so identical reactions\n * from different people render as one stacked badge instead of repeating the emoji per person.\n */\nexport interface ChatMessageReaction {\n\n /** The emoji that was given. */\n emoji: string;\n\n /** Whoever gave this emoji, in the order they gave it. */\n users: ChatMessageReactionUser[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessageReactionUser.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessageReactionUser.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"ChatMessageReactionUser.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessageReactionUser.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { Guid } from '@cratis/fundamentals';\n\n/**\n * One person behind a {@link ChatMessageReaction} — enough to show them in the reaction tooltip, and\n * to identify their own reaction record when it needs to change or be taken back.\n */\nexport interface ChatMessageReactionUser {\n\n /** The user's identifier. */\n id: Guid;\n\n /** The user's display name. */\n name: string;\n\n /**\n * The identifier of the underlying reaction this person gave. A person has one reaction per\n * message, so giving a different emoji reuses this identifier rather than creating a new one, and\n * taking the reaction back targets it directly.\n */\n reactionId: Guid;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatOwnReaction.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatOwnReaction.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"ChatOwnReaction.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatOwnReaction.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { Guid } from '@cratis/fundamentals';\n\n/**\n * The reaction a specific person gave to a message, found by {@link findOwnReaction}. Carries the\n * reaction's identifier so a caller can reuse it to change the emoji, or target it to take the\n * reaction back.\n */\nexport interface ChatOwnReaction {\n\n /** The identifier of the reaction record. */\n reactionId: Guid;\n\n /** The emoji they gave. */\n emoji: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatTypingAuthor.d.ts","sourceRoot":"","sources":["../../../../Chat/Kit/ChatTypingAuthor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAkB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAE7B,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAC;IAEX,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IAEb,kDAAkD;IAClD,SAAS,EAAE,OAAO,CAAC;IAEnB,4FAA4F;IAC5F,IAAI,EAAE,cAAc,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatTypingAuthor.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatTypingAuthor.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"ChatTypingAuthor.js","sourceRoot":"","sources":["../../../../Chat/Kit/ChatTypingAuthor.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ChatAuthorKind } from './ChatAuthorKind';\n\n/**\n * Somebody the conversation is currently waiting on — a person typing, or an agent working on its\n * answer.\n */\nexport interface ChatTypingAuthor {\n\n /** The identifier, used for the avatar and as the list key. */\n id: string;\n\n /** The name shown in the indicator. */\n name: string;\n\n /** Whether an avatar image is stored for them. */\n hasAvatar: boolean;\n\n /** Whether this is a person or an agent, which decides where the avatar is fetched from. */\n kind: ChatAuthorKind;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatVariant.js","sources":["../../../../Chat/Kit/ChatVariant.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"ChatVariant.js","sources":["../../../../Chat/Kit/ChatVariant.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * How a conversation is presented.\n */\nexport enum ChatVariant {\n\n /** A floating card hanging off whatever opened it. */\n Floating = 'floating',\n\n /** Filling a container that already provides its own frame and heading, such as a sidebar. */\n Docked = 'docked',\n}\n"],"names":[],"mappings":"IAMY;AAAZ,CAAA,UAAY,WAAW,EAAA;AAGnB,IAAA,WAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AAGrB,IAAA,WAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACrB,CAAC,EAPW,WAAW,KAAX,WAAW,GAAA,EAAA,CAAA,CAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmojiCategory.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/EmojiCategory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAoB,CAAC;AAEtD,4CAA4C;AAC5C,MAAM,WAAW,aAAa;IAE1B,6BAA6B;IAC7B,GAAG,EAAE,gBAAgB,CAAC;IAEtB,yDAAyD;IACzD,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiCategory.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/EmojiCategory.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"EmojiCategory.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/EmojiCategory.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { EmojiCategoryKey } from './EmojiCategoryKey';\n\n/** One section of the full emoji picker. */\nexport interface EmojiCategory {\n\n /** Which section this is. */\n key: EmojiCategoryKey;\n\n /** The emojis it offers, in the order they are shown. */\n emojis: readonly string[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiCategoryKey.js","sources":["../../../../../Chat/Kit/Emoji/EmojiCategoryKey.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"EmojiCategoryKey.js","sources":["../../../../../Chat/Kit/Emoji/EmojiCategoryKey.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/** The sections the full emoji picker groups its emojis into, in the order it shows them. */\nexport enum EmojiCategoryKey {\n Smileys = 'smileys',\n People = 'people',\n Nature = 'nature',\n Food = 'food',\n Activity = 'activity',\n Travel = 'travel',\n Objects = 'objects',\n Symbols = 'symbols',\n Flags = 'flags',\n}\n"],"names":[],"mappings":"IAIY;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AACxB,IAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACnB,CAAC,EAVW,gBAAgB,KAAhB,gBAAgB,GAAA,EAAA,CAAA,CAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiMemory.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/EmojiMemory.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"EmojiMemory.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/EmojiMemory.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * Where a person's recently used emojis are kept between visits. Narrowed to the two calls that are\n * actually needed so the picker never reaches for browser storage itself, and a spec can hand it a\n * plain object instead.\n */\nexport interface EmojiMemory {\n\n /** Reads a stored value, or null when nothing has been stored under the key. */\n getItem(key: string): string | null;\n\n /** Stores a value under a key. */\n setItem(key: string, value: string): void;\n}\n"]}
|
|
@@ -30,3 +30,4 @@ export interface EmojiPickerProps {
|
|
|
30
30
|
* feel slow to open, and there is never more than one section on screen to look at anyway.
|
|
31
31
|
*/
|
|
32
32
|
export declare const EmojiPicker: ({ ownEmoji, onPick, labels }: EmojiPickerProps) => import("react").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=EmojiPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/EmojiPicker.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAoB,CAAC;AA6BtD,uGAAuG;AACvG,MAAM,WAAW,iBAAiB;IAC9B,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8FAA8F;IAC9F,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAC;CA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AA,EAEI,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,QAAQ,mBACE,KAAK,KAAK,QAAQ,EACjC,SAAS,EAAE,sBAAsB,KAAK,KAAK,QAAQ,GAAG,gCAAgC,GAAG,EAAE,CAAA,CAAE,EAC7F,WAAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,cAAc,EAAE,EAC9C,OAAO,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,YAE3B,KAAK,EAAA,EARD,KAAK,CASL,CACZ,CAAC,GACA,EACNA,GAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAC,oBAAoB,EAC9B,IAAI,EAAC,SAAS,gBACF,MAAM,EAAE,eAAe,IAAI,kBAAkB,EAAA,QAAA,EAExD,aAAa,CAAC,GAAG,CAAC,CAAC,OAAO,MACvBA,gBAEI,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,KAAK,EAAA,eAAA,EACK,OAAO,CAAC,GAAG,KAAK,QAAQ,gBAC3B,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EACtC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EACjC,SAAS,EAAE,CAAA,iBAAA,EAAoB,OAAO,CAAC,GAAG,KAAK,QAAQ,GAAG,6BAA6B,GAAG,EAAE,CAAA,CAAE,EAC9F,WAAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,cAAc,EAAE,EAC9C,OAAO,EAAE,MAAM,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAA,QAAA,EAEvC,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,EAAA,EAVxB,OAAO,CAAC,GAAG,CAWX,CACZ,CAAC,EAAA,CACA,CAAA,EAAA,CACJ;AAEd;;"}
|
|
1
|
+
{"version":3,"file":"EmojiPicker.js","sources":["../../../../../Chat/Kit/Emoji/EmojiPicker.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useRef, useState } from 'react';\nimport { EMOJI_CATALOG } from './emojiCatalog';\nimport { EmojiCategoryKey } from './EmojiCategoryKey';\n\n/** The tab glyph for each section — the picker's own labels are its icons, as pickers of this kind are. */\nconst CATEGORY_GLYPHS: Record<EmojiCategoryKey, string> = {\n [EmojiCategoryKey.Smileys]: '😀',\n [EmojiCategoryKey.People]: '👋',\n [EmojiCategoryKey.Nature]: '🐻',\n [EmojiCategoryKey.Food]: '🍔',\n [EmojiCategoryKey.Activity]: '⚽',\n [EmojiCategoryKey.Travel]: '🚗',\n [EmojiCategoryKey.Objects]: '💡',\n [EmojiCategoryKey.Symbols]: '❤️',\n [EmojiCategoryKey.Flags]: '🏳️',\n};\n\n/** The literal English defaults for each category's accessible name/title, used when\n * {@link EmojiPickerLabels.categories} does not override a given key. */\nconst DEFAULT_CATEGORY_LABELS: Record<EmojiCategoryKey, string> = {\n [EmojiCategoryKey.Smileys]: 'Smileys',\n [EmojiCategoryKey.People]: 'People',\n [EmojiCategoryKey.Nature]: 'Animals & nature',\n [EmojiCategoryKey.Food]: 'Food & drink',\n [EmojiCategoryKey.Activity]: 'Activity',\n [EmojiCategoryKey.Travel]: 'Travel & places',\n [EmojiCategoryKey.Objects]: 'Objects',\n [EmojiCategoryKey.Symbols]: 'Symbols',\n [EmojiCategoryKey.Flags]: 'Flags',\n};\n\n/** Overrides for the picker's labels. Any field left unset falls back to a literal English default. */\nexport interface EmojiPickerLabels {\n /** Accessible label for the picker dialog. Defaults to `'All emojis'`. */\n allEmojis?: string;\n /** Accessible label for the emoji grid. Defaults to `'Pick an emoji'`. */\n pickEmoji?: string;\n /** Accessible label for the category tab list. Defaults to `'Emoji categories'`. */\n emojiCategories?: string;\n /** Per-category accessible names/titles. Unset categories fall back to their English name. */\n categories?: Partial<Record<EmojiCategoryKey, string>>;\n}\n\n/**\n * Props for the full emoji picker the quick row's last button opens — every emoji offered, in the\n * sections a picker is expected to have. Only the selected section is mounted.\n */\nexport interface EmojiPickerProps {\n /** The emoji the viewer already gave, marked so picking it again reads as taking it back. */\n ownEmoji?: string;\n\n /** Invoked with the emoji that was picked. */\n onPick: (emoji: string) => void;\n\n /** Overrides for the picker's labels. Unset fields fall back to literal English defaults. */\n labels?: EmojiPickerLabels;\n}\n\n/**\n * The full emoji picker the quick row's last button opens — every emoji offered, in the sections a\n * picker is expected to have.\n *\n * Only the selected section is mounted. A thousand buttons at once is what makes a picker of this kind\n * feel slow to open, and there is never more than one section on screen to look at anyway.\n */\nexport const EmojiPicker = ({ ownEmoji, onPick, labels }: EmojiPickerProps) => {\n const [category, setCategory] = useState(EmojiCategoryKey.Smileys);\n const gridRef = useRef<HTMLDivElement>(null);\n\n const showCategory = (key: EmojiCategoryKey) => {\n setCategory(key);\n gridRef.current?.scrollTo({ top: 0 });\n };\n\n const emojis =\n EMOJI_CATALOG.find((section) => section.key === category)?.emojis ?? [];\n const categoryLabel = (key: EmojiCategoryKey) =>\n labels?.categories?.[key] ?? DEFAULT_CATEGORY_LABELS[key];\n\n return (\n <div\n className='emoji-picker'\n role='dialog'\n aria-label={labels?.allEmojis ?? 'All emojis'}\n >\n <div\n ref={gridRef}\n className='emoji-picker__grid'\n role='listbox'\n aria-label={labels?.pickEmoji ?? 'Pick an emoji'}\n >\n {emojis.map((emoji) => (\n <button\n key={emoji}\n type='button'\n role='option'\n aria-selected={emoji === ownEmoji}\n className={`emoji-picker__emoji${emoji === ownEmoji ? ' emoji-picker__emoji--selected' : ''}`}\n onMouseDown={(event) => event.preventDefault()}\n onClick={() => onPick(emoji)}\n >\n {emoji}\n </button>\n ))}\n </div>\n <div\n className='emoji-picker__tabs'\n role='tablist'\n aria-label={labels?.emojiCategories ?? 'Emoji categories'}\n >\n {EMOJI_CATALOG.map((section) => (\n <button\n key={section.key}\n type='button'\n role='tab'\n aria-selected={section.key === category}\n aria-label={categoryLabel(section.key)}\n title={categoryLabel(section.key)}\n className={`emoji-picker__tab${section.key === category ? ' emoji-picker__tab--current' : ''}`}\n onMouseDown={(event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A,EACNA,GAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAC,oBAAoB,EAC9B,IAAI,EAAC,SAAS,gBACF,MAAM,EAAE,eAAe,IAAI,kBAAkB,EAAA,QAAA,EAExD,aAAa,CAAC,GAAG,CAAC,CAAC,OAAO,MACvBA,gBAEI,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,KAAK,EAAA,eAAA,EACK,OAAO,CAAC,GAAG,KAAK,QAAQ,gBAC3B,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EACtC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EACjC,SAAS,EAAE,CAAA,iBAAA,EAAoB,OAAO,CAAC,GAAG,KAAK,QAAQ,GAAG,6BAA6B,GAAG,EAAE,CAAA,CAAE,EAC9F,WAAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,cAAc,EAAE,EAC9C,OAAO,EAAE,MAAM,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAA,QAAA,EAEvC,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,EAAA,EAVxB,OAAO,CAAC,GAAG,CAWX,CACZ,CAAC,EAAA,CACA,CAAA,EAAA,CACJ;AAEd;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emojiCatalog.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/emojiCatalog.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAiB,CAAC;AAErD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,aAAa,EAwIjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emojiCatalog.js","sources":["../../../../../Chat/Kit/Emoji/emojiCatalog.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAiBO,MAAM,aAAa,GAA6B;AACnD,IAAA;QACI,GAAG,EAAE,gBAAgB,CAAC,OAAO;AAC7B,QA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AE,IAAI;AACtE,YAAA,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;AACzB,SAAA;AACJ,KAAA;AACD,IAAA;QACI,GAAG,EAAE,gBAAgB,CAAC,KAAK;AAC3B,QAAA,MAAM,EAAE;YACJ,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;YAC9F,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;YAC9F,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;YAC9F,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;AAC9F,YAAA,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;AACjE,SAAA;AACJ,KAAA;;;"}
|
|
1
|
+
{"version":3,"file":"emojiCatalog.js","sources":["../../../../../Chat/Kit/Emoji/emojiCatalog.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { EmojiCategoryKey } from './EmojiCategoryKey';\nimport type { EmojiCategory } from './EmojiCategory';\n\n/**\n * Every emoji the full picker offers, in the order it shows them.\n *\n * Derived from Unicode's own Extended_Pictographic property rather than typed out by hand, then\n * grouped into the categories a picker is expected to have by the code-point ranges each category\n * occupies. It is checked in rather than computed at runtime because it never changes between\n * releases, and a thousand entries is not worth re-deriving on every page load.\n *\n * Flags are the exception: they are pairs of regional indicators, so only real country codes are\n * flags and there is no range to sweep - those are listed deliberately.\n */\nexport const EMOJI_CATALOG: readonly EmojiCategory[] = [\n {\n key: EmojiCategoryKey.Smileys,\n emojis: [\n '😀', '😁', '😂', '😃', '😄', '😅', '😆', '😇', '😈', '😉', '😊', '😋',\n '😌', '😍', '😎', '😏', '😐', '😑', '😒', '😓', '😔', '😕', '😖', '😗',\n '😘', '😙', '😚', '😛', '😜', '😝', '😞', '😟', '😠', '😡', '😢', '😣',\n '😤', '😥', '😦', '😧', '😨', '😩', '😪', '😫', '😬', '😭', '😮', '😯',\n '😰', '😱', '😲', '😳', '😴', '😵', '😶', '😷', '😸', '😹', '😺', '😻',\n '😼', '😽', '😾', '😿', '🙀', '🙁', '🙂', '🙃', '🙄', '🤐', '🤑', '🤒',\n '🤓', '🤔', '🤕', '🤖', '🤗', '🤠', '🤡', '🤢', '🤣', '🤤', '🤥', '🤦',\n '🤧', '🤨', '🤩', '🤪', '🤫', '🤬', '🤭', '🤮', '🤯', '🥰', '🥱', '🥲',\n '🥳', '🥴', '🥵', '🥶', '🥷', '🥸', '🥹', '🥺', '🧐', '☺️', '☹️', '💀',\n '👻', '👼', '👽', '👾', '👿', '💩', '🙈', '🙉', '🙊',\n ],\n },\n {\n key: EmojiCategoryKey.People,\n emojis: [\n '🙅', '🙆', '🙇', '🙋', '🙌', '🙍', '🙎', '🙏', '👦', '👧', '👨', '👩',\n '👪', '👫', '👬', '👭', '👮', '👯', '👰', '👱', '👲', '👳', '👴', '👵',\n '👶', '👷', '👸', '👹', '👺', '💁', '💂', '💃', '💄', '💅', '💆', '💇',\n '🦰', '🦱', '🦲', '🦳', '🦴', '🦵', '🦶', '🦷', '🦸', '🦹', '🦺', '🦻',\n '🦼', '🦽', '🦾', '🦿', '🤰', '🤱', '🤲', '🤳', '🤴', '🤵', '🤶', '🤷',\n '🤸', '🤹', '🤺', '🤼', '🤽', '🤾', '🧑', '🧒', '🧓', '🧔', '🧕', '🧖',\n '🧗', '🧘', '🧙', '🧚', '🧛', '🧜', '🧝', '🧞', '🧟', '👀', '👁️', '👂',\n '👃', '👄', '👅', '👆', '👇', '👈', '👉', '👊', '👋', '👌', '👍', '👎',\n '👏', '👐', '👤', '👥', '🤘', '🤙', '🤚', '🤛', '🤜', '🤝', '🤞', '🤟',\n '☝️', '✊', '✋', '✌️', '✍️', '🖐️', '🖕', '🖖', '🕴️', '🕵️', '🕺', '💏',\n '💑',\n ],\n },\n {\n key: EmojiCategoryKey.Nature,\n emojis: [\n '🐀', '🐁', '🐂', '🐃', '🐄', '🐅', '🐆', '🐇', '🐈', '🐉', '🐊', '🐋',\n '🐌', '🐍', '🐎', '🐏', '🐐', '🐑', '🐒', '🐓', '🐔', '🐕', '🐖', '🐗',\n '🐘', '🐙', '🐚', '🐛', '🐜', '🐝', '🐞', '🐟', '🐠', '🐡', '🐢', '🐣',\n '🐤', '🐥', '🐦', '🐧', '🐨', '🐩', '🐪', '🐫', '🐬', '🐭', '🐮', '🐯',\n '🐰', '🐱', '🐲', '🐳', '🐴', '🐵', '🐶', '🐷', '🐸', '🐹', '🐺', '🐻',\n '🐼', '🐽', '🐾', '🐿️', '🦀', '🦁', '🦂', '🦃', '🦄', '🦅', '🦆', '🦇',\n '🦈', '🦉', '🦊', '🦋', '🦌', '🦍', '🦎', '🦏', '🦐', '🦑', '🦒', '🦓',\n '🦔', '🦕', '🦖', '🦗', '🦘', '🦙', '🦚', '🦛', '🦜', '🦝', '🦞', '🦟',\n '🦠', '🦡', '🦢', '🦣', '🦤', '🦥', '🦦', '🦧', '🦨', '🦩', '🦪', '🦫',\n '🦬', '🦭', '🦮', '🌰', '🌱', '🌲', '🌳', '🌴', '🌵', '🌶️', '🌷', '🌸',\n '🌹', '🌺', '🌻', '🌼', '🌽', '🌾', '🌿', '🍀', '🍁', '🍂', '🍃', '🍄',\n '🌈', '🌉', '🌊', '🌋', '🌌', '☀️', '☁️', '☂️', '☃️', '☄️', '🌤️', '🌥️',\n '🌦️', '🌧️', '🌨️', '🌩️', '🌪️', '🌫️', '🌬️', '⛄', '⛅', '⛈️', '❄️', '🔥',\n '💫', '⭐', '💐',\n ],\n },\n {\n key: EmojiCategoryKey.Food,\n emojis: [\n '🍅', '🍆', '🍇', '🍈', '🍉', '🍊', '🍋', '🍌', '🍍', '🍎', '🍏', '🍐',\n '🍑', '🍒', '🍓', '🍔', '🍕', '🍖', '🍗', '🍘', '🍙', '🍚', '🍛', '🍜',\n '🍝', '🍞', '🍟', '🍠', '🍡', '🍢', '🍣', '🍤', '🍥', '🍦', '🍧', '🍨',\n '🍩', '🍪', '🍫', '🍬', '🍭', '🍮', '🍯', '🍰', '🍱', '🍲', '🍳', '🍴',\n '🍵', '🍶', '🍷', '🍸', '🍹', '🍺', '🍻', '🍼', '🍽️', '🍾', '🍿', '🥐',\n '🥑', '🥒', '🥓', '🥔', '🥕', '🥖', '🥗', '🥘', '🥙', '🥚', '🥛', '🥜',\n '🥝', '🥞', '🥟', '🥠', '🥡', '🥢', '🥣', '🥤', '🥥', '🥦', '🥧', '🥨',\n '🥩', '🥪', '🥫', '🥬', '🥭', '🥮', '🥯', '🧀', '🧁', '🧂', '🧃', '🧄',\n '🧅', '🧆', '🧇', '🧈', '🧉', '🧊', '🧋', '🌭', '🌮', '🌯',\n ],\n },\n {\n key: EmojiCategoryKey.Activity,\n emojis: [\n '🎀', '🎁', '🎂', '🎃', '🎄', '🎅', '🎆', '🎇', '🎈', '🎉', '🎊', '🎋',\n '🎌', '🎍', '🎎', '🎏', '🎐', '🎑', '🎒', '🎓', '🎖️', '🎗️', '🎙️', '🎚️',\n '🎛️', '🎞️', '🎟️', '🎠', '🎡', '🎢', '🎣', '🎤', '🎥', '🎦', '🎧', '🎨',\n '🎩', '🎪', '🎫', '🎬', '🎭', '🎮', '🎯', '🎰', '🎱', '🎲', '🎳', '🎴',\n '🎵', '🎶', '🎷', '🎸', '🎹', '🎺', '🎻', '🎼', '🎽', '🎾', '🎿', '🏀',\n '🏁', '🏂', '🏃', '🏄', '🏅', '🏆', '🏇', '🏈', '🏉', '🏊', '⚽', '⚾',\n '🥇', '🥈', '🥉', '🥊', '🥋', '🥌', '🥍', '🥎', '🥏', '🤿', '🃏',\n ],\n },\n {\n key: EmojiCategoryKey.Travel,\n emojis: [\n '🚀', '🚁', '🚂', '🚃', '🚄', '🚅', '🚆', '🚇', '🚈', '🚉', '🚊', '🚋',\n '🚌', '🚍', '🚎', '🚏', '🚐', '🚑', '🚒', '🚓', '🚔', '🚕', '🚖', '🚗',\n '🚘', '🚙', '🚚', '🚛', '🚜', '🚝', '🚞', '🚟', '🚠', '🚡', '🚢', '🚣',\n '🚤', '🚥', '🚦', '🚧', '🚨', '🚩', '🚪', '🚫', '🚬', '🚭', '🚮', '🚯',\n '🚰', '🚱', '🚲', '🚳', '🚴', '🚵', '🚶', '🚷', '🚸', '🚹', '🚺', '🚻',\n '🚼', '🚽', '🚾', '🚿', '🛀', '🛁', '🛂', '🛃', '🛄', '🛅', '🌍', '🌎',\n '🌏', '🌐', '🌑', '🌒', '🌓', '🌔', '🌕', '🌖', '🌗', '🌘', '🌙', '🌚',\n '🌛', '🌜', '🌝', '🌞', '🌟', '🌠', '🏠', '🏡', '🏢', '🏣', '🏤', '🏥',\n '🏦', '🏧', '🏨', '🏩', '🏪', '🏫', '🏬', '🏭', '🏮', '🏯', '🏰', '⛰️',\n '⛱️', '⛲', '⛳', '⛴️', '⛵', '⛷️', '⛸️', '⛹️', '⛺', '🗺️', '🗻', '🗼',\n '🗽', '🗾', '🗿', '✈️',\n ],\n },\n {\n key: EmojiCategoryKey.Objects,\n emojis: [\n '💡', '💢', '💣', '💤', '💥', '💦', '💧', '💨', '💪', '💰', '💱', '💲',\n '💳', '💴', '💵', '💶', '💷', '💸', '💹', '💺', '💻', '💼', '💽', '💾',\n '💿', '📀', '📁', '📂', '📃', '📄', '📅', '📆', '📇', '📈', '📉', '📊',\n '📋', '📌', '📍', '📎', '📏', '📐', '📑', '📒', '📓', '📔', '📕', '📖',\n '📗', '📘', '📙', '📚', '📛', '📜', '📝', '📞', '📟', '📠', '📡', '📢',\n '📣', '📤', '📥', '📦', '📧', '📨', '📩', '📪', '📫', '📬', '📭', '📮',\n '📯', '📰', '📱', '📲', '📳', '📴', '📵', '📶', '📷', '📸', '📹', '📺',\n '📻', '📼', '📽️', '📿', '🔦', '🔧', '🔨', '🔩', '🔪', '🔫', '🔬', '🕐',\n '🕑', '🕒', '🕓', '🕔', '🕕', '🕖', '🕗', '🕘', '🕙', '🕚', '🕛', '🕜',\n '🕝', '🕞', '🕟', '🕠', '🕡', '🕢', '🕣', '🕤', '🕥', '🕦', '🕧', '🖥️',\n '🖨️', '🖱️', '🖲️', '🖼️', '🗂️', '🗃️', '🗄️', '🗑️', '🗒️', '🗓️', '🗜️', '⌚',\n '⌛', '☎️', '🧰', '🧱', '🧲', '🧳', '🧴', '🧵', '🧶', '🧷', '🧸', '🧹',\n '🧺', '🧻', '🧼', '🧽', '🧾', '🧿', '🛋️', '🛌', '🛍️', '🛎️', '🛏️', '🛐',\n '🛑', '🛒',\n ],\n },\n {\n key: EmojiCategoryKey.Symbols,\n emojis: [\n '🔀', '🔁', '🔂', '🔃', '🔄', '🔅', '🔆', '🔇', '🔈', '🔉', '🔊', '🔋',\n '🔌', '🔍', '🔎', '🔏', '🔐', '🔑', '🔒', '🔓', '🔔', '🔕', '🔖', '🔗',\n '🔘', '🔙', '🔚', '🔛', '🔜', '🔝', '🔞', '🔟', '🔠', '🔡', '🔢', '🔣',\n '🔤', '🔭', '🔮', '🔯', '🔰', '🔱', '🔲', '🔳', '🔴', '🔵', '🔶', '🔷',\n '🔸', '🔹', '🔺', '🔻', '🔼', '🔽', '✅', '❌', '❎', '➕', '➖', '➗',\n '❓', '❔', '❕', '❗', '❤️', '💓', '💔', '💕', '💖', '💗', '💘', '💙',\n '💚', '💛', '💜', '💝', '💞', '💟', '💋', '💌', '🆑', '🆒', '🆓', '🆔',\n '🆕', '🆖', '🆗', '🆘', '🆙', '🆚', '🉑', '☑️', '✔️', '✝️', '✴️', '♻️',\n '♾️', '⚛️', '⚜️', '⚙️',\n ],\n },\n {\n key: EmojiCategoryKey.Flags,\n emojis: [\n '🇳🇴', '🇸🇪', '🇩🇰', '🇫🇮', '🇮🇸', '🇬🇧', '🇺🇸', '🇨🇦', '🇮🇪', '🇫🇷', '🇩🇪', '🇳🇱',\n '🇧🇪', '🇱🇺', '🇨🇭', '🇦🇹', '🇪🇸', '🇵🇹', '🇮🇹', '🇬🇷', '🇵🇱', '🇨🇿', '🇸🇰', '🇭🇺',\n '🇷🇴', '🇧🇬', '🇭🇷', '🇸🇮', '🇪🇪', '🇱🇻', '🇱🇹', '🇺🇦', '🇹🇷', '🇮🇱', '🇦🇪', '🇮🇳',\n '🇨🇳', '🇯🇵', '🇰🇷', '🇸🇬', '🇹🇭', '🇻🇳', '🇮🇩', '🇲🇾', '🇵🇭', '🇦🇺', '🇳🇿', '🇧🇷',\n '🇦🇷', '🇨🇱', '🇲🇽', '🇿🇦', '🇳🇬', '🇰🇪', '🇪🇬', '🇲🇦',\n ],\n },\n];\n"],"names":[],"mappings":";;AAiBO,MAAM,aAAa,GAA6B;AACnD,IAAA;QACI,GAAG,EAAE,gBAAgB,CAAC,OAAO;AAC7B,QAAA,MAAM,EAAE;YACJ,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;YACtE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;YACtE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,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E,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;YAC9F,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;YAC9F,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;AAC9F,YAAA,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;AACjE,SAAA;AACJ,KAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAiB,CAAC;AAGhC,cAAc,kBAAe,CAAC;AAC9B,cAAc,kBAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAgB,CAAC"}
|
|
@@ -8,3 +8,4 @@ export * from './EmojiPicker.js';
|
|
|
8
8
|
export { recentEmojis, rememberEmoji } from './recentEmojis.js';
|
|
9
9
|
// `DEFAULT_EMOJIS` and `QUICK_ROW_SIZE` are internal constants used by
|
|
10
10
|
// `recentEmojis`/`rememberEmoji` and are intentionally not part of the public API.
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,cAAc,oBAAiB,CAAC;AAChC,gFAAgF;AAChF,kEAAkE;AAClE,cAAc,kBAAe,CAAC;AAC9B,cAAc,kBAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAgB,CAAC;AAC7D,uEAAuE;AACvE,mFAAmF","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nexport * from './EmojiCategory';\n// `EmojiCategoryKey` and `EMOJI_CATALOG` are internal implementation details of\n// `EmojiPicker` and are intentionally not part of the public API.\nexport * from './EmojiMemory';\nexport * from './EmojiPicker';\nexport { recentEmojis, rememberEmoji } from './recentEmojis';\n// `DEFAULT_EMOJIS` and `QUICK_ROW_SIZE` are internal constants used by\n// `recentEmojis`/`rememberEmoji` and are intentionally not part of the public API.\n"]}
|
|
@@ -21,3 +21,4 @@ export declare function recentEmojis(memory: EmojiMemory): string[];
|
|
|
21
21
|
* @returns The emojis to offer from now on, most recently used first.
|
|
22
22
|
*/
|
|
23
23
|
export declare function rememberEmoji(memory: EmojiMemory, emoji: string): string[];
|
|
24
|
+
//# sourceMappingURL=recentEmojis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recentEmojis.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Emoji/recentEmojis.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAe,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAAyC,CAAC;AAEtF,yFAAyF;AACzF,eAAO,MAAM,cAAc,IAAI,CAAC;AAIhC;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,EAAE,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAY1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recentEmojis.js","sources":["../../../../../Chat/Kit/Emoji/recentEmojis.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"recentEmojis.js","sources":["../../../../../Chat/Kit/Emoji/recentEmojis.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { EmojiMemory } from './EmojiMemory';\n\n/**\n * What the quick row offers before anybody has reacted with anything — the handful a conversation\n * reaches for on its first day, so the row is never empty and never has to be learned first.\n */\nexport const DEFAULT_EMOJIS: readonly string[] = ['👍', '❤️', '😂', '😮', '😢', '🎉'];\n\n/** How many the quick row holds; past this the least recently used drops off the end. */\nexport const QUICK_ROW_SIZE = 6;\n\nconst STORAGE_KEY = 'cratis.components.canvas.chat.recent-emojis';\n\n/**\n * The emojis to offer in the quick row: the ones this person reached for most recently, newest first,\n * topped up with the defaults so the row is always full rather than shrinking to whatever has been\n * used so far.\n * @param memory Where the history is kept.\n * @returns The emojis to offer, most recently used first.\n */\nexport function recentEmojis(memory: EmojiMemory): string[] {\n return topUp(readHistory(memory));\n}\n\n/**\n * Records that an emoji was used, moving it to the front of the history.\n * @param memory Where the history is kept.\n * @param emoji The emoji that was used.\n * @returns The emojis to offer from now on, most recently used first.\n */\nexport function rememberEmoji(memory: EmojiMemory, emoji: string): string[] {\n const history = [emoji, ...readHistory(memory).filter(used => used !== emoji)].slice(0, QUICK_ROW_SIZE);\n\n // Storage is a courtesy, not a requirement — a browser refusing to write (private mode, a full\n // quota) must not cost somebody the reaction they were in the middle of giving.\n try {\n memory.setItem(STORAGE_KEY, JSON.stringify(history));\n } catch (error) {\n console.warn('Could not remember the emoji that was just used.', error);\n }\n\n return topUp(history);\n}\n\n/** The stored history, or nothing at all when it is missing or no longer readable as one. */\nfunction readHistory(memory: EmojiMemory): string[] {\n try {\n const stored = memory.getItem(STORAGE_KEY);\n if (!stored) return [];\n const parsed: unknown = JSON.parse(stored);\n return Array.isArray(parsed) ? parsed.filter((entry): entry is string => typeof entry === 'string') : [];\n } catch (error) {\n console.warn('Could not read which emojis were used recently.', error);\n return [];\n }\n}\n\n/** Fills the row out with defaults, keeping the used ones in front and never repeating one. */\nfunction topUp(history: readonly string[]): string[] {\n return [...new Set([...history, ...DEFAULT_EMOJIS])].slice(0, QUICK_ROW_SIZE);\n}\n"],"names":[],"mappings":"AASO,MAAM,cAAc,GAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;AAG7E,MAAM,cAAc,GAAG;AAE9B,MAAM,WAAW,GAAG,6CAA6C;AAS3D,SAAU,YAAY,CAAC,MAAmB,EAAA;AAC5C,IAAA,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AACrC;AAQM,SAAU,aAAa,CAAC,MAAmB,EAAE,KAAa,EAAA;AAC5D,IAAA,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC;AAIvG,IAAA,IAAI;AACA,QAAA,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACxD;IAAE,OAAO,KAAK,EAAE;AACZ,QAAA,OAAO,CAAC,IAAI,CAAC,kDAAkD,EAAE,KAAK,CAAC;IAC3E;AAEA,IAAA,OAAO,KAAK,CAAC,OAAO,CAAC;AACzB;AAGA,SAAS,WAAW,CAAC,MAAmB,EAAA;AACpC,IAAA,IAAI;QACA,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC;AAC1C,QAAA,IAAI,CAAC,MAAM;AAAE,YAAA,OAAO,EAAE;QACtB,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;QAC1C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK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vF,OAAO,EAAE,WAAW,CAAC;IAErB;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,MAAM,CAAC;IAE/D,mGAAmG;IACnG,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wCAAyC,gBAAgB,gCA6DhF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FailedReply.js","sources":["../../../../Chat/Kit/FailedReply.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"FailedReply.js","sources":["../../../../Chat/Kit/FailedReply.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useState } from 'react';\nimport { DialogButtons } from '@cratis/arc.react/dialogs';\nimport { Dialog } from '../../Dialogs/Dialog';\nimport type { ChatMessage } from './ChatMessage';\nimport { FaTriangleExclamation } from 'react-icons/fa6';\n\n/** The pieces of a would-be issue report, handed to {@link FailedReplyProps.buildReportUrl}. */\nexport interface FailedReplyReportDetails {\n /** A one-line title for the report. */\n title: string;\n\n /** A short summary of what went wrong. */\n summary: string;\n\n /** The raw failure detail from the message. */\n detail: string;\n\n /** The identifier of the message whose turn failed, so the turn can be traced by it. */\n commentId: string;\n}\n\n/** Overrides for the failure line's own labels. Any field left unset falls back to a literal English\n * default. A `{name}` placeholder is substituted with the message's author name. */\nexport interface FailedReplyLabels {\n /** Defaults to `'{name} could not answer'`. */\n replyFailed?: string;\n /** Defaults to `'See error'`. */\n seeError?: string;\n /** Defaults to `'Report a bug'`. Only rendered when {@link FailedReplyProps.buildReportUrl} is given. */\n report?: string;\n /** Title of the \"see error\" dialog. Defaults to `'Why {name} could not answer'`. */\n errorTitle?: string;\n /** The report's own title, passed to {@link FailedReplyProps.buildReportUrl}. Defaults to\n * `'\"{name}\" could not answer a comment'`. */\n reportTitle?: string;\n /** The report's own summary, passed to {@link FailedReplyProps.buildReportUrl}. Defaults to\n * `'{name} failed while answering a comment. The error it reported follows.'`. */\n reportSummary?: string;\n /** Close button label on the \"see error\" dialog. Defaults to `'Close'`. */\n close?: string;\n}\n\n/**\n * Props for the line a failed turn leaves behind, standing where the answer would have been. It says\n * plainly that the answer never came, and offers the two things somebody staring at it actually wants:\n * the error itself, and — when {@link buildReportUrl} is wired up — a way to report it without\n * transcribing anything by hand.\n */\nexport interface FailedReplyProps {\n /** The message whose turn ended in failure; its `failureDetail` carries the reason. */\n message: ChatMessage;\n\n /**\n * Builds the href for a \"report this\" link from the failure's details. Omit to hide the report\n * action entirely — this library has no issue tracker of its own to link, so a host opts in by\n * passing its own report URL builder.\n */\n buildReportUrl?: (details: FailedReplyReportDetails) => string;\n\n /** Overrides for the failure line's labels. Unset fields fall back to literal English defaults. */\n labels?: FailedReplyLabels;\n}\n\n/**\n * The line a failed turn leaves behind, standing where the answer would have been. It says plainly\n * that the answer never came, and offers the two things somebody staring at it actually wants: the\n * error itself, and — when the host wires up {@link FailedReplyProps.buildReportUrl} — a way to report\n * it without transcribing anything by hand.\n */\nexport const FailedReply = ({ message, buildReportUrl, labels }: FailedReplyProps) => {\n const [detailShown, setDetailShown] = useState(false);\n const detail = message.failureDetail ?? '';\n const withName = (text: string) => text.replace('{name}', message.authorName);\n\n const reportUrl = buildReportUrl?.({\n title: withName(labels?.reportTitle ?? '\"{name}\" could not answer a comment'),\n summary: withName(\n labels?.reportSummary ??\n '{name} failed while answering a comment. The error it reported follows.',\n ),\n detail,\n // The comment the failed turn was written as is the only identifier the reply carries, and it\n // is what the turn can be traced by on the server.\n commentId: message.id.toString(),\n });\n\n return (\n <div className='chat-failed-reply' aria-live='polite'>\n <div className='chat-failed-reply__line'>\n <FaTriangleExclamation\n className='chat-failed-reply__icon'\n aria-hidden='true'\n />\n <span className='chat-failed-reply__text'>\n {withName(labels?.replyFailed ?? '{name} could not answer')}\n </span>\n </div>\n <div className='chat-failed-reply__actions'>\n <button\n type='button'\n className='chat-failed-reply__action'\n onClick={() => setDetailShown(true)}\n >\n {labels?.seeError ?? 'See error'}\n </button>\n {reportUrl && (\n <a\n className='chat-failed-reply__action'\n href={reportUrl}\n target='_blank'\n rel='noreferrer'\n >\n {labels?.report ?? 'Report a bug'}\n </a>\n )}\n </div>\n {detailShown && (\n <Dialog\n title={withName(labels?.errorTitle ?? 'Why {name} could not answer')}\n width='40rem'\n buttons={DialogButtons.Ok}\n okLabel={labels?.close ?? 'Close'}\n onConfirm={() => setDetailShown(false)}\n onCancel={() => setDetailShown(false)}\n >\n <pre className='chat-failed-reply__detail'>{detail}</pre>\n </Dialog>\n )}\n </div>\n );\n};\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAwEO,MAAM,WAAW,GAAG,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAoB,KAAI;IACjF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AACrD,IAAA,MAAM,MAAM,GAAG,OAAO,CAAC,aAAa,IAAI,EAAE;AAC1C,IAAA,MAAM,QAAQ,GAAG,CAAC,IAAY,KAAK,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC;AAE7E,IAAA,MAAM,SAAS,GAAG,cAAc,GAAG;QAC/B,KAAK,EAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,IAAI,qCAAqC,CAAC;AAC7E,QAAA,OAAO,EAAE,QAAQ,CACb,MAAM,EAAE,aAAa;AACjB,YAAA,yEAAyE,CAChF;QACD,MAAM;AAGN,QAAA,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE;AACnC,KAAA,CAAC;AAEF,IAAA,QACIA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,mBAAmB,eAAW,QAAQ,EAAA,QAAA,EAAA,CACjDA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,yBAAyB,EAAA,Q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AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAmB,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAE7B,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAC;IAEX,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IAEb,kDAAkD;IAClD,SAAS,EAAE,OAAO,CAAC;IAEnB,4FAA4F;IAC5F,IAAI,EAAE,cAAc,CAAC;IAErB,sFAAsF;IACtF,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionCandidate.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/MentionCandidate.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"MentionCandidate.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/MentionCandidate.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ChatAuthorKind } from '../ChatAuthorKind';\n\n/**\n * Somebody who can be mentioned in a conversation — a person or an agent, offered side by side\n * because the whole point is that they are the same kind of team member.\n */\nexport interface MentionCandidate {\n\n /** The identifier, used for the avatar and as the list key. */\n id: string;\n\n /** The name the mention is written with. */\n name: string;\n\n /** Whether an avatar image is stored for them. */\n hasAvatar: boolean;\n\n /** Whether this is a person or an agent, which decides where the avatar is fetched from. */\n kind: ChatAuthorKind;\n\n /** A value that changes when the avatar changes, used to cache-bust the image URL. */\n avatarVersion?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionQuery.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/MentionQuery.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"MentionQuery.js","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/MentionQuery.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG","sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The mention being typed at the caret.\n */\nexport interface MentionQuery {\n\n /** The index of the `@` that opened the mention. */\n start: number;\n\n /** What has been typed after the `@`, which the candidate list is filtered by. */\n text: string;\n}\n"]}
|
|
@@ -23,3 +23,4 @@ export interface MentionSuggestionsProps {
|
|
|
23
23
|
* their avatars.
|
|
24
24
|
*/
|
|
25
25
|
export declare const MentionSuggestions: ({ candidates, highlightedIndex, onSelect, onHighlight, buildAvatarUrl, 'aria-label': ariaLabel, }: MentionSuggestionsProps) => import("react").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=MentionSuggestions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MentionSuggestions.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/MentionSuggestions.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,oBAAoB,EAAE,MAAM,oBAAW,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAoB,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,wEAAwE;IACxE,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAE/B,iEAAiE;IACjE,gBAAgB,EAAE,MAAM,CAAC;IAEzB,kDAAkD;IAClD,QAAQ,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEhD,2FAA2F;IAC3F,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC,oFAAoF;IACpF,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,uGAAuG;IACvG,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,MAAM,CAAC;CAC7D;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,sGAO5B,uBAAuB,gCA6BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionSuggestions.js","sources":["../../../../../Chat/Kit/Mentions/MentionSuggestions.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"MentionSuggestions.js","sources":["../../../../../Chat/Kit/Mentions/MentionSuggestions.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PersonAvatarCircle, type BuildAvatarUrlParams } from '../Avatar';\nimport { ChatAuthorKind } from '../ChatAuthorKind';\nimport type { MentionCandidate } from './MentionCandidate';\n\n/**\n * Props for the list that opens while an `@` mention is being typed, showing people and agents\n * together with their avatars.\n */\nexport interface MentionSuggestionsProps {\n /** The candidates to offer, already filtered by what has been typed. */\n candidates: MentionCandidate[];\n\n /** The index of the highlighted candidate, which Enter picks. */\n highlightedIndex: number;\n\n /** Invoked with the candidate the user picked. */\n onSelect: (candidate: MentionCandidate) => void;\n\n /** Invoked when the pointer moves onto a candidate, so hover and keyboard stay in step. */\n onHighlight: (index: number) => void;\n\n /** Accessible name for the suggestion list. Defaults to `'Mention suggestions'`. */\n 'aria-label'?: string;\n\n /** Builds the avatar image URL. Omit to always show initials — see {@link PersonAvatarCircleProps}. */\n buildAvatarUrl?: (params: BuildAvatarUrlParams) => string;\n}\n\n/**\n * The list that opens while an `@` mention is being typed, showing people and agents together with\n * their avatars.\n */\nexport const MentionSuggestions = ({\n candidates,\n highlightedIndex,\n onSelect,\n onHighlight,\n buildAvatarUrl,\n 'aria-label': ariaLabel = 'Mention suggestions',\n}: MentionSuggestionsProps) => (\n <div className='mention-suggestions' role='listbox' aria-label={ariaLabel}>\n {candidates.map((candidate, index) => (\n <button\n key={candidate.id}\n type='button'\n role='option'\n aria-selected={index === highlightedIndex}\n className={`mention-suggestions__item${index === highlightedIndex ? ' mention-suggestions__item--highlighted' : ''}`}\n // The input must keep focus, so the pointer press never reaches it as a blur.\n onMouseDown={(event) => event.preventDefault()}\n onMouseEnter={() => onHighlight(index)}\n onClick={() => onSelect(candidate)}\n >\n <PersonAvatarCircle\n userId={candidate.id}\n name={candidate.name}\n hasAvatar={candidate.hasAvatar}\n size={20}\n ownerType={\n candidate.kind === ChatAuthorKind.Agent ? 'Agents' : 'Users'\n }\n version={candidate.avatarVersion}\n buildAvatarUrl={buildAvatarUrl}\n />\n <span className='mention-suggestions__name'>{candidate.name}</span>\n </button>\n ))}\n </div>\n);\n"],"names":["_jsx","_jsxs"],"mappings":";;;;AAmCO,MAAM,kBAAkB,GAAG,CAAC,EAC/B,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,YAAY,EAAE,SAAS,GAAG,qBAAqB,GACzB,MACtBA,aAAK,SAAS,EAAC,qBAAqB,EAAC,IAAI,EAAC,SAAS,EAAA,YAAA,EAAa,SAAS,EAAA,QAAA,EACpE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,KAAK,MAC7BC,iBAEI,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,QAAQ,EAAA,eAAA,EACE,KAAK,KAAK,gBAAgB,EACzC,SAAS,EAAE,4BAA4B,KAAK,KAAK,gBAAgB,GAAG,yCAAyC,GAAG,EAAE,EAAE,EAEpH,WAAW,EAAE,CAAC,KAAK,KAAK,KAAK,CAAC,cAAc,EAAE,EAC9C,YAAY,EAAE,MAAM,WAAW,CAAC,KAAK,CAAC,EACtC,OAAO,EAAE,MAAM,QAAQ,CAAC,SAAS,CAAC,EAAA,QAAA,EAAA,CAElCD,GAAA,CAAC,kBAAkB,EAAA,EACf,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,IAAI,EAAE,SAAS,CAAC,IAAI,EACpB,SAAS,EAAE,SAAS,CAAC,SAAS,EAC9B,IAAI,EAAE,EAAE,EACR,SAAS,EACL,SAAS,CAAC,IAAI,KAAK,cAAc,CAAC,KAAK,GAAG,QAAQ,GAAG,OAAO,EAEhE,OAAO,EAAE,SAAS,CAAC,aAAa,EAChC,cAAc,EAAE,cAAc,EAAA,CAChC,EACFA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,2BAA2B,EAAA,QAAA,EAAE,SAAS,CAAC,IAAI,GAAQ,CAAA,EAAA,EArB9D,SAAS,CAAC,EAAE,CAsBZ,CACZ,CAAC,EAAA,CACA;;"}
|
|
@@ -6,3 +6,4 @@ import type { MentionQuery } from './MentionQuery.js';
|
|
|
6
6
|
* @returns The mention being typed, or null when the caret is not inside one.
|
|
7
7
|
*/
|
|
8
8
|
export declare const activeMentionQuery: (text: string, caret: number) => MentionQuery | null;
|
|
9
|
+
//# sourceMappingURL=activeMentionQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activeMentionQuery.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/activeMentionQuery.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAgB,CAAC;AASnD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,SAAU,MAAM,SAAS,MAAM,KAAG,YAAY,GAAG,IAmB/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activeMentionQuery.js","sources":["../../../../../Chat/Kit/Mentions/activeMentionQuery.ts"],"sourcesContent":[null],"names":[],"mappings":"AAUA,MAAM,gBAAgB,GAAG,EAAE;MAQd,kBAAkB,GAAG,CAAC,IAAY,EAAE,KAAa,KAAyB;IACnF,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;IACnC,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC;AACrC,IAAA,IAAI,KAAK,GAAG,CAAC,EAAE;AACX,QAAA,OAAO,IAAI;IACf;AAGA,IAAA,MAAM,SAAS,GAAG,KAAK,KAAK,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;AACtD,IAAA,IAAI,SAAS,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;AAC3C,QAAA,OAAO,IAAI;IACf;IAEA,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;AACrC,IAAA,IAAI,KAAK,CAAC,MAAM,GAAG,gBAAgB,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AACzD,QAAA,OAAO,IAAI;IACf;AAEA,IAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;AACjC;;"}
|
|
1
|
+
{"version":3,"file":"activeMentionQuery.js","sources":["../../../../../Chat/Kit/Mentions/activeMentionQuery.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { MentionQuery } from './MentionQuery';\n\n/**\n * How many characters may follow the `@` before we stop treating it as a mention being typed. Names\n * can contain spaces, so without a ceiling an unfinished `@` would keep the list open over a whole\n * paragraph.\n */\nconst MAX_QUERY_LENGTH = 30;\n\n/**\n * Finds the mention being typed at the caret, if any.\n * @param text The full text of the input.\n * @param caret The caret position within it.\n * @returns The mention being typed, or null when the caret is not inside one.\n */\nexport const activeMentionQuery = (text: string, caret: number): MentionQuery | null => {\n const before = text.slice(0, caret);\n const start = before.lastIndexOf('@');\n if (start < 0) {\n return null;\n }\n\n // A mention starts a word — \"sample.user@example.invalid\" is an address, not a mention of \"example.invalid\".\n const preceding = start === 0 ? '' : before[start - 1];\n if (preceding !== '' && !/\\s/.test(preceding)) {\n return null;\n }\n\n const query = before.slice(start + 1);\n if (query.length > MAX_QUERY_LENGTH || query.includes('\\n')) {\n return null;\n }\n\n return { start, text: query };\n};\n"],"names":[],"mappings":"AAUA,MAAM,gBAAgB,GAAG,EAAE;MAQd,kBAAkB,GAAG,CAAC,IAAY,EAAE,KAAa,KAAyB;IACnF,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC;IACnC,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC;AACrC,IAAA,IAAI,KAAK,GAAG,CAAC,EAAE;AACX,QAAA,OAAO,IAAI;IACf;AAGA,IAAA,MAAM,SAAS,GAAG,KAAK,KAAK,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;AACtD,IAAA,IAAI,SAAS,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;AAC3C,QAAA,OAAO,IAAI;IACf;IAEA,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;AACrC,IAAA,IAAI,KAAK,CAAC,MAAM,GAAG,gBAAgB,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;AACzD,QAAA,OAAO,IAAI;IACf;AAEA,IAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;AACjC;;"}
|