@oxy.so/bloom 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/adoption-matrix.mdx +9 -9
- package/docs/app-shell.mdx +3 -1
- package/docs/button.mdx +2 -0
- package/docs/card-form.mdx +2 -0
- package/docs/chat-composer.mdx +1 -1
- package/docs/chat-people.mdx +8 -0
- package/docs/earnings.mdx +2 -0
- package/docs/field.mdx +2 -0
- package/docs/label.mdx +2 -0
- package/docs/payment-method.mdx +2 -0
- package/docs/place-details.mdx +2 -2
- package/docs/proof-of-delivery.mdx +4 -0
- package/docs/select.mdx +2 -0
- package/docs/settings-modal.mdx +15 -0
- package/lib/commonjs/ai-chat/AiChatResizeHandle.js +166 -0
- package/lib/commonjs/ai-chat/AiChatResizeHandle.js.map +1 -0
- package/lib/commonjs/ai-chat/AiChatShell.js +6 -154
- package/lib/commonjs/ai-chat/AiChatShell.js.map +1 -1
- package/lib/commonjs/ai-chat/index.js +2 -1
- package/lib/commonjs/ai-chat/index.js.map +1 -1
- package/lib/commonjs/ai-chat/index.web.js +2 -1
- package/lib/commonjs/ai-chat/index.web.js.map +1 -1
- package/lib/commonjs/ai-chat/messages.js +15 -30
- package/lib/commonjs/ai-chat/messages.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellSplit.js +2 -2
- package/lib/commonjs/app-shell/AppShellSplit.js.map +1 -1
- package/lib/commonjs/button/Button.js +36 -3
- package/lib/commonjs/button/Button.js.map +1 -1
- package/lib/commonjs/button/GlyphButton.js +7 -3
- package/lib/commonjs/button/GlyphButton.js.map +1 -1
- package/lib/commonjs/card-form/shared.js +3 -2
- package/lib/commonjs/card-form/shared.js.map +1 -1
- package/lib/commonjs/chat-composer/AttachmentMenu.js +8 -227
- package/lib/commonjs/chat-composer/AttachmentMenu.js.map +1 -1
- package/lib/commonjs/chat-composer/AttachmentMenu.web.js +16 -0
- package/lib/commonjs/chat-composer/AttachmentMenu.web.js.map +1 -0
- package/lib/commonjs/chat-composer/ChatComposer.js +9 -388
- package/lib/commonjs/chat-composer/ChatComposer.js.map +1 -1
- package/lib/commonjs/chat-composer/ChatComposer.web.js +16 -0
- package/lib/commonjs/chat-composer/ChatComposer.web.js.map +1 -0
- package/lib/commonjs/chat-composer/ComposerAttachmentStrip.js +5 -200
- package/lib/commonjs/chat-composer/ComposerAttachmentStrip.js.map +1 -1
- package/lib/commonjs/chat-composer/ComposerAttachmentStrip.web.js +12 -0
- package/lib/commonjs/chat-composer/ComposerAttachmentStrip.web.js.map +1 -0
- package/lib/commonjs/chat-composer/ComposerBanner.js +5 -163
- package/lib/commonjs/chat-composer/ComposerBanner.js.map +1 -1
- package/lib/commonjs/chat-composer/ComposerBanner.web.js +12 -0
- package/lib/commonjs/chat-composer/ComposerBanner.web.js.map +1 -0
- package/lib/commonjs/chat-composer/EmojiPicker.js +6 -443
- package/lib/commonjs/chat-composer/EmojiPicker.js.map +1 -1
- package/lib/commonjs/chat-composer/EmojiPicker.web.js +14 -0
- package/lib/commonjs/chat-composer/EmojiPicker.web.js.map +1 -0
- package/lib/commonjs/chat-composer/MessageContextMenu.js +12 -102
- package/lib/commonjs/chat-composer/MessageContextMenu.js.map +1 -1
- package/lib/commonjs/chat-composer/MessageContextMenu.web.js +19 -0
- package/lib/commonjs/chat-composer/MessageContextMenu.web.js.map +1 -0
- package/lib/commonjs/chat-composer/ReactionPicker.js +6 -107
- package/lib/commonjs/chat-composer/ReactionPicker.js.map +1 -1
- package/lib/commonjs/chat-composer/ReactionPicker.web.js +14 -0
- package/lib/commonjs/chat-composer/ReactionPicker.web.js.map +1 -0
- package/lib/commonjs/chat-composer/SuggestionList.js +5 -222
- package/lib/commonjs/chat-composer/SuggestionList.js.map +1 -1
- package/lib/commonjs/chat-composer/SuggestionList.web.js +12 -0
- package/lib/commonjs/chat-composer/SuggestionList.web.js.map +1 -0
- package/lib/commonjs/chat-composer/VoiceRecorder.js +7 -263
- package/lib/commonjs/chat-composer/VoiceRecorder.js.map +1 -1
- package/lib/commonjs/chat-composer/VoiceRecorder.web.js +16 -0
- package/lib/commonjs/chat-composer/VoiceRecorder.web.js.map +1 -0
- package/lib/commonjs/chat-composer/create-attachment-menu.js +243 -0
- package/lib/commonjs/chat-composer/create-attachment-menu.js.map +1 -0
- package/lib/commonjs/chat-composer/create-chat-composer.js +400 -0
- package/lib/commonjs/chat-composer/create-chat-composer.js.map +1 -0
- package/lib/commonjs/chat-composer/create-composer-attachment-strip.js +212 -0
- package/lib/commonjs/chat-composer/create-composer-attachment-strip.js.map +1 -0
- package/lib/commonjs/chat-composer/create-composer-banner.js +176 -0
- package/lib/commonjs/chat-composer/create-composer-banner.js.map +1 -0
- package/lib/commonjs/chat-composer/create-emoji-picker.js +456 -0
- package/lib/commonjs/chat-composer/create-emoji-picker.js.map +1 -0
- package/lib/commonjs/chat-composer/create-message-context-menu.js +119 -0
- package/lib/commonjs/chat-composer/create-message-context-menu.js.map +1 -0
- package/lib/commonjs/chat-composer/create-reaction-picker.js +120 -0
- package/lib/commonjs/chat-composer/create-reaction-picker.js.map +1 -0
- package/lib/commonjs/chat-composer/create-suggestion-list.js +234 -0
- package/lib/commonjs/chat-composer/create-suggestion-list.js.map +1 -0
- package/lib/commonjs/chat-composer/create-voice-recorder.js +277 -0
- package/lib/commonjs/chat-composer/create-voice-recorder.js.map +1 -0
- package/lib/commonjs/chat-composer/index.js +9 -9
- package/lib/commonjs/chat-composer/index.web.js +18 -18
- package/lib/commonjs/chat-composer/index.web.js.map +1 -1
- package/lib/commonjs/chat-people/contact-row.js +13 -0
- package/lib/commonjs/chat-people/contact-row.js.map +1 -0
- package/lib/commonjs/chat-screen/ChatSplitLayout.js +2 -2
- package/lib/commonjs/chat-screen/ChatSplitLayout.js.map +1 -1
- package/lib/commonjs/earnings/EarningsSummary.js +12 -2
- package/lib/commonjs/earnings/EarningsSummary.js.map +1 -1
- package/lib/commonjs/field/Field.js +2 -0
- package/lib/commonjs/field/Field.js.map +1 -1
- package/lib/commonjs/item/Item.js +16 -8
- package/lib/commonjs/item/Item.js.map +1 -1
- package/lib/commonjs/job-board/JobCard.js +6 -2
- package/lib/commonjs/job-board/JobCard.js.map +1 -1
- package/lib/commonjs/label/Label.js +2 -1
- package/lib/commonjs/label/Label.js.map +1 -1
- package/lib/commonjs/listing-details/AmenityList.js +4 -3
- package/lib/commonjs/listing-details/AmenityList.js.map +1 -1
- package/lib/commonjs/locale/common-messages.js +30 -15
- package/lib/commonjs/locale/common-messages.js.map +1 -1
- package/lib/commonjs/mail-compose/MailComposeSurface.js +1 -1
- package/lib/commonjs/overlay/InteractionBoundary.js +28 -0
- package/lib/commonjs/overlay/InteractionBoundary.js.map +1 -0
- package/lib/commonjs/payment-method/PaymentMethodList.js +3 -2
- package/lib/commonjs/payment-method/PaymentMethodList.js.map +1 -1
- package/lib/commonjs/place-details/PlaceAmenities.js +17 -6
- package/lib/commonjs/place-details/PlaceAmenities.js.map +1 -1
- package/lib/commonjs/place-details/PlacePopularTimes.js +7 -1
- package/lib/commonjs/place-details/PlacePopularTimes.js.map +1 -1
- package/lib/commonjs/proof-of-delivery/ProofOfDelivery.js +10 -1
- package/lib/commonjs/proof-of-delivery/ProofOfDelivery.js.map +1 -1
- package/lib/commonjs/proof-of-delivery/shared.js +1 -1
- package/lib/commonjs/proof-of-delivery/shared.js.map +1 -1
- package/lib/commonjs/select/Select.js +7 -4
- package/lib/commonjs/select/Select.js.map +1 -1
- package/lib/commonjs/select/Select.web.js +7 -4
- package/lib/commonjs/select/Select.web.js.map +1 -1
- package/lib/commonjs/select/use-required-description.js +37 -0
- package/lib/commonjs/select/use-required-description.js.map +1 -0
- package/lib/commonjs/settings-modal/rows.js +37 -0
- package/lib/commonjs/settings-modal/rows.js.map +1 -0
- package/lib/module/ai-chat/AiChatResizeHandle.js +160 -0
- package/lib/module/ai-chat/AiChatResizeHandle.js.map +1 -0
- package/lib/module/ai-chat/AiChatShell.js +5 -152
- package/lib/module/ai-chat/AiChatShell.js.map +1 -1
- package/lib/module/ai-chat/index.js +2 -1
- package/lib/module/ai-chat/index.js.map +1 -1
- package/lib/module/ai-chat/index.web.js +2 -1
- package/lib/module/ai-chat/index.web.js.map +1 -1
- package/lib/module/ai-chat/messages.js +15 -30
- package/lib/module/ai-chat/messages.js.map +1 -1
- package/lib/module/app-shell/AppShellSplit.js +1 -1
- package/lib/module/app-shell/AppShellSplit.js.map +1 -1
- package/lib/module/button/Button.js +36 -3
- package/lib/module/button/Button.js.map +1 -1
- package/lib/module/button/GlyphButton.js +7 -3
- package/lib/module/button/GlyphButton.js.map +1 -1
- package/lib/module/card-form/shared.js +3 -2
- package/lib/module/card-form/shared.js.map +1 -1
- package/lib/module/chat-composer/AttachmentMenu.js +7 -226
- package/lib/module/chat-composer/AttachmentMenu.js.map +1 -1
- package/lib/module/chat-composer/AttachmentMenu.web.js +12 -0
- package/lib/module/chat-composer/AttachmentMenu.web.js.map +1 -0
- package/lib/module/chat-composer/ChatComposer.js +8 -385
- package/lib/module/chat-composer/ChatComposer.js.map +1 -1
- package/lib/module/chat-composer/ChatComposer.web.js +12 -0
- package/lib/module/chat-composer/ChatComposer.web.js.map +1 -0
- package/lib/module/chat-composer/ComposerAttachmentStrip.js +4 -196
- package/lib/module/chat-composer/ComposerAttachmentStrip.js.map +1 -1
- package/lib/module/chat-composer/ComposerAttachmentStrip.web.js +8 -0
- package/lib/module/chat-composer/ComposerAttachmentStrip.web.js.map +1 -0
- package/lib/module/chat-composer/ComposerBanner.js +4 -162
- package/lib/module/chat-composer/ComposerBanner.js.map +1 -1
- package/lib/module/chat-composer/ComposerBanner.web.js +8 -0
- package/lib/module/chat-composer/ComposerBanner.web.js.map +1 -0
- package/lib/module/chat-composer/EmojiPicker.js +5 -440
- package/lib/module/chat-composer/EmojiPicker.js.map +1 -1
- package/lib/module/chat-composer/EmojiPicker.web.js +10 -0
- package/lib/module/chat-composer/EmojiPicker.web.js.map +1 -0
- package/lib/module/chat-composer/MessageContextMenu.js +11 -99
- package/lib/module/chat-composer/MessageContextMenu.js.map +1 -1
- package/lib/module/chat-composer/MessageContextMenu.web.js +15 -0
- package/lib/module/chat-composer/MessageContextMenu.web.js.map +1 -0
- package/lib/module/chat-composer/ReactionPicker.js +5 -104
- package/lib/module/chat-composer/ReactionPicker.js.map +1 -1
- package/lib/module/chat-composer/ReactionPicker.web.js +10 -0
- package/lib/module/chat-composer/ReactionPicker.web.js.map +1 -0
- package/lib/module/chat-composer/SuggestionList.js +4 -219
- package/lib/module/chat-composer/SuggestionList.js.map +1 -1
- package/lib/module/chat-composer/SuggestionList.web.js +8 -0
- package/lib/module/chat-composer/SuggestionList.web.js.map +1 -0
- package/lib/module/chat-composer/VoiceRecorder.js +6 -260
- package/lib/module/chat-composer/VoiceRecorder.js.map +1 -1
- package/lib/module/chat-composer/VoiceRecorder.web.js +12 -0
- package/lib/module/chat-composer/VoiceRecorder.web.js.map +1 -0
- package/lib/module/chat-composer/create-attachment-menu.js +238 -0
- package/lib/module/chat-composer/create-attachment-menu.js.map +1 -0
- package/lib/module/chat-composer/create-chat-composer.js +395 -0
- package/lib/module/chat-composer/create-chat-composer.js.map +1 -0
- package/lib/module/chat-composer/create-composer-attachment-strip.js +206 -0
- package/lib/module/chat-composer/create-composer-attachment-strip.js.map +1 -0
- package/lib/module/chat-composer/create-composer-banner.js +171 -0
- package/lib/module/chat-composer/create-composer-banner.js.map +1 -0
- package/lib/module/chat-composer/create-emoji-picker.js +451 -0
- package/lib/module/chat-composer/create-emoji-picker.js.map +1 -0
- package/lib/module/chat-composer/create-message-context-menu.js +114 -0
- package/lib/module/chat-composer/create-message-context-menu.js.map +1 -0
- package/lib/module/chat-composer/create-reaction-picker.js +115 -0
- package/lib/module/chat-composer/create-reaction-picker.js.map +1 -0
- package/lib/module/chat-composer/create-suggestion-list.js +229 -0
- package/lib/module/chat-composer/create-suggestion-list.js.map +1 -0
- package/lib/module/chat-composer/create-voice-recorder.js +272 -0
- package/lib/module/chat-composer/create-voice-recorder.js.map +1 -0
- package/lib/module/chat-composer/index.js +9 -9
- package/lib/module/chat-composer/index.js.map +1 -1
- package/lib/module/chat-composer/index.web.js +9 -9
- package/lib/module/chat-composer/index.web.js.map +1 -1
- package/lib/module/chat-people/contact-row.js +10 -0
- package/lib/module/chat-people/contact-row.js.map +1 -0
- package/lib/module/chat-screen/ChatSplitLayout.js +1 -1
- package/lib/module/chat-screen/ChatSplitLayout.js.map +1 -1
- package/lib/module/earnings/EarningsSummary.js +12 -2
- package/lib/module/earnings/EarningsSummary.js.map +1 -1
- package/lib/module/field/Field.js +2 -0
- package/lib/module/field/Field.js.map +1 -1
- package/lib/module/item/Item.js +16 -8
- package/lib/module/item/Item.js.map +1 -1
- package/lib/module/job-board/JobCard.js +6 -2
- package/lib/module/job-board/JobCard.js.map +1 -1
- package/lib/module/label/Label.js +2 -1
- package/lib/module/label/Label.js.map +1 -1
- package/lib/module/listing-details/AmenityList.js +4 -3
- package/lib/module/listing-details/AmenityList.js.map +1 -1
- package/lib/module/locale/common-messages.js +30 -15
- package/lib/module/locale/common-messages.js.map +1 -1
- package/lib/module/mail-compose/MailComposeSurface.js +1 -1
- package/lib/module/mail-compose/MailComposeSurface.js.map +1 -1
- package/lib/module/overlay/InteractionBoundary.js +25 -0
- package/lib/module/overlay/InteractionBoundary.js.map +1 -0
- package/lib/module/payment-method/PaymentMethodList.js +3 -2
- package/lib/module/payment-method/PaymentMethodList.js.map +1 -1
- package/lib/module/place-details/PlaceAmenities.js +15 -4
- package/lib/module/place-details/PlaceAmenities.js.map +1 -1
- package/lib/module/place-details/PlacePopularTimes.js +7 -1
- package/lib/module/place-details/PlacePopularTimes.js.map +1 -1
- package/lib/module/proof-of-delivery/ProofOfDelivery.js +10 -1
- package/lib/module/proof-of-delivery/ProofOfDelivery.js.map +1 -1
- package/lib/module/proof-of-delivery/shared.js +1 -1
- package/lib/module/proof-of-delivery/shared.js.map +1 -1
- package/lib/module/select/Select.js +7 -4
- package/lib/module/select/Select.js.map +1 -1
- package/lib/module/select/Select.web.js +7 -4
- package/lib/module/select/Select.web.js.map +1 -1
- package/lib/module/select/use-required-description.js +33 -0
- package/lib/module/select/use-required-description.js.map +1 -0
- package/lib/module/settings-modal/rows.js +10 -0
- package/lib/module/settings-modal/rows.js.map +1 -0
- package/lib/typescript/commonjs/ai-chat/AiChatResizeHandle.d.ts +11 -0
- package/lib/typescript/commonjs/ai-chat/AiChatResizeHandle.d.ts.map +1 -0
- package/lib/typescript/commonjs/ai-chat/AiChatShell.d.ts +1 -10
- package/lib/typescript/commonjs/ai-chat/AiChatShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/ai-chat/index.d.ts +2 -1
- package/lib/typescript/commonjs/ai-chat/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ai-chat/index.web.d.ts +2 -1
- package/lib/typescript/commonjs/ai-chat/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/ai-chat/messages.d.ts +0 -1
- package/lib/typescript/commonjs/ai-chat/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/card-form/shared.d.ts +2 -1
- package/lib/typescript/commonjs/card-form/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/AttachmentMenu.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/AttachmentMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/AttachmentMenu.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/AttachmentMenu.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/ChatComposer.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/ChatComposer.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/ChatComposer.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/ChatComposer.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/ComposerAttachmentStrip.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/ComposerAttachmentStrip.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/ComposerAttachmentStrip.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/ComposerAttachmentStrip.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/ComposerBanner.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/ComposerBanner.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/ComposerBanner.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/ComposerBanner.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/EmojiPicker.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/EmojiPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/EmojiPicker.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/EmojiPicker.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/MessageContextMenu.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/MessageContextMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/MessageContextMenu.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/MessageContextMenu.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/ReactionPicker.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/ReactionPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/ReactionPicker.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/ReactionPicker.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/SuggestionList.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/SuggestionList.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/SuggestionList.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/SuggestionList.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/VoiceRecorder.d.ts +1 -2
- package/lib/typescript/commonjs/chat-composer/VoiceRecorder.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/VoiceRecorder.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/VoiceRecorder.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-attachment-menu.d.ts +11 -0
- package/lib/typescript/commonjs/chat-composer/create-attachment-menu.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-chat-composer.d.ts +11 -0
- package/lib/typescript/commonjs/chat-composer/create-chat-composer.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-composer-attachment-strip.d.ts +7 -0
- package/lib/typescript/commonjs/chat-composer/create-composer-attachment-strip.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-composer-banner.d.ts +7 -0
- package/lib/typescript/commonjs/chat-composer/create-composer-banner.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-emoji-picker.d.ts +9 -0
- package/lib/typescript/commonjs/chat-composer/create-emoji-picker.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-message-context-menu.d.ts +14 -0
- package/lib/typescript/commonjs/chat-composer/create-message-context-menu.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-reaction-picker.d.ts +9 -0
- package/lib/typescript/commonjs/chat-composer/create-reaction-picker.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-suggestion-list.d.ts +7 -0
- package/lib/typescript/commonjs/chat-composer/create-suggestion-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-voice-recorder.d.ts +11 -0
- package/lib/typescript/commonjs/chat-composer/create-voice-recorder.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/index.web.d.ts +9 -9
- package/lib/typescript/commonjs/chat-composer/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-people/contact-row.d.ts +9 -0
- package/lib/typescript/commonjs/chat-people/contact-row.d.ts.map +1 -0
- package/lib/typescript/commonjs/earnings/EarningsSummary.d.ts.map +1 -1
- package/lib/typescript/commonjs/field/Field.d.ts +1 -1
- package/lib/typescript/commonjs/field/Field.d.ts.map +1 -1
- package/lib/typescript/commonjs/field/types.d.ts +2 -0
- package/lib/typescript/commonjs/field/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/types.d.ts +1 -0
- package/lib/typescript/commonjs/floating/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/item/Item.d.ts.map +1 -1
- package/lib/typescript/commonjs/job-board/JobCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/label/Label.d.ts +1 -1
- package/lib/typescript/commonjs/label/Label.d.ts.map +1 -1
- package/lib/typescript/commonjs/label/types.d.ts +2 -0
- package/lib/typescript/commonjs/label/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/listing-details/AmenityList.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/common-messages.d.ts +2 -0
- package/lib/typescript/commonjs/locale/common-messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/overlay/InteractionBoundary.d.ts +7 -0
- package/lib/typescript/commonjs/overlay/InteractionBoundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/payment-method/PaymentMethodList.d.ts.map +1 -1
- package/lib/typescript/commonjs/place-details/PlaceAmenities.d.ts.map +1 -1
- package/lib/typescript/commonjs/place-details/PlacePopularTimes.d.ts.map +1 -1
- package/lib/typescript/commonjs/proof-of-delivery/ProofOfDelivery.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/Select.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/Select.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/use-required-description.d.ts +7 -0
- package/lib/typescript/commonjs/select/use-required-description.d.ts.map +1 -0
- package/lib/typescript/commonjs/settings-modal/rows.d.ts +9 -0
- package/lib/typescript/commonjs/settings-modal/rows.d.ts.map +1 -0
- package/lib/typescript/module/ai-chat/AiChatResizeHandle.d.ts +11 -0
- package/lib/typescript/module/ai-chat/AiChatResizeHandle.d.ts.map +1 -0
- package/lib/typescript/module/ai-chat/AiChatShell.d.ts +1 -10
- package/lib/typescript/module/ai-chat/AiChatShell.d.ts.map +1 -1
- package/lib/typescript/module/ai-chat/index.d.ts +2 -1
- package/lib/typescript/module/ai-chat/index.d.ts.map +1 -1
- package/lib/typescript/module/ai-chat/index.web.d.ts +2 -1
- package/lib/typescript/module/ai-chat/index.web.d.ts.map +1 -1
- package/lib/typescript/module/ai-chat/messages.d.ts +0 -1
- package/lib/typescript/module/ai-chat/messages.d.ts.map +1 -1
- package/lib/typescript/module/button/Button.d.ts.map +1 -1
- package/lib/typescript/module/card-form/shared.d.ts +2 -1
- package/lib/typescript/module/card-form/shared.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/AttachmentMenu.d.ts +1 -2
- package/lib/typescript/module/chat-composer/AttachmentMenu.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/AttachmentMenu.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/AttachmentMenu.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/ChatComposer.d.ts +1 -2
- package/lib/typescript/module/chat-composer/ChatComposer.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/ChatComposer.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/ChatComposer.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/ComposerAttachmentStrip.d.ts +1 -2
- package/lib/typescript/module/chat-composer/ComposerAttachmentStrip.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/ComposerAttachmentStrip.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/ComposerAttachmentStrip.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/ComposerBanner.d.ts +1 -2
- package/lib/typescript/module/chat-composer/ComposerBanner.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/ComposerBanner.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/ComposerBanner.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/EmojiPicker.d.ts +1 -2
- package/lib/typescript/module/chat-composer/EmojiPicker.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/EmojiPicker.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/EmojiPicker.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/MessageContextMenu.d.ts +1 -2
- package/lib/typescript/module/chat-composer/MessageContextMenu.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/MessageContextMenu.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/MessageContextMenu.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/ReactionPicker.d.ts +1 -2
- package/lib/typescript/module/chat-composer/ReactionPicker.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/ReactionPicker.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/ReactionPicker.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/SuggestionList.d.ts +1 -2
- package/lib/typescript/module/chat-composer/SuggestionList.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/SuggestionList.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/SuggestionList.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/VoiceRecorder.d.ts +1 -2
- package/lib/typescript/module/chat-composer/VoiceRecorder.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/VoiceRecorder.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/VoiceRecorder.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-attachment-menu.d.ts +11 -0
- package/lib/typescript/module/chat-composer/create-attachment-menu.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-chat-composer.d.ts +11 -0
- package/lib/typescript/module/chat-composer/create-chat-composer.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-composer-attachment-strip.d.ts +7 -0
- package/lib/typescript/module/chat-composer/create-composer-attachment-strip.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-composer-banner.d.ts +7 -0
- package/lib/typescript/module/chat-composer/create-composer-banner.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-emoji-picker.d.ts +9 -0
- package/lib/typescript/module/chat-composer/create-emoji-picker.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-message-context-menu.d.ts +14 -0
- package/lib/typescript/module/chat-composer/create-message-context-menu.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-reaction-picker.d.ts +9 -0
- package/lib/typescript/module/chat-composer/create-reaction-picker.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-suggestion-list.d.ts +7 -0
- package/lib/typescript/module/chat-composer/create-suggestion-list.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-voice-recorder.d.ts +11 -0
- package/lib/typescript/module/chat-composer/create-voice-recorder.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/index.web.d.ts +9 -9
- package/lib/typescript/module/chat-composer/index.web.d.ts.map +1 -1
- package/lib/typescript/module/chat-people/contact-row.d.ts +9 -0
- package/lib/typescript/module/chat-people/contact-row.d.ts.map +1 -0
- package/lib/typescript/module/earnings/EarningsSummary.d.ts.map +1 -1
- package/lib/typescript/module/field/Field.d.ts +1 -1
- package/lib/typescript/module/field/Field.d.ts.map +1 -1
- package/lib/typescript/module/field/types.d.ts +2 -0
- package/lib/typescript/module/field/types.d.ts.map +1 -1
- package/lib/typescript/module/floating/types.d.ts +1 -0
- package/lib/typescript/module/floating/types.d.ts.map +1 -1
- package/lib/typescript/module/item/Item.d.ts.map +1 -1
- package/lib/typescript/module/job-board/JobCard.d.ts.map +1 -1
- package/lib/typescript/module/label/Label.d.ts +1 -1
- package/lib/typescript/module/label/Label.d.ts.map +1 -1
- package/lib/typescript/module/label/types.d.ts +2 -0
- package/lib/typescript/module/label/types.d.ts.map +1 -1
- package/lib/typescript/module/listing-details/AmenityList.d.ts.map +1 -1
- package/lib/typescript/module/locale/common-messages.d.ts +2 -0
- package/lib/typescript/module/locale/common-messages.d.ts.map +1 -1
- package/lib/typescript/module/overlay/InteractionBoundary.d.ts +7 -0
- package/lib/typescript/module/overlay/InteractionBoundary.d.ts.map +1 -0
- package/lib/typescript/module/payment-method/PaymentMethodList.d.ts.map +1 -1
- package/lib/typescript/module/place-details/PlaceAmenities.d.ts.map +1 -1
- package/lib/typescript/module/place-details/PlacePopularTimes.d.ts.map +1 -1
- package/lib/typescript/module/proof-of-delivery/ProofOfDelivery.d.ts.map +1 -1
- package/lib/typescript/module/select/Select.d.ts.map +1 -1
- package/lib/typescript/module/select/Select.web.d.ts.map +1 -1
- package/lib/typescript/module/select/use-required-description.d.ts +7 -0
- package/lib/typescript/module/select/use-required-description.d.ts.map +1 -0
- package/lib/typescript/module/settings-modal/rows.d.ts +9 -0
- package/lib/typescript/module/settings-modal/rows.d.ts.map +1 -0
- package/package.json +35 -1
- package/src/ai-chat/AiChatResizeHandle.tsx +151 -0
- package/src/ai-chat/AiChatShell.tsx +8 -143
- package/src/ai-chat/index.ts +2 -1
- package/src/ai-chat/index.web.ts +2 -1
- package/src/ai-chat/messages.ts +0 -16
- package/src/app-shell/AppShellSplit.tsx +1 -1
- package/src/button/Button.tsx +35 -10
- package/src/button/GlyphButton.tsx +3 -3
- package/src/card-form/shared.ts +3 -2
- package/src/chat-composer/AttachmentMenu.tsx +2 -214
- package/src/chat-composer/AttachmentMenu.web.tsx +5 -0
- package/src/chat-composer/ChatComposer.tsx +2 -459
- package/src/chat-composer/ChatComposer.web.tsx +6 -0
- package/src/chat-composer/ComposerAttachmentStrip.tsx +2 -202
- package/src/chat-composer/ComposerAttachmentStrip.web.tsx +4 -0
- package/src/chat-composer/ComposerBanner.tsx +2 -157
- package/src/chat-composer/ComposerBanner.web.tsx +4 -0
- package/src/chat-composer/EmojiPicker.tsx +2 -402
- package/src/chat-composer/EmojiPicker.web.tsx +5 -0
- package/src/chat-composer/MessageContextMenu.tsx +2 -88
- package/src/chat-composer/MessageContextMenu.web.tsx +12 -0
- package/src/chat-composer/ReactionPicker.tsx +2 -100
- package/src/chat-composer/ReactionPicker.web.tsx +5 -0
- package/src/chat-composer/SuggestionList.tsx +2 -209
- package/src/chat-composer/SuggestionList.web.tsx +4 -0
- package/src/chat-composer/VoiceRecorder.tsx +2 -287
- package/src/chat-composer/VoiceRecorder.web.tsx +6 -0
- package/src/chat-composer/create-attachment-menu.tsx +228 -0
- package/src/chat-composer/create-chat-composer.tsx +473 -0
- package/src/chat-composer/create-composer-attachment-strip.tsx +212 -0
- package/src/chat-composer/create-composer-banner.tsx +167 -0
- package/src/chat-composer/create-emoji-picker.tsx +414 -0
- package/src/chat-composer/create-message-context-menu.tsx +112 -0
- package/src/chat-composer/create-reaction-picker.tsx +112 -0
- package/src/chat-composer/create-suggestion-list.tsx +219 -0
- package/src/chat-composer/create-voice-recorder.tsx +301 -0
- package/src/chat-composer/index.web.ts +9 -9
- package/src/chat-people/contact-row.ts +8 -0
- package/src/chat-screen/ChatSplitLayout.tsx +1 -1
- package/src/earnings/EarningsSummary.tsx +9 -2
- package/src/field/Field.tsx +2 -1
- package/src/field/types.ts +2 -0
- package/src/floating/types.ts +1 -0
- package/src/item/Item.tsx +16 -11
- package/src/job-board/JobCard.tsx +4 -1
- package/src/label/Label.tsx +2 -1
- package/src/label/types.ts +2 -0
- package/src/listing-details/AmenityList.tsx +4 -3
- package/src/locale/common-messages.ts +17 -0
- package/src/overlay/InteractionBoundary.tsx +24 -0
- package/src/payment-method/PaymentMethodList.tsx +2 -1
- package/src/place-details/PlaceAmenities.tsx +9 -0
- package/src/place-details/PlacePopularTimes.tsx +7 -1
- package/src/proof-of-delivery/ProofOfDelivery.tsx +9 -1
- package/src/proof-of-delivery/shared.ts +1 -1
- package/src/select/Select.tsx +5 -1
- package/src/select/Select.web.tsx +5 -1
- package/src/select/use-required-description.tsx +20 -0
- package/src/settings-modal/rows.ts +21 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MessageContextMenu = void 0;
|
|
7
|
+
var _indexWeb = require("../dropdown-menu/index.web.js");
|
|
8
|
+
var _ReactionPickerWeb = require("./ReactionPicker.web.js");
|
|
9
|
+
var _createMessageContextMenu = require("./create-message-context-menu.js");
|
|
10
|
+
const MessageContextMenu = exports.MessageContextMenu = (0, _createMessageContextMenu.createMessageContextMenu)({
|
|
11
|
+
DropdownMenu: _indexWeb.DropdownMenu,
|
|
12
|
+
DropdownMenuContent: _indexWeb.DropdownMenuContent,
|
|
13
|
+
DropdownMenuItem: _indexWeb.DropdownMenuItem,
|
|
14
|
+
DropdownMenuSeparator: _indexWeb.DropdownMenuSeparator,
|
|
15
|
+
DropdownMenuShortcut: _indexWeb.DropdownMenuShortcut,
|
|
16
|
+
DropdownMenuTrigger: _indexWeb.DropdownMenuTrigger,
|
|
17
|
+
ReactionPicker: _ReactionPickerWeb.ReactionPicker
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=MessageContextMenu.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_indexWeb","require","_ReactionPickerWeb","_createMessageContextMenu","MessageContextMenu","exports","createMessageContextMenu","DropdownMenu","DropdownMenuContent","DropdownMenuItem","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuTrigger","ReactionPicker"],"sourceRoot":"../../../src","sources":["chat-composer/MessageContextMenu.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAQA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAF,OAAA;AAEO,MAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAAE,kDAAwB,EAAC;EAAEC,YAAY,EAAZA,sBAAY;EAAEC,mBAAmB,EAAnBA,6BAAmB;EAAEC,gBAAgB,EAAhBA,0BAAgB;EAAEC,qBAAqB,EAArBA,+BAAqB;EAAEC,oBAAoB,EAApBA,8BAAoB;EAAEC,mBAAmB,EAAnBA,6BAAmB;EAAEC,cAAc,EAAdA;AAAe,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,113 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ReactionPicker =
|
|
7
|
-
var _surfaceLevels = require("../styles/surface-levels.js");
|
|
8
|
-
var _useCardFill = require("../card/use-card-fill.js");
|
|
6
|
+
exports.ReactionPicker = void 0;
|
|
9
7
|
var _surface = require("../surface");
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _reactNative = require("react-native");
|
|
12
8
|
var _button = require("../button");
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _messages = require("../locale/messages.js");
|
|
19
|
-
var _messages2 = require("./messages.js");
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
-
/**
|
|
23
|
-
* The quick reaction bar: six glyphs and a "+" that hands over to the full
|
|
24
|
-
* `EmojiPicker`. It is its own part rather than a mode of the picker because it
|
|
25
|
-
* is shown in a different place (over a message, above its menu) and must stay
|
|
26
|
-
* one row tall at 390px.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
const BOX = {
|
|
30
|
-
small: 30,
|
|
31
|
-
medium: 36
|
|
32
|
-
};
|
|
33
|
-
const GLYPH = {
|
|
34
|
-
small: 'title-3-regular',
|
|
35
|
-
medium: 'title-2-regular'
|
|
36
|
-
};
|
|
37
|
-
function ReactionPicker({
|
|
38
|
-
emojis = _shared.REACTION_PICKER_EMOJIS,
|
|
39
|
-
selected,
|
|
40
|
-
onSelectEmoji,
|
|
41
|
-
onMorePress,
|
|
42
|
-
moreLabel: moreLabelProp,
|
|
43
|
-
size = 'medium',
|
|
44
|
-
surface = true,
|
|
45
|
-
style,
|
|
46
|
-
testID,
|
|
47
|
-
accessibilityLabel: accessibilityLabelProp,
|
|
48
|
-
emojiLabel
|
|
49
|
-
}) {
|
|
50
|
-
const theme = (0, _useTheme.useTheme)();
|
|
51
|
-
const raisedFill = (0, _useCardFill.useCardFill)(style);
|
|
52
|
-
const parentFill = (0, _surfaceLevels.useSurfaceFill)();
|
|
53
|
-
const palette = (0, _shared.resolveChatComposerPalette)(theme, surface ? raisedFill : parentFill);
|
|
54
|
-
const {
|
|
55
|
-
messages
|
|
56
|
-
} = (0, _messages.useMessages)(_messages2.CHAT_COMPOSER_MESSAGES);
|
|
57
|
-
const moreLabel = moreLabelProp ?? messages.moreReactions;
|
|
58
|
-
const accessibilityLabel = accessibilityLabelProp ?? messages.quickReactions;
|
|
59
|
-
(0, _webHooks.useChatComposerWebCss)();
|
|
60
|
-
const box = BOX[size];
|
|
61
|
-
const Container = surface ? _surface.Surface : _reactNative.View;
|
|
62
|
-
const bar = {
|
|
63
|
-
flexDirection: 'row',
|
|
64
|
-
alignItems: 'center',
|
|
65
|
-
gap: 2,
|
|
66
|
-
alignSelf: 'flex-start',
|
|
67
|
-
borderRadius: 9999,
|
|
68
|
-
paddingLeft: 4,
|
|
69
|
-
paddingRight: 4,
|
|
70
|
-
paddingTop: 4,
|
|
71
|
-
paddingBottom: 4,
|
|
72
|
-
'--bloom-chat-composer-ring': palette.focusRing
|
|
73
|
-
};
|
|
74
|
-
const cell = {
|
|
75
|
-
width: box,
|
|
76
|
-
height: box,
|
|
77
|
-
minWidth: box,
|
|
78
|
-
minHeight: box,
|
|
79
|
-
flexShrink: 0,
|
|
80
|
-
padding: 0,
|
|
81
|
-
borderRadius: 9999
|
|
82
|
-
};
|
|
83
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Container, {
|
|
84
|
-
accessibilityLabel: accessibilityLabel,
|
|
85
|
-
style: [bar, style],
|
|
86
|
-
testID: testID,
|
|
87
|
-
children: [emojis.map(emoji => {
|
|
88
|
-
const active = selected === emoji;
|
|
89
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
90
|
-
appearance: "plain",
|
|
91
|
-
tone: active ? 'accent' : 'neutral',
|
|
92
|
-
accessibilityLabel: emojiLabel ? emojiLabel(emoji) : emoji,
|
|
93
|
-
pressed: active,
|
|
94
|
-
onPress: () => onSelectEmoji?.(emoji),
|
|
95
|
-
style: cell,
|
|
96
|
-
testID: testID ? `${testID}-${emoji}` : undefined,
|
|
97
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
98
|
-
variant: GLYPH[size],
|
|
99
|
-
children: emoji
|
|
100
|
-
})
|
|
101
|
-
}, emoji);
|
|
102
|
-
}), onMorePress ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
|
|
103
|
-
appearance: "subtle",
|
|
104
|
-
tone: "neutral",
|
|
105
|
-
accessibilityLabel: moreLabel,
|
|
106
|
-
onPress: onMorePress,
|
|
107
|
-
iconOnly: true,
|
|
108
|
-
icon: _RiAddLine.RiAddLine,
|
|
109
|
-
iconSize: 18,
|
|
110
|
-
style: cell,
|
|
111
|
-
testID: testID ? `${testID}-more` : undefined
|
|
112
|
-
}) : null]
|
|
113
|
-
});
|
|
114
|
-
}
|
|
9
|
+
var _createReactionPicker = require("./create-reaction-picker.js");
|
|
10
|
+
const ReactionPicker = exports.ReactionPicker = (0, _createReactionPicker.createReactionPicker)({
|
|
11
|
+
Surface: _surface.Surface,
|
|
12
|
+
Button: _button.Button
|
|
13
|
+
});
|
|
115
14
|
//# sourceMappingURL=ReactionPicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_surface","require","_button","_createReactionPicker","ReactionPicker","exports","createReactionPicker","Surface","Button"],"sourceRoot":"../../../src","sources":["chat-composer/ReactionPicker.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AAEO,MAAMG,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,0CAAoB,EAAC;EAAEC,OAAO,EAAPA,gBAAO;EAAEC,MAAM,EAANA;AAAO,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ReactionPicker = void 0;
|
|
7
|
+
var _indexWeb = require("../surface/index.web.js");
|
|
8
|
+
var _indexWeb2 = require("../button/index.web.js");
|
|
9
|
+
var _createReactionPicker = require("./create-reaction-picker.js");
|
|
10
|
+
const ReactionPicker = exports.ReactionPicker = (0, _createReactionPicker.createReactionPicker)({
|
|
11
|
+
Surface: _indexWeb.Surface,
|
|
12
|
+
Button: _indexWeb2.Button
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=ReactionPicker.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_indexWeb","require","_indexWeb2","_createReactionPicker","ReactionPicker","exports","createReactionPicker","Surface","Button"],"sourceRoot":"../../../src","sources":["chat-composer/ReactionPicker.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AAEO,MAAMG,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,0CAAoB,EAAC;EAAEC,OAAO,EAAPA,iBAAO;EAAEC,MAAM,EAANA;AAAO,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,227 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SuggestionList =
|
|
7
|
-
var _surfaceLevels = require("../styles/surface-levels.js");
|
|
8
|
-
var _useCardFill = require("../card/use-card-fill.js");
|
|
6
|
+
exports.SuggestionList = void 0;
|
|
9
7
|
var _surface = require("../surface");
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var _messages = require("../locale/messages.js");
|
|
15
|
-
var _useTheme = require("../theme/use-theme.js");
|
|
16
|
-
var _index = require("../typography/index.js");
|
|
17
|
-
var _shared = require("./shared.js");
|
|
18
|
-
var _messages2 = require("./messages.js");
|
|
19
|
-
var _webHooks = require("./web-hooks.js");
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
-
/**
|
|
23
|
-
* The anchored list above the composer: `@mention`, `/command` and `:shortcode`
|
|
24
|
-
* are ONE part with a `kind`, because the row geometry, the keyboard model and
|
|
25
|
-
* the announced role are identical — only the leading slot differs.
|
|
26
|
-
*
|
|
27
|
-
* It is a listbox the composer's field OWNS: `activeIndex` arrives as a prop and
|
|
28
|
-
* the arrow keys are handled on the input, never here. A list that kept its own
|
|
29
|
-
* highlight would fight the field for it the first time a pointer moved.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
function isUrl(value) {
|
|
33
|
-
return /^(https?:)?\/\//.test(value) || value.startsWith('data:') || value.startsWith('file:');
|
|
34
|
-
}
|
|
35
|
-
function Leading({
|
|
36
|
-
kind,
|
|
37
|
-
suggestion
|
|
38
|
-
}) {
|
|
39
|
-
const theme = (0, _useTheme.useTheme)();
|
|
40
|
-
const palette = (0, _shared.resolveChatComposerPalette)(theme, (0, _surfaceLevels.useSurfaceFill)());
|
|
41
|
-
const resolveImage = (0, _context.useImageResolver)();
|
|
42
|
-
if (kind === 'emoji') {
|
|
43
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
44
|
-
variant: "title-2-regular",
|
|
45
|
-
style: {
|
|
46
|
-
width: 28,
|
|
47
|
-
textAlign: 'center'
|
|
48
|
-
},
|
|
49
|
-
children: suggestion.emoji ?? suggestion.label
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
if (kind === 'mention') {
|
|
53
|
-
const uri = suggestion.avatar === undefined ? undefined : isUrl(suggestion.avatar) ? suggestion.avatar : resolveImage?.(suggestion.avatar, 'thumb');
|
|
54
|
-
return uri ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
55
|
-
source: {
|
|
56
|
-
uri
|
|
57
|
-
},
|
|
58
|
-
accessibilityIgnoresInvertColors: true,
|
|
59
|
-
style: {
|
|
60
|
-
width: 28,
|
|
61
|
-
height: 28,
|
|
62
|
-
borderRadius: 14,
|
|
63
|
-
backgroundColor: palette.inset
|
|
64
|
-
}
|
|
65
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
66
|
-
style: {
|
|
67
|
-
width: 28,
|
|
68
|
-
height: 28,
|
|
69
|
-
borderRadius: 14,
|
|
70
|
-
backgroundColor: palette.inset,
|
|
71
|
-
alignItems: 'center',
|
|
72
|
-
justifyContent: 'center'
|
|
73
|
-
},
|
|
74
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
75
|
-
variant: "body-2-medium",
|
|
76
|
-
style: {
|
|
77
|
-
color: palette.textSecondary
|
|
78
|
-
},
|
|
79
|
-
children: suggestion.label.slice(0, 1).toUpperCase()
|
|
80
|
-
})
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
84
|
-
style: {
|
|
85
|
-
width: 28,
|
|
86
|
-
height: 28,
|
|
87
|
-
borderRadius: 8,
|
|
88
|
-
backgroundColor: palette.inset,
|
|
89
|
-
alignItems: 'center',
|
|
90
|
-
justifyContent: 'center'
|
|
91
|
-
},
|
|
92
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RiHashtag.RiHashtag, {
|
|
93
|
-
width: 16,
|
|
94
|
-
height: 16,
|
|
95
|
-
fill: palette.iconSecondary
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
function SuggestionList({
|
|
100
|
-
kind,
|
|
101
|
-
suggestions,
|
|
102
|
-
activeIndex = -1,
|
|
103
|
-
onSelectSuggestion,
|
|
104
|
-
onActiveIndexChange,
|
|
105
|
-
header,
|
|
106
|
-
maxHeight = _shared.SUGGESTION_MAX_HEIGHT,
|
|
107
|
-
style,
|
|
108
|
-
testID,
|
|
109
|
-
accessibilityLabel
|
|
110
|
-
}) {
|
|
111
|
-
const theme = (0, _useTheme.useTheme)();
|
|
112
|
-
const palette = (0, _shared.resolveChatComposerPalette)(theme, (0, _useCardFill.useCardFill)(style));
|
|
113
|
-
const {
|
|
114
|
-
messages
|
|
115
|
-
} = (0, _messages.useMessages)(_messages2.CHAT_COMPOSER_MESSAGES);
|
|
116
|
-
if (suggestions.length === 0) return null;
|
|
117
|
-
|
|
118
|
-
// React Native's `Role` union has no `listbox`; react-native-web passes the
|
|
119
|
-
// DOM `role` straight through, so it travels as a web-only prop.
|
|
120
|
-
const listRole = _webHooks.IS_WEB ? {
|
|
121
|
-
role: 'listbox'
|
|
122
|
-
} : {
|
|
123
|
-
accessibilityRole: 'list'
|
|
124
|
-
};
|
|
125
|
-
const panel = {
|
|
126
|
-
borderRadius: _shared.PANEL_RADIUS,
|
|
127
|
-
paddingTop: 6,
|
|
128
|
-
paddingBottom: 6,
|
|
129
|
-
paddingLeft: 6,
|
|
130
|
-
paddingRight: 6
|
|
131
|
-
};
|
|
132
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_surface.Surface, {
|
|
133
|
-
style: [panel, style],
|
|
134
|
-
testID: testID,
|
|
135
|
-
children: [header ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
136
|
-
variant: "caption-1-medium",
|
|
137
|
-
style: {
|
|
138
|
-
color: palette.textSecondary,
|
|
139
|
-
paddingLeft: 8,
|
|
140
|
-
paddingRight: 8,
|
|
141
|
-
paddingTop: 2,
|
|
142
|
-
paddingBottom: 6
|
|
143
|
-
},
|
|
144
|
-
children: header
|
|
145
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
146
|
-
...(0, _webHooks.dataHook)('bloomChatComposerScroll'),
|
|
147
|
-
...listRole,
|
|
148
|
-
accessibilityLabel: accessibilityLabel ?? messages.suggestions[kind],
|
|
149
|
-
style: {
|
|
150
|
-
maxHeight
|
|
151
|
-
},
|
|
152
|
-
showsVerticalScrollIndicator: false,
|
|
153
|
-
children: suggestions.map((suggestion, index) => {
|
|
154
|
-
const active = index === activeIndex;
|
|
155
|
-
const row = {
|
|
156
|
-
flexDirection: 'row',
|
|
157
|
-
alignItems: 'center',
|
|
158
|
-
gap: 10,
|
|
159
|
-
minHeight: _shared.SUGGESTION_ROW_HEIGHT,
|
|
160
|
-
borderRadius: 10,
|
|
161
|
-
paddingLeft: 8,
|
|
162
|
-
paddingRight: 8,
|
|
163
|
-
paddingTop: 6,
|
|
164
|
-
paddingBottom: 6,
|
|
165
|
-
opacity: suggestion.disabled ? 0.5 : 1,
|
|
166
|
-
backgroundColor: active ? palette.hover : 'transparent',
|
|
167
|
-
cursor: suggestion.disabled ? 'auto' : 'pointer',
|
|
168
|
-
'--bloom-chat-composer-ring': palette.focusRing
|
|
169
|
-
};
|
|
170
|
-
const name = suggestion.handle ? `${suggestion.label} ${suggestion.handle}` : suggestion.label;
|
|
171
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
172
|
-
...(0, _webHooks.dataHook)('bloomChatComposerRow'),
|
|
173
|
-
role: "option",
|
|
174
|
-
accessibilityLabel: name,
|
|
175
|
-
"aria-selected": active,
|
|
176
|
-
accessibilityState: {
|
|
177
|
-
selected: active,
|
|
178
|
-
disabled: suggestion.disabled
|
|
179
|
-
},
|
|
180
|
-
disabled: suggestion.disabled,
|
|
181
|
-
onPress: () => onSelectSuggestion?.(suggestion, index),
|
|
182
|
-
onHoverIn: () => onActiveIndexChange?.(index),
|
|
183
|
-
style: row,
|
|
184
|
-
testID: testID ? `${testID}-row-${suggestion.id}` : undefined,
|
|
185
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Leading, {
|
|
186
|
-
kind: kind,
|
|
187
|
-
suggestion: suggestion
|
|
188
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
189
|
-
style: {
|
|
190
|
-
flexShrink: 1,
|
|
191
|
-
flexGrow: 1
|
|
192
|
-
},
|
|
193
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
194
|
-
style: {
|
|
195
|
-
flexDirection: 'row',
|
|
196
|
-
alignItems: 'baseline',
|
|
197
|
-
gap: 6
|
|
198
|
-
},
|
|
199
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
200
|
-
variant: "body-medium",
|
|
201
|
-
numberOfLines: 1,
|
|
202
|
-
style: {
|
|
203
|
-
color: palette.text
|
|
204
|
-
},
|
|
205
|
-
children: suggestion.label
|
|
206
|
-
}), suggestion.handle ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
207
|
-
variant: "body-2-regular",
|
|
208
|
-
numberOfLines: 1,
|
|
209
|
-
style: {
|
|
210
|
-
color: palette.textSecondary,
|
|
211
|
-
flexShrink: 1
|
|
212
|
-
},
|
|
213
|
-
children: suggestion.handle
|
|
214
|
-
}) : null]
|
|
215
|
-
}), suggestion.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Text, {
|
|
216
|
-
variant: "caption-1-regular",
|
|
217
|
-
numberOfLines: 1,
|
|
218
|
-
style: {
|
|
219
|
-
color: palette.textPlaceholder
|
|
220
|
-
},
|
|
221
|
-
children: suggestion.description
|
|
222
|
-
}) : null]
|
|
223
|
-
})]
|
|
224
|
-
}, suggestion.id);
|
|
225
|
-
})
|
|
226
|
-
})]
|
|
227
|
-
});
|
|
228
|
-
}
|
|
8
|
+
var _createSuggestionList = require("./create-suggestion-list.js");
|
|
9
|
+
const SuggestionList = exports.SuggestionList = (0, _createSuggestionList.createSuggestionList)({
|
|
10
|
+
Surface: _surface.Surface
|
|
11
|
+
});
|
|
229
12
|
//# sourceMappingURL=SuggestionList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_surface","require","_createSuggestionList","SuggestionList","exports","createSuggestionList","Surface"],"sourceRoot":"../../../src","sources":["chat-composer/SuggestionList.tsx"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAEO,MAAME,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,0CAAoB,EAAC;EAAEC,OAAO,EAAPA;AAAQ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SuggestionList = void 0;
|
|
7
|
+
var _indexWeb = require("../surface/index.web.js");
|
|
8
|
+
var _createSuggestionList = require("./create-suggestion-list.js");
|
|
9
|
+
const SuggestionList = exports.SuggestionList = (0, _createSuggestionList.createSuggestionList)({
|
|
10
|
+
Surface: _indexWeb.Surface
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=SuggestionList.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_indexWeb","require","_createSuggestionList","SuggestionList","exports","createSuggestionList","Surface"],"sourceRoot":"../../../src","sources":["chat-composer/SuggestionList.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAEO,MAAME,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,0CAAoB,EAAC;EAAEC,OAAO,EAAPA;AAAQ,CAAC,CAAC","ignoreList":[]}
|