@baishuyun/ai-design 2.0.31 → 2.0.33
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/CHANGELOG.md +18 -0
- package/package.json +4 -4
- package/src/components/agent-helper/field-select/index.tsx +4 -1
- package/src/components/form-info-editor.tsx +13 -3
- package/.claude/settings.local.json +0 -7
- package/.turbo/turbo-build.log +0 -574
- package/debug-storybook.log +0 -19
- package/dist/ai-design.js +0 -39928
- package/dist/ai-design.js.map +0 -1
- package/dist/ai-design.umd.cjs +0 -591
- package/dist/ai-design.umd.cjs.map +0 -1
- package/dist/index.css +0 -1
- package/storybook-static/assets/AbsFullscreenGradientBg.stories-Hd2WmWkA.js +0 -18
- package/storybook-static/assets/AgentScrollSelector.stories-C3rsFZ6F.js +0 -40
- package/storybook-static/assets/AgentSelect.stories-DVhwD0rq.js +0 -53
- package/storybook-static/assets/AttachmentPart.stories-ejj4i7n-.js +0 -45
- package/storybook-static/assets/AttachmentPartGroup.stories-5Zdayw6l.js +0 -34
- package/storybook-static/assets/AttachmentsPreviewer.stories-DyjtCRco.js +0 -138
- package/storybook-static/assets/BaseButton.stories-DrGEYx9W.js +0 -11
- package/storybook-static/assets/BorderAnimation.stories-D9p4pgL6.js +0 -87
- package/storybook-static/assets/BorderColorAnimation.stories-tvilZOeG.js +0 -42
- package/storybook-static/assets/BotAvatarAndName.stories-B8ZNN2_J.js +0 -5
- package/storybook-static/assets/BotIcon.stories-DAyXSQDa.js +0 -3
- package/storybook-static/assets/BsEntrySelect.stories-B2B9FZWy.js +0 -119
- package/storybook-static/assets/BsTooltip.stories-Bf_LcqnK.js +0 -6
- package/storybook-static/assets/Card.stories-BSeowjg-.js +0 -8
- package/storybook-static/assets/CardField.stories-CYnnBUTk.js +0 -41
- package/storybook-static/assets/ChatAreaHeader.stories-muYZq_ix.js +0 -6
- package/storybook-static/assets/CircleChecker.stories-CueVuqmn.js +0 -38
- package/storybook-static/assets/CollapsibleTextMsg.stories-Bl8inRXa.js +0 -21
- package/storybook-static/assets/Color-ASIRERSW-CAiV6Nyl.js +0 -1
- package/storybook-static/assets/Combination-CZ7kzc03.js +0 -41
- package/storybook-static/assets/ConfirmDialog.stories-C3TDIr-r.js +0 -42
- package/storybook-static/assets/DocsRenderer-GHJI37HO-DLf4p3c1.js +0 -763
- package/storybook-static/assets/FakeBotMsg.stories-CSC1k9UE.js +0 -14
- package/storybook-static/assets/FormInfoEditor.stories-DcLwCSHN.js +0 -75
- package/storybook-static/assets/FormulaTag.stories-hiPYLb6Y.js +0 -29
- package/storybook-static/assets/GenerateAnimation.stories-C5qGwAy0.js +0 -14
- package/storybook-static/assets/IconBtn.stories-pcl--4Wl.js +0 -10
- package/storybook-static/assets/Icons.stories-FN8wG7iW.js +0 -3
- package/storybook-static/assets/ImgMsgPart.stories-CkiWUjiY.js +0 -15
- package/storybook-static/assets/LegacySlot.stories-C_PeMEjh.js +0 -38
- package/storybook-static/assets/LineChecker.stories-DcChEKvO.js +0 -93
- package/storybook-static/assets/LinearGradientBorderBtn.stories-CQgLcYJf.js +0 -46
- package/storybook-static/assets/LinearGradientColorBgAnimation.stories-D9NYfNzo.js +0 -43
- package/storybook-static/assets/MemoizedMarkdown.stories-BxOuEc_8.js +0 -195
- package/storybook-static/assets/MessageContent.stories-Cz7z6a8d.js +0 -14
- package/storybook-static/assets/NumbersMsgPart.stories-Dke7EvTU.js +0 -16
- package/storybook-static/assets/OfficeContainer.stories-DpQ7TB3v.js +0 -116
- package/storybook-static/assets/OptionItem.stories-BNr85yzu.js +0 -44
- package/storybook-static/assets/PreviewerHeader.stories-IxioHG75.js +0 -68
- package/storybook-static/assets/PrimaryConfirmBtn.stories-Dg0OQKbA.js +0 -30
- package/storybook-static/assets/PrimaryEntryBtn.stories-Baz1MVoZ.js +0 -35
- package/storybook-static/assets/ScrollToBottom.stories-DqAOmU_g.js +0 -5
- package/storybook-static/assets/SplitLine.stories-CbkBng-u.js +0 -9
- package/storybook-static/assets/SquareChecker.stories-BFXpWaHr.js +0 -43
- package/storybook-static/assets/TabRadioGroup.stories-d3CvjAQV.js +0 -54
- package/storybook-static/assets/UserTextMsgBubble.stories-Dv5HUEKe.js +0 -5
- package/storybook-static/assets/WarningMessage.stories-DoHvvVJB.js +0 -3
- package/storybook-static/assets/WithTooltip-IO6J4KBT-5iq4HD_s.js +0 -9
- package/storybook-static/assets/abs-fullscreen-gradient-bg-pEhwW8Lt.js +0 -1
- package/storybook-static/assets/agent-select-BlwXZgPu.js +0 -1
- package/storybook-static/assets/attachment-part-_D41HaS7.js +0 -1
- package/storybook-static/assets/base-button-BGn3Fo0B.js +0 -1
- package/storybook-static/assets/border-color-animation-BoCxpIBW.js +0 -10
- package/storybook-static/assets/bot-icon-Ci07j_8n.js +0 -1
- package/storybook-static/assets/bs-icons-CDeLTCWJ.js +0 -1
- package/storybook-static/assets/button-Cyp2OfiJ.js +0 -1
- package/storybook-static/assets/collapsible-TCbdh_v_.js +0 -1
- package/storybook-static/assets/collapsible-txt-msg-DukRF1Ws.js +0 -1
- package/storybook-static/assets/collapsible.stories-DmrXoEsa.js +0 -25
- package/storybook-static/assets/confirm-dialog-BO5s3AJb.js +0 -1
- package/storybook-static/assets/createLucideIcon-CkLwfbD4.js +0 -21
- package/storybook-static/assets/drawer.stories-BdM7Wbzl.js +0 -123
- package/storybook-static/assets/field-checker-f9FOL58q.js +0 -1
- package/storybook-static/assets/field-checker-list-msg.stories-B_6usiWl.js +0 -37
- package/storybook-static/assets/field-checker.stories-BghsIYEd.js +0 -91
- package/storybook-static/assets/field-icon-6Mrtj4c9.js +0 -1
- package/storybook-static/assets/field-icon.stories-D9Ukdb7l.js +0 -57
- package/storybook-static/assets/field-value-checker-BOyFGXwK.js +0 -1
- package/storybook-static/assets/field-value-checker.stories-Ch-7H5CO.js +0 -93
- package/storybook-static/assets/fields-design-info-table.stories-CtmX3mmp.js +0 -75
- package/storybook-static/assets/fields-generating-indicator-Cex4HigZ.js +0 -12
- package/storybook-static/assets/fields-generating.stories-CAtWVnX3.js +0 -16
- package/storybook-static/assets/fields-previewer.stories-D3USvSB3.js +0 -48
- package/storybook-static/assets/font-icon-Ts3EnP1y.js +0 -1
- package/storybook-static/assets/formatter-QJ4M4OGQ-Db-9LUhi.js +0 -1
- package/storybook-static/assets/icon-btn-B-A_0V7W.js +0 -1
- package/storybook-static/assets/icons-iPP3Tbk5.js +0 -1
- package/storybook-static/assets/iframe-BNpZCkNl.js +0 -1071
- package/storybook-static/assets/iframe-DHG3NC8n.css +0 -1
- package/storybook-static/assets/img-part-CWcYacNo.js +0 -1
- package/storybook-static/assets/index-B-T-IyWu.js +0 -24
- package/storybook-static/assets/index-CCxWT_9r.js +0 -1
- package/storybook-static/assets/index-CXB_DHA8.js +0 -1
- package/storybook-static/assets/index-CY6zduIX.js +0 -5
- package/storybook-static/assets/index-CaU3vELI.js +0 -5
- package/storybook-static/assets/index-D-D2iJjc.js +0 -1
- package/storybook-static/assets/index-DFx_ePTl.js +0 -1
- package/storybook-static/assets/index-DZuATJno.js +0 -1
- package/storybook-static/assets/index-DvxqVOC1.js +0 -1
- package/storybook-static/assets/index-KJpiBtEb.js +0 -1
- package/storybook-static/assets/jsx-runtime-CpaO0gaJ.js +0 -9
- package/storybook-static/assets/line-checker-DSzQ_hxZ.js +0 -1
- package/storybook-static/assets/linear-gradient-color-bg-animation-DIBcKbzI.js +0 -39
- package/storybook-static/assets/message-content-DwEkjIr8.js +0 -1
- package/storybook-static/assets/option-item-DVwitDz1.js +0 -1
- package/storybook-static/assets/preload-helper-CmsKOCeN.js +0 -1
- package/storybook-static/assets/previewer-header-BzO0Sbpf.js +0 -6
- package/storybook-static/assets/primary-confirm-btn-CW72MiLv.js +0 -1
- package/storybook-static/assets/react-18-Cn3rktXT.js +0 -1
- package/storybook-static/assets/square-checker-BKGRXJag.js +0 -1
- package/storybook-static/assets/subform-fields-value-checker-DCstRpVF.js +0 -7
- package/storybook-static/assets/subform-fields-value-checker.stories-BCg_WRIi.js +0 -114
- package/storybook-static/assets/syntaxhighlighter-IQDEPFLK-RkNUra3q.js +0 -6
- package/storybook-static/assets/tooltip-3SR6ujOq.js +0 -1
- package/storybook-static/assets/ui-B16ZxGB5.js +0 -4
- package/storybook-static/assets/utils-CXGjNK-X.js +0 -1
- package/storybook-static/favicon-wrapper.svg +0 -46
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -687
- package/storybook-static/index.html +0 -143
- package/storybook-static/index.json +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/docs-1/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -628
- package/storybook-static/sb-addons/vitest-2/manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +0 -75605
- package/storybook-static/sb-manager/globals.js +0 -24
- package/storybook-static/sb-manager/manager-stores.js +0 -23
- package/storybook-static/sb-manager/runtime.js +0 -19717
- package/storybook-static/src/components/abs-fullscreen-gradient-bg.d.ts +0 -10
- package/storybook-static/src/components/abs-fullscreen-gradient-bg.d.ts.map +0 -1
- package/storybook-static/src/components/agent-scroll-selector.d.ts +0 -12
- package/storybook-static/src/components/agent-scroll-selector.d.ts.map +0 -1
- package/storybook-static/src/components/agent-select.d.ts +0 -16
- package/storybook-static/src/components/agent-select.d.ts.map +0 -1
- package/storybook-static/src/components/attachment-part-group.d.ts +0 -16
- package/storybook-static/src/components/attachment-part-group.d.ts.map +0 -1
- package/storybook-static/src/components/attachment-part.d.ts +0 -19
- package/storybook-static/src/components/attachment-part.d.ts.map +0 -1
- package/storybook-static/src/components/attachments-previewer.d.ts +0 -18
- package/storybook-static/src/components/attachments-previewer.d.ts.map +0 -1
- package/storybook-static/src/components/base-button.d.ts +0 -8
- package/storybook-static/src/components/base-button.d.ts.map +0 -1
- package/storybook-static/src/components/border-animation.d.ts +0 -23
- package/storybook-static/src/components/border-animation.d.ts.map +0 -1
- package/storybook-static/src/components/border-color-animation.d.ts +0 -11
- package/storybook-static/src/components/border-color-animation.d.ts.map +0 -1
- package/storybook-static/src/components/bot-avatar-name.d.ts +0 -6
- package/storybook-static/src/components/bot-avatar-name.d.ts.map +0 -1
- package/storybook-static/src/components/bot-icon.d.ts +0 -5
- package/storybook-static/src/components/bot-icon.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/app-group-folder.d.ts +0 -6
- package/storybook-static/src/components/bs-entry-select/app-group-folder.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/bs-entry-select.d.ts +0 -4
- package/storybook-static/src/components/bs-entry-select/bs-entry-select.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/build-tree.d.ts +0 -9
- package/storybook-static/src/components/bs-entry-select/build-tree.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/entry-item.d.ts +0 -8
- package/storybook-static/src/components/bs-entry-select/entry-item.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/entry-popover.d.ts +0 -17
- package/storybook-static/src/components/bs-entry-select/entry-popover.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/index.d.ts +0 -3
- package/storybook-static/src/components/bs-entry-select/index.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/other-app-section.d.ts +0 -11
- package/storybook-static/src/components/bs-entry-select/other-app-section.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/scroll-slider.d.ts +0 -10
- package/storybook-static/src/components/bs-entry-select/scroll-slider.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/search-input.d.ts +0 -5
- package/storybook-static/src/components/bs-entry-select/search-input.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/tree-item-node.d.ts +0 -9
- package/storybook-static/src/components/bs-entry-select/tree-item-node.d.ts.map +0 -1
- package/storybook-static/src/components/bs-entry-select/types.d.ts +0 -28
- package/storybook-static/src/components/bs-entry-select/types.d.ts.map +0 -1
- package/storybook-static/src/components/bs-icons.d.ts +0 -77
- package/storybook-static/src/components/bs-icons.d.ts.map +0 -1
- package/storybook-static/src/components/card-field.d.ts +0 -11
- package/storybook-static/src/components/card-field.d.ts.map +0 -1
- package/storybook-static/src/components/card.d.ts +0 -11
- package/storybook-static/src/components/card.d.ts.map +0 -1
- package/storybook-static/src/components/chat-area-header.d.ts +0 -13
- package/storybook-static/src/components/chat-area-header.d.ts.map +0 -1
- package/storybook-static/src/components/circle-checker.d.ts +0 -10
- package/storybook-static/src/components/circle-checker.d.ts.map +0 -1
- package/storybook-static/src/components/collapsible-txt-msg.d.ts +0 -11
- package/storybook-static/src/components/collapsible-txt-msg.d.ts.map +0 -1
- package/storybook-static/src/components/collapsible.d.ts +0 -6
- package/storybook-static/src/components/collapsible.d.ts.map +0 -1
- package/storybook-static/src/components/confirm-dialog.d.ts +0 -26
- package/storybook-static/src/components/confirm-dialog.d.ts.map +0 -1
- package/storybook-static/src/components/fake-bot-msg.d.ts +0 -8
- package/storybook-static/src/components/fake-bot-msg.d.ts.map +0 -1
- package/storybook-static/src/components/field-checker-list-msg.d.ts +0 -19
- package/storybook-static/src/components/field-checker-list-msg.d.ts.map +0 -1
- package/storybook-static/src/components/field-checker.d.ts +0 -19
- package/storybook-static/src/components/field-checker.d.ts.map +0 -1
- package/storybook-static/src/components/field-icon.d.ts +0 -5
- package/storybook-static/src/components/field-icon.d.ts.map +0 -1
- package/storybook-static/src/components/field-value-checker.d.ts +0 -16
- package/storybook-static/src/components/field-value-checker.d.ts.map +0 -1
- package/storybook-static/src/components/fields-design-info-table.d.ts +0 -7
- package/storybook-static/src/components/fields-design-info-table.d.ts.map +0 -1
- package/storybook-static/src/components/fields-generating-indicator.d.ts +0 -6
- package/storybook-static/src/components/fields-generating-indicator.d.ts.map +0 -1
- package/storybook-static/src/components/fields-portal.d.ts +0 -8
- package/storybook-static/src/components/fields-portal.d.ts.map +0 -1
- package/storybook-static/src/components/fields-previewer.d.ts +0 -19
- package/storybook-static/src/components/fields-previewer.d.ts.map +0 -1
- package/storybook-static/src/components/font-icon.d.ts +0 -6
- package/storybook-static/src/components/font-icon.d.ts.map +0 -1
- package/storybook-static/src/components/form-info-editor.d.ts +0 -31
- package/storybook-static/src/components/form-info-editor.d.ts.map +0 -1
- package/storybook-static/src/components/formula-tag.d.ts +0 -8
- package/storybook-static/src/components/formula-tag.d.ts.map +0 -1
- package/storybook-static/src/components/generate-animation.d.ts +0 -5
- package/storybook-static/src/components/generate-animation.d.ts.map +0 -1
- package/storybook-static/src/components/icon-btn.d.ts +0 -9
- package/storybook-static/src/components/icon-btn.d.ts.map +0 -1
- package/storybook-static/src/components/img-part.d.ts +0 -10
- package/storybook-static/src/components/img-part.d.ts.map +0 -1
- package/storybook-static/src/components/legacy-slot.d.ts +0 -11
- package/storybook-static/src/components/legacy-slot.d.ts.map +0 -1
- package/storybook-static/src/components/line-checker.d.ts +0 -19
- package/storybook-static/src/components/line-checker.d.ts.map +0 -1
- package/storybook-static/src/components/linear-gradient-border-btn.d.ts +0 -10
- package/storybook-static/src/components/linear-gradient-border-btn.d.ts.map +0 -1
- package/storybook-static/src/components/linear-gradient-color-bg-animation.d.ts +0 -8
- package/storybook-static/src/components/linear-gradient-color-bg-animation.d.ts.map +0 -1
- package/storybook-static/src/components/memoized-markdown.d.ts +0 -5
- package/storybook-static/src/components/memoized-markdown.d.ts.map +0 -1
- package/storybook-static/src/components/message-content.d.ts +0 -6
- package/storybook-static/src/components/message-content.d.ts.map +0 -1
- package/storybook-static/src/components/number-part.d.ts +0 -9
- package/storybook-static/src/components/number-part.d.ts.map +0 -1
- package/storybook-static/src/components/office-container.d.ts +0 -17
- package/storybook-static/src/components/office-container.d.ts.map +0 -1
- package/storybook-static/src/components/option-item.d.ts +0 -9
- package/storybook-static/src/components/option-item.d.ts.map +0 -1
- package/storybook-static/src/components/previewer-header.d.ts +0 -21
- package/storybook-static/src/components/previewer-header.d.ts.map +0 -1
- package/storybook-static/src/components/primary-confirm-btn.d.ts +0 -10
- package/storybook-static/src/components/primary-confirm-btn.d.ts.map +0 -1
- package/storybook-static/src/components/primary-entry-btn.d.ts +0 -9
- package/storybook-static/src/components/primary-entry-btn.d.ts.map +0 -1
- package/storybook-static/src/components/scroll-to-bottom-btn.d.ts +0 -6
- package/storybook-static/src/components/scroll-to-bottom-btn.d.ts.map +0 -1
- package/storybook-static/src/components/split-line.d.ts +0 -5
- package/storybook-static/src/components/split-line.d.ts.map +0 -1
- package/storybook-static/src/components/square-checker.d.ts +0 -15
- package/storybook-static/src/components/square-checker.d.ts.map +0 -1
- package/storybook-static/src/components/subform-fields-value-checker.d.ts +0 -22
- package/storybook-static/src/components/subform-fields-value-checker.d.ts.map +0 -1
- package/storybook-static/src/components/tab-radio-group.d.ts +0 -20
- package/storybook-static/src/components/tab-radio-group.d.ts.map +0 -1
- package/storybook-static/src/components/tooltip.d.ts +0 -6
- package/storybook-static/src/components/tooltip.d.ts.map +0 -1
- package/storybook-static/src/components/ui/button.d.ts +0 -12
- package/storybook-static/src/components/ui/button.d.ts.map +0 -1
- package/storybook-static/src/components/ui/dialog.d.ts +0 -24
- package/storybook-static/src/components/ui/dialog.d.ts.map +0 -1
- package/storybook-static/src/components/ui/drawer.d.ts +0 -16
- package/storybook-static/src/components/ui/drawer.d.ts.map +0 -1
- package/storybook-static/src/components/ui/icons.d.ts +0 -176
- package/storybook-static/src/components/ui/icons.d.ts.map +0 -1
- package/storybook-static/src/components/ui/popover.d.ts +0 -10
- package/storybook-static/src/components/ui/popover.d.ts.map +0 -1
- package/storybook-static/src/components/ui/spinner.d.ts +0 -3
- package/storybook-static/src/components/ui/spinner.d.ts.map +0 -1
- package/storybook-static/src/components/ui/tooltip.d.ts +0 -13
- package/storybook-static/src/components/ui/tooltip.d.ts.map +0 -1
- package/storybook-static/src/components/user-txt-msg-bubble.d.ts +0 -6
- package/storybook-static/src/components/user-txt-msg-bubble.d.ts.map +0 -1
- package/storybook-static/src/components/warning-msg.d.ts +0 -6
- package/storybook-static/src/components/warning-msg.d.ts.map +0 -1
- package/storybook-static/src/const/ui.d.ts +0 -10
- package/storybook-static/src/const/ui.d.ts.map +0 -1
- package/storybook-static/src/hooks/use-column-appear.d.ts +0 -22
- package/storybook-static/src/hooks/use-column-appear.d.ts.map +0 -1
- package/storybook-static/src/hooks/use-resizable-width.d.ts +0 -26
- package/storybook-static/src/hooks/use-resizable-width.d.ts.map +0 -1
- package/storybook-static/src/hooks/use-shadow.d.ts +0 -25
- package/storybook-static/src/hooks/use-shadow.d.ts.map +0 -1
- package/storybook-static/src/index.d.ts +0 -76
- package/storybook-static/src/index.d.ts.map +0 -1
- package/storybook-static/src/lib/utils.d.ts +0 -7
- package/storybook-static/src/lib/utils.d.ts.map +0 -1
- package/storybook-static/src/stories/AbsFullscreenGradientBg.stories.d.ts +0 -17
- package/storybook-static/src/stories/AbsFullscreenGradientBg.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AgentScrollSelector.stories.d.ts +0 -11
- package/storybook-static/src/stories/AgentScrollSelector.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AgentSelect.stories.d.ts +0 -14
- package/storybook-static/src/stories/AgentSelect.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AttachmentPart.stories.d.ts +0 -23
- package/storybook-static/src/stories/AttachmentPart.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AttachmentPartGroup.stories.d.ts +0 -21
- package/storybook-static/src/stories/AttachmentPartGroup.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/AttachmentsPreviewer.stories.d.ts +0 -20
- package/storybook-static/src/stories/AttachmentsPreviewer.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BaseButton.stories.d.ts +0 -18
- package/storybook-static/src/stories/BaseButton.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BorderAnimation.stories.d.ts +0 -21
- package/storybook-static/src/stories/BorderAnimation.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BorderColorAnimation.stories.d.ts +0 -26
- package/storybook-static/src/stories/BorderColorAnimation.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BotAvatarAndName.stories.d.ts +0 -18
- package/storybook-static/src/stories/BotAvatarAndName.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BotIcon.stories.d.ts +0 -17
- package/storybook-static/src/stories/BotIcon.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BsEntrySelect.stories.d.ts +0 -17
- package/storybook-static/src/stories/BsEntrySelect.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/BsTooltip.stories.d.ts +0 -7
- package/storybook-static/src/stories/BsTooltip.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/Card.stories.d.ts +0 -14
- package/storybook-static/src/stories/Card.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/CardField.stories.d.ts +0 -13
- package/storybook-static/src/stories/CardField.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/ChatAreaHeader.stories.d.ts +0 -14
- package/storybook-static/src/stories/ChatAreaHeader.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/CircleChecker.stories.d.ts +0 -21
- package/storybook-static/src/stories/CircleChecker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/CollapsibleTextMsg.stories.d.ts +0 -16
- package/storybook-static/src/stories/CollapsibleTextMsg.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/ConfirmDialog.stories.d.ts +0 -61
- package/storybook-static/src/stories/ConfirmDialog.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/FakeBotMsg.stories.d.ts +0 -21
- package/storybook-static/src/stories/FakeBotMsg.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/FormInfoEditor.stories.d.ts +0 -15
- package/storybook-static/src/stories/FormInfoEditor.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/FormulaTag.stories.d.ts +0 -37
- package/storybook-static/src/stories/FormulaTag.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/GenerateAnimation.stories.d.ts +0 -17
- package/storybook-static/src/stories/GenerateAnimation.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/IconBtn.stories.d.ts +0 -15
- package/storybook-static/src/stories/IconBtn.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/IconLib.d.ts +0 -12
- package/storybook-static/src/stories/IconLib.d.ts.map +0 -1
- package/storybook-static/src/stories/Icons.stories.d.ts +0 -24
- package/storybook-static/src/stories/Icons.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/ImgMsgPart.stories.d.ts +0 -20
- package/storybook-static/src/stories/ImgMsgPart.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/LegacySlot.stories.d.ts +0 -16
- package/storybook-static/src/stories/LegacySlot.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/LineChecker.stories.d.ts +0 -23
- package/storybook-static/src/stories/LineChecker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/LinearGradientBorderBtn.stories.d.ts +0 -22
- package/storybook-static/src/stories/LinearGradientBorderBtn.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/LinearGradientColorBgAnimation.stories.d.ts +0 -23
- package/storybook-static/src/stories/LinearGradientColorBgAnimation.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/MemoizedMarkdown.stories.d.ts +0 -23
- package/storybook-static/src/stories/MemoizedMarkdown.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/MessageContent.stories.d.ts +0 -16
- package/storybook-static/src/stories/MessageContent.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/NumbersMsgPart.stories.d.ts +0 -19
- package/storybook-static/src/stories/NumbersMsgPart.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/OfficeContainer.stories.d.ts +0 -13
- package/storybook-static/src/stories/OfficeContainer.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/OptionItem.stories.d.ts +0 -20
- package/storybook-static/src/stories/OptionItem.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/PreviewerHeader.stories.d.ts +0 -12
- package/storybook-static/src/stories/PreviewerHeader.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/PrimaryConfirmBtn.stories.d.ts +0 -19
- package/storybook-static/src/stories/PrimaryConfirmBtn.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/PrimaryEntryBtn.stories.d.ts +0 -26
- package/storybook-static/src/stories/PrimaryEntryBtn.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/ScrollToBottom.stories.d.ts +0 -15
- package/storybook-static/src/stories/ScrollToBottom.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/SplitLine.stories.d.ts +0 -9
- package/storybook-static/src/stories/SplitLine.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/SquareChecker.stories.d.ts +0 -26
- package/storybook-static/src/stories/SquareChecker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/TabRadioGroup.stories.d.ts +0 -18
- package/storybook-static/src/stories/TabRadioGroup.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/UserTextMsgBubble.stories.d.ts +0 -14
- package/storybook-static/src/stories/UserTextMsgBubble.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/WarningMessage.stories.d.ts +0 -16
- package/storybook-static/src/stories/WarningMessage.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/collapsible.stories.d.ts +0 -8
- package/storybook-static/src/stories/collapsible.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/drawer.stories.d.ts +0 -18
- package/storybook-static/src/stories/drawer.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/field-checker-list-msg.stories.d.ts +0 -11
- package/storybook-static/src/stories/field-checker-list-msg.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/field-checker.stories.d.ts +0 -13
- package/storybook-static/src/stories/field-checker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/field-icon.stories.d.ts +0 -15
- package/storybook-static/src/stories/field-icon.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/field-value-checker.stories.d.ts +0 -13
- package/storybook-static/src/stories/field-value-checker.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/fields-design-info-table.stories.d.ts +0 -14
- package/storybook-static/src/stories/fields-design-info-table.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/fields-generating.stories.d.ts +0 -20
- package/storybook-static/src/stories/fields-generating.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/fields-previewer.stories.d.ts +0 -19
- package/storybook-static/src/stories/fields-previewer.stories.d.ts.map +0 -1
- package/storybook-static/src/stories/subform-fields-value-checker.stories.d.ts +0 -9
- package/storybook-static/src/stories/subform-fields-value-checker.stories.d.ts.map +0 -1
- package/storybook-static/src/types.d.ts +0 -8
- package/storybook-static/src/types.d.ts.map +0 -1
- package/storybook-static/vite-inject-mocker-entry.js +0 -18
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: import('../../../../node_modules/.pnpm/react@18.3.1/node_modules/react').ForwardRefExoticComponent<import('../components/fields-previewer').FieldsPreviewerProps & import('../../../../node_modules/.pnpm/react@18.3.1/node_modules/react').RefAttributes<HTMLDivElement>>;
|
|
5
|
-
tags: string[];
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
args: {};
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof meta>;
|
|
13
|
-
export declare const Base: Story;
|
|
14
|
-
export declare const WithSideSpace: Story;
|
|
15
|
-
export declare const streaming: Story;
|
|
16
|
-
export declare const Empty: Story;
|
|
17
|
-
export declare const Fullscreen: Story;
|
|
18
|
-
export declare const DataVariant: Story;
|
|
19
|
-
//# sourceMappingURL=fields-previewer.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fields-previewer.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/fields-previewer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,QAAA,MAAM,IAAI;;;;;;;;CAU8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAQnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { SubformFieldsValueChecker } from '../components/subform-fields-value-checker';
|
|
3
|
-
declare const meta: Meta<typeof SubformFieldsValueChecker>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof SubformFieldsValueChecker>;
|
|
6
|
-
export declare const SingleRow: Story;
|
|
7
|
-
export declare const MultipleRows: Story;
|
|
8
|
-
export declare const Readonly: Story;
|
|
9
|
-
//# sourceMappingURL=subform-fields-value-checker.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subform-fields-value-checker.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/subform-fields-value-checker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,yBAAyB,CAchD,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAExD,eAAO,MAAM,SAAS,EAAE,KAoBvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KA8B1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAoBtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,IAAI,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var ye=Object.defineProperty;var ge=(r,e,t)=>e in r?ye(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var x=(r,e,t)=>ge(r,typeof e!="symbol"?e+"":e,t);import{_ as ve}from"./assets/preload-helper-CmsKOCeN.js";class ce{constructor(){x(this,"registryByUrl",new Map);x(this,"registryById",new Map)}clear(){this.registryByUrl.clear(),this.registryById.clear()}keys(){return this.registryByUrl.keys()}add(e){this.registryByUrl.set(e.url,e),this.registryById.set(e.id,e)}register(e,t,n,i,s){const a=typeof e=="object"?e.type:e;if(typeof e=="object"){const o=e;if(o instanceof F||o instanceof C||o instanceof D||o instanceof N)throw new TypeError(`[vitest] Cannot register a mock that is already defined. Expected a JSON representation from \`MockedModule.toJSON\`, instead got "${o.type}". Use "registry.add()" to update a mock instead.`);if(o.type==="automock"){const l=F.fromJSON(o);return this.add(l),l}else if(o.type==="autospy"){const l=C.fromJSON(o);return this.add(l),l}else if(o.type==="redirect"){const l=N.fromJSON(o);return this.add(l),l}else throw o.type==="manual"?new Error("Cannot set serialized manual mock. Define a factory function manually with `ManualMockedModule.fromJSON()`."):new Error(`Unknown mock type: ${o.type}`)}if(typeof t!="string")throw new TypeError("[vitest] Mocks require a raw string.");if(typeof i!="string")throw new TypeError("[vitest] Mocks require a url string.");if(typeof n!="string")throw new TypeError("[vitest] Mocks require an id string.");if(a==="manual"){if(typeof s!="function")throw new TypeError("[vitest] Manual mocks require a factory function.");const o=new D(t,n,i,s);return this.add(o),o}else if(a==="automock"||a==="autospy"){const o=a==="automock"?new F(t,n,i):new C(t,n,i);return this.add(o),o}else if(a==="redirect"){if(typeof s!="string")throw new TypeError("[vitest] Redirect mocks require a redirect string.");const o=new N(t,n,i,s);return this.add(o),o}else throw new Error(`[vitest] Unknown mock type: ${a}`)}delete(e){this.registryByUrl.delete(e)}get(e){return this.registryByUrl.get(e)}getById(e){return this.registryById.get(e)}has(e){return this.registryByUrl.has(e)}}class F{constructor(e,t,n){x(this,"type","automock");this.raw=e,this.id=t,this.url=n}static fromJSON(e){return new C(e.raw,e.id,e.url)}toJSON(){return{type:this.type,url:this.url,raw:this.raw,id:this.id}}}class C{constructor(e,t,n){x(this,"type","autospy");this.raw=e,this.id=t,this.url=n}static fromJSON(e){return new C(e.raw,e.id,e.url)}toJSON(){return{type:this.type,url:this.url,id:this.id,raw:this.raw}}}class N{constructor(e,t,n,i){x(this,"type","redirect");this.raw=e,this.id=t,this.url=n,this.redirect=i}static fromJSON(e){return new N(e.raw,e.id,e.url,e.redirect)}toJSON(){return{type:this.type,url:this.url,raw:this.raw,id:this.id,redirect:this.redirect}}}class D{constructor(e,t,n,i){x(this,"cache");x(this,"type","manual");this.raw=e,this.id=t,this.url=n,this.factory=i}async resolve(){if(this.cache)return this.cache;let e;try{e=await this.factory()}catch(t){const n=new Error('[vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock');throw n.cause=t,n}if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`[vitest] vi.mock("${this.raw}", factory?: () => unknown) is not returning an object. Did you mean to return an object with a "default" key?`);return this.cache=e}static fromJSON(e,t){return new D(e.raw,e.id,e.url,t)}toJSON(){return{type:this.type,url:this.url,id:this.id,raw:this.raw}}}function we(r,e,t={}){const n=new Array,i=new ke,s=(l,d,h)=>{try{return l[d]=h,!0}catch{return!1}},a=(l,d)=>{const h=U(l),g=h==="Module"||!!l.__esModule;for(const{key:w,descriptor:b}of H(l,g,r.globalConstructors)){if(!g&&b.get){try{Object.defineProperty(d,w,b)}catch{}continue}if(Se(w,h))continue;const y=l[w],c=i.getId(y);if(c!==void 0){n.push(()=>s(d,w,i.getMockedValue(c)));continue}const u=U(y);if(Array.isArray(y)){s(d,w,[]);continue}const T=u.includes("Function")&&typeof y=="function";if((!T||y._isMockFunction)&&u!=="Object"&&u!=="Module"){s(d,w,y);continue}if(s(d,w,T?y:{})){if(T){let _=function(){if(this instanceof d[w])for(const{key:I,descriptor:A}of H(this,!1,r.globalConstructors)){if(A.get)continue;const L=this[I];if(U(L).includes("Function")&&typeof L=="function"){const J=this[I],f=R(this,I).mockImplementation(J),P=f.mockReset;f.mockRestore=f.mockReset=()=>(P.call(f),f.mockImplementation(J),f)}}};if(!r.spyOn)throw new Error("[@vitest/mocker] `spyOn` is not defined. This is a Vitest error. Please open a new issue with reproduction.");const R=r.spyOn,M=R(d,w);if(r.type==="automock"){M.mockImplementation(_);const I=M.mockReset;M.mockRestore=M.mockReset=()=>(I.call(M),M.mockImplementation(_),M)}Object.defineProperty(d[w],"length",{value:0})}i.track(y,d[w]),a(y,d[w])}}},o=t;a(e,o);for(const l of n)l();return o}class ke{constructor(){x(this,"idMap",new Map);x(this,"mockedValueMap",new Map)}getId(e){return this.idMap.get(e)}getMockedValue(e){return this.mockedValueMap.get(e)}track(e,t){const n=this.idMap.size;return this.idMap.set(e,n),this.mockedValueMap.set(n,t),n}}function U(r){return Object.prototype.toString.apply(r).slice(8,-1)}function Se(r,e){return e.includes("Function")&&typeof r=="string"&&["arguments","callee","caller","length","name"].includes(r)}function H(r,e,t){const{Map:n,Object:i,Function:s,RegExp:a,Array:o}=t,l=new n;let d=r;do{if(d===i.prototype||d===s.prototype||d===a.prototype)break;_e(d,h=>{const g=i.getOwnPropertyDescriptor(d,h);g&&l.set(h,{key:h,descriptor:g})})}while(d=i.getPrototypeOf(d));if(e&&!l.has("default")&&"default"in r){const h=i.getOwnPropertyDescriptor(r,"default");h&&l.set("default",{key:"default",descriptor:h})}return o.from(l.values())}function _e(r,e){const t=typeof e=="function"?e:n=>e.add(n);Object.getOwnPropertyNames(r).forEach(t),Object.getOwnPropertySymbols(r).forEach(t)}const Ee=/^[A-Za-z]:\//;function ae(r=""){return r&&r.replace(/\\/g,"/").replace(Ee,e=>e.toUpperCase())}const be=/^[/\\]{2}/,Ie=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,xe=/^[A-Za-z]:$/,Te=/.(\.[^./]+|\.)$/,$e=function(r){if(r.length===0)return".";r=ae(r);const e=r.match(be),t=Z(r),n=r[r.length-1]==="/";return r=Me(r,!t),r.length===0?t?"/":n?"./":".":(n&&(r+="/"),xe.test(r)&&(r+="/"),e?t?`//${r}`:`//./${r}`:t&&!Z(r)?`/${r}`:r)},Pe=function(...r){let e="";for(const t of r)if(t)if(e.length>0){const n=e[e.length-1]==="/",i=t[0]==="/";n&&i?e+=t.slice(1):e+=n||i?t:`/${t}`}else e+=t;return $e(e)};function Me(r,e){let t="",n=0,i=-1,s=0,a=null;for(let o=0;o<=r.length;++o){if(o<r.length)a=r[o];else{if(a==="/")break;a="/"}if(a==="/"){if(!(i===o-1||s===1))if(s===2){if(t.length<2||n!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){const l=t.lastIndexOf("/");l===-1?(t="",n=0):(t=t.slice(0,l),n=t.length-1-t.lastIndexOf("/")),i=o,s=0;continue}else if(t.length>0){t="",n=0,i=o,s=0;continue}}e&&(t+=t.length>0?"/..":"..",n=2)}else t.length>0?t+=`/${r.slice(i+1,o)}`:t=r.slice(i+1,o),n=o-i-1;i=o,s=0}else a==="."&&s!==-1?++s:s=-1}return t}const Z=function(r){return Ie.test(r)},Re=function(r){if(r==="..")return"";const e=Te.exec(ae(r));return e&&e[1]||""};var Ae={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Oe=Object.entries(Ae);function Y(r){return String(r)}Y.open="";Y.close="";function Ce(r=!1){let e=typeof process<"u"?process:void 0,t=e?.env||{},n=e?.argv||[];return!("NO_COLOR"in t||n.includes("--no-color"))&&("FORCE_COLOR"in t||n.includes("--color")||e?.platform==="win32"||r&&t.TERM!=="dumb"||"CI"in t)||typeof window<"u"&&!!window.chrome}function Ne(r=!1){let e=Ce(r),t=(a,o,l,d)=>{let h="",g=0;do h+=a.substring(g,d)+l,g=d+o.length,d=a.indexOf(o,g);while(~d);return h+a.substring(g)},n=(a,o,l=a)=>{let d=h=>{let g=String(h),w=g.indexOf(o,a.length);return~w?a+t(g,o,l,w)+o:a+g+o};return d.open=a,d.close=o,d},i={isColorSupported:e},s=a=>`\x1B[${a}m`;for(let[a,o]of Oe)i[a]=e?n(s(o[0]),s(o[1]),o[2]):Y;return i}Ne();function le(r,e){return e.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in r)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(r)}function ue(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var z={exports:{}},k={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-is.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var G;function Le(){if(G)return k;G=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function y(c){if(typeof c=="object"&&c!==null){var u=c.$$typeof;switch(u){case r:switch(c=c.type,c){case t:case i:case n:case l:case d:case w:return c;default:switch(c=c&&c.$$typeof,c){case a:case o:case g:case h:return c;case s:return c;default:return u}}case e:return u}}}return k.ContextConsumer=s,k.ContextProvider=a,k.Element=r,k.ForwardRef=o,k.Fragment=t,k.Lazy=g,k.Memo=h,k.Portal=e,k.Profiler=i,k.StrictMode=n,k.Suspense=l,k.SuspenseList=d,k.isContextConsumer=function(c){return y(c)===s},k.isContextProvider=function(c){return y(c)===a},k.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===r},k.isForwardRef=function(c){return y(c)===o},k.isFragment=function(c){return y(c)===t},k.isLazy=function(c){return y(c)===g},k.isMemo=function(c){return y(c)===h},k.isPortal=function(c){return y(c)===e},k.isProfiler=function(c){return y(c)===i},k.isStrictMode=function(c){return y(c)===n},k.isSuspense=function(c){return y(c)===l},k.isSuspenseList=function(c){return y(c)===d},k.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===t||c===i||c===n||c===l||c===d||typeof c=="object"&&c!==null&&(c.$$typeof===g||c.$$typeof===h||c.$$typeof===a||c.$$typeof===s||c.$$typeof===o||c.$$typeof===b||c.getModuleId!==void 0)},k.typeOf=y,k}var Q;function Je(){return Q||(Q=1,z.exports=Le()),z.exports}var fe=Je(),Be=ue(fe),Xe=le({__proto__:null,default:Be},[fe]),V={exports:{}},v={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-is.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ee;function qe(){if(ee)return v;ee=1;var r=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),o=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function c(u){if(typeof u=="object"&&u!==null){var T=u.$$typeof;switch(T){case r:switch(u=u.type,u){case t:case i:case n:case d:case h:return u;default:switch(u=u&&u.$$typeof,u){case o:case a:case l:case w:case g:case s:return u;default:return T}}case e:return T}}}return v.ContextConsumer=a,v.ContextProvider=s,v.Element=r,v.ForwardRef=l,v.Fragment=t,v.Lazy=w,v.Memo=g,v.Portal=e,v.Profiler=i,v.StrictMode=n,v.Suspense=d,v.SuspenseList=h,v.isAsyncMode=function(){return!1},v.isConcurrentMode=function(){return!1},v.isContextConsumer=function(u){return c(u)===a},v.isContextProvider=function(u){return c(u)===s},v.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===r},v.isForwardRef=function(u){return c(u)===l},v.isFragment=function(u){return c(u)===t},v.isLazy=function(u){return c(u)===w},v.isMemo=function(u){return c(u)===g},v.isPortal=function(u){return c(u)===e},v.isProfiler=function(u){return c(u)===i},v.isStrictMode=function(u){return c(u)===n},v.isSuspense=function(u){return c(u)===d},v.isSuspenseList=function(u){return c(u)===h},v.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===t||u===i||u===n||u===d||u===h||u===b||typeof u=="object"&&u!==null&&(u.$$typeof===w||u.$$typeof===g||u.$$typeof===s||u.$$typeof===a||u.$$typeof===l||u.$$typeof===y||u.getModuleId!==void 0)},v.typeOf=c,v}var te;function Fe(){return te||(te=1,V.exports=qe()),V.exports}var de=Fe(),De=ue(de),Ue=le({__proto__:null,default:De},[de]);const ze=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"];Object.fromEntries(ze.map(r=>[r,e=>Ue[r](e)||Xe[r](e)]));let Ve=()=>"Promise{…}";try{const{getPromiseDetails:r,kPending:e,kRejected:t}=process.binding("util");Array.isArray(r(Promise.resolve()))&&(Ve=(n,i)=>{const[s,a]=r(n);return s===e?"Promise{<pending>}":`Promise${s===t?"!":""}{${i.inspect(a,i)}}`})}catch{}function We(r){const{message:e="$$stack trace error",stackTraceLimit:t=1}=r||{},n=Error.stackTraceLimit,i=Error.prepareStackTrace;Error.stackTraceLimit=t,Error.prepareStackTrace=o=>o.stack;const a=new Error(e).stack||"";return Error.prepareStackTrace=i,Error.stackTraceLimit=n,a}var W,re;function je(){if(re)return W;re=1;var r,e,t,n,i,s,a,o,l,d,h,g,w,b,y,c,u,T,R;return w=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,g=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,y=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,h=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,c=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,R=/[\t\v\f\ufeff\p{Zs}]+/uy,o=/\r?\n|[\r\u2028\u2029]/y,l=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,b=/\/\/.*/y,t=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,n=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,T=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,u=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,s=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,d=RegExp(o.source),W=function*(_,{jsx:M=!1}={}){var I,A,L,p,m,J,f,P,K,$,B,S,X,E;for({length:J}=_,p=0,m="",E=[{tag:"JS"}],I=[],B=0,S=!1;p<J;){switch(P=E[E.length-1],P.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[p]==="/"&&(T.test(m)||s.test(m))&&(w.lastIndex=p,f=w.exec(_))){p=w.lastIndex,m=f[0],S=!0,yield{type:"RegularExpressionLiteral",value:f[0],closed:f[1]!==void 0&&f[1]!=="\\"};continue}if(g.lastIndex=p,f=g.exec(_)){switch(X=f[0],K=g.lastIndex,$=X,X){case"(":m==="?NonExpressionParenKeyword"&&E.push({tag:"JSNonExpressionParen",nesting:B}),B++,S=!1;break;case")":B--,S=!0,P.tag==="JSNonExpressionParen"&&B===P.nesting&&(E.pop(),$="?NonExpressionParenEnd",S=!1);break;case"{":g.lastIndex=0,L=!u.test(m)&&(T.test(m)||s.test(m)),I.push(L),S=!1;break;case"}":switch(P.tag){case"InterpolationInTemplate":if(I.length===P.nesting){c.lastIndex=p,f=c.exec(_),p=c.lastIndex,m=f[0],f[1]==="${"?(m="?InterpolationInTemplate",S=!1,yield{type:"TemplateMiddle",value:f[0]}):(E.pop(),S=!0,yield{type:"TemplateTail",value:f[0],closed:f[1]==="`"});continue}break;case"InterpolationInJSX":if(I.length===P.nesting){E.pop(),p+=1,m="}",yield{type:"JSXPunctuator",value:"}"};continue}}S=I.pop(),$=S?"?ExpressionBraceEnd":"}";break;case"]":S=!0;break;case"++":case"--":$=S?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(M&&(T.test(m)||s.test(m))){E.push({tag:"JSXTag"}),p+=1,m="<",yield{type:"JSXPunctuator",value:X};continue}S=!1;break;default:S=!1}p=K,m=$,yield{type:"Punctuator",value:X};continue}if(r.lastIndex=p,f=r.exec(_)){switch(p=r.lastIndex,$=f[0],f[0]){case"for":case"if":case"while":case"with":m!=="."&&m!=="?."&&($="?NonExpressionParenKeyword")}m=$,S=!s.test(f[0]),yield{type:f[1]==="#"?"PrivateIdentifier":"IdentifierName",value:f[0]};continue}if(y.lastIndex=p,f=y.exec(_)){p=y.lastIndex,m=f[0],S=!0,yield{type:"StringLiteral",value:f[0],closed:f[2]!==void 0};continue}if(h.lastIndex=p,f=h.exec(_)){p=h.lastIndex,m=f[0],S=!0,yield{type:"NumericLiteral",value:f[0]};continue}if(c.lastIndex=p,f=c.exec(_)){p=c.lastIndex,m=f[0],f[1]==="${"?(m="?InterpolationInTemplate",E.push({tag:"InterpolationInTemplate",nesting:I.length}),S=!1,yield{type:"TemplateHead",value:f[0]}):(S=!0,yield{type:"NoSubstitutionTemplate",value:f[0],closed:f[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(t.lastIndex=p,f=t.exec(_)){switch(p=t.lastIndex,$=f[0],f[0]){case"<":E.push({tag:"JSXTag"});break;case">":E.pop(),m==="/"||P.tag==="JSXTagEnd"?($="?JSX",S=!0):E.push({tag:"JSXChildren"});break;case"{":E.push({tag:"InterpolationInJSX",nesting:I.length}),$="?InterpolationInJSX",S=!1;break;case"/":m==="<"&&(E.pop(),E[E.length-1].tag==="JSXChildren"&&E.pop(),E.push({tag:"JSXTagEnd"}))}m=$,yield{type:"JSXPunctuator",value:f[0]};continue}if(e.lastIndex=p,f=e.exec(_)){p=e.lastIndex,m=f[0],yield{type:"JSXIdentifier",value:f[0]};continue}if(n.lastIndex=p,f=n.exec(_)){p=n.lastIndex,m=f[0],yield{type:"JSXString",value:f[0],closed:f[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=p,f=i.exec(_)){p=i.lastIndex,m=f[0],yield{type:"JSXText",value:f[0]};continue}switch(_[p]){case"<":E.push({tag:"JSXTag"}),p++,m="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":E.push({tag:"InterpolationInJSX",nesting:I.length}),p++,m="?InterpolationInJSX",S=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(R.lastIndex=p,f=R.exec(_)){p=R.lastIndex,yield{type:"WhiteSpace",value:f[0]};continue}if(o.lastIndex=p,f=o.exec(_)){p=o.lastIndex,S=!1,a.test(m)&&(m="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:f[0]};continue}if(l.lastIndex=p,f=l.exec(_)){p=l.lastIndex,d.test(f[0])&&(S=!1,a.test(m)&&(m="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:f[0],closed:f[1]!==void 0};continue}if(b.lastIndex=p,f=b.exec(_)){p=b.lastIndex,S=!1,yield{type:"SingleLineComment",value:f[0]};continue}A=String.fromCodePoint(_.codePointAt(p)),p+=A.length,m=A,S=!1,yield{type:P.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:A}}},W}je();var pe={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(pe.keyword);new Set(pe.strict);const ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ye=new Uint8Array(64),Ke=new Uint8Array(128);for(let r=0;r<ne.length;r++){const e=ne.charCodeAt(r);Ye[r]=e,Ke[e]=r}var ie;(function(r){r[r.Empty=1]="Empty",r[r.Hash=2]="Hash",r[r.Query=3]="Query",r[r.RelativePath=4]="RelativePath",r[r.AbsolutePath=5]="AbsolutePath",r[r.SchemeRelative=6]="SchemeRelative",r[r.Absolute=7]="Absolute"})(ie||(ie={}));const He=/^[A-Za-z]:\//;function Ze(r=""){return r&&r.replace(/\\/g,"/").replace(He,e=>e.toUpperCase())}const Ge=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Qe(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const et=function(...r){r=r.map(n=>Ze(n));let e="",t=!1;for(let n=r.length-1;n>=-1&&!t;n--){const i=n>=0?r[n]:Qe();!i||i.length===0||(e=`${i}/${e}`,t=oe(i))}return e=tt(e,!t),t&&!oe(e)?`/${e}`:e.length>0?e:"."};function tt(r,e){let t="",n=0,i=-1,s=0,a=null;for(let o=0;o<=r.length;++o){if(o<r.length)a=r[o];else{if(a==="/")break;a="/"}if(a==="/"){if(!(i===o-1||s===1))if(s===2){if(t.length<2||n!==2||t[t.length-1]!=="."||t[t.length-2]!=="."){if(t.length>2){const l=t.lastIndexOf("/");l===-1?(t="",n=0):(t=t.slice(0,l),n=t.length-1-t.lastIndexOf("/")),i=o,s=0;continue}else if(t.length>0){t="",n=0,i=o,s=0;continue}}e&&(t+=t.length>0?"/..":"..",n=2)}else t.length>0?t+=`/${r.slice(i+1,o)}`:t=r.slice(i+1,o),n=o-i-1;i=o,s=0}else a==="."&&s!==-1?++s:s=-1}return t}const oe=function(r){return Ge.test(r)},he=/^\s*at .*(?:\S:\d+|\(native\))/m,rt=/^(?:eval@)?(?:\[native code\])?$/;function me(r){if(!r.includes(":"))return[r];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(r.replace(/^\(|\)$/g,""));if(!t)return[r];let n=t[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){const i=new URL(n);i.searchParams.delete("import"),i.searchParams.delete("browserv"),n=i.pathname+i.hash+i.search}if(n.startsWith("/@fs/")){const i=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(i?5:4)}return[n,t[2]||void 0,t[3]||void 0]}function nt(r){let e=r.trim();if(rt.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const t=/((.*".+"[^@]*)?[^@]*)(@)/,n=e.match(t),i=n&&n[1]?n[1]:void 0,[s,a,o]=me(e.replace(t,""));return!s||!a||!o?null:{file:s,method:i||"",line:Number.parseInt(a),column:Number.parseInt(o)}}function it(r){const e=r.trim();return he.test(e)?ot(e):nt(e)}function ot(r){let e=r.trim();if(!he.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const n=t.match(/ (\(.+\)$)/);t=n?t.replace(n[0],""):t;const[i,s,a]=me(n?n[1]:t);let o=n&&t||"",l=i&&["eval","<anonymous>"].includes(i)?void 0:i;return!l||!s||!a?null:(o.startsWith("async ")&&(o=o.slice(6)),l.startsWith("file://")&&(l=l.slice(7)),l=l.startsWith("node:")||l.startsWith("internal:")?l:et(l),o&&(o=o.replace(/__vite_ssr_import_\d+__\./g,"")),{method:o,file:l,line:Number.parseInt(s),column:Number.parseInt(a)})}function st(r){const e=r?.globalThisKey||"__vitest_mocker__";function t(){return typeof globalThis[e]<"u"?globalThis[e]:new Proxy({},{get(n,i){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(i)}() is forbidden.`)}})}return{hoisted(n){if(typeof n!="function")throw new TypeError(`vi.hoisted() expects a function, but received a ${typeof n}`);return n()},mock(n,i){if(typeof n!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof n}`);const s=O("mock");t().queueMock(n,s,typeof i=="function"?()=>i(()=>t().importActual(n,s)):i)},unmock(n){if(typeof n!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof n}`);t().queueUnmock(n,O("unmock"))},doMock(n,i){if(typeof n!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof n}`);const s=O("doMock");t().queueMock(n,s,typeof i=="function"?()=>i(()=>t().importActual(n,s)):i)},doUnmock(n){if(typeof n!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof n}`);t().queueUnmock(n,O("doUnmock"))},async importActual(n){return t().importActual(n,O("importActual"))},async importMock(n){return t().importMock(n,O("importMock"))}}}function O(r){const t=We({stackTraceLimit:5}).split(`
|
|
18
|
-
`),n=t.findIndex(s=>s.includes(` at Object.${r}`)||s.includes(`${r}@`)),i=it(t[n+1]);return i?.file||""}const{now:se}=Date;class ct{constructor(e,t,n,i){x(this,"registry",new ce);x(this,"queue",new Set);x(this,"mockedIds",new Set);this.interceptor=e,this.rpc=t,this.spyOn=n,this.config=i}async prepare(){this.queue.size&&await Promise.all([...this.queue.values()])}async resolveFactoryModule(e){const t=this.registry.get(e);if(!t||t.type!=="manual")throw new Error(`Mock ${e} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`);return await t.resolve()}getFactoryModule(e){const t=this.registry.get(e);if(!t||t.type!=="manual")throw new Error(`Mock ${e} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`);if(!t.cache)throw new Error(`Mock ${e} wasn't resolved. This is probably a Vitest error. Please, open a new issue with reproduction.`);return t.cache}async invalidate(){const e=Array.from(this.mockedIds);e.length&&(await this.rpc.invalidate(e),await this.interceptor.invalidate(),this.registry.clear())}async importActual(e,t){const n=await this.rpc.resolveId(e,t);if(n==null)throw new Error(`[vitest] Cannot resolve "${e}" imported from "${t}"`);const i=Re(n.id),s=new URL(n.url,location.href),a=`_vitest_original&ext${i}`,o=`${s.pathname}${s.search?`${s.search}&${a}`:`?${a}`}${s.hash}`;return this.wrapDynamicImport(()=>import(o)).then(l=>{if(!n.optimized||typeof l.default>"u")return l;const d=l.default;return d?.__esModule?d:{...typeof d=="object"&&!Array.isArray(d)||typeof d=="function"?d:{},default:d}})}async importMock(e,t){await this.prepare();const{resolvedId:n,resolvedUrl:i,redirectUrl:s}=await this.rpc.resolveMock(e,t,{mock:"auto"}),a=this.resolveMockPath(q(i));let o=this.registry.get(a);if(!o)if(s){const l=new URL(this.resolveMockPath(q(s)),location.href).toString();o=new N(e,n,a,l)}else o=new F(e,n,a);if(o.type==="manual")return await o.resolve();if(o.type==="automock"||o.type==="autospy"){const l=new URL(`/@id/${n}`,location.href),d=l.search?`${l.search}&t=${se()}`:`?t=${se()}`,h=await ve(()=>import(`${l.pathname}${d}&mock=${o.type}${l.hash}`),[],import.meta.url);return this.mockObject(h,o.type)}return import(o.redirect)}mockObject(e,t="automock"){return we({globalConstructors:{Object,Function,Array,Map,RegExp},spyOn:this.spyOn,type:t},e)}queueMock(e,t,n){const i=this.rpc.resolveMock(e,t,{mock:typeof n=="function"?"factory":n?.spy?"spy":"auto"}).then(async({redirectUrl:s,resolvedId:a,resolvedUrl:o,needsInterop:l,mockType:d})=>{const h=this.resolveMockPath(q(o));this.mockedIds.add(a);const g=typeof n=="function"?async()=>{const y=await n();return l?{default:y}:y}:void 0,w=typeof s=="string"?new URL(this.resolveMockPath(q(s)),location.href).toString():null;let b;d==="manual"?b=this.registry.register("manual",e,a,h,g):d==="autospy"?b=this.registry.register("autospy",e,a,h):d==="redirect"?b=this.registry.register("redirect",e,a,h,w):b=this.registry.register("automock",e,a,h),await this.interceptor.register(b)}).finally(()=>{this.queue.delete(i)});this.queue.add(i)}queueUnmock(e,t){const n=this.rpc.resolveId(e,t).then(async i=>{if(!i)return;const s=this.resolveMockPath(q(i.url));this.mockedIds.add(i.id),this.registry.delete(s),await this.interceptor.delete(s)}).finally(()=>{this.queue.delete(n)});this.queue.add(n)}wrapDynamicImport(e){return typeof e=="function"?new Promise((n,i)=>{this.prepare().finally(()=>{e().then(n,i)})}):e}resolveMockPath(e){const t=this.config,n=Pe("/@fs/",t.root);return e.startsWith(t.root)?e.slice(t.root.length):e.startsWith(n)?e.slice(n.length):e}}const at=/(\?|&)v=\w{8}/;function q(r){return r.replace(at,"")}class lt{constructor(){x(this,"mocks",new ce)}async register(e){this.mocks.add(e)}async delete(e){this.mocks.delete(e)}async invalidate(){this.mocks.clear()}}const j=r=>{switch(r){case"resolveId":return Promise.resolve({id:"",url:"",optimized:!1});case"resolveMock":return Promise.resolve({mockType:"dummy",resolvedId:"",resolvedUrl:"",redirectUrl:"",needsInterop:!1});case"invalidate":return Promise.resolve()}};class ut extends ct{queueMock(){}}function ft(r){const e=new ut(r("__vitest_mocker__"),{resolveId(t,n){return j("resolveId")},resolveMock(t,n,i){return j("resolveMock")},async invalidate(t){return j("invalidate")}},(...t)=>globalThis.__STORYBOOK_MODULE_TEST__.spyOn(...t),{root:""});return globalThis.__vitest_mocker__=e,st({globalThisKey:"__vitest_mocker__"})}globalThis.__STORYBOOK_MOCKER__=ft(()=>new lt);
|