@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,110 @@
|
|
|
1
|
+
import { isSpace as v } from "../common/utils.js";
|
|
2
|
+
function T(r, c) {
|
|
3
|
+
const u = r.eMarks[c];
|
|
4
|
+
let i = r.bMarks[c] + r.tShift[c];
|
|
5
|
+
const e = r.src.charCodeAt(i++);
|
|
6
|
+
if (e !== 42 && e !== 45 && e !== 43)
|
|
7
|
+
return -1;
|
|
8
|
+
if (i < u) {
|
|
9
|
+
const l = r.src.charCodeAt(i);
|
|
10
|
+
if (!v(l))
|
|
11
|
+
return -1;
|
|
12
|
+
}
|
|
13
|
+
return i;
|
|
14
|
+
}
|
|
15
|
+
function y(r, c) {
|
|
16
|
+
const u = r.bMarks[c] + r.tShift[c], i = r.eMarks[c];
|
|
17
|
+
let e = u;
|
|
18
|
+
if (e + 1 >= i)
|
|
19
|
+
return -1;
|
|
20
|
+
let l = r.src.charCodeAt(e++);
|
|
21
|
+
if (l < 48 || l > 57)
|
|
22
|
+
return -1;
|
|
23
|
+
for (; ; ) {
|
|
24
|
+
if (e >= i)
|
|
25
|
+
return -1;
|
|
26
|
+
if (l = r.src.charCodeAt(e++), l >= 48 && l <= 57) {
|
|
27
|
+
if (e - u >= 10)
|
|
28
|
+
return -1;
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (l === 41 || l === 46)
|
|
32
|
+
break;
|
|
33
|
+
return -1;
|
|
34
|
+
}
|
|
35
|
+
return e < i && (l = r.src.charCodeAt(e), !v(l)) ? -1 : e;
|
|
36
|
+
}
|
|
37
|
+
function N(r, c) {
|
|
38
|
+
const u = r.level + 2;
|
|
39
|
+
for (let i = c + 2, e = r.tokens.length - 2; i < e; i++)
|
|
40
|
+
r.tokens[i].level === u && r.tokens[i].type === "paragraph_open" && (r.tokens[i + 2].hidden = !0, r.tokens[i].hidden = !0, i += 2);
|
|
41
|
+
}
|
|
42
|
+
function a(r, c, u, i) {
|
|
43
|
+
let e, l, m, o, n = c, x = !0;
|
|
44
|
+
if (r.sCount[n] - r.blkIndent >= 4 || r.listIndent >= 0 && r.sCount[n] - r.listIndent >= 4 && r.sCount[n] < r.blkIndent)
|
|
45
|
+
return !1;
|
|
46
|
+
let C = !1;
|
|
47
|
+
i && r.parentType === "paragraph" && r.sCount[n] >= r.blkIndent && (C = !0);
|
|
48
|
+
let k, b, f;
|
|
49
|
+
if ((f = y(r, n)) >= 0) {
|
|
50
|
+
if (k = !0, m = r.bMarks[n] + r.tShift[n], b = Number(r.src.slice(m, f - 1)), C && b !== 1) return !1;
|
|
51
|
+
} else if ((f = T(r, n)) >= 0)
|
|
52
|
+
k = !1;
|
|
53
|
+
else
|
|
54
|
+
return !1;
|
|
55
|
+
if (C && r.skipSpaces(f) >= r.eMarks[n])
|
|
56
|
+
return !1;
|
|
57
|
+
if (i)
|
|
58
|
+
return !0;
|
|
59
|
+
const d = r.src.charCodeAt(f - 1), E = r.tokens.length;
|
|
60
|
+
k ? (o = r.push("ordered_list_open", "ol", 1), b !== 1 && (o.attrs = [["start", b]])) : o = r.push("bullet_list_open", "ul", 1);
|
|
61
|
+
const S = [n, 0];
|
|
62
|
+
o.map = S, o.markup = String.fromCharCode(d);
|
|
63
|
+
let I = !1;
|
|
64
|
+
const M = r.md.block.ruler.getRules("list"), P = r.parentType;
|
|
65
|
+
for (r.parentType = "list"; n < u; ) {
|
|
66
|
+
l = f, e = r.eMarks[n];
|
|
67
|
+
const t = r.sCount[n] + f - (r.bMarks[n] + r.tShift[n]);
|
|
68
|
+
let p = t;
|
|
69
|
+
for (; l < e; ) {
|
|
70
|
+
const h = r.src.charCodeAt(l);
|
|
71
|
+
if (h === 9)
|
|
72
|
+
p += 4 - (p + r.bsCount[n]) % 4;
|
|
73
|
+
else if (h === 32)
|
|
74
|
+
p++;
|
|
75
|
+
else
|
|
76
|
+
break;
|
|
77
|
+
l++;
|
|
78
|
+
}
|
|
79
|
+
const g = l;
|
|
80
|
+
let s;
|
|
81
|
+
g >= e ? s = 1 : s = p - t, s > 4 && (s = 1);
|
|
82
|
+
const w = t + s;
|
|
83
|
+
o = r.push("list_item_open", "li", 1), o.markup = String.fromCharCode(d);
|
|
84
|
+
const _ = [n, 0];
|
|
85
|
+
o.map = _, k && (o.info = r.src.slice(m, f - 1));
|
|
86
|
+
const B = r.tight, O = r.tShift[n], R = r.sCount[n], z = r.listIndent;
|
|
87
|
+
if (r.listIndent = r.blkIndent, r.blkIndent = w, r.tight = !0, r.tShift[n] = g - r.bMarks[n], r.sCount[n] = p, g >= e && r.isEmpty(n + 1) ? r.line = Math.min(r.line + 2, u) : r.md.block.tokenize(r, n, u, !0), (!r.tight || I) && (x = !1), I = r.line - n > 1 && r.isEmpty(r.line - 1), r.blkIndent = r.listIndent, r.listIndent = z, r.tShift[n] = O, r.sCount[n] = R, r.tight = B, o = r.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), n = r.line, _[1] = n, n >= u || r.sCount[n] < r.blkIndent || r.sCount[n] - r.blkIndent >= 4)
|
|
88
|
+
break;
|
|
89
|
+
let A = !1;
|
|
90
|
+
for (let h = 0, D = M.length; h < D; h++)
|
|
91
|
+
if (M[h](r, n, u, !0)) {
|
|
92
|
+
A = !0;
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
if (A)
|
|
96
|
+
break;
|
|
97
|
+
if (k) {
|
|
98
|
+
if (f = y(r, n), f < 0)
|
|
99
|
+
break;
|
|
100
|
+
m = r.bMarks[n] + r.tShift[n];
|
|
101
|
+
} else if (f = T(r, n), f < 0)
|
|
102
|
+
break;
|
|
103
|
+
if (d !== r.src.charCodeAt(f - 1))
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
return k ? o = r.push("ordered_list_close", "ol", -1) : o = r.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(d), S[1] = n, r.line = n, r.parentType = P, x && N(r, E), !0;
|
|
107
|
+
}
|
|
108
|
+
export {
|
|
109
|
+
a as default
|
|
110
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function g(n, e, l) {
|
|
2
|
+
const i = n.md.block.ruler.getRules("paragraph"), c = n.parentType;
|
|
3
|
+
let r = e + 1;
|
|
4
|
+
for (n.parentType = "paragraph"; r < l && !n.isEmpty(r); r++) {
|
|
5
|
+
if (n.sCount[r] - n.blkIndent > 3 || n.sCount[r] < 0)
|
|
6
|
+
continue;
|
|
7
|
+
let u = !1;
|
|
8
|
+
for (let o = 0, h = i.length; o < h; o++)
|
|
9
|
+
if (i[o](n, r, l, !0)) {
|
|
10
|
+
u = !0;
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
if (u)
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
const a = n.getLines(e, r, n.blkIndent, !1).trim();
|
|
17
|
+
n.line = r;
|
|
18
|
+
const f = n.push("paragraph_open", "p", 1);
|
|
19
|
+
f.map = [e, n.line];
|
|
20
|
+
const p = n.push("inline", "", 0);
|
|
21
|
+
return p.content = a, p.map = [e, n.line], p.children = [], n.push("paragraph_close", "p", -1), n.parentType = c, !0;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
g as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { isSpace as h, normalizeReference as w } from "../common/utils.js";
|
|
2
|
+
function B(n, t, S, y) {
|
|
3
|
+
let e = n.bMarks[t] + n.tShift[t], i = n.eMarks[t], f = t + 1;
|
|
4
|
+
if (n.sCount[t] - n.blkIndent >= 4 || n.src.charCodeAt(e) !== 91)
|
|
5
|
+
return !1;
|
|
6
|
+
function s(r) {
|
|
7
|
+
const o = n.lineMax;
|
|
8
|
+
if (r >= o || n.isEmpty(r))
|
|
9
|
+
return null;
|
|
10
|
+
let k = !1;
|
|
11
|
+
if (n.sCount[r] - n.blkIndent > 3 && (k = !0), n.sCount[r] < 0 && (k = !0), !k) {
|
|
12
|
+
const x = n.md.block.ruler.getRules("reference"), R = n.parentType;
|
|
13
|
+
n.parentType = "reference";
|
|
14
|
+
let g = !1;
|
|
15
|
+
for (let C = 0, E = x.length; C < E; C++)
|
|
16
|
+
if (x[C](n, r, o, !0)) {
|
|
17
|
+
g = !0;
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
if (n.parentType = R, g)
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
const v = n.bMarks[r] + n.tShift[r], M = n.eMarks[r];
|
|
24
|
+
return n.src.slice(v, M + 1);
|
|
25
|
+
}
|
|
26
|
+
let l = n.src.slice(e, i + 1);
|
|
27
|
+
i = l.length;
|
|
28
|
+
let u = -1;
|
|
29
|
+
for (e = 1; e < i; e++) {
|
|
30
|
+
const r = l.charCodeAt(e);
|
|
31
|
+
if (r === 91)
|
|
32
|
+
return !1;
|
|
33
|
+
if (r === 93) {
|
|
34
|
+
u = e;
|
|
35
|
+
break;
|
|
36
|
+
} else if (r === 10) {
|
|
37
|
+
const o = s(f);
|
|
38
|
+
o !== null && (l += o, i = l.length, f++);
|
|
39
|
+
} else if (r === 92 && (e++, e < i && l.charCodeAt(e) === 10)) {
|
|
40
|
+
const o = s(f);
|
|
41
|
+
o !== null && (l += o, i = l.length, f++);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (u < 0 || l.charCodeAt(u + 1) !== 58)
|
|
45
|
+
return !1;
|
|
46
|
+
for (e = u + 2; e < i; e++) {
|
|
47
|
+
const r = l.charCodeAt(e);
|
|
48
|
+
if (r === 10) {
|
|
49
|
+
const o = s(f);
|
|
50
|
+
o !== null && (l += o, i = l.length, f++);
|
|
51
|
+
} else if (!h(r)) break;
|
|
52
|
+
}
|
|
53
|
+
const p = n.md.helpers.parseLinkDestination(l, e, i);
|
|
54
|
+
if (!p.ok)
|
|
55
|
+
return !1;
|
|
56
|
+
const A = n.md.normalizeLink(p.str);
|
|
57
|
+
if (!n.md.validateLink(A))
|
|
58
|
+
return !1;
|
|
59
|
+
e = p.pos;
|
|
60
|
+
const m = e, b = f, T = e;
|
|
61
|
+
for (; e < i; e++) {
|
|
62
|
+
const r = l.charCodeAt(e);
|
|
63
|
+
if (r === 10) {
|
|
64
|
+
const o = s(f);
|
|
65
|
+
o !== null && (l += o, i = l.length, f++);
|
|
66
|
+
} else if (!h(r)) break;
|
|
67
|
+
}
|
|
68
|
+
let c = n.md.helpers.parseLinkTitle(l, e, i);
|
|
69
|
+
for (; c.can_continue; ) {
|
|
70
|
+
const r = s(f);
|
|
71
|
+
if (r === null) break;
|
|
72
|
+
l += r, e = i, i = l.length, f++, c = n.md.helpers.parseLinkTitle(l, e, i, c);
|
|
73
|
+
}
|
|
74
|
+
let d;
|
|
75
|
+
for (e < i && T !== e && c.ok ? (d = c.str, e = c.pos) : (d = "", e = m, f = b); e < i; ) {
|
|
76
|
+
const r = l.charCodeAt(e);
|
|
77
|
+
if (!h(r))
|
|
78
|
+
break;
|
|
79
|
+
e++;
|
|
80
|
+
}
|
|
81
|
+
if (e < i && l.charCodeAt(e) !== 10 && d)
|
|
82
|
+
for (d = "", e = m, f = b; e < i; ) {
|
|
83
|
+
const r = l.charCodeAt(e);
|
|
84
|
+
if (!h(r))
|
|
85
|
+
break;
|
|
86
|
+
e++;
|
|
87
|
+
}
|
|
88
|
+
if (e < i && l.charCodeAt(e) !== 10)
|
|
89
|
+
return !1;
|
|
90
|
+
const a = w(l.slice(1, u));
|
|
91
|
+
return a ? (y || (typeof n.env.references > "u" && (n.env.references = {}), typeof n.env.references[a] > "u" && (n.env.references[a] = { title: d, href: A }), n.line = f), !0) : !1;
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
B as default
|
|
95
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import C from "../token.js";
|
|
2
|
+
import { isSpace as k } from "../common/utils.js";
|
|
3
|
+
function o(n, t, s, i) {
|
|
4
|
+
this.src = n, this.md = t, this.env = s, this.tokens = i, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
5
|
+
const c = this.src;
|
|
6
|
+
for (let u = 0, r = 0, h = 0, e = 0, f = c.length, a = !1; r < f; r++) {
|
|
7
|
+
const l = c.charCodeAt(r);
|
|
8
|
+
if (!a)
|
|
9
|
+
if (k(l)) {
|
|
10
|
+
h++, l === 9 ? e += 4 - e % 4 : e++;
|
|
11
|
+
continue;
|
|
12
|
+
} else
|
|
13
|
+
a = !0;
|
|
14
|
+
(l === 10 || r === f - 1) && (l !== 10 && r++, this.bMarks.push(u), this.eMarks.push(r), this.tShift.push(h), this.sCount.push(e), this.bsCount.push(0), a = !1, h = 0, e = 0, u = r + 1);
|
|
15
|
+
}
|
|
16
|
+
this.bMarks.push(c.length), this.eMarks.push(c.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
17
|
+
}
|
|
18
|
+
o.prototype.push = function(n, t, s) {
|
|
19
|
+
const i = new C(n, t, s);
|
|
20
|
+
return i.block = !0, s < 0 && this.level--, i.level = this.level, s > 0 && this.level++, this.tokens.push(i), i;
|
|
21
|
+
};
|
|
22
|
+
o.prototype.isEmpty = function(t) {
|
|
23
|
+
return this.bMarks[t] + this.tShift[t] >= this.eMarks[t];
|
|
24
|
+
};
|
|
25
|
+
o.prototype.skipEmptyLines = function(t) {
|
|
26
|
+
for (let s = this.lineMax; t < s && !(this.bMarks[t] + this.tShift[t] < this.eMarks[t]); t++)
|
|
27
|
+
;
|
|
28
|
+
return t;
|
|
29
|
+
};
|
|
30
|
+
o.prototype.skipSpaces = function(t) {
|
|
31
|
+
for (let s = this.src.length; t < s; t++) {
|
|
32
|
+
const i = this.src.charCodeAt(t);
|
|
33
|
+
if (!k(i))
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
};
|
|
38
|
+
o.prototype.skipSpacesBack = function(t, s) {
|
|
39
|
+
if (t <= s)
|
|
40
|
+
return t;
|
|
41
|
+
for (; t > s; )
|
|
42
|
+
if (!k(this.src.charCodeAt(--t)))
|
|
43
|
+
return t + 1;
|
|
44
|
+
return t;
|
|
45
|
+
};
|
|
46
|
+
o.prototype.skipChars = function(t, s) {
|
|
47
|
+
for (let i = this.src.length; t < i && this.src.charCodeAt(t) === s; t++)
|
|
48
|
+
;
|
|
49
|
+
return t;
|
|
50
|
+
};
|
|
51
|
+
o.prototype.skipCharsBack = function(t, s, i) {
|
|
52
|
+
if (t <= i)
|
|
53
|
+
return t;
|
|
54
|
+
for (; t > i; )
|
|
55
|
+
if (s !== this.src.charCodeAt(--t))
|
|
56
|
+
return t + 1;
|
|
57
|
+
return t;
|
|
58
|
+
};
|
|
59
|
+
o.prototype.getLines = function(t, s, i, c) {
|
|
60
|
+
if (t >= s)
|
|
61
|
+
return "";
|
|
62
|
+
const u = new Array(s - t);
|
|
63
|
+
for (let r = 0, h = t; h < s; h++, r++) {
|
|
64
|
+
let e = 0;
|
|
65
|
+
const f = this.bMarks[h];
|
|
66
|
+
let a = f, l;
|
|
67
|
+
for (h + 1 < s || c ? l = this.eMarks[h] + 1 : l = this.eMarks[h]; a < l && e < i; ) {
|
|
68
|
+
const p = this.src.charCodeAt(a);
|
|
69
|
+
if (k(p))
|
|
70
|
+
p === 9 ? e += 4 - (e + this.bsCount[h]) % 4 : e++;
|
|
71
|
+
else if (a - f < this.tShift[h])
|
|
72
|
+
e++;
|
|
73
|
+
else
|
|
74
|
+
break;
|
|
75
|
+
a++;
|
|
76
|
+
}
|
|
77
|
+
e > i ? u[r] = new Array(e - i + 1).join(" ") + this.src.slice(a, l) : u[r] = this.src.slice(a, l);
|
|
78
|
+
}
|
|
79
|
+
return u.join("");
|
|
80
|
+
};
|
|
81
|
+
o.prototype.Token = C;
|
|
82
|
+
export {
|
|
83
|
+
o as default
|
|
84
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { isSpace as g } from "../common/utils.js";
|
|
2
|
+
const S = 65536;
|
|
3
|
+
function x(e, o) {
|
|
4
|
+
const p = e.bMarks[o] + e.tShift[o], h = e.eMarks[o];
|
|
5
|
+
return e.src.slice(p, h);
|
|
6
|
+
}
|
|
7
|
+
function y(e) {
|
|
8
|
+
const o = [], p = e.length;
|
|
9
|
+
let h = 0, l = e.charCodeAt(h), i = !1, f = 0, c = "";
|
|
10
|
+
for (; h < p; )
|
|
11
|
+
l === 124 && (i ? (c += e.substring(f, h - 1), f = h) : (o.push(c + e.substring(f, h)), c = "", f = h + 1)), i = l === 92, h++, l = e.charCodeAt(h);
|
|
12
|
+
return o.push(c + e.substring(f)), o;
|
|
13
|
+
}
|
|
14
|
+
function O(e, o, p, h) {
|
|
15
|
+
if (o + 2 > p)
|
|
16
|
+
return !1;
|
|
17
|
+
let l = o + 1;
|
|
18
|
+
if (e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
19
|
+
return !1;
|
|
20
|
+
let i = e.bMarks[l] + e.tShift[l];
|
|
21
|
+
if (i >= e.eMarks[l])
|
|
22
|
+
return !1;
|
|
23
|
+
const f = e.src.charCodeAt(i++);
|
|
24
|
+
if (f !== 124 && f !== 45 && f !== 58 || i >= e.eMarks[l])
|
|
25
|
+
return !1;
|
|
26
|
+
const c = e.src.charCodeAt(i++);
|
|
27
|
+
if (c !== 124 && c !== 45 && c !== 58 && !g(c) || f === 45 && g(c))
|
|
28
|
+
return !1;
|
|
29
|
+
for (; i < e.eMarks[l]; ) {
|
|
30
|
+
const r = e.src.charCodeAt(i);
|
|
31
|
+
if (r !== 124 && r !== 45 && r !== 58 && !g(r))
|
|
32
|
+
return !1;
|
|
33
|
+
i++;
|
|
34
|
+
}
|
|
35
|
+
let d = x(e, o + 1), n = d.split("|");
|
|
36
|
+
const s = [];
|
|
37
|
+
for (let r = 0; r < n.length; r++) {
|
|
38
|
+
const u = n[r].trim();
|
|
39
|
+
if (!u) {
|
|
40
|
+
if (r === 0 || r === n.length - 1)
|
|
41
|
+
continue;
|
|
42
|
+
return !1;
|
|
43
|
+
}
|
|
44
|
+
if (!/^:?-+:?$/.test(u))
|
|
45
|
+
return !1;
|
|
46
|
+
u.charCodeAt(u.length - 1) === 58 ? s.push(u.charCodeAt(0) === 58 ? "center" : "right") : u.charCodeAt(0) === 58 ? s.push("left") : s.push("");
|
|
47
|
+
}
|
|
48
|
+
if (d = x(e, o).trim(), d.indexOf("|") === -1 || e.sCount[o] - e.blkIndent >= 4)
|
|
49
|
+
return !1;
|
|
50
|
+
n = y(d), n.length && n[0] === "" && n.shift(), n.length && n[n.length - 1] === "" && n.pop();
|
|
51
|
+
const b = n.length;
|
|
52
|
+
if (b === 0 || b !== s.length)
|
|
53
|
+
return !1;
|
|
54
|
+
if (h)
|
|
55
|
+
return !0;
|
|
56
|
+
const M = e.parentType;
|
|
57
|
+
e.parentType = "table";
|
|
58
|
+
const C = e.md.block.ruler.getRules("blockquote"), T = e.push("table_open", "table", 1), m = [o, 0];
|
|
59
|
+
T.map = m;
|
|
60
|
+
const D = e.push("thead_open", "thead", 1);
|
|
61
|
+
D.map = [o, o + 1];
|
|
62
|
+
const I = e.push("tr_open", "tr", 1);
|
|
63
|
+
I.map = [o, o + 1];
|
|
64
|
+
for (let r = 0; r < n.length; r++) {
|
|
65
|
+
const u = e.push("th_open", "th", 1);
|
|
66
|
+
s[r] && (u.attrs = [["style", "text-align:" + s[r]]]);
|
|
67
|
+
const t = e.push("inline", "", 0);
|
|
68
|
+
t.content = n[r].trim(), t.children = [], e.push("th_close", "th", -1);
|
|
69
|
+
}
|
|
70
|
+
e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
|
|
71
|
+
let k, A = 0;
|
|
72
|
+
for (l = o + 2; l < p && !(e.sCount[l] < e.blkIndent); l++) {
|
|
73
|
+
let r = !1;
|
|
74
|
+
for (let t = 0, _ = C.length; t < _; t++)
|
|
75
|
+
if (C[t](e, l, p, !0)) {
|
|
76
|
+
r = !0;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
if (r || (d = x(e, l).trim(), !d) || e.sCount[l] - e.blkIndent >= 4 || (n = y(d), n.length && n[0] === "" && n.shift(), n.length && n[n.length - 1] === "" && n.pop(), A += b - n.length, A > S))
|
|
80
|
+
break;
|
|
81
|
+
if (l === o + 2) {
|
|
82
|
+
const t = e.push("tbody_open", "tbody", 1);
|
|
83
|
+
t.map = k = [o + 2, 0];
|
|
84
|
+
}
|
|
85
|
+
const u = e.push("tr_open", "tr", 1);
|
|
86
|
+
u.map = [l, l + 1];
|
|
87
|
+
for (let t = 0; t < b; t++) {
|
|
88
|
+
const _ = e.push("td_open", "td", 1);
|
|
89
|
+
s[t] && (_.attrs = [["style", "text-align:" + s[t]]]);
|
|
90
|
+
const a = e.push("inline", "", 0);
|
|
91
|
+
a.content = n[t] ? n[t].trim() : "", a.children = [], e.push("td_close", "td", -1);
|
|
92
|
+
}
|
|
93
|
+
e.push("tr_close", "tr", -1);
|
|
94
|
+
}
|
|
95
|
+
return k && (e.push("tbody_close", "tbody", -1), k[1] = l), e.push("table_close", "table", -1), m[1] = l, e.parentType = M, e.line = l, !0;
|
|
96
|
+
}
|
|
97
|
+
export {
|
|
98
|
+
O as default
|
|
99
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { arrayReplaceAt as _ } from "../common/utils.js";
|
|
2
|
+
function w(e) {
|
|
3
|
+
return /^<a[>\s]/i.test(e);
|
|
4
|
+
}
|
|
5
|
+
function g(e) {
|
|
6
|
+
return /^<\/a\s*>/i.test(e);
|
|
7
|
+
}
|
|
8
|
+
function b(e) {
|
|
9
|
+
const f = e.tokens;
|
|
10
|
+
if (e.md.options.linkify)
|
|
11
|
+
for (let k = 0, T = f.length; k < T; k++) {
|
|
12
|
+
if (f[k].type !== "inline" || !e.md.linkify.pretest(f[k].content))
|
|
13
|
+
continue;
|
|
14
|
+
let c = f[k].children, u = 0;
|
|
15
|
+
for (let l = c.length - 1; l >= 0; l--) {
|
|
16
|
+
const i = c[l];
|
|
17
|
+
if (i.type === "link_close") {
|
|
18
|
+
for (l--; c[l].level !== i.level && c[l].type !== "link_open"; )
|
|
19
|
+
l--;
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
if (i.type === "html_inline" && (w(i.content) && u > 0 && u--, g(i.content) && u++), !(u > 0) && i.type === "text" && e.md.linkify.test(i.content)) {
|
|
23
|
+
const h = i.content;
|
|
24
|
+
let t = e.md.linkify.match(h);
|
|
25
|
+
const s = [];
|
|
26
|
+
let r = i.level, p = 0;
|
|
27
|
+
t.length > 0 && t[0].index === 0 && l > 0 && c[l - 1].type === "text_special" && (t = t.slice(1));
|
|
28
|
+
for (let n = 0; n < t.length; n++) {
|
|
29
|
+
const L = t[n].url, y = e.md.normalizeLink(L);
|
|
30
|
+
if (!e.md.validateLink(y))
|
|
31
|
+
continue;
|
|
32
|
+
let o = t[n].text;
|
|
33
|
+
t[n].schema ? t[n].schema === "mailto:" && !/^mailto:/i.test(o) ? o = e.md.normalizeLinkText("mailto:" + o).replace(/^mailto:/, "") : o = e.md.normalizeLinkText(o) : o = e.md.normalizeLinkText("http://" + o).replace(/^http:\/\//, "");
|
|
34
|
+
const v = t[n].index;
|
|
35
|
+
if (v > p) {
|
|
36
|
+
const x = new e.Token("text", "", 0);
|
|
37
|
+
x.content = h.slice(p, v), x.level = r, s.push(x);
|
|
38
|
+
}
|
|
39
|
+
const m = new e.Token("link_open", "a", 1);
|
|
40
|
+
m.attrs = [["href", y]], m.level = r++, m.markup = "linkify", m.info = "auto", s.push(m);
|
|
41
|
+
const d = new e.Token("text", "", 0);
|
|
42
|
+
d.content = o, d.level = r, s.push(d);
|
|
43
|
+
const a = new e.Token("link_close", "a", -1);
|
|
44
|
+
a.level = --r, a.markup = "linkify", a.info = "auto", s.push(a), p = t[n].lastIndex;
|
|
45
|
+
}
|
|
46
|
+
if (p < h.length) {
|
|
47
|
+
const n = new e.Token("text", "", 0);
|
|
48
|
+
n.content = h.slice(p), n.level = r, s.push(n);
|
|
49
|
+
}
|
|
50
|
+
f[k].children = c = _(c, l, s);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
b as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const c = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, i = /\((c|tm|r)\)/i, l = /\((c|tm|r)\)/ig, r = {
|
|
2
|
+
c: "©",
|
|
3
|
+
r: "®",
|
|
4
|
+
tm: "™"
|
|
5
|
+
};
|
|
6
|
+
function p(n, e) {
|
|
7
|
+
return r[e.toLowerCase()];
|
|
8
|
+
}
|
|
9
|
+
function f(n) {
|
|
10
|
+
let e = 0;
|
|
11
|
+
for (let o = n.length - 1; o >= 0; o--) {
|
|
12
|
+
const t = n[o];
|
|
13
|
+
t.type === "text" && !e && (t.content = t.content.replace(l, p)), t.type === "link_open" && t.info === "auto" && e--, t.type === "link_close" && t.info === "auto" && e++;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function a(n) {
|
|
17
|
+
let e = 0;
|
|
18
|
+
for (let o = n.length - 1; o >= 0; o--) {
|
|
19
|
+
const t = n[o];
|
|
20
|
+
t.type === "text" && !e && c.test(t.content) && (t.content = t.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), t.type === "link_open" && t.info === "auto" && e--, t.type === "link_close" && t.info === "auto" && e++;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function s(n) {
|
|
24
|
+
let e;
|
|
25
|
+
if (n.md.options.typographer)
|
|
26
|
+
for (e = n.tokens.length - 1; e >= 0; e--)
|
|
27
|
+
n.tokens[e].type === "inline" && (i.test(n.tokens[e].content) && f(n.tokens[e].children), c.test(n.tokens[e].content) && a(n.tokens[e].children));
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
s as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { isMdAsciiPunct as v, isPunctChar as E, isWhiteSpace as P } from "../common/utils.js";
|
|
2
|
+
const T = /['"]/, q = /['"]/g, O = "’";
|
|
3
|
+
function b(t, n, e) {
|
|
4
|
+
return t.slice(0, n) + e + t.slice(n + 1);
|
|
5
|
+
}
|
|
6
|
+
function Q(t, n) {
|
|
7
|
+
let e;
|
|
8
|
+
const i = [];
|
|
9
|
+
for (let c = 0; c < t.length; c++) {
|
|
10
|
+
const l = t[c], x = t[c].level;
|
|
11
|
+
for (e = i.length - 1; e >= 0 && !(i[e].level <= x); e--)
|
|
12
|
+
;
|
|
13
|
+
if (i.length = e + 1, l.type !== "text")
|
|
14
|
+
continue;
|
|
15
|
+
let h = l.content, r = 0, m = h.length;
|
|
16
|
+
e:
|
|
17
|
+
for (; r < m; ) {
|
|
18
|
+
q.lastIndex = r;
|
|
19
|
+
const o = q.exec(h);
|
|
20
|
+
if (!o)
|
|
21
|
+
break;
|
|
22
|
+
let s = !0, f = !0;
|
|
23
|
+
r = o.index + 1;
|
|
24
|
+
const d = o[0] === "'";
|
|
25
|
+
let a = 32;
|
|
26
|
+
if (o.index - 1 >= 0)
|
|
27
|
+
a = h.charCodeAt(o.index - 1);
|
|
28
|
+
else
|
|
29
|
+
for (e = c - 1; e >= 0 && !(t[e].type === "softbreak" || t[e].type === "hardbreak"); e--)
|
|
30
|
+
if (t[e].content) {
|
|
31
|
+
a = t[e].content.charCodeAt(t[e].content.length - 1);
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
let u = 32;
|
|
35
|
+
if (r < m)
|
|
36
|
+
u = h.charCodeAt(r);
|
|
37
|
+
else
|
|
38
|
+
for (e = c + 1; e < t.length && !(t[e].type === "softbreak" || t[e].type === "hardbreak"); e++)
|
|
39
|
+
if (t[e].content) {
|
|
40
|
+
u = t[e].content.charCodeAt(0);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
const k = v(a) || E(String.fromCharCode(a)), S = v(u) || E(String.fromCharCode(u)), y = P(a), A = P(u);
|
|
44
|
+
if (A ? s = !1 : S && (y || k || (s = !1)), y ? f = !1 : k && (A || S || (f = !1)), u === 34 && o[0] === '"' && a >= 48 && a <= 57 && (f = s = !1), s && f && (s = k, f = S), !s && !f) {
|
|
45
|
+
d && (l.content = b(l.content, o.index, O));
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (f)
|
|
49
|
+
for (e = i.length - 1; e >= 0; e--) {
|
|
50
|
+
let p = i[e];
|
|
51
|
+
if (i[e].level < x)
|
|
52
|
+
break;
|
|
53
|
+
if (p.single === d && i[e].level === x) {
|
|
54
|
+
p = i[e];
|
|
55
|
+
let g, C;
|
|
56
|
+
d ? (g = n.md.options.quotes[2], C = n.md.options.quotes[3]) : (g = n.md.options.quotes[0], C = n.md.options.quotes[1]), l.content = b(l.content, o.index, C), t[p.token].content = b(
|
|
57
|
+
t[p.token].content,
|
|
58
|
+
p.pos,
|
|
59
|
+
g
|
|
60
|
+
), r += C.length - 1, p.token === c && (r += g.length - 1), h = l.content, m = h.length, i.length = e;
|
|
61
|
+
continue e;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
s ? i.push({
|
|
65
|
+
token: c,
|
|
66
|
+
pos: o.index,
|
|
67
|
+
single: d,
|
|
68
|
+
level: x
|
|
69
|
+
}) : f && d && (l.content = b(l.content, o.index, O));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function L(t) {
|
|
74
|
+
if (t.md.options.typographer)
|
|
75
|
+
for (let n = t.tokens.length - 1; n >= 0; n--)
|
|
76
|
+
t.tokens[n].type !== "inline" || !T.test(t.tokens[n].content) || Q(t.tokens[n].children, t);
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
L as default
|
|
80
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function f(i) {
|
|
2
|
+
let t, n;
|
|
3
|
+
const c = i.tokens, s = c.length;
|
|
4
|
+
for (let o = 0; o < s; o++) {
|
|
5
|
+
if (c[o].type !== "inline") continue;
|
|
6
|
+
const e = c[o].children, l = e.length;
|
|
7
|
+
for (t = 0; t < l; t++)
|
|
8
|
+
e[t].type === "text_special" && (e[t].type = "text");
|
|
9
|
+
for (t = n = 0; t < l; t++)
|
|
10
|
+
e[t].type === "text" && t + 1 < l && e[t + 1].type === "text" ? e[t + 1].content = e[t].content + e[t + 1].content : (t !== n && (e[n] = e[t]), n++);
|
|
11
|
+
t !== n && (e.length = n);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
f as default
|
|
16
|
+
};
|