@ncino/web-components 15.0.0 → 15.1.1
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/_slds/icons/action-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/action-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/custom-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/custom-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/doctype-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/doctype-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/standard-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/standard-sprite/svg/symbols.svg +1 -1
- package/dist/_slds/icons/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/svg/symbols.svg +1 -1
- package/dist/_slds/icons/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/symbols.svg +1 -1
- package/dist/_slds/icons/utility-sprite/svg/symbols-rtl.svg +1 -1
- package/dist/_slds/icons/utility-sprite/svg/symbols.svg +1 -1
- package/dist/_virtual/AsymmetricMatcher.js +1 -0
- package/dist/_virtual/ConvertAnsi.js +1 -0
- package/dist/_virtual/DOMCollection.js +1 -0
- package/dist/_virtual/DOMElement.js +1 -0
- package/dist/_virtual/Immutable.js +1 -0
- package/dist/_virtual/ReactElement.js +1 -0
- package/dist/_virtual/ReactTestComponent.js +1 -0
- package/dist/_virtual/alertRole.js +1 -0
- package/dist/_virtual/alertdialogRole.js +1 -0
- package/dist/_virtual/applicationRole.js +1 -0
- package/dist/_virtual/ariaAbstractRoles.js +1 -0
- package/dist/_virtual/ariaDpubRoles.js +1 -0
- package/dist/_virtual/ariaGraphicsRoles.js +1 -0
- package/dist/_virtual/ariaLiteralRoles.js +1 -0
- package/dist/_virtual/ariaPropsMap.js +1 -0
- package/dist/_virtual/articleRole.js +1 -0
- package/dist/_virtual/axe.js +1 -1
- package/dist/_virtual/bannerRole.js +1 -0
- package/dist/_virtual/blockquoteRole.js +1 -0
- package/dist/_virtual/buttonRole.js +1 -0
- package/dist/_virtual/captionRole.js +1 -0
- package/dist/_virtual/cellRole.js +1 -0
- package/dist/_virtual/checkboxRole.js +1 -0
- package/dist/_virtual/codeRole.js +1 -0
- package/dist/_virtual/collections.js +1 -0
- package/dist/_virtual/columnheaderRole.js +1 -0
- package/dist/_virtual/comboboxRole.js +1 -0
- package/dist/_virtual/commandRole.js +1 -0
- package/dist/_virtual/complementaryRole.js +1 -0
- package/dist/_virtual/compositeRole.js +1 -0
- package/dist/_virtual/contentinfoRole.js +1 -0
- package/dist/_virtual/definitionRole.js +1 -0
- package/dist/_virtual/deletionRole.js +1 -0
- package/dist/_virtual/dialogRole.js +1 -0
- package/dist/_virtual/directoryRole.js +1 -0
- package/dist/_virtual/docAbstractRole.js +1 -0
- package/dist/_virtual/docAcknowledgmentsRole.js +1 -0
- package/dist/_virtual/docAfterwordRole.js +1 -0
- package/dist/_virtual/docAppendixRole.js +1 -0
- package/dist/_virtual/docBacklinkRole.js +1 -0
- package/dist/_virtual/docBiblioentryRole.js +1 -0
- package/dist/_virtual/docBibliographyRole.js +1 -0
- package/dist/_virtual/docBibliorefRole.js +1 -0
- package/dist/_virtual/docChapterRole.js +1 -0
- package/dist/_virtual/docColophonRole.js +1 -0
- package/dist/_virtual/docConclusionRole.js +1 -0
- package/dist/_virtual/docCoverRole.js +1 -0
- package/dist/_virtual/docCreditRole.js +1 -0
- package/dist/_virtual/docCreditsRole.js +1 -0
- package/dist/_virtual/docDedicationRole.js +1 -0
- package/dist/_virtual/docEndnoteRole.js +1 -0
- package/dist/_virtual/docEndnotesRole.js +1 -0
- package/dist/_virtual/docEpigraphRole.js +1 -0
- package/dist/_virtual/docEpilogueRole.js +1 -0
- package/dist/_virtual/docErrataRole.js +1 -0
- package/dist/_virtual/docExampleRole.js +1 -0
- package/dist/_virtual/docFootnoteRole.js +1 -0
- package/dist/_virtual/docForewordRole.js +1 -0
- package/dist/_virtual/docGlossaryRole.js +1 -0
- package/dist/_virtual/docGlossrefRole.js +1 -0
- package/dist/_virtual/docIndexRole.js +1 -0
- package/dist/_virtual/docIntroductionRole.js +1 -0
- package/dist/_virtual/docNoterefRole.js +1 -0
- package/dist/_virtual/docNoticeRole.js +1 -0
- package/dist/_virtual/docPagebreakRole.js +1 -0
- package/dist/_virtual/docPagelistRole.js +1 -0
- package/dist/_virtual/docPartRole.js +1 -0
- package/dist/_virtual/docPrefaceRole.js +1 -0
- package/dist/_virtual/docPrologueRole.js +1 -0
- package/dist/_virtual/docPullquoteRole.js +1 -0
- package/dist/_virtual/docQnaRole.js +1 -0
- package/dist/_virtual/docSubtitleRole.js +1 -0
- package/dist/_virtual/docTipRole.js +1 -0
- package/dist/_virtual/docTocRole.js +1 -0
- package/dist/_virtual/documentRole.js +1 -0
- package/dist/_virtual/domMap.js +1 -0
- package/dist/_virtual/elementRoleMap.js +1 -0
- package/dist/_virtual/emphasisRole.js +1 -0
- package/dist/_virtual/escapeHTML.js +1 -0
- package/dist/_virtual/feedRole.js +1 -0
- package/dist/_virtual/figureRole.js +1 -0
- package/dist/_virtual/formRole.js +1 -0
- package/dist/_virtual/genericRole.js +1 -0
- package/dist/_virtual/graphicsDocumentRole.js +1 -0
- package/dist/_virtual/graphicsObjectRole.js +1 -0
- package/dist/_virtual/graphicsSymbolRole.js +1 -0
- package/dist/_virtual/gridRole.js +1 -0
- package/dist/_virtual/gridcellRole.js +1 -0
- package/dist/_virtual/groupRole.js +1 -0
- package/dist/_virtual/headingRole.js +1 -0
- package/dist/_virtual/imgRole.js +1 -0
- package/dist/_virtual/index.js +1 -1
- package/dist/_virtual/index2.js +1 -0
- package/dist/_virtual/index3.js +1 -0
- package/dist/_virtual/index4.js +1 -0
- package/dist/_virtual/index5.js +1 -0
- package/dist/_virtual/index6.js +1 -0
- package/dist/_virtual/index7.js +1 -0
- package/dist/_virtual/index8.js +1 -0
- package/dist/_virtual/inputRole.js +1 -0
- package/dist/_virtual/insertionRole.js +1 -0
- package/dist/_virtual/iterationDecorator.js +1 -0
- package/dist/_virtual/iteratorProxy.js +1 -0
- package/dist/_virtual/landmarkRole.js +1 -0
- package/dist/_virtual/linkRole.js +1 -0
- package/dist/_virtual/listRole.js +1 -0
- package/dist/_virtual/listboxRole.js +1 -0
- package/dist/_virtual/listitemRole.js +1 -0
- package/dist/_virtual/logRole.js +1 -0
- package/dist/_virtual/lz-string.js +1 -0
- package/dist/_virtual/lz-string2.js +1 -0
- package/dist/_virtual/mainRole.js +1 -0
- package/dist/_virtual/markRole.js +1 -0
- package/dist/_virtual/markup.js +1 -0
- package/dist/_virtual/marqueeRole.js +1 -0
- package/dist/_virtual/mathRole.js +1 -0
- package/dist/_virtual/menuRole.js +1 -0
- package/dist/_virtual/menubarRole.js +1 -0
- package/dist/_virtual/menuitemRole.js +1 -0
- package/dist/_virtual/menuitemcheckboxRole.js +1 -0
- package/dist/_virtual/menuitemradioRole.js +1 -0
- package/dist/_virtual/meterRole.js +1 -0
- package/dist/_virtual/navigationRole.js +1 -0
- package/dist/_virtual/noneRole.js +1 -0
- package/dist/_virtual/noteRole.js +1 -0
- package/dist/_virtual/optionRole.js +1 -0
- package/dist/_virtual/paragraphRole.js +1 -0
- package/dist/_virtual/presentationRole.js +1 -0
- package/dist/_virtual/progressbarRole.js +1 -0
- package/dist/_virtual/radioRole.js +1 -0
- package/dist/_virtual/radiogroupRole.js +1 -0
- package/dist/_virtual/rangeRole.js +1 -0
- package/dist/_virtual/react-is.production.min.js +1 -0
- package/dist/_virtual/regionRole.js +1 -0
- package/dist/_virtual/roleElementMap.js +1 -0
- package/dist/_virtual/rolesMap.js +1 -0
- package/dist/_virtual/roletypeRole.js +1 -0
- package/dist/_virtual/rowRole.js +1 -0
- package/dist/_virtual/rowgroupRole.js +1 -0
- package/dist/_virtual/rowheaderRole.js +1 -0
- package/dist/_virtual/scrollbarRole.js +1 -0
- package/dist/_virtual/searchRole.js +1 -0
- package/dist/_virtual/searchboxRole.js +1 -0
- package/dist/_virtual/sectionRole.js +1 -0
- package/dist/_virtual/sectionheadRole.js +1 -0
- package/dist/_virtual/selectRole.js +1 -0
- package/dist/_virtual/separatorRole.js +1 -0
- package/dist/_virtual/sliderRole.js +1 -0
- package/dist/_virtual/spinbuttonRole.js +1 -0
- package/dist/_virtual/statusRole.js +1 -0
- package/dist/_virtual/strongRole.js +1 -0
- package/dist/_virtual/structureRole.js +1 -0
- package/dist/_virtual/subscriptRole.js +1 -0
- package/dist/_virtual/superscriptRole.js +1 -0
- package/dist/_virtual/switchRole.js +1 -0
- package/dist/_virtual/tabRole.js +1 -0
- package/dist/_virtual/tableRole.js +1 -0
- package/dist/_virtual/tablistRole.js +1 -0
- package/dist/_virtual/tabpanelRole.js +1 -0
- package/dist/_virtual/termRole.js +1 -0
- package/dist/_virtual/textboxRole.js +1 -0
- package/dist/_virtual/timeRole.js +1 -0
- package/dist/_virtual/timerRole.js +1 -0
- package/dist/_virtual/toolbarRole.js +1 -0
- package/dist/_virtual/tooltipRole.js +1 -0
- package/dist/_virtual/treeRole.js +1 -0
- package/dist/_virtual/treegridRole.js +1 -0
- package/dist/_virtual/treeitemRole.js +1 -0
- package/dist/_virtual/widgetRole.js +1 -0
- package/dist/_virtual/windowRole.js +1 -0
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/gator/button.gator.js +23 -10
- package/dist/components/button-card/button-card.js +1 -1
- package/dist/components/button-card/gator/button-card.gator.js +37 -20
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
- package/dist/components/input/gator/input-date/input-date.gator.js +1 -1
- package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
- package/dist/components/input-rich-text/input-rich-text.slds.js +1 -1
- package/dist/components/menu/base/gator/menu.gator.js +1 -1
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/popover/gator/popover.gator.js +1 -1
- package/dist/components/skip-link/gator/base/skip-link.gator.js +1 -1
- package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
- package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
- package/dist/node_modules/.pnpm/@testing-library_dom@10.4.1/node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js +44 -0
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/deserialize.js +1 -0
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/serialize.js +1 -0
- package/dist/node_modules/.pnpm/{@vitest_expect@4.1.1 → @vitest_expect@4.1.10}/node_modules/@vitest/expect/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/{@vitest_pretty-format@4.1.1 → @vitest_pretty-format@4.1.10}/node_modules/@vitest/pretty-format/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/chunk-artifact.js +12 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.10/node_modules/@vitest/snapshot/dist/index.js +20 -0
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.10/node_modules/@vitest/spy/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/diff.js +42 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/display.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/error.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/helpers.js +2 -0
- package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/source-map.js +2 -2
- package/dist/node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js +1 -0
- package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/ariaPropsMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/domMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/elementRoleMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/commandRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/inputRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/selectRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/structureRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/abstract/windowRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/alertRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/applicationRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/articleRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/bannerRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/buttonRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/captionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/cellRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/codeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/definitionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/deletionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/dialogRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/directoryRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/documentRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/feedRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/figureRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/formRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/genericRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/gridRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/groupRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/headingRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/imgRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/insertionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/linkRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/listitemRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/logRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/mainRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/markRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/mathRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menubarRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/meterRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/navigationRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/noneRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/noteRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/optionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/presentationRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/radioRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/regionRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/searchRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/separatorRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/sliderRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/statusRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/strongRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/switchRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tabRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tableRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tablistRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/termRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/textboxRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/timeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/timerRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treeRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treegridRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/index.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/roleElementMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/rolesMap.js +3 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/util/iterationDecorator.js +1 -0
- package/dist/node_modules/.pnpm/aria-query@5.3.0/node_modules/aria-query/lib/util/iteratorProxy.js +1 -0
- package/dist/node_modules/.pnpm/axe-core@4.12.1/node_modules/axe-core/axe.js +20 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +1 -1
- package/dist/node_modules/.pnpm/color-name@2.1.1/node_modules/color-name/index.js +1 -0
- package/dist/node_modules/.pnpm/color-parse@2.0.2/node_modules/color-parse/index.js +1 -1
- package/dist/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/lite/index.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-description.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name-and-description.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/accessible-name.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/getRole.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/polyfills/SetLike.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/polyfills/array.from.js +1 -0
- package/dist/node_modules/.pnpm/dom-accessibility-api@0.5.16/node_modules/dom-accessibility-api/dist/util.js +1 -0
- package/dist/node_modules/.pnpm/hast-util-to-dom@4.0.1/node_modules/hast-util-to-dom/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-mdast@10.1.2/node_modules/hast-util-to-mdast/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-mdast@10.1.2/node_modules/hast-util-to-mdast/lib/util/wrap.js +1 -1
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js +1 -1
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/PhoneNumber.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/format.js +1 -0
- package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +1 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +1 -0
- package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +2 -2
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/isCallingCode.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/isCountryCode.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/isPossible.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/isValid.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/metadata.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/es6/parse.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.13.8/node_modules/libphonenumber-js/metadata.min.json.js +1 -0
- package/dist/node_modules/.pnpm/lz-string@1.5.0/node_modules/lz-string/libs/lz-string.js +1 -0
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/footer.js +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js +1 -1
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/collections.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.js +4 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ConvertAnsi.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/DOMCollection.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/DOMElement.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/Immutable.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ReactElement.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/ReactTestComponent.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/lib/escapeHTML.js +1 -0
- package/dist/node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/plugins/lib/markup.js +2 -0
- package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/html.js +1 -1
- package/dist/node_modules/.pnpm/property-information@7.2.0/node_modules/property-information/lib/svg.js +1 -0
- package/dist/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/cjs/react-is.production.min.js +1 -0
- package/dist/node_modules/.pnpm/react-is@17.0.2/node_modules/react-is/index.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-2HVKLHKJ.js +6 -0
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-A26ZOLVJ.js +1 -0
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-ZCFV7BZB.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-DRQKCCAG.js} +1 -1
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/_browser-chunks/chunk-EUVGDK4H.js +1 -1
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-IMSF75WX.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-KK3JJ3E4.js +1 -0
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-POMIZRJL.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-MFQQ5L5I.js} +1 -1
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-7YGTGCDG.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-SC67XZST.js} +1 -1
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-SNLGT2ZI.js +11 -0
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-W6Y3UHOT.js +1 -0
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-V2VKKSMQ.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-X5VVFFFE.js} +1 -1
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/core-events/index.js +1 -0
- package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/instrumenter/index.js +1 -1
- package/dist/node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/test/index.js +105 -0
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/benchmark.CX_oY03V.js +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/rpc.MzXet3jl.js +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js +11 -0
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js +8 -0
- package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/button-card/gator/button-card.gator.scss.js +1 -1
- package/dist/packages/web-components/src/index.slds.scss.js +1 -1
- package/dist/types/components/button/button.d.ts +14 -0
- package/dist/types/components/button/gator/button.gator.d.ts +10 -0
- package/dist/types/components/button-card/button-card.d.ts +15 -0
- package/dist/types/components/button-card/gator/button-card.gator.d.ts +12 -0
- package/dist/utils/storybook-actions.js +1 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/dist/utils/vitest-utils.js +1 -1
- package/package.json +26 -26
- package/web-types.json +36 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js +0 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.1/node_modules/@vitest/runner/dist/chunk-artifact.js +0 -12
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.1/node_modules/@vitest/snapshot/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@vitest_spy@4.1.1/node_modules/@vitest/spy/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/diff.js +0 -42
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/display.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/error.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/helpers.js +0 -2
- package/dist/node_modules/.pnpm/axe-core@4.11.1/node_modules/axe-core/axe.js +0 -20
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/format.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -2
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/isPossible.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/isValid.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/metadata.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/es6/parse.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.37/node_modules/libphonenumber-js/metadata.min.json.js +0 -1
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-A242L54C.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-JVRDBUUP.js +0 -6
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-SZQXB3JV.js +0 -11
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-XLJZ7AOP.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/channels/index.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/core-events/index.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/test/index.js +0 -152
- package/dist/node_modules/.pnpm/tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a/node_modules/vitest/dist/chunks/benchmark.D0SlKNbZ.js +0 -1
- package/dist/node_modules/.pnpm/vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a/node_modules/vitest/dist/chunks/test.CBQUpOM3.js +0 -10
- package/dist/node_modules/.pnpm/vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js +0 -8
- /package/dist/node_modules/.pnpm/{@ungap_structured-clone@1.3.0 → @ungap_structured-clone@1.3.3}/node_modules/@ungap/structured-clone/esm/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@ungap_structured-clone@1.3.0 → @ungap_structured-clone@1.3.3}/node_modules/@ungap/structured-clone/esm/types.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/offset.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/serialize.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.1.1 → @vitest_utils@4.1.10}/node_modules/@vitest/utils/dist/timers.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.37 → libphonenumber-js@1.13.8}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/index.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/aria.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/find.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/normalize.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/case-insensitive-transform.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/case-sensitive-transform.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/create.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/defined-info.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/info.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/merge.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/schema.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/types.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xlink.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xml.js +0 -0
- /package/dist/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xmlns.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/_browser-chunks/chunk-3LY4VQVK.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/_browser-chunks/chunk-6XWLIJQL.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-Q5RYDXT3.js → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-QGGIYUMM.js} +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/_browser-chunks/chunk-ZUWEVLDX.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7}/node_modules/storybook/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a → vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d}/node_modules/vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_6987228cf79758f3d05c697357fc8c5a → vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d}/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -0
|
@@ -38,5 +38,19 @@ export declare class NjcButton extends NjcButton_base {
|
|
|
38
38
|
@type {boolean}
|
|
39
39
|
**/
|
|
40
40
|
skeleton: boolean;
|
|
41
|
+
/**
|
|
42
|
+
@property href - When set, the button renders as a real navigable anchor (`<a>`) styled as the
|
|
43
|
+
button, giving native open-in-new-tab, modifier/middle-click, copy-link and the link
|
|
44
|
+
screen-reader role without an outer `<a>` wrapper. When empty, standard `<button>` semantics are
|
|
45
|
+
kept. Ignored while `disabled` or `loading`. For inline text links prefer `ngc-text-link`.
|
|
46
|
+
@type {string}
|
|
47
|
+
**/
|
|
48
|
+
href: string;
|
|
49
|
+
/**
|
|
50
|
+
@property target - The browsing context for the link when `href` is set (e.g. `_blank`,
|
|
51
|
+
`_self`). Has no effect without `href`.
|
|
52
|
+
@type {string}
|
|
53
|
+
**/
|
|
54
|
+
target: string;
|
|
41
55
|
}
|
|
42
56
|
export {};
|
|
@@ -17,6 +17,15 @@ export declare class NgcButton extends NjcButton {
|
|
|
17
17
|
endIcon: string | undefined;
|
|
18
18
|
type: 'submit' | 'button' | 'reset';
|
|
19
19
|
render(): import('lit').TemplateResult<1>;
|
|
20
|
+
/**
|
|
21
|
+
* Link mode is active only when an `href` is provided and the button is neither disabled nor
|
|
22
|
+
* loading. Disabled/loading intentionally fall back to `<button>` so a link can never navigate
|
|
23
|
+
* while in those states.
|
|
24
|
+
*/
|
|
25
|
+
get isLinkMode(): boolean;
|
|
26
|
+
get buttonMarkup(): import('lit').TemplateResult<1>;
|
|
27
|
+
get anchorMarkup(): import('lit').TemplateResult<1>;
|
|
28
|
+
get buttonContentMarkup(): import('lit').TemplateResult<1>;
|
|
20
29
|
get startIconMarkup(): import('lit').TemplateResult<1> | typeof nothing;
|
|
21
30
|
get endIconMarkup(): import('lit').TemplateResult<1> | typeof nothing;
|
|
22
31
|
get buttonAriaLabel(): string | typeof nothing;
|
|
@@ -26,6 +35,7 @@ export declare class NgcButton extends NjcButton {
|
|
|
26
35
|
get skeletonMarkup(): import('lit').TemplateResult<1>;
|
|
27
36
|
get loadingMarkup(): import('lit').TemplateResult<1>;
|
|
28
37
|
handleClick(event: Event): void;
|
|
38
|
+
handleAnchorClick(event: Event): void;
|
|
29
39
|
}
|
|
30
40
|
declare global {
|
|
31
41
|
interface HTMLElementTagNameMap {
|
|
@@ -10,4 +10,19 @@ export declare class NjcButtonCard extends NjcCard {
|
|
|
10
10
|
* @property {boolean} selected
|
|
11
11
|
*/
|
|
12
12
|
selected: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @description When set, the button card renders as a real navigable anchor (`<a>`) wrapping the
|
|
15
|
+
* card, providing native open-in-new-tab, modifier/middle-click, copy-link and the link
|
|
16
|
+
* screen-reader role without an outer `<a>` wrapper. When empty, the card keeps its
|
|
17
|
+
* `role="button"` toggle semantics. `selected`/`aria-pressed` apply to button mode only and are
|
|
18
|
+
* ignored in link mode.
|
|
19
|
+
* @property {string} href
|
|
20
|
+
*/
|
|
21
|
+
href: string;
|
|
22
|
+
/**
|
|
23
|
+
* @description The browsing context for the link when `href` is set (e.g. `_blank`, `_self`).
|
|
24
|
+
* Has no effect without `href`.
|
|
25
|
+
* @property {string} target
|
|
26
|
+
*/
|
|
27
|
+
target: string;
|
|
13
28
|
}
|
|
@@ -17,8 +17,19 @@ export declare class NgcButtonCard extends NjcButtonCard {
|
|
|
17
17
|
*/
|
|
18
18
|
chipType: NJC_CHIP_TYPES;
|
|
19
19
|
private _showDefault;
|
|
20
|
+
private _selectedInLinkModeWarned;
|
|
20
21
|
firstUpdated(_changedProperties: PropertyValues): void;
|
|
22
|
+
updated(_changedProperties: PropertyValues): void;
|
|
23
|
+
/**
|
|
24
|
+
* Link mode is active only when an `href` is provided and the card is not disabled. As with
|
|
25
|
+
* `ngc-button`, a disabled card falls back to button-mode markup so a link can never navigate
|
|
26
|
+
* while disabled.
|
|
27
|
+
*/
|
|
28
|
+
get isLinkMode(): boolean;
|
|
21
29
|
render(): import('lit').TemplateResult<1>;
|
|
30
|
+
get buttonMarkup(): import('lit').TemplateResult<1>;
|
|
31
|
+
get linkMarkup(): import('lit').TemplateResult<1>;
|
|
32
|
+
get cardBodyMarkup(): import('lit').TemplateResult<1>;
|
|
22
33
|
private _checkSlotContent;
|
|
23
34
|
get cardClasses(): {
|
|
24
35
|
selected: boolean;
|
|
@@ -28,4 +39,5 @@ export declare class NgcButtonCard extends NjcButtonCard {
|
|
|
28
39
|
handleClick(event: Event): void;
|
|
29
40
|
click(): void;
|
|
30
41
|
handleKeydown(event: KeyboardEvent): void;
|
|
42
|
+
handleAnchorClick(event: Event): void;
|
|
31
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{actions as m}from"../node_modules/.pnpm/storybook@10.
|
|
1
|
+
import{actions as m}from"../node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-EUVGDK4H.js";import{makeDecorator as f,useEffect as u}from"../node_modules/.pnpm/storybook@10.5.0_@types_react@19.2.14_prettier@3.8.1_react@19.2.7/node_modules/storybook/dist/_browser-chunks/chunk-SNLGT2ZI.js";const d=/^(\S+)\s*(.*)$/,p=Element!=null&&!Element.prototype.matches?"msMatchesSelector":"matches";function E(t){const o={type:t.type,bubbles:t.bubbles,composed:t.composed,cancelable:t.cancelable};if("detail"in t){const{detail:e}=t;e!==void 0&&(o.detail=e)}return t.target instanceof Element&&(o.target=t.target.tagName.toLowerCase()),o}function i(t,o){if(t[p](o))return!0;const e=t.parentElement;return e?i(e,o):!1}function h(t,...o){const e=t(...o);return Object.entries(e).map(([a,n])=>{const r=a.match(d)||[],l=r[1],c=r[2]?.trim();return{eventName:l,handler:s=>{(!c||i(s.target,c))&&n(E(s))}}})}function b(t,...o){const e=typeof globalThis.document<"u"&&globalThis.document.getElementById("storybook-root");u(()=>{if(!e)return;const a=h(t,...o);return a.forEach(({eventName:n,handler:r})=>{e.addEventListener(n,r)}),()=>{a.forEach(({eventName:n,handler:r})=>{e.removeEventListener(n,r)})}},[e,t,o])}const T=f({name:"withGatorActions",parameterName:"actions",skipIfNoParametersOrOptions:!0,wrapper:(t,o,{parameters:e})=>(e?.handles&&b(m,...e.handles),t(o))});export{E as serializeEventForActionPanel,T as withGatorActions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{page as s}from"../node_modules/.pnpm/vitest@4.1.
|
|
1
|
+
import{page as s}from"../node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/browser/context.js";import n from"../_virtual/axe.js";import{g as o}from"../node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js";const d="Supercalifragilisticexpialidocious".repeat(10);async function a(t){return(await n.run(t)).violations}async function p(t){const e=await a(t);o(e,`Expected no axe core violations, but got ${e.length}: ${JSON.stringify(e)}`).toHaveLength(0)}function x(){return s.viewport(320,256)}function g(t){let e;if(t.scrollWidth!==0?e=t:t.shadowRoot?e=t.shadowRoot.firstElementChild:e=t.firstElementChild,e){const r=e.scrollWidth>e.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function h(t,e,r){let i=t.querySelector(":focus-visible");if(i||(i=t.shadowRoot?.querySelector(":focus-visible")),i){const l=getComputedStyle(i).getPropertyValue(e);return o(l).toContain(r)}return o(!0).toBe(!1)}export{h as expectComponentFocusStyle,g as expectComponentNotToHaveHorizontalScrollbar,p as expectNoAxeViolations,x as resizeWindowForReflowTest,a as runAxeAndGetViolations,d as superLongStringForReflowTest};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r}from"../node_modules/.pnpm/vitest@4.1.
|
|
1
|
+
import{g as r}from"../node_modules/.pnpm/vitest@4.1.10_@types_node@25.5.0_@vitest_browser-playwright@4.1.10_@vitest_coverage-v8@_5f2fec403b59e09b2c3d43ea88e7327d/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js";async function a(t){document.body.innerHTML=t,await new Promise(e=>setTimeout(e,0))}function i(t){return document.body.querySelector(t)}function c(t,e){return t?.querySelector(e)}function d(t,e){return t?.querySelectorAll(e)}function m(t){return document.body.querySelectorAll(t)}function f(t,e){return t?.shadowRoot?.querySelectorAll(e)}function g(t,e){return t?.shadowRoot?.querySelector(e)}function E(t,e){return t?.shadowRoot?.querySelector(`[data-testid="${e}"]`)}function S(t,e){return t?.shadowRoot?.querySelector(e)}function y(t,e){return t?.shadowRoot?.querySelectorAll(e)}function h(t){const e=t?.shadowRoot?.querySelectorAll("slot"),n=Array.from(e).find(l=>l.name==="")?.assignedNodes({flatten:!0}).filter(l=>l.textContent?.trim()!=="");return n&&n.length>0?n[0].textContent:null}function w(t,e){const o=t?.shadowRoot?.querySelector(`slot[name="${e}"]`);return(o?.assignedNodes().length?o?.assignedNodes({flatten:!0})[0]:o?.assignedElements({flatten:!0})[0])?.textContent}function R(t,e=null){let n=t?.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0});return e&&(n=n?.filter(l=>l.tagName.toLowerCase()===e)),n}function T(t,e){return t?.shadowRoot?.querySelector(`slot[name=${e}]`)?.assignedElements({flatten:!0})}function s(t=0){return new Promise(e=>setTimeout(e,t))}function q(){return s(150)}function x(t,e){r(t).toBeTruthy();const o=t;r(o.getAttribute("title")).toBeNull(),r(o.title).toBe(e)}function N(t){const e=/<!--\?lit\$[^\$]*\$-->/g;return t.replace(e,"").replace(/\s+/g," ").trim()}export{a as addTestableElement,N as cleanInnerHTML,x as expectLitHeadingTitle,s as flushPromises,i as getElement,c as getElementInsideElement,m as getElements,d as getElementsInsideElement,w as getNamedSlotTextContent,T as getNamedSlottedElements,S as getShadowRootElement,E as getShadowRootElementByDataTestId,y as getShadowRootElements,g as getShadowRootHTMLElement,f as getShadowRootHTMLElements,h as getSlotTextContent,R as getSlottedElements,q as waitForTooltipHide};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.1.1",
|
|
5
5
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,56 +54,56 @@
|
|
|
54
54
|
"web-types": "./web-types.json",
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@deltablot/dropzone": "^7.4.3",
|
|
57
|
-
"@floating-ui/dom": "^1.
|
|
57
|
+
"@floating-ui/dom": "^1.8.0",
|
|
58
58
|
"@lit/localize": "^0.12.2",
|
|
59
|
-
"ckeditor5": "
|
|
59
|
+
"ckeditor5": "47.6.0",
|
|
60
60
|
"color": "5.0.3",
|
|
61
|
-
"libphonenumber-js": "^1.
|
|
61
|
+
"libphonenumber-js": "^1.13.8",
|
|
62
62
|
"lit": "^3.3.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@custom-elements-manifest/analyzer": "0.11.0",
|
|
66
66
|
"@figma/code-connect": "1.4.1",
|
|
67
67
|
"@lit/localize-tools": "^0.8.1",
|
|
68
|
-
"@salesforce-ux/design-system": "^2.
|
|
69
|
-
"@storybook/addon-a11y": "^10.
|
|
68
|
+
"@salesforce-ux/design-system": "^2.30.7",
|
|
69
|
+
"@storybook/addon-a11y": "^10.5.0",
|
|
70
70
|
"@storybook/addon-designs": "^11.1.2",
|
|
71
|
-
"@storybook/addon-docs": "^10.
|
|
72
|
-
"@storybook/addon-links": "^10.
|
|
73
|
-
"@storybook/web-components-vite": "^10.
|
|
71
|
+
"@storybook/addon-docs": "^10.5.0",
|
|
72
|
+
"@storybook/addon-links": "^10.5.0",
|
|
73
|
+
"@storybook/web-components-vite": "^10.5.0",
|
|
74
74
|
"@types/react": "^19",
|
|
75
|
-
"@typescript-eslint/parser": "^8.
|
|
76
|
-
"@vitest/browser": "^4.1.
|
|
77
|
-
"@vitest/browser-playwright": "^4.1.
|
|
78
|
-
"@vitest/coverage-v8": "^4.1.
|
|
79
|
-
"@vitest/ui": "4.1.
|
|
80
|
-
"axe-core": "^4.
|
|
75
|
+
"@typescript-eslint/parser": "^8.64.0",
|
|
76
|
+
"@vitest/browser": "^4.1.10",
|
|
77
|
+
"@vitest/browser-playwright": "^4.1.10",
|
|
78
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
79
|
+
"@vitest/ui": "4.1.10",
|
|
80
|
+
"axe-core": "^4.12.1",
|
|
81
81
|
"cem-plugin-expanded-types": "^1.4.0",
|
|
82
82
|
"chromatic": "^16.1.0",
|
|
83
83
|
"conventional-changelog-conventionalcommits": "^9.3.0",
|
|
84
84
|
"custom-element-jet-brains-integration": "^1.7.0",
|
|
85
85
|
"custom-elements-manifest": "^2.1.0",
|
|
86
|
-
"eslint": "^10.
|
|
87
|
-
"eslint-plugin-storybook": "^10.
|
|
88
|
-
"eslint-plugin-yml": "3.
|
|
86
|
+
"eslint": "^10.7.0",
|
|
87
|
+
"eslint-plugin-storybook": "^10.5.0",
|
|
88
|
+
"eslint-plugin-yml": "3.6.0",
|
|
89
89
|
"glob": "^13.0.6",
|
|
90
|
-
"jsdom": "29.
|
|
91
|
-
"playwright": "1.
|
|
90
|
+
"jsdom": "29.1.1",
|
|
91
|
+
"playwright": "1.61.1",
|
|
92
92
|
"postcss": "^8.5.6",
|
|
93
93
|
"rimraf": "^6.1.3",
|
|
94
|
-
"sass": "1.
|
|
95
|
-
"storybook": "^10.
|
|
94
|
+
"sass": "1.101.0",
|
|
95
|
+
"storybook": "^10.5.0",
|
|
96
96
|
"storybook-addon-code-editor": "^6.1.3",
|
|
97
97
|
"typescript": "^5.9.3",
|
|
98
98
|
"vite": "7.3.2",
|
|
99
99
|
"vite-plugin-dts": "4.5.4",
|
|
100
100
|
"vite-plugin-static-copy": "^3.3.0",
|
|
101
|
-
"vitest": "^4.1.
|
|
102
|
-
"yaml-eslint-parser": "^2.
|
|
103
|
-
"@ncino/styles": "15.
|
|
101
|
+
"vitest": "^4.1.10",
|
|
102
|
+
"yaml-eslint-parser": "^2.1.0",
|
|
103
|
+
"@ncino/styles": "15.1.1"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@ncino/styles": "15.
|
|
106
|
+
"@ncino/styles": "15.1.1"
|
|
107
107
|
},
|
|
108
108
|
"bugs": {
|
|
109
109
|
"url": "https://github.com/ncino/force-sdk-web-components/issues"
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@ncino/web-components",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "15.1.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1734,6 +1734,11 @@
|
|
|
1734
1734
|
"name": "skeleton",
|
|
1735
1735
|
"value": { "type": "boolean", "default": "false" }
|
|
1736
1736
|
},
|
|
1737
|
+
{ "name": "href", "value": { "type": "string", "default": "''" } },
|
|
1738
|
+
{
|
|
1739
|
+
"name": "target",
|
|
1740
|
+
"value": { "type": "string", "default": "''" }
|
|
1741
|
+
},
|
|
1737
1742
|
{
|
|
1738
1743
|
"name": "data-testid",
|
|
1739
1744
|
"value": { "type": "string | undefined", "default": "undefined" }
|
|
@@ -1760,6 +1765,8 @@
|
|
|
1760
1765
|
{ "name": "disabled", "type": "boolean" },
|
|
1761
1766
|
{ "name": "loading", "type": "boolean" },
|
|
1762
1767
|
{ "name": "skeleton", "type": "boolean" },
|
|
1768
|
+
{ "name": "href", "type": "string" },
|
|
1769
|
+
{ "name": "target", "type": "string" },
|
|
1763
1770
|
{ "name": "dataTestid", "type": "string | undefined" },
|
|
1764
1771
|
{ "name": "labelDataTestid" },
|
|
1765
1772
|
{ "name": "helpTextDataTestid" },
|
|
@@ -1874,6 +1881,11 @@
|
|
|
1874
1881
|
"name": "skeleton",
|
|
1875
1882
|
"value": { "type": "boolean", "default": "false" }
|
|
1876
1883
|
},
|
|
1884
|
+
{ "name": "href", "value": { "type": "string", "default": "''" } },
|
|
1885
|
+
{
|
|
1886
|
+
"name": "target",
|
|
1887
|
+
"value": { "type": "string", "default": "''" }
|
|
1888
|
+
},
|
|
1877
1889
|
{
|
|
1878
1890
|
"name": "data-testid",
|
|
1879
1891
|
"value": { "type": "string | undefined", "default": "undefined" }
|
|
@@ -1888,6 +1900,13 @@
|
|
|
1888
1900
|
{ "name": "startIcon", "type": "string | undefined" },
|
|
1889
1901
|
{ "name": "endIcon", "type": "string | undefined" },
|
|
1890
1902
|
{ "name": "type", "type": "'submit' | 'button' | 'reset'" },
|
|
1903
|
+
{
|
|
1904
|
+
"name": "isLinkMode",
|
|
1905
|
+
"description": "Link mode is active only when an `href` is provided and the button is neither disabled nor\nloading. Disabled/loading intentionally fall back to `<button>` so a link can never navigate\nwhile in those states."
|
|
1906
|
+
},
|
|
1907
|
+
{ "name": "buttonMarkup" },
|
|
1908
|
+
{ "name": "anchorMarkup" },
|
|
1909
|
+
{ "name": "buttonContentMarkup" },
|
|
1891
1910
|
{ "name": "startIconMarkup" },
|
|
1892
1911
|
{ "name": "endIconMarkup" },
|
|
1893
1912
|
{ "name": "buttonAriaLabel" },
|
|
@@ -1914,6 +1933,8 @@
|
|
|
1914
1933
|
{ "name": "disabled", "type": "boolean" },
|
|
1915
1934
|
{ "name": "loading", "type": "boolean" },
|
|
1916
1935
|
{ "name": "skeleton", "type": "boolean" },
|
|
1936
|
+
{ "name": "href", "type": "string" },
|
|
1937
|
+
{ "name": "target", "type": "string" },
|
|
1917
1938
|
{ "name": "dataTestid", "type": "string | undefined" },
|
|
1918
1939
|
{ "name": "labelDataTestid" },
|
|
1919
1940
|
{ "name": "helpTextDataTestid" },
|
|
@@ -1942,6 +1963,11 @@
|
|
|
1942
1963
|
"name": "selected",
|
|
1943
1964
|
"value": { "type": "boolean", "default": "false" }
|
|
1944
1965
|
},
|
|
1966
|
+
{ "name": "href", "value": { "type": "string", "default": "''" } },
|
|
1967
|
+
{
|
|
1968
|
+
"name": "target",
|
|
1969
|
+
"value": { "type": "string", "default": "''" }
|
|
1970
|
+
},
|
|
1945
1971
|
{
|
|
1946
1972
|
"name": "subtitle",
|
|
1947
1973
|
"value": { "type": "string", "default": "''" }
|
|
@@ -1974,11 +2000,20 @@
|
|
|
1974
2000
|
"name": "chipType",
|
|
1975
2001
|
"type": " | 'success' | 'warning' | 'error' | 'info' | 'ai'"
|
|
1976
2002
|
},
|
|
2003
|
+
{
|
|
2004
|
+
"name": "isLinkMode",
|
|
2005
|
+
"description": "Link mode is active only when an `href` is provided and the card is not disabled. As with\n`ngc-button`, a disabled card falls back to button-mode markup so a link can never navigate\nwhile disabled."
|
|
2006
|
+
},
|
|
2007
|
+
{ "name": "buttonMarkup" },
|
|
2008
|
+
{ "name": "linkMarkup" },
|
|
2009
|
+
{ "name": "cardBodyMarkup" },
|
|
1977
2010
|
{ "name": "cardClasses" },
|
|
1978
2011
|
{ "name": "cardLabelMarkup" },
|
|
1979
2012
|
{ "name": "disabledClass" },
|
|
1980
2013
|
{ "name": "chipLabel", "type": "string" },
|
|
1981
2014
|
{ "name": "selected", "type": "boolean" },
|
|
2015
|
+
{ "name": "href", "type": "string" },
|
|
2016
|
+
{ "name": "target", "type": "string" },
|
|
1982
2017
|
{ "name": "title", "type": "string" },
|
|
1983
2018
|
{ "name": "subtitle", "type": "string" },
|
|
1984
2019
|
{ "name": "elevated", "type": "boolean" },
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{getSideAxis as T,getAlignmentAxis as H,getSide as L,getAlignment as D,evaluate as $,getPaddingObject as J,rectToClientRect as X,getOppositePlacement as K,getExpandedPlacements as N,getOppositeAxisPlacements as Q,getAlignmentSides as z,clamp as Y,getAxisLength as U,getOppositeAxis as W,placements as _,getOppositeAlignmentPlacement as Z}from"../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";function q(t,l,f){let{reference:n,floating:e}=t;const o=T(l),r=H(l),a=U(r),g=L(l),A=o==="y",x=n.x+n.width/2-e.width/2,s=n.y+n.height/2-e.height/2,c=n[a]/2-e[a]/2;let i;switch(g){case"top":i={x,y:n.y-e.height};break;case"bottom":i={x,y:n.y+n.height};break;case"right":i={x:n.x+n.width,y:s};break;case"left":i={x:n.x-e.width,y:s};break;default:i={x:n.x,y:n.y}}switch(D(l)){case"start":i[r]-=c*(f&&A?-1:1);break;case"end":i[r]+=c*(f&&A?-1:1);break}return i}async function ee(t,l){var f;l===void 0&&(l={});const{x:n,y:e,platform:o,rects:r,elements:a,strategy:g}=t,{boundary:A="clippingAncestors",rootBoundary:x="viewport",elementContext:s="floating",altBoundary:c=!1,padding:i=0}=$(l,t),u=J(i),w=a[c?s==="floating"?"reference":"floating":s],m=X(await o.getClippingRect({element:(f=await(o.isElement==null?void 0:o.isElement(w)))==null||f?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:A,rootBoundary:x,strategy:g})),d=s==="floating"?{x:n,y:e,width:r.floating.width,height:r.floating.height}:r.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),y=await(o.isElement==null?void 0:o.isElement(v))?await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},P=X(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:d,offsetParent:v,strategy:g}):d);return{top:(m.top-P.top+u.top)/y.y,bottom:(P.bottom-m.bottom+u.bottom)/y.y,left:(m.left-P.left+u.left)/y.x,right:(P.right-m.right+u.right)/y.x}}const le=async(t,l,f)=>{const{placement:n="bottom",strategy:e="absolute",middleware:o=[],platform:r}=f,a=o.filter(Boolean),g=await(r.isRTL==null?void 0:r.isRTL(l));let A=await r.getElementRects({reference:t,floating:l,strategy:e}),{x,y:s}=q(A,n,g),c=n,i={},u=0;for(let w=0;w<a.length;w++){var h;const{name:m,fn:d}=a[w],{x:v,y,data:P,reset:b}=await d({x,y:s,initialPlacement:n,placement:c,strategy:e,middlewareData:i,rects:A,platform:{...r,detectOverflow:(h=r.detectOverflow)!=null?h:ee},elements:{reference:t,floating:l}});x=v??x,s=y??s,i={...i,[m]:{...i[m],...P}},b&&u<=50&&(u++,typeof b=="object"&&(b.placement&&(c=b.placement),b.rects&&(A=b.rects===!0?await r.getElementRects({reference:t,floating:l,strategy:e}):b.rects),{x,y:s}=q(A,c,g)),w=-1)}return{x,y:s,placement:c,strategy:e,middlewareData:i}};function te(t,l,f){return(t?[...f.filter(e=>D(e)===t),...f.filter(e=>D(e)!==t)]:f.filter(e=>L(e)===e)).filter(e=>t?D(e)===t||(l?Z(e)!==e:!1):!0)}const ie=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(l){var f,n,e;const{rects:o,middlewareData:r,placement:a,platform:g,elements:A}=l,{crossAxis:x=!1,alignment:s,allowedPlacements:c=_,autoAlignment:i=!0,...u}=$(t,l),h=s!==void 0||c===_?te(s||null,i,c):c,w=await g.detectOverflow(l,u),m=((f=r.autoPlacement)==null?void 0:f.index)||0,d=h[m];if(d==null)return{};const v=z(d,o,await(g.isRTL==null?void 0:g.isRTL(A.floating)));if(a!==d)return{reset:{placement:h[0]}};const y=[w[L(d)],w[v[0]],w[v[1]]],P=[...((n=r.autoPlacement)==null?void 0:n.overflows)||[],{placement:d,overflows:y}],b=h[m+1];if(b)return{data:{index:m+1,overflows:P},reset:{placement:b}};const B=P.map(p=>{const S=D(p.placement);return[p.placement,S&&x?p.overflows.slice(0,2).reduce((j,V)=>j+V,0):p.overflows[0],p.overflows]}).sort((p,S)=>p[1]-S[1]),k=((e=B.filter(p=>p[2].slice(0,D(p[0])?2:3).every(S=>S<=0))[0])==null?void 0:e[0])||B[0][0];return k!==a?{data:{index:m+1,overflows:P},reset:{placement:k}}:{}}}},oe=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(l){var f,n;const{placement:e,middlewareData:o,rects:r,initialPlacement:a,platform:g,elements:A}=l,{mainAxis:x=!0,crossAxis:s=!0,fallbackPlacements:c,fallbackStrategy:i="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:h=!0,...w}=$(t,l);if((f=o.arrow)!=null&&f.alignmentOffset)return{};const m=L(e),d=T(a),v=L(a)===a,y=await(g.isRTL==null?void 0:g.isRTL(A.floating)),P=c||(v||!h?[K(a)]:N(a)),b=u!=="none";!c&&b&&P.push(...Q(a,h,u,y));const B=[a,...P],M=await g.detectOverflow(l,w),k=[];let p=((n=o.flip)==null?void 0:n.overflows)||[];if(x&&k.push(M[m]),s){const C=z(e,r,y);k.push(M[C[0]],M[C[1]])}if(p=[...p,{placement:e,overflows:k}],!k.every(C=>C<=0)){var S,j;const C=(((S=o.flip)==null?void 0:S.index)||0)+1,I=B[C];if(I&&(!(s==="alignment"?d!==T(I):!1)||p.every(O=>T(O.placement)===d?O.overflows[0]>0:!0)))return{data:{index:C,overflows:p},reset:{placement:I}};let F=(j=p.filter(E=>E.overflows[0]<=0).sort((E,O)=>E.overflows[1]-O.overflows[1])[0])==null?void 0:j.placement;if(!F)switch(i){case"bestFit":{var V;const E=(V=p.filter(O=>{if(b){const R=T(O.placement);return R===d||R==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(R=>R>0).reduce((R,G)=>R+G,0)]).sort((O,R)=>O[1]-R[1])[0])==null?void 0:V[0];E&&(F=E);break}case"initialPlacement":F=a;break}if(e!==F)return{reset:{placement:F}}}return{}}}},ae=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(l){const{x:f,y:n,placement:e,platform:o}=l,{mainAxis:r=!0,crossAxis:a=!1,limiter:g={fn:m=>{let{x:d,y:v}=m;return{x:d,y:v}}},...A}=$(t,l),x={x:f,y:n},s=await o.detectOverflow(l,A),c=T(L(e)),i=W(c);let u=x[i],h=x[c];if(r){const m=i==="y"?"top":"left",d=i==="y"?"bottom":"right",v=u+s[m],y=u-s[d];u=Y(v,u,y)}if(a){const m=c==="y"?"top":"left",d=c==="y"?"bottom":"right",v=h+s[m],y=h-s[d];h=Y(v,h,y)}const w=g.fn({...l,[i]:u,[c]:h});return{...w,data:{x:w.x-f,y:w.y-n,enabled:{[i]:r,[c]:a}}}}}};export{ie as autoPlacement,le as computePosition,ee as detectOverflow,oe as flip,X as rectToClientRect,ae as shift};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{computePosition as st,flip as rt,shift as ct,autoPlacement as lt}from"../../../../../@floating-ui_core@1.7.4/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{createCoords as w,rectToClientRect as J,floor as A,round as D,max as E,min as V}from"../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as z,isElement as v,getDocumentElement as R,getWindow as L,getFrameElement as U,getComputedStyle as b,isHTMLElement as C,isWebKit as Q,isTopLayer as _,getParentNode as W,isLastTraversableNode as H,isTableElement as ft,isContainingBlock as Y,getContainingBlock as ut,getNodeName as $,isOverflowElement as P,getNodeScroll as I}from"../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";function Z(t){const e=b(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=C(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,c=D(o)!==r||D(n)!==s;return c&&(o=r,n=s),{width:o,height:n,$:c}}function q(t){return v(t)?t:t.contextElement}function F(t){const e=q(t);if(!C(e))return w(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=Z(e);let s=(r?D(o.width):o.width)/n,c=(r?D(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ht=w(0);function tt(t){const e=L(t);return!Q()||!e.visualViewport?ht:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function at(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==L(t)?!1:e}function T(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=q(t);let s=w(1);e&&(n?v(n)&&(s=F(n)):s=F(t));const c=at(r,o,n)?tt(r):w(0);let f=(i.left+c.x)/s.x,l=(i.top+c.y)/s.y,u=i.width/s.x,h=i.height/s.y;if(r){const d=L(r),a=n&&v(n)?L(n):n;let m=d,p=U(m);for(;p&&n&&a!==m;){const y=F(p),g=p.getBoundingClientRect(),x=b(p),O=g.left+(p.clientLeft+parseFloat(x.paddingLeft))*y.x,S=g.top+(p.clientTop+parseFloat(x.paddingTop))*y.y;f*=y.x,l*=y.y,u*=y.x,h*=y.y,f+=O,l+=S,m=L(p),p=U(m)}}return J({width:u,height:h,x:f,y:l})}function M(t,e){const o=I(t).scrollLeft;return e?e.left+o:T(R(t)).left+o}function et(t,e){const o=t.getBoundingClientRect(),n=o.left+e.scrollLeft-M(t,o),i=o.top+e.scrollTop;return{x:n,y:i}}function dt(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=i==="fixed",s=R(n),c=e?_(e.floating):!1;if(n===s||c&&r)return o;let f={scrollLeft:0,scrollTop:0},l=w(1);const u=w(0),h=C(n);if((h||!h&&!r)&&(($(n)!=="body"||P(s))&&(f=I(n)),C(n))){const a=T(n);l=F(n),u.x=a.x+n.clientLeft,u.y=a.y+n.clientTop}const d=s&&!h&&!r?et(s,f):w(0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-f.scrollLeft*l.x+u.x+d.x,y:o.y*l.y-f.scrollTop*l.y+u.y+d.y}}function gt(t){return Array.from(t.getClientRects())}function pt(t){const e=R(t),o=I(t),n=t.ownerDocument.body,i=E(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=E(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+M(t);const c=-o.scrollTop;return b(n).direction==="rtl"&&(s+=E(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:s,y:c}}const K=25;function mt(t,e){const o=L(t),n=R(t),i=o.visualViewport;let r=n.clientWidth,s=n.clientHeight,c=0,f=0;if(i){r=i.width,s=i.height;const u=Q();(!u||u&&e==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const l=M(n);if(l<=0){const u=n.ownerDocument,h=u.body,d=getComputedStyle(h),a=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,m=Math.abs(n.clientWidth-h.clientWidth-a);m<=K&&(r-=m)}else l<=K&&(r+=l);return{width:r,height:s,x:c,y:f}}const yt=new Set(["absolute","fixed"]);function wt(t,e){const o=T(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=C(t)?F(t):w(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,f=i*r.x,l=n*r.y;return{width:s,height:c,x:f,y:l}}function j(t,e,o){let n;if(e==="viewport")n=mt(t,o);else if(e==="document")n=pt(R(t));else if(v(e))n=wt(e,o);else{const i=tt(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return J(n)}function nt(t,e){const o=W(t);return o===e||!v(o)||H(o)?!1:b(o).position==="fixed"||nt(o,e)}function xt(t,e){const o=e.get(t);if(o)return o;let n=z(t,[],!1).filter(c=>v(c)&&$(c)!=="body"),i=null;const r=b(t).position==="fixed";let s=r?W(t):t;for(;v(s)&&!H(s);){const c=b(s),f=Y(s);!f&&c.position==="fixed"&&(i=null),(r?!f&&!i:!f&&c.position==="static"&&!!i&&yt.has(i.position)||P(s)&&!f&&nt(t,s))?n=n.filter(u=>u!==s):i=c,s=W(s)}return e.set(t,n),n}function vt(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const s=[...o==="clippingAncestors"?_(e)?[]:xt(e,this._c):[].concat(o),n],c=s[0],f=s.reduce((l,u)=>{const h=j(e,u,i);return l.top=E(h.top,l.top),l.right=V(h.right,l.right),l.bottom=V(h.bottom,l.bottom),l.left=E(h.left,l.left),l},j(e,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function bt(t){const{width:e,height:o}=Z(t);return{width:e,height:o}}function Rt(t,e,o){const n=C(e),i=R(e),r=o==="fixed",s=T(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=w(0);function l(){f.x=M(i)}if(n||!n&&!r)if(($(e)!=="body"||P(i))&&(c=I(e)),n){const a=T(e,!0,r,e);f.x=a.x+e.clientLeft,f.y=a.y+e.clientTop}else i&&l();r&&!n&&i&&l();const u=i&&!n&&!r?et(i,c):w(0),h=s.left+c.scrollLeft-f.x-u.x,d=s.top+c.scrollTop-f.y-u.y;return{x:h,y:d,width:s.width,height:s.height}}function N(t){return b(t).position==="static"}function G(t,e){if(!C(t)||b(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return R(t)===o&&(o=o.ownerDocument.body),o}function ot(t,e){const o=L(t);if(_(t))return o;if(!C(t)){let i=W(t);for(;i&&!H(i);){if(v(i)&&!N(i))return i;i=W(i)}return o}let n=G(t,e);for(;n&&ft(n)&&N(n);)n=G(n,e);return n&&H(n)&&N(n)&&!Y(n)?o:n||ut(t)||o}const Ct=async function(t){const e=this.getOffsetParent||ot,o=this.getDimensions,n=await o(t.floating);return{reference:Rt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ot(t){return b(t).direction==="rtl"}const Lt={convertOffsetParentRelativeRectToViewportRelativeRect:dt,getDocumentElement:R,getClippingRect:vt,getOffsetParent:ot,getElementRects:Ct,getClientRects:gt,getDimensions:bt,getScale:F,isElement:v,isRTL:Ot};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Tt(t,e){let o=null,n;const i=R(t);function r(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),r();const l=t.getBoundingClientRect(),{left:u,top:h,width:d,height:a}=l;if(c||e(),!d||!a)return;const m=A(h),p=A(i.clientWidth-(u+d)),y=A(i.clientHeight-(h+a)),g=A(u),O={rootMargin:-m+"px "+-p+"px "+-y+"px "+-g+"px",threshold:E(0,V(1,f))||1};let S=!0;function X(k){const B=k[0].intersectionRatio;if(B!==f){if(!S)return s();B?s(!1,B):n=setTimeout(()=>{s(!1,1e-7)},1e3)}B===1&&!it(l,t.getBoundingClientRect())&&s(),S=!1}try{o=new IntersectionObserver(X,{...O,root:i.ownerDocument})}catch{o=new IntersectionObserver(X,O)}o.observe(t)}return s(!0),r}function St(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,l=q(t),u=i||r?[...l?z(l):[],...z(e)]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),r&&g.addEventListener("resize",o)});const h=l&&c?Tt(l,o):null;let d=-1,a=null;s&&(a=new ResizeObserver(g=>{let[x]=g;x&&x.target===l&&a&&(a.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var O;(O=a)==null||O.observe(e)})),o()}),l&&!f&&a.observe(l),a.observe(e));let m,p=f?T(t):null;f&&y();function y(){const g=T(t);p&&!it(p,g)&&o(),p=g,m=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(x=>{i&&x.removeEventListener("scroll",o),r&&x.removeEventListener("resize",o)}),h?.(),(g=a)==null||g.disconnect(),a=null,f&&cancelAnimationFrame(m)}}const Bt=lt,At=ct,Dt=rt,Ht=(t,e,o)=>{const n=new Map,i={platform:Lt,...o},r={...i.platform,_c:n};return st(t,e,{...i,platform:r})};export{Bt as autoPlacement,St as autoUpdate,Ht as computePosition,Dt as flip,z as getOverflowAncestors,Lt as platform,At as shift};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function c(){return typeof window<"u"}function u(t){return p(t)?(t.nodeName||"").toLowerCase():"#document"}function i(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function N(t){var e;return(e=(p(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function p(t){return c()?t instanceof Node||t instanceof i(t).Node:!1}function m(t){return c()?t instanceof Element||t instanceof i(t).Element:!1}function w(t){return c()?t instanceof HTMLElement||t instanceof i(t).HTMLElement:!1}function f(t){return!c()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof i(t).ShadowRoot}const E=new Set(["inline","contents"]);function y(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=S(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!E.has(r)}const T=new Set(["table","td","th"]);function A(t){return T.has(u(t))}const v=[":popover-open",":modal"];function L(t){return v.some(e=>{try{return t.matches(e)}catch{return!1}})}const D=["transform","translate","scale","rotate","perspective"],C=["transform","translate","scale","rotate","perspective","filter"],k=["paint","layout","strict","content"];function V(t){const e=O(),n=m(t)?S(t):t;return D.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||C.some(o=>(n.willChange||"").includes(o))||k.some(o=>(n.contain||"").includes(o))}function B(t){let e=s(t);for(;w(e)&&!h(e);){if(V(e))return e;if(L(e))return null;e=s(e)}return null}function O(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const R=new Set(["html","body","#document"]);function h(t){return R.has(u(t))}function S(t){return i(t).getComputedStyle(t)}function F(t){return m(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function s(t){if(u(t)==="html")return t;const e=t.assignedSlot||t.parentNode||f(t)&&t.host||N(t);return f(e)?e.host:e}function b(t){const e=s(t);return h(e)?t.ownerDocument?t.ownerDocument.body:t.body:w(e)&&y(e)?e:b(e)}function d(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=b(t),g=r===((o=t.ownerDocument)==null?void 0:o.body),l=i(r);if(g){const a=_(l);return e.concat(l,l.visualViewport||[],y(r)?r:[],a&&n?d(a):[])}return e.concat(r,d(r,[],n))}function _(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}export{S as getComputedStyle,B as getContainingBlock,N as getDocumentElement,_ as getFrameElement,b as getNearestOverflowAncestor,u as getNodeName,F as getNodeScroll,d as getOverflowAncestors,s as getParentNode,i as getWindow,V as isContainingBlock,m as isElement,w as isHTMLElement,h as isLastTraversableNode,p as isNode,y as isOverflowElement,f as isShadowRoot,A as isTableElement,L as isTopLayer,O as isWebKit};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const p=["top","right","bottom","left"],l=["start","end"],L=p.reduce((t,e)=>t.concat(e,e+"-"+l[0],e+"-"+l[1]),[]),h=Math.min,x=Math.max,E=Math.round,R=Math.floor,T=t=>({x:t,y:t}),b={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function k(t,e,n){return x(t,h(e,n))}function q(t,e){return typeof t=="function"?t(e):t}function g(t){return t.split("-")[0]}function m(t){return t.split("-")[1]}function A(t){return t==="x"?"y":"x"}function P(t){return t==="y"?"height":"width"}const y=new Set(["top","bottom"]);function M(t){return y.has(g(t))?"y":"x"}function O(t){return A(M(t))}function z(t,e,n){n===void 0&&(n=!1);const r=m(t),i=O(t),o=P(i);let c=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(c=f(c)),[c,f(c)]}function B(t){const e=f(t);return[s(t),e,s(e)]}function s(t){return t.replace(/start|end/g,e=>d[e])}const u=["left","right"],a=["right","left"],S=["top","bottom"],w=["bottom","top"];function j(t,e,n){switch(t){case"top":case"bottom":return n?e?a:u:e?u:a;case"left":case"right":return e?S:w;default:return[]}}function D(t,e,n,r){const i=m(t);let o=j(g(t),n==="start",r);return i&&(o=o.map(c=>c+"-"+i),e&&(o=o.concat(o.map(s)))),o}function f(t){return t.replace(/left|right|bottom|top/g,e=>b[e])}function C(t){return{top:0,right:0,bottom:0,left:0,...t}}function F(t){return typeof t!="number"?C(t):{top:t,right:t,bottom:t,left:t}}function G(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}export{l as alignments,k as clamp,T as createCoords,q as evaluate,C as expandPaddingObject,R as floor,m as getAlignment,O as getAlignmentAxis,z as getAlignmentSides,P as getAxisLength,B as getExpandedPlacements,s as getOppositeAlignmentPlacement,A as getOppositeAxis,D as getOppositeAxisPlacements,f as getOppositePlacement,F as getPaddingObject,g as getSide,M as getSideAxis,x as max,h as min,L as placements,G as rectToClientRect,E as round,p as sides};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{BIGINT as p,ERROR as I,SET as g,MAP as l,REGEXP as E,DATE as R,OBJECT as i,ARRAY as y,VOID as A,PRIMITIVE as b}from"./types.js";const f=typeof self=="object"?self:globalThis,B=(c,w)=>{const s=(e,o)=>(c.set(o,e),e),a=e=>{if(c.has(e))return c.get(e);const[o,t]=w[e];switch(o){case b:case A:return s(t,e);case y:{const r=s([],e);for(const n of t)r.push(a(n));return r}case i:{const r=s({},e);for(const[n,u]of t)r[a(n)]=a(u);return r}case R:return s(new Date(t),e);case E:{const{source:r,flags:n}=t;return s(new RegExp(r,n),e)}case l:{const r=s(new Map,e);for(const[n,u]of t)r.set(a(n),a(u));return r}case g:{const r=s(new Set,e);for(const n of t)r.add(a(n));return r}case I:{const{name:r,message:n}=t;return s(new f[r](n),e)}case p:return s(BigInt(t),e);case"BigInt":return s(Object(BigInt(t)),e);case"ArrayBuffer":return s(new Uint8Array(t).buffer,t);case"DataView":{const{buffer:r}=new Uint8Array(t);return s(new DataView(r),t)}}return s(new f[o](t),e)};return a},m=c=>B(new Map,c)(0);export{m as deserialize};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{SET as w,MAP as O,REGEXP as A,DATE as I,OBJECT as S,ARRAY as E,PRIMITIVE as b,BIGINT as T,ERROR as m,VOID as x}from"./types.js";const p="",{toString:k}={},{keys:B}=Object,g=c=>{const f=typeof c;if(f!=="object"||!c)return[b,f];const s=k.call(c).slice(8,-1);switch(s){case"Array":return[E,p];case"Object":return[S,p];case"Date":return[I,p];case"RegExp":return[A,p];case"Map":return[O,p];case"Set":return[w,p];case"DataView":return[E,s]}return s.includes("Array")?[E,s]:s.includes("Error")?[m,s]:[S,s]},u=([c,f])=>c===b&&(f==="function"||f==="symbol"),D=(c,f,s,h)=>{const o=(r,i)=>{const e=h.push(r)-1;return s.set(i,e),e},y=r=>{if(s.has(r))return s.get(r);let[i,e]=g(r);switch(i){case b:{let t=r;switch(e){case"bigint":i=T,t=r.toString();break;case"function":case"symbol":if(c)throw new TypeError("unable to serialize "+e);t=null;break;case"undefined":return o([x],r)}return o([i,t],r)}case E:{if(e){let n=r;return e==="DataView"?n=new Uint8Array(r.buffer):e==="ArrayBuffer"&&(n=new Uint8Array(r)),o([e,[...n]],r)}const t=[],a=o([i,t],r);for(const n of r)t.push(y(n));return a}case S:{if(e)switch(e){case"BigInt":return o([e,r.toString()],r);case"Boolean":case"Number":case"String":return o([e,r.valueOf()],r)}if(f&&"toJSON"in r)return y(r.toJSON());const t=[],a=o([i,t],r);for(const n of B(r))(c||!u(g(r[n])))&&t.push([y(n),y(r[n])]);return a}case I:return o([i,r.toISOString()],r);case A:{const{source:t,flags:a}=r;return o([i,{source:t,flags:a}],r)}case O:{const t=[],a=o([i,t],r);for(const[n,d]of r)(c||!(u(g(n))||u(g(d))))&&t.push([y(n),y(d)]);return a}case w:{const t=[],a=o([i,t],r);for(const n of r)(c||!u(g(n)))&&t.push(y(n));return a}}const{message:R}=r;return o([i,{name:e,message:R}],r)};return y},P=(c,{json:f,lossy:s}={})=>{const h=[];return D(!(f||s),!!f,new Map,h)(c),h};export{P as serialize};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{isNegativeNaN as He,isObject as Ce,toArray as G,unique as ge,objectAttr as me,assertTypes as P,filterOutComments as Le,ordinal as Te,createDefer as we}from"../../../../../@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/helpers.js";import{getSafeTimers as xe}from"../../../../../@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/timers.js";import{format as Ye,formatRegExp as Be,objDisplay as ze}from"../../../../../@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/display.js";import{parseSingleStack as Ge}from"../../../../../@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/source-map.js";class Xe extends Error{code="VITEST_PENDING";taskId;constructor(t,r,s){super(t),this.message=t,this.note=s,this.taskId=r.id}}class R extends Error{name="FixtureDependencyError"}class Je extends Error{name="FixtureAccessError"}class ke extends Error{name="FixtureParseError"}const Qe=new WeakMap,Se=new WeakMap,_e=new WeakMap;function Ze(e,t){Qe.set(e,t)}function et(e,t){Se.set(e,t)}function tt(e){return Se.get(e)}function nt(e,t){_e.set(e,t)}function rt(e){return _e.get(e)}const B=Symbol.for("VITEST_FIXTURE_STACK_TRACE");class w{_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=["task","signal","onTestFailed","onTestFinished","skip","annotate"];static _fixtureOptionKeys=["auto","injected","scope"];static _fixtureScopes=["test","file","worker"];static _workerContextSuite={type:"worker"};static clearDefinitions(){w._definitions.length=0}static getWorkerContexts(){return w._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return w._definitions.map(r=>r.getFileContext(t))}static isFixtureOptions(t){return Ce(t)&&Object.keys(t).some(r=>w._fixtureOptionKeys.includes(r))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,w._definitions.push(this)}extend(t,r){const{suite:s}=_(),o=!s||s.file===s,n=this.parseUserFixtures(t,r,o);return new w(n)}get(t){let r=t;for(;r;){const s=this._overrides.get(r);if(s)return s;if(r===r.file)break;r=r.suite||r.file}return this._registrations}override(t,r){const{suite:s,file:o}=_(),n=s||o,i=!s||s.file===s,c=new Map(this.get(n)),a=this.parseUserFixtures(t,r,i,c);i?this._registrations=a:this._overrides.set(n,a)}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(w._workerContextSuite)||this._suiteContexts.set(w._workerContextSuite,Object.create(null)),this._suiteContexts.get(w._workerContextSuite)}parseUserFixtures(t,r,s,o=new Map(this._registrations)){const n=[];Object.entries(r).forEach(([i,c])=>{let a,u,l;Array.isArray(c)&&c.length>=2&&w.isFixtureOptions(c[1])?(l=c[1],a={auto:l.auto??!1,scope:l.scope??"test",injected:l.injected??!1},u=a.injected?t.injectValue?.(i)??c[0]:c[0]):u=c;const f=o.get(i);f&&a?(f.scope!==a.scope&&n.push(new R(`The "${i}" fixture was already registered with a "${a.scope}" scope.`)),f.auto!==a.auto&&n.push(new R(`The "${i}" fixture was already registered as { auto: ${a.auto} }.`))):f?a={auto:f.auto,scope:f.scope,injected:f.injected}:a||(a={auto:!1,injected:!1,scope:"test"}),a.scope&&!w._fixtureScopes.includes(a.scope)&&n.push(new R(`The "${i}" fixture has unknown scope "${a.scope}".`)),!s&&a.scope!=="test"&&n.push(new R(`The "${i}" fixture cannot be defined with a ${a.scope} scope${!l?.scope&&f?.scope?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));const g=K(u)?oe(u):new Set,h={name:i,value:u,auto:a.auto??!1,injected:a.injected??!1,scope:a.scope??"test",deps:g,parent:f};K(u)&&Object.assign(u,{[B]:new Error("STACK_TRACE_ERROR")}),o.set(i,h),h.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(h.scope="file")});for(const i of o.values())for(const c of i.deps){if(w._builtinFixtures.includes(c))continue;const a=o.get(c);if(!a){n.push(new R(`The "${i.name}" fixture depends on unknown fixture "${c}".`));continue}if(c===i.name&&!i.parent){n.push(new R(`The "${i.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(w._fixtureScopes.indexOf(i.scope)>w._fixtureScopes.indexOf(a.scope)){n.push(new R(`The ${i.scope} "${i.name}" fixture cannot depend on a ${a.scope} fixture "${a.name}".`));continue}}if(n.length===1)throw n[0];if(n.length>1)throw new AggregateError(n,"Cannot resolve user fixtures. See errors for more information.");return o}}const O=new WeakMap,Z=new WeakMap;function q(e,t){const r=_(),s=t?.suite||r.suite||r.file;return async o=>{const n=o||t?.context;if(!n)return t?.suiteHook&&it(e,t.suiteHook,t.stackTraceError),e({});const i=t?.fixtures||tt(n);if(!i)return e(n);const c=i.get(s);if(!c.size)return e(n);const a=[],u=oe(e);for(const h of c.values())(h.auto||u.has(h.name))&&a.push(h);if(!a.length)return e(n);O.has(n)||O.set(n,[]);const l=O.get(n),f=Re(a,c);if(!f.length)return e(n);if(t?.suiteHook){const h=f.filter(d=>d.scope==="test");if(h.length>0){const d=h.map(m=>`"${m.name}"`).join(", "),p={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},T=new R(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${d}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${p[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(T.stack=T.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),T}}Z.has(n)||Z.set(n,new WeakSet);const g=Z.get(n);for(const h of f)if(h.scope==="test"){if(g.has(h))continue;g.add(h);const d=await ot(h,n,l);n[h.name]=d,l.push(()=>{g.delete(h)})}else{const d=await st(i,s,h);n[h.name]=d}return e(n)}}function K(e){return typeof e=="function"}function ot(e,t,r){return K(e.value)?ve(e.value,e.name,t,r):e.value}const H=new WeakMap;async function st(e,t,r){const s=e.getWorkerContext(),o=e.getFileContext(t.file),n=r.scope==="worker"?s:o;if(!K(r.value))return n[r.name]=r.value,r.value;if(r.name in n)return n[r.name];if(H.has(r))return H.get(r);O.has(n)||O.set(n,[]);const i=O.get(n),c=ve(r.value,r.name,r.scope==="file"?{...s,...o}:n,i).then(a=>(n[r.name]=a,H.delete(r),a));return H.set(r,c),c}async function ve(e,t,r,s){const o=we(),n=B in e&&e[B]instanceof Error?e[B]:void 0;let i=!1;const c=e(r,async a=>{i=!0,o.resolve(a);const u=we();s.push(async()=>{u.resolve(),await c}),await u}).then(()=>{if(!i){const a=new Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);n?.stack&&(a.stack=a.message+n.stack.replace(n.message,"")),o.reject(a)}}).catch(a=>{if(!i){o.reject(a);return}throw a});return o}function Re(e,t,r=new Set,s=[]){return e.forEach(o=>{if(!s.includes(o)){if(!K(o.value)||!o.deps){s.push(o);return}if(r.has(o))if(o.parent)o=o.parent;else throw new Error(`Circular fixture dependency detected: ${o.name} <- ${[...r].reverse().map(n=>n.name).join(" <- ")}`);r.add(o),Re([...o.deps].map(n=>n===o.name?o.parent:t.get(n)).filter(n=>!!n),t,r,s),s.push(o),r.clear()}}),s}function it(e,t,r){const s=oe(e,{sourceError:r,suiteHook:t});if(s.size){const o=new Je(`The ${t} hook uses fixtures "${[...s].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
|
|
2
|
-
If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw r&&(o.stack=r.stack?.replace(r.message,o.message)),o}}const te=Symbol("$vitest:fixture-props"),ne=Symbol("$vitest:fixture-prop-names");function X(e,t){Object.defineProperty(e,te,{value:t,enumerable:!1})}function L(e,t){return e[ne]=t,t}function oe(e,{sourceError:t,suiteHook:r}={}){if(ne in e)return e[ne];const{index:s=0,original:o=e}=te in e?e[te]:{};let n=Le(o.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(n)&&(n=n.split(/__async\((?:this|null),/)[1]);const i=n.match(/[^(]*\(([^)]*)/);if(!i)return L(e,new Set);const c=ye(i[1]);if(!c.length)return L(e,new Set);const a=c[s];if(!a)return L(e,new Set);if(!(a[0]==="{"&&a.endsWith("}"))){const g=Te(s+1),h=new ke(`The ${g} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${a}".${r?` If you used internal "suite" task as the ${g} argument previously, access it in the ${Te(s+2)} argument instead.`:""}`);throw t&&(h.stack=t.stack?.replace(t.message,h.message)),h}const u=a.slice(1,-1).replace(/\s/g,""),l=ye(u).map(g=>g.replace(/:.*|=.*/g,"")),f=l.at(-1);if(f&&f.startsWith("...")){const g=new ke(`Rest parameters are not supported in fixtures, received "${f}".`);throw t&&(g.stack=t.stack?.replace(t.message,g.message)),g}return L(e,new Set(l))}function ye(e){const t=[],r=[];let s=0;for(let n=0;n<e.length;n++)if(e[n]==="{"||e[n]==="[")r.push(e[n]==="{"?"}":"]");else if(e[n]===r.at(-1))r.pop();else if(!r.length&&e[n]===","){const i=e.substring(s,n).trim();i&&t.push(i),s=n+1}const o=e.substring(s).trim();return o&&t.push(o),t}const $e=Symbol("kChainableContext");function v(e){return e?.[$e]}function je(e,t,r){function s(n){const i=function(...c){return t.apply(n,c)};Object.assign(i,t),Object.defineProperty(i,$e,{value:{withContext:()=>i.bind(n),getFixtures:()=>n.fixtures,setContext:(c,a)=>{n[c]=a},mergeContext:c=>{Object.assign(n,c)}},enumerable:!1});for(const c of e)Object.defineProperty(i,c,{get(){return s({...n,[c]:!0})}});return i}const o=s(r??{});return Object.defineProperty(o,"fn",{value:t,enumerable:!1}),o}function F(){return ie().config.hookTimeout}const Fe=Symbol.for("VITEST_CLEANUP_TIMEOUT"),Ie=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),Oe=Symbol.for("VITEST_AROUND_TIMEOUT"),Ne=Symbol.for("VITEST_AROUND_STACK_TRACE");function at(e,t=F()){P(e,'"beforeAll" callback',["function"]);const r=new Error("STACK_TRACE_ERROR"),s=v(this);return _().on("beforeAll",Object.assign(I(se("beforeAll",e,s,r),t,!0,r),{[Fe]:t,[Ie]:r}))}function ct(e,t){P(e,'"afterAll" callback',["function"]);const r=v(this),s=new Error("STACK_TRACE_ERROR");return _().on("afterAll",I(se("afterAll",e,r,s),t??F(),!0,s))}function ut(e,t=F()){P(e,'"beforeEach" callback',["function"]);const r=new Error("STACK_TRACE_ERROR"),s=(o,n)=>q(e,{suite:n})(o);return _().on("beforeEach",Object.assign(I(s,t??F(),!0,r,ce),{[Fe]:t,[Ie]:r}))}function lt(e,t){P(e,'"afterEach" callback',["function"]);const r=(s,o)=>q(e,{suite:o})(s);return _().on("afterEach",I(r,t??F(),!0,new Error("STACK_TRACE_ERROR"),ce))}function ft(e,t){P(e,'"aroundAll" callback',["function"]);const r=new Error("STACK_TRACE_ERROR"),s=t??F(),o=v(this);return _().on("aroundAll",Object.assign(se("aroundAll",e,o,r,1),{[Oe]:s,[Ne]:r}))}function ht(e,t){P(e,'"aroundEach" callback',["function"]);const r=new Error("STACK_TRACE_ERROR"),s=t??F(),o=(n,i,c)=>{const a=l=>e(n,l,c);return X(a,{index:1,original:e}),q(a,{suite:c})(i)};return _().on("aroundEach",Object.assign(o,{[Oe]:s,[Ne]:r}))}function se(e,t,r,s,o=0){return(...n)=>{const i=n.at(-1),c=n.slice(0,-1),a=g=>t(...c,g,i);X(a,{index:o,original:t});const u=r?.getFixtures(),l=u?.getFileContext(i.file);return q(a,{suiteHook:e,fixtures:u,context:l,stackTraceError:s})()}}function Pe(e,t){const r=t.split(`
|
|
3
|
-
`).slice(1);for(const s of r){const o=Ge(s);if(o&&o.file===e)return o}}function dt(e,t){if(!e.strictTags)return;const r=new Set(e.tags.map(s=>s.name));for(const s of t)if(!r.has(s))throw Me(e.tags,s)}function Me(e,t,r="tag"){throw e.length?new Error(`The ${r} "${t}" is not defined in the configuration. Available tags are:
|
|
4
|
-
${e.map(s=>`- ${s.name}${s.description?`: ${s.description}`:""}`).join(`
|
|
5
|
-
`)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${r} for this test. See: https://vitest.dev/guide/test-tags`)}function Mt(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}function Y(e,t=" > "){return e.filter(r=>r!==void 0).join(t)}const j=wt();ae(function(e,t,r){_().test.fn.call(this,$(e),t,r)});let k,Ue,pt;function Ke(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
|
|
6
|
-
- "vitest" is imported directly without running "vitest" command
|
|
7
|
-
- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
|
|
8
|
-
- "vitest" is imported inside Vite / Vitest config file
|
|
9
|
-
- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
|
|
10
|
-
`)}function ie(){return Ke(k,"the runner"),k}function _(){const e=b.currentSuite||Ue;return Ke(e,"the current suite"),e}function gt(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}const be=Number.POSITIVE_INFINITY;function N(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let r={},s;if(typeof t=="number"?r={timeout:t}:typeof e=="object"&&(r=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");s=e}else typeof t=="function"&&(s=t);return{options:r,handler:s}}function mt(e,t=()=>{},r,s,o){const n=[];let i;f();const c=function(d="",p={}){const T=b.currentSuite?.suite,x=(T??b.currentSuite?.file)?.tags||[],M=ge([...x,...G(p.tags)]),U=M.map(y=>{const C=k.config.tags?.find(de=>de.name===y);if(!C&&k.config.strictTags)throw Me(k.config.tags,y);return C}).filter(y=>y!=null).sort((y,C)=>(C.priority??be)-(y.priority??be)).reduce((y,C)=>{const{name:de,description:jt,priority:Ft,meta:pe,...De}=C;return Object.assign(y,De),pe&&(y.meta=Object.assign(y.meta??Object.create(null),pe)),y},{}),V=p.meta;p={...U,...p};const ue=p.timeout??k.config.testTimeout,le=T?.meta,fe=U.meta,W=Object.create(null);fe&&Object.assign(W,fe),le&&Object.assign(W,le),V&&Object.assign(W,V);const A={id:"",name:d,fullName:Y([T?.fullName??b.currentSuite?.file?.fullName,d]),fullTestName:Y([T?.fullTestName,d]),suite:T,each:p.each,fails:p.fails,context:void 0,type:"test",file:T?.file??b.currentSuite?.file,timeout:ue,retry:p.retry??k.config.retry,repeats:p.repeats,mode:p.only?"only":p.skip?"skip":p.todo?"todo":"run",meta:W,annotations:[],artifacts:[],tags:M},Q=p.handler;A.mode==="run"&&!Q&&(A.mode="todo"),(p.concurrent||!p.sequential&&k.config.sequence.concurrent)&&(A.concurrent=!0),A.shuffle=o?.shuffle;const D=xt(A,k);Object.defineProperty(A,"context",{value:D,enumerable:!1}),et(D,p.fixtures??new w);const We=Error.stackTraceLimit;Error.stackTraceLimit=10;const he=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=We,Q&&Ze(A,I(At(Tt(q(Q,{context:D}),A),A.context.signal),ue,!1,he,(y,C)=>ce([D],C))),k.config.includeTaskLocation){const y=he.stack,C=Pe(pt,y);C&&(A.location={line:C.line,column:C.column})}return n.push(A),A},a=ae(function(d,p,T){let{options:m,handler:x}=N(p,T);typeof o=="object"&&(m=Object.assign({},o,m));const M=this.concurrent??(!this.sequential&&m?.concurrent);m.concurrent!=null&&M!=null&&(m.concurrent=M);const U=this.sequential??(!this.concurrent&&m?.sequential);m.sequential!=null&&U!=null&&(m.sequential=U);const V=c($(d),{...this,...m,handler:x});V.type="test"}),u={type:"collector",name:e,mode:r,suite:i,options:o,test:a,file:i.file,tasks:n,collect:h,task:c,clear:g,on:l};function l(d,...p){rt(i)[d].push(...p)}function f(d){typeof o=="number"&&(o={timeout:o});const p=b.currentSuite?.suite,T=p??b.currentSuite?.file,m=G(o?.tags);dt(k.config,m),i={id:"",type:"suite",name:e,fullName:Y([p?.fullName??b.currentSuite?.file?.fullName,e]),fullTestName:Y([p?.fullTestName,e]),suite:p,mode:r,each:s,file:p?.file??b.currentSuite?.file,shuffle:o?.shuffle,tasks:[],meta:o?.meta??Object.create(null),concurrent:o?.concurrent,tags:ge([...T?.tags||[],...m])},nt(i,gt())}function g(){n.length=0,f()}async function h(d){if(!d)throw new TypeError("File is required to collect tasks.");t&&await Et(u,()=>t(a));const p=[];for(const T of n)p.push(T.type==="collector"?await T.collect(d):T);return i.tasks=p,i}return bt(u),u}function Tt(e,t){return(async(...r)=>{const s=await e(...r);if(t.promises){const n=(await Promise.allSettled(t.promises)).map(i=>i.status==="rejected"?i.reason:void 0).filter(Boolean);if(n.length)throw n}return s})}function wt(){function e(t,r,s){const o=b.currentSuite||Ue;let{options:n,handler:i}=N(r,s);const c=n.concurrent||this.concurrent||n.sequential===!1,a=n.sequential||this.sequential||n.concurrent===!1,{meta:u,...l}=o?.options||{};n={...l,...n};const f=this.shuffle??n.shuffle??o?.options?.shuffle??k?.config.sequence.shuffle;f!=null&&(n.shuffle=f);let g=this.only??n.only?"only":this.skip??n.skip?"skip":this.todo??n.todo?"todo":"run";g==="run"&&!i&&(g="todo");const h=c||n.concurrent&&!a,d=a||n.sequential&&!c;return h!=null&&(n.concurrent=h&&!d),d!=null&&(n.sequential=d&&!h),u&&(n.meta=Object.assign(Object.create(null),u,n.meta)),mt($(t),i,g,this.each,n)}return e.each=function(t,...r){const s=v(this),o=s.withContext();return s.setContext("each",!0),Array.isArray(t)&&r.length&&(t=J(t,r)),(n,i,c)=>{const a=$(n),u=t.every(Array.isArray),{options:l,handler:f}=N(i,c),g=typeof i=="function";t.forEach((h,d)=>{const p=Array.isArray(h)?h:[h];g?u?o(S(a,p,d),f?()=>f(...p):void 0,l.timeout):o(S(a,p,d),f?()=>f(h):void 0,l.timeout):u?o(S(a,p,d),l,f?()=>f(...p):void 0):o(S(a,p,d),l,f?()=>f(h):void 0)}),s.setContext("each",void 0)}},e.for=function(t,...r){return Array.isArray(t)&&r.length&&(t=J(t,r)),(s,o,n)=>{const i=$(s),{options:c,handler:a}=N(o,n);t.forEach((u,l)=>{j(S(i,G(u),l),c,a?()=>a(u):void 0)})}},e.skipIf=t=>t?j.skip:j,e.runIf=t=>t?j:j.skip,je(["concurrent","sequential","shuffle","skip","only","todo"],e)}function kt(e){const t=e;t.each=function(o,...n){const i=v(this),c=i.withContext();return i.setContext("each",!0),Array.isArray(o)&&n.length&&(o=J(o,n)),(a,u,l)=>{const f=$(a),g=o.every(Array.isArray),{options:h,handler:d}=N(u,l),p=typeof u=="function";o.forEach((T,m)=>{const x=Array.isArray(T)?T:[T];p?g?c(S(f,x,m),d?()=>d(...x):void 0,h.timeout):c(S(f,x,m),d?()=>d(T):void 0,h.timeout):g?c(S(f,x,m),h,d?()=>d(...x):void 0):c(S(f,x,m),h,d?()=>d(T):void 0)}),i.setContext("each",void 0)}},t.for=function(o,...n){const c=v(this).withContext();return Array.isArray(o)&&n.length&&(o=J(o,n)),(a,u,l)=>{const f=$(a),{options:g,handler:h}=N(u,l);o.forEach((d,p)=>{const T=h?m=>h(d,m):void 0;T&&X(T,{index:1,original:h}),c(S(f,G(d),p),g,T)})}},t.skipIf=function(o){return o?this.skip:this},t.runIf=function(o){return o?this:this.skip};function r(o,n,i){if(typeof o!="string")return o;const c=o;let a,u;if(i!==void 0?(a=n,u=i):n!==null&&typeof n=="object"&&!Array.isArray(n)&&w.isFixtureOptions(n)?(a=n,u={}):(a=void 0,u=n),typeof u=="function"){const l=u,f=async(g,h)=>{let d;const T=await l(g,{onCleanup:m=>{if(d!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");d=m}});await h(T),d&&await d()};return X(f,{original:l}),a?{[c]:[f,a]}:{[c]:f}}return a?{[c]:[u,a]}:{[c]:u}}return t.override=function(o,n,i){const c=r(o,n,i);return v(this).getFixtures().override(k,c),this},t.scoped=function(o){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(o)},t.extend=function(o,n,i){const c=r(o,n,i),a=v(this).getFixtures().extend(k,c),u=ae(function(l,f,g){e.call(this,$(l),f,g)});return v(u).mergeContext({fixtures:a}),u},t.describe=j,t.suite=j,t.beforeEach=ut,t.afterEach=lt,t.beforeAll=at,t.afterAll=ct,t.aroundEach=ht,t.aroundAll=ft,je(["concurrent","sequential","skip","only","todo","fails"],t,{fixtures:new w})}function ae(e){return kt(e)}function $(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function S(e,t,r){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${r}`).replace(/%\$/g,`${r+1}`).replace(/__vitest_escaped_%__/g,"%%"));const s=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((u,l)=>{if(He(t[l])||Object.is(t[l],-0)){let f=0;e=e.replace(/%f/g,g=>(f++,f===l+1?"-%f":g))}});const o=Ce(t[0]);function n(a){return a.replace(/\$([$\w.]+)/g,(u,l)=>{const f=/^\d+$/.test(l);if(!o&&!f)return`$${l}`;const g=f?me(t,l):void 0,h=o?me(t[0],l,g):g;return ze(h,{truncate:k?.config?.chaiConfig?.truncateThreshold})})}let i="",c=0;return yt(e,Be,a=>{c<s?i+=Ye(a[0],t[c++]):i+=a[0]},a=>{i+=n(a)}),i}function yt(e,t,r,s){let o=0;for(const n of e.matchAll(t))o<n.index&&s(e.slice(o,n.index)),r(n),o=n.index+n[0].length;o<e.length&&s(e.slice(o))}function J(e,t){const r=e.join("").trim().replace(/ /g,"").split(`
|
|
11
|
-
`).map(o=>o.split("|"))[0],s=[];for(let o=0;o<Math.floor(t.length/r.length);o++){const n={};for(let i=0;i<r.length;i++)n[r[i]]=t[o*r.length+i];s.push(n)}return s}const Ee=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,b={currentSuite:null};function bt(e){b.currentSuite?.tasks.push(e)}async function Et(e,t){const r=b.currentSuite;b.currentSuite=e,await t(),b.currentSuite=r}function I(e,t,r=!1,s,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:n,clearTimeout:i}=xe();return(function(...a){const u=Ee(),l=ie();return l._currentTaskStartTime=u,l._currentTaskTimeout=t,new Promise((f,g)=>{const h=n(()=>{i(h),d()},t);h.unref?.();function d(){const m=St(r,t,s);o?.(a,m),g(m)}function p(m){if(l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,i(h),Ee()-u>=t){d();return}f(m)}function T(m){l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,i(h),g(m)}try{const m=e(...a);typeof m=="object"&&m!=null&&typeof m.then=="function"?m.then(p,T):p(m)}catch(m){T(m)}})})}function At(e,t){return(function(...s){return new Promise((o,n)=>{t.addEventListener("abort",()=>n(t.reason));try{const i=e(...s);typeof i=="object"&&i!=null&&typeof i.then=="function"?i.then(o,n):o(i)}catch(i){n(i)}})})}const re=new WeakMap;function ce([e],t){e&&Ct(e,t)}function Ct(e,t){re.get(e)?.abort(t)}function xt(e,t){const r=function(){throw new Error("done() callback is deprecated, use promise instead")};let s=re.get(r);return s||(s=new AbortController,re.set(r,s)),r.signal=s.signal,r.task=e,r.skip=(o,n)=>{if(o!==!1)throw e.result??={state:"skip"},e.result.pending=!0,new Xe("test is skipped; abort execution",e,typeof o=="string"?o:n)},r.annotate=((o,n,i)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const c={message:o,type:typeof n=="object"||n===void 0?"notice":n},a=typeof n=="object"?n:i;return a&&(c.attachment=a,Ve(c.attachment)),$t(e,vt(e,{type:"internal:annotation",annotation:c}).then(async({annotation:u})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await qe(t);const l=await t.onTestAnnotate(e,u);return e.annotations.push(l),l}))}),r.onTestFailed=(o,n)=>{e.onFailed||=[],e.onFailed.push(I(o,n??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(i,c)=>s.abort(c)))},r.onTestFinished=(o,n)=>{e.onFinished||=[],e.onFinished.push(I(o,n??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(i,c)=>s.abort(c)))},t.extendTaskContext?.(r)||r}function St(e,t,r){const s=`${e?"Hook":"Test"} timed out in ${t}ms.
|
|
12
|
-
If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(s);return r?.stack&&(o.stack=r.stack.replace(o.message,r.message)),o}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;xe();const ee=new Map,Ae=[],z=[];function _t(e){if(ee.size){const t=Array.from(ee).map(([s,o])=>[s,o[0],o[1]]),r=e.onTaskUpdate?.(t,Ae);r&&(z.push(r),r.then(()=>z.splice(z.indexOf(r),1),()=>{})),Ae.length=0,ee.clear()}}async function qe(e){_t(e),await Promise.all(z)}async function vt(e,t){const r=ie(),s=Pe(e.file.filepath,new Error("STACK_TRACE").stack);if(s&&(t.location={file:s.file,line:s.line,column:s.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(const n of t.attachments)Ve(n);if(t.type==="internal:annotation")return t;if(!r.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await qe(r);const o=await r.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}const E=[];for(let e=65;e<91;e++)E.push(String.fromCharCode(e));for(let e=97;e<123;e++)E.push(String.fromCharCode(e));for(let e=0;e<10;e++)E.push(e.toString(10));E.push("+","/");function Rt(e){let t="";const r=e.byteLength;for(let s=0;s<r;s+=3)if(r===s+1){const o=(e[s]&252)>>2,n=(e[s]&3)<<4;t+=E[o],t+=E[n],t+="=="}else if(r===s+2){const o=(e[s]&252)>>2,n=(e[s]&3)<<4|(e[s+1]&240)>>4,i=(e[s+1]&15)<<2;t+=E[o],t+=E[n],t+=E[i],t+="="}else{const o=(e[s]&252)>>2,n=(e[s]&3)<<4|(e[s+1]&240)>>4,i=(e[s+1]&15)<<2|(e[s+2]&192)>>6,c=e[s+2]&63;t+=E[o],t+=E[n],t+=E[i],t+=E[c]}return t}function $t(e,t){return t=t.finally(()=>{if(!e.promises)return;const r=e.promises.indexOf(t);r!==-1&&e.promises.splice(r,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}function Ve(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=Rt(e.body))}export{Y as B,Pe as C,Mt as G,dt as T,ct as a,lt as b,ft as c,ht as d,at as e,ut as f,kt as g,_ as i,rt as l,nt as q,vt as r,Ze as s,j as u,je as y};
|
package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.1/node_modules/@vitest/snapshot/dist/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js","node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{__vitePreload as P}from"../../../../../../../_virtual/preload-helper.js";import{parseErrorStacktrace as L}from"../../../../../@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/source-map.js";import{isObject as $,getCallLastIndex as B}from"../../../../../@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/helpers.js";import{positionToOffset as q,offsetToLineNumber as z,lineSplitRE as U}from"../../../../../@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/offset.js";import{format as W,plugins as H}from"../../../../../@vitest_pretty-format@4.1.1/node_modules/@vitest/pretty-format/dist/index.js";async function V(n,t){const e=(await P(async()=>{const{default:a}=await import("../../../../../magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js");return{default:a}},__vite__mapDeps([0,1]))).default,s=new Set(t.map(a=>a.file));await Promise.all(Array.from(s).map(async a=>{const i=t.filter(c=>c.file===a),o=await n.readSnapshotFile(a);if(o==null)throw new Error(`cannot read ${a} when saving inline snapshot`);const u=new e(o);for(const c of i){const l=q(o,c.line,c.column);Z(o,u,l,c.snapshot)}const h=u.toString();h!==o&&await n.saveSnapshotFile(a,h)}))}const G=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function J(n,t,e,s){let a=n.slice(e);const i=G.exec(a);if(!i)return!1;a=a.slice(i.index);let o=B(a);if(o===null)return!1;o+=e+i.index;const u=e+i.index+i[0].length,h=X(n,u),c=`, ${K(s,n,e)}`;return h===o?t.appendLeft(o,c):t.overwrite(h,o,c),!0}function X(n,t){let e=1,s=0;for(;e!==s&&t<n.length;){const a=n[t++];a==="{"?e++:a==="}"&&s++}return t}function K(n,t,e){const s=z(t,e),i=t.split(U)[s-1].match(/^\s*/)[0]||"",o=i.includes(" ")?`${i} `:`${i} `,u=n.trim().replace(/\\/g,"\\\\").split(/\n/g),h=u.length<=1,c="`";return h?`${c}${u.join(`
|
|
3
|
-
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}
|
|
4
|
-
${u.map(l=>l?o+l:"").join(`
|
|
5
|
-
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
|
|
6
|
-
${i}${c}`}const T="toMatchInlineSnapshot",I="toThrowErrorMatchingInlineSnapshot";function Q(n,t){const e=t-T.length;if(n.slice(e,t)===T)return{code:n.slice(e),index:e};const s=t-I.length;return n.slice(t-s,t)===I?{code:n.slice(t-s),index:t-s}:{code:n.slice(t),index:t}}const Y=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function Z(n,t,e,s){const{code:a,index:i}=Q(n,e),o=Y.exec(a),u=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(a);if(!o||o.index!==u?.index)return J(n,t,i,s);const h=o[1],c=i+o.index+o[0].length,l=K(s,n,i);if(h===")")return t.appendRight(c-1,l),!0;const r=new RegExp(`(?:^|[^\\\\])${h}`).exec(n.slice(c));if(!r)return!1;const f=c+r.index+r[0].length;return t.overwrite(c-1,f,l),!0}const tt=/^([^\S\n]*)\S/m;function Tt(n){const t=n.match(tt);if(!t||!t[1])return n;const e=t[1],s=n.split(/\n/g);if(s.length<=2||s[0].trim()!==""||s.at(-1)?.trim()!=="")return n;for(let a=1;a<s.length-1;a++)if(s[a]!==""){if(s[a].indexOf(e)!==0)return n;s[a]=s[a].substring(e.length)}return s[s.length-1]="",n=s.join(`
|
|
7
|
-
`),n}async function et(n,t){await Promise.all(t.map(async e=>{e.readonly||await n.saveSnapshotFile(e.file,e.snapshot)}))}function nt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var x={exports:{}},A;function st(){if(A)return x.exports;A=1;var n=function(t,e){var s,a,i=1,o=0,u=0,h=String.alphabet;function c(l,p,r){if(r){for(s=p;r=c(l,s),r<76&&r>65;)++s;return+l.slice(p-1,s)}return r=h&&h.indexOf(l.charAt(p)),r>-1?r+76:(r=l.charCodeAt(p)||0,r<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63)}if((t+="")!=(e+="")){for(;i;)if(a=c(t,o++),i=c(e,u++),a<76&&i<76&&a>66&&i>66&&(a=c(t,o,o),i=c(e,u,o=s),u=s),a!=i)return a<i?-1:1}return 0};try{x.exports=n}catch{String.naturalCompare=n}return x.exports}var at=st(),it=nt(at);const rt=(n,t,e,s,a,i)=>{const o=n.getMockName(),u=o==="vi.fn()"?"":` ${o}`;let h="";if(n.mock.calls.length!==0){const c=e+t.indent;h=` {${t.spacingOuter}${c}"calls": ${i(n.mock.calls,t,c,s,a)}${t.min?", ":","}${t.spacingOuter}${c}"results": ${i(n.mock.results,t,c,s,a)}${t.min?"":","}${t.spacingOuter}${e}}`}return`[MockFunction${u}]${h}`},ot=n=>n&&!!n._isMockFunction,ht={serialize:rt,test:ot},{DOMCollection:ct,DOMElement:lt,Immutable:ut,ReactElement:pt,ReactTestComponent:dt,AsymmetricMatcher:ft}=H;let M=[dt,pt,lt,ct,ut,ft,ht];function It(n){M=[n].concat(M)}function mt(){return M}function _t(n,t){return`${n} ${t}`}function St(n){if(!/ \d+$/.test(n))throw new Error("Snapshot keys must end with a number.");return n.replace(/ \d+$/,"")}function gt(n,t){const e=t.updateSnapshot,s=Object.create(null);let a="",i=!1;if(n!=null)try{a=n,new Function("exports",a)(s)}catch{}return(e==="all"||e==="new")&&a&&(i=!0),{data:s,dirty:i}}function wt(n){return n.includes(`
|
|
8
|
-
`)?`
|
|
9
|
-
${n}
|
|
10
|
-
`:n}function j(n){return n.length>2&&n[0]===`
|
|
11
|
-
`&&n.endsWith(`
|
|
12
|
-
`)?n.slice(1,-1):n}const Et=!0,yt=!1;function $t(n,t=2,e={}){return k(W(n,{escapeRegex:Et,indent:t,plugins:mt(),printFunctionName:yt,...e}))}function vt(n){return n.replace(/`|\\|\$\{/g,"\\$&")}function C(n){return`\`${vt(n)}\``}function k(n){return n.replace(/\r\n|\r/g,`
|
|
13
|
-
`)}async function xt(n,t,e){const s=Object.keys(t).sort(it).map(u=>`exports[${C(u)}] = ${C(k(t[u]))};`),a=`${n.getHeader()}
|
|
14
|
-
|
|
15
|
-
${s.join(`
|
|
16
|
-
|
|
17
|
-
`)}
|
|
18
|
-
`,i=await n.readSnapshotFile(e);i!=null&&i===a||await n.saveSnapshotFile(e,a)}function O(n=[],t=[]){const e=Array.from(n);return t.forEach((s,a)=>{const i=e[a];Array.isArray(n[a])?e[a]=O(n[a],s):$(i)?e[a]=b(n[a],s):e[a]=s}),e}function b(n,t){if($(n)&&$(t)){const e={...n};return Object.keys(t).forEach(s=>{$(t[s])&&!t[s].$$typeof?s in n?e[s]=b(n[s],t[s]):Object.assign(e,{[s]:t[s]}):Array.isArray(t[s])?e[s]=O(n[s],t[s]):Object.assign(e,{[s]:t[s]})}),e}else if(Array.isArray(n)&&Array.isArray(t))return O(n,t);return n}class R extends Map{constructor(t,e){super(e),this.defaultFn=t}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}}class g extends R{constructor(){super(()=>0)}_total;valueOf(){return this._total=this.total()}increment(t){typeof this._total<"u"&&this._total++,this.set(t,this.get(t)+1)}total(){if(typeof this._total<"u")return this._total;let t=0;for(const e of this.values())t+=e;return t}}function D(n,t){return n.file===t.file&&n.column===t.column&&n.line===t.line}class F{_counters=new g;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new R(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new g;_matched=new g;_unmatched=new g;_updated=new g;get added(){return this._added}set added(t){this._added._total=t}get matched(){return this._matched}set matched(t){this._matched._total=t}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t}get updated(){return this._updated}set updated(t){this._updated._total=t}constructor(t,e,s,a){this.testFilePath=t,this.snapshotPath=e;const{data:i,dirty:o}=gt(s,a);this._fileExists=s!=null,this._initialData={...i},this._snapshotData={...i},this._dirty=o,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=a.expand||!1,this._updateSnapshot=a.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...a.snapshotFormat},this._environment=a.snapshotEnvironment}static async create(t,e){const s=await e.snapshotEnvironment.resolvePath(t),a=await e.snapshotEnvironment.readSnapshotFile(s);return new F(t,s,a,e)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(e=>{/ \d+$| > /.test(e.slice(t.length))&&this._uncheckedKeys.delete(e)})}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter(e=>e.testId!==t),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(e=>e.testId!==t);for(const e of this._testIdToKeys.get(t)){const s=St(e),a=this._counters.get(s);a>0&&((e in this._snapshotData||e in this._initialData)&&(this._snapshotData[e]=this._initialData[e]),this._counters.set(s,a-1))}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t)}_inferInlineSnapshotStack(t){const e=t.findIndex(a=>a.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(e!==-1)return t[e+3];for(let a=0;a<t.length;a++){const i=t[a].method.match(/__INLINE_SNAPSHOT_OFFSET_(\d+)__/);if(i)return t[a+Number(i[1])]??null}const s=t.findIndex(a=>a.method.includes("__INLINE_SNAPSHOT__"));return s!==-1?t[s+2]:null}_addSnapshot(t,e,s){this._dirty=!0,s.stack?this._inlineSnapshots.push({snapshot:e,testId:s.testId,...s.stack}):s.rawSnapshot?this._rawSnapshots.push({...s.rawSnapshot,snapshot:e}):this._snapshotData[t]=e}async save(){const t=Object.keys(this._snapshotData).length,e=this._inlineSnapshots.length,s=this._rawSnapshots.length,a=!t&&!e&&!s,i={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!a?(t&&(await xt(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),e&&await V(this._environment,this._inlineSnapshots),s&&await et(this._environment,this._rawSnapshots),i.saved=!0):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),i.deleted=!0),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear())}match({testId:t,testName:e,received:s,key:a,inlineSnapshot:i,isInline:o,error:u,rawSnapshot:h}){this._counters.increment(e);const c=this._counters.get(e);a||(a=_t(e,c)),this._testIdToKeys.get(t).push(a),o&&this._snapshotData[a]!==void 0||this._uncheckedKeys.delete(a);let l=h&&typeof s=="string"?s:$t(s,void 0,this._snapshotFormat);h||(l=wt(l)),h&&h.content&&h.content.match(/\r\n/)&&!l.match(/\r\n/)&&(h.content=k(h.content));const p=o?i:h?h.content:this._snapshotData[a],r=h?p:p?.trim(),f=r===(h?l:l.trim()),_=p!==void 0,w=o||this._fileExists||h&&h.content!=null;f&&!o&&!h&&(this._snapshotData[a]=l);let d;if(o){const E=L(u||new Error("snapshot"),{ignoreStackEntries:[]}),S=this._inferInlineSnapshotStack(E);if(!S)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
|
|
19
|
-
${JSON.stringify(E)}`);d=this.environment.processStackTrace?.(S)||S,d.column--;const m=this._inlineSnapshotStacks.filter(y=>D(y,d));if(m.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(v=>!D(v,d));const y=m.find(v=>v.snapshot!==l);if(y)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:l,expected:y.snapshot})}this._inlineSnapshotStacks.push({...d,testId:t,snapshot:l})}return _&&this._updateSnapshot==="all"||(!_||!w)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?f?this.matched.increment(t):(_?this.updated.increment(t):this.added.increment(t),this._addSnapshot(a,l,{stack:d,testId:t,rawSnapshot:h})):(this._addSnapshot(a,l,{stack:d,testId:t,rawSnapshot:h}),this.added.increment(t)),{actual:"",count:c,expected:"",key:a,pass:!0}):f?(this.matched.increment(t),{actual:"",count:c,expected:"",key:a,pass:!0}):(this.unmatched.increment(t),{actual:h?l:j(l),count:c,expected:r!==void 0?h?r:j(r):void 0,key:a,pass:!1})}async pack(){const t={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},e=this.getUncheckedCount(),s=this.getUncheckedKeys();e&&this.removeUncheckedKeys();const a=await this.save();return t.fileDeleted=a.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=a.deleted?0:e,t.uncheckedKeys=Array.from(s),t}}function N(n,t,e,s){const a=new Error(n);return Object.defineProperty(a,"actual",{value:e,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,"expected",{value:s,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,"diffOptions",{value:{expand:t}}),a}class At{snapshotStateMap=new Map;constructor(t={}){this.options=t}async setup(t,e){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await F.create(t,e))}async finish(t){const s=await this.getSnapshotState(t).pack();return this.snapshotStateMap.delete(t),s}skipTest(t,e){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(e)}clearTest(t,e){this.getSnapshotState(t).clearTest(e)}getSnapshotState(t){const e=this.snapshotStateMap.get(t);if(!e)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return e}assert(t){const{filepath:e,name:s,testId:a=s,message:i,isInline:o=!1,properties:u,inlineSnapshot:h,error:c,errorMessage:l,rawSnapshot:p}=t;let{received:r}=t;if(!e)throw new Error("Snapshot cannot be used outside of test");const f=this.getSnapshotState(e);if(typeof u=="object"){if(typeof r!="object"||!r)throw new Error("Received value must be an object when the matcher has properties");try{if(this.options.isEqual?.(r,u)??!1)r=b(r,u);else throw N("Snapshot properties mismatched",f.expand,r,u)}catch(m){throw m.message=l||"Snapshot mismatched",m}}const _=[s,...i?[i]:[]].join(" > "),{actual:w,expected:d,key:E,pass:S}=f.match({testId:a,testName:_,received:r,isInline:o,error:c,inlineSnapshot:h,rawSnapshot:p});if(!S)throw N(`Snapshot \`${E||"unknown"}\` mismatched`,f.expand,p?w:w?.trim(),p?d:d?.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:e,rawSnapshot:s}=t;if(s.content==null){if(!e)throw new Error("Snapshot cannot be used outside of test");const a=this.getSnapshotState(e);t.filepath||=e,s.file=await a.environment.resolveRawPath(e,s.file),s.content=await a.environment.readSnapshotFile(s.file)??void 0}return this.assert(t)}clear(){this.snapshotStateMap.clear()}}export{At as SnapshotClient,F as SnapshotState,It as addSerializer,mt as getSerializers,Tt as stripSnapshotIndentation};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function o(n){return typeof n=="function"&&"_isMockFunction"in n&&n._isMockFunction===!0}export{o as isMockFunction};
|