@mobilon-dev/chotto 0.3.30 → 0.3.32
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/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +7 -0
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +106 -0
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +46 -0
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +7 -0
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +39 -0
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +7 -0
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +32 -0
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +23 -0
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +7 -0
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +77 -0
- package/dist/components/1_icons/AvatarIcon.vue.js +42 -0
- package/dist/components/1_icons/CheckIcon.vue.js +28 -0
- package/dist/components/1_icons/CloseButtonIcon.vue.js +21 -0
- package/dist/components/1_icons/ContactCRMIcon.vue.js +21 -0
- package/dist/components/1_icons/MenuIcon.vue.js +21 -0
- package/dist/components/1_icons/SearchIcon.vue.js +28 -0
- package/dist/components/1_icons/SettingsIcon.vue.js +18 -0
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -0
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -0
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +307 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.js +83 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.js +60 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationChannels.js +70 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.js +36 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationMenu.js +37 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationSubMenu.js +69 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +18 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +23 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +21 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +34 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +21 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +18 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +32 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +18 -0
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +7 -0
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +61 -0
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +7 -0
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +58 -0
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +7 -0
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +68 -0
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +7 -0
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +70 -0
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +106 -0
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +18 -0
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +105 -0
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +25 -0
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +98 -0
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +7 -0
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +157 -0
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +7 -0
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +105 -0
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +21 -0
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +66 -0
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +206 -0
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +7 -0
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +210 -0
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +7 -0
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +126 -0
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +7 -0
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +38 -0
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +7 -0
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +41 -0
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +281 -0
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +49 -0
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +7 -0
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +193 -0
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +37 -0
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +7 -0
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +116 -0
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +73 -0
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +93 -0
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +47 -0
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +158 -0
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +49 -0
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +39 -0
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +7 -0
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +94 -0
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +380 -0
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +57 -0
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +476 -0
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +26 -0
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +4 -0
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +26 -0
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +4 -0
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +20 -0
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +7 -0
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +18 -0
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +7 -0
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +42 -0
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +204 -0
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +266 -0
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +7 -0
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +46 -0
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +7 -0
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +161 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/usePositioning.js +104 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactions.js +30 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactionsPanel.js +90 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactionsState.js +32 -0
- package/dist/components/2_feed_elements/MessageReactions/utils/quickReactions.js +17 -0
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +73 -0
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +4 -0
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +39 -0
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +35 -0
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +46 -0
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +71 -0
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +119 -0
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +27 -0
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +75 -0
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +7 -0
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +23 -0
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +258 -0
- package/dist/components/2_feed_elements/StickerMessage/libs/tgs-player/lottie-player.esm.js +6469 -0
- package/dist/components/2_feed_elements/StickerMessage/libs/tgs-player/tgs-player.esm.js +7216 -0
- package/dist/components/2_feed_elements/StickerMessage/utils/stickerUtils.js +10 -0
- package/dist/components/2_feed_elements/StickerMessage/utils/suppress-lit-warning.js +21 -0
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +18 -0
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +174 -0
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +32 -0
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +286 -0
- package/dist/{CreateChat-C4y1ddK_.js → components/2_modals/CreateChat/CreateChat.vue.js} +8 -7
- package/dist/components/2_modals/CreateChat/CreateChat.vue2.js +1 -0
- package/dist/{CreateChat2-Oy9JaaRC.js → components/2_modals/CreateChat2/CreateChat2.vue.js} +4 -3
- package/dist/{CreateDialog-DacwclUe.js → components/2_modals/CreateDialog/CreateDialog.vue.js} +12 -11
- package/dist/components/2_modals/Modal/Modal.vue.js +69 -0
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +46 -0
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +43 -0
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +7 -0
- package/dist/{ModalVideoRecorder-BkPr4JP7.js → components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js} +48 -49
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +63 -0
- package/dist/{SelectUser2-kaPAmxhi.js → components/2_modals/SelectUser2/SelectUser2.vue.js} +4 -3
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +7 -0
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +192 -0
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +35 -0
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +4 -0
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +195 -0
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +27 -0
- package/dist/components/3_compounds/ChatList/composables/useChatListActions.js +16 -0
- package/dist/components/3_compounds/ChatList/composables/useChatListFilter.js +27 -0
- package/dist/components/3_compounds/ChatList/composables/useChatListScroll.js +47 -0
- package/dist/components/3_compounds/ChatList/composables/useChatListSelection.js +28 -0
- package/dist/components/3_compounds/Feed/Feed.vue.js +7 -0
- package/dist/components/3_compounds/Feed/Feed.vue2.js +295 -0
- package/dist/components/3_compounds/Feed/assets/chat-background.svg.js +7 -0
- package/dist/components/3_compounds/Feed/composables/useFeedButton.js +17 -0
- package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +29 -0
- package/dist/components/3_compounds/Feed/composables/useFeedGrouping.js +15 -0
- package/dist/components/3_compounds/Feed/composables/useFeedKeyboard.js +15 -0
- package/dist/components/3_compounds/Feed/composables/useFeedLoadMore.js +62 -0
- package/dist/components/3_compounds/Feed/composables/useFeedMessageVisibility.js +33 -0
- package/dist/components/3_compounds/Feed/composables/useFeedReply.js +42 -0
- package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +63 -0
- package/dist/components/3_compounds/Feed/composables/useFeedScrollTo.js +18 -0
- package/dist/components/3_compounds/Feed/composables/useStickyDate.js +61 -0
- package/dist/components/3_compounds/Feed/functions/throttle.js +11 -0
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +190 -0
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +63 -0
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +18 -0
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +7 -0
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +53 -0
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +21 -0
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +15 -0
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +33 -0
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +104 -0
- package/dist/functions/createReactionHandlers.js +19 -0
- package/dist/functions/formatTimestamp.js +8 -0
- package/dist/functions/getChannelAccentColor.js +30 -0
- package/dist/functions/getMessageClass.js +6 -0
- package/dist/functions/getStatusMessage.js +42 -0
- package/dist/functions/insertDaySeparators.js +24 -0
- package/dist/functions/parseMarkdown.js +18 -0
- package/dist/functions/playNotificationAudio.js +13 -0
- package/dist/functions/sortByTimestamp.js +4 -0
- package/dist/hooks/messages/useChannelAccentColor.js +29 -0
- package/dist/hooks/messages/useMessageActions.js +28 -0
- package/dist/hooks/messages/useMessageLinks.js +48 -0
- package/dist/hooks/messages/useSubtextTooltip.js +12 -0
- package/dist/hooks/modals/useCreateChat.js +19 -0
- package/dist/hooks/modals/useCreateChat2.js +16 -0
- package/dist/hooks/modals/useCreateDialog.js +20 -0
- package/dist/hooks/modals/useModal.js +41 -0
- package/dist/hooks/modals/useModalSelectUser2.js +20 -0
- package/dist/hooks/modals/useVideoRecorder.js +14 -0
- package/dist/hooks/uploadFile/generatePreview.js +20 -0
- package/dist/hooks/uploadFile/getTypeFileByMime.js +7 -0
- package/dist/hooks/uploadFile/uploadFile.js +28 -0
- package/dist/hooks/useDelayDebouncedRef.js +18 -0
- package/dist/hooks/useImmediateDebouncedRef.js +18 -0
- package/dist/hooks/useMessageDraft.js +87 -0
- package/dist/hooks/useSearchModel.js +11 -0
- package/dist/hooks/useTheme.js +11 -0
- package/dist/hooks/validators/chats/chatValidator.js +79 -0
- package/dist/hooks/validators/chats/useChatValidator.js +82 -0
- package/dist/hooks/validators/messages/messageValidator.js +84 -0
- package/dist/hooks/validators/messages/useMessageValidator.js +82 -0
- package/dist/hooks/validators/sidebar/sidebarValidator.js +47 -0
- package/dist/hooks/validators/sidebar/useSidebarValidator.js +82 -0
- package/dist/hooks/validators/useValidation.js +94 -0
- package/dist/index.js +239 -0
- package/dist/locale/en.js +22 -0
- package/dist/locale/ru.js +22 -0
- package/dist/locale/useLocale.js +34 -0
- package/dist/node_modules/entities/lib/esm/decode.js +278 -0
- package/dist/node_modules/entities/lib/esm/decode_codepoint.js +46 -0
- package/dist/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/dist/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/dist/node_modules/linkify-it/index.js +187 -0
- package/dist/node_modules/linkify-it/lib/re.js +19 -0
- package/dist/node_modules/linkify-string/dist/linkify-string.js +41 -0
- package/dist/node_modules/linkifyjs/dist/linkify.js +679 -0
- package/dist/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
- package/dist/node_modules/markdown-it/lib/common/html_re.js +5 -0
- package/dist/node_modules/markdown-it/lib/common/utils.js +169 -0
- package/dist/node_modules/markdown-it/lib/helpers/index.js +8 -0
- package/dist/node_modules/markdown-it/lib/helpers/parse_link_destination.js +44 -0
- package/dist/node_modules/markdown-it/lib/helpers/parse_link_label.js +21 -0
- package/dist/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -0
- package/dist/node_modules/markdown-it/lib/index.js +112 -0
- package/dist/node_modules/markdown-it/lib/parser_block.js +63 -0
- package/dist/node_modules/markdown-it/lib/parser_core.js +34 -0
- package/dist/node_modules/markdown-it/lib/parser_inline.js +96 -0
- package/dist/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
- package/dist/node_modules/markdown-it/lib/presets/default.js +40 -0
- package/dist/node_modules/markdown-it/lib/presets/zero.js +59 -0
- package/dist/node_modules/markdown-it/lib/renderer.js +127 -0
- package/dist/node_modules/markdown-it/lib/ruler.js +95 -0
- package/dist/node_modules/markdown-it/lib/rules_block/blockquote.js +59 -0
- package/dist/node_modules/markdown-it/lib/rules_block/code.js +23 -0
- package/dist/node_modules/markdown-it/lib/rules_block/fence.js +30 -0
- package/dist/node_modules/markdown-it/lib/rules_block/heading.js +28 -0
- package/dist/node_modules/markdown-it/lib/rules_block/hr.js +27 -0
- package/dist/node_modules/markdown-it/lib/rules_block/html_block.js +37 -0
- package/dist/node_modules/markdown-it/lib/rules_block/lheading.js +43 -0
- package/dist/node_modules/markdown-it/lib/rules_block/list.js +110 -0
- package/dist/node_modules/markdown-it/lib/rules_block/paragraph.js +25 -0
- package/dist/node_modules/markdown-it/lib/rules_block/reference.js +95 -0
- package/dist/node_modules/markdown-it/lib/rules_block/state_block.js +84 -0
- package/dist/node_modules/markdown-it/lib/rules_block/table.js +99 -0
- package/dist/node_modules/markdown-it/lib/rules_core/block.js +7 -0
- package/dist/node_modules/markdown-it/lib/rules_core/inline.js +10 -0
- package/dist/node_modules/markdown-it/lib/rules_core/linkify.js +57 -0
- package/dist/node_modules/markdown-it/lib/rules_core/normalize.js +9 -0
- package/dist/node_modules/markdown-it/lib/rules_core/replacements.js +31 -0
- package/dist/node_modules/markdown-it/lib/rules_core/smartquotes.js +80 -0
- package/dist/node_modules/markdown-it/lib/rules_core/state_core.js +8 -0
- package/dist/node_modules/markdown-it/lib/rules_core/text_join.js +16 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/autolink.js +46 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/backticks.js +31 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +34 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/emphasis.js +57 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/entity.js +33 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/escape.js +32 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/fragments_join.js +10 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/html_inline.js +32 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/image.js +48 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/link.js +40 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/linkify.js +28 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/newline.js +23 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/state_inline.js +27 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/strikethrough.js +54 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/text.js +39 -0
- package/dist/node_modules/markdown-it/lib/token.js +31 -0
- package/dist/node_modules/mdurl/index.js +10 -0
- package/dist/node_modules/mdurl/lib/decode.js +61 -0
- package/dist/node_modules/mdurl/lib/encode.js +48 -0
- package/dist/node_modules/mdurl/lib/format.js +7 -0
- package/dist/node_modules/mdurl/lib/parse.js +74 -0
- package/dist/node_modules/punycode.js/punycode.es6.js +139 -0
- package/dist/node_modules/uc.micro/categories/Cc/regex.js +4 -0
- package/dist/node_modules/uc.micro/categories/Cf/regex.js +4 -0
- package/dist/node_modules/uc.micro/categories/P/regex.js +4 -0
- package/dist/node_modules/uc.micro/categories/S/regex.js +4 -0
- package/dist/node_modules/uc.micro/categories/Z/regex.js +4 -0
- package/dist/node_modules/uc.micro/index.js +14 -0
- package/dist/node_modules/uc.micro/properties/Any/regex.js +4 -0
- package/dist/node_modules/vue3-emoji-picker-ru/dist/emoji-picker.es.js +16471 -0
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.d.ts +7 -0
- package/dist/types/components/1_atoms/LoadingIndicator/stories/LoadingIndicator.stories.d.ts +9 -0
- package/dist/types/components/1_atoms/LoadingIndicator/styles/types.d.ts +49 -0
- package/dist/types/components/1_icons/AvatarIcon.vue.d.ts +1 -1
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationChannels.d.ts +1 -1
- package/dist/types/components/2_blocks/FeedSearch/FeedSearch.vue.d.ts +2 -2
- package/dist/types/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.d.ts +2 -2
- package/dist/types/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/CallMessage/CallMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.d.ts +1 -3
- package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +3 -5
- package/dist/types/components/2_feed_elements/StickerMessage/utils/stickerUtils.d.ts +19 -0
- package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +2 -2
- package/dist/types/components/2_modals/CreateDialog/CreateDialog.vue.d.ts +2 -2
- package/dist/types/components/2_modals/CreateDialog/stories/CreateDialog.stories.d.ts +2 -2
- package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +3 -1
- package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +2 -2
- package/dist/types/main.d.ts +1 -1
- package/package.json +5 -5
- package/dist/index-BzAEsq7j.js +0 -43508
- package/dist/vuessages.es.js +0 -123
- package/dist/vuessages.umd.js +0 -624
- /package/dist/types/{utils → components/2_feed_elements/StickerMessage/utils}/suppress-lit-warning.d.ts +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const f = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, k = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2
|
+
function s(n, a) {
|
|
3
|
+
let u = n.pos;
|
|
4
|
+
if (n.src.charCodeAt(u) !== 60)
|
|
5
|
+
return !1;
|
|
6
|
+
const e = n.pos, c = n.posMax;
|
|
7
|
+
for (; ; ) {
|
|
8
|
+
if (++u >= c) return !1;
|
|
9
|
+
const r = n.src.charCodeAt(u);
|
|
10
|
+
if (r === 60) return !1;
|
|
11
|
+
if (r === 62) break;
|
|
12
|
+
}
|
|
13
|
+
const o = n.src.slice(e + 1, u);
|
|
14
|
+
if (k.test(o)) {
|
|
15
|
+
const r = n.md.normalizeLink(o);
|
|
16
|
+
if (!n.md.validateLink(r))
|
|
17
|
+
return !1;
|
|
18
|
+
if (!a) {
|
|
19
|
+
const i = n.push("link_open", "a", 1);
|
|
20
|
+
i.attrs = [["href", r]], i.markup = "autolink", i.info = "auto";
|
|
21
|
+
const t = n.push("text", "", 0);
|
|
22
|
+
t.content = n.md.normalizeLinkText(o);
|
|
23
|
+
const l = n.push("link_close", "a", -1);
|
|
24
|
+
l.markup = "autolink", l.info = "auto";
|
|
25
|
+
}
|
|
26
|
+
return n.pos += o.length + 2, !0;
|
|
27
|
+
}
|
|
28
|
+
if (f.test(o)) {
|
|
29
|
+
const r = n.md.normalizeLink("mailto:" + o);
|
|
30
|
+
if (!n.md.validateLink(r))
|
|
31
|
+
return !1;
|
|
32
|
+
if (!a) {
|
|
33
|
+
const i = n.push("link_open", "a", 1);
|
|
34
|
+
i.attrs = [["href", r]], i.markup = "autolink", i.info = "auto";
|
|
35
|
+
const t = n.push("text", "", 0);
|
|
36
|
+
t.content = n.md.normalizeLinkText(o);
|
|
37
|
+
const l = n.push("link_close", "a", -1);
|
|
38
|
+
l.markup = "autolink", l.info = "auto";
|
|
39
|
+
}
|
|
40
|
+
return n.pos += o.length + 2, !0;
|
|
41
|
+
}
|
|
42
|
+
return !1;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
s as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function s(c, h) {
|
|
2
|
+
let n = c.pos;
|
|
3
|
+
if (c.src.charCodeAt(n) !== 96)
|
|
4
|
+
return !1;
|
|
5
|
+
const p = n;
|
|
6
|
+
n++;
|
|
7
|
+
const k = c.posMax;
|
|
8
|
+
for (; n < k && c.src.charCodeAt(n) === 96; )
|
|
9
|
+
n++;
|
|
10
|
+
const o = c.src.slice(p, n), i = o.length;
|
|
11
|
+
if (c.backticksScanned && (c.backticks[i] || 0) <= p)
|
|
12
|
+
return h || (c.pending += o), c.pos += i, !0;
|
|
13
|
+
let r = n, e;
|
|
14
|
+
for (; (e = c.src.indexOf("`", r)) !== -1; ) {
|
|
15
|
+
for (r = e + 1; r < k && c.src.charCodeAt(r) === 96; )
|
|
16
|
+
r++;
|
|
17
|
+
const l = r - e;
|
|
18
|
+
if (l === i) {
|
|
19
|
+
if (!h) {
|
|
20
|
+
const d = c.push("code_inline", "code", 0);
|
|
21
|
+
d.markup = o, d.content = c.src.slice(n, e).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
22
|
+
}
|
|
23
|
+
return c.pos = r, !0;
|
|
24
|
+
}
|
|
25
|
+
c.backticks[l] = e;
|
|
26
|
+
}
|
|
27
|
+
return c.backticksScanned = !0, h || (c.pending += o), c.pos += i, !0;
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
s as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
function k(o) {
|
|
2
|
+
const r = {}, c = o.length;
|
|
3
|
+
if (!c) return;
|
|
4
|
+
let n = 0, f = -2;
|
|
5
|
+
const a = [];
|
|
6
|
+
for (let s = 0; s < c; s++) {
|
|
7
|
+
const e = o[s];
|
|
8
|
+
if (a.push(0), (o[n].marker !== e.marker || f !== e.token - 1) && (n = s), f = e.token, e.length = e.length || 0, !e.close) continue;
|
|
9
|
+
r.hasOwnProperty(e.marker) || (r[e.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
10
|
+
const h = r[e.marker][(e.open ? 3 : 0) + e.length % 3];
|
|
11
|
+
let t = n - a[n] - 1, i = t;
|
|
12
|
+
for (; t > h; t -= a[t] + 1) {
|
|
13
|
+
const l = o[t];
|
|
14
|
+
if (l.marker === e.marker && l.open && l.end < 0) {
|
|
15
|
+
let p = !1;
|
|
16
|
+
if ((l.close || e.open) && (l.length + e.length) % 3 === 0 && (l.length % 3 !== 0 || e.length % 3 !== 0) && (p = !0), !p) {
|
|
17
|
+
const m = t > 0 && !o[t - 1].open ? a[t - 1] + 1 : 0;
|
|
18
|
+
a[s] = s - t + m, a[t] = m, e.open = !1, l.end = s, l.close = !1, i = -1, f = -2;
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
i !== -1 && (r[e.marker][(e.open ? 3 : 0) + (e.length || 0) % 3] = i);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function d(o) {
|
|
27
|
+
const r = o.tokens_meta, c = o.tokens_meta.length;
|
|
28
|
+
k(o.delimiters);
|
|
29
|
+
for (let n = 0; n < c; n++)
|
|
30
|
+
r[n] && r[n].delimiters && k(r[n].delimiters);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
d as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function i(o, t) {
|
|
2
|
+
const c = o.pos, n = o.src.charCodeAt(c);
|
|
3
|
+
if (t || n !== 95 && n !== 42)
|
|
4
|
+
return !1;
|
|
5
|
+
const e = o.scanDelims(o.pos, n === 42);
|
|
6
|
+
for (let k = 0; k < e.length; k++) {
|
|
7
|
+
const s = o.push("text", "", 0);
|
|
8
|
+
s.content = String.fromCharCode(n), o.delimiters.push({
|
|
9
|
+
// Char code of the starting marker (number).
|
|
10
|
+
//
|
|
11
|
+
marker: n,
|
|
12
|
+
// Total length of these series of delimiters.
|
|
13
|
+
//
|
|
14
|
+
length: e.length,
|
|
15
|
+
// A position of the token this delimiter corresponds to.
|
|
16
|
+
//
|
|
17
|
+
token: o.tokens.length - 1,
|
|
18
|
+
// If this delimiter is matched as a valid opener, `end` will be
|
|
19
|
+
// equal to its position, otherwise it's `-1`.
|
|
20
|
+
//
|
|
21
|
+
end: -1,
|
|
22
|
+
// Boolean flags that determine if this delimiter could open or close
|
|
23
|
+
// an emphasis.
|
|
24
|
+
//
|
|
25
|
+
open: e.can_open,
|
|
26
|
+
close: e.can_close
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return o.pos += e.length, !0;
|
|
30
|
+
}
|
|
31
|
+
function g(o, t) {
|
|
32
|
+
const c = t.length;
|
|
33
|
+
for (let n = c - 1; n >= 0; n--) {
|
|
34
|
+
const e = t[n];
|
|
35
|
+
if (e.marker !== 95 && e.marker !== 42 || e.end === -1)
|
|
36
|
+
continue;
|
|
37
|
+
const k = t[e.end], s = n > 0 && t[n - 1].end === e.end + 1 && // check that first two markers match and adjacent
|
|
38
|
+
t[n - 1].marker === e.marker && t[n - 1].token === e.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
39
|
+
t[e.end + 1].token === k.token + 1, r = String.fromCharCode(e.marker), m = o.tokens[e.token];
|
|
40
|
+
m.type = s ? "strong_open" : "em_open", m.tag = s ? "strong" : "em", m.nesting = 1, m.markup = s ? r + r : r, m.content = "";
|
|
41
|
+
const p = o.tokens[k.token];
|
|
42
|
+
p.type = s ? "strong_close" : "em_close", p.tag = s ? "strong" : "em", p.nesting = -1, p.markup = s ? r + r : r, p.content = "", s && (o.tokens[t[n - 1].token].content = "", o.tokens[t[e.end + 1].token].content = "", n--);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function a(o) {
|
|
46
|
+
const t = o.tokens_meta, c = o.tokens_meta.length;
|
|
47
|
+
g(o, o.delimiters);
|
|
48
|
+
for (let n = 0; n < c; n++)
|
|
49
|
+
t[n] && t[n].delimiters && g(o, t[n].delimiters);
|
|
50
|
+
}
|
|
51
|
+
const f = {
|
|
52
|
+
tokenize: i,
|
|
53
|
+
postProcess: a
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
f as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { fromCodePoint as i, isValidEntityCode as f } from "../common/utils.js";
|
|
2
|
+
import { decodeHTML as p } from "../../../entities/lib/esm/decode.js";
|
|
3
|
+
const a = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, u = /^&([a-z][a-z0-9]{1,31});/i;
|
|
4
|
+
function m(c, r) {
|
|
5
|
+
const t = c.pos, s = c.posMax;
|
|
6
|
+
if (c.src.charCodeAt(t) !== 38 || t + 1 >= s) return !1;
|
|
7
|
+
if (c.src.charCodeAt(t + 1) === 35) {
|
|
8
|
+
const o = c.src.slice(t).match(a);
|
|
9
|
+
if (o) {
|
|
10
|
+
if (!r) {
|
|
11
|
+
const e = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), n = c.push("text_special", "", 0);
|
|
12
|
+
n.content = f(e) ? i(e) : i(65533), n.markup = o[0], n.info = "entity";
|
|
13
|
+
}
|
|
14
|
+
return c.pos += o[0].length, !0;
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
const o = c.src.slice(t).match(u);
|
|
18
|
+
if (o) {
|
|
19
|
+
const e = p(o[0]);
|
|
20
|
+
if (e !== o[0]) {
|
|
21
|
+
if (!r) {
|
|
22
|
+
const n = c.push("text_special", "", 0);
|
|
23
|
+
n.content = e, n.markup = o[0], n.info = "entity";
|
|
24
|
+
}
|
|
25
|
+
return c.pos += o[0].length, !0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return !1;
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
m as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { isSpace as h } from "../common/utils.js";
|
|
2
|
+
const n = [];
|
|
3
|
+
for (let r = 0; r < 256; r++)
|
|
4
|
+
n.push(0);
|
|
5
|
+
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r) {
|
|
6
|
+
n[r.charCodeAt(0)] = 1;
|
|
7
|
+
});
|
|
8
|
+
function t(r, p) {
|
|
9
|
+
let c = r.pos;
|
|
10
|
+
const f = r.posMax;
|
|
11
|
+
if (r.src.charCodeAt(c) !== 92 || (c++, c >= f)) return !1;
|
|
12
|
+
let o = r.src.charCodeAt(c);
|
|
13
|
+
if (o === 10) {
|
|
14
|
+
for (p || r.push("hardbreak", "br", 0), c++; c < f && (o = r.src.charCodeAt(c), !!h(o)); )
|
|
15
|
+
c++;
|
|
16
|
+
return r.pos = c, !0;
|
|
17
|
+
}
|
|
18
|
+
let i = r.src[c];
|
|
19
|
+
if (o >= 55296 && o <= 56319 && c + 1 < f) {
|
|
20
|
+
const e = r.src.charCodeAt(c + 1);
|
|
21
|
+
e >= 56320 && e <= 57343 && (i += r.src[c + 1], c++);
|
|
22
|
+
}
|
|
23
|
+
const s = "\\" + i;
|
|
24
|
+
if (!p) {
|
|
25
|
+
const e = r.push("text_special", "", 0);
|
|
26
|
+
o < 256 && n[o] !== 0 ? e.content = i : e.content = s, e.markup = s, e.info = "escape";
|
|
27
|
+
}
|
|
28
|
+
return r.pos = c + 1, !0;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
t as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
function f(l) {
|
|
2
|
+
let t, n, o = 0;
|
|
3
|
+
const e = l.tokens, s = l.tokens.length;
|
|
4
|
+
for (t = n = 0; t < s; t++)
|
|
5
|
+
e[t].nesting < 0 && o--, e[t].level = o, e[t].nesting > 0 && o++, e[t].type === "text" && t + 1 < s && e[t + 1].type === "text" ? e[t + 1].content = e[t].content + e[t + 1].content : (t !== n && (e[n] = e[t]), n++);
|
|
6
|
+
t !== n && (e.length = n);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
f as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTML_TAG_RE as s } from "../common/html_re.js";
|
|
2
|
+
function l(n) {
|
|
3
|
+
return /^<a[>\s]/i.test(n);
|
|
4
|
+
}
|
|
5
|
+
function f(n) {
|
|
6
|
+
return /^<\/a\s*>/i.test(n);
|
|
7
|
+
}
|
|
8
|
+
function u(n) {
|
|
9
|
+
const i = n | 32;
|
|
10
|
+
return i >= 97 && i <= 122;
|
|
11
|
+
}
|
|
12
|
+
function x(n, i) {
|
|
13
|
+
if (!n.md.options.html)
|
|
14
|
+
return !1;
|
|
15
|
+
const c = n.posMax, e = n.pos;
|
|
16
|
+
if (n.src.charCodeAt(e) !== 60 || e + 2 >= c)
|
|
17
|
+
return !1;
|
|
18
|
+
const o = n.src.charCodeAt(e + 1);
|
|
19
|
+
if (o !== 33 && o !== 63 && o !== 47 && !u(o))
|
|
20
|
+
return !1;
|
|
21
|
+
const r = n.src.slice(e).match(s);
|
|
22
|
+
if (!r)
|
|
23
|
+
return !1;
|
|
24
|
+
if (!i) {
|
|
25
|
+
const t = n.push("html_inline", "", 0);
|
|
26
|
+
t.content = r[0], l(t.content) && n.linkLevel++, f(t.content) && n.linkLevel--;
|
|
27
|
+
}
|
|
28
|
+
return n.pos += r[0].length, !0;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
x as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { isSpace as u, normalizeReference as C } from "../common/utils.js";
|
|
2
|
+
function v(r, b) {
|
|
3
|
+
let o, h, p, e, d, n, c, f, s = "";
|
|
4
|
+
const x = r.pos, i = r.posMax;
|
|
5
|
+
if (r.src.charCodeAt(r.pos) !== 33 || r.src.charCodeAt(r.pos + 1) !== 91)
|
|
6
|
+
return !1;
|
|
7
|
+
const k = r.pos + 2, l = r.md.helpers.parseLinkLabel(r, r.pos + 1, !1);
|
|
8
|
+
if (l < 0)
|
|
9
|
+
return !1;
|
|
10
|
+
if (e = l + 1, e < i && r.src.charCodeAt(e) === 40) {
|
|
11
|
+
for (e++; e < i && (o = r.src.charCodeAt(e), !(!u(o) && o !== 10)); e++)
|
|
12
|
+
;
|
|
13
|
+
if (e >= i)
|
|
14
|
+
return !1;
|
|
15
|
+
for (f = e, n = r.md.helpers.parseLinkDestination(r.src, e, r.posMax), n.ok && (s = r.md.normalizeLink(n.str), r.md.validateLink(s) ? e = n.pos : s = ""), f = e; e < i && (o = r.src.charCodeAt(e), !(!u(o) && o !== 10)); e++)
|
|
16
|
+
;
|
|
17
|
+
if (n = r.md.helpers.parseLinkTitle(r.src, e, r.posMax), e < i && f !== e && n.ok)
|
|
18
|
+
for (c = n.str, e = n.pos; e < i && (o = r.src.charCodeAt(e), !(!u(o) && o !== 10)); e++)
|
|
19
|
+
;
|
|
20
|
+
else
|
|
21
|
+
c = "";
|
|
22
|
+
if (e >= i || r.src.charCodeAt(e) !== 41)
|
|
23
|
+
return r.pos = x, !1;
|
|
24
|
+
e++;
|
|
25
|
+
} else {
|
|
26
|
+
if (typeof r.env.references > "u")
|
|
27
|
+
return !1;
|
|
28
|
+
if (e < i && r.src.charCodeAt(e) === 91 ? (f = e + 1, e = r.md.helpers.parseLinkLabel(r, e), e >= 0 ? p = r.src.slice(f, e++) : e = l + 1) : e = l + 1, p || (p = r.src.slice(k, l)), d = r.env.references[C(p)], !d)
|
|
29
|
+
return r.pos = x, !1;
|
|
30
|
+
s = d.href, c = d.title;
|
|
31
|
+
}
|
|
32
|
+
if (!b) {
|
|
33
|
+
h = r.src.slice(k, l);
|
|
34
|
+
const a = [];
|
|
35
|
+
r.md.inline.parse(
|
|
36
|
+
h,
|
|
37
|
+
r.md,
|
|
38
|
+
r.env,
|
|
39
|
+
a
|
|
40
|
+
);
|
|
41
|
+
const m = r.push("image", "img", 0), A = [["src", s], ["alt", ""]];
|
|
42
|
+
m.attrs = A, m.children = a, m.content = h, c && A.push(["title", c]);
|
|
43
|
+
}
|
|
44
|
+
return r.pos = e, r.posMax = i, !0;
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
v as default
|
|
48
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { isSpace as h, normalizeReference as b } from "../common/utils.js";
|
|
2
|
+
function C(r, m) {
|
|
3
|
+
let o, p, l, s, f = "", d = "", c = r.pos, k = !0;
|
|
4
|
+
if (r.src.charCodeAt(r.pos) !== 91)
|
|
5
|
+
return !1;
|
|
6
|
+
const A = r.pos, i = r.posMax, u = r.pos + 1, n = r.md.helpers.parseLinkLabel(r, r.pos, !0);
|
|
7
|
+
if (n < 0)
|
|
8
|
+
return !1;
|
|
9
|
+
let e = n + 1;
|
|
10
|
+
if (e < i && r.src.charCodeAt(e) === 40) {
|
|
11
|
+
for (k = !1, e++; e < i && (o = r.src.charCodeAt(e), !(!h(o) && o !== 10)); e++)
|
|
12
|
+
;
|
|
13
|
+
if (e >= i)
|
|
14
|
+
return !1;
|
|
15
|
+
if (c = e, l = r.md.helpers.parseLinkDestination(r.src, e, r.posMax), l.ok) {
|
|
16
|
+
for (f = r.md.normalizeLink(l.str), r.md.validateLink(f) ? e = l.pos : f = "", c = e; e < i && (o = r.src.charCodeAt(e), !(!h(o) && o !== 10)); e++)
|
|
17
|
+
;
|
|
18
|
+
if (l = r.md.helpers.parseLinkTitle(r.src, e, r.posMax), e < i && c !== e && l.ok)
|
|
19
|
+
for (d = l.str, e = l.pos; e < i && (o = r.src.charCodeAt(e), !(!h(o) && o !== 10)); e++)
|
|
20
|
+
;
|
|
21
|
+
}
|
|
22
|
+
(e >= i || r.src.charCodeAt(e) !== 41) && (k = !0), e++;
|
|
23
|
+
}
|
|
24
|
+
if (k) {
|
|
25
|
+
if (typeof r.env.references > "u")
|
|
26
|
+
return !1;
|
|
27
|
+
if (e < i && r.src.charCodeAt(e) === 91 ? (c = e + 1, e = r.md.helpers.parseLinkLabel(r, e), e >= 0 ? p = r.src.slice(c, e++) : e = n + 1) : e = n + 1, p || (p = r.src.slice(u, n)), s = r.env.references[b(p)], !s)
|
|
28
|
+
return r.pos = A, !1;
|
|
29
|
+
f = s.href, d = s.title;
|
|
30
|
+
}
|
|
31
|
+
if (!m) {
|
|
32
|
+
r.pos = u, r.posMax = n;
|
|
33
|
+
const L = r.push("link_open", "a", 1), x = [["href", f]];
|
|
34
|
+
L.attrs = x, d && x.push(["title", d]), r.linkLevel++, r.md.inline.tokenize(r), r.linkLevel--, r.push("link_close", "a", -1);
|
|
35
|
+
}
|
|
36
|
+
return r.pos = e, r.posMax = i, !0;
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
C as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const k = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2
|
+
function p(n, t) {
|
|
3
|
+
if (!n.md.options.linkify || n.linkLevel > 0) return !1;
|
|
4
|
+
const i = n.pos, s = n.posMax;
|
|
5
|
+
if (i + 3 > s || n.src.charCodeAt(i) !== 58 || n.src.charCodeAt(i + 1) !== 47 || n.src.charCodeAt(i + 2) !== 47) return !1;
|
|
6
|
+
const o = n.pending.match(k);
|
|
7
|
+
if (!o) return !1;
|
|
8
|
+
const l = o[1], f = n.md.linkify.matchAtStart(n.src.slice(i - l.length));
|
|
9
|
+
if (!f) return !1;
|
|
10
|
+
let r = f.url;
|
|
11
|
+
if (r.length <= l.length) return !1;
|
|
12
|
+
r = r.replace(/\*+$/, "");
|
|
13
|
+
const c = n.md.normalizeLink(r);
|
|
14
|
+
if (!n.md.validateLink(c)) return !1;
|
|
15
|
+
if (!t) {
|
|
16
|
+
n.pending = n.pending.slice(0, -l.length);
|
|
17
|
+
const e = n.push("link_open", "a", 1);
|
|
18
|
+
e.attrs = [["href", c]], e.markup = "linkify", e.info = "auto";
|
|
19
|
+
const a = n.push("text", "", 0);
|
|
20
|
+
a.content = n.md.normalizeLinkText(r);
|
|
21
|
+
const u = n.push("link_close", "a", -1);
|
|
22
|
+
u.markup = "linkify", u.info = "auto";
|
|
23
|
+
}
|
|
24
|
+
return n.pos += r.length - l.length, !0;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
p as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isSpace as d } from "../common/utils.js";
|
|
2
|
+
function h(n, p) {
|
|
3
|
+
let r = n.pos;
|
|
4
|
+
if (n.src.charCodeAt(r) !== 10)
|
|
5
|
+
return !1;
|
|
6
|
+
const e = n.pending.length - 1, o = n.posMax;
|
|
7
|
+
if (!p)
|
|
8
|
+
if (e >= 0 && n.pending.charCodeAt(e) === 32)
|
|
9
|
+
if (e >= 1 && n.pending.charCodeAt(e - 1) === 32) {
|
|
10
|
+
let i = e - 1;
|
|
11
|
+
for (; i >= 1 && n.pending.charCodeAt(i - 1) === 32; ) i--;
|
|
12
|
+
n.pending = n.pending.slice(0, i), n.push("hardbreak", "br", 0);
|
|
13
|
+
} else
|
|
14
|
+
n.pending = n.pending.slice(0, -1), n.push("softbreak", "br", 0);
|
|
15
|
+
else
|
|
16
|
+
n.push("softbreak", "br", 0);
|
|
17
|
+
for (r++; r < o && d(n.src.charCodeAt(r)); )
|
|
18
|
+
r++;
|
|
19
|
+
return n.pos = r, !0;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import p from "../token.js";
|
|
2
|
+
import { isWhiteSpace as k, isMdAsciiPunct as f, isPunctChar as g } from "../common/utils.js";
|
|
3
|
+
function o(t, i, e, s) {
|
|
4
|
+
this.src = t, this.env = e, this.md = i, this.tokens = s, this.tokens_meta = Array(s.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
5
|
+
}
|
|
6
|
+
o.prototype.pushPending = function() {
|
|
7
|
+
const t = new p("text", "", 0);
|
|
8
|
+
return t.content = this.pending, t.level = this.pendingLevel, this.tokens.push(t), this.pending = "", t;
|
|
9
|
+
};
|
|
10
|
+
o.prototype.push = function(t, i, e) {
|
|
11
|
+
this.pending && this.pushPending();
|
|
12
|
+
const s = new p(t, i, e);
|
|
13
|
+
let n = null;
|
|
14
|
+
return e < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), s.level = this.level, e > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], n = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(s), this.tokens_meta.push(n), s;
|
|
15
|
+
};
|
|
16
|
+
o.prototype.scanDelims = function(t, i) {
|
|
17
|
+
const e = this.posMax, s = this.src.charCodeAt(t), n = t > 0 ? this.src.charCodeAt(t - 1) : 32;
|
|
18
|
+
let h = t;
|
|
19
|
+
for (; h < e && this.src.charCodeAt(h) === s; )
|
|
20
|
+
h++;
|
|
21
|
+
const v = h - t, c = h < e ? this.src.charCodeAt(h) : 32, r = f(n) || g(String.fromCharCode(n)), l = f(c) || g(String.fromCharCode(c)), a = k(n), d = k(c), m = !d && (!l || a || r), u = !a && (!r || d || l);
|
|
22
|
+
return { can_open: m && (i || !u || r), can_close: u && (i || !m || l), length: v };
|
|
23
|
+
};
|
|
24
|
+
o.prototype.Token = p;
|
|
25
|
+
export {
|
|
26
|
+
o as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function h(n, r) {
|
|
2
|
+
const e = n.pos, t = n.src.charCodeAt(e);
|
|
3
|
+
if (r || t !== 126)
|
|
4
|
+
return !1;
|
|
5
|
+
const i = n.scanDelims(n.pos, !0);
|
|
6
|
+
let s = i.length;
|
|
7
|
+
const o = String.fromCharCode(t);
|
|
8
|
+
if (s < 2)
|
|
9
|
+
return !1;
|
|
10
|
+
let c;
|
|
11
|
+
s % 2 && (c = n.push("text", "", 0), c.content = o, s--);
|
|
12
|
+
for (let k = 0; k < s; k += 2)
|
|
13
|
+
c = n.push("text", "", 0), c.content = o + o, n.delimiters.push({
|
|
14
|
+
marker: t,
|
|
15
|
+
length: 0,
|
|
16
|
+
// disable "rule of 3" length checks meant for emphasis
|
|
17
|
+
token: n.tokens.length - 1,
|
|
18
|
+
end: -1,
|
|
19
|
+
open: i.can_open,
|
|
20
|
+
close: i.can_close
|
|
21
|
+
});
|
|
22
|
+
return n.pos += i.length, !0;
|
|
23
|
+
}
|
|
24
|
+
function l(n, r) {
|
|
25
|
+
let e;
|
|
26
|
+
const t = [], i = r.length;
|
|
27
|
+
for (let s = 0; s < i; s++) {
|
|
28
|
+
const o = r[s];
|
|
29
|
+
if (o.marker !== 126 || o.end === -1)
|
|
30
|
+
continue;
|
|
31
|
+
const c = r[o.end];
|
|
32
|
+
e = n.tokens[o.token], e.type = "s_open", e.tag = "s", e.nesting = 1, e.markup = "~~", e.content = "", e = n.tokens[c.token], e.type = "s_close", e.tag = "s", e.nesting = -1, e.markup = "~~", e.content = "", n.tokens[c.token - 1].type === "text" && n.tokens[c.token - 1].content === "~" && t.push(c.token - 1);
|
|
33
|
+
}
|
|
34
|
+
for (; t.length; ) {
|
|
35
|
+
const s = t.pop();
|
|
36
|
+
let o = s + 1;
|
|
37
|
+
for (; o < n.tokens.length && n.tokens[o].type === "s_close"; )
|
|
38
|
+
o++;
|
|
39
|
+
o--, s !== o && (e = n.tokens[o], n.tokens[o] = n.tokens[s], n.tokens[s] = e);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function p(n) {
|
|
43
|
+
const r = n.tokens_meta, e = n.tokens_meta.length;
|
|
44
|
+
l(n, n.delimiters);
|
|
45
|
+
for (let t = 0; t < e; t++)
|
|
46
|
+
r[t] && r[t].delimiters && l(n, r[t].delimiters);
|
|
47
|
+
}
|
|
48
|
+
const u = {
|
|
49
|
+
tokenize: h,
|
|
50
|
+
postProcess: p
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
u as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function x(e) {
|
|
2
|
+
switch (e) {
|
|
3
|
+
case 10:
|
|
4
|
+
case 33:
|
|
5
|
+
case 35:
|
|
6
|
+
case 36:
|
|
7
|
+
case 37:
|
|
8
|
+
case 38:
|
|
9
|
+
case 42:
|
|
10
|
+
case 43:
|
|
11
|
+
case 45:
|
|
12
|
+
case 58:
|
|
13
|
+
case 60:
|
|
14
|
+
case 61:
|
|
15
|
+
case 62:
|
|
16
|
+
case 64:
|
|
17
|
+
case 91:
|
|
18
|
+
case 92:
|
|
19
|
+
case 93:
|
|
20
|
+
case 94:
|
|
21
|
+
case 95:
|
|
22
|
+
case 96:
|
|
23
|
+
case 123:
|
|
24
|
+
case 125:
|
|
25
|
+
case 126:
|
|
26
|
+
return !0;
|
|
27
|
+
default:
|
|
28
|
+
return !1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function a(e, s) {
|
|
32
|
+
let c = e.pos;
|
|
33
|
+
for (; c < e.posMax && !x(e.src.charCodeAt(c)); )
|
|
34
|
+
c++;
|
|
35
|
+
return c === e.pos ? !1 : (s || (e.pending += e.src.slice(e.pos, c)), e.pos = c, !0);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
a as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function n(r, t, i) {
|
|
2
|
+
this.type = r, this.tag = t, this.attrs = null, this.map = null, this.nesting = i, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
3
|
+
}
|
|
4
|
+
n.prototype.attrIndex = function(t) {
|
|
5
|
+
if (!this.attrs)
|
|
6
|
+
return -1;
|
|
7
|
+
const i = this.attrs;
|
|
8
|
+
for (let s = 0, e = i.length; s < e; s++)
|
|
9
|
+
if (i[s][0] === t)
|
|
10
|
+
return s;
|
|
11
|
+
return -1;
|
|
12
|
+
};
|
|
13
|
+
n.prototype.attrPush = function(t) {
|
|
14
|
+
this.attrs ? this.attrs.push(t) : this.attrs = [t];
|
|
15
|
+
};
|
|
16
|
+
n.prototype.attrSet = function(t, i) {
|
|
17
|
+
const s = this.attrIndex(t), e = [t, i];
|
|
18
|
+
s < 0 ? this.attrPush(e) : this.attrs[s] = e;
|
|
19
|
+
};
|
|
20
|
+
n.prototype.attrGet = function(t) {
|
|
21
|
+
const i = this.attrIndex(t);
|
|
22
|
+
let s = null;
|
|
23
|
+
return i >= 0 && (s = this.attrs[i][1]), s;
|
|
24
|
+
};
|
|
25
|
+
n.prototype.attrJoin = function(t, i) {
|
|
26
|
+
const s = this.attrIndex(t);
|
|
27
|
+
s < 0 ? this.attrPush([t, i]) : this.attrs[s][1] = this.attrs[s][1] + " " + i;
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
n as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as a } from "./lib/decode.js";
|
|
2
|
+
import { default as f } from "./lib/encode.js";
|
|
3
|
+
import { default as d } from "./lib/format.js";
|
|
4
|
+
import { default as p } from "./lib/parse.js";
|
|
5
|
+
export {
|
|
6
|
+
a as decode,
|
|
7
|
+
f as encode,
|
|
8
|
+
d as format,
|
|
9
|
+
p as parse
|
|
10
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const h = {};
|
|
2
|
+
function l(s) {
|
|
3
|
+
let n = h[s];
|
|
4
|
+
if (n)
|
|
5
|
+
return n;
|
|
6
|
+
n = h[s] = [];
|
|
7
|
+
for (let e = 0; e < 128; e++) {
|
|
8
|
+
const t = String.fromCharCode(e);
|
|
9
|
+
n.push(t);
|
|
10
|
+
}
|
|
11
|
+
for (let e = 0; e < s.length; e++) {
|
|
12
|
+
const t = s.charCodeAt(e);
|
|
13
|
+
n[t] = "%" + ("0" + t.toString(16).toUpperCase()).slice(-2);
|
|
14
|
+
}
|
|
15
|
+
return n;
|
|
16
|
+
}
|
|
17
|
+
function u(s, n) {
|
|
18
|
+
typeof n != "string" && (n = u.defaultChars);
|
|
19
|
+
const e = l(n);
|
|
20
|
+
return s.replace(/(%[a-f0-9]{2})+/gi, function(t) {
|
|
21
|
+
let r = "";
|
|
22
|
+
for (let f = 0, a = t.length; f < a; f += 3) {
|
|
23
|
+
const o = parseInt(t.slice(f + 1, f + 3), 16);
|
|
24
|
+
if (o < 128) {
|
|
25
|
+
r += e[o];
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if ((o & 224) === 192 && f + 3 < a) {
|
|
29
|
+
const c = parseInt(t.slice(f + 4, f + 6), 16);
|
|
30
|
+
if ((c & 192) === 128) {
|
|
31
|
+
const i = o << 6 & 1984 | c & 63;
|
|
32
|
+
i < 128 ? r += "��" : r += String.fromCharCode(i), f += 3;
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if ((o & 240) === 224 && f + 6 < a) {
|
|
37
|
+
const c = parseInt(t.slice(f + 4, f + 6), 16), i = parseInt(t.slice(f + 7, f + 9), 16);
|
|
38
|
+
if ((c & 192) === 128 && (i & 192) === 128) {
|
|
39
|
+
const x = o << 12 & 61440 | c << 6 & 4032 | i & 63;
|
|
40
|
+
x < 2048 || x >= 55296 && x <= 57343 ? r += "���" : r += String.fromCharCode(x), f += 6;
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if ((o & 248) === 240 && f + 9 < a) {
|
|
45
|
+
const c = parseInt(t.slice(f + 4, f + 6), 16), i = parseInt(t.slice(f + 7, f + 9), 16), x = parseInt(t.slice(f + 10, f + 12), 16);
|
|
46
|
+
if ((c & 192) === 128 && (i & 192) === 128 && (x & 192) === 128) {
|
|
47
|
+
let C = o << 18 & 1835008 | c << 12 & 258048 | i << 6 & 4032 | x & 63;
|
|
48
|
+
C < 65536 || C > 1114111 ? r += "����" : (C -= 65536, r += String.fromCharCode(55296 + (C >> 10), 56320 + (C & 1023))), f += 9;
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
r += "�";
|
|
53
|
+
}
|
|
54
|
+
return r;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
u.defaultChars = ";/?:@&=+$,#";
|
|
58
|
+
u.componentChars = "";
|
|
59
|
+
export {
|
|
60
|
+
u as default
|
|
61
|
+
};
|