@cratis/components 4.19.0 → 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 +5 -1
- 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/styles.Toolbar.css +9 -17
- package/dist/esm/styles.css +9 -17
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreSlots.d.ts","sourceRoot":"","sources":["../../../renderer/coreSlots.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAe3C,OAAO,KAAK,EACR,qBAAqB,EAExB,MAAM,YAAS,CAAC;AAOjB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;kBARM,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;EA0BhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coreSlots.js","sources":["../../../renderer/coreSlots.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"coreSlots.js","sources":["../../../renderer/coreSlots.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 { ComponentType } from 'react';\nimport { ButtonImplementation } from '../Common/ButtonImplementation';\nimport { CheckboxImplementation } from '../Common/CheckboxImplementation';\nimport { DatePickerInputImplementation } from '../Common/DatePickerInputImplementation';\nimport { IconButtonImplementation } from '../Common/IconButtonImplementation';\nimport { RadioImplementation } from '../Common/RadioImplementation';\nimport { SurfaceImplementation } from '../Common/SurfaceImplementation';\nimport { SwitchImplementation } from '../Common/SwitchImplementation';\nimport { TextAreaImplementation } from '../Common/TextAreaImplementation';\nimport { TextInputImplementation } from '../Common/TextInputImplementation';\nimport { TooltipImplementation } from '../Common/TooltipImplementation';\nimport { TablePaginatorImplementation } from '../DataTables/TablePaginatorImplementation';\nimport { ProgressBarImplementation } from '../Display/ProgressBarImplementation';\nimport { DialogImplementation } from '../Dialogs/DialogImplementation';\nimport { DropdownImplementation } from '../Dropdown/DropdownImplementation';\nimport type {\n unstable_BehaviorMode,\n unstable_SlotMap,\n} from './slots';\n\nconst nativeDeclaration = <Props>(\n mode: unstable_BehaviorMode,\n render: ComponentType<Props>,\n) => Object.freeze({ mode, fidelity: 'native' as const, render });\n\n/**\n * Complete Core slot inventory for renderer ABI proof and conformance tests only.\n *\n * Every facade owns its local Core declaration, so neither the setup-only provider nor the public\n * renderer barrel may import this private all-family table.\n */\nexport const unstable_coreSlots = Object.freeze({\n 'common.button': nativeDeclaration('presentation', ButtonImplementation),\n 'common.iconButton': nativeDeclaration(\n 'presentation',\n IconButtonImplementation,\n ),\n 'common.textInput': nativeDeclaration('presentation', TextInputImplementation),\n 'common.textArea': nativeDeclaration('presentation', TextAreaImplementation),\n 'common.checkbox': nativeDeclaration('presentation', CheckboxImplementation),\n 'common.radio': nativeDeclaration('presentation', RadioImplementation),\n 'common.switch': nativeDeclaration('presentation', SwitchImplementation),\n 'common.progress': nativeDeclaration('presentation', ProgressBarImplementation),\n 'common.surface': nativeDeclaration('presentation', SurfaceImplementation),\n 'common.tooltip': nativeDeclaration('atomic', TooltipImplementation),\n 'dropdown.select': nativeDeclaration('atomic', DropdownImplementation),\n 'dialogs.dialog': nativeDeclaration('atomic', DialogImplementation),\n 'display.datePicker': nativeDeclaration('atomic', DatePickerInputImplementation),\n 'datatables.paginator': nativeDeclaration('atomic', TablePaginatorImplementation),\n}) satisfies unstable_SlotMap;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAuBA,MAAM,iBAAiB,GAAG,CACtB,IAA2B,EAC3B,MAA4B,KAC3B,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAiB,EAAE,MAAM,EAAE,CAAC;AAQ1D,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5C,IAAA,eAAe,EAAE,iBAAiB,CAAC,cAAc,EAAE,oBAAoB,CAAC;AACxE,IAAA,mBAAmB,EAAE,iBAAiB,CAClC,cAAc,EACd,wBAAwB,CAC3B;AACD,IAAA,kBAAkB,EAAE,iBAAiB,CAAC,cAAc,EAAE,uBAAuB,CAAC;AAC9E,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,cAAc,EAAE,sBAAsB,CAAC;AAC5E,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,cAAc,EAAE,sBAAsB,CAAC;AAC5E,IAAA,cAAc,EAAE,iBAAiB,CAAC,cAAc,EAAE,mBAAmB,CAAC;AACtE,IAAA,eAAe,EAAE,iBAAiB,CAAC,cAAc,EAAE,oBAAoB,CAAC;AACxE,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,cAAc,EAAE,yBAAyB,CAAC;AAC/E,IAAA,gBAAgB,EAAE,iBAAiB,CAAC,cAAc,EAAE,qBAAqB,CAAC;AAC1E,IAAA,gBAAgB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,qBAAqB,CAAC;AACpE,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,sBAAsB,CAAC;AACtE,IAAA,gBAAgB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,oBAAoB,CAAC;AACnE,IAAA,oBAAoB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,6BAA6B,CAAC;AAChF,IAAA,sBAAsB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,4BAA4B,CAAC;AACpF,CAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogStack.js","sources":["../../../renderer/dialogStack.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"dialogStack.js","sources":["../../../renderer/dialogStack.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 * Assigns each currently open {@link DialogImplementation} a strictly increasing tier so that\n * multiple simultaneously open dialogs - opened from anywhere in the tree, not necessarily nested\n * as React children of one another - stack in the order they opened instead of colliding on one\n * static z-index. Mirrors the incrementing registry PrimeReact's own ZIndexUtils used to provide,\n * which the removed `useOverlayZIndex` hook depended on before Components 4 moved Dialog off\n * PrimeReact and onto React Aria.\n */\nlet nextDialogTier = 0;\nconst openDialogTiers = new Set<number>();\n\n/** Reserves the next dialog tier. Pair with {@link closeDialogTier} when the dialog closes. */\nexport const openDialogTier = (): number => {\n const tier = nextDialogTier;\n nextDialogTier += 1;\n openDialogTiers.add(tier);\n return tier;\n};\n\n/** Releases a tier reserved by {@link openDialogTier}. Resets the counter once nothing is open. */\nexport const closeDialogTier = (tier: number): void => {\n openDialogTiers.delete(tier);\n if (openDialogTiers.size === 0) nextDialogTier = 0;\n};\n\n/**\n * The custom property every tier is measured from. Tiers resolve to a CSS expression built on this\n * token rather than to a plain number, because an application is expected to retune the token to fit\n * its own stacking order - Cratis Studio, for example, raises it to 10100 so dialogs clear the\n * full-screen overlay its settings pages live in. Resolving a tier to a bare number would discard\n * that override and pin every dialog back to the default band, behind whatever opened it.\n */\nexport const DIALOG_ZINDEX_TOKEN = 'var(--cratis-z-index-dialog)';\n\n/** The default value of {@link DIALOG_ZINDEX_TOKEN}, for applications that do not override it. */\nexport const DIALOG_BASE_ZINDEX = 1100;\n\n/**\n * Gap between two dialog tiers. Large enough that a second-tier dialog, and everything it hosts\n * (its own overlay/filter/tooltip offsets below), stays above every static token band a first-tier\n * dialog's own popovers use (dialog 1100 .. tooltip 1300 today).\n */\nexport const DIALOG_TIER_STEP = 1000;\n\n/** Offset above its owning dialog a dropdown/date-picker popover uses - mirrors the static overlay token gap. */\nexport const OVERLAY_OFFSET = 100;\n\n/** Offset above its owning dialog a column filter menu uses - mirrors the static filter token gap. */\nexport const FILTER_OFFSET = 150;\n\n/** Offset above its owning dialog a tooltip uses - mirrors the static tooltip token gap. */\nexport const TOOLTIP_OFFSET = 200;\n\n/**\n * Resolves the z-index a dialog at the given tier should use, as a CSS expression relative to\n * {@link DIALOG_ZINDEX_TOKEN} so an application's override of that token is preserved. The first\n * tier is the token itself, so a lone dialog stacks exactly where it did before tiering existed.\n */\nexport const dialogZIndexForTier = (tier: number): string =>\n tier === 0 ? DIALOG_ZINDEX_TOKEN : `calc(${DIALOG_ZINDEX_TOKEN} + ${tier * DIALOG_TIER_STEP})`;\n\n/**\n * Stacks an overlay-producing descendant - a dropdown or date-picker popover, a filter menu, a\n * tooltip - the given offset above its owning dialog, keeping it relative to whatever expression\n * that dialog resolved to.\n */\nexport const zIndexAboveDialog = (dialogZIndex: string, offset: number): string =>\n `calc(${dialogZIndex} + ${offset})`;\n"],"names":[],"mappings":"AAWA,IAAI,cAAc,GAAG,CAAC;AACtB,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU;AAGlC,MAAM,cAAc,GAAG,MAAa;IACvC,MAAM,IAAI,GAAG,cAAc;IAC3B,cAAc,IAAI,CAAC;AACnB,IAAA,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC;AACzB,IAAA,OAAO,IAAI;AACf;AAGO,MAAM,eAAe,GAAG,CAAC,IAAY,KAAU;AAClD,IAAA,eAAe,CAAC,MAAM,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EAAyE;IACzE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC5C,iDAAiD;IACjD,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;IAEhD,iFAAiF;IACjF,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;IAEzC;;;;OAIG;IACH,YAAY,UAAU,EAAE,0BAA0B,EAKjD;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sources":["../../../renderer/errors.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"errors.js","sources":["../../../renderer/errors.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 { unstable_SlotId } from './slots';\n\n/**\n * Stable diagnostic codes reserved by the unstable renderer ABI.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport const unstable_adapterErrorCodes = Object.freeze({\n abiMismatch: 'CRATIS-UI-1001',\n missingRequirement: 'CRATIS-UI-1002',\n strictProfileFallback: 'CRATIS-UI-1003',\n missingUpstreamPeer: 'CRATIS-UI-1004',\n missingLicenseKey: 'CRATIS-UI-1005',\n nestedLibraries: 'CRATIS-UI-1006',\n ssrContractViolation: 'CRATIS-UI-1007',\n duplicateResolution: 'CRATIS-UI-1008',\n deprecatedSlot: 'CRATIS-UI-1009',\n} as const);\n\n/**\n * Renderer diagnostic code from `CRATIS-UI-1001` through `CRATIS-UI-1009`.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport type unstable_AdapterErrorCode =\n (typeof unstable_adapterErrorCodes)[keyof typeof unstable_adapterErrorCodes];\n\n/**\n * Actionable renderer diagnostic. A diagnostic carries exactly one remedy so failures cannot leave\n * consumers choosing between conflicting recovery instructions.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport interface unstable_AdapterDiagnostic {\n /** Core-owned diagnostic code. */\n readonly code: unstable_AdapterErrorCode;\n /** Adapter that produced or caused the diagnostic. */\n readonly adapterId: string;\n /** Affected slot when the diagnostic is slot-specific. */\n readonly slotId?: unstable_SlotId;\n /** Human-readable explanation of the failure or degradation. */\n readonly message: string;\n /** The single action a consumer should take to remedy the diagnostic. */\n readonly remedy: string;\n}\n\n/**\n * Typed failure raised when a renderer contract cannot be honored.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport class unstable_AdapterError extends Error {\n /** Stable diagnostic that caused the failure. */\n readonly diagnostic: unstable_AdapterDiagnostic;\n\n /** Stable diagnostic code, repeated for convenient error-boundary inspection. */\n readonly code: unstable_AdapterErrorCode;\n\n /**\n * Initializes a renderer contract failure.\n *\n * @param diagnostic Actionable renderer diagnostic.\n */\n constructor(diagnostic: unstable_AdapterDiagnostic) {\n super(`[${diagnostic.code}] ${diagnostic.message} Remedy: ${diagnostic.remedy}`);\n this.name = 'unstable_AdapterError';\n this.diagnostic = diagnostic;\n this.code = diagnostic.code;\n }\n}\n"],"names":[],"mappings":"AAUO,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC;AACpD,IAAA,WAAW,EAAE,gBAAgB;AAC7B,IAAA,kBAAkB,EAAE,gBAAgB;AACpC,IAAA,qBAAqB,EAAE,gBAAgB;AACvC,IAAA,mBAAmB,EAAE,gBAAgB;AACrC,IAAA,iBAAiB,EAAE,gBAAgB;AACnC,IAAA,eAAe,EAAE,gBAAgB;AACjC,IAAA,oBAAoB,EAAE,gBAAgB;AACtC,IAAA,mBAAmB,EAAE,gBAAgB;AACrC,IAAA,cAAc,EAAE,gBAAgB;AAC1B,CAAA;AAkCJ,MAAO,qBAAsB,SAAQ,KAAK,CAAA;AAEnC,IAAA,UAAU;AAGV,IAAA,IAAI;AAOb,IAAA,WAAA,CAAY,UAAsC,EAAA;AAC9C,QAAA,KAAK,CAAC,CAAA,CAAA,EAAI,UAAU,CAAC,IAAI,CAAA,EAAA,EAAK,UAAU,CAAC,OAAO,YAAY,UAAU,CAAC,MAAM,CAAA,CAAE,CAAC;AAChF,QAAA,IAAI,CAAC,IAAI,GAAG,uBAAuB;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU;AAC5B,QAAA,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI;IAC/B;AACH;;"}
|
|
@@ -58,3 +58,4 @@ export { CRATIS_PRESENTATION_ABI_VERSION, CRATIS_PRESENTATION_PROFILE, cratisPre
|
|
|
58
58
|
export { unstable_useCapability, unstable_useOverlayEnvironment, unstable_useRendererId, } from './RendererContext.js';
|
|
59
59
|
export { unstable_RendererScope, type unstable_RendererScopeProps, } from './RendererScope.js';
|
|
60
60
|
export type { unstable_BehaviorMode, unstable_CratisSlots, unstable_Fidelity, unstable_SlotDeclaration, unstable_SlotId, unstable_SlotMap, } from './slots.js';
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../renderer/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAqB,CAAC;AAC1D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AAC;AAClB,OAAO,EACH,8BAA8B,EAC9B,2BAA2B,EAC3B,wBAAwB,EACxB,KAAK,wCAAwC,EAC7C,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACvC,MAAM,eAAY,CAAC;AACpB,OAAO,EACH,kCAAkC,EAClC,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,GACzC,MAAM,yBAAsB,CAAC;AAC9B,OAAO,EACH,+BAA+B,EAC/B,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,GACnC,MAAM,mBAAgB,CAAC;AACxB,OAAO,EACH,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,GACzB,MAAM,sBAAmB,CAAC;AAC3B,OAAO,EACH,sBAAsB,EACtB,KAAK,2BAA2B,GACnC,MAAM,oBAAiB,CAAC;AACzB,YAAY,EACR,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,GACnB,MAAM,YAAS,CAAC"}
|
|
@@ -95,3 +95,4 @@ export declare const unstable_defineUiLibrary: <const T extends unstable_UiLibra
|
|
|
95
95
|
* @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.
|
|
96
96
|
*/
|
|
97
97
|
export declare const unstable_composeUiLibraries: (...libraries: readonly unstable_UiLibrary[]) => unstable_UiLibrary;
|
|
98
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../renderer/manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAA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AC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACnD,iEAAiE;IACjE,QAAQ,CAAC,YAAY,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACxD,+CAA+C;IAC/C,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC,wCAAwC,CAAC,CAAC;IAC5E,uFAAuF;IACvF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,SAAS,0BAA0B,EAAE,CAAC;CACpE;AAUD;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,GAAI,KAAK,CAAC,CAAC,SAAS,kBAAkB,WAC9D,CAAC,KACX,CAQQ,CAAC;AAEZ;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,iBACtB,SAAS,kBAAkB,EAAE,KAC5C,kBAiBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sources":["../../../renderer/manifest.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"manifest.js","sources":["../../../renderer/manifest.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 { ComponentType, ReactNode } from 'react';\nimport type { unstable_CapabilityId } from './capabilities';\nimport type { unstable_AdapterDiagnostic } from './errors';\nimport type { unstable_SlotId, unstable_SlotMap } from './slots';\n\n/**\n * Open declaration-merging surface for renderer-specific, non-secret setup attestations.\n * Adapter packages add boolean keys only; credentials never belong in this interface.\n */\n// Adapter packages add only non-secret boolean attestations through declaration merging.\n// biome-ignore lint/style/useConsistentTypeDefinitions: declaration merging requires an interface.\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CratisRendererSetupExtensions extends Record<never, never> {}\n\n/**\n * Compatibility declaration-merging surface for renderer setup attestations.\n *\n * @deprecated Merge new adapter keys into {@link CratisRendererSetupExtensions}.\n */\n// biome-ignore lint/style/useConsistentTypeDefinitions: declaration merging requires an interface.\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface unstable_RendererSetupExtensions extends CratisRendererSetupExtensions {}\n\n/** Non-secret application setup attestations supplied to a renderer provider. */\nexport type CratisRendererSetup = Readonly<{\n [\n Key in\n keyof CratisRendererSetupExtensions | keyof unstable_RendererSetupExtensions\n ]?: boolean;\n}>;\n\n/**\n * Compatibility alias for {@link CratisRendererSetup}.\n *\n * @deprecated Use {@link CratisRendererSetup}.\n */\nexport type unstable_RendererSetup = CratisRendererSetup;\n\n/** Props supplied to a stable presentation renderer library provider. */\nexport interface CratisPresentationUiLibraryProviderProps {\n /** Non-secret application setup attestations. Never credentials or license tokens. */\n readonly setup: CratisRendererSetup;\n /** Application content. */\n readonly children: ReactNode;\n}\n\n/**\n * Compatibility alias for {@link CratisPresentationUiLibraryProviderProps}.\n *\n * @deprecated Use {@link CratisPresentationUiLibraryProviderProps}.\n */\nexport type unstable_UiLibraryProviderProps = CratisPresentationUiLibraryProviderProps;\n\n/**\n * Renderer ABI major implemented by this package.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport const unstable_CRATIS_UI_ABI_VERSION = 1;\n\n/**\n * Runtime renderer manifest. Manifests are immutable values and are never passed through the\n * Components configuration deep-merge path.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport interface unstable_UiLibrary {\n /** Stable, package-local renderer identity used for diagnostics and telemetry. */\n readonly id: string;\n /** Human-readable renderer name. */\n readonly displayName: string;\n /** Renderer ABI major implemented by this library. */\n readonly abi: number;\n /** Breadth and ownership level offered by the library. */\n readonly level: 'full' | 'primitive' | 'behavior' | 'portal' | 'theme';\n /** Named contract profile promised by the library. */\n readonly profile: string;\n /**\n * Slots promised by the named profile. When omitted, the library promises its own slot keys.\n */\n readonly profileSlots?: readonly unstable_SlotId[];\n /** Core-owned capabilities honestly supported by the library. */\n readonly capabilities: readonly unstable_CapabilityId[];\n /** Typed partial slot implementation table. */\n readonly slots: unstable_SlotMap;\n /** Optional library-level provider mounted once around the selected renderer scope. */\n readonly Provider?: ComponentType<CratisPresentationUiLibraryProviderProps>;\n /** Optional static diagnostic preflight evaluated by renderer providers and scopes. */\n readonly preflight?: () => readonly unstable_AdapterDiagnostic[];\n}\n\nconst frozenSlots = (slots: unstable_SlotMap): unstable_SlotMap => {\n const copy: Record<string, object> = {};\n for (const [slotId, declaration] of Object.entries(slots)) {\n if (declaration) copy[slotId] = Object.freeze({ ...declaration });\n }\n return Object.freeze(copy) as unstable_SlotMap;\n};\n\n/**\n * Defines a renderer library while preserving its inferred literal type. The helper is\n * side-effect-free and defensively copies/freezes mutable manifest containers; component and\n * callback references remain untouched.\n *\n * @param library Renderer library to define.\n * @returns A frozen defensive copy with the same inferred public type.\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport const unstable_defineUiLibrary = <const T extends unstable_UiLibrary>(\n library: T,\n): T =>\n Object.freeze({\n ...library,\n capabilities: Object.freeze([...library.capabilities]),\n profileSlots: Object.freeze([\n ...(library.profileSlots ?? Object.keys(library.slots)),\n ]),\n slots: frozenSlots(library.slots),\n }) as T;\n\n/**\n * Composes one or more renderer libraries. Slot declarations and metadata use last-library-wins\n * semantics; capabilities are de-duplicated in first-seen order for deterministic diagnostics.\n * The result is defensively copied and frozen through {@link unstable_defineUiLibrary}.\n *\n * @param libraries Libraries in increasing precedence order.\n * @returns One frozen renderer library containing the union of capabilities and slots.\n * @throws {RangeError} When no libraries are supplied.\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport const unstable_composeUiLibraries = (\n ...libraries: readonly unstable_UiLibrary[]\n): unstable_UiLibrary => {\n if (libraries.length === 0) {\n throw new RangeError('At least one UI library is required for composition.');\n }\n\n const last = libraries[libraries.length - 1];\n const capabilities = [\n ...new Set(libraries.flatMap((library) => library.capabilities)),\n ];\n const slots = Object.assign({}, ...libraries.map((library) => library.slots));\n\n return unstable_defineUiLibrary({\n ...last,\n capabilities,\n profileSlots: last.profileSlots ?? (Object.keys(slots) as unstable_SlotId[]),\n slots,\n });\n};\n"],"names":[],"mappings":"AA6DO,MAAM,8BAA8B,GAAG;AAiC9C,MAAM,WAAW,GAAG,CAAC,KAAuB,KAAsB;IAC9D,MAAM,IAAI,GAA2B,EAAE;AACvC,IAAA,KAAK,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACvD,QAAA,IAAI,WAAW;AAAE,YAAA,IAAI,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC;IACrE;AACA,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAqB;AAClD,CAAC;AAWM,MAAM,wBAAwB,GAAG,CACpC,OAAU,KAEV,MAAM,CAAC,MAAM,CAAC;AACV,IAAA,GAAG,OAAO;IACV,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AACtD,IAAA,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC;AACxB,QAAA,IAAI,OAAO,CAAC,YAAY,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KAC1D,CAAC;AACF,IAAA,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC;AACpC,CAAA;MAYQ,2BAA2B,GAAG,CACvC,GAAG,SAAwC,KACvB;AACpB,IAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;AACxB,QAAA,MAAM,IAAI,UAAU,CAAC,sDAAsD,CAAC;IAChF;IAEA,MAAM,IAAI,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;AAC5C,IAAA,MAAM,YAAY,GAAG;AACjB,QAAA,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;KACnE;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;AAE7E,IAAA,OAAO,wBAAwB,CAAC;AAC5B,QAAA,GAAG,IAAI;QACP,YAAY;QACZ,YAAY,EAAE,IAAI,CAAC,YAAY,IAAK,MAAM,CAAC,IAAI,CAAC,KAAK,CAAuB;QAC5E,KAAK;AACR,KAAA,CAAC;AACN;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlayEnvironment.js","sources":["../../../renderer/overlayEnvironment.ts"],"sourcesContent":[null],"names":[],"mappings":"AA0BO,MAAM,kCAAkC,GAC3C,MAAM,CAAC,MAAM,CAAC;AACV,IAAA,YAAY,EAAE,MACV,OAAO,QAAQ,KAAK,WAAW,GAAG,IAAI,GAAG,QAAQ,CAAC,IAAI;AAC7D,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"overlayEnvironment.js","sources":["../../../renderer/overlayEnvironment.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 * Host environment used by overlay implementations to obtain their portal container.\n * `null` means no container is currently available; callers must defer rather than retarget.\n *\n */\nexport interface CratisOverlayEnvironment {\n /** Resolves the current overlay container without requiring browser globals during import. */\n getContainer(): HTMLElement | null;\n}\n\n/**\n * Compatibility alias for {@link CratisOverlayEnvironment}.\n *\n * @deprecated Use {@link CratisOverlayEnvironment}.\n */\nexport type unstable_CratisOverlayEnvironment = CratisOverlayEnvironment;\n\n/**\n * Default browser overlay environment. The module is SSR-safe: `document` is inspected only when\n * `getContainer()` is invoked, never while this module is initialized.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport const unstable_defaultOverlayEnvironment: unstable_CratisOverlayEnvironment =\n Object.freeze({\n getContainer: (): HTMLElement | null =>\n typeof document === 'undefined' ? null : document.body,\n });\n"],"names":[],"mappings":"AA0BO,MAAM,kCAAkC,GAC3C,MAAM,CAAC,MAAM,CAAC;AACV,IAAA,YAAY,EAAE,MACV,OAAO,QAAQ,KAAK,WAAW,GAAG,IAAI,GAAG,QAAQ,CAAC,IAAI;AAC7D,CAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../../renderer/presentation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,eAAY,CAAC;AAE3E,8EAA8E;AAC9E,eAAO,MAAM,2BAA2B,EAAG,wBAAiC,CAAC;AAE7E,8DAA8D;AAC9D,eAAO,MAAM,+BAA+B,EAAG,CAAU,CAAC;AAE1D,2EAA2E;AAC3E,eAAO,MAAM,yBAAyB,iLAU3B,CA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AW,CACd,yBAAyB,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK;QACtC,MAAM;QACN,MAAM,CAAC,MAAM,CAAC;YACV,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI;YAChC,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ;YACxC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM;SACvC,CAAC;KACL,CAAC,CACL,CACyB;IAE9B,OAAO,MAAM,CAAC,MAAM,CAAC;QACjB,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,OAAO,EAAE,OAAO,CAAC,OAAO;AACxB,QAAA,YAAY,EAAE,yBAAyB;AACvC,QAAA,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC;YACxB,GAAG,OAAO,CAAC,YAAY;SAC1B,CAAmC;QACpC,KAAK;QACL,QAAQ,EAAE,OAAO,CAAC,QAAQ;AAC7B,KAAA,CAAC;AACN;;"}
|
|
1
|
+
{"version":3,"file":"presentation.js","sources":["../../../renderer/presentation.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 { ComponentType } from 'react';\nimport type { ButtonProps } from '../Common/Button';\nimport type { CheckboxProps } from '../Common/Checkbox';\nimport type { IconButtonProps } from '../Common/IconButton';\nimport type { RadioProps } from '../Common/Radio';\nimport type { SurfaceProps } from '../Common/Surface';\nimport type { SwitchProps } from '../Common/Switch';\nimport type { TextAreaProps } from '../Common/TextArea';\nimport type { TextInputProps } from '../Common/TextInput';\nimport type { ProgressBarProps } from '../Display/ProgressBar';\nimport type { CratisPresentationUiLibraryProviderProps } from './manifest';\n\n/** Stable renderer profile implemented by certified presentation adapters. */\nexport const CRATIS_PRESENTATION_PROFILE = 'stable-presentation/v1' as const;\n\n/** Renderer ABI major for the stable presentation profile. */\nexport const CRATIS_PRESENTATION_ABI_VERSION = 1 as const;\n\n/** Immutable, canonical slot order for the stable presentation profile. */\nexport const cratisPresentationSlotIds = Object.freeze([\n 'common.button',\n 'common.iconButton',\n 'common.textInput',\n 'common.textArea',\n 'common.checkbox',\n 'common.radio',\n 'common.switch',\n 'common.progress',\n 'common.surface',\n] as const);\n\n/** Identifier of one stable presentation slot. */\nexport type CratisPresentationSlotId = (typeof cratisPresentationSlotIds)[number];\n\n/** Exact public component prop and ref contracts covered by the stable presentation profile. */\nexport interface CratisPresentationSlots {\n /** Cratis button presentation contract, including native button refs and form behavior. */\n readonly 'common.button': ButtonProps;\n /** Accessible icon-only button contract with native button ownership. */\n readonly 'common.iconButton': IconButtonProps;\n /** Native text-input contract with semantic value-first change events. */\n readonly 'common.textInput': TextInputProps;\n /** Native multiline text-input contract with semantic value-first change events. */\n readonly 'common.textArea': TextAreaProps;\n /** Native checkbox contract with checked state, form participation, and input refs. */\n readonly 'common.checkbox': CheckboxProps;\n /** Native radio-option contract with selection state, form participation, and input refs. */\n readonly 'common.radio': RadioProps;\n /** Boolean switch contract preserving switch semantics and input ownership. */\n readonly 'common.switch': SwitchProps;\n /** Determinate or indeterminate progress presentation contract. */\n readonly 'common.progress': ProgressBarProps;\n /** Non-interactive semantic surface and native-element presentation contract. */\n readonly 'common.surface': SurfaceProps;\n}\n\n/** One stable, presentation-owned renderer slot declaration. */\nexport interface CratisPresentationSlotDeclaration<\n SlotId extends CratisPresentationSlotId,\n> {\n /** Stable presentation slots always preserve Components behavior ownership. */\n readonly mode: 'presentation';\n /** Unsupported declarations cannot claim the stable profile. */\n readonly fidelity: 'native' | 'emulated';\n /** Component implementing the slot's exact public props and ref contract. */\n readonly render: ComponentType<CratisPresentationSlots[SlotId]>;\n}\n\n/** Complete implementation table required by the stable presentation profile. */\nexport type CratisPresentationSlotMap = {\n readonly [\n SlotId in CratisPresentationSlotId\n ]: CratisPresentationSlotDeclaration<SlotId>;\n};\n\n/** Capabilities whose meaning is stable for the bounded presentation profile. */\nexport type CratisPresentationCapabilityId =\n | 'slot.render'\n | 'parts.passthrough'\n | 'ssr.staticRender'\n | 'rtl'\n | 'forcedColors'\n | 'motion.reduced';\n\ntype CratisPresentationOptionalCapabilityId = Exclude<\n CratisPresentationCapabilityId,\n 'slot.render' | 'parts.passthrough' | 'ssr.staticRender'\n>;\n\n/** Required presentation capabilities followed by optional stable evidence capabilities. */\nexport type CratisPresentationCapabilities = readonly [\n 'slot.render',\n 'parts.passthrough',\n 'ssr.staticRender',\n ...CratisPresentationOptionalCapabilityId[],\n];\n\n/** Immutable manifest for one implementation of the stable presentation profile. */\nexport interface CratisPresentationUiLibrary {\n /** Stable, package-local renderer identity used for diagnostics and telemetry. */\n readonly id: string;\n /** Human-readable renderer name. */\n readonly displayName: string;\n /** Stable presentation renderer ABI major. */\n readonly abi: typeof CRATIS_PRESENTATION_ABI_VERSION;\n /** The bounded profile is a primitive presentation adapter. */\n readonly level: 'primitive';\n /** Exact stable presentation profile identifier. */\n readonly profile: typeof CRATIS_PRESENTATION_PROFILE;\n /** Canonical immutable list of all nine stable slots. */\n readonly profileSlots: typeof cratisPresentationSlotIds;\n /** Required presentation capabilities followed by any optional stable capabilities. */\n readonly capabilities: CratisPresentationCapabilities;\n /** Complete nine-slot presentation implementation. */\n readonly slots: CratisPresentationSlotMap;\n /** Optional provider mounted once around the selected renderer scope. */\n readonly Provider?: ComponentType<CratisPresentationUiLibraryProviderProps>;\n}\n\nconst requiredCapabilityIds = [\n 'slot.render',\n 'parts.passthrough',\n 'ssr.staticRender',\n] as const;\n\nconst stableCapabilityIds = new Set<CratisPresentationCapabilityId>([\n ...requiredCapabilityIds,\n 'rtl',\n 'forcedColors',\n 'motion.reduced',\n]);\n\nconst invalidPresentationLibrary = (reason: string): never => {\n throw new TypeError(`Invalid stable presentation UI library: ${reason}.`);\n};\n\nconst hasCanonicalProfileSlots = (profileSlots: readonly unknown[]): boolean =>\n profileSlots.length === cratisPresentationSlotIds.length &&\n profileSlots.every((slotId, index) => slotId === cratisPresentationSlotIds[index]);\n\n/**\n * Defines and freezes a complete implementation of the stable nine-slot presentation profile.\n * Runtime validation protects JavaScript callers from claiming a profile they do not implement.\n *\n * @param library Stable presentation library declaration.\n * @returns A defensive, deeply frozen manifest copy.\n */\nexport const definePresentationUiLibrary = (\n library: CratisPresentationUiLibrary,\n): CratisPresentationUiLibrary => {\n if (library === null || typeof library !== 'object') {\n invalidPresentationLibrary('manifest must be an object');\n }\n if (\n typeof library.id !== 'string' ||\n library.id.length > 128 ||\n !/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u.test(library.id)\n ) {\n invalidPresentationLibrary('id must be a valid package-local renderer identity');\n }\n if (\n typeof library.displayName !== 'string' ||\n library.displayName.trim().length === 0 ||\n library.displayName.length > 128\n ) {\n invalidPresentationLibrary(\n 'displayName must contain between 1 and 128 characters',\n );\n }\n if (library.Provider !== undefined && typeof library.Provider !== 'function') {\n invalidPresentationLibrary('Provider must be a React component when supplied');\n }\n if (library.profile !== CRATIS_PRESENTATION_PROFILE) {\n invalidPresentationLibrary(`profile must be '${CRATIS_PRESENTATION_PROFILE}'`);\n }\n if (library.abi !== CRATIS_PRESENTATION_ABI_VERSION) {\n invalidPresentationLibrary(`ABI must be ${CRATIS_PRESENTATION_ABI_VERSION}`);\n }\n if (library.level !== 'primitive') {\n invalidPresentationLibrary(\"level must be 'primitive'\");\n }\n if (\n !Array.isArray(library.profileSlots) ||\n !hasCanonicalProfileSlots(library.profileSlots)\n ) {\n invalidPresentationLibrary(\n 'profileSlots must be the canonical nine-slot profile',\n );\n }\n if (!library.slots || typeof library.slots !== 'object') {\n invalidPresentationLibrary('slots must be an object');\n }\n\n const slotIds = Object.keys(library.slots);\n if (\n slotIds.length !== cratisPresentationSlotIds.length ||\n cratisPresentationSlotIds.some((slotId) => !slotIds.includes(slotId))\n ) {\n invalidPresentationLibrary(\n 'slots must contain exactly the nine stable presentation slots',\n );\n }\n\n for (const slotId of cratisPresentationSlotIds) {\n // SAFETY: the canonical slot list indexes the complete stable map; the wider record view\n // exists only so runtime JavaScript callers can be checked before their value is frozen.\n const declaration = library.slots[slotId] as unknown as\n Record<string, unknown> | undefined;\n if (!declaration) {\n throw new TypeError(\n `Invalid stable presentation UI library: slot '${slotId}' must provide a declaration.`,\n );\n }\n if (declaration.mode !== 'presentation') {\n invalidPresentationLibrary(`slot '${slotId}' must use presentation mode`);\n }\n if (declaration.fidelity !== 'native' && declaration.fidelity !== 'emulated') {\n invalidPresentationLibrary(\n `slot '${slotId}' must use native or emulated fidelity`,\n );\n }\n if (\n declaration.render === null ||\n (typeof declaration.render !== 'function' &&\n typeof declaration.render !== 'object')\n ) {\n invalidPresentationLibrary(`slot '${slotId}' must provide a component`);\n }\n }\n\n if (\n !Array.isArray(library.capabilities) ||\n library.capabilities.some((capability) => !stableCapabilityIds.has(capability))\n ) {\n invalidPresentationLibrary(\n 'capabilities must stay within the stable presentation subset',\n );\n }\n if (\n requiredCapabilityIds.some(\n (capability, index) => library.capabilities[index] !== capability,\n )\n ) {\n invalidPresentationLibrary(\n 'capabilities must begin with slot.render, parts.passthrough, and ssr.staticRender',\n );\n }\n if (new Set(library.capabilities).size !== library.capabilities.length) {\n invalidPresentationLibrary('capabilities must not contain duplicates');\n }\n\n const slots = Object.freeze(\n Object.fromEntries(\n cratisPresentationSlotIds.map((slotId) => [\n slotId,\n Object.freeze({\n mode: library.slots[slotId].mode,\n fidelity: library.slots[slotId].fidelity,\n render: library.slots[slotId].render,\n }),\n ]),\n ),\n ) as CratisPresentationSlotMap;\n\n return Object.freeze({\n id: library.id,\n displayName: library.displayName,\n abi: library.abi,\n level: library.level,\n profile: library.profile,\n profileSlots: cratisPresentationSlotIds,\n capabilities: Object.freeze([\n ...library.capabilities,\n ]) as CratisPresentationCapabilities,\n slots,\n Provider: library.Provider,\n });\n};\n"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AC,CAAC,IAAI,KAAK,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE;QACpE,0BAA0B,CAAC,0CAA0C,CAAC;IAC1E;AAEA,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CACvB,MAAM,CAAC,WAAW,CACd,yBAAyB,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK;QACtC,MAAM;QACN,MAAM,CAAC,MAAM,CAAC;YACV,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI;YAChC,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ;YACxC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM;SACvC,CAAC;KACL,CAAC,CACL,CACyB;IAE9B,OAAO,MAAM,CAAC,MAAM,CAAC;QACjB,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,OAAO,EAAE,OAAO,CAAC,OAAO;AACxB,QAAA,YAAY,EAAE,yBAAyB;AACvC,QAAA,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC;YACxB,GAAG,OAAO,CAAC,YAAY;SAC1B,CAAmC;QACpC,KAAK;QACL,QAAQ,EAAE,OAAO,CAAC,QAAQ;AAC7B,KAAA,CAAC;AACN;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderSlot.js","sources":["../../../renderer/renderSlot.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"renderSlot.js","sources":["../../../renderer/renderSlot.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 {\n createElement,\n type ComponentType,\n type ForwardedRef,\n type ReactElement,\n type RefAttributes,\n} from 'react';\n\ninterface RenderDeclaration<Props> {\n readonly render: ComponentType<Props>;\n}\n\nexport function renderSlot<Props extends object>(\n declaration: RenderDeclaration<Props>,\n props: Props,\n): ReactElement;\nexport function renderSlot<Props extends object, Element>(\n declaration: RenderDeclaration<Props>,\n props: Props,\n ref: ForwardedRef<Element>,\n): ReactElement;\nexport function renderSlot<Props extends object, Element>(\n declaration: RenderDeclaration<Props>,\n props: Props,\n ref?: ForwardedRef<Element>,\n): ReactElement {\n if (arguments.length < 3) return createElement(declaration.render, props);\n\n // SAFETY: Slot declarations intentionally expose exact public props without widening every\n // adapter with Core ref types. Facades alone bridge their already-public forwarded ref to the\n // selected implementation, and conformance tests prove that it lands on the real native root.\n const RefCapableSlot = declaration.render as ComponentType<\n Props & RefAttributes<Element>\n >;\n const slotProps = { ...props, ref } as Props & RefAttributes<Element>;\n return createElement(RefCapableSlot, slotProps);\n}\n"],"names":[],"mappings":";;SAwBgB,UAAU,CACtB,WAAqC,EACrC,KAAY,EACZ,GAA2B,EAAA;AAE3B,IAAA,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,aAAa,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC;AAKzE,IAAA,MAAM,cAAc,GAAG,WAAW,CAAC,MAElC;IACD,MAAM,SAAS,GAAG,EAAE,GAAG,KAAK,EAAE,GAAG,EAAoC;AACrE,IAAA,OAAO,aAAa,CAAC,cAAc,EAAE,SAAS,CAAC;AACnD;;"}
|
|
@@ -35,3 +35,4 @@ export declare const unstable_resolveSlot: <K extends unstable_SlotId>(slotId: K
|
|
|
35
35
|
export declare const unstable_diagnosticKey: (diagnostic: unstable_AdapterDiagnostic) => string;
|
|
36
36
|
/** Emits one actionable renderer diagnostic without exposing manifest contents. */
|
|
37
37
|
export declare const unstable_logDiagnostic: (diagnostic: unstable_AdapterDiagnostic) => void;
|
|
38
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","source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,IAAA,IAAI,WAAW;AAAE,QAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE;IAEhE,OAAO;AACH,QAAA,WAAW,EACP,oBAAoB;YACnB,SAAS,CAAC,MAAM,CAA6C;AAClE,QAAA,gBAAgB,EAAE,IAAI;KACzB;AACL;MAGa,sBAAsB,GAAG,CAAC,UAAsC,KACzE;AACI,IAAA,UAAU,CAAC,IAAI;AACf,IAAA,UAAU,CAAC,SAAS;IACpB,UAAU,CAAC,MAAM,IAAI,EAAE;AACvB,IAAA,UAAU,CAAC,OAAO;AACrB,CAAA,CAAC,IAAI,CAAC,GAAG;AAGP,MAAM,sBAAsB,GAAG,CAAC,UAAsC,KAAU;AACnF,IAAA,OAAO,CAAC,KAAK,CACT,CAAA,CAAA,EAAI,UAAU,CAAC,IAAI,CAAA,EAAA,EAAK,UAAU,CAAC,OAAO,CAAA,SAAA,EAAY,UAAU,CAAC,MAAM,CAAA,CAAE,CAC5E;AACL;;"}
|
|
1
|
+
{"version":3,"file":"resolve.js","sources":["../../../renderer/resolve.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 { unstable_AdapterDiagnostic } from './errors';\nimport { unstable_adapterErrorCodes } from './errors';\nimport {\n unstable_composeUiLibraries,\n unstable_CRATIS_UI_ABI_VERSION,\n type unstable_UiLibrary,\n} from './manifest';\nimport type {\n unstable_SlotDeclaration,\n unstable_SlotId,\n unstable_SlotMap,\n} from './slots';\n\nconst knownSlots = new Set<unstable_SlotId>([\n 'common.button',\n 'common.iconButton',\n 'common.textInput',\n 'common.textArea',\n 'common.checkbox',\n 'common.radio',\n 'common.switch',\n 'common.progress',\n 'common.surface',\n 'common.tooltip',\n 'dropdown.select',\n 'dialogs.dialog',\n 'display.datePicker',\n 'datatables.paginator',\n]);\n\n/** Internal immutable renderer layer used by context resolution. */\nexport interface unstable_RendererLayer {\n readonly library: unstable_UiLibrary;\n readonly slots: unstable_SlotMap;\n readonly only?: ReadonlySet<unstable_SlotId>;\n}\n\n/** Identity-preserving normalization result for a provider or scope library input. */\nexport interface unstable_ResolvedLibraryInput {\n readonly library?: unstable_UiLibrary;\n readonly references: readonly unstable_UiLibrary[];\n}\n\n/** Empty D2 Core fallback table. Slice E can inject its built-in table without a registry. */\nexport const unstable_emptyCoreRendererSlots: unstable_SlotMap = Object.freeze({});\n\n/** Returns whether a value is one of the Core-owned slot identifiers. */\nexport const unstable_isKnownSlot = (value: unknown): value is unstable_SlotId =>\n typeof value === 'string' && knownSlots.has(value as unstable_SlotId);\n\n/** Normalizes one library or an ordered last-wins composition without deep merging it. */\nexport const unstable_resolveLibraryInput = (\n input: unstable_UiLibrary | readonly unstable_UiLibrary[] | undefined,\n): unstable_ResolvedLibraryInput => {\n if (!input) return Object.freeze({ references: Object.freeze([]) });\n\n const references = Object.freeze(Array.isArray(input) ? [...input] : [input]);\n if (references.length === 0) {\n return Object.freeze({ references });\n }\n\n return Object.freeze({\n library:\n references.length === 1\n ? references[0]\n : unstable_composeUiLibraries(...references),\n references,\n });\n};\n\n/** Creates one immutable slot lookup snapshot for a manifest and optional scope filter. */\nexport const unstable_createRendererLayer = (\n library: unstable_UiLibrary,\n only?: readonly unstable_SlotId[],\n): unstable_RendererLayer =>\n Object.freeze({\n library,\n slots: Object.freeze({ ...library.slots }),\n only: only ? new Set(only) : undefined,\n });\n\nconst missingRequirement = (\n library: unstable_UiLibrary,\n message: string,\n remedy: string,\n slotId?: unstable_SlotId,\n): unstable_AdapterDiagnostic => ({\n code: unstable_adapterErrorCodes.missingRequirement,\n adapterId: library.id,\n slotId,\n message,\n remedy,\n});\n\n/** Runs ABI, profile, capability, and adapter preflight validation. */\nexport const unstable_validateUiLibrary = (\n library: unstable_UiLibrary,\n): readonly unstable_AdapterDiagnostic[] => {\n const diagnostics: unstable_AdapterDiagnostic[] = [];\n\n if (library.abi !== unstable_CRATIS_UI_ABI_VERSION) {\n diagnostics.push({\n code: unstable_adapterErrorCodes.abiMismatch,\n adapterId: library.id,\n message: `Renderer ABI ${library.abi} does not match Core ABI ${unstable_CRATIS_UI_ABI_VERSION}.`,\n remedy: `Install a renderer that targets ABI ${unstable_CRATIS_UI_ABI_VERSION}.`,\n });\n }\n\n const profileSlots = library.profileSlots ?? Object.keys(library.slots);\n if (profileSlots.length > 0 && !library.capabilities.includes('slot.render')) {\n diagnostics.push(\n missingRequirement(\n library,\n `Profile '${library.profile}' promises slots without the 'slot.render' capability.`,\n \"Declare 'slot.render' only after the adapter can render every promised slot.\",\n ),\n );\n }\n\n for (const profileSlot of profileSlots) {\n if (!unstable_isKnownSlot(profileSlot)) {\n diagnostics.push(\n missingRequirement(\n library,\n `Profile '${library.profile}' promises unknown slot '${String(profileSlot)}'.`,\n 'Remove the unknown slot or install a Core version that declares it.',\n ),\n );\n continue;\n }\n\n const declaration = library.slots[profileSlot];\n if (!declaration || declaration.fidelity === 'unsupported') {\n diagnostics.push(\n missingRequirement(\n library,\n `Profile '${library.profile}' does not support promised slot '${profileSlot}'.`,\n `Provide a supported '${profileSlot}' declaration or remove it from profileSlots.`,\n profileSlot,\n ),\n );\n }\n }\n\n if (library.preflight) {\n try {\n diagnostics.push(...library.preflight());\n } catch (error: unknown) {\n diagnostics.push({\n code: unstable_adapterErrorCodes.missingUpstreamPeer,\n adapterId: library.id,\n message: `Renderer preflight failed: ${error instanceof Error ? error.message : String(error)}.`,\n remedy: 'Correct the renderer installation so its preflight can complete.',\n });\n }\n }\n\n return Object.freeze([...diagnostics]);\n};\n\n/** Compares normalized library identities without comparing or cloning manifest contents. */\nexport const unstable_sameLibraryReferences = (\n left: readonly unstable_UiLibrary[],\n right: readonly unstable_UiLibrary[],\n): boolean =>\n left.length === right.length &&\n left.every((library, index) => library === right[index]);\n\n/** Flattens outer-to-inner layers into one frozen, last-wins lookup table. */\nexport const unstable_createResolvedSlotTable = (\n layers: readonly unstable_RendererLayer[],\n): unstable_SlotMap => {\n const resolved: Record<string, object> = {};\n for (const layer of layers) {\n for (const [slotId, declaration] of Object.entries(layer.slots)) {\n if (\n !declaration ||\n declaration.fidelity === 'unsupported' ||\n (layer.only && !layer.only.has(slotId as unstable_SlotId))\n )\n continue;\n resolved[slotId] = declaration;\n }\n }\n return Object.freeze(resolved) as unstable_SlotMap;\n};\n\n/** Resolves a slot through external layers, a facade-local Core declaration, then Core context. */\nexport const unstable_resolveSlot = <K extends unstable_SlotId>(\n slotId: K,\n slots: unstable_SlotMap,\n localCoreDeclaration: unstable_SlotDeclaration<K> | undefined,\n coreSlots: unstable_SlotMap,\n): { declaration?: unstable_SlotDeclaration<K>; usedCoreFallback: boolean } => {\n const declaration = slots[slotId] as unstable_SlotDeclaration<K> | undefined;\n if (declaration) return { declaration, usedCoreFallback: false };\n\n return {\n declaration:\n localCoreDeclaration ??\n (coreSlots[slotId] as unstable_SlotDeclaration<K> | undefined),\n usedCoreFallback: true,\n };\n};\n\n/** Stable log key used to de-duplicate diagnostics within one provider identity. */\nexport const unstable_diagnosticKey = (diagnostic: unstable_AdapterDiagnostic): string =>\n [\n diagnostic.code,\n diagnostic.adapterId,\n diagnostic.slotId ?? '',\n diagnostic.message,\n ].join('|');\n\n/** Emits one actionable renderer diagnostic without exposing manifest contents. */\nexport const unstable_logDiagnostic = (diagnostic: unstable_AdapterDiagnostic): void => {\n console.error(\n `[${diagnostic.code}] ${diagnostic.message} Remedy: ${diagnostic.remedy}`,\n );\n};\n"],"names":[],"mappings":";;;AAgBA,MAAM,UAAU,GAAG,IAAI,GAAG,CAAkB;IACxC,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,sBAAsB;AACzB,CAAA,CAAC;AAgBK,MAAM,+BAA+B,GAAqB,MAAM,CAAC,MAAM,CAAC,EAAE;MAGp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AK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAyB,CAAC,CAAC;gBAE1D;AACJ,YAAA,QAAQ,CAAC,MAAM,CAAC,GAAG,WAAW;QAClC;IACJ;AACA,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAqB;AACtD;AAGO,MAAM,oBAAoB,GAAG,CAChC,MAAS,EACT,KAAuB,EACvB,oBAA6D,EAC7D,SAA2B,KAC+C;AAC1E,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAA4C;AAC5E,IAAA,IAAI,WAAW;AAAE,QAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE;IAEhE,OAAO;AACH,QAAA,WAAW,EACP,oBAAoB;YACnB,SAAS,CAAC,MAAM,CAA6C;AAClE,QAAA,gBAAgB,EAAE,IAAI;KACzB;AACL;MAGa,sBAAsB,GAAG,CAAC,UAAsC,KACzE;AACI,IAAA,UAAU,CAAC,IAAI;AACf,IAAA,UAAU,CAAC,SAAS;IACpB,UAAU,CAAC,MAAM,IAAI,EAAE;AACvB,IAAA,UAAU,CAAC,OAAO;AACrB,CAAA,CAAC,IAAI,CAAC,GAAG;AAGP,MAAM,sBAAsB,GAAG,CAAC,UAAsC,KAAU;AACnF,IAAA,OAAO,CAAC,KAAK,CACT,CAAA,CAAA,EAAI,UAAU,CAAC,IAAI,CAAA,EAAA,EAAK,UAAU,CAAC,OAAO,CAAA,SAAA,EAAY,UAAU,CAAC,MAAM,CAAA,CAAE,CAC5E;AACL;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../../../renderer/slots.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../../../renderer/slots.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 { ComponentType } from 'react';\n\n/**\n * Open renderer slot table. Core declarations are attached by the renderer barrel at the subpath\n * boundary so the setup-only package root can name `unstable_UiLibrary` without resolving\n * every component contract and optional peer. Adapters may declaration-merge private slots here.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\n// Core slot members are supplied by the renderer subpath barrel's type augmentation.\n// biome-ignore lint/style/useConsistentTypeDefinitions: declaration merging requires an interface.\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface unstable_CratisSlots extends Record<never, never> {}\n\n/**\n * Identifier of a declared renderer slot.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport type unstable_SlotId = keyof unstable_CratisSlots;\n\n/**\n * Ownership mode for a renderer slot. Presentation mode preserves Core behavior; atomic mode gives\n * the adapter ownership of the complete interaction.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport type unstable_BehaviorMode = 'presentation' | 'atomic';\n\n/**\n * Fidelity with which an adapter implements a slot.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport type unstable_Fidelity = 'native' | 'emulated' | 'unsupported';\n\n/**\n * One typed renderer implementation and its behavior/fidelity declaration.\n *\n * @typeParam K Slot implemented by the declaration.\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport interface unstable_SlotDeclaration<K extends unstable_SlotId> {\n /** Which layer owns the slot's interaction behavior. */\n readonly mode: unstable_BehaviorMode;\n /** How faithfully the adapter satisfies the Core slot contract. */\n readonly fidelity: unstable_Fidelity;\n /** React component implementing the slot's exact public props. */\n readonly render: ComponentType<unstable_CratisSlots[K]>;\n}\n\n/**\n * Partial renderer slot table. A library may implement only the slots it honestly supports.\n *\n * @unstable Adapter-author contract. Expect changes until renderer conformance gates promote it.\n */\nexport type unstable_SlotMap = {\n readonly [K in unstable_SlotId]?: unstable_SlotDeclaration<K>;\n};\n"]}
|
|
@@ -1247,6 +1247,12 @@
|
|
|
1247
1247
|
color: var(--cratis-action-text);
|
|
1248
1248
|
}
|
|
1249
1249
|
|
|
1250
|
+
.toolbar-button :where([data-cratis-part='icon']:not([hidden])) {
|
|
1251
|
+
display: flex;
|
|
1252
|
+
align-items: center;
|
|
1253
|
+
line-height: 1;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1250
1256
|
.toolbar-button--draggable {
|
|
1251
1257
|
cursor: grab;
|
|
1252
1258
|
}
|
|
@@ -1281,7 +1287,8 @@
|
|
|
1281
1287
|
height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
|
1282
1288
|
}
|
|
1283
1289
|
|
|
1284
|
-
.toolbar-section--transitioning
|
|
1290
|
+
.toolbar-section--transitioning,
|
|
1291
|
+
.toolbar-slot-section--transitioning {
|
|
1285
1292
|
overflow: hidden;
|
|
1286
1293
|
}
|
|
1287
1294
|
|
|
@@ -1396,18 +1403,7 @@
|
|
|
1396
1403
|
pointer-events: auto;
|
|
1397
1404
|
}
|
|
1398
1405
|
|
|
1399
|
-
/*
|
|
1400
|
-
* Reveal complete. The clip-path did its job — the wipe cannot run without it,
|
|
1401
|
-
* because `clip-path: none` is a discrete value that snaps instead of
|
|
1402
|
-
* interpolating. But clip-path also clips every descendant, so leaving a zero
|
|
1403
|
-
* inset in place slices off the hover tooltips of the outermost buttons, which
|
|
1404
|
-
* paint outside the panel by design.
|
|
1405
|
-
*
|
|
1406
|
-
* ToolbarFanOutItem therefore adds this class once the reveal transition ends,
|
|
1407
|
-
* and takes it off again (restoring an interpolable inset) before the close
|
|
1408
|
-
* transition starts — so both wipes keep their exact timing and a settled panel
|
|
1409
|
-
* clips nothing.
|
|
1410
|
-
*/
|
|
1406
|
+
/* A settled panel must stop clipping tooltips; restore the inset before the close wipe. */
|
|
1411
1407
|
.toolbar-fanout-panel--settled {
|
|
1412
1408
|
clip-path: none;
|
|
1413
1409
|
}
|
|
@@ -1501,10 +1497,6 @@
|
|
|
1501
1497
|
|
|
1502
1498
|
/* ToolbarGroup slots use the section transition above. */
|
|
1503
1499
|
|
|
1504
|
-
.toolbar-slot-section--transitioning {
|
|
1505
|
-
overflow: hidden;
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
1500
|
@keyframes toolbar-slot-fade-in {
|
|
1509
1501
|
from {
|
|
1510
1502
|
opacity: 0;
|
package/dist/esm/styles.css
CHANGED
|
@@ -7470,6 +7470,12 @@
|
|
|
7470
7470
|
color: var(--cratis-action-text);
|
|
7471
7471
|
}
|
|
7472
7472
|
|
|
7473
|
+
.toolbar-button :where([data-cratis-part='icon']:not([hidden])) {
|
|
7474
|
+
display: flex;
|
|
7475
|
+
align-items: center;
|
|
7476
|
+
line-height: 1;
|
|
7477
|
+
}
|
|
7478
|
+
|
|
7473
7479
|
.toolbar-button--draggable {
|
|
7474
7480
|
cursor: grab;
|
|
7475
7481
|
}
|
|
@@ -7504,7 +7510,8 @@
|
|
|
7504
7510
|
height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
|
7505
7511
|
}
|
|
7506
7512
|
|
|
7507
|
-
.toolbar-section--transitioning
|
|
7513
|
+
.toolbar-section--transitioning,
|
|
7514
|
+
.toolbar-slot-section--transitioning {
|
|
7508
7515
|
overflow: hidden;
|
|
7509
7516
|
}
|
|
7510
7517
|
|
|
@@ -7619,18 +7626,7 @@
|
|
|
7619
7626
|
pointer-events: auto;
|
|
7620
7627
|
}
|
|
7621
7628
|
|
|
7622
|
-
/*
|
|
7623
|
-
* Reveal complete. The clip-path did its job — the wipe cannot run without it,
|
|
7624
|
-
* because `clip-path: none` is a discrete value that snaps instead of
|
|
7625
|
-
* interpolating. But clip-path also clips every descendant, so leaving a zero
|
|
7626
|
-
* inset in place slices off the hover tooltips of the outermost buttons, which
|
|
7627
|
-
* paint outside the panel by design.
|
|
7628
|
-
*
|
|
7629
|
-
* ToolbarFanOutItem therefore adds this class once the reveal transition ends,
|
|
7630
|
-
* and takes it off again (restoring an interpolable inset) before the close
|
|
7631
|
-
* transition starts — so both wipes keep their exact timing and a settled panel
|
|
7632
|
-
* clips nothing.
|
|
7633
|
-
*/
|
|
7629
|
+
/* A settled panel must stop clipping tooltips; restore the inset before the close wipe. */
|
|
7634
7630
|
.toolbar-fanout-panel--settled {
|
|
7635
7631
|
clip-path: none;
|
|
7636
7632
|
}
|
|
@@ -7724,10 +7720,6 @@
|
|
|
7724
7720
|
|
|
7725
7721
|
/* ToolbarGroup slots use the section transition above. */
|
|
7726
7722
|
|
|
7727
|
-
.toolbar-slot-section--transitioning {
|
|
7728
|
-
overflow: hidden;
|
|
7729
|
-
}
|
|
7730
|
-
|
|
7731
7723
|
@keyframes toolbar-slot-fade-in {
|
|
7732
7724
|
from {
|
|
7733
7725
|
opacity: 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangeHandler.d.ts","sourceRoot":"","sources":["../../../types/ChangeHandler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAc,CAAC;AAE/C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeHandler.js","sourceRoot":"","sources":["../../../types/ChangeHandler.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"ChangeHandler.js","sourceRoot":"","sources":["../../../types/ChangeHandler.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 { ChangeMeta } from './ChangeMeta';\n\n/**\n * Handles a Components-owned semantic value change.\n *\n * The first argument is always the component's next value, never a renderer-specific\n * event wrapper. Origin metadata is optional so ordinary one-argument callbacks such as\n * React state setters remain directly assignable.\n *\n * @typeParam T - The semantic value exposed by the component.\n * @param value - The next semantic value.\n * @param meta - Optional information about how the change originated.\n */\nexport type ChangeHandler<T> = (value: T, meta?: ChangeMeta) => void;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeMeta.js","sourceRoot":"","sources":["../../../types/ChangeMeta.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"ChangeMeta.js","sourceRoot":"","sources":["../../../types/ChangeMeta.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 * Describes the origin of a Components-owned value change.\n *\n * Components may omit this object when no trustworthy origin information is available.\n * Consumers must therefore treat metadata as supplementary context rather than as the value\n * transport itself.\n */\nexport interface ChangeMeta {\n /**\n * Identifies the change origin.\n *\n * `user` denotes an interaction, `programmatic` denotes an imperative component action,\n * and `reset` denotes restoration of an earlier or default value.\n */\n readonly source: 'user' | 'programmatic' | 'reset';\n /**\n * Native browser event that caused the change, when one exists at the public boundary.\n *\n * This is always a DOM {@link Event}; React synthetic events and renderer-specific event\n * objects are never exposed through this property. Use it only for immediate interaction\n * handling—do not serialize, log, or transmit it because native events can retain references\n * to form controls and user input.\n */\n readonly nativeEvent?: Event;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExactPartKeys.js","sourceRoot":"","sources":["../../../types/ExactPartKeys.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"ExactPartKeys.js","sourceRoot":"","sources":["../../../types/ExactPartKeys.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/** Resolves to true only when a pass-through declaration has the expected keys. */\nexport type ExactPartKeys<TParts, TExpected extends PropertyKey> = [\n Exclude<keyof TParts, TExpected>,\n Exclude<TExpected, keyof TParts>,\n] extends [never, never]\n ? true\n : never;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSchema.js","sourceRoot":"","sources":["../../../types/JsonSchema.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG"}
|
|
1
|
+
{"version":3,"file":"JsonSchema.js","sourceRoot":"","sources":["../../../types/JsonSchema.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 * A JSON Schema document or fragment shape.\n * Represents a reusable schema definition consumed by {@link SchemaEditor} and {@link ObjectContentEditor}.\n */\nexport interface JsonSchema {\n /** Human-readable title for this schema. */\n title?: string;\n /** Name of the schema or type being defined. */\n name?: string;\n /** Unique identifier URI for this schema (e.g. \"https://example.invalid/schemas/person.json\"). */\n $id?: string;\n /** Reference to another schema definition (URI fragment or external reference). */\n $ref?: string;\n /** JSON Schema type (\"string\", \"number\", \"integer\", \"boolean\", \"object\", \"array\", \"null\"). */\n type?: string;\n /** Format hint for the type (e.g. \"date-time\", \"guid\", \"email\"). */\n format?: string;\n /** Human-readable description of this schema. */\n description?: string;\n /** Object property definitions (when `type` is \"object\"). */\n properties?: Record<string, JsonSchemaProperty>;\n /** Array item schema (when `type` is \"array\"). */\n items?: JsonSchema;\n /** List of required property names (when `type` is \"object\"). */\n required?: string[];\n /** Named schema definitions reusable via `$ref`. */\n definitions?: Record<string, JsonSchema>;\n}\n\n/**\n * A property definition within a JSON Schema object.\n * Describes one field's type, format, nested structure, and validation constraints.\n */\nexport interface JsonSchemaProperty {\n /** Unique identifier for this property. */\n id?: string;\n /** Property name (key in the parent object). */\n name?: string;\n /** JSON Schema type (\"string\", \"number\", \"integer\", \"boolean\", \"object\", \"array\", \"null\"). */\n type?: string;\n /** Format hint for the type (e.g. \"date-time\", \"guid\", \"email\"). */\n format?: string;\n /** Human-readable description of this property. */\n description?: string;\n /** Array item schema (when `type` is \"array\"). */\n items?: JsonSchema;\n /** Nested object property definitions (when `type` is \"object\"). */\n properties?: Record<string, JsonSchemaProperty>;\n /** List of required property names within this property's own `properties` (when `type` is \"object\"). Matches {@link JsonSchema.required}. */\n required?: string[];\n /** Reference to another schema definition (URI fragment or external reference). */\n $ref?: string;\n}\n\n/**\n * A breadcrumb or navigation-path entry representing one step in a navigable hierarchy.\n * Used by {@link SchemaEditor}, {@link ObjectContentEditor}, and {@link ObjectNavigationalBar}\n * to show the current location within a nested JSON schema or object structure.\n */\nexport interface NavigationItem {\n /** User-facing name of this navigation step (e.g. a property name or \"items\"). */\n name: string;\n /** Ordered list of property keys from the root to this step (e.g. [\"address\", \"street\"]). */\n path: string[];\n}\n\n/**\n * A recursive JSON value type: primitive, array, or object.\n * Represents any valid JSON structure (string | number | boolean | null | Json[] | { [key: string]: Json }).\n */\nexport type Json = string | number | boolean | null | Json[] | { [key: string]: Json };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeFormat.js","sources":["../../../types/TypeFormat.ts"],"sourcesContent":[null],"names":[],"mappings":"AAmBO,MAAM,oBAAoB,GAAiB;AAC9C,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;AAClC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE;AACtC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;AAC3C,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE;AACtC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE;AACtC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;AACnC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;AACxC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;AACxC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;AACxC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;AAClC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;AACvC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE;AACxC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;;;"}
|
|
1
|
+
{"version":3,"file":"TypeFormat.js","sources":["../../../types/TypeFormat.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 * A JSON Schema type-and-format pair.\n * Maps a JSON type (e.g. \"string\", \"integer\") to an optional format specifier (e.g. \"guid\", \"date-time\").\n */\nexport interface TypeFormat {\n /** JSON Schema type (\"string\", \"number\", \"integer\", \"boolean\", \"object\", \"array\", \"null\"). */\n jsonType: string;\n /** Optional format specifier refining the type (e.g. \"guid\", \"date-time\", \"int32\", \"double\"). Empty string for no format. */\n format: string;\n}\n\n/**\n * Default JSON type-to-format mapping table.\n * This is a value contract other code can reference or extend, not just an internal default.\n * Consumed by {@link SchemaEditor} and {@link ObjectContentEditor} to populate type/format dropdowns.\n */\nexport const DEFAULT_TYPE_FORMATS: TypeFormat[] = [\n { jsonType: 'string', format: '' },\n { jsonType: 'string', format: 'guid' },\n { jsonType: 'string', format: 'date-time' },\n { jsonType: 'string', format: 'date' },\n { jsonType: 'string', format: 'time' },\n { jsonType: 'integer', format: '' },\n { jsonType: 'integer', format: 'int16' },\n { jsonType: 'integer', format: 'int32' },\n { jsonType: 'integer', format: 'int64' },\n { jsonType: 'number', format: '' },\n { jsonType: 'number', format: 'float' },\n { jsonType: 'number', format: 'double' },\n { jsonType: 'boolean', format: '' },\n];\n"],"names":[],"mappings":"AAmBO,MAAM,oBAAoB,GAAiB;AAC9C,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;AAClC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE;AACtC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;AAC3C,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE;AACtC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE;AACtC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;AACnC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;AACxC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;AACxC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;AACxC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;AAClC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;AACvC,IAAA,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE;AACxC,IAAA,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../types/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAiB,CAAC;AAChC,cAAc,iBAAc,CAAC;AAC7B,cAAc,iBAAc,CAAC;AAC7B,cAAc,YAAS,CAAC;AACxB,cAAc,iBAAc,CAAC"}
|