@smicolon/fasla-ui 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -14
- package/dist/cli/index.js +2286 -195
- package/dist/index.cjs +50 -12
- package/dist/index.js +50 -12
- package/dist/motion/index.cjs +12 -0
- package/dist/motion/index.d.cts +7 -0
- package/dist/motion/index.d.ts +7 -0
- package/dist/motion/index.js +12 -0
- package/dist/registry/index.cjs +4 -4
- package/dist/registry/index.js +4 -4
- package/dist/tokens/index.cjs +34 -8
- package/dist/tokens/index.d.cts +23 -1
- package/dist/tokens/index.d.ts +23 -1
- package/dist/tokens/index.js +34 -8
- package/package.json +12 -3
- package/registry/blocks/about-approach-stack-cards/AboutApproachStackCards.tsx +305 -0
- package/registry/blocks/about-approach-stack-cards/index.ts +9 -0
- package/registry/blocks/about-bento/AboutBento.tsx +442 -0
- package/registry/blocks/about-bento/index.ts +9 -0
- package/registry/blocks/about-collage-hero/AboutCollageHero.tsx +285 -0
- package/registry/blocks/about-collage-hero/index.ts +8 -0
- package/registry/blocks/about-color-bento/AboutColorBento.tsx +235 -0
- package/registry/blocks/about-color-bento/index.ts +6 -0
- package/registry/blocks/about-culture-masonry/AboutCultureMasonry.tsx +305 -0
- package/registry/blocks/about-culture-masonry/index.ts +9 -0
- package/registry/blocks/about-headline-photos/AboutHeadlinePhotos.tsx +270 -0
- package/registry/blocks/about-headline-photos/index.ts +8 -0
- package/registry/blocks/about-impact-stats-band/AboutImpactStatsBand.test.tsx +45 -0
- package/registry/blocks/about-impact-stats-band/AboutImpactStatsBand.tsx +348 -0
- package/registry/blocks/about-impact-stats-band/index.ts +9 -0
- package/registry/blocks/about-letter-card/AboutLetterCard.tsx +403 -0
- package/registry/blocks/about-letter-card/index.ts +9 -0
- package/registry/blocks/about-mission-statement-hero/AboutMissionStatementHero.tsx +282 -0
- package/registry/blocks/about-mission-statement-hero/index.ts +8 -0
- package/registry/blocks/about-numbered-rows/AboutNumberedRows.tsx +289 -0
- package/registry/blocks/about-numbered-rows/index.ts +7 -0
- package/registry/blocks/about-split-panel/AboutSplitPanel.tsx +247 -0
- package/registry/blocks/about-split-panel/index.ts +8 -0
- package/registry/blocks/about-spotlight/AboutSpotlight.tsx +260 -0
- package/registry/blocks/about-spotlight/index.ts +7 -0
- package/registry/blocks/about-statement-band/AboutStatementBand.tsx +236 -0
- package/registry/blocks/about-statement-band/index.ts +7 -0
- package/registry/blocks/about-story-photos/AboutStoryPhotos.test.tsx +12 -0
- package/registry/blocks/about-story-photos/AboutStoryPhotos.tsx +252 -0
- package/registry/blocks/about-story-photos/index.ts +8 -0
- package/registry/blocks/about-story-snapshots/AboutStorySnapshots.tsx +239 -0
- package/registry/blocks/about-story-snapshots/index.ts +8 -0
- package/registry/blocks/about-type-stack/AboutTypeStack.tsx +205 -0
- package/registry/blocks/about-type-stack/index.ts +6 -0
- package/registry/blocks/about-values-connector-list/AboutValuesConnectorList.tsx +316 -0
- package/registry/blocks/about-values-connector-list/index.ts +7 -0
- package/registry/blocks/about-values-focus/AboutValuesFocus.tsx +303 -0
- package/registry/blocks/about-values-focus/index.ts +8 -0
- package/registry/blocks/about-values-spotlight/AboutValuesSpotlight.tsx +265 -0
- package/registry/blocks/about-values-spotlight/index.ts +8 -0
- package/registry/blocks/auth-centered-card-sign-in/AuthCenteredCardSignIn.tsx +373 -0
- package/registry/blocks/auth-centered-card-sign-in/index.ts +9 -0
- package/registry/blocks/auth-check-your-email/AuthCheckYourEmail.tsx +366 -0
- package/registry/blocks/auth-check-your-email/index.ts +7 -0
- package/registry/blocks/auth-forgot-password/AuthForgotPassword.tsx +265 -0
- package/registry/blocks/auth-forgot-password/index.ts +8 -0
- package/registry/blocks/auth-locked-session-re-authenticate/AuthLockedSessionReAuthenticate.tsx +305 -0
- package/registry/blocks/auth-locked-session-re-authenticate/index.ts +8 -0
- package/registry/blocks/auth-magic-link-request/AuthMagicLinkRequest.tsx +336 -0
- package/registry/blocks/auth-magic-link-request/index.ts +8 -0
- package/registry/blocks/auth-minimal-centered-sign-in/AuthMinimalCenteredSignIn.tsx +261 -0
- package/registry/blocks/auth-minimal-centered-sign-in/index.ts +8 -0
- package/registry/blocks/auth-multi-step-sign-up-wizard/AuthMultiStepSignUpWizard.tsx +460 -0
- package/registry/blocks/auth-multi-step-sign-up-wizard/index.ts +8 -0
- package/registry/blocks/auth-otp-verification/AuthOtpVerification.tsx +348 -0
- package/registry/blocks/auth-otp-verification/index.ts +7 -0
- package/registry/blocks/auth-passkey-sign-in/AuthPasskeySignIn.tsx +294 -0
- package/registry/blocks/auth-passkey-sign-in/index.ts +8 -0
- package/registry/blocks/auth-password-changed/AuthPasswordChanged.tsx +239 -0
- package/registry/blocks/auth-password-changed/index.ts +8 -0
- package/registry/blocks/auth-phone-number-sign-in/AuthPhoneNumberSignIn.tsx +402 -0
- package/registry/blocks/auth-phone-number-sign-in/index.ts +10 -0
- package/registry/blocks/auth-photo-background-sign-in/AuthPhotoBackgroundSignIn.tsx +398 -0
- package/registry/blocks/auth-photo-background-sign-in/index.ts +10 -0
- package/registry/blocks/auth-profile-setup-onboarding/AuthProfileSetupOnboarding.tsx +420 -0
- package/registry/blocks/auth-profile-setup-onboarding/index.ts +7 -0
- package/registry/blocks/auth-qr-device-login/AuthQrDeviceLogin.tsx +303 -0
- package/registry/blocks/auth-qr-device-login/index.ts +7 -0
- package/registry/blocks/auth-reset-password/AuthResetPassword.tsx +313 -0
- package/registry/blocks/auth-reset-password/index.ts +7 -0
- package/registry/blocks/auth-sign-in-error-state/AuthSignInErrorState.tsx +419 -0
- package/registry/blocks/auth-sign-in-error-state/index.ts +9 -0
- package/registry/blocks/auth-sign-up-benefits-column/AuthSignUpBenefitsColumn.tsx +481 -0
- package/registry/blocks/auth-sign-up-benefits-column/index.ts +10 -0
- package/registry/blocks/auth-sign-up-password-strength/AuthSignUpPasswordStrength.tsx +511 -0
- package/registry/blocks/auth-sign-up-password-strength/index.ts +8 -0
- package/registry/blocks/auth-social-first-sign-in/AuthSocialFirstSignIn.tsx +337 -0
- package/registry/blocks/auth-social-first-sign-in/index.ts +9 -0
- package/registry/blocks/auth-split-photo-sign-in/AuthSplitPhotoSignIn.tsx +472 -0
- package/registry/blocks/auth-split-photo-sign-in/index.ts +11 -0
- package/registry/blocks/auth-split-testimonial-sign-up/AuthSplitTestimonialSignUp.tsx +548 -0
- package/registry/blocks/auth-split-testimonial-sign-up/index.ts +11 -0
- package/registry/blocks/auth-tabbed-sign-in-sign-up/AuthTabbedSignInSignUp.tsx +566 -0
- package/registry/blocks/auth-tabbed-sign-in-sign-up/index.ts +11 -0
- package/registry/blocks/auth-team-invite-accept/AuthTeamInviteAccept.tsx +372 -0
- package/registry/blocks/auth-team-invite-accept/index.ts +9 -0
- package/registry/blocks/auth-two-factor-authenticator/AuthTwoFactorAuthenticator.tsx +333 -0
- package/registry/blocks/auth-two-factor-authenticator/index.ts +7 -0
- package/registry/blocks/auth-two-factor-method-chooser/AuthTwoFactorMethodChooser.tsx +290 -0
- package/registry/blocks/auth-two-factor-method-chooser/index.ts +8 -0
- package/registry/blocks/auth-waitlist-early-access/AuthWaitlistEarlyAccess.tsx +430 -0
- package/registry/blocks/auth-waitlist-early-access/index.ts +11 -0
- package/registry/blocks/blog-cards-alongside.test.tsx +176 -0
- package/registry/blocks/blog-cards-author-spotlight/BlogCardsAuthorSpotlight.tsx +342 -0
- package/registry/blocks/blog-cards-author-spotlight/index.ts +6 -0
- package/registry/blocks/blog-cards-bento-editorial-grid/BlogCardsBentoEditorialGrid.tsx +345 -0
- package/registry/blocks/blog-cards-bento-editorial-grid/index.ts +7 -0
- package/registry/blocks/blog-cards-browse.test.tsx +367 -0
- package/registry/blocks/blog-cards-classic-3-up-grid/BlogCardsClassic3UpGrid.tsx +287 -0
- package/registry/blocks/blog-cards-classic-3-up-grid/index.ts +7 -0
- package/registry/blocks/blog-cards-compact-4-up-thumb-grid/BlogCardsCompact4UpThumbGrid.tsx +265 -0
- package/registry/blocks/blog-cards-compact-4-up-thumb-grid/index.ts +7 -0
- package/registry/blocks/blog-cards-dark-editorial-feature/BlogCardsDarkEditorialFeature.tsx +287 -0
- package/registry/blocks/blog-cards-dark-editorial-feature/index.ts +6 -0
- package/registry/blocks/blog-cards-featured-two-up/BlogCardsFeaturedTwoUp.tsx +295 -0
- package/registry/blocks/blog-cards-featured-two-up/index.ts +7 -0
- package/registry/blocks/blog-cards-features.test.tsx +183 -0
- package/registry/blocks/blog-cards-filter-sidebar-results/BlogCardsFilterSidebarResults.tsx +582 -0
- package/registry/blocks/blog-cards-filter-sidebar-results/index.ts +6 -0
- package/registry/blocks/blog-cards-grids.test.tsx +110 -0
- package/registry/blocks/blog-cards-hairline-text-index/BlogCardsHairlineTextIndex.tsx +193 -0
- package/registry/blocks/blog-cards-hairline-text-index/index.ts +7 -0
- package/registry/blocks/blog-cards-journal-bento/BlogCardsJournalBento.tsx +409 -0
- package/registry/blocks/blog-cards-journal-bento/index.ts +8 -0
- package/registry/blocks/blog-cards-latest-popular-split/BlogCardsLatestPopularSplit.tsx +258 -0
- package/registry/blocks/blog-cards-latest-popular-split/index.ts +7 -0
- package/registry/blocks/blog-cards-lead-ranked-picks/BlogCardsLeadRankedPicks.tsx +276 -0
- package/registry/blocks/blog-cards-lead-ranked-picks/index.ts +6 -0
- package/registry/blocks/blog-cards-left-thumb-row-cards/BlogCardsLeftThumbRowCards.tsx +288 -0
- package/registry/blocks/blog-cards-left-thumb-row-cards/index.ts +7 -0
- package/registry/blocks/blog-cards-lists.test.tsx +93 -0
- package/registry/blocks/blog-cards-magazine-cover-story/BlogCardsMagazineCoverStory.tsx +326 -0
- package/registry/blocks/blog-cards-magazine-cover-story/index.ts +6 -0
- package/registry/blocks/blog-cards-newsletter-latest/BlogCardsNewsletterLatest.tsx +291 -0
- package/registry/blocks/blog-cards-newsletter-latest/index.ts +6 -0
- package/registry/blocks/blog-cards-numbered-reading-list/BlogCardsNumberedReadingList.tsx +275 -0
- package/registry/blocks/blog-cards-numbered-reading-list/index.ts +7 -0
- package/registry/blocks/blog-cards-overlay-photo-trio/BlogCardsOverlayPhotoTrio.tsx +279 -0
- package/registry/blocks/blog-cards-overlay-photo-trio/index.ts +7 -0
- package/registry/blocks/blog-cards-post-carousel-with-controls/BlogCardsPostCarouselWithControls.tsx +257 -0
- package/registry/blocks/blog-cards-post-carousel-with-controls/index.ts +6 -0
- package/registry/blocks/blog-cards-pull-quote-feature/BlogCardsPullQuoteFeature.tsx +245 -0
- package/registry/blocks/blog-cards-pull-quote-feature/index.ts +6 -0
- package/registry/blocks/blog-cards-related-posts-strip/BlogCardsRelatedPostsStrip.tsx +247 -0
- package/registry/blocks/blog-cards-related-posts-strip/index.ts +6 -0
- package/registry/blocks/blog-cards-search-chips-results/BlogCardsSearchChipsResults.tsx +473 -0
- package/registry/blocks/blog-cards-search-chips-results/index.ts +6 -0
- package/registry/blocks/blog-cards-split-feature/BlogCardsSplitFeature.tsx +214 -0
- package/registry/blocks/blog-cards-split-feature/index.ts +6 -0
- package/registry/blocks/careers/careers.test.tsx +414 -0
- package/registry/blocks/careers/careers.tsx +391 -0
- package/registry/blocks/careers/index.ts +27 -0
- package/registry/blocks/careers-about-card-role-list/CareersAboutCardRoleList.tsx +235 -0
- package/registry/blocks/careers-about-card-role-list/index.ts +8 -0
- package/registry/blocks/careers-featured-role-spotlight/CareersFeaturedRoleSpotlight.tsx +271 -0
- package/registry/blocks/careers-featured-role-spotlight/index.ts +8 -0
- package/registry/blocks/careers-no-open-roles-empty-state/CareersNoOpenRolesEmptyState.tsx +330 -0
- package/registry/blocks/careers-no-open-roles-empty-state/index.ts +8 -0
- package/registry/blocks/careers-open-roles-hairline-list/CareersOpenRolesHairlineList.tsx +320 -0
- package/registry/blocks/careers-open-roles-hairline-list/index.ts +6 -0
- package/registry/blocks/careers-open-vacancies-table/CareersOpenVacanciesTable.tsx +493 -0
- package/registry/blocks/careers-open-vacancies-table/index.ts +6 -0
- package/registry/blocks/careers-perks-benefits/CareersPerksBenefits.tsx +181 -0
- package/registry/blocks/careers-perks-benefits/index.ts +8 -0
- package/registry/blocks/careers-role-cards-grid/CareersRoleCardsGrid.tsx +405 -0
- package/registry/blocks/careers-role-cards-grid/index.ts +6 -0
- package/registry/blocks/careers-role-detail-page/CareersRoleDetailPage.tsx +541 -0
- package/registry/blocks/careers-role-detail-page/index.ts +10 -0
- package/registry/blocks/careers-role-detail-panel/CareersRoleDetailPanel.tsx +255 -0
- package/registry/blocks/careers-role-detail-panel/index.ts +6 -0
- package/registry/blocks/careers-roles-by-department/CareersRolesByDepartment.tsx +242 -0
- package/registry/blocks/careers-roles-by-department/index.ts +7 -0
- package/registry/blocks/careers-roles-list-accordion-expanded/CareersRolesListAccordionExpanded.tsx +558 -0
- package/registry/blocks/careers-roles-list-accordion-expanded/index.ts +9 -0
- package/registry/blocks/contact-us/contact-us.test.tsx +239 -0
- package/registry/blocks/contact-us/contact-us.tsx +989 -0
- package/registry/blocks/contact-us/index.ts +34 -0
- package/registry/blocks/contact-us-bento-grid/ContactUsBentoGrid.tsx +304 -0
- package/registry/blocks/contact-us-bento-grid/index.ts +5 -0
- package/registry/blocks/contact-us-bento-grid.test.tsx +102 -0
- package/registry/blocks/contact-us-book-a-call/ContactUsBookACall.tsx +403 -0
- package/registry/blocks/contact-us-book-a-call/index.ts +7 -0
- package/registry/blocks/contact-us-book-a-call.test.tsx +134 -0
- package/registry/blocks/contact-us-classic-centered/ContactUsClassicCentered.tsx +199 -0
- package/registry/blocks/contact-us-classic-centered/index.ts +6 -0
- package/registry/blocks/contact-us-dark-statement/ContactUsDarkStatement.tsx +218 -0
- package/registry/blocks/contact-us-dark-statement/index.ts +6 -0
- package/registry/blocks/contact-us-editorial-and-address-card/ContactUsEditorialAndAddressCard.tsx +212 -0
- package/registry/blocks/contact-us-editorial-and-address-card/index.ts +6 -0
- package/registry/blocks/contact-us-editorial-statement/ContactUsEditorialStatement.tsx +205 -0
- package/registry/blocks/contact-us-editorial-statement/index.ts +6 -0
- package/registry/blocks/contact-us-form-contact-methods/ContactUsFormContactMethods.tsx +272 -0
- package/registry/blocks/contact-us-form-contact-methods/index.ts +6 -0
- package/registry/blocks/contact-us-form-with-faq/ContactUsFormWithFaq.tsx +383 -0
- package/registry/blocks/contact-us-form-with-faq/index.ts +7 -0
- package/registry/blocks/contact-us-form-with-faq.test.tsx +161 -0
- package/registry/blocks/contact-us-forms.test.tsx +333 -0
- package/registry/blocks/contact-us-global-offices-table/ContactUsGlobalOfficesTable.tsx +301 -0
- package/registry/blocks/contact-us-global-offices-table/index.ts +5 -0
- package/registry/blocks/contact-us-global-offices-table.test.tsx +100 -0
- package/registry/blocks/contact-us-grand-headline-form/ContactUsGrandHeadlineForm.tsx +180 -0
- package/registry/blocks/contact-us-grand-headline-form/index.ts +6 -0
- package/registry/blocks/contact-us-hours-and-availability/ContactUsHoursAndAvailability.tsx +412 -0
- package/registry/blocks/contact-us-hours-and-availability/index.ts +5 -0
- package/registry/blocks/contact-us-hours-and-availability.test.tsx +123 -0
- package/registry/blocks/contact-us-hq-feature/ContactUsHqFeature.tsx +281 -0
- package/registry/blocks/contact-us-hq-feature/index.ts +5 -0
- package/registry/blocks/contact-us-hq-feature.test.tsx +102 -0
- package/registry/blocks/contact-us-map-split/ContactUsMapSplit.tsx +211 -0
- package/registry/blocks/contact-us-map-split/index.ts +5 -0
- package/registry/blocks/contact-us-map-split.test.tsx +70 -0
- package/registry/blocks/contact-us-named-owners/ContactUsNamedOwners.tsx +324 -0
- package/registry/blocks/contact-us-named-owners/index.ts +6 -0
- package/registry/blocks/contact-us-named-owners.test.tsx +116 -0
- package/registry/blocks/contact-us-newsletter-combo/ContactUsNewsletterCombo.tsx +363 -0
- package/registry/blocks/contact-us-newsletter-combo/index.ts +6 -0
- package/registry/blocks/contact-us-newsletter-combo.test.tsx +165 -0
- package/registry/blocks/contact-us-office-cards/ContactUsOfficeCards.tsx +235 -0
- package/registry/blocks/contact-us-office-cards/index.ts +5 -0
- package/registry/blocks/contact-us-office-cards.test.tsx +71 -0
- package/registry/blocks/contact-us-oversized-wordmark/ContactUsOversizedWordmark.tsx +222 -0
- package/registry/blocks/contact-us-oversized-wordmark/index.ts +6 -0
- package/registry/blocks/contact-us-photo-and-dark-panel/ContactUsPhotoAndDarkPanel.tsx +185 -0
- package/registry/blocks/contact-us-photo-and-dark-panel/index.ts +6 -0
- package/registry/blocks/contact-us-photo-forms.test.tsx +311 -0
- package/registry/blocks/contact-us-pitch-and-inquiry/ContactUsPitchAndInquiry.tsx +202 -0
- package/registry/blocks/contact-us-pitch-and-inquiry/index.ts +6 -0
- package/registry/blocks/contact-us-rtl.test.tsx +105 -0
- package/registry/blocks/contact-us-ruled-split-form/ContactUsRuledSplitForm.tsx +214 -0
- package/registry/blocks/contact-us-ruled-split-form/index.ts +6 -0
- package/registry/blocks/contact-us-social-rail/ContactUsSocialRail.tsx +270 -0
- package/registry/blocks/contact-us-social-rail/index.ts +7 -0
- package/registry/blocks/contact-us-social-rail.test.tsx +121 -0
- package/registry/blocks/contact-us-split-photo-dark/ContactUsSplitPhotoDark.tsx +185 -0
- package/registry/blocks/contact-us-split-photo-dark/index.ts +6 -0
- package/registry/blocks/contact-us-support-channels/ContactUsSupportChannels.tsx +267 -0
- package/registry/blocks/contact-us-support-channels/index.ts +5 -0
- package/registry/blocks/contact-us-support-channels.test.tsx +81 -0
- package/registry/blocks/data-table/DataTable.test.tsx +1 -34
- package/registry/blocks/data-table/DataTable.tsx +0 -139
- package/registry/blocks/data-table/index.ts +1 -8
- package/registry/blocks/error-state-access-denied-403/ErrorStateAccessDenied403.tsx +324 -0
- package/registry/blocks/error-state-access-denied-403/index.ts +10 -0
- package/registry/blocks/error-state-broken-trail-breadcrumb/ErrorStateBrokenTrailBreadcrumb.tsx +179 -0
- package/registry/blocks/error-state-broken-trail-breadcrumb/index.ts +8 -0
- package/registry/blocks/error-state-centered-minimal/ErrorStateCenteredMinimal.tsx +119 -0
- package/registry/blocks/error-state-centered-minimal/index.ts +7 -0
- package/registry/blocks/error-state-colour-field-scatter/ErrorStateColourFieldScatter.tsx +144 -0
- package/registry/blocks/error-state-colour-field-scatter/index.ts +7 -0
- package/registry/blocks/error-state-countdown-redirect/ErrorStateCountdownRedirect.tsx +272 -0
- package/registry/blocks/error-state-countdown-redirect/index.ts +7 -0
- package/registry/blocks/error-state-dark-spotlight/ErrorStateDarkSpotlight.tsx +156 -0
- package/registry/blocks/error-state-dark-spotlight/index.ts +7 -0
- package/registry/blocks/error-state-display-numeral-split/ErrorStateDisplayNumeralSplit.tsx +156 -0
- package/registry/blocks/error-state-display-numeral-split/index.ts +8 -0
- package/registry/blocks/error-state-editorial-photo-split/ErrorStateEditorialPhotoSplit.tsx +156 -0
- package/registry/blocks/error-state-editorial-photo-split/index.ts +8 -0
- package/registry/blocks/error-state-empty-search-results/ErrorStateEmptySearchResults.tsx +243 -0
- package/registry/blocks/error-state-empty-search-results/index.ts +6 -0
- package/registry/blocks/error-state-error-card-panel/ErrorStateErrorCardPanel.tsx +213 -0
- package/registry/blocks/error-state-error-card-panel/index.ts +7 -0
- package/registry/blocks/error-state-full-bleed-photo/ErrorStateFullBleedPhoto.tsx +130 -0
- package/registry/blocks/error-state-full-bleed-photo/index.ts +8 -0
- package/registry/blocks/error-state-ghost-watermark/ErrorStateGhostWatermark.tsx +115 -0
- package/registry/blocks/error-state-ghost-watermark/index.ts +7 -0
- package/registry/blocks/error-state-helpful-links-list/ErrorStateHelpfulLinksList.tsx +185 -0
- package/registry/blocks/error-state-helpful-links-list/index.ts +8 -0
- package/registry/blocks/error-state-illustrated-empty-state/ErrorStateIllustratedEmptyState.tsx +201 -0
- package/registry/blocks/error-state-illustrated-empty-state/index.ts +7 -0
- package/registry/blocks/error-state-layered-badge-centered/ErrorStateLayeredBadgeCentered.tsx +138 -0
- package/registry/blocks/error-state-layered-badge-centered/index.ts +7 -0
- package/registry/blocks/error-state-light-editorial/ErrorStateLightEditorial.tsx +126 -0
- package/registry/blocks/error-state-light-editorial/index.ts +7 -0
- package/registry/blocks/error-state-maintenance-mode/ErrorStateMaintenanceMode.tsx +255 -0
- package/registry/blocks/error-state-maintenance-mode/index.ts +6 -0
- package/registry/blocks/error-state-marquee-404-band/ErrorStateMarquee404Band.tsx +316 -0
- package/registry/blocks/error-state-marquee-404-band/index.ts +7 -0
- package/registry/blocks/error-state-offline-state/ErrorStateOfflineState.tsx +188 -0
- package/registry/blocks/error-state-offline-state/index.ts +7 -0
- package/registry/blocks/error-state-photo-collage-scatter/ErrorStatePhotoCollageScatter.tsx +224 -0
- package/registry/blocks/error-state-photo-collage-scatter/index.ts +8 -0
- package/registry/blocks/error-state-popular-pages-grid/ErrorStatePopularPagesGrid.tsx +195 -0
- package/registry/blocks/error-state-popular-pages-grid/index.ts +9 -0
- package/registry/blocks/error-state-recovery-bento/ErrorStateRecoveryBento.tsx +274 -0
- package/registry/blocks/error-state-recovery-bento/index.ts +7 -0
- package/registry/blocks/error-state-search-recovery/ErrorStateSearchRecovery.tsx +173 -0
- package/registry/blocks/error-state-search-recovery/index.ts +7 -0
- package/registry/blocks/error-state-server-error-500/ErrorStateServerError500.tsx +277 -0
- package/registry/blocks/error-state-server-error-500/index.ts +9 -0
- package/registry/blocks/error-state-sitemap-columns/ErrorStateSitemapColumns.tsx +192 -0
- package/registry/blocks/error-state-sitemap-columns/index.ts +9 -0
- package/registry/blocks/error-state-split-colour-panel/ErrorStateSplitColourPanel.tsx +156 -0
- package/registry/blocks/error-state-split-colour-panel/index.ts +7 -0
- package/registry/blocks/error-state-support-escalation-band/ErrorStateSupportEscalationBand.tsx +186 -0
- package/registry/blocks/error-state-support-escalation-band/index.ts +8 -0
- package/registry/blocks/error-state-terminal-console/ErrorStateTerminalConsole.tsx +208 -0
- package/registry/blocks/error-state-terminal-console/index.ts +8 -0
- package/registry/blocks/faq-accent-active-card/FaqAccentActiveCard.tsx +186 -0
- package/registry/blocks/faq-accent-active-card/index.ts +1 -0
- package/registry/blocks/faq-category-chip-grid/FaqCategoryChipGrid.tsx +425 -0
- package/registry/blocks/faq-category-chip-grid/index.ts +8 -0
- package/registry/blocks/faq-category-columns/FaqCategoryColumns.tsx +248 -0
- package/registry/blocks/faq-category-columns/index.ts +8 -0
- package/registry/blocks/faq-chat-thread/FaqChatThread.tsx +273 -0
- package/registry/blocks/faq-chat-thread/index.ts +7 -0
- package/registry/blocks/faq-classic-centered/FaqClassicCentered.tsx +190 -0
- package/registry/blocks/faq-classic-centered/index.ts +7 -0
- package/registry/blocks/faq-contact-cta-card/FaqContactCtaCard.tsx +229 -0
- package/registry/blocks/faq-contact-cta-card/index.ts +9 -0
- package/registry/blocks/faq-dark-panel/FaqDarkPanel.tsx +186 -0
- package/registry/blocks/faq-dark-panel/index.ts +1 -0
- package/registry/blocks/faq-featured-question/FaqFeaturedQuestion.tsx +221 -0
- package/registry/blocks/faq-featured-question/index.ts +1 -0
- package/registry/blocks/faq-grouped-sections/FaqGroupedSections.tsx +266 -0
- package/registry/blocks/faq-grouped-sections/index.ts +8 -0
- package/registry/blocks/faq-help-hero-popular/FaqHelpHeroPopular.tsx +212 -0
- package/registry/blocks/faq-help-hero-popular/index.ts +7 -0
- package/registry/blocks/faq-masonry-cards/FaqMasonryCards.tsx +268 -0
- package/registry/blocks/faq-masonry-cards/index.ts +7 -0
- package/registry/blocks/faq-media-split/FaqMediaSplit.tsx +197 -0
- package/registry/blocks/faq-media-split/index.ts +8 -0
- package/registry/blocks/faq-mono-index/FaqMonoIndex.tsx +247 -0
- package/registry/blocks/faq-mono-index/index.ts +1 -0
- package/registry/blocks/faq-newsletter-close/FaqNewsletterClose.tsx +314 -0
- package/registry/blocks/faq-newsletter-close/index.ts +8 -0
- package/registry/blocks/faq-numbered-editorial/FaqNumberedEditorial.tsx +190 -0
- package/registry/blocks/faq-numbered-editorial/index.ts +1 -0
- package/registry/blocks/faq-search-categories/FaqSearchCategories.tsx +312 -0
- package/registry/blocks/faq-search-categories/index.ts +8 -0
- package/registry/blocks/faq-sidebar-nav/FaqSidebarNav.tsx +390 -0
- package/registry/blocks/faq-sidebar-nav/index.ts +8 -0
- package/registry/blocks/faq-soft-filled-rows/FaqSoftFilledRows.tsx +209 -0
- package/registry/blocks/faq-soft-filled-rows/index.ts +1 -0
- package/registry/blocks/faq-split-sticky/FaqSplitSticky.tsx +205 -0
- package/registry/blocks/faq-split-sticky/index.ts +7 -0
- package/registry/blocks/faq-support-channels/FaqSupportChannels.tsx +266 -0
- package/registry/blocks/faq-support-channels/index.ts +8 -0
- package/registry/blocks/faq-support-stats/FaqSupportStats.tsx +242 -0
- package/registry/blocks/faq-support-stats/index.ts +8 -0
- package/registry/blocks/faq-table-compact/FaqTableCompact.tsx +220 -0
- package/registry/blocks/faq-table-compact/index.ts +1 -0
- package/registry/blocks/faq-tabs-by-topic/FaqTabsByTopic.tsx +347 -0
- package/registry/blocks/faq-tabs-by-topic/index.ts +8 -0
- package/registry/blocks/faq-topic-tiles/FaqTopicTiles.tsx +254 -0
- package/registry/blocks/faq-topic-tiles/index.ts +7 -0
- package/registry/blocks/faq-two-column-grid/FaqTwoColumnGrid.tsx +256 -0
- package/registry/blocks/faq-two-column-grid/index.ts +7 -0
- package/registry/blocks/faq-uppercase-dense/FaqUppercaseDense.tsx +213 -0
- package/registry/blocks/faq-uppercase-dense/index.ts +1 -0
- package/registry/blocks/features/features.tsx +164 -0
- package/registry/blocks/features/index.ts +12 -0
- package/registry/blocks/features-accordion-photo/FeaturesAccordionPhoto.tsx +149 -0
- package/registry/blocks/features-accordion-photo/index.ts +7 -0
- package/registry/blocks/features-colour-block-cards/FeaturesColourBlockCards.tsx +118 -0
- package/registry/blocks/features-colour-block-cards/index.ts +8 -0
- package/registry/blocks/features-compact-icon-index/FeaturesCompactIconIndex.tsx +136 -0
- package/registry/blocks/features-compact-icon-index/index.ts +7 -0
- package/registry/blocks/features-compare-panels-chat-answer/FeaturesComparePanelsChatAnswer.tsx +346 -0
- package/registry/blocks/features-compare-panels-chat-answer/index.ts +8 -0
- package/registry/blocks/features-editorial-photo-split/FeaturesEditorialPhotoSplit.tsx +118 -0
- package/registry/blocks/features-editorial-photo-split/index.ts +7 -0
- package/registry/blocks/features-expanding-step-cards/FeaturesExpandingStepCards.tsx +300 -0
- package/registry/blocks/features-expanding-step-cards/index.ts +7 -0
- package/registry/blocks/features-feature-checklist-columns/FeaturesFeatureChecklistColumns.tsx +158 -0
- package/registry/blocks/features-feature-checklist-columns/index.ts +7 -0
- package/registry/blocks/features-feature-list-thumbnails/FeaturesFeatureListThumbnails.tsx +137 -0
- package/registry/blocks/features-feature-list-thumbnails/index.ts +7 -0
- package/registry/blocks/features-full-bleed-photo-banner/FeaturesFullBleedPhotoBanner.tsx +116 -0
- package/registry/blocks/features-full-bleed-photo-banner/index.ts +7 -0
- package/registry/blocks/features-icon-card-grid/FeaturesIconCardGrid.tsx +120 -0
- package/registry/blocks/features-icon-card-grid/index.ts +7 -0
- package/registry/blocks/features-icon-titled-preview-rail/FeaturesIconTitledPreviewRail.tsx +321 -0
- package/registry/blocks/features-icon-titled-preview-rail/index.ts +7 -0
- package/registry/blocks/features-icons-numbers.test.tsx +107 -0
- package/registry/blocks/features-interactive.test.tsx +175 -0
- package/registry/blocks/features-media-rail/FeaturesMediaRail.tsx +119 -0
- package/registry/blocks/features-media-rail/index.ts +7 -0
- package/registry/blocks/features-notched-photo-columns/FeaturesNotchedPhotoColumns.tsx +209 -0
- package/registry/blocks/features-notched-photo-columns/index.ts +7 -0
- package/registry/blocks/features-numbered-feature-rows/FeaturesNumberedFeatureRows.tsx +107 -0
- package/registry/blocks/features-numbered-feature-rows/index.ts +7 -0
- package/registry/blocks/features-numbered-steps-floating-cards/FeaturesNumberedStepsFloatingCards.tsx +324 -0
- package/registry/blocks/features-numbered-steps-floating-cards/index.ts +8 -0
- package/registry/blocks/features-perforated-photo-strip/FeaturesPerforatedPhotoStrip.tsx +218 -0
- package/registry/blocks/features-perforated-photo-strip/index.ts +7 -0
- package/registry/blocks/features-photo-bento/FeaturesPhotoBento.tsx +160 -0
- package/registry/blocks/features-photo-bento/index.ts +8 -0
- package/registry/blocks/features-photo-carousel/FeaturesPhotoCarousel.tsx +249 -0
- package/registry/blocks/features-photo-carousel/index.ts +7 -0
- package/registry/blocks/features-photo-collage/FeaturesPhotoCollage.tsx +143 -0
- package/registry/blocks/features-photo-collage/index.ts +7 -0
- package/registry/blocks/features-photo-feature-chips/FeaturesPhotoFeatureChips.tsx +125 -0
- package/registry/blocks/features-photo-feature-chips/index.ts +7 -0
- package/registry/blocks/features-photo-led.test.tsx +177 -0
- package/registry/blocks/features-photo-tabs-panel/FeaturesPhotoTabsPanel.tsx +197 -0
- package/registry/blocks/features-photo-tabs-panel/index.ts +7 -0
- package/registry/blocks/features-portrait-photo-cards-link-row/FeaturesPortraitPhotoCardsLinkRow.tsx +202 -0
- package/registry/blocks/features-portrait-photo-cards-link-row/index.ts +7 -0
- package/registry/blocks/features-product-in-use.test.tsx +188 -0
- package/registry/blocks/features-showcase-card-pair/FeaturesShowcaseCardPair.tsx +161 -0
- package/registry/blocks/features-showcase-card-pair/index.ts +7 -0
- package/registry/blocks/features-solid-colour-cards/FeaturesSolidColourCards.tsx +264 -0
- package/registry/blocks/features-solid-colour-cards/index.ts +7 -0
- package/registry/blocks/features-split-photo-icon-list/FeaturesSplitPhotoIconList.tsx +117 -0
- package/registry/blocks/features-split-photo-icon-list/index.ts +7 -0
- package/registry/blocks/features-stat-feature-band/FeaturesStatFeatureBand.tsx +114 -0
- package/registry/blocks/features-stat-feature-band/index.ts +7 -0
- package/registry/blocks/features-tinted-product-bento/FeaturesTintedProductBento.tsx +252 -0
- package/registry/blocks/features-tinted-product-bento/index.ts +7 -0
- package/registry/blocks/footer/footer.test.tsx +253 -0
- package/registry/blocks/footer/footer.tsx +554 -0
- package/registry/blocks/footer/index.ts +31 -0
- package/registry/blocks/footer-accordion-sitemap/FooterAccordionSitemap.tsx +260 -0
- package/registry/blocks/footer-accordion-sitemap/index.ts +7 -0
- package/registry/blocks/footer-bars.test.tsx +121 -0
- package/registry/blocks/footer-bento-tile/FooterBentoTile.tsx +331 -0
- package/registry/blocks/footer-bento-tile/index.ts +6 -0
- package/registry/blocks/footer-big-question-cta/FooterBigQuestionCta.tsx +250 -0
- package/registry/blocks/footer-big-question-cta/index.ts +6 -0
- package/registry/blocks/footer-big-type-link-stack/FooterBigTypeLinkStack.tsx +275 -0
- package/registry/blocks/footer-big-type-link-stack/index.ts +6 -0
- package/registry/blocks/footer-brand-panel-split/FooterBrandPanelSplit.tsx +163 -0
- package/registry/blocks/footer-brand-panel-split/index.ts +6 -0
- package/registry/blocks/footer-brand.test.tsx +608 -0
- package/registry/blocks/footer-careers-culture/FooterCareersCulture.tsx +297 -0
- package/registry/blocks/footer-careers-culture/index.ts +7 -0
- package/registry/blocks/footer-centered-brand-minimal/FooterCenteredBrandMinimal.tsx +121 -0
- package/registry/blocks/footer-centered-brand-minimal/index.ts +6 -0
- package/registry/blocks/footer-commerce.test.tsx +208 -0
- package/registry/blocks/footer-community-events/FooterCommunityEvents.tsx +263 -0
- package/registry/blocks/footer-community-events/index.ts +8 -0
- package/registry/blocks/footer-community.test.tsx +309 -0
- package/registry/blocks/footer-contact-first/FooterContactFirst.tsx +242 -0
- package/registry/blocks/footer-contact-first/index.ts +7 -0
- package/registry/blocks/footer-contact.test.tsx +285 -0
- package/registry/blocks/footer-controls.test.tsx +78 -0
- package/registry/blocks/footer-cta-band-columns/FooterCtaBandColumns.tsx +225 -0
- package/registry/blocks/footer-cta-band-columns/index.ts +6 -0
- package/registry/blocks/footer-cta.test.tsx +445 -0
- package/registry/blocks/footer-dashboard-slim-bar/FooterDashboardSlimBar.tsx +148 -0
- package/registry/blocks/footer-dashboard-slim-bar/index.ts +6 -0
- package/registry/blocks/footer-docs-page/FooterDocsPage.tsx +261 -0
- package/registry/blocks/footer-docs-page/index.ts +9 -0
- package/registry/blocks/footer-ecommerce-mega/FooterEcommerceMega.tsx +289 -0
- package/registry/blocks/footer-ecommerce-mega/index.ts +6 -0
- package/registry/blocks/footer-floating-demo-card/FooterFloatingDemoCard.tsx +261 -0
- package/registry/blocks/footer-floating-demo-card/index.ts +6 -0
- package/registry/blocks/footer-four-column-directory/FooterFourColumnDirectory.tsx +104 -0
- package/registry/blocks/footer-four-column-directory/index.ts +6 -0
- package/registry/blocks/footer-giant-wordmark/FooterGiantWordmark.tsx +252 -0
- package/registry/blocks/footer-giant-wordmark/index.ts +6 -0
- package/registry/blocks/footer-image-backed-brand/FooterImageBackedBrand.tsx +251 -0
- package/registry/blocks/footer-image-backed-brand/index.ts +6 -0
- package/registry/blocks/footer-index-numbered-columns/FooterIndexNumberedColumns.tsx +236 -0
- package/registry/blocks/footer-index-numbered-columns/index.ts +7 -0
- package/registry/blocks/footer-inline-preferences/FooterInlinePreferences.tsx +164 -0
- package/registry/blocks/footer-inline-preferences/index.ts +7 -0
- package/registry/blocks/footer-legal-first-slim/FooterLegalFirstSlim.tsx +174 -0
- package/registry/blocks/footer-legal-first-slim/index.ts +6 -0
- package/registry/blocks/footer-legal.test.tsx +180 -0
- package/registry/blocks/footer-local-business/FooterLocalBusiness.tsx +258 -0
- package/registry/blocks/footer-local-business/index.ts +7 -0
- package/registry/blocks/footer-marquee-strip/FooterMarqueeStrip.tsx +244 -0
- package/registry/blocks/footer-marquee-strip/index.ts +6 -0
- package/registry/blocks/footer-multi-region/FooterMultiRegion.tsx +310 -0
- package/registry/blocks/footer-multi-region/index.ts +7 -0
- package/registry/blocks/footer-newsletter-split/FooterNewsletterSplit.tsx +255 -0
- package/registry/blocks/footer-newsletter-split/index.ts +6 -0
- package/registry/blocks/footer-product-family-switcher/FooterProductFamilySwitcher.tsx +241 -0
- package/registry/blocks/footer-product-family-switcher/index.ts +7 -0
- package/registry/blocks/footer-service-promise-band/FooterServicePromiseBand.tsx +237 -0
- package/registry/blocks/footer-service-promise-band/index.ts +7 -0
- package/registry/blocks/footer-single-line-bar/FooterSingleLineBar.tsx +107 -0
- package/registry/blocks/footer-single-line-bar/index.ts +6 -0
- package/registry/blocks/footer-sitemap.test.tsx +390 -0
- package/registry/blocks/footer-split-hairline-micro/FooterSplitHairlineMicro.tsx +100 -0
- package/registry/blocks/footer-split-hairline-micro/index.ts +6 -0
- package/registry/blocks/footer-support-contact/FooterSupportContact.tsx +204 -0
- package/registry/blocks/footer-support-contact/index.ts +7 -0
- package/registry/blocks/footer-trust-compliance/FooterTrustCompliance.tsx +234 -0
- package/registry/blocks/footer-trust-compliance/index.ts +7 -0
- package/registry/blocks/footer-two-row-compact/FooterTwoRowCompact.tsx +124 -0
- package/registry/blocks/footer-two-row-compact/index.ts +6 -0
- package/registry/blocks/footer-two-tier-doormat/FooterTwoTierDoormat.tsx +232 -0
- package/registry/blocks/footer-two-tier-doormat/index.ts +8 -0
- package/registry/blocks/footer-utility.test.tsx +406 -0
- package/registry/blocks/footer-wide-sitemap-mega/FooterWideSitemapMega.tsx +227 -0
- package/registry/blocks/footer-wide-sitemap-mega/index.ts +6 -0
- package/registry/blocks/gallery-album-cards/GalleryAlbumCards.tsx +243 -0
- package/registry/blocks/gallery-album-cards/index.ts +8 -0
- package/registry/blocks/gallery-before-after-compare/GalleryBeforeAfterCompare.tsx +269 -0
- package/registry/blocks/gallery-before-after-compare/index.ts +7 -0
- package/registry/blocks/gallery-contact-sheet-wall/GalleryContactSheetWall.tsx +299 -0
- package/registry/blocks/gallery-contact-sheet-wall/index.ts +9 -0
- package/registry/blocks/gallery-culture-photo-grid/GalleryCulturePhotoGrid.tsx +203 -0
- package/registry/blocks/gallery-culture-photo-grid/index.ts +8 -0
- package/registry/blocks/gallery-dark-cinema-wall/GalleryDarkCinemaWall.tsx +180 -0
- package/registry/blocks/gallery-dark-cinema-wall/index.ts +7 -0
- package/registry/blocks/gallery-editorial-split/GalleryEditorialSplit.tsx +188 -0
- package/registry/blocks/gallery-editorial-split/index.ts +8 -0
- package/registry/blocks/gallery-featured-thumb-rail/GalleryFeaturedThumbRail.tsx +397 -0
- package/registry/blocks/gallery-featured-thumb-rail/index.ts +8 -0
- package/registry/blocks/gallery-filmstrip-carousel/GalleryFilmstripCarousel.tsx +384 -0
- package/registry/blocks/gallery-filmstrip-carousel/index.ts +8 -0
- package/registry/blocks/gallery-filter-tabs-grid/GalleryFilterTabsGrid.tsx +403 -0
- package/registry/blocks/gallery-filter-tabs-grid/index.ts +9 -0
- package/registry/blocks/gallery-full-bleed-slider/GalleryFullBleedSlider.tsx +309 -0
- package/registry/blocks/gallery-full-bleed-slider/index.ts +8 -0
- package/registry/blocks/gallery-horizontal-scroll-rail/GalleryHorizontalScrollRail.tsx +300 -0
- package/registry/blocks/gallery-horizontal-scroll-rail/index.ts +8 -0
- package/registry/blocks/gallery-hover-caption-cards/GalleryHoverCaptionCards.tsx +244 -0
- package/registry/blocks/gallery-hover-caption-cards/index.ts +8 -0
- package/registry/blocks/gallery-hover-index-list/GalleryHoverIndexList.tsx +253 -0
- package/registry/blocks/gallery-hover-index-list/index.ts +9 -0
- package/registry/blocks/gallery-lightbox-viewer/GalleryLightboxViewer.tsx +329 -0
- package/registry/blocks/gallery-lightbox-viewer/index.ts +7 -0
- package/registry/blocks/gallery-masonry-gallery/GalleryMasonryGallery.tsx +251 -0
- package/registry/blocks/gallery-masonry-gallery/index.ts +7 -0
- package/registry/blocks/gallery-mosaic-statement-tile/GalleryMosaicStatementTile.tsx +159 -0
- package/registry/blocks/gallery-mosaic-statement-tile/index.ts +8 -0
- package/registry/blocks/gallery-photo-bento/GalleryPhotoBento.tsx +166 -0
- package/registry/blocks/gallery-photo-bento/index.ts +8 -0
- package/registry/blocks/gallery-photo-spotlight/GalleryPhotoSpotlight.tsx +305 -0
- package/registry/blocks/gallery-photo-spotlight/index.ts +9 -0
- package/registry/blocks/gallery-scattered-collage/GalleryScatteredCollage.tsx +286 -0
- package/registry/blocks/gallery-scattered-collage/index.ts +9 -0
- package/registry/blocks/gallery-social-feed-strip/GallerySocialFeedStrip.tsx +288 -0
- package/registry/blocks/gallery-social-feed-strip/index.ts +8 -0
- package/registry/blocks/gallery-timeline-gallery/GalleryTimelineGallery.tsx +243 -0
- package/registry/blocks/gallery-timeline-gallery/index.ts +8 -0
- package/registry/blocks/gallery-video-gallery/GalleryVideoGallery.tsx +362 -0
- package/registry/blocks/gallery-video-gallery/index.ts +8 -0
- package/registry/blocks/hero-annotated-object/HeroAnnotatedObject.tsx +310 -0
- package/registry/blocks/hero-annotated-object/index.ts +10 -0
- package/registry/blocks/hero-arc-gallery/HeroArcGallery.tsx +244 -0
- package/registry/blocks/hero-arc-gallery/index.ts +9 -0
- package/registry/blocks/hero-bento-split/HeroBentoSplit.tsx +266 -0
- package/registry/blocks/hero-bento-split/index.ts +9 -0
- package/registry/blocks/hero-brand-color-block/HeroBrandColorBlock.tsx +259 -0
- package/registry/blocks/hero-brand-color-block/index.ts +8 -0
- package/registry/blocks/hero-colour-stage/HeroColourStage.tsx +292 -0
- package/registry/blocks/hero-colour-stage/index.ts +8 -0
- package/registry/blocks/hero-component-pattern/HeroComponentPattern.tsx +248 -0
- package/registry/blocks/hero-component-pattern/index.ts +9 -0
- package/registry/blocks/hero-curved-media-rail/HeroCurvedMediaRail.tsx +272 -0
- package/registry/blocks/hero-curved-media-rail/index.ts +8 -0
- package/registry/blocks/hero-duo-card/HeroDuoCard.tsx +210 -0
- package/registry/blocks/hero-duo-card/index.ts +8 -0
- package/registry/blocks/hero-editorial-arch/HeroEditorialArch.tsx +226 -0
- package/registry/blocks/hero-editorial-arch/index.ts +10 -0
- package/registry/blocks/hero-editorial-triptych/HeroEditorialTriptych.tsx +252 -0
- package/registry/blocks/hero-editorial-triptych/index.ts +9 -0
- package/registry/blocks/hero-floating-integrations/HeroFloatingIntegrations.tsx +454 -0
- package/registry/blocks/hero-floating-integrations/index.ts +11 -0
- package/registry/blocks/hero-framed-full-bleed/HeroFramedFullBleed.tsx +226 -0
- package/registry/blocks/hero-framed-full-bleed/index.ts +9 -0
- package/registry/blocks/hero-framed-studio-card/HeroFramedStudioCard.tsx +264 -0
- package/registry/blocks/hero-framed-studio-card/index.ts +8 -0
- package/registry/blocks/hero-illustration-split/HeroIllustrationSplit.tsx +200 -0
- package/registry/blocks/hero-illustration-split/index.ts +8 -0
- package/registry/blocks/hero-inline-image-headline/HeroInlineImageHeadline.tsx +305 -0
- package/registry/blocks/hero-inline-image-headline/index.ts +8 -0
- package/registry/blocks/hero-masked-type-reveal/HeroMaskedTypeReveal.tsx +323 -0
- package/registry/blocks/hero-masked-type-reveal/index.ts +9 -0
- package/registry/blocks/hero-motion.test.tsx +185 -0
- package/registry/blocks/hero-orbit-track/HeroOrbitTrack.tsx +238 -0
- package/registry/blocks/hero-orbit-track/index.ts +8 -0
- package/registry/blocks/hero-photo-constellation/HeroPhotoConstellation.tsx +228 -0
- package/registry/blocks/hero-photo-constellation/index.ts +8 -0
- package/registry/blocks/hero-scramble-decode/HeroScrambleDecode.tsx +381 -0
- package/registry/blocks/hero-scramble-decode/index.ts +7 -0
- package/registry/blocks/hero-shape-grid/HeroShapeGrid.tsx +279 -0
- package/registry/blocks/hero-shape-grid/index.ts +8 -0
- package/registry/blocks/hero-split-band-headline/HeroSplitBandHeadline.tsx +242 -0
- package/registry/blocks/hero-split-band-headline/index.ts +8 -0
- package/registry/blocks/hero-split-flap-counters/HeroSplitFlapCounters.tsx +323 -0
- package/registry/blocks/hero-split-flap-counters/index.ts +8 -0
- package/registry/blocks/hero-studio-mosaic/HeroStudioMosaic.tsx +332 -0
- package/registry/blocks/hero-studio-mosaic/index.ts +9 -0
- package/registry/blocks/hero-textured-dark/HeroTexturedDark.tsx +378 -0
- package/registry/blocks/hero-textured-dark/index.ts +10 -0
- package/registry/blocks/hero-twin-panels/HeroTwinPanels.tsx +231 -0
- package/registry/blocks/hero-twin-panels/index.ts +9 -0
- package/registry/blocks/hero-velocity-marquee/HeroVelocityMarquee.tsx +392 -0
- package/registry/blocks/hero-velocity-marquee/index.ts +8 -0
- package/registry/blocks/hero-video-in-type/HeroVideoInType.tsx +374 -0
- package/registry/blocks/hero-video-in-type/index.ts +9 -0
- package/registry/blocks/hero-video-spotlight/HeroVideoSpotlight.tsx +292 -0
- package/registry/blocks/hero-video-spotlight/index.ts +9 -0
- package/registry/blocks/hero-wave-band/HeroWaveBand.tsx +309 -0
- package/registry/blocks/hero-wave-band/index.ts +8 -0
- package/registry/blocks/how-it-works/how-it-works.tsx +330 -0
- package/registry/blocks/how-it-works/index.ts +28 -0
- package/registry/blocks/how-it-works-accordion-steps/HowItWorksAccordionSteps.tsx +213 -0
- package/registry/blocks/how-it-works-accordion-steps/index.ts +7 -0
- package/registry/blocks/how-it-works-center-spine-timeline/HowItWorksCenterSpineTimeline.tsx +200 -0
- package/registry/blocks/how-it-works-center-spine-timeline/index.ts +7 -0
- package/registry/blocks/how-it-works-column-panels/HowItWorksColumnPanels.tsx +299 -0
- package/registry/blocks/how-it-works-column-panels/index.ts +6 -0
- package/registry/blocks/how-it-works-contained-timeline/HowItWorksContainedTimeline.tsx +223 -0
- package/registry/blocks/how-it-works-contained-timeline/index.ts +8 -0
- package/registry/blocks/how-it-works-diagonal-photo-collage/HowItWorksDiagonalPhotoCollage.tsx +170 -0
- package/registry/blocks/how-it-works-diagonal-photo-collage/index.ts +7 -0
- package/registry/blocks/how-it-works-fanned-dissolve-cards/HowItWorksFannedDissolveCards.tsx +258 -0
- package/registry/blocks/how-it-works-fanned-dissolve-cards/index.ts +8 -0
- package/registry/blocks/how-it-works-full-bleed-step-panel/HowItWorksFullBleedStepPanel.tsx +319 -0
- package/registry/blocks/how-it-works-full-bleed-step-panel/index.ts +7 -0
- package/registry/blocks/how-it-works-grids.test.tsx +292 -0
- package/registry/blocks/how-it-works-interactive.test.tsx +262 -0
- package/registry/blocks/how-it-works-numbered-editorial-rows/HowItWorksNumberedEditorialRows.tsx +177 -0
- package/registry/blocks/how-it-works-numbered-editorial-rows/index.ts +7 -0
- package/registry/blocks/how-it-works-numbered-instruction-panels/HowItWorksNumberedInstructionPanels.tsx +226 -0
- package/registry/blocks/how-it-works-numbered-instruction-panels/index.ts +6 -0
- package/registry/blocks/how-it-works-numbered-photo-steps/HowItWorksNumberedPhotoSteps.tsx +150 -0
- package/registry/blocks/how-it-works-numbered-photo-steps/index.ts +7 -0
- package/registry/blocks/how-it-works-orbital-process/HowItWorksOrbitalProcess.tsx +317 -0
- package/registry/blocks/how-it-works-orbital-process/index.ts +7 -0
- package/registry/blocks/how-it-works-overlay-numeral-cards/HowItWorksOverlayNumeralCards.tsx +145 -0
- package/registry/blocks/how-it-works-overlay-numeral-cards/index.ts +7 -0
- package/registry/blocks/how-it-works-phase-line/HowItWorksPhaseLine.tsx +147 -0
- package/registry/blocks/how-it-works-phase-line/index.ts +8 -0
- package/registry/blocks/how-it-works-photo-bento-steps/HowItWorksPhotoBentoSteps.tsx +178 -0
- package/registry/blocks/how-it-works-photo-bento-steps/index.ts +7 -0
- package/registry/blocks/how-it-works-photo-rail-progress/HowItWorksPhotoRailProgress.tsx +231 -0
- package/registry/blocks/how-it-works-photo-rail-progress/index.ts +7 -0
- package/registry/blocks/how-it-works-pill-timeline/HowItWorksPillTimeline.tsx +181 -0
- package/registry/blocks/how-it-works-pill-timeline/index.ts +8 -0
- package/registry/blocks/how-it-works-rounded-cards-device-crop/HowItWorksRoundedCardsDeviceCrop.tsx +286 -0
- package/registry/blocks/how-it-works-rounded-cards-device-crop/index.ts +6 -0
- package/registry/blocks/how-it-works-six-card-grid/HowItWorksSixCardGrid.tsx +385 -0
- package/registry/blocks/how-it-works-six-card-grid/index.ts +6 -0
- package/registry/blocks/how-it-works-split-feature-band/HowItWorksSplitFeatureBand.tsx +316 -0
- package/registry/blocks/how-it-works-split-feature-band/index.ts +6 -0
- package/registry/blocks/how-it-works-split-photo-step-list/HowItWorksSplitPhotoStepList.tsx +179 -0
- package/registry/blocks/how-it-works-split-photo-step-list/index.ts +7 -0
- package/registry/blocks/how-it-works-stacked-media-text/HowItWorksStackedMediaText.tsx +310 -0
- package/registry/blocks/how-it-works-stacked-media-text/index.ts +8 -0
- package/registry/blocks/how-it-works-step-tabs-photo-panel/HowItWorksStepTabsPhotoPanel.tsx +245 -0
- package/registry/blocks/how-it-works-step-tabs-photo-panel/index.ts +7 -0
- package/registry/blocks/how-it-works-tall-visual-rail/HowItWorksTallVisualRail.tsx +349 -0
- package/registry/blocks/how-it-works-tall-visual-rail/index.ts +7 -0
- package/registry/blocks/how-it-works-timelines.test.tsx +265 -0
- package/registry/blocks/how-it-works-vertical-timeline-card/HowItWorksVerticalTimelineCard.tsx +169 -0
- package/registry/blocks/how-it-works-vertical-timeline-card/index.ts +8 -0
- package/registry/blocks/how-it-works-visual-steps.test.tsx +368 -0
- package/registry/blocks/logo-cloud-bento-logo-wall/LogoCloudBentoLogoWall.tsx +159 -0
- package/registry/blocks/logo-cloud-bento-logo-wall/index.ts +7 -0
- package/registry/blocks/logo-cloud-bordered-cell-grid/LogoCloudBorderedCellGrid.tsx +132 -0
- package/registry/blocks/logo-cloud-bordered-cell-grid/index.ts +7 -0
- package/registry/blocks/logo-cloud-centered-caption-row/LogoCloudCenteredCaptionRow.tsx +141 -0
- package/registry/blocks/logo-cloud-centered-caption-row/index.ts +7 -0
- package/registry/blocks/logo-cloud-contained-card/LogoCloudContainedCard.tsx +106 -0
- package/registry/blocks/logo-cloud-contained-card/index.ts +7 -0
- package/registry/blocks/logo-cloud-dark-logo-wall/LogoCloudDarkLogoWall.tsx +123 -0
- package/registry/blocks/logo-cloud-dark-logo-wall/index.ts +7 -0
- package/registry/blocks/logo-cloud-divider-rule-row/LogoCloudDividerRuleRow.tsx +156 -0
- package/registry/blocks/logo-cloud-divider-rule-row/index.ts +7 -0
- package/registry/blocks/logo-cloud-editorial-eyebrow-split/LogoCloudEditorialEyebrowSplit.tsx +121 -0
- package/registry/blocks/logo-cloud-editorial-eyebrow-split/index.ts +7 -0
- package/registry/blocks/logo-cloud-enterprise-wall/LogoCloudEnterpriseWall.tsx +114 -0
- package/registry/blocks/logo-cloud-enterprise-wall/index.ts +7 -0
- package/registry/blocks/logo-cloud-flanked-heading/LogoCloudFlankedHeading.tsx +162 -0
- package/registry/blocks/logo-cloud-flanked-heading/index.ts +8 -0
- package/registry/blocks/logo-cloud-grid-closing-cta/LogoCloudGridClosingCta.tsx +173 -0
- package/registry/blocks/logo-cloud-grid-closing-cta/index.ts +8 -0
- package/registry/blocks/logo-cloud-heading-grid/LogoCloudHeadingGrid.tsx +124 -0
- package/registry/blocks/logo-cloud-heading-grid/index.ts +7 -0
- package/registry/blocks/logo-cloud-heading-left-grid-right/LogoCloudHeadingLeftGridRight.tsx +172 -0
- package/registry/blocks/logo-cloud-heading-left-grid-right/index.ts +8 -0
- package/registry/blocks/logo-cloud-logo-metric-tiles/LogoCloudLogoMetricTiles.tsx +159 -0
- package/registry/blocks/logo-cloud-logo-metric-tiles/index.ts +8 -0
- package/registry/blocks/logo-cloud-logo-quote-cards/LogoCloudLogoQuoteCards.tsx +162 -0
- package/registry/blocks/logo-cloud-logo-quote-cards/index.ts +8 -0
- package/registry/blocks/logo-cloud-logo-testimonial-strip/LogoCloudLogoTestimonialStrip.tsx +159 -0
- package/registry/blocks/logo-cloud-logo-testimonial-strip/index.ts +8 -0
- package/registry/blocks/logo-cloud-named-integration-cards/LogoCloudNamedIntegrationCards.tsx +186 -0
- package/registry/blocks/logo-cloud-named-integration-cards/index.ts +9 -0
- package/registry/blocks/logo-cloud-pyramid-row-stack/LogoCloudPyramidRowStack.tsx +156 -0
- package/registry/blocks/logo-cloud-pyramid-row-stack/index.ts +7 -0
- package/registry/blocks/logo-cloud-quote-panel-grid/LogoCloudQuotePanelGrid.tsx +177 -0
- package/registry/blocks/logo-cloud-quote-panel-grid/index.ts +8 -0
- package/registry/blocks/logo-cloud-scatter-field/LogoCloudScatterField.tsx +190 -0
- package/registry/blocks/logo-cloud-scatter-field/index.ts +8 -0
- package/registry/blocks/logo-cloud-side-label-rail/LogoCloudSideLabelRail.tsx +139 -0
- package/registry/blocks/logo-cloud-side-label-rail/index.ts +7 -0
- package/registry/blocks/logo-cloud-stat-rail-above-grid/LogoCloudStatRailAboveGrid.tsx +173 -0
- package/registry/blocks/logo-cloud-stat-rail-above-grid/index.ts +8 -0
- package/registry/blocks/logo-cloud-tabbed-industry-filter/LogoCloudTabbedIndustryFilter.tsx +200 -0
- package/registry/blocks/logo-cloud-tabbed-industry-filter/index.ts +8 -0
- package/registry/blocks/navbar/index.ts +22 -11
- package/registry/blocks/navbar/navbar.test.tsx +42 -0
- package/registry/blocks/navbar/navbar.tsx +455 -0
- package/registry/blocks/navbar-active-action-with-border/NavbarActiveActionWithBorder.tsx +120 -0
- package/registry/blocks/navbar-active-action-with-border/index.ts +6 -0
- package/registry/blocks/navbar-active-action-with-round/NavbarActiveActionWithRound.tsx +120 -0
- package/registry/blocks/navbar-active-action-with-round/index.ts +6 -0
- package/registry/blocks/navbar-centered-floating/NavbarCenteredFloating.tsx +121 -0
- package/registry/blocks/navbar-centered-floating/index.ts +6 -0
- package/registry/blocks/navbar-default/NavbarDefault.tsx +102 -0
- package/registry/blocks/navbar-default/index.ts +6 -0
- package/registry/blocks/navbar-e-commerce/NavbarECommerce.tsx +212 -0
- package/registry/blocks/navbar-e-commerce/index.ts +6 -0
- package/registry/blocks/navbar-extended-at-top/NavbarExtendedAtTop.tsx +155 -0
- package/registry/blocks/navbar-extended-at-top/index.ts +7 -0
- package/registry/blocks/navbar-multiple-action/NavbarMultipleAction.tsx +133 -0
- package/registry/blocks/navbar-multiple-action/index.ts +6 -0
- package/registry/blocks/navbar-multiple-icon/NavbarMultipleIcon.tsx +132 -0
- package/registry/blocks/navbar-multiple-icon/index.ts +6 -0
- package/registry/blocks/navbar-rounded/NavbarRounded.tsx +140 -0
- package/registry/blocks/navbar-rounded/index.ts +6 -0
- package/registry/blocks/navbar-rounded-small/NavbarRoundedSmall.tsx +143 -0
- package/registry/blocks/navbar-rounded-small/index.ts +6 -0
- package/registry/blocks/navbar-small/NavbarSmall.tsx +142 -0
- package/registry/blocks/navbar-small/index.ts +6 -0
- package/registry/blocks/navbar-with-centered-logo/NavbarWithCenteredLogo.tsx +118 -0
- package/registry/blocks/navbar-with-centered-logo/index.ts +6 -0
- package/registry/blocks/navbar-with-cta-button/NavbarWithCtaButton.tsx +131 -0
- package/registry/blocks/navbar-with-cta-button/index.ts +6 -0
- package/registry/blocks/navbar-with-dropdown/NavbarWithDropdown.tsx +118 -0
- package/registry/blocks/navbar-with-dropdown/index.ts +6 -0
- package/registry/blocks/navbar-with-icon-indicator-avatar/NavbarWithIconIndicatorAvatar.tsx +85 -0
- package/registry/blocks/navbar-with-icon-indicator-avatar/index.ts +6 -0
- package/registry/blocks/navbar-with-search-input/NavbarWithSearchInput.tsx +90 -0
- package/registry/blocks/navbar-with-search-input/index.ts +6 -0
- package/registry/blocks/navbar-with-submenu/NavbarWithSubmenu.tsx +156 -0
- package/registry/blocks/navbar-with-submenu/index.ts +6 -0
- package/registry/blocks/page-header/PageHeader.tsx +5 -9
- package/registry/blocks/pricing/index.ts +20 -0
- package/registry/blocks/pricing/pricing.test.tsx +82 -0
- package/registry/blocks/pricing/pricing.tsx +343 -0
- package/registry/blocks/pricing-comparison-matrix/PricingComparisonMatrix.tsx +336 -0
- package/registry/blocks/pricing-comparison-matrix/index.ts +10 -0
- package/registry/blocks/pricing-plan-picker-summary/PricingPlanPickerSummary.tsx +399 -0
- package/registry/blocks/pricing-plan-picker-summary/index.ts +8 -0
- package/registry/blocks/pricing-plan-spotlight/PricingPlanSpotlight.tsx +281 -0
- package/registry/blocks/pricing-plan-spotlight/index.ts +7 -0
- package/registry/blocks/pricing-tiers/PricingTiers.tsx +264 -0
- package/registry/blocks/pricing-tiers/index.ts +8 -0
- package/registry/blocks/pricing-two-plan-compare/PricingTwoPlanCompare.tsx +187 -0
- package/registry/blocks/pricing-two-plan-compare/index.ts +7 -0
- package/registry/blocks/social-proof/index.ts +36 -0
- package/registry/blocks/social-proof/social-proof.test.tsx +504 -0
- package/registry/blocks/social-proof/social-proof.tsx +759 -0
- package/registry/blocks/social-proof-app-review-row/SocialProofAppReviewRow.tsx +168 -0
- package/registry/blocks/social-proof-app-review-row/index.ts +7 -0
- package/registry/blocks/social-proof-arch-portrait-quote/SocialProofArchPortraitQuote.tsx +114 -0
- package/registry/blocks/social-proof-arch-portrait-quote/index.ts +6 -0
- package/registry/blocks/social-proof-avatar-selector-row/SocialProofAvatarSelectorRow.tsx +276 -0
- package/registry/blocks/social-proof-avatar-selector-row/index.ts +7 -0
- package/registry/blocks/social-proof-benefit-title-cards/SocialProofBenefitTitleCards.tsx +182 -0
- package/registry/blocks/social-proof-benefit-title-cards/index.ts +8 -0
- package/registry/blocks/social-proof-bracket-framed-quote/SocialProofBracketFramedQuote.tsx +120 -0
- package/registry/blocks/social-proof-bracket-framed-quote/index.ts +6 -0
- package/registry/blocks/social-proof-case-study-row/SocialProofCaseStudyRow.tsx +210 -0
- package/registry/blocks/social-proof-case-study-row/index.ts +7 -0
- package/registry/blocks/social-proof-centered-logo-spotlight/SocialProofCenteredLogoSpotlight.tsx +103 -0
- package/registry/blocks/social-proof-centered-logo-spotlight/index.ts +6 -0
- package/registry/blocks/social-proof-classic-trio-grid/SocialProofClassicTrioGrid.tsx +138 -0
- package/registry/blocks/social-proof-classic-trio-grid/index.ts +7 -0
- package/registry/blocks/social-proof-dark-editorial-split/SocialProofDarkEditorialSplit.tsx +111 -0
- package/registry/blocks/social-proof-dark-editorial-split/index.ts +6 -0
- package/registry/blocks/social-proof-giant-quote-duo/SocialProofGiantQuoteDuo.tsx +156 -0
- package/registry/blocks/social-proof-giant-quote-duo/index.ts +8 -0
- package/registry/blocks/social-proof-highlighted-phrase-spotlight/SocialProofHighlightedPhraseSpotlight.tsx +130 -0
- package/registry/blocks/social-proof-highlighted-phrase-spotlight/index.ts +7 -0
- package/registry/blocks/social-proof-overlay-photo-quote/SocialProofOverlayPhotoQuote.tsx +111 -0
- package/registry/blocks/social-proof-overlay-photo-quote/index.ts +7 -0
- package/registry/blocks/social-proof-persona-pillars/SocialProofPersonaPillars.tsx +253 -0
- package/registry/blocks/social-proof-persona-pillars/index.ts +7 -0
- package/registry/blocks/social-proof-progress-carousel/SocialProofProgressCarousel.tsx +249 -0
- package/registry/blocks/social-proof-progress-carousel/index.ts +8 -0
- package/registry/blocks/social-proof-proof-bento/SocialProofProofBento.tsx +218 -0
- package/registry/blocks/social-proof-proof-bento/index.ts +6 -0
- package/registry/blocks/social-proof-spotlight-carousel/SocialProofSpotlightCarousel.tsx +212 -0
- package/registry/blocks/social-proof-spotlight-carousel/index.ts +7 -0
- package/registry/blocks/social-proof-staggered-columns/SocialProofStaggeredColumns.tsx +227 -0
- package/registry/blocks/social-proof-staggered-columns/index.ts +7 -0
- package/registry/blocks/social-proof-stat-story-cards/SocialProofStatStoryCards.tsx +218 -0
- package/registry/blocks/social-proof-stat-story-cards/index.ts +7 -0
- package/registry/blocks/social-proof-tinted-panel-portrait/SocialProofTintedPanelPortrait.tsx +130 -0
- package/registry/blocks/social-proof-tinted-panel-portrait/index.ts +7 -0
- package/registry/blocks/social-proof-tweet-wall/SocialProofTweetWall.tsx +179 -0
- package/registry/blocks/social-proof-tweet-wall/index.ts +7 -0
- package/registry/blocks/social-proof-vertical-column-wall/SocialProofVerticalColumnWall.tsx +220 -0
- package/registry/blocks/social-proof-vertical-column-wall/index.ts +7 -0
- package/registry/blocks/social-proof-video-story-cards/SocialProofVideoStoryCards.tsx +177 -0
- package/registry/blocks/social-proof-video-story-cards/index.ts +7 -0
- package/registry/blocks/social-proof-workplace-portrait-stories/SocialProofWorkplacePortraitStories.tsx +320 -0
- package/registry/blocks/social-proof-workplace-portrait-stories/index.ts +7 -0
- package/registry/blocks/team/index.ts +21 -0
- package/registry/blocks/team/team-classes.test.ts +35 -0
- package/registry/blocks/team/team.tsx +315 -0
- package/registry/blocks/team-annotated-portrait-lineup/TeamAnnotatedPortraitLineup.tsx +310 -0
- package/registry/blocks/team-annotated-portrait-lineup/index.ts +8 -0
- package/registry/blocks/team-annotated-portrait-lineup/team-annotated-portrait-lineup.test.tsx +71 -0
- package/registry/blocks/team-compact-directory-rows/TeamCompactDirectoryRows.tsx +190 -0
- package/registry/blocks/team-compact-directory-rows/compact-directory-rows.test.tsx +40 -0
- package/registry/blocks/team-compact-directory-rows/index.ts +7 -0
- package/registry/blocks/team-department-tabs-directory/TeamDepartmentTabsDirectory.tsx +414 -0
- package/registry/blocks/team-department-tabs-directory/department-tabs-directory.test.tsx +87 -0
- package/registry/blocks/team-department-tabs-directory/index.ts +10 -0
- package/registry/blocks/team-founder-spotlight/TeamFounderSpotlight.tsx +176 -0
- package/registry/blocks/team-founder-spotlight/index.ts +8 -0
- package/registry/blocks/team-founder-spotlight/team-founder-spotlight.test.tsx +70 -0
- package/registry/blocks/team-grid-backdrop-roster/TeamGridBackdropRoster.tsx +234 -0
- package/registry/blocks/team-grid-backdrop-roster/grid-backdrop-roster.test.tsx +72 -0
- package/registry/blocks/team-grid-backdrop-roster/index.ts +8 -0
- package/registry/blocks/team-hairline-grid/TeamHairlineGrid.tsx +190 -0
- package/registry/blocks/team-hairline-grid/hairline-grid.test.tsx +49 -0
- package/registry/blocks/team-hairline-grid/index.ts +1 -0
- package/registry/blocks/team-leadership-grid/TeamLeadershipGrid.tsx +183 -0
- package/registry/blocks/team-leadership-grid/index.ts +7 -0
- package/registry/blocks/team-leadership-grid/team-leadership-grid.test.tsx +38 -0
- package/registry/blocks/team-member-carousel/TeamMemberCarousel.tsx +178 -0
- package/registry/blocks/team-member-carousel/index.ts +7 -0
- package/registry/blocks/team-member-carousel/team-member-carousel.test.tsx +58 -0
- package/registry/blocks/team-member-table/TeamMemberTable.tsx +184 -0
- package/registry/blocks/team-member-table/index.ts +7 -0
- package/registry/blocks/team-member-table/member-table.test.tsx +43 -0
- package/registry/blocks/team-meta-profile-cards/TeamMetaProfileCards.tsx +155 -0
- package/registry/blocks/team-meta-profile-cards/index.ts +7 -0
- package/registry/blocks/team-meta-profile-cards/team-meta-profile-cards.test.tsx +29 -0
- package/registry/blocks/team-overlay-portrait-cards/TeamOverlayPortraitCards.tsx +145 -0
- package/registry/blocks/team-overlay-portrait-cards/index.ts +7 -0
- package/registry/blocks/team-overlay-portrait-cards/team-overlay-portrait-cards.test.tsx +49 -0
- package/registry/blocks/team-portrait-wall/TeamPortraitWall.tsx +131 -0
- package/registry/blocks/team-portrait-wall/index.ts +1 -0
- package/registry/blocks/team-portrait-wall/portrait-wall.test.tsx +45 -0
- package/registry/blocks/team-split-intro-member-rail/TeamSplitIntroMemberRail.tsx +203 -0
- package/registry/blocks/team-split-intro-member-rail/index.ts +7 -0
- package/registry/blocks/team-split-intro-member-rail/split-intro-member-rail.test.tsx +52 -0
- package/registry/blocks/team-we-re-hiring-cta/TeamWeReHiringCta.tsx +192 -0
- package/registry/blocks/team-we-re-hiring-cta/index.ts +7 -0
- package/registry/blocks/team-we-re-hiring-cta/we-re-hiring-cta.test.tsx +44 -0
- package/registry/blocks/video-call/index.ts +53 -0
- package/registry/blocks/video-call/video-call-around.test.tsx +427 -0
- package/registry/blocks/video-call/video-call-before.test.tsx +438 -0
- package/registry/blocks/video-call/video-call-hero.test.tsx +236 -0
- package/registry/blocks/video-call/video-call-stages.test.tsx +477 -0
- package/registry/blocks/video-call/video-call.test.tsx +794 -0
- package/registry/blocks/video-call/video-call.tsx +1282 -0
- package/registry/blocks/video-call-ai-meeting-recap/VideoCallAiMeetingRecap.tsx +466 -0
- package/registry/blocks/video-call-ai-meeting-recap/index.ts +9 -0
- package/registry/blocks/video-call-call-controls-dock/VideoCallCallControlsDock.tsx +211 -0
- package/registry/blocks/video-call-call-controls-dock/index.ts +6 -0
- package/registry/blocks/video-call-call-ended-summary/VideoCallCallEndedSummary.tsx +464 -0
- package/registry/blocks/video-call-call-ended-summary/index.ts +10 -0
- package/registry/blocks/video-call-call-with-side-panel/VideoCallCallWithSidePanel.tsx +357 -0
- package/registry/blocks/video-call-call-with-side-panel/index.ts +6 -0
- package/registry/blocks/video-call-captions-reactions/VideoCallCaptionsReactions.tsx +467 -0
- package/registry/blocks/video-call-captions-reactions/index.ts +10 -0
- package/registry/blocks/video-call-grid-gallery-call/VideoCallGridGalleryCall.tsx +312 -0
- package/registry/blocks/video-call-grid-gallery-call/index.ts +6 -0
- package/registry/blocks/video-call-hero-call-mockup/VideoCallHeroCallMockup.tsx +349 -0
- package/registry/blocks/video-call-hero-call-mockup/index.ts +7 -0
- package/registry/blocks/video-call-incoming-call/VideoCallIncomingCall.tsx +336 -0
- package/registry/blocks/video-call-incoming-call/index.ts +7 -0
- package/registry/blocks/video-call-join-link-dial-in/VideoCallJoinLinkDialIn.tsx +409 -0
- package/registry/blocks/video-call-join-link-dial-in/index.ts +9 -0
- package/registry/blocks/video-call-pre-join-lobby/VideoCallPreJoinLobby.tsx +345 -0
- package/registry/blocks/video-call-pre-join-lobby/index.ts +7 -0
- package/registry/blocks/video-call-screen-share-stage/VideoCallScreenShareStage.tsx +379 -0
- package/registry/blocks/video-call-screen-share-stage/index.ts +7 -0
- package/registry/blocks/video-call-speaker-filmstrip/VideoCallSpeakerFilmstrip.tsx +303 -0
- package/registry/blocks/video-call-speaker-filmstrip/index.ts +6 -0
- package/registry/blocks/video-call-upcoming-meetings/VideoCallUpcomingMeetings.tsx +349 -0
- package/registry/blocks/video-call-upcoming-meetings/index.ts +7 -0
- package/registry/blocks/video-call-waiting-room-knock/VideoCallWaitingRoomKnock.tsx +412 -0
- package/registry/blocks/video-call-waiting-room-knock/index.ts +7 -0
- package/registry/text-props-undefined.test.tsx +3 -26
- package/registry/ui/accordion/accordion.test.tsx +320 -0
- package/registry/ui/accordion/accordion.tsx +353 -0
- package/registry/ui/accordion/index.ts +15 -0
- package/registry/ui/alert/alert.test.tsx +325 -0
- package/registry/ui/alert/alert.tsx +384 -0
- package/registry/ui/alert/index.ts +10 -0
- package/registry/ui/alert-dialog/alert-dialog.test.tsx +396 -0
- package/registry/ui/alert-dialog/alert-dialog.tsx +423 -0
- package/registry/ui/alert-dialog/index.ts +21 -0
- package/registry/ui/avatar/avatar.test.tsx +2 -2
- package/registry/ui/avatar/avatar.tsx +3 -7
- package/registry/ui/breadcrumb/breadcrumb.test.tsx +305 -0
- package/registry/ui/breadcrumb/breadcrumb.tsx +205 -0
- package/registry/ui/breadcrumb/index.ts +11 -0
- package/registry/ui/button/button.test.tsx +353 -40
- package/registry/ui/button/button.tsx +304 -30
- package/registry/ui/calendar/calendar.test.tsx +192 -0
- package/registry/ui/calendar/calendar.tsx +405 -0
- package/registry/ui/calendar/index.ts +1 -0
- package/registry/ui/carousel/carousel.test.tsx +720 -0
- package/registry/ui/carousel/carousel.tsx +554 -0
- package/registry/ui/carousel/index.ts +11 -0
- package/registry/ui/checkbox/checkbox.test.tsx +318 -2
- package/registry/ui/checkbox/checkbox.tsx +253 -67
- package/registry/ui/checkbox/index.ts +1 -1
- package/registry/ui/content-carousel/content-carousel.test.tsx +303 -0
- package/registry/ui/content-carousel/content-carousel.tsx +180 -0
- package/registry/ui/content-carousel/index.ts +8 -0
- package/registry/ui/date-picker/date-picker.test.tsx +216 -0
- package/registry/ui/date-picker/date-picker.tsx +461 -0
- package/registry/ui/date-picker/index.ts +8 -0
- package/registry/ui/dialog/dialog.test.tsx +438 -0
- package/registry/ui/dialog/dialog.tsx +533 -0
- package/registry/ui/dialog/index.ts +20 -0
- package/registry/ui/dropdown-menu/dropdown-menu.test.tsx +502 -0
- package/registry/ui/dropdown-menu/dropdown-menu.tsx +627 -0
- package/registry/ui/dropdown-menu/index.ts +32 -0
- package/registry/ui/fasla-logo/fasla-logo.tsx +101 -0
- package/registry/ui/fasla-logo/index.ts +1 -0
- package/registry/ui/input/index.ts +10 -1
- package/registry/ui/input/input.test.tsx +251 -44
- package/registry/ui/input/input.tsx +311 -40
- package/registry/ui/input-number/index.ts +1 -0
- package/registry/ui/input-number/input-number.test.tsx +302 -0
- package/registry/ui/input-number/input-number.tsx +398 -0
- package/registry/ui/input-otp/index.ts +7 -0
- package/registry/ui/input-otp/input-otp.test.tsx +299 -0
- package/registry/ui/input-otp/input-otp.tsx +279 -0
- package/registry/ui/pagination/index.ts +12 -0
- package/registry/ui/pagination/pagination.test.tsx +330 -0
- package/registry/ui/pagination/pagination.tsx +336 -0
- package/registry/ui/progress/index.ts +8 -0
- package/registry/ui/progress/progress.test.tsx +168 -0
- package/registry/ui/progress/progress.tsx +165 -0
- package/registry/ui/select/index.ts +12 -1
- package/registry/ui/select/select.test.tsx +505 -0
- package/registry/ui/select/select.tsx +658 -56
- package/registry/ui/sheet/index.ts +19 -0
- package/registry/ui/sheet/sheet.test.tsx +411 -0
- package/registry/ui/sheet/sheet.tsx +496 -0
- package/registry/{blocks → ui}/sidebar/index.ts +10 -5
- package/registry/ui/sidebar/sidebar.test.tsx +224 -0
- package/registry/ui/sidebar/sidebar.tsx +754 -0
- package/registry/ui/slider/index.ts +8 -0
- package/registry/ui/slider/slider.test.tsx +231 -0
- package/registry/ui/slider/slider.tsx +319 -0
- package/registry/ui/social-icons/index.ts +1 -0
- package/registry/ui/social-icons/social-icons.tsx +284 -0
- package/registry/ui/steps/index.ts +16 -0
- package/registry/ui/steps/steps.test.tsx +435 -0
- package/registry/ui/steps/steps.tsx +571 -0
- package/registry/ui/switch/switch.tsx +3 -2
- package/registry/ui/tabs/index.ts +4 -0
- package/registry/ui/tabs/tabs.test.tsx +576 -0
- package/registry/ui/tabs/tabs.tsx +324 -112
- package/registry/ui/textarea/index.ts +1 -1
- package/registry/ui/textarea/textarea.test.tsx +294 -0
- package/registry/ui/textarea/textarea.tsx +329 -56
- package/registry/ui/tooltip/index.ts +14 -0
- package/registry/ui/tooltip/tooltip.test.tsx +301 -0
- package/registry/ui/tooltip/tooltip.tsx +409 -0
- package/registry.json +9703 -140
- package/tailwind-preset.ts +2 -2
- package/registry/blocks/navbar/Navbar.test.tsx +0 -12
- package/registry/blocks/navbar/Navbar.tsx +0 -175
- package/registry/blocks/sidebar/Sidebar.test.tsx +0 -39
- package/registry/blocks/sidebar/Sidebar.tsx +0 -212
package/dist/cli/index.js
CHANGED
|
@@ -11813,6 +11813,1981 @@ var require_lib2 = __commonJS({
|
|
|
11813
11813
|
}
|
|
11814
11814
|
});
|
|
11815
11815
|
|
|
11816
|
+
// ../../node_modules/semver/internal/constants.js
|
|
11817
|
+
var require_constants = __commonJS({
|
|
11818
|
+
"../../node_modules/semver/internal/constants.js"(exports, module) {
|
|
11819
|
+
"use strict";
|
|
11820
|
+
init_esm_shims();
|
|
11821
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
11822
|
+
var MAX_LENGTH = 256;
|
|
11823
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
11824
|
+
9007199254740991;
|
|
11825
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
11826
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
11827
|
+
var RELEASE_TYPES = [
|
|
11828
|
+
"major",
|
|
11829
|
+
"premajor",
|
|
11830
|
+
"minor",
|
|
11831
|
+
"preminor",
|
|
11832
|
+
"patch",
|
|
11833
|
+
"prepatch",
|
|
11834
|
+
"prerelease"
|
|
11835
|
+
];
|
|
11836
|
+
module.exports = {
|
|
11837
|
+
MAX_LENGTH,
|
|
11838
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
11839
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
11840
|
+
MAX_SAFE_INTEGER,
|
|
11841
|
+
RELEASE_TYPES,
|
|
11842
|
+
SEMVER_SPEC_VERSION,
|
|
11843
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
11844
|
+
FLAG_LOOSE: 2
|
|
11845
|
+
};
|
|
11846
|
+
}
|
|
11847
|
+
});
|
|
11848
|
+
|
|
11849
|
+
// ../../node_modules/semver/internal/debug.js
|
|
11850
|
+
var require_debug = __commonJS({
|
|
11851
|
+
"../../node_modules/semver/internal/debug.js"(exports, module) {
|
|
11852
|
+
"use strict";
|
|
11853
|
+
init_esm_shims();
|
|
11854
|
+
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
11855
|
+
};
|
|
11856
|
+
module.exports = debug;
|
|
11857
|
+
}
|
|
11858
|
+
});
|
|
11859
|
+
|
|
11860
|
+
// ../../node_modules/semver/internal/re.js
|
|
11861
|
+
var require_re = __commonJS({
|
|
11862
|
+
"../../node_modules/semver/internal/re.js"(exports, module) {
|
|
11863
|
+
"use strict";
|
|
11864
|
+
init_esm_shims();
|
|
11865
|
+
var {
|
|
11866
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
11867
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
11868
|
+
MAX_LENGTH
|
|
11869
|
+
} = require_constants();
|
|
11870
|
+
var debug = require_debug();
|
|
11871
|
+
exports = module.exports = {};
|
|
11872
|
+
var re = exports.re = [];
|
|
11873
|
+
var safeRe = exports.safeRe = [];
|
|
11874
|
+
var src = exports.src = [];
|
|
11875
|
+
var safeSrc = exports.safeSrc = [];
|
|
11876
|
+
var t = exports.t = {};
|
|
11877
|
+
var R = 0;
|
|
11878
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
11879
|
+
var safeRegexReplacements = [
|
|
11880
|
+
["\\s", 1],
|
|
11881
|
+
["\\d", MAX_LENGTH],
|
|
11882
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
11883
|
+
];
|
|
11884
|
+
var makeSafeRegex = (value) => {
|
|
11885
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
11886
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
11887
|
+
}
|
|
11888
|
+
return value;
|
|
11889
|
+
};
|
|
11890
|
+
var createToken = (name, value, isGlobal) => {
|
|
11891
|
+
const safe = makeSafeRegex(value);
|
|
11892
|
+
const index = R++;
|
|
11893
|
+
debug(name, index, value);
|
|
11894
|
+
t[name] = index;
|
|
11895
|
+
src[index] = value;
|
|
11896
|
+
safeSrc[index] = safe;
|
|
11897
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
11898
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
11899
|
+
};
|
|
11900
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
11901
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
11902
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
11903
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
11904
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
11905
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
11906
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
11907
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
11908
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
11909
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
11910
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
11911
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
11912
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
11913
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
11914
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
11915
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
11916
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
11917
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
11918
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
11919
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
11920
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
11921
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
11922
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
11923
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
11924
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
11925
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
11926
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
11927
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
11928
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
11929
|
+
exports.tildeTrimReplace = "$1~";
|
|
11930
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
11931
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
11932
|
+
createToken("LONECARET", "(?:\\^)");
|
|
11933
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
11934
|
+
exports.caretTrimReplace = "$1^";
|
|
11935
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
11936
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
11937
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
11938
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
11939
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
11940
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
11941
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
11942
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
11943
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
11944
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
11945
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
11946
|
+
}
|
|
11947
|
+
});
|
|
11948
|
+
|
|
11949
|
+
// ../../node_modules/semver/internal/parse-options.js
|
|
11950
|
+
var require_parse_options = __commonJS({
|
|
11951
|
+
"../../node_modules/semver/internal/parse-options.js"(exports, module) {
|
|
11952
|
+
"use strict";
|
|
11953
|
+
init_esm_shims();
|
|
11954
|
+
var looseOption = Object.freeze({ loose: true });
|
|
11955
|
+
var emptyOpts = Object.freeze({});
|
|
11956
|
+
var parseOptions = (options) => {
|
|
11957
|
+
if (!options) {
|
|
11958
|
+
return emptyOpts;
|
|
11959
|
+
}
|
|
11960
|
+
if (typeof options !== "object") {
|
|
11961
|
+
return looseOption;
|
|
11962
|
+
}
|
|
11963
|
+
return options;
|
|
11964
|
+
};
|
|
11965
|
+
module.exports = parseOptions;
|
|
11966
|
+
}
|
|
11967
|
+
});
|
|
11968
|
+
|
|
11969
|
+
// ../../node_modules/semver/internal/identifiers.js
|
|
11970
|
+
var require_identifiers = __commonJS({
|
|
11971
|
+
"../../node_modules/semver/internal/identifiers.js"(exports, module) {
|
|
11972
|
+
"use strict";
|
|
11973
|
+
init_esm_shims();
|
|
11974
|
+
var numeric = /^[0-9]+$/;
|
|
11975
|
+
var compareIdentifiers = (a, b) => {
|
|
11976
|
+
if (typeof a === "number" && typeof b === "number") {
|
|
11977
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
11978
|
+
}
|
|
11979
|
+
const anum = numeric.test(a);
|
|
11980
|
+
const bnum = numeric.test(b);
|
|
11981
|
+
if (anum && bnum) {
|
|
11982
|
+
a = +a;
|
|
11983
|
+
b = +b;
|
|
11984
|
+
}
|
|
11985
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
11986
|
+
};
|
|
11987
|
+
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
11988
|
+
module.exports = {
|
|
11989
|
+
compareIdentifiers,
|
|
11990
|
+
rcompareIdentifiers
|
|
11991
|
+
};
|
|
11992
|
+
}
|
|
11993
|
+
});
|
|
11994
|
+
|
|
11995
|
+
// ../../node_modules/semver/classes/semver.js
|
|
11996
|
+
var require_semver = __commonJS({
|
|
11997
|
+
"../../node_modules/semver/classes/semver.js"(exports, module) {
|
|
11998
|
+
"use strict";
|
|
11999
|
+
init_esm_shims();
|
|
12000
|
+
var debug = require_debug();
|
|
12001
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
12002
|
+
var { safeRe: re, t } = require_re();
|
|
12003
|
+
var parseOptions = require_parse_options();
|
|
12004
|
+
var { compareIdentifiers } = require_identifiers();
|
|
12005
|
+
var SemVer = class _SemVer {
|
|
12006
|
+
constructor(version, options) {
|
|
12007
|
+
options = parseOptions(options);
|
|
12008
|
+
if (version instanceof _SemVer) {
|
|
12009
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
12010
|
+
return version;
|
|
12011
|
+
} else {
|
|
12012
|
+
version = version.version;
|
|
12013
|
+
}
|
|
12014
|
+
} else if (typeof version !== "string") {
|
|
12015
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
12016
|
+
}
|
|
12017
|
+
if (version.length > MAX_LENGTH) {
|
|
12018
|
+
throw new TypeError(
|
|
12019
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
12020
|
+
);
|
|
12021
|
+
}
|
|
12022
|
+
debug("SemVer", version, options);
|
|
12023
|
+
this.options = options;
|
|
12024
|
+
this.loose = !!options.loose;
|
|
12025
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
12026
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
12027
|
+
if (!m) {
|
|
12028
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
12029
|
+
}
|
|
12030
|
+
this.raw = version;
|
|
12031
|
+
this.major = +m[1];
|
|
12032
|
+
this.minor = +m[2];
|
|
12033
|
+
this.patch = +m[3];
|
|
12034
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
12035
|
+
throw new TypeError("Invalid major version");
|
|
12036
|
+
}
|
|
12037
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
12038
|
+
throw new TypeError("Invalid minor version");
|
|
12039
|
+
}
|
|
12040
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
12041
|
+
throw new TypeError("Invalid patch version");
|
|
12042
|
+
}
|
|
12043
|
+
if (!m[4]) {
|
|
12044
|
+
this.prerelease = [];
|
|
12045
|
+
} else {
|
|
12046
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
12047
|
+
if (/^[0-9]+$/.test(id)) {
|
|
12048
|
+
const num = +id;
|
|
12049
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
12050
|
+
return num;
|
|
12051
|
+
}
|
|
12052
|
+
}
|
|
12053
|
+
return id;
|
|
12054
|
+
});
|
|
12055
|
+
}
|
|
12056
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
12057
|
+
this.format();
|
|
12058
|
+
}
|
|
12059
|
+
format() {
|
|
12060
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
12061
|
+
if (this.prerelease.length) {
|
|
12062
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
12063
|
+
}
|
|
12064
|
+
return this.version;
|
|
12065
|
+
}
|
|
12066
|
+
toString() {
|
|
12067
|
+
return this.version;
|
|
12068
|
+
}
|
|
12069
|
+
compare(other) {
|
|
12070
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
12071
|
+
if (!(other instanceof _SemVer)) {
|
|
12072
|
+
if (typeof other === "string" && other === this.version) {
|
|
12073
|
+
return 0;
|
|
12074
|
+
}
|
|
12075
|
+
other = new _SemVer(other, this.options);
|
|
12076
|
+
}
|
|
12077
|
+
if (other.version === this.version) {
|
|
12078
|
+
return 0;
|
|
12079
|
+
}
|
|
12080
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
12081
|
+
}
|
|
12082
|
+
compareMain(other) {
|
|
12083
|
+
if (!(other instanceof _SemVer)) {
|
|
12084
|
+
other = new _SemVer(other, this.options);
|
|
12085
|
+
}
|
|
12086
|
+
if (this.major < other.major) {
|
|
12087
|
+
return -1;
|
|
12088
|
+
}
|
|
12089
|
+
if (this.major > other.major) {
|
|
12090
|
+
return 1;
|
|
12091
|
+
}
|
|
12092
|
+
if (this.minor < other.minor) {
|
|
12093
|
+
return -1;
|
|
12094
|
+
}
|
|
12095
|
+
if (this.minor > other.minor) {
|
|
12096
|
+
return 1;
|
|
12097
|
+
}
|
|
12098
|
+
if (this.patch < other.patch) {
|
|
12099
|
+
return -1;
|
|
12100
|
+
}
|
|
12101
|
+
if (this.patch > other.patch) {
|
|
12102
|
+
return 1;
|
|
12103
|
+
}
|
|
12104
|
+
return 0;
|
|
12105
|
+
}
|
|
12106
|
+
comparePre(other) {
|
|
12107
|
+
if (!(other instanceof _SemVer)) {
|
|
12108
|
+
other = new _SemVer(other, this.options);
|
|
12109
|
+
}
|
|
12110
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
12111
|
+
return -1;
|
|
12112
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
12113
|
+
return 1;
|
|
12114
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
12115
|
+
return 0;
|
|
12116
|
+
}
|
|
12117
|
+
let i = 0;
|
|
12118
|
+
do {
|
|
12119
|
+
const a = this.prerelease[i];
|
|
12120
|
+
const b = other.prerelease[i];
|
|
12121
|
+
debug("prerelease compare", i, a, b);
|
|
12122
|
+
if (a === void 0 && b === void 0) {
|
|
12123
|
+
return 0;
|
|
12124
|
+
} else if (b === void 0) {
|
|
12125
|
+
return 1;
|
|
12126
|
+
} else if (a === void 0) {
|
|
12127
|
+
return -1;
|
|
12128
|
+
} else if (a === b) {
|
|
12129
|
+
continue;
|
|
12130
|
+
} else {
|
|
12131
|
+
return compareIdentifiers(a, b);
|
|
12132
|
+
}
|
|
12133
|
+
} while (++i);
|
|
12134
|
+
}
|
|
12135
|
+
compareBuild(other) {
|
|
12136
|
+
if (!(other instanceof _SemVer)) {
|
|
12137
|
+
other = new _SemVer(other, this.options);
|
|
12138
|
+
}
|
|
12139
|
+
let i = 0;
|
|
12140
|
+
do {
|
|
12141
|
+
const a = this.build[i];
|
|
12142
|
+
const b = other.build[i];
|
|
12143
|
+
debug("build compare", i, a, b);
|
|
12144
|
+
if (a === void 0 && b === void 0) {
|
|
12145
|
+
return 0;
|
|
12146
|
+
} else if (b === void 0) {
|
|
12147
|
+
return 1;
|
|
12148
|
+
} else if (a === void 0) {
|
|
12149
|
+
return -1;
|
|
12150
|
+
} else if (a === b) {
|
|
12151
|
+
continue;
|
|
12152
|
+
} else {
|
|
12153
|
+
return compareIdentifiers(a, b);
|
|
12154
|
+
}
|
|
12155
|
+
} while (++i);
|
|
12156
|
+
}
|
|
12157
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
12158
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
12159
|
+
inc(release, identifier, identifierBase) {
|
|
12160
|
+
if (release.startsWith("pre")) {
|
|
12161
|
+
if (!identifier && identifierBase === false) {
|
|
12162
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
12163
|
+
}
|
|
12164
|
+
if (identifier) {
|
|
12165
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
12166
|
+
if (!match || match[1] !== identifier) {
|
|
12167
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
12168
|
+
}
|
|
12169
|
+
}
|
|
12170
|
+
}
|
|
12171
|
+
switch (release) {
|
|
12172
|
+
case "premajor":
|
|
12173
|
+
this.prerelease.length = 0;
|
|
12174
|
+
this.patch = 0;
|
|
12175
|
+
this.minor = 0;
|
|
12176
|
+
this.major++;
|
|
12177
|
+
this.inc("pre", identifier, identifierBase);
|
|
12178
|
+
break;
|
|
12179
|
+
case "preminor":
|
|
12180
|
+
this.prerelease.length = 0;
|
|
12181
|
+
this.patch = 0;
|
|
12182
|
+
this.minor++;
|
|
12183
|
+
this.inc("pre", identifier, identifierBase);
|
|
12184
|
+
break;
|
|
12185
|
+
case "prepatch":
|
|
12186
|
+
this.prerelease.length = 0;
|
|
12187
|
+
this.inc("patch", identifier, identifierBase);
|
|
12188
|
+
this.inc("pre", identifier, identifierBase);
|
|
12189
|
+
break;
|
|
12190
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
12191
|
+
// prepatch.
|
|
12192
|
+
case "prerelease":
|
|
12193
|
+
if (this.prerelease.length === 0) {
|
|
12194
|
+
this.inc("patch", identifier, identifierBase);
|
|
12195
|
+
}
|
|
12196
|
+
this.inc("pre", identifier, identifierBase);
|
|
12197
|
+
break;
|
|
12198
|
+
case "release":
|
|
12199
|
+
if (this.prerelease.length === 0) {
|
|
12200
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
12201
|
+
}
|
|
12202
|
+
this.prerelease.length = 0;
|
|
12203
|
+
break;
|
|
12204
|
+
case "major":
|
|
12205
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
12206
|
+
this.major++;
|
|
12207
|
+
}
|
|
12208
|
+
this.minor = 0;
|
|
12209
|
+
this.patch = 0;
|
|
12210
|
+
this.prerelease = [];
|
|
12211
|
+
break;
|
|
12212
|
+
case "minor":
|
|
12213
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
12214
|
+
this.minor++;
|
|
12215
|
+
}
|
|
12216
|
+
this.patch = 0;
|
|
12217
|
+
this.prerelease = [];
|
|
12218
|
+
break;
|
|
12219
|
+
case "patch":
|
|
12220
|
+
if (this.prerelease.length === 0) {
|
|
12221
|
+
this.patch++;
|
|
12222
|
+
}
|
|
12223
|
+
this.prerelease = [];
|
|
12224
|
+
break;
|
|
12225
|
+
// This probably shouldn't be used publicly.
|
|
12226
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
12227
|
+
case "pre": {
|
|
12228
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
12229
|
+
if (this.prerelease.length === 0) {
|
|
12230
|
+
this.prerelease = [base];
|
|
12231
|
+
} else {
|
|
12232
|
+
let i = this.prerelease.length;
|
|
12233
|
+
while (--i >= 0) {
|
|
12234
|
+
if (typeof this.prerelease[i] === "number") {
|
|
12235
|
+
this.prerelease[i]++;
|
|
12236
|
+
i = -2;
|
|
12237
|
+
}
|
|
12238
|
+
}
|
|
12239
|
+
if (i === -1) {
|
|
12240
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
12241
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
12242
|
+
}
|
|
12243
|
+
this.prerelease.push(base);
|
|
12244
|
+
}
|
|
12245
|
+
}
|
|
12246
|
+
if (identifier) {
|
|
12247
|
+
let prerelease = [identifier, base];
|
|
12248
|
+
if (identifierBase === false) {
|
|
12249
|
+
prerelease = [identifier];
|
|
12250
|
+
}
|
|
12251
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
12252
|
+
if (isNaN(this.prerelease[1])) {
|
|
12253
|
+
this.prerelease = prerelease;
|
|
12254
|
+
}
|
|
12255
|
+
} else {
|
|
12256
|
+
this.prerelease = prerelease;
|
|
12257
|
+
}
|
|
12258
|
+
}
|
|
12259
|
+
break;
|
|
12260
|
+
}
|
|
12261
|
+
default:
|
|
12262
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
12263
|
+
}
|
|
12264
|
+
this.raw = this.format();
|
|
12265
|
+
if (this.build.length) {
|
|
12266
|
+
this.raw += `+${this.build.join(".")}`;
|
|
12267
|
+
}
|
|
12268
|
+
return this;
|
|
12269
|
+
}
|
|
12270
|
+
};
|
|
12271
|
+
module.exports = SemVer;
|
|
12272
|
+
}
|
|
12273
|
+
});
|
|
12274
|
+
|
|
12275
|
+
// ../../node_modules/semver/functions/parse.js
|
|
12276
|
+
var require_parse = __commonJS({
|
|
12277
|
+
"../../node_modules/semver/functions/parse.js"(exports, module) {
|
|
12278
|
+
"use strict";
|
|
12279
|
+
init_esm_shims();
|
|
12280
|
+
var SemVer = require_semver();
|
|
12281
|
+
var parse3 = (version, options, throwErrors = false) => {
|
|
12282
|
+
if (version instanceof SemVer) {
|
|
12283
|
+
return version;
|
|
12284
|
+
}
|
|
12285
|
+
try {
|
|
12286
|
+
return new SemVer(version, options);
|
|
12287
|
+
} catch (er) {
|
|
12288
|
+
if (!throwErrors) {
|
|
12289
|
+
return null;
|
|
12290
|
+
}
|
|
12291
|
+
throw er;
|
|
12292
|
+
}
|
|
12293
|
+
};
|
|
12294
|
+
module.exports = parse3;
|
|
12295
|
+
}
|
|
12296
|
+
});
|
|
12297
|
+
|
|
12298
|
+
// ../../node_modules/semver/functions/valid.js
|
|
12299
|
+
var require_valid = __commonJS({
|
|
12300
|
+
"../../node_modules/semver/functions/valid.js"(exports, module) {
|
|
12301
|
+
"use strict";
|
|
12302
|
+
init_esm_shims();
|
|
12303
|
+
var parse3 = require_parse();
|
|
12304
|
+
var valid = (version, options) => {
|
|
12305
|
+
const v = parse3(version, options);
|
|
12306
|
+
return v ? v.version : null;
|
|
12307
|
+
};
|
|
12308
|
+
module.exports = valid;
|
|
12309
|
+
}
|
|
12310
|
+
});
|
|
12311
|
+
|
|
12312
|
+
// ../../node_modules/semver/functions/clean.js
|
|
12313
|
+
var require_clean = __commonJS({
|
|
12314
|
+
"../../node_modules/semver/functions/clean.js"(exports, module) {
|
|
12315
|
+
"use strict";
|
|
12316
|
+
init_esm_shims();
|
|
12317
|
+
var parse3 = require_parse();
|
|
12318
|
+
var clean = (version, options) => {
|
|
12319
|
+
const s = parse3(version.trim().replace(/^[=v]+/, ""), options);
|
|
12320
|
+
return s ? s.version : null;
|
|
12321
|
+
};
|
|
12322
|
+
module.exports = clean;
|
|
12323
|
+
}
|
|
12324
|
+
});
|
|
12325
|
+
|
|
12326
|
+
// ../../node_modules/semver/functions/inc.js
|
|
12327
|
+
var require_inc = __commonJS({
|
|
12328
|
+
"../../node_modules/semver/functions/inc.js"(exports, module) {
|
|
12329
|
+
"use strict";
|
|
12330
|
+
init_esm_shims();
|
|
12331
|
+
var SemVer = require_semver();
|
|
12332
|
+
var inc = (version, release, options, identifier, identifierBase) => {
|
|
12333
|
+
if (typeof options === "string") {
|
|
12334
|
+
identifierBase = identifier;
|
|
12335
|
+
identifier = options;
|
|
12336
|
+
options = void 0;
|
|
12337
|
+
}
|
|
12338
|
+
try {
|
|
12339
|
+
return new SemVer(
|
|
12340
|
+
version instanceof SemVer ? version.version : version,
|
|
12341
|
+
options
|
|
12342
|
+
).inc(release, identifier, identifierBase).version;
|
|
12343
|
+
} catch (er) {
|
|
12344
|
+
return null;
|
|
12345
|
+
}
|
|
12346
|
+
};
|
|
12347
|
+
module.exports = inc;
|
|
12348
|
+
}
|
|
12349
|
+
});
|
|
12350
|
+
|
|
12351
|
+
// ../../node_modules/semver/functions/diff.js
|
|
12352
|
+
var require_diff = __commonJS({
|
|
12353
|
+
"../../node_modules/semver/functions/diff.js"(exports, module) {
|
|
12354
|
+
"use strict";
|
|
12355
|
+
init_esm_shims();
|
|
12356
|
+
var parse3 = require_parse();
|
|
12357
|
+
var diff = (version1, version2) => {
|
|
12358
|
+
const v1 = parse3(version1, null, true);
|
|
12359
|
+
const v2 = parse3(version2, null, true);
|
|
12360
|
+
const comparison = v1.compare(v2);
|
|
12361
|
+
if (comparison === 0) {
|
|
12362
|
+
return null;
|
|
12363
|
+
}
|
|
12364
|
+
const v1Higher = comparison > 0;
|
|
12365
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
12366
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
12367
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
12368
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
12369
|
+
if (lowHasPre && !highHasPre) {
|
|
12370
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
12371
|
+
return "major";
|
|
12372
|
+
}
|
|
12373
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
12374
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
12375
|
+
return "minor";
|
|
12376
|
+
}
|
|
12377
|
+
return "patch";
|
|
12378
|
+
}
|
|
12379
|
+
}
|
|
12380
|
+
const prefix = highHasPre ? "pre" : "";
|
|
12381
|
+
if (v1.major !== v2.major) {
|
|
12382
|
+
return prefix + "major";
|
|
12383
|
+
}
|
|
12384
|
+
if (v1.minor !== v2.minor) {
|
|
12385
|
+
return prefix + "minor";
|
|
12386
|
+
}
|
|
12387
|
+
if (v1.patch !== v2.patch) {
|
|
12388
|
+
return prefix + "patch";
|
|
12389
|
+
}
|
|
12390
|
+
return "prerelease";
|
|
12391
|
+
};
|
|
12392
|
+
module.exports = diff;
|
|
12393
|
+
}
|
|
12394
|
+
});
|
|
12395
|
+
|
|
12396
|
+
// ../../node_modules/semver/functions/major.js
|
|
12397
|
+
var require_major = __commonJS({
|
|
12398
|
+
"../../node_modules/semver/functions/major.js"(exports, module) {
|
|
12399
|
+
"use strict";
|
|
12400
|
+
init_esm_shims();
|
|
12401
|
+
var SemVer = require_semver();
|
|
12402
|
+
var major = (a, loose) => new SemVer(a, loose).major;
|
|
12403
|
+
module.exports = major;
|
|
12404
|
+
}
|
|
12405
|
+
});
|
|
12406
|
+
|
|
12407
|
+
// ../../node_modules/semver/functions/minor.js
|
|
12408
|
+
var require_minor = __commonJS({
|
|
12409
|
+
"../../node_modules/semver/functions/minor.js"(exports, module) {
|
|
12410
|
+
"use strict";
|
|
12411
|
+
init_esm_shims();
|
|
12412
|
+
var SemVer = require_semver();
|
|
12413
|
+
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
12414
|
+
module.exports = minor;
|
|
12415
|
+
}
|
|
12416
|
+
});
|
|
12417
|
+
|
|
12418
|
+
// ../../node_modules/semver/functions/patch.js
|
|
12419
|
+
var require_patch = __commonJS({
|
|
12420
|
+
"../../node_modules/semver/functions/patch.js"(exports, module) {
|
|
12421
|
+
"use strict";
|
|
12422
|
+
init_esm_shims();
|
|
12423
|
+
var SemVer = require_semver();
|
|
12424
|
+
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
12425
|
+
module.exports = patch;
|
|
12426
|
+
}
|
|
12427
|
+
});
|
|
12428
|
+
|
|
12429
|
+
// ../../node_modules/semver/functions/prerelease.js
|
|
12430
|
+
var require_prerelease = __commonJS({
|
|
12431
|
+
"../../node_modules/semver/functions/prerelease.js"(exports, module) {
|
|
12432
|
+
"use strict";
|
|
12433
|
+
init_esm_shims();
|
|
12434
|
+
var parse3 = require_parse();
|
|
12435
|
+
var prerelease = (version, options) => {
|
|
12436
|
+
const parsed = parse3(version, options);
|
|
12437
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
12438
|
+
};
|
|
12439
|
+
module.exports = prerelease;
|
|
12440
|
+
}
|
|
12441
|
+
});
|
|
12442
|
+
|
|
12443
|
+
// ../../node_modules/semver/functions/compare.js
|
|
12444
|
+
var require_compare = __commonJS({
|
|
12445
|
+
"../../node_modules/semver/functions/compare.js"(exports, module) {
|
|
12446
|
+
"use strict";
|
|
12447
|
+
init_esm_shims();
|
|
12448
|
+
var SemVer = require_semver();
|
|
12449
|
+
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
12450
|
+
module.exports = compare;
|
|
12451
|
+
}
|
|
12452
|
+
});
|
|
12453
|
+
|
|
12454
|
+
// ../../node_modules/semver/functions/rcompare.js
|
|
12455
|
+
var require_rcompare = __commonJS({
|
|
12456
|
+
"../../node_modules/semver/functions/rcompare.js"(exports, module) {
|
|
12457
|
+
"use strict";
|
|
12458
|
+
init_esm_shims();
|
|
12459
|
+
var compare = require_compare();
|
|
12460
|
+
var rcompare = (a, b, loose) => compare(b, a, loose);
|
|
12461
|
+
module.exports = rcompare;
|
|
12462
|
+
}
|
|
12463
|
+
});
|
|
12464
|
+
|
|
12465
|
+
// ../../node_modules/semver/functions/compare-loose.js
|
|
12466
|
+
var require_compare_loose = __commonJS({
|
|
12467
|
+
"../../node_modules/semver/functions/compare-loose.js"(exports, module) {
|
|
12468
|
+
"use strict";
|
|
12469
|
+
init_esm_shims();
|
|
12470
|
+
var compare = require_compare();
|
|
12471
|
+
var compareLoose = (a, b) => compare(a, b, true);
|
|
12472
|
+
module.exports = compareLoose;
|
|
12473
|
+
}
|
|
12474
|
+
});
|
|
12475
|
+
|
|
12476
|
+
// ../../node_modules/semver/functions/compare-build.js
|
|
12477
|
+
var require_compare_build = __commonJS({
|
|
12478
|
+
"../../node_modules/semver/functions/compare-build.js"(exports, module) {
|
|
12479
|
+
"use strict";
|
|
12480
|
+
init_esm_shims();
|
|
12481
|
+
var SemVer = require_semver();
|
|
12482
|
+
var compareBuild = (a, b, loose) => {
|
|
12483
|
+
const versionA = new SemVer(a, loose);
|
|
12484
|
+
const versionB = new SemVer(b, loose);
|
|
12485
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
12486
|
+
};
|
|
12487
|
+
module.exports = compareBuild;
|
|
12488
|
+
}
|
|
12489
|
+
});
|
|
12490
|
+
|
|
12491
|
+
// ../../node_modules/semver/functions/sort.js
|
|
12492
|
+
var require_sort = __commonJS({
|
|
12493
|
+
"../../node_modules/semver/functions/sort.js"(exports, module) {
|
|
12494
|
+
"use strict";
|
|
12495
|
+
init_esm_shims();
|
|
12496
|
+
var compareBuild = require_compare_build();
|
|
12497
|
+
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
12498
|
+
module.exports = sort;
|
|
12499
|
+
}
|
|
12500
|
+
});
|
|
12501
|
+
|
|
12502
|
+
// ../../node_modules/semver/functions/rsort.js
|
|
12503
|
+
var require_rsort = __commonJS({
|
|
12504
|
+
"../../node_modules/semver/functions/rsort.js"(exports, module) {
|
|
12505
|
+
"use strict";
|
|
12506
|
+
init_esm_shims();
|
|
12507
|
+
var compareBuild = require_compare_build();
|
|
12508
|
+
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
12509
|
+
module.exports = rsort;
|
|
12510
|
+
}
|
|
12511
|
+
});
|
|
12512
|
+
|
|
12513
|
+
// ../../node_modules/semver/functions/gt.js
|
|
12514
|
+
var require_gt = __commonJS({
|
|
12515
|
+
"../../node_modules/semver/functions/gt.js"(exports, module) {
|
|
12516
|
+
"use strict";
|
|
12517
|
+
init_esm_shims();
|
|
12518
|
+
var compare = require_compare();
|
|
12519
|
+
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
12520
|
+
module.exports = gt;
|
|
12521
|
+
}
|
|
12522
|
+
});
|
|
12523
|
+
|
|
12524
|
+
// ../../node_modules/semver/functions/lt.js
|
|
12525
|
+
var require_lt = __commonJS({
|
|
12526
|
+
"../../node_modules/semver/functions/lt.js"(exports, module) {
|
|
12527
|
+
"use strict";
|
|
12528
|
+
init_esm_shims();
|
|
12529
|
+
var compare = require_compare();
|
|
12530
|
+
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
12531
|
+
module.exports = lt;
|
|
12532
|
+
}
|
|
12533
|
+
});
|
|
12534
|
+
|
|
12535
|
+
// ../../node_modules/semver/functions/eq.js
|
|
12536
|
+
var require_eq = __commonJS({
|
|
12537
|
+
"../../node_modules/semver/functions/eq.js"(exports, module) {
|
|
12538
|
+
"use strict";
|
|
12539
|
+
init_esm_shims();
|
|
12540
|
+
var compare = require_compare();
|
|
12541
|
+
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
12542
|
+
module.exports = eq;
|
|
12543
|
+
}
|
|
12544
|
+
});
|
|
12545
|
+
|
|
12546
|
+
// ../../node_modules/semver/functions/neq.js
|
|
12547
|
+
var require_neq = __commonJS({
|
|
12548
|
+
"../../node_modules/semver/functions/neq.js"(exports, module) {
|
|
12549
|
+
"use strict";
|
|
12550
|
+
init_esm_shims();
|
|
12551
|
+
var compare = require_compare();
|
|
12552
|
+
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
12553
|
+
module.exports = neq;
|
|
12554
|
+
}
|
|
12555
|
+
});
|
|
12556
|
+
|
|
12557
|
+
// ../../node_modules/semver/functions/gte.js
|
|
12558
|
+
var require_gte = __commonJS({
|
|
12559
|
+
"../../node_modules/semver/functions/gte.js"(exports, module) {
|
|
12560
|
+
"use strict";
|
|
12561
|
+
init_esm_shims();
|
|
12562
|
+
var compare = require_compare();
|
|
12563
|
+
var gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
12564
|
+
module.exports = gte;
|
|
12565
|
+
}
|
|
12566
|
+
});
|
|
12567
|
+
|
|
12568
|
+
// ../../node_modules/semver/functions/lte.js
|
|
12569
|
+
var require_lte = __commonJS({
|
|
12570
|
+
"../../node_modules/semver/functions/lte.js"(exports, module) {
|
|
12571
|
+
"use strict";
|
|
12572
|
+
init_esm_shims();
|
|
12573
|
+
var compare = require_compare();
|
|
12574
|
+
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
12575
|
+
module.exports = lte;
|
|
12576
|
+
}
|
|
12577
|
+
});
|
|
12578
|
+
|
|
12579
|
+
// ../../node_modules/semver/functions/cmp.js
|
|
12580
|
+
var require_cmp = __commonJS({
|
|
12581
|
+
"../../node_modules/semver/functions/cmp.js"(exports, module) {
|
|
12582
|
+
"use strict";
|
|
12583
|
+
init_esm_shims();
|
|
12584
|
+
var eq = require_eq();
|
|
12585
|
+
var neq = require_neq();
|
|
12586
|
+
var gt = require_gt();
|
|
12587
|
+
var gte = require_gte();
|
|
12588
|
+
var lt = require_lt();
|
|
12589
|
+
var lte = require_lte();
|
|
12590
|
+
var cmp = (a, op, b, loose) => {
|
|
12591
|
+
switch (op) {
|
|
12592
|
+
case "===":
|
|
12593
|
+
if (typeof a === "object") {
|
|
12594
|
+
a = a.version;
|
|
12595
|
+
}
|
|
12596
|
+
if (typeof b === "object") {
|
|
12597
|
+
b = b.version;
|
|
12598
|
+
}
|
|
12599
|
+
return a === b;
|
|
12600
|
+
case "!==":
|
|
12601
|
+
if (typeof a === "object") {
|
|
12602
|
+
a = a.version;
|
|
12603
|
+
}
|
|
12604
|
+
if (typeof b === "object") {
|
|
12605
|
+
b = b.version;
|
|
12606
|
+
}
|
|
12607
|
+
return a !== b;
|
|
12608
|
+
case "":
|
|
12609
|
+
case "=":
|
|
12610
|
+
case "==":
|
|
12611
|
+
return eq(a, b, loose);
|
|
12612
|
+
case "!=":
|
|
12613
|
+
return neq(a, b, loose);
|
|
12614
|
+
case ">":
|
|
12615
|
+
return gt(a, b, loose);
|
|
12616
|
+
case ">=":
|
|
12617
|
+
return gte(a, b, loose);
|
|
12618
|
+
case "<":
|
|
12619
|
+
return lt(a, b, loose);
|
|
12620
|
+
case "<=":
|
|
12621
|
+
return lte(a, b, loose);
|
|
12622
|
+
default:
|
|
12623
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
12624
|
+
}
|
|
12625
|
+
};
|
|
12626
|
+
module.exports = cmp;
|
|
12627
|
+
}
|
|
12628
|
+
});
|
|
12629
|
+
|
|
12630
|
+
// ../../node_modules/semver/functions/coerce.js
|
|
12631
|
+
var require_coerce = __commonJS({
|
|
12632
|
+
"../../node_modules/semver/functions/coerce.js"(exports, module) {
|
|
12633
|
+
"use strict";
|
|
12634
|
+
init_esm_shims();
|
|
12635
|
+
var SemVer = require_semver();
|
|
12636
|
+
var parse3 = require_parse();
|
|
12637
|
+
var { safeRe: re, t } = require_re();
|
|
12638
|
+
var coerce = (version, options) => {
|
|
12639
|
+
if (version instanceof SemVer) {
|
|
12640
|
+
return version;
|
|
12641
|
+
}
|
|
12642
|
+
if (typeof version === "number") {
|
|
12643
|
+
version = String(version);
|
|
12644
|
+
}
|
|
12645
|
+
if (typeof version !== "string") {
|
|
12646
|
+
return null;
|
|
12647
|
+
}
|
|
12648
|
+
options = options || {};
|
|
12649
|
+
let match = null;
|
|
12650
|
+
if (!options.rtl) {
|
|
12651
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
12652
|
+
} else {
|
|
12653
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
12654
|
+
let next;
|
|
12655
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
12656
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
12657
|
+
match = next;
|
|
12658
|
+
}
|
|
12659
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
12660
|
+
}
|
|
12661
|
+
coerceRtlRegex.lastIndex = -1;
|
|
12662
|
+
}
|
|
12663
|
+
if (match === null) {
|
|
12664
|
+
return null;
|
|
12665
|
+
}
|
|
12666
|
+
const major = match[2];
|
|
12667
|
+
const minor = match[3] || "0";
|
|
12668
|
+
const patch = match[4] || "0";
|
|
12669
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
12670
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
12671
|
+
return parse3(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
12672
|
+
};
|
|
12673
|
+
module.exports = coerce;
|
|
12674
|
+
}
|
|
12675
|
+
});
|
|
12676
|
+
|
|
12677
|
+
// ../../node_modules/semver/internal/lrucache.js
|
|
12678
|
+
var require_lrucache = __commonJS({
|
|
12679
|
+
"../../node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
12680
|
+
"use strict";
|
|
12681
|
+
init_esm_shims();
|
|
12682
|
+
var LRUCache = class {
|
|
12683
|
+
constructor() {
|
|
12684
|
+
this.max = 1e3;
|
|
12685
|
+
this.map = /* @__PURE__ */ new Map();
|
|
12686
|
+
}
|
|
12687
|
+
get(key) {
|
|
12688
|
+
const value = this.map.get(key);
|
|
12689
|
+
if (value === void 0) {
|
|
12690
|
+
return void 0;
|
|
12691
|
+
} else {
|
|
12692
|
+
this.map.delete(key);
|
|
12693
|
+
this.map.set(key, value);
|
|
12694
|
+
return value;
|
|
12695
|
+
}
|
|
12696
|
+
}
|
|
12697
|
+
delete(key) {
|
|
12698
|
+
return this.map.delete(key);
|
|
12699
|
+
}
|
|
12700
|
+
set(key, value) {
|
|
12701
|
+
const deleted = this.delete(key);
|
|
12702
|
+
if (!deleted && value !== void 0) {
|
|
12703
|
+
if (this.map.size >= this.max) {
|
|
12704
|
+
const firstKey = this.map.keys().next().value;
|
|
12705
|
+
this.delete(firstKey);
|
|
12706
|
+
}
|
|
12707
|
+
this.map.set(key, value);
|
|
12708
|
+
}
|
|
12709
|
+
return this;
|
|
12710
|
+
}
|
|
12711
|
+
};
|
|
12712
|
+
module.exports = LRUCache;
|
|
12713
|
+
}
|
|
12714
|
+
});
|
|
12715
|
+
|
|
12716
|
+
// ../../node_modules/semver/classes/range.js
|
|
12717
|
+
var require_range = __commonJS({
|
|
12718
|
+
"../../node_modules/semver/classes/range.js"(exports, module) {
|
|
12719
|
+
"use strict";
|
|
12720
|
+
init_esm_shims();
|
|
12721
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
12722
|
+
var Range = class _Range {
|
|
12723
|
+
constructor(range, options) {
|
|
12724
|
+
options = parseOptions(options);
|
|
12725
|
+
if (range instanceof _Range) {
|
|
12726
|
+
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
12727
|
+
return range;
|
|
12728
|
+
} else {
|
|
12729
|
+
return new _Range(range.raw, options);
|
|
12730
|
+
}
|
|
12731
|
+
}
|
|
12732
|
+
if (range instanceof Comparator) {
|
|
12733
|
+
this.raw = range.value;
|
|
12734
|
+
this.set = [[range]];
|
|
12735
|
+
this.formatted = void 0;
|
|
12736
|
+
return this;
|
|
12737
|
+
}
|
|
12738
|
+
this.options = options;
|
|
12739
|
+
this.loose = !!options.loose;
|
|
12740
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
12741
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
12742
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
12743
|
+
if (!this.set.length) {
|
|
12744
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
12745
|
+
}
|
|
12746
|
+
if (this.set.length > 1) {
|
|
12747
|
+
const first = this.set[0];
|
|
12748
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
12749
|
+
if (this.set.length === 0) {
|
|
12750
|
+
this.set = [first];
|
|
12751
|
+
} else if (this.set.length > 1) {
|
|
12752
|
+
for (const c of this.set) {
|
|
12753
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
12754
|
+
this.set = [c];
|
|
12755
|
+
break;
|
|
12756
|
+
}
|
|
12757
|
+
}
|
|
12758
|
+
}
|
|
12759
|
+
}
|
|
12760
|
+
this.formatted = void 0;
|
|
12761
|
+
}
|
|
12762
|
+
get range() {
|
|
12763
|
+
if (this.formatted === void 0) {
|
|
12764
|
+
this.formatted = "";
|
|
12765
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
12766
|
+
if (i > 0) {
|
|
12767
|
+
this.formatted += "||";
|
|
12768
|
+
}
|
|
12769
|
+
const comps = this.set[i];
|
|
12770
|
+
for (let k = 0; k < comps.length; k++) {
|
|
12771
|
+
if (k > 0) {
|
|
12772
|
+
this.formatted += " ";
|
|
12773
|
+
}
|
|
12774
|
+
this.formatted += comps[k].toString().trim();
|
|
12775
|
+
}
|
|
12776
|
+
}
|
|
12777
|
+
}
|
|
12778
|
+
return this.formatted;
|
|
12779
|
+
}
|
|
12780
|
+
format() {
|
|
12781
|
+
return this.range;
|
|
12782
|
+
}
|
|
12783
|
+
toString() {
|
|
12784
|
+
return this.range;
|
|
12785
|
+
}
|
|
12786
|
+
parseRange(range) {
|
|
12787
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
12788
|
+
const memoKey = memoOpts + ":" + range;
|
|
12789
|
+
const cached = cache.get(memoKey);
|
|
12790
|
+
if (cached) {
|
|
12791
|
+
return cached;
|
|
12792
|
+
}
|
|
12793
|
+
const loose = this.options.loose;
|
|
12794
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
12795
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
12796
|
+
debug("hyphen replace", range);
|
|
12797
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
12798
|
+
debug("comparator trim", range);
|
|
12799
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
12800
|
+
debug("tilde trim", range);
|
|
12801
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
12802
|
+
debug("caret trim", range);
|
|
12803
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
12804
|
+
if (loose) {
|
|
12805
|
+
rangeList = rangeList.filter((comp) => {
|
|
12806
|
+
debug("loose invalid filter", comp, this.options);
|
|
12807
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
12808
|
+
});
|
|
12809
|
+
}
|
|
12810
|
+
debug("range list", rangeList);
|
|
12811
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
12812
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
12813
|
+
for (const comp of comparators) {
|
|
12814
|
+
if (isNullSet(comp)) {
|
|
12815
|
+
return [comp];
|
|
12816
|
+
}
|
|
12817
|
+
rangeMap.set(comp.value, comp);
|
|
12818
|
+
}
|
|
12819
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
12820
|
+
rangeMap.delete("");
|
|
12821
|
+
}
|
|
12822
|
+
const result = [...rangeMap.values()];
|
|
12823
|
+
cache.set(memoKey, result);
|
|
12824
|
+
return result;
|
|
12825
|
+
}
|
|
12826
|
+
intersects(range, options) {
|
|
12827
|
+
if (!(range instanceof _Range)) {
|
|
12828
|
+
throw new TypeError("a Range is required");
|
|
12829
|
+
}
|
|
12830
|
+
return this.set.some((thisComparators) => {
|
|
12831
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
12832
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
12833
|
+
return rangeComparators.every((rangeComparator) => {
|
|
12834
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
12835
|
+
});
|
|
12836
|
+
});
|
|
12837
|
+
});
|
|
12838
|
+
});
|
|
12839
|
+
}
|
|
12840
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
12841
|
+
test(version) {
|
|
12842
|
+
if (!version) {
|
|
12843
|
+
return false;
|
|
12844
|
+
}
|
|
12845
|
+
if (typeof version === "string") {
|
|
12846
|
+
try {
|
|
12847
|
+
version = new SemVer(version, this.options);
|
|
12848
|
+
} catch (er) {
|
|
12849
|
+
return false;
|
|
12850
|
+
}
|
|
12851
|
+
}
|
|
12852
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
12853
|
+
if (testSet(this.set[i], version, this.options)) {
|
|
12854
|
+
return true;
|
|
12855
|
+
}
|
|
12856
|
+
}
|
|
12857
|
+
return false;
|
|
12858
|
+
}
|
|
12859
|
+
};
|
|
12860
|
+
module.exports = Range;
|
|
12861
|
+
var LRU = require_lrucache();
|
|
12862
|
+
var cache = new LRU();
|
|
12863
|
+
var parseOptions = require_parse_options();
|
|
12864
|
+
var Comparator = require_comparator();
|
|
12865
|
+
var debug = require_debug();
|
|
12866
|
+
var SemVer = require_semver();
|
|
12867
|
+
var {
|
|
12868
|
+
safeRe: re,
|
|
12869
|
+
t,
|
|
12870
|
+
comparatorTrimReplace,
|
|
12871
|
+
tildeTrimReplace,
|
|
12872
|
+
caretTrimReplace
|
|
12873
|
+
} = require_re();
|
|
12874
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
12875
|
+
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
12876
|
+
var isAny = (c) => c.value === "";
|
|
12877
|
+
var isSatisfiable = (comparators, options) => {
|
|
12878
|
+
let result = true;
|
|
12879
|
+
const remainingComparators = comparators.slice();
|
|
12880
|
+
let testComparator = remainingComparators.pop();
|
|
12881
|
+
while (result && remainingComparators.length) {
|
|
12882
|
+
result = remainingComparators.every((otherComparator) => {
|
|
12883
|
+
return testComparator.intersects(otherComparator, options);
|
|
12884
|
+
});
|
|
12885
|
+
testComparator = remainingComparators.pop();
|
|
12886
|
+
}
|
|
12887
|
+
return result;
|
|
12888
|
+
};
|
|
12889
|
+
var parseComparator = (comp, options) => {
|
|
12890
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
12891
|
+
debug("comp", comp, options);
|
|
12892
|
+
comp = replaceCarets(comp, options);
|
|
12893
|
+
debug("caret", comp);
|
|
12894
|
+
comp = replaceTildes(comp, options);
|
|
12895
|
+
debug("tildes", comp);
|
|
12896
|
+
comp = replaceXRanges(comp, options);
|
|
12897
|
+
debug("xrange", comp);
|
|
12898
|
+
comp = replaceStars(comp, options);
|
|
12899
|
+
debug("stars", comp);
|
|
12900
|
+
return comp;
|
|
12901
|
+
};
|
|
12902
|
+
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
12903
|
+
var replaceTildes = (comp, options) => {
|
|
12904
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
12905
|
+
};
|
|
12906
|
+
var replaceTilde = (comp, options) => {
|
|
12907
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
12908
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
12909
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
12910
|
+
let ret;
|
|
12911
|
+
if (isX(M)) {
|
|
12912
|
+
ret = "";
|
|
12913
|
+
} else if (isX(m)) {
|
|
12914
|
+
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
12915
|
+
} else if (isX(p)) {
|
|
12916
|
+
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
12917
|
+
} else if (pr) {
|
|
12918
|
+
debug("replaceTilde pr", pr);
|
|
12919
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
12920
|
+
} else {
|
|
12921
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
12922
|
+
}
|
|
12923
|
+
debug("tilde return", ret);
|
|
12924
|
+
return ret;
|
|
12925
|
+
});
|
|
12926
|
+
};
|
|
12927
|
+
var replaceCarets = (comp, options) => {
|
|
12928
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
12929
|
+
};
|
|
12930
|
+
var replaceCaret = (comp, options) => {
|
|
12931
|
+
debug("caret", comp, options);
|
|
12932
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
12933
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
12934
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
12935
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
12936
|
+
let ret;
|
|
12937
|
+
if (isX(M)) {
|
|
12938
|
+
ret = "";
|
|
12939
|
+
} else if (isX(m)) {
|
|
12940
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
12941
|
+
} else if (isX(p)) {
|
|
12942
|
+
if (M === "0") {
|
|
12943
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
12944
|
+
} else {
|
|
12945
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
12946
|
+
}
|
|
12947
|
+
} else if (pr) {
|
|
12948
|
+
debug("replaceCaret pr", pr);
|
|
12949
|
+
if (M === "0") {
|
|
12950
|
+
if (m === "0") {
|
|
12951
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
12952
|
+
} else {
|
|
12953
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
12954
|
+
}
|
|
12955
|
+
} else {
|
|
12956
|
+
ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
12957
|
+
}
|
|
12958
|
+
} else {
|
|
12959
|
+
debug("no pr");
|
|
12960
|
+
if (M === "0") {
|
|
12961
|
+
if (m === "0") {
|
|
12962
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
12963
|
+
} else {
|
|
12964
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
12965
|
+
}
|
|
12966
|
+
} else {
|
|
12967
|
+
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
12968
|
+
}
|
|
12969
|
+
}
|
|
12970
|
+
debug("caret return", ret);
|
|
12971
|
+
return ret;
|
|
12972
|
+
});
|
|
12973
|
+
};
|
|
12974
|
+
var replaceXRanges = (comp, options) => {
|
|
12975
|
+
debug("replaceXRanges", comp, options);
|
|
12976
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
12977
|
+
};
|
|
12978
|
+
var replaceXRange = (comp, options) => {
|
|
12979
|
+
comp = comp.trim();
|
|
12980
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
12981
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
12982
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
12983
|
+
const xM = isX(M);
|
|
12984
|
+
const xm = xM || isX(m);
|
|
12985
|
+
const xp = xm || isX(p);
|
|
12986
|
+
const anyX = xp;
|
|
12987
|
+
if (gtlt === "=" && anyX) {
|
|
12988
|
+
gtlt = "";
|
|
12989
|
+
}
|
|
12990
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
12991
|
+
if (xM) {
|
|
12992
|
+
if (gtlt === ">" || gtlt === "<") {
|
|
12993
|
+
ret = "<0.0.0-0";
|
|
12994
|
+
} else {
|
|
12995
|
+
ret = "*";
|
|
12996
|
+
}
|
|
12997
|
+
} else if (gtlt && anyX) {
|
|
12998
|
+
if (xm) {
|
|
12999
|
+
m = 0;
|
|
13000
|
+
}
|
|
13001
|
+
p = 0;
|
|
13002
|
+
if (gtlt === ">") {
|
|
13003
|
+
gtlt = ">=";
|
|
13004
|
+
if (xm) {
|
|
13005
|
+
M = +M + 1;
|
|
13006
|
+
m = 0;
|
|
13007
|
+
p = 0;
|
|
13008
|
+
} else {
|
|
13009
|
+
m = +m + 1;
|
|
13010
|
+
p = 0;
|
|
13011
|
+
}
|
|
13012
|
+
} else if (gtlt === "<=") {
|
|
13013
|
+
gtlt = "<";
|
|
13014
|
+
if (xm) {
|
|
13015
|
+
M = +M + 1;
|
|
13016
|
+
} else {
|
|
13017
|
+
m = +m + 1;
|
|
13018
|
+
}
|
|
13019
|
+
}
|
|
13020
|
+
if (gtlt === "<") {
|
|
13021
|
+
pr = "-0";
|
|
13022
|
+
}
|
|
13023
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
13024
|
+
} else if (xm) {
|
|
13025
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
13026
|
+
} else if (xp) {
|
|
13027
|
+
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
13028
|
+
}
|
|
13029
|
+
debug("xRange return", ret);
|
|
13030
|
+
return ret;
|
|
13031
|
+
});
|
|
13032
|
+
};
|
|
13033
|
+
var replaceStars = (comp, options) => {
|
|
13034
|
+
debug("replaceStars", comp, options);
|
|
13035
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
13036
|
+
};
|
|
13037
|
+
var replaceGTE0 = (comp, options) => {
|
|
13038
|
+
debug("replaceGTE0", comp, options);
|
|
13039
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
13040
|
+
};
|
|
13041
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
13042
|
+
if (isX(fM)) {
|
|
13043
|
+
from = "";
|
|
13044
|
+
} else if (isX(fm)) {
|
|
13045
|
+
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
13046
|
+
} else if (isX(fp)) {
|
|
13047
|
+
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
13048
|
+
} else if (fpr) {
|
|
13049
|
+
from = `>=${from}`;
|
|
13050
|
+
} else {
|
|
13051
|
+
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
13052
|
+
}
|
|
13053
|
+
if (isX(tM)) {
|
|
13054
|
+
to = "";
|
|
13055
|
+
} else if (isX(tm)) {
|
|
13056
|
+
to = `<${+tM + 1}.0.0-0`;
|
|
13057
|
+
} else if (isX(tp)) {
|
|
13058
|
+
to = `<${tM}.${+tm + 1}.0-0`;
|
|
13059
|
+
} else if (tpr) {
|
|
13060
|
+
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
13061
|
+
} else if (incPr) {
|
|
13062
|
+
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
13063
|
+
} else {
|
|
13064
|
+
to = `<=${to}`;
|
|
13065
|
+
}
|
|
13066
|
+
return `${from} ${to}`.trim();
|
|
13067
|
+
};
|
|
13068
|
+
var testSet = (set, version, options) => {
|
|
13069
|
+
for (let i = 0; i < set.length; i++) {
|
|
13070
|
+
if (!set[i].test(version)) {
|
|
13071
|
+
return false;
|
|
13072
|
+
}
|
|
13073
|
+
}
|
|
13074
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
13075
|
+
for (let i = 0; i < set.length; i++) {
|
|
13076
|
+
debug(set[i].semver);
|
|
13077
|
+
if (set[i].semver === Comparator.ANY) {
|
|
13078
|
+
continue;
|
|
13079
|
+
}
|
|
13080
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
13081
|
+
const allowed = set[i].semver;
|
|
13082
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
|
|
13083
|
+
return true;
|
|
13084
|
+
}
|
|
13085
|
+
}
|
|
13086
|
+
}
|
|
13087
|
+
return false;
|
|
13088
|
+
}
|
|
13089
|
+
return true;
|
|
13090
|
+
};
|
|
13091
|
+
}
|
|
13092
|
+
});
|
|
13093
|
+
|
|
13094
|
+
// ../../node_modules/semver/classes/comparator.js
|
|
13095
|
+
var require_comparator = __commonJS({
|
|
13096
|
+
"../../node_modules/semver/classes/comparator.js"(exports, module) {
|
|
13097
|
+
"use strict";
|
|
13098
|
+
init_esm_shims();
|
|
13099
|
+
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
13100
|
+
var Comparator = class _Comparator {
|
|
13101
|
+
static get ANY() {
|
|
13102
|
+
return ANY;
|
|
13103
|
+
}
|
|
13104
|
+
constructor(comp, options) {
|
|
13105
|
+
options = parseOptions(options);
|
|
13106
|
+
if (comp instanceof _Comparator) {
|
|
13107
|
+
if (comp.loose === !!options.loose) {
|
|
13108
|
+
return comp;
|
|
13109
|
+
} else {
|
|
13110
|
+
comp = comp.value;
|
|
13111
|
+
}
|
|
13112
|
+
}
|
|
13113
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
13114
|
+
debug("comparator", comp, options);
|
|
13115
|
+
this.options = options;
|
|
13116
|
+
this.loose = !!options.loose;
|
|
13117
|
+
this.parse(comp);
|
|
13118
|
+
if (this.semver === ANY) {
|
|
13119
|
+
this.value = "";
|
|
13120
|
+
} else {
|
|
13121
|
+
this.value = this.operator + this.semver.version;
|
|
13122
|
+
}
|
|
13123
|
+
debug("comp", this);
|
|
13124
|
+
}
|
|
13125
|
+
parse(comp) {
|
|
13126
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
13127
|
+
const m = comp.match(r);
|
|
13128
|
+
if (!m) {
|
|
13129
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
13130
|
+
}
|
|
13131
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
13132
|
+
if (this.operator === "=") {
|
|
13133
|
+
this.operator = "";
|
|
13134
|
+
}
|
|
13135
|
+
if (!m[2]) {
|
|
13136
|
+
this.semver = ANY;
|
|
13137
|
+
} else {
|
|
13138
|
+
this.semver = new SemVer(m[2], this.options.loose);
|
|
13139
|
+
}
|
|
13140
|
+
}
|
|
13141
|
+
toString() {
|
|
13142
|
+
return this.value;
|
|
13143
|
+
}
|
|
13144
|
+
test(version) {
|
|
13145
|
+
debug("Comparator.test", version, this.options.loose);
|
|
13146
|
+
if (this.semver === ANY || version === ANY) {
|
|
13147
|
+
return true;
|
|
13148
|
+
}
|
|
13149
|
+
if (typeof version === "string") {
|
|
13150
|
+
try {
|
|
13151
|
+
version = new SemVer(version, this.options);
|
|
13152
|
+
} catch (er) {
|
|
13153
|
+
return false;
|
|
13154
|
+
}
|
|
13155
|
+
}
|
|
13156
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
13157
|
+
}
|
|
13158
|
+
intersects(comp, options) {
|
|
13159
|
+
if (!(comp instanceof _Comparator)) {
|
|
13160
|
+
throw new TypeError("a Comparator is required");
|
|
13161
|
+
}
|
|
13162
|
+
if (this.operator === "") {
|
|
13163
|
+
if (this.value === "") {
|
|
13164
|
+
return true;
|
|
13165
|
+
}
|
|
13166
|
+
return new Range(comp.value, options).test(this.value);
|
|
13167
|
+
} else if (comp.operator === "") {
|
|
13168
|
+
if (comp.value === "") {
|
|
13169
|
+
return true;
|
|
13170
|
+
}
|
|
13171
|
+
return new Range(this.value, options).test(comp.semver);
|
|
13172
|
+
}
|
|
13173
|
+
options = parseOptions(options);
|
|
13174
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
13175
|
+
return false;
|
|
13176
|
+
}
|
|
13177
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
13178
|
+
return false;
|
|
13179
|
+
}
|
|
13180
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
13181
|
+
return true;
|
|
13182
|
+
}
|
|
13183
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
13184
|
+
return true;
|
|
13185
|
+
}
|
|
13186
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
13187
|
+
return true;
|
|
13188
|
+
}
|
|
13189
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
13190
|
+
return true;
|
|
13191
|
+
}
|
|
13192
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
13193
|
+
return true;
|
|
13194
|
+
}
|
|
13195
|
+
return false;
|
|
13196
|
+
}
|
|
13197
|
+
};
|
|
13198
|
+
module.exports = Comparator;
|
|
13199
|
+
var parseOptions = require_parse_options();
|
|
13200
|
+
var { safeRe: re, t } = require_re();
|
|
13201
|
+
var cmp = require_cmp();
|
|
13202
|
+
var debug = require_debug();
|
|
13203
|
+
var SemVer = require_semver();
|
|
13204
|
+
var Range = require_range();
|
|
13205
|
+
}
|
|
13206
|
+
});
|
|
13207
|
+
|
|
13208
|
+
// ../../node_modules/semver/functions/satisfies.js
|
|
13209
|
+
var require_satisfies = __commonJS({
|
|
13210
|
+
"../../node_modules/semver/functions/satisfies.js"(exports, module) {
|
|
13211
|
+
"use strict";
|
|
13212
|
+
init_esm_shims();
|
|
13213
|
+
var Range = require_range();
|
|
13214
|
+
var satisfies = (version, range, options) => {
|
|
13215
|
+
try {
|
|
13216
|
+
range = new Range(range, options);
|
|
13217
|
+
} catch (er) {
|
|
13218
|
+
return false;
|
|
13219
|
+
}
|
|
13220
|
+
return range.test(version);
|
|
13221
|
+
};
|
|
13222
|
+
module.exports = satisfies;
|
|
13223
|
+
}
|
|
13224
|
+
});
|
|
13225
|
+
|
|
13226
|
+
// ../../node_modules/semver/ranges/to-comparators.js
|
|
13227
|
+
var require_to_comparators = __commonJS({
|
|
13228
|
+
"../../node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
|
13229
|
+
"use strict";
|
|
13230
|
+
init_esm_shims();
|
|
13231
|
+
var Range = require_range();
|
|
13232
|
+
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
13233
|
+
module.exports = toComparators;
|
|
13234
|
+
}
|
|
13235
|
+
});
|
|
13236
|
+
|
|
13237
|
+
// ../../node_modules/semver/ranges/max-satisfying.js
|
|
13238
|
+
var require_max_satisfying = __commonJS({
|
|
13239
|
+
"../../node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
|
13240
|
+
"use strict";
|
|
13241
|
+
init_esm_shims();
|
|
13242
|
+
var SemVer = require_semver();
|
|
13243
|
+
var Range = require_range();
|
|
13244
|
+
var maxSatisfying = (versions, range, options) => {
|
|
13245
|
+
let max = null;
|
|
13246
|
+
let maxSV = null;
|
|
13247
|
+
let rangeObj = null;
|
|
13248
|
+
try {
|
|
13249
|
+
rangeObj = new Range(range, options);
|
|
13250
|
+
} catch (er) {
|
|
13251
|
+
return null;
|
|
13252
|
+
}
|
|
13253
|
+
versions.forEach((v) => {
|
|
13254
|
+
if (rangeObj.test(v)) {
|
|
13255
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
13256
|
+
max = v;
|
|
13257
|
+
maxSV = new SemVer(max, options);
|
|
13258
|
+
}
|
|
13259
|
+
}
|
|
13260
|
+
});
|
|
13261
|
+
return max;
|
|
13262
|
+
};
|
|
13263
|
+
module.exports = maxSatisfying;
|
|
13264
|
+
}
|
|
13265
|
+
});
|
|
13266
|
+
|
|
13267
|
+
// ../../node_modules/semver/ranges/min-satisfying.js
|
|
13268
|
+
var require_min_satisfying = __commonJS({
|
|
13269
|
+
"../../node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
|
13270
|
+
"use strict";
|
|
13271
|
+
init_esm_shims();
|
|
13272
|
+
var SemVer = require_semver();
|
|
13273
|
+
var Range = require_range();
|
|
13274
|
+
var minSatisfying = (versions, range, options) => {
|
|
13275
|
+
let min = null;
|
|
13276
|
+
let minSV = null;
|
|
13277
|
+
let rangeObj = null;
|
|
13278
|
+
try {
|
|
13279
|
+
rangeObj = new Range(range, options);
|
|
13280
|
+
} catch (er) {
|
|
13281
|
+
return null;
|
|
13282
|
+
}
|
|
13283
|
+
versions.forEach((v) => {
|
|
13284
|
+
if (rangeObj.test(v)) {
|
|
13285
|
+
if (!min || minSV.compare(v) === 1) {
|
|
13286
|
+
min = v;
|
|
13287
|
+
minSV = new SemVer(min, options);
|
|
13288
|
+
}
|
|
13289
|
+
}
|
|
13290
|
+
});
|
|
13291
|
+
return min;
|
|
13292
|
+
};
|
|
13293
|
+
module.exports = minSatisfying;
|
|
13294
|
+
}
|
|
13295
|
+
});
|
|
13296
|
+
|
|
13297
|
+
// ../../node_modules/semver/ranges/min-version.js
|
|
13298
|
+
var require_min_version = __commonJS({
|
|
13299
|
+
"../../node_modules/semver/ranges/min-version.js"(exports, module) {
|
|
13300
|
+
"use strict";
|
|
13301
|
+
init_esm_shims();
|
|
13302
|
+
var SemVer = require_semver();
|
|
13303
|
+
var Range = require_range();
|
|
13304
|
+
var gt = require_gt();
|
|
13305
|
+
var minVersion = (range, loose) => {
|
|
13306
|
+
range = new Range(range, loose);
|
|
13307
|
+
let minver = new SemVer("0.0.0");
|
|
13308
|
+
if (range.test(minver)) {
|
|
13309
|
+
return minver;
|
|
13310
|
+
}
|
|
13311
|
+
minver = new SemVer("0.0.0-0");
|
|
13312
|
+
if (range.test(minver)) {
|
|
13313
|
+
return minver;
|
|
13314
|
+
}
|
|
13315
|
+
minver = null;
|
|
13316
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
13317
|
+
const comparators = range.set[i];
|
|
13318
|
+
let setMin = null;
|
|
13319
|
+
comparators.forEach((comparator) => {
|
|
13320
|
+
const compver = new SemVer(comparator.semver.version);
|
|
13321
|
+
switch (comparator.operator) {
|
|
13322
|
+
case ">":
|
|
13323
|
+
if (compver.prerelease.length === 0) {
|
|
13324
|
+
compver.patch++;
|
|
13325
|
+
} else {
|
|
13326
|
+
compver.prerelease.push(0);
|
|
13327
|
+
}
|
|
13328
|
+
compver.raw = compver.format();
|
|
13329
|
+
/* fallthrough */
|
|
13330
|
+
case "":
|
|
13331
|
+
case ">=":
|
|
13332
|
+
if (!setMin || gt(compver, setMin)) {
|
|
13333
|
+
setMin = compver;
|
|
13334
|
+
}
|
|
13335
|
+
break;
|
|
13336
|
+
case "<":
|
|
13337
|
+
case "<=":
|
|
13338
|
+
break;
|
|
13339
|
+
/* istanbul ignore next */
|
|
13340
|
+
default:
|
|
13341
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
13342
|
+
}
|
|
13343
|
+
});
|
|
13344
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
13345
|
+
minver = setMin;
|
|
13346
|
+
}
|
|
13347
|
+
}
|
|
13348
|
+
if (minver && range.test(minver)) {
|
|
13349
|
+
return minver;
|
|
13350
|
+
}
|
|
13351
|
+
return null;
|
|
13352
|
+
};
|
|
13353
|
+
module.exports = minVersion;
|
|
13354
|
+
}
|
|
13355
|
+
});
|
|
13356
|
+
|
|
13357
|
+
// ../../node_modules/semver/ranges/valid.js
|
|
13358
|
+
var require_valid2 = __commonJS({
|
|
13359
|
+
"../../node_modules/semver/ranges/valid.js"(exports, module) {
|
|
13360
|
+
"use strict";
|
|
13361
|
+
init_esm_shims();
|
|
13362
|
+
var Range = require_range();
|
|
13363
|
+
var validRange = (range, options) => {
|
|
13364
|
+
try {
|
|
13365
|
+
return new Range(range, options).range || "*";
|
|
13366
|
+
} catch (er) {
|
|
13367
|
+
return null;
|
|
13368
|
+
}
|
|
13369
|
+
};
|
|
13370
|
+
module.exports = validRange;
|
|
13371
|
+
}
|
|
13372
|
+
});
|
|
13373
|
+
|
|
13374
|
+
// ../../node_modules/semver/ranges/outside.js
|
|
13375
|
+
var require_outside = __commonJS({
|
|
13376
|
+
"../../node_modules/semver/ranges/outside.js"(exports, module) {
|
|
13377
|
+
"use strict";
|
|
13378
|
+
init_esm_shims();
|
|
13379
|
+
var SemVer = require_semver();
|
|
13380
|
+
var Comparator = require_comparator();
|
|
13381
|
+
var { ANY } = Comparator;
|
|
13382
|
+
var Range = require_range();
|
|
13383
|
+
var satisfies = require_satisfies();
|
|
13384
|
+
var gt = require_gt();
|
|
13385
|
+
var lt = require_lt();
|
|
13386
|
+
var lte = require_lte();
|
|
13387
|
+
var gte = require_gte();
|
|
13388
|
+
var outside = (version, range, hilo, options) => {
|
|
13389
|
+
version = new SemVer(version, options);
|
|
13390
|
+
range = new Range(range, options);
|
|
13391
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
13392
|
+
switch (hilo) {
|
|
13393
|
+
case ">":
|
|
13394
|
+
gtfn = gt;
|
|
13395
|
+
ltefn = lte;
|
|
13396
|
+
ltfn = lt;
|
|
13397
|
+
comp = ">";
|
|
13398
|
+
ecomp = ">=";
|
|
13399
|
+
break;
|
|
13400
|
+
case "<":
|
|
13401
|
+
gtfn = lt;
|
|
13402
|
+
ltefn = gte;
|
|
13403
|
+
ltfn = gt;
|
|
13404
|
+
comp = "<";
|
|
13405
|
+
ecomp = "<=";
|
|
13406
|
+
break;
|
|
13407
|
+
default:
|
|
13408
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
13409
|
+
}
|
|
13410
|
+
if (satisfies(version, range, options)) {
|
|
13411
|
+
return false;
|
|
13412
|
+
}
|
|
13413
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
13414
|
+
const comparators = range.set[i];
|
|
13415
|
+
let high = null;
|
|
13416
|
+
let low = null;
|
|
13417
|
+
comparators.forEach((comparator) => {
|
|
13418
|
+
if (comparator.semver === ANY) {
|
|
13419
|
+
comparator = new Comparator(">=0.0.0");
|
|
13420
|
+
}
|
|
13421
|
+
high = high || comparator;
|
|
13422
|
+
low = low || comparator;
|
|
13423
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
13424
|
+
high = comparator;
|
|
13425
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
13426
|
+
low = comparator;
|
|
13427
|
+
}
|
|
13428
|
+
});
|
|
13429
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
13430
|
+
return false;
|
|
13431
|
+
}
|
|
13432
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
13433
|
+
return false;
|
|
13434
|
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
13435
|
+
return false;
|
|
13436
|
+
}
|
|
13437
|
+
}
|
|
13438
|
+
return true;
|
|
13439
|
+
};
|
|
13440
|
+
module.exports = outside;
|
|
13441
|
+
}
|
|
13442
|
+
});
|
|
13443
|
+
|
|
13444
|
+
// ../../node_modules/semver/ranges/gtr.js
|
|
13445
|
+
var require_gtr = __commonJS({
|
|
13446
|
+
"../../node_modules/semver/ranges/gtr.js"(exports, module) {
|
|
13447
|
+
"use strict";
|
|
13448
|
+
init_esm_shims();
|
|
13449
|
+
var outside = require_outside();
|
|
13450
|
+
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
13451
|
+
module.exports = gtr;
|
|
13452
|
+
}
|
|
13453
|
+
});
|
|
13454
|
+
|
|
13455
|
+
// ../../node_modules/semver/ranges/ltr.js
|
|
13456
|
+
var require_ltr = __commonJS({
|
|
13457
|
+
"../../node_modules/semver/ranges/ltr.js"(exports, module) {
|
|
13458
|
+
"use strict";
|
|
13459
|
+
init_esm_shims();
|
|
13460
|
+
var outside = require_outside();
|
|
13461
|
+
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
13462
|
+
module.exports = ltr;
|
|
13463
|
+
}
|
|
13464
|
+
});
|
|
13465
|
+
|
|
13466
|
+
// ../../node_modules/semver/ranges/intersects.js
|
|
13467
|
+
var require_intersects = __commonJS({
|
|
13468
|
+
"../../node_modules/semver/ranges/intersects.js"(exports, module) {
|
|
13469
|
+
"use strict";
|
|
13470
|
+
init_esm_shims();
|
|
13471
|
+
var Range = require_range();
|
|
13472
|
+
var intersects = (r1, r2, options) => {
|
|
13473
|
+
r1 = new Range(r1, options);
|
|
13474
|
+
r2 = new Range(r2, options);
|
|
13475
|
+
return r1.intersects(r2, options);
|
|
13476
|
+
};
|
|
13477
|
+
module.exports = intersects;
|
|
13478
|
+
}
|
|
13479
|
+
});
|
|
13480
|
+
|
|
13481
|
+
// ../../node_modules/semver/ranges/simplify.js
|
|
13482
|
+
var require_simplify = __commonJS({
|
|
13483
|
+
"../../node_modules/semver/ranges/simplify.js"(exports, module) {
|
|
13484
|
+
"use strict";
|
|
13485
|
+
init_esm_shims();
|
|
13486
|
+
var satisfies = require_satisfies();
|
|
13487
|
+
var compare = require_compare();
|
|
13488
|
+
module.exports = (versions, range, options) => {
|
|
13489
|
+
const set = [];
|
|
13490
|
+
let first = null;
|
|
13491
|
+
let prev = null;
|
|
13492
|
+
const v = versions.sort((a, b) => compare(a, b, options));
|
|
13493
|
+
for (const version of v) {
|
|
13494
|
+
const included = satisfies(version, range, options);
|
|
13495
|
+
if (included) {
|
|
13496
|
+
prev = version;
|
|
13497
|
+
if (!first) {
|
|
13498
|
+
first = version;
|
|
13499
|
+
}
|
|
13500
|
+
} else {
|
|
13501
|
+
if (prev) {
|
|
13502
|
+
set.push([first, prev]);
|
|
13503
|
+
}
|
|
13504
|
+
prev = null;
|
|
13505
|
+
first = null;
|
|
13506
|
+
}
|
|
13507
|
+
}
|
|
13508
|
+
if (first) {
|
|
13509
|
+
set.push([first, null]);
|
|
13510
|
+
}
|
|
13511
|
+
const ranges = [];
|
|
13512
|
+
for (const [min, max] of set) {
|
|
13513
|
+
if (min === max) {
|
|
13514
|
+
ranges.push(min);
|
|
13515
|
+
} else if (!max && min === v[0]) {
|
|
13516
|
+
ranges.push("*");
|
|
13517
|
+
} else if (!max) {
|
|
13518
|
+
ranges.push(`>=${min}`);
|
|
13519
|
+
} else if (min === v[0]) {
|
|
13520
|
+
ranges.push(`<=${max}`);
|
|
13521
|
+
} else {
|
|
13522
|
+
ranges.push(`${min} - ${max}`);
|
|
13523
|
+
}
|
|
13524
|
+
}
|
|
13525
|
+
const simplified = ranges.join(" || ");
|
|
13526
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
13527
|
+
return simplified.length < original.length ? simplified : range;
|
|
13528
|
+
};
|
|
13529
|
+
}
|
|
13530
|
+
});
|
|
13531
|
+
|
|
13532
|
+
// ../../node_modules/semver/ranges/subset.js
|
|
13533
|
+
var require_subset = __commonJS({
|
|
13534
|
+
"../../node_modules/semver/ranges/subset.js"(exports, module) {
|
|
13535
|
+
"use strict";
|
|
13536
|
+
init_esm_shims();
|
|
13537
|
+
var Range = require_range();
|
|
13538
|
+
var Comparator = require_comparator();
|
|
13539
|
+
var { ANY } = Comparator;
|
|
13540
|
+
var satisfies = require_satisfies();
|
|
13541
|
+
var compare = require_compare();
|
|
13542
|
+
var subset = (sub, dom, options = {}) => {
|
|
13543
|
+
if (sub === dom) {
|
|
13544
|
+
return true;
|
|
13545
|
+
}
|
|
13546
|
+
sub = new Range(sub, options);
|
|
13547
|
+
dom = new Range(dom, options);
|
|
13548
|
+
let sawNonNull = false;
|
|
13549
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
13550
|
+
for (const simpleDom of dom.set) {
|
|
13551
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
13552
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
13553
|
+
if (isSub) {
|
|
13554
|
+
continue OUTER;
|
|
13555
|
+
}
|
|
13556
|
+
}
|
|
13557
|
+
if (sawNonNull) {
|
|
13558
|
+
return false;
|
|
13559
|
+
}
|
|
13560
|
+
}
|
|
13561
|
+
return true;
|
|
13562
|
+
};
|
|
13563
|
+
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
13564
|
+
var minimumVersion = [new Comparator(">=0.0.0")];
|
|
13565
|
+
var simpleSubset = (sub, dom, options) => {
|
|
13566
|
+
if (sub === dom) {
|
|
13567
|
+
return true;
|
|
13568
|
+
}
|
|
13569
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
13570
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
13571
|
+
return true;
|
|
13572
|
+
} else if (options.includePrerelease) {
|
|
13573
|
+
sub = minimumVersionWithPreRelease;
|
|
13574
|
+
} else {
|
|
13575
|
+
sub = minimumVersion;
|
|
13576
|
+
}
|
|
13577
|
+
}
|
|
13578
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
13579
|
+
if (options.includePrerelease) {
|
|
13580
|
+
return true;
|
|
13581
|
+
} else {
|
|
13582
|
+
dom = minimumVersion;
|
|
13583
|
+
}
|
|
13584
|
+
}
|
|
13585
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
13586
|
+
let gt, lt;
|
|
13587
|
+
for (const c of sub) {
|
|
13588
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
13589
|
+
gt = higherGT(gt, c, options);
|
|
13590
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
13591
|
+
lt = lowerLT(lt, c, options);
|
|
13592
|
+
} else {
|
|
13593
|
+
eqSet.add(c.semver);
|
|
13594
|
+
}
|
|
13595
|
+
}
|
|
13596
|
+
if (eqSet.size > 1) {
|
|
13597
|
+
return null;
|
|
13598
|
+
}
|
|
13599
|
+
let gtltComp;
|
|
13600
|
+
if (gt && lt) {
|
|
13601
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
13602
|
+
if (gtltComp > 0) {
|
|
13603
|
+
return null;
|
|
13604
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
13605
|
+
return null;
|
|
13606
|
+
}
|
|
13607
|
+
}
|
|
13608
|
+
for (const eq of eqSet) {
|
|
13609
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
13610
|
+
return null;
|
|
13611
|
+
}
|
|
13612
|
+
if (lt && !satisfies(eq, String(lt), options)) {
|
|
13613
|
+
return null;
|
|
13614
|
+
}
|
|
13615
|
+
for (const c of dom) {
|
|
13616
|
+
if (!satisfies(eq, String(c), options)) {
|
|
13617
|
+
return false;
|
|
13618
|
+
}
|
|
13619
|
+
}
|
|
13620
|
+
return true;
|
|
13621
|
+
}
|
|
13622
|
+
let higher, lower;
|
|
13623
|
+
let hasDomLT, hasDomGT;
|
|
13624
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
13625
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
13626
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
13627
|
+
needDomLTPre = false;
|
|
13628
|
+
}
|
|
13629
|
+
for (const c of dom) {
|
|
13630
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
13631
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
13632
|
+
if (gt) {
|
|
13633
|
+
if (needDomGTPre) {
|
|
13634
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
13635
|
+
needDomGTPre = false;
|
|
13636
|
+
}
|
|
13637
|
+
}
|
|
13638
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
13639
|
+
higher = higherGT(gt, c, options);
|
|
13640
|
+
if (higher === c && higher !== gt) {
|
|
13641
|
+
return false;
|
|
13642
|
+
}
|
|
13643
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
13644
|
+
return false;
|
|
13645
|
+
}
|
|
13646
|
+
}
|
|
13647
|
+
if (lt) {
|
|
13648
|
+
if (needDomLTPre) {
|
|
13649
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
13650
|
+
needDomLTPre = false;
|
|
13651
|
+
}
|
|
13652
|
+
}
|
|
13653
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
13654
|
+
lower = lowerLT(lt, c, options);
|
|
13655
|
+
if (lower === c && lower !== lt) {
|
|
13656
|
+
return false;
|
|
13657
|
+
}
|
|
13658
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
|
|
13659
|
+
return false;
|
|
13660
|
+
}
|
|
13661
|
+
}
|
|
13662
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
13663
|
+
return false;
|
|
13664
|
+
}
|
|
13665
|
+
}
|
|
13666
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
13667
|
+
return false;
|
|
13668
|
+
}
|
|
13669
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
13670
|
+
return false;
|
|
13671
|
+
}
|
|
13672
|
+
if (needDomGTPre || needDomLTPre) {
|
|
13673
|
+
return false;
|
|
13674
|
+
}
|
|
13675
|
+
return true;
|
|
13676
|
+
};
|
|
13677
|
+
var higherGT = (a, b, options) => {
|
|
13678
|
+
if (!a) {
|
|
13679
|
+
return b;
|
|
13680
|
+
}
|
|
13681
|
+
const comp = compare(a.semver, b.semver, options);
|
|
13682
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
13683
|
+
};
|
|
13684
|
+
var lowerLT = (a, b, options) => {
|
|
13685
|
+
if (!a) {
|
|
13686
|
+
return b;
|
|
13687
|
+
}
|
|
13688
|
+
const comp = compare(a.semver, b.semver, options);
|
|
13689
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
13690
|
+
};
|
|
13691
|
+
module.exports = subset;
|
|
13692
|
+
}
|
|
13693
|
+
});
|
|
13694
|
+
|
|
13695
|
+
// ../../node_modules/semver/index.js
|
|
13696
|
+
var require_semver2 = __commonJS({
|
|
13697
|
+
"../../node_modules/semver/index.js"(exports, module) {
|
|
13698
|
+
"use strict";
|
|
13699
|
+
init_esm_shims();
|
|
13700
|
+
var internalRe = require_re();
|
|
13701
|
+
var constants = require_constants();
|
|
13702
|
+
var SemVer = require_semver();
|
|
13703
|
+
var identifiers = require_identifiers();
|
|
13704
|
+
var parse3 = require_parse();
|
|
13705
|
+
var valid = require_valid();
|
|
13706
|
+
var clean = require_clean();
|
|
13707
|
+
var inc = require_inc();
|
|
13708
|
+
var diff = require_diff();
|
|
13709
|
+
var major = require_major();
|
|
13710
|
+
var minor = require_minor();
|
|
13711
|
+
var patch = require_patch();
|
|
13712
|
+
var prerelease = require_prerelease();
|
|
13713
|
+
var compare = require_compare();
|
|
13714
|
+
var rcompare = require_rcompare();
|
|
13715
|
+
var compareLoose = require_compare_loose();
|
|
13716
|
+
var compareBuild = require_compare_build();
|
|
13717
|
+
var sort = require_sort();
|
|
13718
|
+
var rsort = require_rsort();
|
|
13719
|
+
var gt = require_gt();
|
|
13720
|
+
var lt = require_lt();
|
|
13721
|
+
var eq = require_eq();
|
|
13722
|
+
var neq = require_neq();
|
|
13723
|
+
var gte = require_gte();
|
|
13724
|
+
var lte = require_lte();
|
|
13725
|
+
var cmp = require_cmp();
|
|
13726
|
+
var coerce = require_coerce();
|
|
13727
|
+
var Comparator = require_comparator();
|
|
13728
|
+
var Range = require_range();
|
|
13729
|
+
var satisfies = require_satisfies();
|
|
13730
|
+
var toComparators = require_to_comparators();
|
|
13731
|
+
var maxSatisfying = require_max_satisfying();
|
|
13732
|
+
var minSatisfying = require_min_satisfying();
|
|
13733
|
+
var minVersion = require_min_version();
|
|
13734
|
+
var validRange = require_valid2();
|
|
13735
|
+
var outside = require_outside();
|
|
13736
|
+
var gtr = require_gtr();
|
|
13737
|
+
var ltr = require_ltr();
|
|
13738
|
+
var intersects = require_intersects();
|
|
13739
|
+
var simplifyRange = require_simplify();
|
|
13740
|
+
var subset = require_subset();
|
|
13741
|
+
module.exports = {
|
|
13742
|
+
parse: parse3,
|
|
13743
|
+
valid,
|
|
13744
|
+
clean,
|
|
13745
|
+
inc,
|
|
13746
|
+
diff,
|
|
13747
|
+
major,
|
|
13748
|
+
minor,
|
|
13749
|
+
patch,
|
|
13750
|
+
prerelease,
|
|
13751
|
+
compare,
|
|
13752
|
+
rcompare,
|
|
13753
|
+
compareLoose,
|
|
13754
|
+
compareBuild,
|
|
13755
|
+
sort,
|
|
13756
|
+
rsort,
|
|
13757
|
+
gt,
|
|
13758
|
+
lt,
|
|
13759
|
+
eq,
|
|
13760
|
+
neq,
|
|
13761
|
+
gte,
|
|
13762
|
+
lte,
|
|
13763
|
+
cmp,
|
|
13764
|
+
coerce,
|
|
13765
|
+
Comparator,
|
|
13766
|
+
Range,
|
|
13767
|
+
satisfies,
|
|
13768
|
+
toComparators,
|
|
13769
|
+
maxSatisfying,
|
|
13770
|
+
minSatisfying,
|
|
13771
|
+
minVersion,
|
|
13772
|
+
validRange,
|
|
13773
|
+
outside,
|
|
13774
|
+
gtr,
|
|
13775
|
+
ltr,
|
|
13776
|
+
intersects,
|
|
13777
|
+
simplifyRange,
|
|
13778
|
+
subset,
|
|
13779
|
+
SemVer,
|
|
13780
|
+
re: internalRe.re,
|
|
13781
|
+
src: internalRe.src,
|
|
13782
|
+
tokens: internalRe.t,
|
|
13783
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
13784
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
13785
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
13786
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
13787
|
+
};
|
|
13788
|
+
}
|
|
13789
|
+
});
|
|
13790
|
+
|
|
11816
13791
|
// src/cli/index.ts
|
|
11817
13792
|
init_esm_shims();
|
|
11818
13793
|
|
|
@@ -13256,9 +15231,11 @@ import path10 from "path";
|
|
|
13256
15231
|
|
|
13257
15232
|
// src/cli/registry.ts
|
|
13258
15233
|
init_esm_shims();
|
|
13259
|
-
var DEFAULT_REGISTRY_URL = "https://
|
|
15234
|
+
var DEFAULT_REGISTRY_URL = "https://fasla.smicolon.com/r";
|
|
15235
|
+
var LEGACY_REGISTRY_URL = "https://ui.smicolon.com/r";
|
|
13260
15236
|
var REGISTRY_URL = (process.env.FASLA_UI_REGISTRY_URL || DEFAULT_REGISTRY_URL).replace(/\/+$/, "");
|
|
13261
15237
|
var NAMESPACE = "@fasla";
|
|
15238
|
+
var THEME_ITEMS = ["theme-base", "theme", "theme-inverse", "font-cairo", "font-geist"];
|
|
13262
15239
|
function namespaceUrl(base = REGISTRY_URL) {
|
|
13263
15240
|
return `${base}/{name}.json`;
|
|
13264
15241
|
}
|
|
@@ -13294,11 +15271,15 @@ init_esm_shims();
|
|
|
13294
15271
|
import path2 from "path";
|
|
13295
15272
|
function registryItemName(dep, known, bases) {
|
|
13296
15273
|
if (known.has(dep)) return dep;
|
|
15274
|
+
const name = ownItemName(dep, bases);
|
|
15275
|
+
return name !== void 0 && known.has(name) ? name : void 0;
|
|
15276
|
+
}
|
|
15277
|
+
function ownItemName(dep, bases) {
|
|
13297
15278
|
for (const base of bases) {
|
|
13298
15279
|
const prefix = `${base.replace(/\/+$/, "")}/`;
|
|
13299
15280
|
if (!dep.startsWith(prefix) || !dep.endsWith(".json")) continue;
|
|
13300
15281
|
const name = dep.slice(prefix.length, -".json".length);
|
|
13301
|
-
if (
|
|
15282
|
+
if (/^[a-z0-9-]+$/.test(name)) return name;
|
|
13302
15283
|
}
|
|
13303
15284
|
return void 0;
|
|
13304
15285
|
}
|
|
@@ -13307,14 +15288,19 @@ async function resolveWithDependencies(requested, nameOf, fetchItem) {
|
|
|
13307
15288
|
const done = /* @__PURE__ */ new Set();
|
|
13308
15289
|
const visiting = /* @__PURE__ */ new Set();
|
|
13309
15290
|
const skipped = /* @__PURE__ */ new Set();
|
|
15291
|
+
const depsOf = /* @__PURE__ */ new Map();
|
|
13310
15292
|
async function visit2(name) {
|
|
13311
15293
|
if (done.has(name) || visiting.has(name)) return;
|
|
13312
15294
|
visiting.add(name);
|
|
13313
15295
|
const item = await fetchItem(name);
|
|
15296
|
+
const deps = [];
|
|
15297
|
+
depsOf.set(name, deps);
|
|
13314
15298
|
for (const dep of item.registryDependencies ?? []) {
|
|
13315
15299
|
const depName = nameOf(dep);
|
|
13316
|
-
if (depName)
|
|
13317
|
-
|
|
15300
|
+
if (depName) {
|
|
15301
|
+
deps.push(depName);
|
|
15302
|
+
await visit2(depName);
|
|
15303
|
+
} else skipped.add(dep);
|
|
13318
15304
|
}
|
|
13319
15305
|
visiting.delete(name);
|
|
13320
15306
|
done.add(name);
|
|
@@ -13322,15 +15308,41 @@ async function resolveWithDependencies(requested, nameOf, fetchItem) {
|
|
|
13322
15308
|
}
|
|
13323
15309
|
for (const name of requested) await visit2(name);
|
|
13324
15310
|
const asked = new Set(requested);
|
|
13325
|
-
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
15311
|
+
const added = items.map((i) => i.name).filter((n) => !asked.has(n));
|
|
15312
|
+
const neededBy = Object.fromEntries(added.map((n) => [n, []]));
|
|
15313
|
+
for (const root of asked) {
|
|
15314
|
+
const seen = /* @__PURE__ */ new Set([root]);
|
|
15315
|
+
const stack = [...depsOf.get(root) ?? []];
|
|
15316
|
+
while (stack.length > 0) {
|
|
15317
|
+
const name = stack.pop();
|
|
15318
|
+
if (seen.has(name)) continue;
|
|
15319
|
+
seen.add(name);
|
|
15320
|
+
neededBy[name]?.push(root);
|
|
15321
|
+
stack.push(...depsOf.get(name) ?? []);
|
|
15322
|
+
}
|
|
15323
|
+
}
|
|
15324
|
+
return { items, added, neededBy, skipped: [...skipped] };
|
|
15325
|
+
}
|
|
15326
|
+
function describeAdded(added, neededBy) {
|
|
15327
|
+
const groups = /* @__PURE__ */ new Map();
|
|
15328
|
+
for (const dep of added) {
|
|
15329
|
+
const by = neededBy[dep] ?? [];
|
|
15330
|
+
const key = by.join(",");
|
|
15331
|
+
const group = groups.get(key) ?? { deps: [], by };
|
|
15332
|
+
group.deps.push(dep);
|
|
15333
|
+
groups.set(key, group);
|
|
15334
|
+
}
|
|
15335
|
+
const clauses = [...groups.values()].map(
|
|
15336
|
+
({ deps, by }) => `${deps.join(", ")}, which ${andList(by)} ${by.length === 1 ? "needs" : "need"}`
|
|
15337
|
+
);
|
|
15338
|
+
return `Also adding ${clauses.join("; ")}`;
|
|
15339
|
+
}
|
|
15340
|
+
function andList(names) {
|
|
15341
|
+
return names.length <= 1 ? names.join("") : `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`;
|
|
13330
15342
|
}
|
|
13331
15343
|
function rewriteComponentImports(content, fromDir, targetDirOf) {
|
|
13332
15344
|
return content.replace(
|
|
13333
|
-
/from (["'])
|
|
15345
|
+
/from (["'])(?:\.\.\/)+(?:(?:ui|blocks|effects|hooks)\/)?([a-z0-9-]+)\/([a-z0-9-]+)\1/g,
|
|
13334
15346
|
(match, quote, folder, file) => {
|
|
13335
15347
|
const toDir = folder === file ? targetDirOf(file) : void 0;
|
|
13336
15348
|
if (!toDir) return match;
|
|
@@ -14434,6 +16446,7 @@ function normalise(p) {
|
|
|
14434
16446
|
// src/cli/pm.ts
|
|
14435
16447
|
init_esm_shims();
|
|
14436
16448
|
var import_fs_extra2 = __toESM(require_lib2(), 1);
|
|
16449
|
+
var import_semver = __toESM(require_semver2(), 1);
|
|
14437
16450
|
import { spawn } from "child_process";
|
|
14438
16451
|
import path4 from "path";
|
|
14439
16452
|
var LOCKFILES = [
|
|
@@ -14460,6 +16473,15 @@ function installArgs(pm, packages, { dev = false } = {}) {
|
|
|
14460
16473
|
function installCommand(pm, packages, options = {}) {
|
|
14461
16474
|
return [pm, ...installArgs(pm, packages, options)].join(" ");
|
|
14462
16475
|
}
|
|
16476
|
+
var specName = (spec) => spec.replace(/(?<=.)@.*$/, "");
|
|
16477
|
+
var specRange = (spec) => spec.length > specName(spec).length ? spec.slice(specName(spec).length + 1) : void 0;
|
|
16478
|
+
async function installedVersion(cwd, name) {
|
|
16479
|
+
for (let dir = path4.resolve(cwd); ; dir = path4.dirname(dir)) {
|
|
16480
|
+
const pkg = await import_fs_extra2.default.readJson(path4.join(dir, "node_modules", name, "package.json")).catch(() => void 0);
|
|
16481
|
+
if (typeof pkg?.version === "string") return pkg.version;
|
|
16482
|
+
if (path4.dirname(dir) === dir) return void 0;
|
|
16483
|
+
}
|
|
16484
|
+
}
|
|
14463
16485
|
async function missingPackages(cwd, packages) {
|
|
14464
16486
|
let pkg = {};
|
|
14465
16487
|
try {
|
|
@@ -14468,7 +16490,24 @@ async function missingPackages(cwd, packages) {
|
|
|
14468
16490
|
return packages;
|
|
14469
16491
|
}
|
|
14470
16492
|
const listed = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
14471
|
-
|
|
16493
|
+
const missing = [];
|
|
16494
|
+
for (const spec of packages) {
|
|
16495
|
+
const name = specName(spec);
|
|
16496
|
+
const range = listed[name];
|
|
16497
|
+
const wanted = specRange(spec);
|
|
16498
|
+
if (range === void 0) missing.push(spec);
|
|
16499
|
+
else if (wanted !== void 0 && !await compatible(cwd, name, range, wanted)) missing.push(spec);
|
|
16500
|
+
}
|
|
16501
|
+
return missing;
|
|
16502
|
+
}
|
|
16503
|
+
async function compatible(cwd, name, listed, wanted) {
|
|
16504
|
+
try {
|
|
16505
|
+
if (!import_semver.default.subset(listed, wanted)) return false;
|
|
16506
|
+
} catch {
|
|
16507
|
+
return false;
|
|
16508
|
+
}
|
|
16509
|
+
const installed = await installedVersion(cwd, name);
|
|
16510
|
+
return installed === void 0 || import_semver.default.satisfies(installed, wanted);
|
|
14472
16511
|
}
|
|
14473
16512
|
var spawnRunner = (command, args, cwd, env2 = process.env) => new Promise((resolve) => {
|
|
14474
16513
|
let output = "";
|
|
@@ -14488,6 +16527,96 @@ function install(pm, packages, cwd, run = spawnRunner) {
|
|
|
14488
16527
|
return run(pm, installArgs(pm, packages), cwd);
|
|
14489
16528
|
}
|
|
14490
16529
|
|
|
16530
|
+
// src/cli/theme.ts
|
|
16531
|
+
init_esm_shims();
|
|
16532
|
+
var import_fs_extra3 = __toESM(require_lib2(), 1);
|
|
16533
|
+
import path5 from "path";
|
|
16534
|
+
function themeItems(choice, { nextMajor } = {}) {
|
|
16535
|
+
if (choice === "brand") return ["theme-base"];
|
|
16536
|
+
return nextMajor !== void 0 && nextMajor < 15 ? ["theme"] : ["theme", "font-geist"];
|
|
16537
|
+
}
|
|
16538
|
+
var THEME_CHOICES = [
|
|
16539
|
+
{ value: "fasla", title: "Starting from scratch: use Fasla's colours" },
|
|
16540
|
+
{ value: "brand", title: "I have a brand: keep my colours" }
|
|
16541
|
+
];
|
|
16542
|
+
async function detectProjectStyle(cwd, aliasRoot) {
|
|
16543
|
+
const pkg = await import_fs_extra3.default.readJson(path5.join(cwd, "package.json")).catch(() => ({}));
|
|
16544
|
+
const deps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
16545
|
+
const tailwindMajor = /^[\^~>=\s]*3\./.test(deps.tailwindcss ?? "") ? 3 : 4;
|
|
16546
|
+
const under = (p) => aliasRoot ? `${aliasRoot}/${p}` : p;
|
|
16547
|
+
const candidates = [
|
|
16548
|
+
.../* @__PURE__ */ new Set([
|
|
16549
|
+
under("app/globals.css"),
|
|
16550
|
+
"app/globals.css",
|
|
16551
|
+
"src/app/globals.css",
|
|
16552
|
+
"src/index.css",
|
|
16553
|
+
"src/styles/globals.css",
|
|
16554
|
+
"styles/globals.css",
|
|
16555
|
+
"src/globals.css",
|
|
16556
|
+
"src/App.css"
|
|
16557
|
+
])
|
|
16558
|
+
];
|
|
16559
|
+
let css;
|
|
16560
|
+
for (const file of candidates) {
|
|
16561
|
+
const text = await import_fs_extra3.default.readFile(path5.join(cwd, file), "utf8").catch(() => void 0);
|
|
16562
|
+
if (text !== void 0 && /@import\s+["']tailwindcss["']|@tailwind\s+base/.test(text)) {
|
|
16563
|
+
css = file;
|
|
16564
|
+
break;
|
|
16565
|
+
}
|
|
16566
|
+
if (text !== void 0 && css === void 0) css = file;
|
|
16567
|
+
}
|
|
16568
|
+
let config = "";
|
|
16569
|
+
if (tailwindMajor === 3) {
|
|
16570
|
+
for (const name of ["tailwind.config.ts", "tailwind.config.js", "tailwind.config.mjs", "tailwind.config.cjs"]) {
|
|
16571
|
+
if (await import_fs_extra3.default.pathExists(path5.join(cwd, name))) {
|
|
16572
|
+
config = name;
|
|
16573
|
+
break;
|
|
16574
|
+
}
|
|
16575
|
+
}
|
|
16576
|
+
config ||= "tailwind.config.ts";
|
|
16577
|
+
}
|
|
16578
|
+
const nextVersion = /(\d+)\./.exec(deps.next ?? "");
|
|
16579
|
+
return {
|
|
16580
|
+
tailwindMajor,
|
|
16581
|
+
css: css ?? under("app/globals.css"),
|
|
16582
|
+
config,
|
|
16583
|
+
rsc: "next" in deps,
|
|
16584
|
+
nextMajor: nextVersion ? Number(nextVersion[1]) : void 0
|
|
16585
|
+
};
|
|
16586
|
+
}
|
|
16587
|
+
function hasColourTokens(css) {
|
|
16588
|
+
return /--(background|foreground|primary|secondary|muted|accent|destructive|border|input|ring)\s*:/.test(css);
|
|
16589
|
+
}
|
|
16590
|
+
function themeWithoutAsking({
|
|
16591
|
+
flag,
|
|
16592
|
+
yes,
|
|
16593
|
+
hasColours
|
|
16594
|
+
}) {
|
|
16595
|
+
if (flag === "fasla" || flag === "brand") return flag;
|
|
16596
|
+
if (yes) return hasColours ? "brand" : "fasla";
|
|
16597
|
+
return void 0;
|
|
16598
|
+
}
|
|
16599
|
+
function themeCommand(choice, project = {}) {
|
|
16600
|
+
return `npx shadcn@latest add ${themeItems(choice, project).map((name) => `@fasla/${name}`).join(" ")}`;
|
|
16601
|
+
}
|
|
16602
|
+
function childEnv(env2 = process.env) {
|
|
16603
|
+
const clean = { ...env2 };
|
|
16604
|
+
for (const key of Object.keys(clean)) {
|
|
16605
|
+
if (/^npm_config_(package|call)$/i.test(key)) delete clean[key];
|
|
16606
|
+
}
|
|
16607
|
+
return clean;
|
|
16608
|
+
}
|
|
16609
|
+
function applyTheme(cwd, choice, project = {}, run = spawnRunner) {
|
|
16610
|
+
const items = themeItems(choice, project).map((name) => `@fasla/${name}`);
|
|
16611
|
+
return run("npx", ["-y", "shadcn@latest", "add", ...items, "--yes"], cwd, childEnv());
|
|
16612
|
+
}
|
|
16613
|
+
function themeItemsCommand(urls) {
|
|
16614
|
+
return `npx shadcn@latest add ${urls.join(" ")}`;
|
|
16615
|
+
}
|
|
16616
|
+
function applyThemeItems(cwd, urls, run = spawnRunner) {
|
|
16617
|
+
return run("npx", ["-y", "shadcn@latest", "add", ...urls, "--yes"], cwd, childEnv());
|
|
16618
|
+
}
|
|
16619
|
+
|
|
14491
16620
|
// src/cli/commands/init.ts
|
|
14492
16621
|
init_esm_shims();
|
|
14493
16622
|
var import_prompts2 = __toESM(require_prompts3(), 1);
|
|
@@ -14497,14 +16626,14 @@ import path9 from "path";
|
|
|
14497
16626
|
// src/cli/commands/shared.ts
|
|
14498
16627
|
init_esm_shims();
|
|
14499
16628
|
var import_prompts = __toESM(require_prompts3(), 1);
|
|
14500
|
-
var
|
|
14501
|
-
import
|
|
16629
|
+
var import_fs_extra6 = __toESM(require_lib2(), 1);
|
|
16630
|
+
import path8 from "path";
|
|
14502
16631
|
|
|
14503
16632
|
// src/cli/legacy.ts
|
|
14504
16633
|
init_esm_shims();
|
|
14505
|
-
var
|
|
16634
|
+
var import_fs_extra4 = __toESM(require_lib2(), 1);
|
|
14506
16635
|
import { rename } from "fs/promises";
|
|
14507
|
-
import
|
|
16636
|
+
import path6 from "path";
|
|
14508
16637
|
var LEGACY_REGISTRY_KEY = "smicolon";
|
|
14509
16638
|
var REPAIR_FILE = ".fasla-repair.json";
|
|
14510
16639
|
var LOCK_FILE = ".fasla-repair.lock";
|
|
@@ -14517,7 +16646,7 @@ async function isLegacyConfig(cwd, config) {
|
|
|
14517
16646
|
if (registries && typeof registries === "object" && LEGACY_REGISTRY_KEY in registries) return true;
|
|
14518
16647
|
const { components, utils } = config.aliases ?? {};
|
|
14519
16648
|
const throughSrc = [components, utils].some((alias) => typeof alias === "string" && alias.startsWith("@/src/"));
|
|
14520
|
-
return throughSrc && await
|
|
16649
|
+
return throughSrc && await import_fs_extra4.default.pathExists(path6.join(cwd, "src", "src"));
|
|
14521
16650
|
}
|
|
14522
16651
|
function withoutSrc(alias) {
|
|
14523
16652
|
return alias.startsWith("@/src/") ? `@/${alias.slice("@/src/".length)}` : alias;
|
|
@@ -14552,7 +16681,7 @@ async function repairedConfig(cwd, config, root) {
|
|
|
14552
16681
|
registries[NAMESPACE] = namespaceUrl();
|
|
14553
16682
|
const tailwind = { ...config.tailwind ?? {} };
|
|
14554
16683
|
const usualCss = root ? `${root}/app/globals.css` : "app/globals.css";
|
|
14555
|
-
if (typeof tailwind.css === "string" && !await
|
|
16684
|
+
if (typeof tailwind.css === "string" && !await import_fs_extra4.default.pathExists(path6.join(cwd, tailwind.css)) && await import_fs_extra4.default.pathExists(path6.join(cwd, usualCss))) {
|
|
14556
16685
|
tailwind.css = usualCss;
|
|
14557
16686
|
}
|
|
14558
16687
|
return {
|
|
@@ -14596,14 +16725,14 @@ async function planLegacyRepair(cwd, config, root) {
|
|
|
14596
16725
|
moves.push({ from, to, action: "duplicate" });
|
|
14597
16726
|
} else {
|
|
14598
16727
|
let backup = `${from}.bak`;
|
|
14599
|
-
for (let n = 2; taken.has(backup) || await lexists2(
|
|
16728
|
+
for (let n = 2; taken.has(backup) || await lexists2(path6.join(cwd, backup)); n++) backup = `${from}.bak${n}`;
|
|
14600
16729
|
taken.add(backup);
|
|
14601
16730
|
moves.push({ from, to, action: "conflict", backup });
|
|
14602
16731
|
}
|
|
14603
16732
|
};
|
|
14604
16733
|
for (const dir of sourceDirs) {
|
|
14605
16734
|
for (const type of TYPE_DIRS) {
|
|
14606
|
-
for (const name of await plainFiles(
|
|
16735
|
+
for (const name of await plainFiles(path6.join(cwd, dir, type))) {
|
|
14607
16736
|
const bare = name.replace(/\.[^.]+$/, "");
|
|
14608
16737
|
const oldSpec = `${oldComponents}/${type}/${bare}`;
|
|
14609
16738
|
const newSpec = `${newComponents}/${type}/${bare}`;
|
|
@@ -14613,7 +16742,7 @@ async function planLegacyRepair(cwd, config, root) {
|
|
|
14613
16742
|
}
|
|
14614
16743
|
for (const dir of sourceDirs) {
|
|
14615
16744
|
for (const type of TYPE_DIRS) {
|
|
14616
|
-
for (const name of await plainFiles(
|
|
16745
|
+
for (const name of await plainFiles(path6.join(cwd, dir, type))) {
|
|
14617
16746
|
await consider(`${dir}/${type}/${name}`, `${newDir}/${type}/${name}`);
|
|
14618
16747
|
}
|
|
14619
16748
|
}
|
|
@@ -14626,8 +16755,8 @@ async function planLegacyRepair(cwd, config, root) {
|
|
|
14626
16755
|
const needed = /* @__PURE__ */ new Set();
|
|
14627
16756
|
for (const move of moves) {
|
|
14628
16757
|
const to = move.action === "conflict" ? move.backup : move.to;
|
|
14629
|
-
for (let dir =
|
|
14630
|
-
if (!await lexists2(
|
|
16758
|
+
for (let dir = path6.posix.dirname(to); dir !== "." && dir !== ""; dir = path6.posix.dirname(dir)) {
|
|
16759
|
+
if (!await lexists2(path6.join(cwd, dir))) needed.add(dir);
|
|
14631
16760
|
}
|
|
14632
16761
|
}
|
|
14633
16762
|
for (const dir of [...needed].sort((a, b) => a.split("/").length - b.split("/").length || a.localeCompare(b))) {
|
|
@@ -14650,7 +16779,7 @@ async function planLegacyRepair(cwd, config, root) {
|
|
|
14650
16779
|
}
|
|
14651
16780
|
const dirs = /* @__PURE__ */ new Set();
|
|
14652
16781
|
for (const move of moves) {
|
|
14653
|
-
for (let dir =
|
|
16782
|
+
for (let dir = path6.posix.dirname(move.from); dir !== "." && dir !== ""; dir = path6.posix.dirname(dir)) dirs.add(dir);
|
|
14654
16783
|
}
|
|
14655
16784
|
for (const dir of [...dirs].sort((a, b) => b.split("/").length - a.split("/").length || a.localeCompare(b))) {
|
|
14656
16785
|
steps.push({ op: "rmdir", dir });
|
|
@@ -14679,11 +16808,11 @@ async function beginLegacyRepair(cwd, plan) {
|
|
|
14679
16808
|
return journal;
|
|
14680
16809
|
}
|
|
14681
16810
|
async function readJournal(cwd) {
|
|
14682
|
-
const file =
|
|
16811
|
+
const file = path6.join(cwd, REPAIR_FILE);
|
|
14683
16812
|
if (!await lexists2(file)) return void 0;
|
|
14684
16813
|
let journal;
|
|
14685
16814
|
try {
|
|
14686
|
-
journal = JSON.parse(await
|
|
16815
|
+
journal = JSON.parse(await import_fs_extra4.default.readFile(await resolveWritableFile(cwd, REPAIR_FILE), "utf8"));
|
|
14687
16816
|
} catch {
|
|
14688
16817
|
throw new RepairJournalError(`${REPAIR_FILE} can't be read. Delete it and run the command again.`);
|
|
14689
16818
|
}
|
|
@@ -14745,7 +16874,7 @@ async function validateJournal(cwd, journal, root) {
|
|
|
14745
16874
|
};
|
|
14746
16875
|
const ancestors = (file) => {
|
|
14747
16876
|
const out = [];
|
|
14748
|
-
for (let dir =
|
|
16877
|
+
for (let dir = path6.posix.dirname(file); dir !== "." && dir !== ""; dir = path6.posix.dirname(dir)) out.push(dir);
|
|
14749
16878
|
return out;
|
|
14750
16879
|
};
|
|
14751
16880
|
const newDirs = /* @__PURE__ */ new Set([...TYPE_DIRS.flatMap((type) => ancestors(`${paths.newDir}/${type}/x`)), ...ancestors(paths.newUtilsFile)]);
|
|
@@ -14818,21 +16947,21 @@ async function withRepairLock(cwd, work) {
|
|
|
14818
16947
|
const owner = `${JSON.stringify({ pid: process.pid, startedAt: (/* @__PURE__ */ new Date()).toISOString() })}
|
|
14819
16948
|
`;
|
|
14820
16949
|
if (!await writeFileIfAbsent(lock, owner)) {
|
|
14821
|
-
const held = await
|
|
16950
|
+
const held = await import_fs_extra4.default.readJson(lock).catch(() => ({}));
|
|
14822
16951
|
const pid = typeof held.pid === "number" ? held.pid : void 0;
|
|
14823
16952
|
if (pid === void 0 || isRunning(pid)) {
|
|
14824
16953
|
throw new RepairLockedError(
|
|
14825
16954
|
`Another fasla-ui run${pid ? ` (process ${pid})` : ""} is repairing this project. Wait for it to finish and run this again. If no other run is going, delete ${LOCK_FILE}.`
|
|
14826
16955
|
);
|
|
14827
16956
|
}
|
|
14828
|
-
await
|
|
16957
|
+
await import_fs_extra4.default.remove(lock);
|
|
14829
16958
|
if (!await writeFileIfAbsent(lock, owner)) {
|
|
14830
16959
|
throw new RepairLockedError(`Another fasla-ui run started repairing this project just now. Wait for it to finish and run this again.`);
|
|
14831
16960
|
}
|
|
14832
16961
|
}
|
|
14833
16962
|
const release = () => {
|
|
14834
16963
|
try {
|
|
14835
|
-
|
|
16964
|
+
import_fs_extra4.default.removeSync(lock);
|
|
14836
16965
|
} catch {
|
|
14837
16966
|
}
|
|
14838
16967
|
};
|
|
@@ -14859,7 +16988,7 @@ async function executeJournal(cwd, journal, { afterStep } = {}) {
|
|
|
14859
16988
|
await saveJournal(cwd, journal);
|
|
14860
16989
|
await afterStep?.(i);
|
|
14861
16990
|
}
|
|
14862
|
-
await
|
|
16991
|
+
await import_fs_extra4.default.remove(path6.join(cwd, REPAIR_FILE));
|
|
14863
16992
|
}
|
|
14864
16993
|
async function runJournal(cwd, journal) {
|
|
14865
16994
|
try {
|
|
@@ -14868,7 +16997,7 @@ async function runJournal(cwd, journal) {
|
|
|
14868
16997
|
const reason = error.message;
|
|
14869
16998
|
const leftovers = await rollback(cwd, journal.steps, journal.done);
|
|
14870
16999
|
if (leftovers.length === 0) {
|
|
14871
|
-
await
|
|
17000
|
+
await import_fs_extra4.default.remove(path6.join(cwd, REPAIR_FILE));
|
|
14872
17001
|
throw new RepairRolledBackError(reason);
|
|
14873
17002
|
}
|
|
14874
17003
|
journal.done = 0;
|
|
@@ -14880,7 +17009,7 @@ async function runJournal(cwd, journal) {
|
|
|
14880
17009
|
}
|
|
14881
17010
|
async function doStep(cwd, step) {
|
|
14882
17011
|
if (step.op === "mkdir") {
|
|
14883
|
-
await
|
|
17012
|
+
await import_fs_extra4.default.ensureDir(await resolveInsideProject(cwd, step.dir));
|
|
14884
17013
|
} else if (step.op === "move") {
|
|
14885
17014
|
const from = await resolveInsideProject(cwd, step.from);
|
|
14886
17015
|
const to = await resolveWritableFile(cwd, step.to);
|
|
@@ -14889,13 +17018,13 @@ async function doStep(cwd, step) {
|
|
|
14889
17018
|
if (!fromThere && toThere) return;
|
|
14890
17019
|
if (!fromThere) throw new RepairConflictError(`${step.from} is gone, and ${step.to} isn't there either.`);
|
|
14891
17020
|
if (toThere) throw new RepairConflictError(`${step.to} appeared after the repair was planned.`);
|
|
14892
|
-
await
|
|
14893
|
-
await
|
|
17021
|
+
await import_fs_extra4.default.ensureDir(path6.dirname(to));
|
|
17022
|
+
await import_fs_extra4.default.move(from, to, { overwrite: false });
|
|
14894
17023
|
} else if (step.op === "delete") {
|
|
14895
17024
|
const current = await readPlainFile(cwd, step.file);
|
|
14896
17025
|
if (current === void 0) return;
|
|
14897
17026
|
if (current !== step.before) throw new RepairConflictError(`${step.file} changed after the repair was planned.`);
|
|
14898
|
-
await
|
|
17027
|
+
await import_fs_extra4.default.remove(await resolveWritableFile(cwd, step.file));
|
|
14899
17028
|
} else if (step.op === "write") {
|
|
14900
17029
|
const current = await readPlainFile(cwd, step.file);
|
|
14901
17030
|
if (current === step.after) return;
|
|
@@ -14903,8 +17032,8 @@ async function doStep(cwd, step) {
|
|
|
14903
17032
|
await writeAtomically(cwd, step.file, step.after);
|
|
14904
17033
|
} else {
|
|
14905
17034
|
const dir = await resolveInsideProject(cwd, step.dir);
|
|
14906
|
-
const entries = await
|
|
14907
|
-
if (entries && entries.length === 0) await
|
|
17035
|
+
const entries = await import_fs_extra4.default.readdir(dir).catch(() => void 0);
|
|
17036
|
+
if (entries && entries.length === 0) await import_fs_extra4.default.rmdir(dir);
|
|
14908
17037
|
}
|
|
14909
17038
|
}
|
|
14910
17039
|
async function rollback(cwd, steps, failedAt) {
|
|
@@ -14914,14 +17043,14 @@ async function rollback(cwd, steps, failedAt) {
|
|
|
14914
17043
|
try {
|
|
14915
17044
|
if (step.op === "mkdir") {
|
|
14916
17045
|
const dir = await resolveInsideProject(cwd, step.dir);
|
|
14917
|
-
const entries = await
|
|
14918
|
-
if (entries && entries.length === 0) await
|
|
17046
|
+
const entries = await import_fs_extra4.default.readdir(dir).catch(() => void 0);
|
|
17047
|
+
if (entries && entries.length === 0) await import_fs_extra4.default.rmdir(dir);
|
|
14919
17048
|
} else if (step.op === "move") {
|
|
14920
17049
|
const from = await resolveInsideProject(cwd, step.from);
|
|
14921
17050
|
const to = await resolveInsideProject(cwd, step.to);
|
|
14922
|
-
if (!await lexists2(from) && await lexists2(to)) await
|
|
17051
|
+
if (!await lexists2(from) && await lexists2(to)) await import_fs_extra4.default.move(to, from, { overwrite: false });
|
|
14923
17052
|
} else if (step.op === "delete") {
|
|
14924
|
-
if (await readPlainFile(cwd, step.file) === void 0 && !await lexists2(
|
|
17053
|
+
if (await readPlainFile(cwd, step.file) === void 0 && !await lexists2(path6.join(cwd, step.file))) {
|
|
14925
17054
|
await writeAtomically(cwd, step.file, step.before);
|
|
14926
17055
|
}
|
|
14927
17056
|
} else if (step.op === "write") {
|
|
@@ -14931,7 +17060,7 @@ async function rollback(cwd, steps, failedAt) {
|
|
|
14931
17060
|
if (i < failedAt) leftovers.push(step.file);
|
|
14932
17061
|
continue;
|
|
14933
17062
|
}
|
|
14934
|
-
if (step.before === null) await
|
|
17063
|
+
if (step.before === null) await import_fs_extra4.default.remove(await resolveWritableFile(cwd, step.file));
|
|
14935
17064
|
else await writeAtomically(cwd, step.file, step.before);
|
|
14936
17065
|
}
|
|
14937
17066
|
} catch {
|
|
@@ -14966,7 +17095,7 @@ async function saveJournal(cwd, journal) {
|
|
|
14966
17095
|
async function writeAtomically(cwd, rel, content) {
|
|
14967
17096
|
const target = await resolveWritableFile(cwd, rel);
|
|
14968
17097
|
const temp = await resolveWritableFile(cwd, `${rel}.fasla-tmp`);
|
|
14969
|
-
await
|
|
17098
|
+
await import_fs_extra4.default.ensureDir(path6.dirname(target));
|
|
14970
17099
|
await writeFileNoFollow(temp, content);
|
|
14971
17100
|
await rename(temp, target);
|
|
14972
17101
|
}
|
|
@@ -14999,21 +17128,21 @@ function unique(items) {
|
|
|
14999
17128
|
return [...new Set(items)];
|
|
15000
17129
|
}
|
|
15001
17130
|
async function lexists2(p) {
|
|
15002
|
-
return Boolean(await
|
|
17131
|
+
return Boolean(await import_fs_extra4.default.lstat(p).catch(() => void 0));
|
|
15003
17132
|
}
|
|
15004
17133
|
async function readPlainFile(cwd, rel) {
|
|
15005
|
-
const full =
|
|
15006
|
-
const stat = await
|
|
17134
|
+
const full = path6.join(cwd, rel);
|
|
17135
|
+
const stat = await import_fs_extra4.default.lstat(full).catch(() => void 0);
|
|
15007
17136
|
if (!stat?.isFile()) return void 0;
|
|
15008
|
-
return
|
|
17137
|
+
return import_fs_extra4.default.readFile(full, "utf8");
|
|
15009
17138
|
}
|
|
15010
17139
|
async function plainFiles(dir) {
|
|
15011
|
-
const entries = await
|
|
17140
|
+
const entries = await import_fs_extra4.default.readdir(dir, { withFileTypes: true }).catch(() => []);
|
|
15012
17141
|
return entries.filter((e) => e.isFile()).map((e) => e.name).sort();
|
|
15013
17142
|
}
|
|
15014
17143
|
async function sourceFiles(cwd, rel = "") {
|
|
15015
17144
|
const out = [];
|
|
15016
|
-
for (const entry of await
|
|
17145
|
+
for (const entry of await import_fs_extra4.default.readdir(path6.join(cwd, rel), { withFileTypes: true })) {
|
|
15017
17146
|
if (entry.name.startsWith(".") || SKIP_DIRS.has(entry.name)) continue;
|
|
15018
17147
|
const child = rel ? `${rel}/${entry.name}` : entry.name;
|
|
15019
17148
|
if (entry.isDirectory()) out.push(...await sourceFiles(cwd, child));
|
|
@@ -15024,12 +17153,12 @@ async function sourceFiles(cwd, rel = "") {
|
|
|
15024
17153
|
|
|
15025
17154
|
// src/cli/vite.ts
|
|
15026
17155
|
init_esm_shims();
|
|
15027
|
-
var
|
|
15028
|
-
import
|
|
17156
|
+
var import_fs_extra5 = __toESM(require_lib2(), 1);
|
|
17157
|
+
import path7 from "path";
|
|
15029
17158
|
var VITE_CONFIGS = ["vite.config.ts", "vite.config.mts", "vite.config.js", "vite.config.mjs", "vite.config.cts", "vite.config.cjs"];
|
|
15030
17159
|
async function findViteConfig(cwd) {
|
|
15031
17160
|
for (const name of VITE_CONFIGS) {
|
|
15032
|
-
if (await
|
|
17161
|
+
if (await import_fs_extra5.default.pathExists(path7.join(cwd, name))) return name;
|
|
15033
17162
|
}
|
|
15034
17163
|
return void 0;
|
|
15035
17164
|
}
|
|
@@ -15042,14 +17171,14 @@ function usesTsconfigPaths(source) {
|
|
|
15042
17171
|
async function tsconfigFiles(cwd) {
|
|
15043
17172
|
const files = [];
|
|
15044
17173
|
for (const name of ["tsconfig.json", "tsconfig.app.json"]) {
|
|
15045
|
-
if (await
|
|
17174
|
+
if (await import_fs_extra5.default.pathExists(path7.join(cwd, name))) files.push(name);
|
|
15046
17175
|
}
|
|
15047
17176
|
if (files.length > 0) return files;
|
|
15048
|
-
return await
|
|
17177
|
+
return await import_fs_extra5.default.pathExists(path7.join(cwd, "jsconfig.json")) ? ["jsconfig.json"] : ["tsconfig.json"];
|
|
15049
17178
|
}
|
|
15050
17179
|
async function aliasAdvice(cwd, { root, mapped, pm }) {
|
|
15051
17180
|
const viteConfig = await findViteConfig(cwd);
|
|
15052
|
-
const source = viteConfig ? await
|
|
17181
|
+
const source = viteConfig ? await import_fs_extra5.default.readFile(path7.join(cwd, viteConfig), "utf8").catch(() => "") : "";
|
|
15053
17182
|
const aliased = !viteConfig || viteConfigHasAlias(source);
|
|
15054
17183
|
if (mapped && aliased) return void 0;
|
|
15055
17184
|
const target = root ? `./${root}` : ".";
|
|
@@ -15142,11 +17271,11 @@ async function safeOrExit(check) {
|
|
|
15142
17271
|
}
|
|
15143
17272
|
}
|
|
15144
17273
|
async function repairIfNeededOrExit(cwd, aliasRoot, yes) {
|
|
15145
|
-
const configPath =
|
|
15146
|
-
const readConfig = () =>
|
|
17274
|
+
const configPath = path8.join(cwd, "components.json");
|
|
17275
|
+
const readConfig = () => import_fs_extra6.default.readJson(configPath).catch(() => void 0);
|
|
15147
17276
|
const pending = async () => {
|
|
15148
17277
|
const config = await readConfig();
|
|
15149
|
-
return await
|
|
17278
|
+
return await import_fs_extra6.default.pathExists(path8.join(cwd, REPAIR_FILE)) || config !== void 0 && await isLegacyConfig(cwd, config);
|
|
15150
17279
|
};
|
|
15151
17280
|
if (!await pending()) return void 0;
|
|
15152
17281
|
return repairOrExit(
|
|
@@ -15225,89 +17354,34 @@ async function repairOrExit(run) {
|
|
|
15225
17354
|
process.exit(1);
|
|
15226
17355
|
}
|
|
15227
17356
|
}
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
|
-
|
|
15233
|
-
|
|
15234
|
-
|
|
15235
|
-
|
|
15236
|
-
}
|
|
15237
|
-
var THEME_CHOICES = [
|
|
15238
|
-
{ value: "fasla", title: "Starting from scratch: use Fasla's colours" },
|
|
15239
|
-
{ value: "brand", title: "I have a brand: keep my colours" }
|
|
15240
|
-
];
|
|
15241
|
-
async function detectProjectStyle(cwd, aliasRoot) {
|
|
15242
|
-
const pkg = await import_fs_extra6.default.readJson(path8.join(cwd, "package.json")).catch(() => ({}));
|
|
15243
|
-
const deps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
15244
|
-
const tailwindMajor = /^[\^~>=\s]*3\./.test(deps.tailwindcss ?? "") ? 3 : 4;
|
|
15245
|
-
const under = (p) => aliasRoot ? `${aliasRoot}/${p}` : p;
|
|
15246
|
-
const candidates = [
|
|
15247
|
-
.../* @__PURE__ */ new Set([
|
|
15248
|
-
under("app/globals.css"),
|
|
15249
|
-
"app/globals.css",
|
|
15250
|
-
"src/app/globals.css",
|
|
15251
|
-
"src/index.css",
|
|
15252
|
-
"src/styles/globals.css",
|
|
15253
|
-
"styles/globals.css",
|
|
15254
|
-
"src/globals.css",
|
|
15255
|
-
"src/App.css"
|
|
15256
|
-
])
|
|
15257
|
-
];
|
|
15258
|
-
let css;
|
|
15259
|
-
for (const file of candidates) {
|
|
15260
|
-
const text = await import_fs_extra6.default.readFile(path8.join(cwd, file), "utf8").catch(() => void 0);
|
|
15261
|
-
if (text !== void 0 && /@import\s+["']tailwindcss["']|@tailwind\s+base/.test(text)) {
|
|
15262
|
-
css = file;
|
|
15263
|
-
break;
|
|
15264
|
-
}
|
|
15265
|
-
if (text !== void 0 && css === void 0) css = file;
|
|
17357
|
+
async function installOrPrint(cwd, pm, packages, { enabled = true, run, printed, failed }) {
|
|
17358
|
+
if (packages.length === 0) return true;
|
|
17359
|
+
const command = installCommand(pm, packages);
|
|
17360
|
+
if (!enabled) {
|
|
17361
|
+
console.log(`
|
|
17362
|
+
${printed}
|
|
17363
|
+
${source_default.cyan(command)}`);
|
|
17364
|
+
return true;
|
|
15266
17365
|
}
|
|
15267
|
-
|
|
15268
|
-
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
break;
|
|
15273
|
-
}
|
|
15274
|
-
}
|
|
15275
|
-
config ||= "tailwind.config.ts";
|
|
17366
|
+
if (!await import_fs_extra6.default.pathExists(path8.join(cwd, "package.json"))) {
|
|
17367
|
+
console.log(source_default.yellow(`
|
|
17368
|
+
No package.json here, so nothing was installed. In your project, run:`));
|
|
17369
|
+
console.log(` ${source_default.cyan(command)}`);
|
|
17370
|
+
return true;
|
|
15276
17371
|
}
|
|
15277
|
-
const
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
rsc: "next" in deps,
|
|
15283
|
-
nextMajor: nextVersion ? Number(nextVersion[1]) : void 0
|
|
15284
|
-
};
|
|
15285
|
-
}
|
|
15286
|
-
function hasColourTokens(css) {
|
|
15287
|
-
return /--(background|foreground|primary|secondary|muted|accent|destructive|border|input|ring)\s*:/.test(css);
|
|
15288
|
-
}
|
|
15289
|
-
function themeWithoutAsking({
|
|
15290
|
-
flag,
|
|
15291
|
-
yes,
|
|
15292
|
-
hasColours
|
|
15293
|
-
}) {
|
|
15294
|
-
if (flag === "fasla" || flag === "brand") return flag;
|
|
15295
|
-
if (yes) return hasColours ? "brand" : "fasla";
|
|
15296
|
-
return void 0;
|
|
15297
|
-
}
|
|
15298
|
-
function themeCommand(choice, project = {}) {
|
|
15299
|
-
return `npx shadcn@latest add ${themeItems(choice, project).map((name) => `@fasla/${name}`).join(" ")}`;
|
|
15300
|
-
}
|
|
15301
|
-
function childEnv(env2 = process.env) {
|
|
15302
|
-
const clean = { ...env2 };
|
|
15303
|
-
for (const key of Object.keys(clean)) {
|
|
15304
|
-
if (/^npm_config_(package|call)$/i.test(key)) delete clean[key];
|
|
17372
|
+
const spinner = ora(`Installing ${andList(packages)} with ${pm}...`).start();
|
|
17373
|
+
const result = await install(pm, packages, cwd, run);
|
|
17374
|
+
if (result.ok) {
|
|
17375
|
+
spinner.succeed(`Installed ${andList(packages)} with ${pm}`);
|
|
17376
|
+
return true;
|
|
15305
17377
|
}
|
|
15306
|
-
|
|
15307
|
-
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
17378
|
+
spinner.fail(`Could not install ${andList(packages)} with ${pm}`);
|
|
17379
|
+
const tail = result.output.trim().split("\n").slice(-15).join("\n");
|
|
17380
|
+
if (tail) console.log(source_default.gray(tail));
|
|
17381
|
+
console.log(`
|
|
17382
|
+
${failed} Run this to finish:`);
|
|
17383
|
+
console.log(` ${source_default.cyan(command)}`);
|
|
17384
|
+
return false;
|
|
15311
17385
|
}
|
|
15312
17386
|
|
|
15313
17387
|
// src/cli/commands/init.ts
|
|
@@ -15334,7 +17408,6 @@ var CN_PACKAGES = ["clsx", "tailwind-merge"];
|
|
|
15334
17408
|
function cnPackages(tailwindMajor = 4) {
|
|
15335
17409
|
return tailwindMajor === 3 ? ["clsx", "tailwind-merge@^2"] : CN_PACKAGES;
|
|
15336
17410
|
}
|
|
15337
|
-
var specName = (spec) => spec.replace(/(?<=.)@.*$/, "");
|
|
15338
17411
|
function rangeStaysBelow3(range) {
|
|
15339
17412
|
return /^\s*(?:[\^~]|=|v)?\s*[0-2](?:\.(?:\d+|x|\*)){0,2}(?:-[0-9A-Za-z.-]+)?\s*$/.test(range);
|
|
15340
17413
|
}
|
|
@@ -15347,13 +17420,6 @@ async function tailwindMergeTooNew(cwd) {
|
|
|
15347
17420
|
if (!rangeStaysBelow3(listed)) return `package.json lists tailwind-merge "${listed}", which can install 3`;
|
|
15348
17421
|
return void 0;
|
|
15349
17422
|
}
|
|
15350
|
-
async function installedVersion(cwd, name) {
|
|
15351
|
-
for (let dir = path9.resolve(cwd); ; dir = path9.dirname(dir)) {
|
|
15352
|
-
const pkg = await import_fs_extra7.default.readJson(path9.join(dir, "node_modules", name, "package.json")).catch(() => void 0);
|
|
15353
|
-
if (typeof pkg?.version === "string") return pkg.version;
|
|
15354
|
-
if (path9.dirname(dir) === dir) return void 0;
|
|
15355
|
-
}
|
|
15356
|
-
}
|
|
15357
17423
|
async function cnPackagesToInstall(cwd, tailwindMajor = 4) {
|
|
15358
17424
|
const wanted = cnPackages(tailwindMajor);
|
|
15359
17425
|
const missing = new Set(await missingPackages(cwd, wanted.map(specName)));
|
|
@@ -15368,40 +17434,33 @@ async function writeCnHelper(cwd, utilsAlias, aliasRoot) {
|
|
|
15368
17434
|
}
|
|
15369
17435
|
async function installCnPackages(cwd, pm, { enabled = true, run, tailwindMajor = 4 } = {}) {
|
|
15370
17436
|
const missing = await cnPackagesToInstall(cwd, tailwindMajor);
|
|
15371
|
-
if (missing.length
|
|
15372
|
-
|
|
17437
|
+
if (missing.length > 0) await sayWhyTailwindMerge2(cwd, tailwindMajor);
|
|
17438
|
+
return installOrPrint(cwd, pm, missing, {
|
|
17439
|
+
enabled,
|
|
17440
|
+
run,
|
|
17441
|
+
printed: "Install the packages the cn helper imports:",
|
|
17442
|
+
failed: "The cn helper imports them, so the project won't compile without them."
|
|
17443
|
+
});
|
|
17444
|
+
}
|
|
17445
|
+
async function installComponentPackages(cwd, pm, dependencies, { enabled = true, run, tailwindMajor = 4 } = {}) {
|
|
17446
|
+
const own = dependencies.filter((spec) => !CN_PACKAGES.includes(specName(spec)));
|
|
17447
|
+
const cn = await cnPackagesToInstall(cwd, tailwindMajor);
|
|
17448
|
+
const missing = [...await missingPackages(cwd, own), ...cn];
|
|
17449
|
+
if (cn.length > 0) await sayWhyTailwindMerge2(cwd, tailwindMajor);
|
|
17450
|
+
return installOrPrint(cwd, pm, missing, {
|
|
17451
|
+
enabled,
|
|
17452
|
+
run,
|
|
17453
|
+
printed: "Install the packages these components import:",
|
|
17454
|
+
failed: "The components import them, so the project won't compile without them."
|
|
17455
|
+
});
|
|
17456
|
+
}
|
|
17457
|
+
async function sayWhyTailwindMerge2(cwd, tailwindMajor) {
|
|
15373
17458
|
const tooNew = tailwindMajor === 3 ? await tailwindMergeTooNew(cwd) : void 0;
|
|
15374
|
-
if (tooNew)
|
|
15375
|
-
|
|
15376
|
-
|
|
17459
|
+
if (!tooNew) return;
|
|
17460
|
+
console.log(
|
|
17461
|
+
source_default.yellow(`
|
|
15377
17462
|
${tooNew}. tailwind-merge 3 supports only Tailwind 4; this project is on Tailwind 3, so it gets tailwind-merge@^2.`)
|
|
15378
|
-
|
|
15379
|
-
}
|
|
15380
|
-
if (!enabled) {
|
|
15381
|
-
console.log(`
|
|
15382
|
-
Install the packages the cn helper imports:
|
|
15383
|
-
${source_default.cyan(command)}`);
|
|
15384
|
-
return true;
|
|
15385
|
-
}
|
|
15386
|
-
if (!await import_fs_extra7.default.pathExists(path9.join(cwd, "package.json"))) {
|
|
15387
|
-
console.log(source_default.yellow(`
|
|
15388
|
-
No package.json here, so nothing was installed. In your project, run:`));
|
|
15389
|
-
console.log(` ${source_default.cyan(command)}`);
|
|
15390
|
-
return true;
|
|
15391
|
-
}
|
|
15392
|
-
const spinner = ora(`Installing ${missing.join(" and ")} with ${pm}...`).start();
|
|
15393
|
-
const result = await install(pm, missing, cwd, run);
|
|
15394
|
-
if (result.ok) {
|
|
15395
|
-
spinner.succeed(`Installed ${missing.join(" and ")} with ${pm}`);
|
|
15396
|
-
return true;
|
|
15397
|
-
}
|
|
15398
|
-
spinner.fail(`Could not install ${missing.join(" and ")} with ${pm}`);
|
|
15399
|
-
const tail = result.output.trim().split("\n").slice(-15).join("\n");
|
|
15400
|
-
if (tail) console.log(source_default.gray(tail));
|
|
15401
|
-
console.log(`
|
|
15402
|
-
The cn helper imports them, so the project won't compile without them. Run this to finish:`);
|
|
15403
|
-
console.log(` ${source_default.cyan(command)}`);
|
|
15404
|
-
return false;
|
|
17463
|
+
);
|
|
15405
17464
|
}
|
|
15406
17465
|
function initCommand() {
|
|
15407
17466
|
return new Command().name("init").description("Initialize fasla-ui in your project").option("-y, --yes", "Skip confirmation prompts").option("--no-install", "Don't install clsx, tailwind-merge or the theme; print the commands instead").option("--theme <choice>", `The theme: "fasla" for Fasla's colours, "brand" to keep yours`).option("-c, --cwd <path>", "Working directory", process.cwd()).action(async (options) => {
|
|
@@ -15594,7 +17653,7 @@ function isFaslaFile(existing, incoming) {
|
|
|
15594
17653
|
|
|
15595
17654
|
// src/cli/commands/add.ts
|
|
15596
17655
|
function addCommand() {
|
|
15597
|
-
return new Command().name("add").description("Add components to your project").argument("[components...]", "Components to add").option("-y, --yes", "Skip confirmation").option("-o, --overwrite", "Overwrite existing files").option("-a, --all", "Add all available components").option("-c, --cwd <path>", "Working directory", process.cwd()).action(async (components, options) => {
|
|
17656
|
+
return new Command().name("add").description("Add components to your project").argument("[components...]", "Components to add").option("-y, --yes", "Skip confirmation").option("-o, --overwrite", "Overwrite existing files").option("-a, --all", "Add all available components").option("--no-install", "Don't install the packages the components import; print the command instead").option("-c, --cwd <path>", "Working directory", process.cwd()).action(async (components, options) => {
|
|
15598
17657
|
const cwd = path10.resolve(options.cwd);
|
|
15599
17658
|
const configPath = path10.join(cwd, "components.json");
|
|
15600
17659
|
const hasConfig = await import_fs_extra8.default.pathExists(configPath);
|
|
@@ -15677,7 +17736,8 @@ function addCommand() {
|
|
|
15677
17736
|
const allDependencies = /* @__PURE__ */ new Set();
|
|
15678
17737
|
const baseDir = path10.join(cwd, componentsDir);
|
|
15679
17738
|
const known = new Set(registry.items.map((item) => item.name));
|
|
15680
|
-
const
|
|
17739
|
+
const bases = [REGISTRY_URL, DEFAULT_REGISTRY_URL, LEGACY_REGISTRY_URL];
|
|
17740
|
+
const nameOf = (dep) => registryItemName(dep, known, bases);
|
|
15681
17741
|
let resolved;
|
|
15682
17742
|
try {
|
|
15683
17743
|
resolved = await resolveWithDependencies(validComponents, nameOf, fetchComponent);
|
|
@@ -15687,10 +17747,16 @@ function addCommand() {
|
|
|
15687
17747
|
process.exit(1);
|
|
15688
17748
|
}
|
|
15689
17749
|
if (resolved.added.length > 0) {
|
|
15690
|
-
addSpinner.info(
|
|
17750
|
+
addSpinner.info(describeAdded(resolved.added, resolved.neededBy));
|
|
15691
17751
|
}
|
|
15692
|
-
|
|
15693
|
-
|
|
17752
|
+
const themeItemOf = (dep) => {
|
|
17753
|
+
const name = ownItemName(dep, bases);
|
|
17754
|
+
return name !== void 0 && THEME_ITEMS.includes(name) ? name : void 0;
|
|
17755
|
+
};
|
|
17756
|
+
const themeItems2 = [...new Set(resolved.skipped.map(themeItemOf).filter((n) => n !== void 0))];
|
|
17757
|
+
const unresolvable = resolved.skipped.filter((dep) => themeItemOf(dep) === void 0);
|
|
17758
|
+
if (unresolvable.length > 0) {
|
|
17759
|
+
addSpinner.warn(`Not resolvable from this registry, install separately: ${unresolvable.join(", ")}`);
|
|
15694
17760
|
}
|
|
15695
17761
|
const targetDirOf = (name) => {
|
|
15696
17762
|
const item = registry.items.find((i) => i.name === name);
|
|
@@ -15807,21 +17873,46 @@ Kept ${kept.map((k) => k.file).join(", ")}: not Fasla's, so not replaced.`));
|
|
|
15807
17873
|
console.log(`To replace ${kept.length === 1 ? "it" : "them"} with Fasla's: ${source_default.cyan(`npx @smicolon/fasla-ui@latest add ${names} -o`)}`);
|
|
15808
17874
|
}
|
|
15809
17875
|
}
|
|
15810
|
-
const toInstall = await missingPackages(cwd, [...allDependencies]);
|
|
15811
|
-
if (toInstall.length > 0) {
|
|
15812
|
-
console.log(source_default.cyan("\nDependencies to install:"));
|
|
15813
|
-
console.log(source_default.gray(` ${installCommand(pm, toInstall)}`));
|
|
15814
|
-
}
|
|
15815
17876
|
const importable = validComponents.filter((name) => added.has(name));
|
|
15816
|
-
if (importable.length
|
|
15817
|
-
|
|
17877
|
+
if (importable.length > 0) {
|
|
17878
|
+
console.log(source_default.green(`
|
|
15818
17879
|
${notAdded.length === 0 ? "Components added successfully!" : "Added:"}`));
|
|
15819
|
-
|
|
15820
|
-
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
17880
|
+
console.log("\nImport them in your code:");
|
|
17881
|
+
for (const componentName of importable) {
|
|
17882
|
+
const item = registry.items.find((i) => i.name === componentName);
|
|
17883
|
+
const importPath = `${getTargetDirectory(item?.type ?? "registry:ui", componentsAlias)}/${componentName}`;
|
|
17884
|
+
console.log(source_default.cyan(` import { ... } from "${importPath}"`));
|
|
17885
|
+
}
|
|
17886
|
+
}
|
|
17887
|
+
let themed = true;
|
|
17888
|
+
if (themeItems2.length > 0 && added.size > 0) {
|
|
17889
|
+
const urls = themeItems2.map((name) => `${REGISTRY_URL}/${name}.json`);
|
|
17890
|
+
const command = themeItemsCommand(urls);
|
|
17891
|
+
if (options.install === false) {
|
|
17892
|
+
console.log(`
|
|
17893
|
+
Install the CSS these components need:
|
|
17894
|
+
${source_default.cyan(command)}`);
|
|
17895
|
+
} else {
|
|
17896
|
+
const themeSpinner = ora(`Installing ${themeItems2.join(", ")}...`).start();
|
|
17897
|
+
const result = await applyThemeItems(cwd, urls);
|
|
17898
|
+
if (result.ok) themeSpinner.succeed(`Installed ${themeItems2.join(", ")}`);
|
|
17899
|
+
else {
|
|
17900
|
+
themeSpinner.fail(`Could not install ${themeItems2.join(", ")}`);
|
|
17901
|
+
const tail = result.output.trim().split("\n").slice(-15).join("\n");
|
|
17902
|
+
if (tail) console.log(source_default.gray(tail));
|
|
17903
|
+
console.log(`
|
|
17904
|
+
The components need this CSS to show their colours. Run this to finish:
|
|
17905
|
+
${source_default.cyan(command)}`);
|
|
17906
|
+
themed = false;
|
|
17907
|
+
}
|
|
17908
|
+
}
|
|
15824
17909
|
}
|
|
17910
|
+
const { tailwindMajor } = await detectProjectStyle(cwd, aliasRoot.root);
|
|
17911
|
+
const installed = await installComponentPackages(cwd, pm, [...allDependencies], {
|
|
17912
|
+
enabled: options.install !== false,
|
|
17913
|
+
tailwindMajor
|
|
17914
|
+
});
|
|
17915
|
+
if (!installed || !themed) process.exit(1);
|
|
15825
17916
|
});
|
|
15826
17917
|
}
|
|
15827
17918
|
|