@astryxdesign/cli 0.7.4-canary.faa934f → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/README.md +81 -80
- package/api/component/_adapter.mjs +4 -3
- package/api/component/component.mjs +13 -6
- package/api/component/doc-links.test.mjs +33 -0
- package/api/discover/_adapter.d.mts +49 -1
- package/api/discover/_adapter.mjs +117 -8
- package/api/discover/detail/item/item.mjs +31 -0
- package/api/discover/discover.mjs +26 -8
- package/api/discover/discover.type.d.mts +25 -0
- package/api/discover/discover.type.mjs +15 -1
- package/api/docs/_adapter.d.mts +80 -0
- package/api/docs/_adapter.mjs +285 -15
- package/api/docs/detail/detail.mjs +8 -0
- package/api/docs/docOverlays.test.mjs +2 -1
- package/api/docs/docs.d.mts +16 -6
- package/api/docs/docs.doc.mjs +1 -1
- package/api/docs/docs.mjs +55 -6
- package/api/docs/docs.type.d.mts +38 -2
- package/api/docs/docs.type.mjs +17 -3
- package/api/docs/guide-route-targets.test.mjs +1002 -0
- package/api/docs/index/index.mjs +9 -0
- package/api/docs/integration-tree.test.mjs +22 -0
- package/api/docs/integrationDocs.test.mjs +85 -0
- package/api/docs/list/list.mjs +7 -1
- package/api/docs/node/node.mjs +29 -4
- package/api/docs/reference-blocks.test.mjs +1 -1
- package/api/doctor/doctor.d.mts +34 -2
- package/api/doctor/doctor.doc.mjs +1 -1
- package/api/doctor/doctor.mjs +109 -11
- package/api/doctor/doctor.test.mjs +7 -3
- package/api/doctor/icon-sets.test.mjs +111 -0
- package/api/hook/list/list.d.mts +1 -1
- package/api/icon/_adapter.d.mts +54 -0
- package/api/icon/_adapter.mjs +173 -0
- package/api/icon/_authoring.d.mts +42 -0
- package/api/icon/_authoring.mjs +628 -0
- package/api/icon/_options.d.mts +15 -0
- package/api/icon/_options.mjs +41 -0
- package/api/icon/_records.d.mts +47 -0
- package/api/icon/_records.mjs +69 -0
- package/api/icon/add/add.d.mts +14 -0
- package/api/icon/add/add.mjs +416 -0
- package/api/icon/detail/detail.d.mts +12 -0
- package/api/icon/detail/detail.mjs +88 -0
- package/api/icon/error-codes.test.mjs +334 -0
- package/api/icon/experimental-markers.test.mjs +93 -0
- package/api/icon/icon.d.mts +16 -0
- package/api/icon/icon.doc.d.mts +9 -0
- package/api/icon/icon.doc.mjs +91 -0
- package/api/icon/icon.mjs +96 -0
- package/api/icon/icon.test.mjs +374 -0
- package/api/icon/icon.type.d.mts +430 -0
- package/api/icon/icon.type.mjs +290 -0
- package/api/icon/iconAdd.doc.d.mts +6 -0
- package/api/icon/iconAdd.doc.mjs +146 -0
- package/api/icon/iconMap.doc.d.mts +6 -0
- package/api/icon/iconMap.doc.mjs +92 -0
- package/api/icon/iconNewDefinition.doc.d.mts +5 -0
- package/api/icon/iconNewDefinition.doc.mjs +101 -0
- package/api/icon/iconNewSet.doc.d.mts +5 -0
- package/api/icon/iconNewSet.doc.mjs +103 -0
- package/api/icon/iconUse.doc.d.mts +6 -0
- package/api/icon/iconUse.doc.mjs +70 -0
- package/api/icon/list/list.d.mts +11 -0
- package/api/icon/list/list.mjs +64 -0
- package/api/icon/map/map.d.mts +14 -0
- package/api/icon/map/map.mjs +122 -0
- package/api/icon/new-definition/new-definition.d.mts +12 -0
- package/api/icon/new-definition/new-definition.mjs +32 -0
- package/api/icon/new-definition/new-definition.undo.test.mjs +97 -0
- package/api/icon/new-set/new-set.d.mts +12 -0
- package/api/icon/new-set/new-set.mjs +32 -0
- package/api/icon/new-set/new-set.test.mjs +348 -0
- package/api/icon/search/search.d.mts +14 -0
- package/api/icon/search/search.mjs +50 -0
- package/api/icon/use/use.d.mts +15 -0
- package/api/icon/use/use.mjs +101 -0
- package/api/index.d.mts +6 -0
- package/api/index.mjs +6 -0
- package/api/integration/_adapter.d.mts +20 -2
- package/api/integration/_adapter.mjs +48 -4
- package/api/integration/add-contribution.d.mts +3 -12
- package/api/integration/add-contribution.mjs +7 -97
- package/api/integration/add-contribution.test.mjs +14 -10
- package/api/integration/add-helpers.d.mts +46 -0
- package/api/integration/add-helpers.mjs +106 -4
- package/api/integration/authoring-checks.mjs +29 -2
- package/api/integration/authoring-checks.test.mjs +131 -1
- package/api/integration/check/check.d.mts +4 -1
- package/api/integration/check/check.mjs +34 -4
- package/api/integration/check/check.test.mjs +49 -0
- package/api/integration/doc-stability.test.mjs +216 -0
- package/api/integration/example-checks.no-npm.test.mjs +140 -0
- package/api/integration/example-checks.test.mjs +776 -0
- package/api/integration/integration-authoring.type.d.mts +1 -0
- package/api/integration/integration-authoring.type.mjs +1 -0
- package/api/integration/integration-check.type.d.mts +8 -0
- package/api/integration/integration-check.type.mjs +4 -1
- package/api/integration/integrationCheck.doc.mjs +8 -1
- package/api/integration/integrationDocConflicts.doc.mjs +1 -1
- package/api/integration/pack-check.mjs +68 -1
- package/api/integration/pack-check.test.mjs +63 -0
- package/api/integration/pack-check.type.d.mts +9 -1
- package/api/integration/pack-check.type.mjs +4 -1
- package/api/integration/validate-installed-icon-sets.test.mjs +67 -0
- package/api/integration/validate-integration-case-disk.test.mjs +14 -2
- package/api/integration/validate-integration-gaps.test.mjs +43 -19
- package/api/integration/validate-integration.d.mts +11 -1
- package/api/integration/validate-integration.mjs +180 -19
- package/api/integration/validate-integration.type.d.mts +94 -4
- package/api/integration/validate-integration.type.mjs +53 -5
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/search/ORDERING.md +1 -1
- package/api/search/_candidate-score.d.mts +9 -3
- package/api/search/_candidate-score.mjs +90 -3
- package/api/search/_gather-components.mjs +48 -1
- package/api/search/_gather-docs.mjs +52 -3
- package/api/search/_lexical.d.mts +12 -0
- package/api/search/_lexical.mjs +3 -0
- package/api/search/_order.d.mts +1 -1
- package/api/search/_order.mjs +75 -6
- package/api/search/_priority.mjs +5 -2
- package/api/search/_score.d.mts +2 -1
- package/api/search/_score.mjs +4 -3
- package/api/search/search.doc.mjs +1 -1
- package/api/search/search.family-members.test.mjs +124 -0
- package/api/search/search.family-word.test.mjs +146 -0
- package/api/search/search.mjs +28 -0
- package/api/search/search.tie-order.test.mjs +39 -0
- package/api/template/_adapter.d.mts +13 -0
- package/api/template/_adapter.mjs +36 -0
- package/api/template/copy/copy.d.mts +5 -2
- package/api/template/copy/copy.mjs +19 -3
- package/api/template/show/show.d.mts +6 -1
- package/api/template/show/show.mjs +11 -2
- package/api/template/template-suffix.test.mjs +26 -0
- package/api/template/template.mjs +6 -2
- package/api/template/template.type.d.mts +53 -0
- package/api/template/template.type.mjs +15 -0
- package/api/theme/themeBuild.doc.mjs +1 -1
- package/api/theme/themeList.doc.mjs +1 -1
- package/api/theme/themeTargets.doc.mjs +1 -1
- package/api/upgrade/_adapter.d.mts +10 -2
- package/api/upgrade/_adapter.mjs +23 -4
- package/api/upgrade/run/run.mjs +4 -1
- package/assets/docs/author-a-theme.doc.mjs +15 -15
- package/assets/docs/browser-support.doc.mjs +1 -1
- package/assets/docs/getting-started.doc.mjs +16 -16
- package/assets/docs/is-my-code-good.doc.mjs +6 -6
- package/assets/docs/styling-overview.doc.mjs +5 -5
- package/assets/docs/theme.doc.mjs +5 -5
- package/assets/docs/tree/add-a-component.doc.mjs +1 -1
- package/assets/docs/tree/add-a-theme.doc.mjs +2 -2
- package/assets/docs/tree/add-a-topic.doc.mjs +6 -6
- package/assets/docs/tree/agent-guidance.doc.mjs +5 -5
- package/assets/docs/tree/authoring.doc.mjs +2 -2
- package/assets/docs/tree/block-template.doc.mjs +1 -1
- package/assets/docs/tree/check-the-props.doc.mjs +3 -3
- package/assets/docs/tree/check-your-docs.doc.mjs +6 -6
- package/assets/docs/tree/checks.doc.mjs +11 -11
- package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
- package/assets/docs/tree/cli-command.doc.mjs +6 -6
- package/assets/docs/tree/codemods.doc.mjs +7 -7
- package/assets/docs/tree/component-family.doc.mjs +1 -1
- package/assets/docs/tree/component-imports.doc.mjs +2 -2
- package/assets/docs/tree/component-lookups.doc.mjs +6 -5
- package/assets/docs/tree/computer-agent-guide.doc.mjs +7 -7
- package/assets/docs/tree/computer-integrations.doc.mjs +5 -5
- package/assets/docs/tree/debug-and-gap-reports.doc.mjs +3 -3
- package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
- package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
- package/assets/docs/tree/doc-syntax.doc.mjs +219 -0
- package/assets/docs/tree/experimental.doc.mjs +31 -0
- package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
- package/assets/docs/tree/extend-or-replace.doc.mjs +39 -7
- package/assets/docs/tree/font-setup.doc.mjs +1 -1
- package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
- package/assets/docs/tree/global-integrations.doc.mjs +11 -11
- package/assets/docs/tree/global.doc.mjs +2 -2
- package/assets/docs/tree/host-entry.doc.mjs +1 -1
- package/assets/docs/tree/icon-definitions.doc.mjs +48 -0
- package/assets/docs/tree/icon-set-files.doc.mjs +33 -0
- package/assets/docs/tree/icon-sets.doc.mjs +377 -0
- package/assets/docs/tree/install-once.doc.mjs +4 -4
- package/assets/docs/tree/layout.doc.mjs +1 -1
- package/assets/docs/tree/links.doc.mjs +2 -2
- package/assets/docs/tree/migration-setup.doc.mjs +15 -15
- package/assets/docs/tree/migration.doc.mjs +2 -1
- package/assets/docs/tree/other-libraries.doc.mjs +1 -1
- package/assets/docs/tree/page-template.doc.mjs +2 -2
- package/assets/docs/tree/problems.doc.mjs +8 -8
- package/assets/docs/tree/project-global-or-both.doc.mjs +2 -2
- package/assets/docs/tree/publishing.doc.mjs +7 -7
- package/assets/docs/tree/quick-start.doc.mjs +9 -9
- package/assets/docs/tree/reference.doc.mjs +2 -2
- package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
- package/assets/docs/tree/replace-a-core-template.doc.mjs +4 -4
- package/assets/docs/tree/scaffold.doc.mjs +1 -1
- package/assets/docs/tree/sections-and-placement.doc.mjs +3 -3
- package/assets/docs/tree/see-it-in-an-app.doc.mjs +3 -3
- package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
- package/assets/docs/tree/single-component.doc.mjs +4 -4
- package/assets/docs/tree/start-a-template.doc.mjs +5 -5
- package/assets/docs/tree/styling-advanced.doc.mjs +1 -1
- package/assets/docs/tree/styling-libraries.doc.mjs +2 -1
- package/assets/docs/tree/styling.doc.mjs +1 -1
- package/assets/docs/tree/tailwind.doc.mjs +1 -1
- package/assets/docs/tree/test-in-an-app.doc.mjs +5 -5
- package/assets/docs/tree/test-template-in-app.doc.mjs +6 -6
- package/assets/docs/tree/tokens-and-setup.doc.mjs +1 -1
- package/assets/docs/tree/troubleshooting.doc.mjs +24 -20
- package/assets/docs/tree/uninstall.doc.mjs +2 -2
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/upgrading.doc.mjs +3 -3
- package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
- package/assets/docs/tree/verify-packed-template.doc.mjs +3 -3
- package/assets/docs/tree/versioning.doc.mjs +4 -4
- package/assets/docs/tree/who-answers.doc.mjs +4 -4
- package/assets/docs/tree/write-the-template-file.doc.mjs +4 -4
- package/assets/docs/use-a-theme.doc.mjs +10 -10
- package/assets/docs/use-integrations.doc.mjs +1 -1
- package/assets/docs/working-with-ai.doc.mjs +15 -15
- package/assets/icons/definitions/activity.doc.mjs +9 -0
- package/assets/icons/definitions/add.doc.mjs +9 -0
- package/assets/icons/definitions/adjustments.doc.mjs +9 -0
- package/assets/icons/definitions/announcement.doc.mjs +9 -0
- package/assets/icons/definitions/apps.doc.mjs +9 -0
- package/assets/icons/definitions/archive.doc.mjs +9 -0
- package/assets/icons/definitions/arrowDown.doc.mjs +10 -0
- package/assets/icons/definitions/arrowLeft.doc.mjs +9 -0
- package/assets/icons/definitions/arrowRight.doc.mjs +9 -0
- package/assets/icons/definitions/arrowUp.doc.mjs +10 -0
- package/assets/icons/definitions/arrowsUpDown.doc.mjs +10 -0
- package/assets/icons/definitions/attach.doc.mjs +9 -0
- package/assets/icons/definitions/audio.doc.mjs +9 -0
- package/assets/icons/definitions/bank.doc.mjs +9 -0
- package/assets/icons/definitions/bold.doc.mjs +9 -0
- package/assets/icons/definitions/bolt.doc.mjs +9 -0
- package/assets/icons/definitions/book.doc.mjs +9 -0
- package/assets/icons/definitions/bookmark.doc.mjs +9 -0
- package/assets/icons/definitions/bug.doc.mjs +9 -0
- package/assets/icons/definitions/building.doc.mjs +9 -0
- package/assets/icons/definitions/calendar.doc.mjs +10 -0
- package/assets/icons/definitions/cart.doc.mjs +9 -0
- package/assets/icons/definitions/chart.doc.mjs +9 -0
- package/assets/icons/definitions/check.doc.mjs +10 -0
- package/assets/icons/definitions/checkDouble.doc.mjs +10 -0
- package/assets/icons/definitions/chevronDown.doc.mjs +10 -0
- package/assets/icons/definitions/chevronLeft.doc.mjs +10 -0
- package/assets/icons/definitions/chevronRight.doc.mjs +10 -0
- package/assets/icons/definitions/chevronUp.doc.mjs +9 -0
- package/assets/icons/definitions/chevronsLeft.doc.mjs +10 -0
- package/assets/icons/definitions/chevronsRight.doc.mjs +10 -0
- package/assets/icons/definitions/click.doc.mjs +9 -0
- package/assets/icons/definitions/clipboard.doc.mjs +10 -0
- package/assets/icons/definitions/clock.doc.mjs +10 -0
- package/assets/icons/definitions/close.doc.mjs +10 -0
- package/assets/icons/definitions/code.doc.mjs +9 -0
- package/assets/icons/definitions/collapse.doc.mjs +9 -0
- package/assets/icons/definitions/compose.doc.mjs +9 -0
- package/assets/icons/definitions/conversation.doc.mjs +9 -0
- package/assets/icons/definitions/copy.doc.mjs +10 -0
- package/assets/icons/definitions/creditCard.doc.mjs +9 -0
- package/assets/icons/definitions/database.doc.mjs +9 -0
- package/assets/icons/definitions/delete.doc.mjs +9 -0
- package/assets/icons/definitions/desktop.doc.mjs +9 -0
- package/assets/icons/definitions/discount.doc.mjs +9 -0
- package/assets/icons/definitions/document.doc.mjs +9 -0
- package/assets/icons/definitions/download.doc.mjs +9 -0
- package/assets/icons/definitions/drag.doc.mjs +9 -0
- package/assets/icons/definitions/edit.doc.mjs +9 -0
- package/assets/icons/definitions/emoji.doc.mjs +9 -0
- package/assets/icons/definitions/error.doc.mjs +10 -0
- package/assets/icons/definitions/expand.doc.mjs +9 -0
- package/assets/icons/definitions/experiment.doc.mjs +9 -0
- package/assets/icons/definitions/externalLink.doc.mjs +10 -0
- package/assets/icons/definitions/eye.doc.mjs +9 -0
- package/assets/icons/definitions/eyeSlash.doc.mjs +10 -0
- package/assets/icons/definitions/file.doc.mjs +9 -0
- package/assets/icons/definitions/flag.doc.mjs +9 -0
- package/assets/icons/definitions/folder.doc.mjs +9 -0
- package/assets/icons/definitions/folderAdd.doc.mjs +9 -0
- package/assets/icons/definitions/funnel.doc.mjs +10 -0
- package/assets/icons/definitions/globe.doc.mjs +9 -0
- package/assets/icons/definitions/gridView.doc.mjs +9 -0
- package/assets/icons/definitions/heart.doc.mjs +9 -0
- package/assets/icons/definitions/home.doc.mjs +9 -0
- package/assets/icons/definitions/image.doc.mjs +9 -0
- package/assets/icons/definitions/inbox.doc.mjs +9 -0
- package/assets/icons/definitions/info.doc.mjs +10 -0
- package/assets/icons/definitions/italic.doc.mjs +9 -0
- package/assets/icons/definitions/key.doc.mjs +9 -0
- package/assets/icons/definitions/language.doc.mjs +9 -0
- package/assets/icons/definitions/lightbulb.doc.mjs +9 -0
- package/assets/icons/definitions/link.doc.mjs +9 -0
- package/assets/icons/definitions/list.doc.mjs +9 -0
- package/assets/icons/definitions/location.doc.mjs +9 -0
- package/assets/icons/definitions/lock.doc.mjs +9 -0
- package/assets/icons/definitions/mail.doc.mjs +9 -0
- package/assets/icons/definitions/mention.doc.mjs +9 -0
- package/assets/icons/definitions/menu.doc.mjs +10 -0
- package/assets/icons/definitions/message.doc.mjs +9 -0
- package/assets/icons/definitions/microphone.doc.mjs +10 -0
- package/assets/icons/definitions/mobile.doc.mjs +9 -0
- package/assets/icons/definitions/money.doc.mjs +9 -0
- package/assets/icons/definitions/moon.doc.mjs +9 -0
- package/assets/icons/definitions/moreHorizontal.doc.mjs +10 -0
- package/assets/icons/definitions/notification.doc.mjs +9 -0
- package/assets/icons/definitions/notificationActive.doc.mjs +9 -0
- package/assets/icons/definitions/notificationOff.doc.mjs +9 -0
- package/assets/icons/definitions/package.doc.mjs +9 -0
- package/assets/icons/definitions/pause.doc.mjs +9 -0
- package/assets/icons/definitions/pin.doc.mjs +9 -0
- package/assets/icons/definitions/play.doc.mjs +9 -0
- package/assets/icons/definitions/raiseHand.doc.mjs +9 -0
- package/assets/icons/definitions/redo.doc.mjs +9 -0
- package/assets/icons/definitions/refresh.doc.mjs +9 -0
- package/assets/icons/definitions/remove.doc.mjs +9 -0
- package/assets/icons/definitions/rocket.doc.mjs +9 -0
- package/assets/icons/definitions/save.doc.mjs +9 -0
- package/assets/icons/definitions/search.doc.mjs +10 -0
- package/assets/icons/definitions/send.doc.mjs +9 -0
- package/assets/icons/definitions/server.doc.mjs +9 -0
- package/assets/icons/definitions/settings.doc.mjs +9 -0
- package/assets/icons/definitions/share.doc.mjs +9 -0
- package/assets/icons/definitions/shield.doc.mjs +9 -0
- package/assets/icons/definitions/shipping.doc.mjs +9 -0
- package/assets/icons/definitions/shoppingBag.doc.mjs +9 -0
- package/assets/icons/definitions/sparkles.doc.mjs +9 -0
- package/assets/icons/definitions/star.doc.mjs +9 -0
- package/assets/icons/definitions/stop.doc.mjs +10 -0
- package/assets/icons/definitions/strikethrough.doc.mjs +9 -0
- package/assets/icons/definitions/success.doc.mjs +10 -0
- package/assets/icons/definitions/sun.doc.mjs +9 -0
- package/assets/icons/definitions/swatch.doc.mjs +9 -0
- package/assets/icons/definitions/table.doc.mjs +9 -0
- package/assets/icons/definitions/tag.doc.mjs +9 -0
- package/assets/icons/definitions/thumbsDown.doc.mjs +9 -0
- package/assets/icons/definitions/thumbsUp.doc.mjs +9 -0
- package/assets/icons/definitions/trendDown.doc.mjs +9 -0
- package/assets/icons/definitions/trendUp.doc.mjs +9 -0
- package/assets/icons/definitions/underline.doc.mjs +9 -0
- package/assets/icons/definitions/undo.doc.mjs +9 -0
- package/assets/icons/definitions/unlock.doc.mjs +9 -0
- package/assets/icons/definitions/upload.doc.mjs +10 -0
- package/assets/icons/definitions/user.doc.mjs +9 -0
- package/assets/icons/definitions/userAdd.doc.mjs +9 -0
- package/assets/icons/definitions/userCircle.doc.mjs +9 -0
- package/assets/icons/definitions/users.doc.mjs +9 -0
- package/assets/icons/definitions/video.doc.mjs +9 -0
- package/assets/icons/definitions/viewColumns.doc.mjs +10 -0
- package/assets/icons/definitions/warning.doc.mjs +10 -0
- package/assets/icons/definitions/work.doc.mjs +9 -0
- package/assets/icons/definitions/wrench.doc.mjs +10 -0
- package/assets/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs +16 -3
- package/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs +16 -1
- package/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs +9 -1
- package/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs +17 -1
- package/assets/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs +18 -1
- package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs +1 -0
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSnapPoints.doc.mjs +8 -0
- package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs +1 -0
- package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs +1 -0
- package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs +1 -0
- package/assets/templates/blocks/components/Button/ButtonFloating.doc.mjs +1 -0
- package/assets/templates/blocks/components/Button/ButtonWithIcon.doc.mjs +6 -0
- package/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs +5 -0
- package/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjs +8 -0
- package/assets/templates/blocks/components/Center/CenterInsideACard.doc.mjs +1 -0
- package/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs +5 -0
- package/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs +13 -1
- package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs +17 -1
- package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs +1 -0
- package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs +1 -0
- package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs +15 -1
- package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs +15 -1
- package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs +6 -0
- package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs +1 -0
- package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs +1 -0
- package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs +6 -0
- package/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjs +3 -2
- package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.doc.mjs +6 -0
- package/assets/templates/blocks/components/DropdownMenu/DropdownMenuBottomSheet.doc.mjs +6 -0
- package/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs +1 -0
- package/assets/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs +1 -0
- package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs +1 -0
- package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs +1 -0
- package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs +1 -0
- package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.doc.mjs +1 -0
- package/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs +10 -1
- package/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs +1 -0
- package/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs +1 -0
- package/assets/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs +1 -0
- package/assets/templates/blocks/components/Item/ItemDocumentTabs.doc.mjs +1 -0
- package/assets/templates/blocks/components/Item/ItemShowcase.doc.mjs +1 -0
- package/assets/templates/blocks/components/Item/ItemWithMetadata.doc.mjs +1 -1
- package/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjs +1 -1
- package/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs +7 -0
- package/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs +1 -0
- package/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs +1 -0
- package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.doc.mjs +6 -0
- package/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs +5 -0
- package/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs +5 -0
- package/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs +1 -0
- package/assets/templates/blocks/components/Popover/PopoverBottomSheetAlternative.doc.mjs +1 -0
- package/assets/templates/blocks/components/Section/SectionWashHighlight.doc.mjs +1 -0
- package/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjs +1 -1
- package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.doc.mjs +8 -1
- package/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs +1 -0
- package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs +1 -0
- package/assets/templates/blocks/components/TextInput/TextInputIcon.doc.mjs +1 -0
- package/assets/templates/blocks/components/TextInput/TextInputSearch.doc.mjs +1 -0
- package/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs +11 -0
- package/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs +16 -1
- package/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs +6 -0
- package/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs +13 -1
- package/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs +6 -0
- package/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs +1 -0
- package/assets/templates/blocks/components/Token/TokenIcon.doc.mjs +6 -0
- package/assets/templates/blocks/components/Token/TokenShowcase.doc.mjs +1 -0
- package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs +1 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs +1 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs +1 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs +1 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs +1 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs +1 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs +1 -0
- package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs +1 -0
- package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs +6 -0
- package/assets/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs +8 -0
- package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs +8 -0
- package/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs +5 -0
- package/assets/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs +5 -0
- package/assets/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs +1 -0
- package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs +1 -0
- package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs +13 -1
- package/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs +1 -0
- package/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs +1 -0
- package/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs +6 -0
- package/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs +1 -0
- package/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs +1 -0
- package/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs +1 -0
- package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjs +15 -1
- package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjs +10 -2
- package/assets/templates/pages/ai-chat/template.doc.mjs +9 -0
- package/assets/templates/pages/ai-chat-landing/template.doc.mjs +11 -0
- package/assets/templates/pages/canvas-editor/template.doc.mjs +17 -0
- package/assets/templates/pages/centered-hero/template.doc.mjs +1 -0
- package/assets/templates/pages/checkout-wizard/template.doc.mjs +7 -0
- package/assets/templates/pages/contact-form/template.doc.mjs +5 -0
- package/assets/templates/pages/dashboard/template.doc.mjs +6 -0
- package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +8 -0
- package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +7 -0
- package/assets/templates/pages/dashboard-comparison/template.doc.mjs +8 -0
- package/assets/templates/pages/dashboard-composition/template.doc.mjs +1 -0
- package/assets/templates/pages/dashboard-progress/template.doc.mjs +7 -0
- package/assets/templates/pages/dashboard-scorecard/template.doc.mjs +7 -0
- package/assets/templates/pages/detail-page/template.doc.mjs +10 -0
- package/assets/templates/pages/documentation-design/template.doc.mjs +6 -1
- package/assets/templates/pages/documentation-technical/template.doc.mjs +5 -0
- package/assets/templates/pages/editor/template.doc.mjs +25 -0
- package/assets/templates/pages/file-explorer/template.doc.mjs +15 -0
- package/assets/templates/pages/form-wizard-inline/template.doc.mjs +1 -0
- package/assets/templates/pages/form-wizard-vertical/template.doc.mjs +12 -0
- package/assets/templates/pages/gallery-hero/template.doc.mjs +1 -0
- package/assets/templates/pages/ide/template.doc.mjs +5 -0
- package/assets/templates/pages/incident-console/template.doc.mjs +1 -0
- package/assets/templates/pages/kanban-board/template.doc.mjs +11 -0
- package/assets/templates/pages/library/template.doc.mjs +1 -0
- package/assets/templates/pages/login/template.doc.mjs +1 -0
- package/assets/templates/pages/login-card/template.doc.mjs +1 -0
- package/assets/templates/pages/login-split/template.doc.mjs +1 -0
- package/assets/templates/pages/login-sso/template.doc.mjs +1 -0
- package/assets/templates/pages/messaging-shell/template.doc.mjs +13 -0
- package/assets/templates/pages/payment-form/template.doc.mjs +6 -0
- package/assets/templates/pages/product-detail/template.doc.mjs +1 -0
- package/assets/templates/pages/product-gallery/template.doc.mjs +1 -0
- package/assets/templates/pages/settings/template.doc.mjs +1 -0
- package/assets/templates/pages/settings-dialog/template.doc.mjs +49 -0
- package/assets/templates/pages/settings-sidebar/template.doc.mjs +16 -0
- package/assets/templates/pages/shell-nav/template.doc.mjs +6 -0
- package/assets/templates/pages/shell-side-nav/template.doc.mjs +11 -0
- package/assets/templates/pages/shell-top-nav/template.doc.mjs +16 -0
- package/assets/templates/pages/table-collapsible/template.doc.mjs +5 -0
- package/assets/templates/pages/table-comparison/template.doc.mjs +12 -0
- package/assets/templates/pages/table-filter/template.doc.mjs +19 -0
- package/assets/templates/pages/table-grouped/template.doc.mjs +13 -0
- package/assets/templates/pages/table-inbox/template.doc.mjs +17 -0
- package/assets/templates/pages/table-page/template.doc.mjs +1 -0
- package/assets/templates/pages/table-tree/template.doc.mjs +12 -0
- package/assets/templates/pages/theme-showcase/template.doc.mjs +19 -0
- package/assets/templates/pages/work-item-detail/template.doc.mjs +13 -0
- package/authoring/codemod/codemod.doc.mjs +1 -1
- package/authoring/config/config.doc.mjs +12 -4
- package/authoring/config/parse.d.mts +1 -0
- package/authoring/config/parse.mjs +1 -0
- package/authoring/config/type.ts +8 -0
- package/authoring/debug/parse.d.mts +1 -1
- package/authoring/discover/discover.doc.mjs +1 -1
- package/authoring/discover/parse.d.mts +13 -3
- package/authoring/discover/parse.mjs +57 -4
- package/authoring/discover/parse.test.mjs +34 -0
- package/authoring/discover/type.ts +22 -2
- package/authoring/doctypes/_schema.d.mts +23 -0
- package/authoring/doctypes/_schema.mjs +9 -0
- package/authoring/doctypes/base/graph-fields.doc.mjs +7 -1
- package/authoring/doctypes/base/type.ts +10 -1
- package/authoring/doctypes/doc-stability-types.test.mjs +91 -0
- package/authoring/doctypes/enum/type.ts +4 -0
- package/authoring/doctypes/icon-definition/icon-definition.doc.d.mts +9 -0
- package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +89 -0
- package/authoring/doctypes/icon-definition/parse.d.mts +40 -0
- package/authoring/doctypes/icon-definition/parse.mjs +89 -0
- package/authoring/doctypes/icon-definition/parse.test.mjs +78 -0
- package/authoring/doctypes/icon-definition/type.ts +55 -0
- package/authoring/doctypes/icon-set/icon-names.d.mts +14 -0
- package/authoring/doctypes/icon-set/icon-names.mjs +44 -0
- package/authoring/doctypes/icon-set/icon-names.test.mjs +26 -0
- package/authoring/doctypes/icon-set/icon-set-data.doc.d.mts +10 -0
- package/authoring/doctypes/icon-set/icon-set-data.doc.mjs +169 -0
- package/authoring/doctypes/icon-set/icon-set.doc.d.mts +9 -0
- package/authoring/doctypes/icon-set/icon-set.doc.mjs +90 -0
- package/authoring/doctypes/icon-set/parse.d.mts +105 -0
- package/authoring/doctypes/icon-set/parse.mjs +322 -0
- package/authoring/doctypes/icon-set/parse.test.mjs +179 -0
- package/authoring/doctypes/icon-set/type.ts +182 -0
- package/authoring/doctypes/load-contract.test.mjs +17 -4
- package/authoring/doctypes/namespace/namespace.doc.mjs +7 -0
- package/authoring/doctypes/namespace/type.ts +7 -0
- package/authoring/doctypes/parse.d.mts +6 -2
- package/authoring/doctypes/parse.mjs +10 -2
- package/authoring/doctypes/reference/type.ts +14 -2
- package/authoring/doctypes/schema/type.ts +4 -0
- package/authoring/doctypes/template/parse.d.mts +4 -0
- package/authoring/doctypes/template/parse.mjs +11 -0
- package/authoring/doctypes/template/template.doc.mjs +7 -0
- package/authoring/doctypes/template/type.ts +10 -0
- package/authoring/doctypes/types.ts +3 -1
- package/authoring/gap-report/gap-report.doc.mjs +1 -1
- package/authoring/identity/type.ts +11 -3
- package/authoring/index.d.mts +2 -0
- package/authoring/index.d.ts +15 -0
- package/authoring/index.mjs +5 -1
- package/authoring/integration/integration.doc.mjs +23 -6
- package/authoring/integration/schema.d.mts +6 -0
- package/authoring/integration/schema.mjs +4 -0
- package/authoring/integration/type.ts +8 -0
- package/clients/cli/commands/discover.icon-sets.test.mjs +133 -0
- package/clients/cli/commands/discover.mjs +3 -0
- package/clients/cli/commands/docs.doc.mjs +1 -1
- package/clients/cli/commands/docs.mjs +50 -8
- package/clients/cli/commands/docs.test.mjs +1 -1
- package/clients/cli/commands/doctor-integration-docs.doc.mjs +1 -1
- package/clients/cli/commands/doctor-integration.test.mjs +38 -0
- package/clients/cli/commands/doctor.doc.mjs +1 -1
- package/clients/cli/commands/doctor.mjs +167 -17
- package/clients/cli/commands/experimental/icon.mjs +462 -0
- package/clients/cli/commands/experimental/index.mjs +43 -0
- package/clients/cli/commands/experimental-icon-add.doc.mjs +105 -0
- package/clients/cli/commands/experimental-icon-map.doc.mjs +57 -0
- package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +72 -0
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +76 -0
- package/clients/cli/commands/experimental-icon-use.doc.mjs +42 -0
- package/clients/cli/commands/experimental-icon.doc.mjs +68 -0
- package/clients/cli/commands/experimental.doc.mjs +28 -0
- package/clients/cli/commands/icon-authoring.test.mjs +1035 -0
- package/clients/cli/commands/icon-sets-guide.test.mjs +186 -0
- package/clients/cli/commands/icon.test.mjs +96 -0
- package/clients/cli/commands/integration-check.doc.mjs +11 -0
- package/clients/cli/commands/integration-check.test.mjs +36 -3
- package/clients/cli/commands/integration-pack.doc.mjs +1 -1
- package/clients/cli/commands/integration-verify.doc.mjs +1 -1
- package/clients/cli/commands/integration.mjs +38 -4
- package/clients/cli/commands/template.icons.test.mjs +132 -0
- package/clients/cli/commands/template.mjs +36 -2
- package/clients/cli/commands/text-json-parity.test.mjs +51 -0
- package/clients/cli/commands/theme-targets.doc.mjs +1 -1
- package/clients/cli/commands/upgrade.doc.mjs +2 -2
- package/clients/cli/formatters/index.mjs +8 -1
- package/clients/cli/formatters/index.test.mjs +15 -0
- package/clients/cli/index.mjs +13 -0
- package/clients/cli/lib/define-command.mjs +9 -3
- package/foundation/agent-docs/agent-docs.d.mts +14 -2
- package/foundation/agent-docs/agent-docs.mjs +65 -4
- package/foundation/agent-docs/agent-docs.test.mjs +107 -0
- package/foundation/config/config-writer.d.mts +27 -0
- package/foundation/config/config-writer.mjs +202 -0
- package/foundation/config/config-writer.test.mjs +84 -0
- package/foundation/config/project.d.mts +24 -0
- package/foundation/config/project.mjs +105 -3
- package/foundation/discovery/authoring-self-docs.d.mts +22 -1
- package/foundation/discovery/authoring-self-docs.mjs +69 -19
- package/foundation/discovery/authoring-self-docs.test.mjs +19 -3
- package/foundation/discovery/authoring-surface.mjs +13 -6
- package/foundation/discovery/cli-self-docs.d.mts +6 -0
- package/foundation/discovery/cli-self-docs.mjs +58 -6
- package/foundation/discovery/component-discovery.export-names.test.mjs +31 -0
- package/foundation/discovery/doc-stability.d.mts +32 -0
- package/foundation/discovery/doc-stability.mjs +100 -0
- package/foundation/discovery/doc-types.d.mts +2 -2
- package/foundation/discovery/doc-types.mjs +8 -3
- package/foundation/discovery/doc-types.test.mjs +30 -0
- package/foundation/discovery/docs-discovery.d.mts +93 -2
- package/foundation/discovery/docs-discovery.mjs +237 -8
- package/foundation/discovery/icon-definition-discovery.d.mts +59 -0
- package/foundation/discovery/icon-definition-discovery.mjs +117 -0
- package/foundation/discovery/icon-ranking.d.mts +113 -0
- package/foundation/discovery/icon-ranking.mjs +305 -0
- package/foundation/discovery/icon-set-checks.d.mts +142 -0
- package/foundation/discovery/icon-set-checks.mjs +742 -0
- package/foundation/discovery/icon-set-checks.test.mjs +905 -0
- package/foundation/discovery/icon-set-discovery.d.mts +229 -0
- package/foundation/discovery/icon-set-discovery.mjs +464 -0
- package/foundation/discovery/icon-set-discovery.test.mjs +320 -0
- package/foundation/discovery/icon-set-writer.d.mts +323 -0
- package/foundation/discovery/icon-set-writer.mjs +1181 -0
- package/foundation/discovery/integration-doc-files.mjs +17 -2
- package/foundation/discovery/integration-doc-files.test.mjs +29 -0
- package/foundation/discovery/module-exports.d.mts +122 -0
- package/foundation/discovery/module-exports.mjs +682 -11
- package/foundation/discovery/runner-allowlist.d.mts +2 -0
- package/foundation/discovery/runner-allowlist.mjs +4 -0
- package/foundation/discovery/runner-commands.d.mts +29 -13
- package/foundation/discovery/runner-commands.mjs +253 -17
- package/foundation/discovery/runner-commands.test.mjs +4 -1
- package/foundation/discovery/stray-pointers.mjs +11 -5
- package/foundation/discovery/stray-pointers.test.mjs +6 -0
- package/foundation/discovery/template-adapter.d.mts +5 -0
- package/foundation/discovery/template-adapter.mjs +17 -0
- package/foundation/discovery/template-icon-notes.d.mts +15 -0
- package/foundation/discovery/template-icon-notes.mjs +66 -0
- package/foundation/discovery/template-icons.d.mts +156 -0
- package/foundation/discovery/template-icons.mjs +712 -0
- package/foundation/discovery/template-icons.test.mjs +457 -0
- package/foundation/discovery/theme-discovery.d.mts +15 -0
- package/foundation/discovery/theme-discovery.mjs +137 -61
- package/foundation/doc-compiler/bundle.mjs +14 -0
- package/foundation/doc-compiler/compile.d.mts +1 -1
- package/foundation/doc-compiler/compile.mjs +18 -3
- package/foundation/doc-compiler/doc-loads.test.mjs +36 -0
- package/foundation/doc-compiler/doc-syntax.d.mts +194 -0
- package/foundation/doc-compiler/doc-syntax.mjs +739 -0
- package/foundation/doc-compiler/doc-syntax.test.mjs +383 -0
- package/foundation/doc-compiler/inputs.d.mts +2 -2
- package/foundation/doc-compiler/inputs.mjs +17 -1
- package/foundation/doc-compiler/inputs.test.mjs +1 -0
- package/foundation/doc-compiler/links.d.mts +13 -16
- package/foundation/doc-compiler/links.mjs +40 -7
- package/foundation/doc-compiler/lower-doc.test.mjs +1 -1
- package/foundation/doc-compiler/read.d.mts +2 -2
- package/foundation/doc-compiler/read.mjs +4 -4
- package/foundation/doc-compiler/tree.d.mts +26 -0
- package/foundation/doc-compiler/tree.mjs +80 -4
- package/foundation/doc-compiler/tree.test.mjs +34 -0
- package/foundation/env/package-manager.d.mts +18 -0
- package/foundation/env/package-manager.mjs +40 -0
- package/foundation/fs/paths.d.mts +3 -1
- package/foundation/fs/paths.mjs +8 -2
- package/foundation/identity/provider-identity.mjs +2 -0
- package/foundation/integrations/cli-requirement.d.mts +84 -0
- package/foundation/integrations/cli-requirement.mjs +139 -1
- package/foundation/integrations/cli-requirement.test.mjs +32 -2
- package/foundation/integrations/contribution-inventory.d.mts +12 -5
- package/foundation/integrations/contribution-inventory.mjs +66 -3
- package/foundation/integrations/integrations.d.mts +5 -0
- package/foundation/integrations/integrations.mjs +6 -2
- package/foundation/integrations/manifest-writer.d.mts +3 -0
- package/foundation/integrations/manifest-writer.mjs +51 -5
- package/foundation/integrations/manifest-writer.test.mjs +42 -0
- package/foundation/integrations/validate-contributions.d.mts +53 -0
- package/foundation/integrations/validate-contributions.mjs +791 -1
- package/foundation/response/response-types.doc.mjs +63 -6
- package/package.json +9 -9
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
import * as fs from 'node:fs';
|
|
25
25
|
import * as path from 'node:path';
|
|
26
|
+
import {spawnSync} from 'node:child_process';
|
|
27
|
+
import {builtinModules} from 'node:module';
|
|
26
28
|
import {parse as parseModule} from '@babel/parser';
|
|
27
29
|
import {isValidSemver} from '../env/semver.mjs';
|
|
28
30
|
import {findProjectCoreDir} from '../fs/paths.mjs';
|
|
@@ -49,6 +51,7 @@ import {
|
|
|
49
51
|
TEMPLATE_CANDIDATE_RE,
|
|
50
52
|
} from './contribution-fixes.mjs';
|
|
51
53
|
import {MANIFEST_BASENAMES} from './integrations.mjs';
|
|
54
|
+
import {npmCommand} from '../release/cache.mjs';
|
|
52
55
|
import {discoverIntegrationCodemods} from '../../assets/codemods/integration-discovery.mjs';
|
|
53
56
|
import {discoverIntegrationTemplatesForOne} from '../discovery/template-adapter.mjs';
|
|
54
57
|
import * as componentDiscovery from '../discovery/component-discovery.mjs';
|
|
@@ -256,7 +259,7 @@ export function rootProblem(root) {
|
|
|
256
259
|
* `unreadable_root` error. The contribution checks skip all three.
|
|
257
260
|
* A readable root reached through a symlinked folder is a `symlinked_root`
|
|
258
261
|
* warning: npm pack does not follow it, so the published package loses it.
|
|
259
|
-
* @param {{components?: string, templates?: string, codemods?: string, docs?: string, themes?: string, __manifestFile?: string}} resolved
|
|
262
|
+
* @param {{components?: string, templates?: string, codemods?: string, docs?: string, themes?: string, iconSets?: string, __manifestFile?: string}} resolved
|
|
260
263
|
* absolute resolved roots (undefined when not declared)
|
|
261
264
|
* @param {Issue[]} issues
|
|
262
265
|
* @param {string} [packageDir] the package the roots belong to
|
|
@@ -268,6 +271,7 @@ function checkRoots(resolved, issues, packageDir) {
|
|
|
268
271
|
'codemods',
|
|
269
272
|
'docs',
|
|
270
273
|
'themes',
|
|
274
|
+
'iconSets',
|
|
271
275
|
]);
|
|
272
276
|
for (const kind of kinds) {
|
|
273
277
|
const root = resolved[kind];
|
|
@@ -1023,6 +1027,791 @@ export async function blockComponentsCheck(integration) {
|
|
|
1023
1027
|
};
|
|
1024
1028
|
}
|
|
1025
1029
|
|
|
1030
|
+
/** A package's own template category: `"<Group> - <Variant>"`. */
|
|
1031
|
+
/**
|
|
1032
|
+
* A category written as a path, such as `components/Button`: a slash with no
|
|
1033
|
+
* " - " between a group and a variant. Single words (`Settings`) and
|
|
1034
|
+
* `"<Group> - <Variant>"` (`Table - Index/Detail`) are fine.
|
|
1035
|
+
*/
|
|
1036
|
+
// A category written as a path: lowercase first segment and no spaces
|
|
1037
|
+
// (`components/X`, `blocks/forms`), not a name with a slash in it (`UI/UX`,
|
|
1038
|
+
// `A/B Testing`).
|
|
1039
|
+
const PATH_CATEGORY = /^[a-z0-9][\w.-]*(?:\/[\w.-]+)+$/u;
|
|
1040
|
+
|
|
1041
|
+
/** Imports a browser cannot load, which a showcase must not make. */
|
|
1042
|
+
const SERVER_ONLY_IMPORTS =
|
|
1043
|
+
/^(?:server-only|next\/headers|next\/server|next\/cache|node:.+)$/u;
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Every spelling a glob's `{a,b}` braces stand for, nested braces included.
|
|
1047
|
+
* @param {string} pattern
|
|
1048
|
+
* @returns {string[]}
|
|
1049
|
+
*/
|
|
1050
|
+
function expandBraces(pattern) {
|
|
1051
|
+
let depth = 0;
|
|
1052
|
+
let open = -1;
|
|
1053
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
1054
|
+
const ch = pattern[i];
|
|
1055
|
+
if (ch === '\\') {
|
|
1056
|
+
i++;
|
|
1057
|
+
} else if (ch === '{') {
|
|
1058
|
+
if (depth++ === 0) open = i;
|
|
1059
|
+
} else if (ch === '}' && depth > 0 && --depth === 0) {
|
|
1060
|
+
const body = pattern.slice(open + 1, i);
|
|
1061
|
+
/** @type {string[]} */
|
|
1062
|
+
const parts = [];
|
|
1063
|
+
let level = 0;
|
|
1064
|
+
let from = 0;
|
|
1065
|
+
for (let j = 0; j < body.length; j++) {
|
|
1066
|
+
if (body[j] === '{') level++;
|
|
1067
|
+
else if (body[j] === '}') level--;
|
|
1068
|
+
else if (body[j] === ',' && level === 0) {
|
|
1069
|
+
parts.push(body.slice(from, j));
|
|
1070
|
+
from = j + 1;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
parts.push(body.slice(from));
|
|
1074
|
+
if (parts.length < 2) continue;
|
|
1075
|
+
const head = pattern.slice(0, open);
|
|
1076
|
+
const tail = pattern.slice(i + 1);
|
|
1077
|
+
return parts.flatMap(part => expandBraces(head + part + tail));
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
return [pattern];
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* One brace-free glob as a regular expression source: `**`, `*`, `?` and
|
|
1085
|
+
* `[…]` classes (`[!…]` negated), as npm's `files` matching reads them.
|
|
1086
|
+
* @param {string} pattern
|
|
1087
|
+
*/
|
|
1088
|
+
function globSource(pattern) {
|
|
1089
|
+
let out = '';
|
|
1090
|
+
for (let i = 0; i < pattern.length; i++) {
|
|
1091
|
+
const ch = pattern[i];
|
|
1092
|
+
if (ch === '*') {
|
|
1093
|
+
if (pattern[i + 1] === '*') {
|
|
1094
|
+
const slashAfter = pattern[i + 2] === '/';
|
|
1095
|
+
const atStart = i === 0 || pattern[i - 1] === '/';
|
|
1096
|
+
if (atStart && slashAfter) {
|
|
1097
|
+
out += '(?:.*/)?';
|
|
1098
|
+
i += 2;
|
|
1099
|
+
} else if (atStart && i + 2 === pattern.length) {
|
|
1100
|
+
out = out.replace(/\/$/u, '') + '(?:/.*)?';
|
|
1101
|
+
i += 1;
|
|
1102
|
+
} else {
|
|
1103
|
+
out += '.*';
|
|
1104
|
+
i += 1;
|
|
1105
|
+
}
|
|
1106
|
+
} else {
|
|
1107
|
+
out += '[^/]*';
|
|
1108
|
+
}
|
|
1109
|
+
} else if (ch === '?') {
|
|
1110
|
+
out += '[^/]';
|
|
1111
|
+
} else if (ch === '[') {
|
|
1112
|
+
const close = pattern.indexOf(']', i + 2);
|
|
1113
|
+
if (close === -1) {
|
|
1114
|
+
out += '\\[';
|
|
1115
|
+
} else {
|
|
1116
|
+
let body = pattern.slice(i + 1, close);
|
|
1117
|
+
const negated = body.startsWith('!') || body.startsWith('^');
|
|
1118
|
+
if (negated) body = body.slice(1);
|
|
1119
|
+
out += `[${negated ? '^' : ''}${body.replace(/[\\\]]/gu, '\\$&')}]`;
|
|
1120
|
+
i = close;
|
|
1121
|
+
}
|
|
1122
|
+
} else if (ch === '\\' && i + 1 < pattern.length) {
|
|
1123
|
+
out += pattern[++i].replace(/[.+^${}()|[\]\\*?/]/gu, '\\$&');
|
|
1124
|
+
} else {
|
|
1125
|
+
out += ch.replace(/[.+^${}()|[\]\\]/gu, '\\$&');
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
return out;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* The paths npm packs for the package in `base`, read from
|
|
1133
|
+
* `npm pack --dry-run --json --ignore-scripts` (nothing runs, nothing is
|
|
1134
|
+
* written), started the way the CLI starts npm everywhere else, or why npm
|
|
1135
|
+
* could not answer.
|
|
1136
|
+
* @param {string} base
|
|
1137
|
+
* @returns {{paths: Set<string>} | {error: string}}
|
|
1138
|
+
*/
|
|
1139
|
+
function npmPackedPaths(base) {
|
|
1140
|
+
let npm;
|
|
1141
|
+
try {
|
|
1142
|
+
npm = npmCommand();
|
|
1143
|
+
} catch {
|
|
1144
|
+
return {error: 'npm was not found'};
|
|
1145
|
+
}
|
|
1146
|
+
const result = spawnSync(
|
|
1147
|
+
npm.command,
|
|
1148
|
+
[
|
|
1149
|
+
...npm.prefix,
|
|
1150
|
+
'pack',
|
|
1151
|
+
'--dry-run',
|
|
1152
|
+
'--json',
|
|
1153
|
+
'--ignore-scripts',
|
|
1154
|
+
'--silent',
|
|
1155
|
+
],
|
|
1156
|
+
{
|
|
1157
|
+
cwd: base,
|
|
1158
|
+
encoding: 'utf-8',
|
|
1159
|
+
shell: false,
|
|
1160
|
+
timeout: 60_000,
|
|
1161
|
+
// One line per packed file: room for a very large package.
|
|
1162
|
+
maxBuffer: 256 * 1024 * 1024,
|
|
1163
|
+
},
|
|
1164
|
+
);
|
|
1165
|
+
if (result.error) return {error: `npm did not run (${result.error.message})`};
|
|
1166
|
+
if (result.status !== 0) {
|
|
1167
|
+
let code = '';
|
|
1168
|
+
try {
|
|
1169
|
+
code = JSON.parse(result.stdout)?.error?.code ?? '';
|
|
1170
|
+
} catch {
|
|
1171
|
+
// not JSON
|
|
1172
|
+
}
|
|
1173
|
+
return {
|
|
1174
|
+
error: `npm pack failed${code ? ` (${code})` : ` with exit ${result.status}`}`,
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
try {
|
|
1178
|
+
const [info] = JSON.parse(result.stdout);
|
|
1179
|
+
if (Array.isArray(info?.files)) {
|
|
1180
|
+
return {
|
|
1181
|
+
paths: new Set(
|
|
1182
|
+
info.files.map((/** @type {{path: string}} */ f) => f.path),
|
|
1183
|
+
),
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
} catch {
|
|
1187
|
+
// fall through
|
|
1188
|
+
}
|
|
1189
|
+
return {error: 'npm pack printed no file list'};
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* The ignore files npm reads for one path in a package with no `files`
|
|
1194
|
+
* field: in the root and each folder down to the path's own, `.npmignore`,
|
|
1195
|
+
* or `.gitignore` where that folder has none. Root first, each relative to
|
|
1196
|
+
* the package root.
|
|
1197
|
+
* @param {string} base
|
|
1198
|
+
* @param {string} rel POSIX, relative to the package root
|
|
1199
|
+
* @returns {string[]}
|
|
1200
|
+
*/
|
|
1201
|
+
function ignoreFilesFor(base, rel) {
|
|
1202
|
+
/** @type {string[]} */
|
|
1203
|
+
const found = [];
|
|
1204
|
+
const folders = rel.split('/').slice(0, -1);
|
|
1205
|
+
for (let depth = 0; depth <= folders.length; depth++) {
|
|
1206
|
+
const folder = folders.slice(0, depth).join('/');
|
|
1207
|
+
const file = ['.npmignore', '.gitignore'].find(name =>
|
|
1208
|
+
fs.existsSync(path.join(base, folder, name)),
|
|
1209
|
+
);
|
|
1210
|
+
if (file) found.push(folder ? `${folder}/${file}` : file);
|
|
1211
|
+
}
|
|
1212
|
+
return found;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* The note for an asset a package with no `files` field leaves out through
|
|
1217
|
+
* an ignore file, naming the line that drops it, never a `files` field,
|
|
1218
|
+
* which would leave out everything else. The deepest file with a matching
|
|
1219
|
+
* line is named; an entry is read relative to its own folder.
|
|
1220
|
+
* @param {string} base
|
|
1221
|
+
* @param {string} template
|
|
1222
|
+
* @param {string} asset
|
|
1223
|
+
* @param {boolean} [nestedOnly] with a `files` field npm skips the root's
|
|
1224
|
+
* ignore file but still reads those in folders below it
|
|
1225
|
+
*/
|
|
1226
|
+
function ignoreFix(base, template, asset, nestedOnly = false) {
|
|
1227
|
+
const files = ignoreFilesFor(base, asset).filter(
|
|
1228
|
+
file => !nestedOnly || file.includes('/'),
|
|
1229
|
+
);
|
|
1230
|
+
for (const file of [...files].reverse()) {
|
|
1231
|
+
const folder = path.posix.dirname(file);
|
|
1232
|
+
const within = folder === '.' ? asset : asset.slice(folder.length + 1);
|
|
1233
|
+
/** @type {string[]} */
|
|
1234
|
+
let lines;
|
|
1235
|
+
try {
|
|
1236
|
+
lines = fs.readFileSync(path.join(base, file), 'utf8').split(/\r?\n/);
|
|
1237
|
+
} catch {
|
|
1238
|
+
continue;
|
|
1239
|
+
}
|
|
1240
|
+
const line = lines.find(
|
|
1241
|
+
entry =>
|
|
1242
|
+
entry.trim() !== '' &&
|
|
1243
|
+
!entry.trim().startsWith('#') &&
|
|
1244
|
+
!entry.trim().startsWith('!') &&
|
|
1245
|
+
!outsideFiles(within, [entry.trim()]),
|
|
1246
|
+
);
|
|
1247
|
+
if (line) {
|
|
1248
|
+
return `${template}: loads ${asset}, which npm leaves out of the package because ${file} drops it, so the template breaks once installed. Fix: remove or narrow the line \`${line.trim()}\` in ${file}, and confirm with \`npm pack --dry-run\`.`;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
const file = files.at(-1) ?? '.npmignore';
|
|
1252
|
+
return `${template}: loads ${asset}, which npm leaves out of the package because an ignore file drops it, so the template breaks once installed. Fix: remove the line in ${file} (or another ignore file on its path) that matches ${asset}, and confirm with \`npm pack --dry-run\`.`;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* Whether no `files` entry can reach a path, read case-insensitively and
|
|
1257
|
+
* generously (`{a,b}` braces, globs, a no-slash entry at any depth, an entry
|
|
1258
|
+
* for the path or any folder above it), for when npm cannot say what it
|
|
1259
|
+
* packs: a path this misses is out of the package however npm reads the list.
|
|
1260
|
+
* @param {string} rel POSIX, relative to the package root
|
|
1261
|
+
* @param {unknown} files
|
|
1262
|
+
*/
|
|
1263
|
+
export function outsideFiles(rel, files) {
|
|
1264
|
+
if (!Array.isArray(files)) return false;
|
|
1265
|
+
const parts = rel.split('/');
|
|
1266
|
+
const paths = parts.map((_, i) => parts.slice(0, i + 1).join('/'));
|
|
1267
|
+
return !files.some(entry => {
|
|
1268
|
+
if (typeof entry !== 'string' || entry.startsWith('!')) return false;
|
|
1269
|
+
const trimmed = entry
|
|
1270
|
+
.replace(/^\.?\//u, '')
|
|
1271
|
+
.replace(/\/+$/u, '')
|
|
1272
|
+
.replace(/\/\*$/u, '/**');
|
|
1273
|
+
return expandBraces(trimmed).some(spelling => {
|
|
1274
|
+
const pattern = new RegExp(`^${globSource(spelling)}$`, 'iu');
|
|
1275
|
+
return spelling.includes('/') || /^\.?\//u.test(entry)
|
|
1276
|
+
? paths.some(at => pattern.test(at))
|
|
1277
|
+
: parts.some(name => pattern.test(name));
|
|
1278
|
+
});
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* The `!` entry of a `files` field that leaves out `rel` or a folder above
|
|
1284
|
+
* it, as written; null when none does.
|
|
1285
|
+
* @param {string} rel package-relative path
|
|
1286
|
+
* @param {unknown} files the `files` field
|
|
1287
|
+
* @returns {string | null}
|
|
1288
|
+
*/
|
|
1289
|
+
export function negatedFilesEntry(rel, files) {
|
|
1290
|
+
if (!Array.isArray(files)) return null;
|
|
1291
|
+
const parts = rel.split('/');
|
|
1292
|
+
const paths = parts.map((_, i) => parts.slice(0, i + 1).join('/'));
|
|
1293
|
+
for (const entry of files) {
|
|
1294
|
+
if (typeof entry !== 'string' || !entry.startsWith('!')) continue;
|
|
1295
|
+
const trimmed = entry
|
|
1296
|
+
.slice(1)
|
|
1297
|
+
.replace(/^\.?\//u, '')
|
|
1298
|
+
.replace(/\/+$/u, '')
|
|
1299
|
+
.replace(/\/\*$/u, '/**');
|
|
1300
|
+
const hit = expandBraces(trimmed).some(spelling => {
|
|
1301
|
+
const pattern = new RegExp(`^${globSource(spelling)}$`, 'iu');
|
|
1302
|
+
return spelling.includes('/') || /^!\.?\//u.test(entry)
|
|
1303
|
+
? paths.some(at => pattern.test(at))
|
|
1304
|
+
: parts.some(name => pattern.test(name));
|
|
1305
|
+
});
|
|
1306
|
+
if (hit) return entry;
|
|
1307
|
+
}
|
|
1308
|
+
return null;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* The path a `new URL()` argument spells out: a string, or a template
|
|
1313
|
+
* literal with no expressions. Anything computed is not read.
|
|
1314
|
+
* @param {any} node
|
|
1315
|
+
* @returns {string | null}
|
|
1316
|
+
*/
|
|
1317
|
+
function literalPath(node) {
|
|
1318
|
+
if (node?.type === 'StringLiteral') return node.value;
|
|
1319
|
+
if (node?.type === 'TemplateLiteral' && node.expressions.length === 0) {
|
|
1320
|
+
return node.quasis[0]?.value?.cooked ?? null;
|
|
1321
|
+
}
|
|
1322
|
+
return null;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* A template module, parsed, so strings, JSX text, comments and type-only
|
|
1327
|
+
* imports and exports never count. `server` is what a browser cannot run: an
|
|
1328
|
+
* import, re-export or `require()` of a server-only module or an uninstalled
|
|
1329
|
+
* Node builtin, a read of `process.env` other than `process.env.NODE_ENV`
|
|
1330
|
+
* (which bundlers replace). `assets` are the relative paths it loads with `new URL('./x', import.meta.url)`. A module
|
|
1331
|
+
* that does not parse reports nothing; the template check owns that.
|
|
1332
|
+
* @param {string} source
|
|
1333
|
+
* @param {Set<string>} builtins
|
|
1334
|
+
* @returns {{server: string[], assets: string[]}}
|
|
1335
|
+
*/
|
|
1336
|
+
function readModule(source, builtins) {
|
|
1337
|
+
/** @type {any} */
|
|
1338
|
+
let ast;
|
|
1339
|
+
try {
|
|
1340
|
+
ast = parseModule(source, {
|
|
1341
|
+
sourceType: 'module',
|
|
1342
|
+
plugins: ['jsx', 'typescript'],
|
|
1343
|
+
errorRecovery: true,
|
|
1344
|
+
});
|
|
1345
|
+
} catch {
|
|
1346
|
+
return {server: [], assets: []};
|
|
1347
|
+
}
|
|
1348
|
+
/** @type {string[]} */
|
|
1349
|
+
const assets = [];
|
|
1350
|
+
/** @type {string[]} */
|
|
1351
|
+
const found = [];
|
|
1352
|
+
/** @param {unknown} spec */
|
|
1353
|
+
const checkSpec = spec => {
|
|
1354
|
+
if (
|
|
1355
|
+
typeof spec === 'string' &&
|
|
1356
|
+
(SERVER_ONLY_IMPORTS.test(spec) || builtins.has(spec))
|
|
1357
|
+
) {
|
|
1358
|
+
found.push(`imports '${spec}'`);
|
|
1359
|
+
}
|
|
1360
|
+
};
|
|
1361
|
+
/** @param {any} node */
|
|
1362
|
+
const visit = node => {
|
|
1363
|
+
if (!node || typeof node.type !== 'string') return;
|
|
1364
|
+
switch (node.type) {
|
|
1365
|
+
case 'ImportDeclaration':
|
|
1366
|
+
if (
|
|
1367
|
+
node.importKind !== 'type' &&
|
|
1368
|
+
!(
|
|
1369
|
+
node.specifiers.length > 0 &&
|
|
1370
|
+
node.specifiers.every(
|
|
1371
|
+
(/** @type {any} */ s) => s.importKind === 'type',
|
|
1372
|
+
)
|
|
1373
|
+
)
|
|
1374
|
+
) {
|
|
1375
|
+
checkSpec(node.source.value);
|
|
1376
|
+
}
|
|
1377
|
+
return;
|
|
1378
|
+
case 'ExportNamedDeclaration':
|
|
1379
|
+
case 'ExportAllDeclaration':
|
|
1380
|
+
if (
|
|
1381
|
+
node.source &&
|
|
1382
|
+
node.exportKind !== 'type' &&
|
|
1383
|
+
!(
|
|
1384
|
+
node.specifiers?.length > 0 &&
|
|
1385
|
+
node.specifiers.every(
|
|
1386
|
+
(/** @type {any} */ s) => s.exportKind === 'type',
|
|
1387
|
+
)
|
|
1388
|
+
)
|
|
1389
|
+
) {
|
|
1390
|
+
checkSpec(node.source.value);
|
|
1391
|
+
}
|
|
1392
|
+
break;
|
|
1393
|
+
case 'CallExpression':
|
|
1394
|
+
if (
|
|
1395
|
+
(node.callee.type === 'Identifier' &&
|
|
1396
|
+
node.callee.name === 'require') ||
|
|
1397
|
+
node.callee.type === 'Import'
|
|
1398
|
+
) {
|
|
1399
|
+
checkSpec(node.arguments[0]?.value);
|
|
1400
|
+
}
|
|
1401
|
+
break;
|
|
1402
|
+
case 'ImportExpression':
|
|
1403
|
+
checkSpec(node.source?.value);
|
|
1404
|
+
break;
|
|
1405
|
+
case 'NewExpression': {
|
|
1406
|
+
const [first, second] = node.arguments ?? [];
|
|
1407
|
+
if (
|
|
1408
|
+
node.callee.type === 'Identifier' &&
|
|
1409
|
+
node.callee.name === 'URL' &&
|
|
1410
|
+
literalPath(first) != null &&
|
|
1411
|
+
/^\.{1,2}\//u.test(/** @type {string} */ (literalPath(first))) &&
|
|
1412
|
+
second?.type === 'MemberExpression' &&
|
|
1413
|
+
second.object?.type === 'MetaProperty' &&
|
|
1414
|
+
second.object.meta?.name === 'import' &&
|
|
1415
|
+
second.object.property?.name === 'meta' &&
|
|
1416
|
+
!second.computed &&
|
|
1417
|
+
second.property?.name === 'url'
|
|
1418
|
+
) {
|
|
1419
|
+
assets.push(/** @type {string} */ (literalPath(first)));
|
|
1420
|
+
}
|
|
1421
|
+
break;
|
|
1422
|
+
}
|
|
1423
|
+
case 'MemberExpression': {
|
|
1424
|
+
const object = node.object;
|
|
1425
|
+
if (
|
|
1426
|
+
object.type === 'Identifier' &&
|
|
1427
|
+
object.name === 'process' &&
|
|
1428
|
+
!node.computed &&
|
|
1429
|
+
node.property.name === 'env'
|
|
1430
|
+
) {
|
|
1431
|
+
found.push('reads process.env');
|
|
1432
|
+
return;
|
|
1433
|
+
}
|
|
1434
|
+
if (
|
|
1435
|
+
object.type === 'MemberExpression' &&
|
|
1436
|
+
object.object.type === 'Identifier' &&
|
|
1437
|
+
object.object.name === 'process' &&
|
|
1438
|
+
!object.computed &&
|
|
1439
|
+
object.property.name === 'env'
|
|
1440
|
+
) {
|
|
1441
|
+
if (!node.computed && node.property.name === 'NODE_ENV') return;
|
|
1442
|
+
found.push('reads process.env');
|
|
1443
|
+
return;
|
|
1444
|
+
}
|
|
1445
|
+
break;
|
|
1446
|
+
}
|
|
1447
|
+
default:
|
|
1448
|
+
break;
|
|
1449
|
+
}
|
|
1450
|
+
for (const key of Object.keys(node)) {
|
|
1451
|
+
if (
|
|
1452
|
+
key === 'loc' ||
|
|
1453
|
+
key === 'start' ||
|
|
1454
|
+
key === 'end' ||
|
|
1455
|
+
key === 'leadingComments' ||
|
|
1456
|
+
key === 'trailingComments' ||
|
|
1457
|
+
key === 'innerComments'
|
|
1458
|
+
) {
|
|
1459
|
+
continue;
|
|
1460
|
+
}
|
|
1461
|
+
const value = node[key];
|
|
1462
|
+
if (Array.isArray(value)) value.forEach(visit);
|
|
1463
|
+
else if (value && typeof value === 'object') visit(value);
|
|
1464
|
+
}
|
|
1465
|
+
};
|
|
1466
|
+
visit(ast.program);
|
|
1467
|
+
return {server: found, assets};
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* What a package's examples need to work everywhere they are shown: template
|
|
1472
|
+
* lists, docs pages and catalog cards, which render each block alone from
|
|
1473
|
+
* the packed package. Four `next` notes, each with a fix to paste
|
|
1474
|
+
* (architecture:cli-surface INV35, DEC-11):
|
|
1475
|
+
* - `component_without_example`: a published component no block template
|
|
1476
|
+
* shows, as its `exampleFor` with `isShowcase: true` (or in
|
|
1477
|
+
* `alsoShowcaseFor`). A block named like a showcase that sets neither is a
|
|
1478
|
+
* standalone block and does not count. Exempt, because an example cannot
|
|
1479
|
+
* fix them: a hidden doc (`hidden: true`), a member of a family (its
|
|
1480
|
+
* family's example covers it), a doc kept off the overview
|
|
1481
|
+
* (`isHiddenFromOverview: true`, for parts that only make sense inside a
|
|
1482
|
+
* parent), and a `Utility` component (providers and context).
|
|
1483
|
+
* - `template_category`: a template `category` written as a path, such as
|
|
1484
|
+
* `components/X`, with a `"<Group> - <Variant>"` one to write.
|
|
1485
|
+
* - `showcase_not_standalone`: a showcase that imports what a browser cannot
|
|
1486
|
+
* load (`server-only`, `next/headers`, `next/server`, `next/cache`, a Node
|
|
1487
|
+
* built-in) or reads `process.env` past `NODE_ENV`. Type-only imports and
|
|
1488
|
+
* comments don't count, and live data is fine: a showcase may fetch
|
|
1489
|
+
* through the app. Only the showcase's own file is read.
|
|
1490
|
+
* - `template_asset_not_packed`: a file a template loads with `new URL(…,
|
|
1491
|
+
* import.meta.url)` that does not exist, or that npm leaves out of the
|
|
1492
|
+
* package (`npm pack --dry-run`). When npm cannot answer, an asset no
|
|
1493
|
+
* `files` entry can reach is still a note, and any other is returned in
|
|
1494
|
+
* `unchecked`.
|
|
1495
|
+
* @param {LoadedIntegration} integration
|
|
1496
|
+
* @returns {Promise<{notes: Note[], unchecked: Array<{file: string, asset: string, reason: string}>}>}
|
|
1497
|
+
*/
|
|
1498
|
+
export async function componentExamplesCheck(integration) {
|
|
1499
|
+
/** @type {Note[]} */
|
|
1500
|
+
const notes = [];
|
|
1501
|
+
const base = integration.__packageDir ?? integration.components ?? '';
|
|
1502
|
+
const root = integration.templates;
|
|
1503
|
+
/** @type {any[]} */
|
|
1504
|
+
let templates = [];
|
|
1505
|
+
if (root && !rootProblem(root)) {
|
|
1506
|
+
try {
|
|
1507
|
+
({templates} = await discoverIntegrationTemplatesForOne(integration));
|
|
1508
|
+
} catch {
|
|
1509
|
+
// Templates that cannot be read are reported by the template check.
|
|
1510
|
+
return {notes, unchecked: []};
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
const rel = (/** @type {string} */ file) => slash(path.relative(base, file));
|
|
1514
|
+
/** @type {unknown} */
|
|
1515
|
+
let packedFiles;
|
|
1516
|
+
/** @type {Set<string>} */
|
|
1517
|
+
const declared = new Set();
|
|
1518
|
+
try {
|
|
1519
|
+
const pkg = JSON.parse(
|
|
1520
|
+
fs.readFileSync(path.join(base, 'package.json'), 'utf8'),
|
|
1521
|
+
);
|
|
1522
|
+
packedFiles = pkg.files;
|
|
1523
|
+
for (const field of [
|
|
1524
|
+
'dependencies',
|
|
1525
|
+
'peerDependencies',
|
|
1526
|
+
'optionalDependencies',
|
|
1527
|
+
'devDependencies',
|
|
1528
|
+
]) {
|
|
1529
|
+
for (const name of Object.keys(pkg[field] ?? {})) declared.add(name);
|
|
1530
|
+
}
|
|
1531
|
+
} catch {
|
|
1532
|
+
packedFiles = undefined;
|
|
1533
|
+
}
|
|
1534
|
+
/** @type {{paths: Set<string>} | {error: string} | undefined} what npm packs, read once */
|
|
1535
|
+
let packed;
|
|
1536
|
+
/** @type {Array<{file: string, asset: string, reason: string}>} */
|
|
1537
|
+
const unchecked = [];
|
|
1538
|
+
// A bare builtin name the package installs from npm (`buffer`, `events`)
|
|
1539
|
+
// is that package, which bundlers ship to the browser.
|
|
1540
|
+
const builtins = new Set(builtinModules.filter(name => !declared.has(name)));
|
|
1541
|
+
/** @type {Set<string>} */
|
|
1542
|
+
const shown = new Set();
|
|
1543
|
+
for (const template of templates) {
|
|
1544
|
+
const docFile = rel(template.docPath ?? template.filePath);
|
|
1545
|
+
if (template.type === 'block') {
|
|
1546
|
+
if (typeof template.exampleFor === 'string' && template.isShowcase) {
|
|
1547
|
+
shown.add(template.exampleFor);
|
|
1548
|
+
}
|
|
1549
|
+
for (const name of template.alsoShowcaseFor ?? []) shown.add(name);
|
|
1550
|
+
}
|
|
1551
|
+
if (
|
|
1552
|
+
typeof template.category === 'string' &&
|
|
1553
|
+
template.category !== '' &&
|
|
1554
|
+
PATH_CATEGORY.test(template.category)
|
|
1555
|
+
) {
|
|
1556
|
+
const [group, ...rest] = template.category.split('/');
|
|
1557
|
+
const variant =
|
|
1558
|
+
rest.join(' ').trim() || template.displayName || template.id;
|
|
1559
|
+
const suggested = `${group.charAt(0).toUpperCase()}${group.slice(1)} - ${variant}`;
|
|
1560
|
+
notes.push({
|
|
1561
|
+
code: 'template_category',
|
|
1562
|
+
message: `${docFile}: category '${template.category}' reads as a file path, and \`astryx template\` lists templates under their category as written. Fix: category: '${suggested}', a "<Group> - <Variant>" name.`,
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
/** @type {string} */
|
|
1566
|
+
let source;
|
|
1567
|
+
try {
|
|
1568
|
+
source = fs.readFileSync(template.filePath, 'utf8');
|
|
1569
|
+
} catch {
|
|
1570
|
+
continue;
|
|
1571
|
+
}
|
|
1572
|
+
const parsed = readModule(source, builtins);
|
|
1573
|
+
// A block is a showcase when it says so, or when it shows components
|
|
1574
|
+
// through `alsoShowcaseFor`, which counts them as shown above.
|
|
1575
|
+
const showcase =
|
|
1576
|
+
template.isShowcase === true ||
|
|
1577
|
+
(Array.isArray(template.alsoShowcaseFor) &&
|
|
1578
|
+
template.alsoShowcaseFor.length > 0);
|
|
1579
|
+
if (template.type === 'block' && showcase) {
|
|
1580
|
+
const blocked = parsed.server;
|
|
1581
|
+
if (blocked.length > 0) {
|
|
1582
|
+
notes.push({
|
|
1583
|
+
code: 'showcase_not_standalone',
|
|
1584
|
+
message: `${rel(template.filePath)}: the showcase ${[...new Set(blocked)].join(', ')}, which cannot run in a browser, so a docs page or catalog card cannot render it. Fix: move that code into the app; pass values in as props or a sample-data provider the showcase renders itself. Fetching live data through the app is fine.`,
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
for (const loaded of new Set(parsed.assets)) {
|
|
1589
|
+
const asset = path.resolve(path.dirname(template.filePath), loaded);
|
|
1590
|
+
const assetRel = rel(asset);
|
|
1591
|
+
const exists = fs.existsSync(asset);
|
|
1592
|
+
// npm packs nothing outside the package root, whatever `files` says.
|
|
1593
|
+
const fromBase = path.relative(base, asset);
|
|
1594
|
+
if (fromBase.startsWith('..') || path.isAbsolute(fromBase)) {
|
|
1595
|
+
notes.push({
|
|
1596
|
+
code: 'template_asset_not_packed',
|
|
1597
|
+
message: `${rel(template.filePath)}: loads ${assetRel}, which is outside the package, so npm never packs it and the template breaks once installed. Fix: move it inside the package (beside the template is simplest), point \`new URL()\` at the new place, and confirm with \`npm pack --dry-run\`.`,
|
|
1598
|
+
});
|
|
1599
|
+
continue;
|
|
1600
|
+
}
|
|
1601
|
+
// A folder URL is packed when npm packs anything inside it.
|
|
1602
|
+
const isFolder = exists && fs.statSync(asset).isDirectory();
|
|
1603
|
+
if (exists) {
|
|
1604
|
+
// With no `files` field npm packs everything but what an ignore file
|
|
1605
|
+
// drops, in the package root or any folder down to the asset, so
|
|
1606
|
+
// with no ignore file on that path there is nothing to ask.
|
|
1607
|
+
if (
|
|
1608
|
+
!Array.isArray(packedFiles) &&
|
|
1609
|
+
ignoreFilesFor(base, assetRel).length === 0
|
|
1610
|
+
) {
|
|
1611
|
+
continue;
|
|
1612
|
+
}
|
|
1613
|
+
// What npm packs decides. Without npm's answer, an asset no entry
|
|
1614
|
+
// can reach is reported, and any other is listed as not checked.
|
|
1615
|
+
packed ??= npmPackedPaths(base);
|
|
1616
|
+
if ('paths' in packed) {
|
|
1617
|
+
if (packed.paths.has(assetRel)) continue;
|
|
1618
|
+
if (
|
|
1619
|
+
isFolder &&
|
|
1620
|
+
[...packed.paths].some(each => each.startsWith(`${assetRel}/`))
|
|
1621
|
+
) {
|
|
1622
|
+
continue;
|
|
1623
|
+
}
|
|
1624
|
+
} else if (
|
|
1625
|
+
!Array.isArray(packedFiles) ||
|
|
1626
|
+
!outsideFiles(assetRel, packedFiles)
|
|
1627
|
+
) {
|
|
1628
|
+
unchecked.push({
|
|
1629
|
+
file: rel(template.filePath),
|
|
1630
|
+
asset: assetRel,
|
|
1631
|
+
reason: Array.isArray(packedFiles)
|
|
1632
|
+
? `${packed.error}, and a \`files\` entry may reach it`
|
|
1633
|
+
: `${packed.error}, and ${ignoreFilesFor(base, assetRel).at(-1) ?? '.npmignore'} may drop it`,
|
|
1634
|
+
});
|
|
1635
|
+
continue;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
const folder =
|
|
1639
|
+
path.posix.dirname(assetRel) === '.'
|
|
1640
|
+
? assetRel
|
|
1641
|
+
: path.posix.dirname(assetRel);
|
|
1642
|
+
const negated = negatedFilesEntry(assetRel, packedFiles);
|
|
1643
|
+
notes.push({
|
|
1644
|
+
code: 'template_asset_not_packed',
|
|
1645
|
+
message: !exists
|
|
1646
|
+
? `${rel(template.filePath)}: loads ${assetRel}, which does not exist. Fix: add the file, or point \`new URL()\` at one that does.`
|
|
1647
|
+
: negated != null && !outsideFiles(assetRel, packedFiles)
|
|
1648
|
+
? `${rel(template.filePath)}: loads ${assetRel}, which the \`files\` entry "${negated}" leaves out of the package, so the template breaks once installed. Fix: drop or narrow "${negated}" so it no longer matches ${assetRel}, and confirm with \`npm pack --dry-run\`.`
|
|
1649
|
+
: Array.isArray(packedFiles) &&
|
|
1650
|
+
(outsideFiles(assetRel, packedFiles) ||
|
|
1651
|
+
!ignoreFilesFor(base, assetRel).some(file => file.includes('/')))
|
|
1652
|
+
? `${rel(template.filePath)}: loads ${assetRel}, which npm leaves out of the package by its \`files\` field, so the template breaks once installed. Fix: add "${folder}" to \`files\`, drop any \`!\` entry that excludes it, and confirm with \`npm pack --dry-run\`.`
|
|
1653
|
+
: ignoreFix(
|
|
1654
|
+
base,
|
|
1655
|
+
rel(template.filePath),
|
|
1656
|
+
assetRel,
|
|
1657
|
+
Array.isArray(packedFiles),
|
|
1658
|
+
),
|
|
1659
|
+
});
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
if (!integration.components || rootProblem(integration.components)) {
|
|
1663
|
+
return {notes, unchecked};
|
|
1664
|
+
}
|
|
1665
|
+
/** @type {any[]} */
|
|
1666
|
+
let records;
|
|
1667
|
+
try {
|
|
1668
|
+
records = componentDiscovery.discoverIntegrationComponents(integration);
|
|
1669
|
+
} catch {
|
|
1670
|
+
return {notes, unchecked};
|
|
1671
|
+
}
|
|
1672
|
+
const templatesDir = root ? rel(root) || '.' : 'templates';
|
|
1673
|
+
/** @type {Set<unknown>} blocks a note has already asked to show one component */
|
|
1674
|
+
const claimed = new Set();
|
|
1675
|
+
// A block that names a component, by its category, name, display name or
|
|
1676
|
+
// file (`acme-badge-showcase`), is offered to that component alone, so two
|
|
1677
|
+
// notes never ask one block to show two components. The longest matching
|
|
1678
|
+
// name wins (`AcmeBadgeGroup` over `AcmeBadge`).
|
|
1679
|
+
const key = (/** @type {string} */ value) =>
|
|
1680
|
+
value.toLowerCase().replace(/[-_\s]/g, '');
|
|
1681
|
+
const componentNames = records
|
|
1682
|
+
.map(record => record.name)
|
|
1683
|
+
.filter(name => typeof name === 'string')
|
|
1684
|
+
.sort((a, b) => b.length - a.length);
|
|
1685
|
+
/** @type {Map<unknown, string>} */
|
|
1686
|
+
const ownerOf = new Map();
|
|
1687
|
+
for (const template of templates) {
|
|
1688
|
+
if (template.type !== 'block' || typeof template.exampleFor === 'string') {
|
|
1689
|
+
continue;
|
|
1690
|
+
}
|
|
1691
|
+
const words = [
|
|
1692
|
+
template.category,
|
|
1693
|
+
template.name,
|
|
1694
|
+
template.displayName,
|
|
1695
|
+
typeof template.filePath === 'string'
|
|
1696
|
+
? path.basename(template.filePath).replace(/\.[^.]+$/u, '')
|
|
1697
|
+
: undefined,
|
|
1698
|
+
]
|
|
1699
|
+
.filter(value => typeof value === 'string')
|
|
1700
|
+
.map(key);
|
|
1701
|
+
const owner = componentNames.find(name =>
|
|
1702
|
+
words.some(word => word.includes(key(name))),
|
|
1703
|
+
);
|
|
1704
|
+
if (owner) ownerOf.set(template, owner);
|
|
1705
|
+
}
|
|
1706
|
+
for (const record of records) {
|
|
1707
|
+
if (componentDiscovery.isIntegrationMember(record)) continue;
|
|
1708
|
+
if (shown.has(record.name)) continue;
|
|
1709
|
+
let doc;
|
|
1710
|
+
try {
|
|
1711
|
+
doc = await loadComponentDoc(record.docPath);
|
|
1712
|
+
} catch {
|
|
1713
|
+
continue;
|
|
1714
|
+
}
|
|
1715
|
+
if (doc?.hidden === true || doc?.isHiddenFromOverview === true) continue;
|
|
1716
|
+
if (doc?.category === 'Utility') continue;
|
|
1717
|
+
const name = record.name;
|
|
1718
|
+
const stem = `${name.replace(/([a-z0-9])([A-Z])/gu, '$1-$2').toLowerCase()}-showcase`;
|
|
1719
|
+
// A block that already composes the component only needs the fields.
|
|
1720
|
+
// A block that composes the component and shows nothing else takes the
|
|
1721
|
+
// fields; one that is already another component's showcase takes
|
|
1722
|
+
// `alsoShowcaseFor` instead, so it keeps its own.
|
|
1723
|
+
// A block whose `exampleFor` already names the component only needs
|
|
1724
|
+
// `isShowcase: true`.
|
|
1725
|
+
const named = templates.find(
|
|
1726
|
+
template => template.type === 'block' && template.exampleFor === name,
|
|
1727
|
+
);
|
|
1728
|
+
if (named) {
|
|
1729
|
+
notes.push({
|
|
1730
|
+
code: 'component_without_example',
|
|
1731
|
+
message: `${rel(record.docPath)}: no block template shows "${name}" (\`exampleFor: '${name}'\` with \`isShowcase: true\`), so template lists, docs pages and catalog cards have no example of it. Fix: add \`isShowcase: true\` to ${rel(named.docPath ?? named.filePath)}, whose \`exampleFor\` already names ${name}.`,
|
|
1732
|
+
});
|
|
1733
|
+
continue;
|
|
1734
|
+
}
|
|
1735
|
+
// Among the blocks that compose it, prefer the one that names it, then
|
|
1736
|
+
// one that names no component and shows nothing yet; a block that names
|
|
1737
|
+
// another component is that component's.
|
|
1738
|
+
const namesIt = (/** @type {any} */ template) =>
|
|
1739
|
+
ownerOf.get(template) === name;
|
|
1740
|
+
const composing = templates
|
|
1741
|
+
.filter(
|
|
1742
|
+
template =>
|
|
1743
|
+
template.type === 'block' &&
|
|
1744
|
+
Array.isArray(template.componentsUsed) &&
|
|
1745
|
+
template.componentsUsed.includes(name) &&
|
|
1746
|
+
(!ownerOf.has(template) || ownerOf.get(template) === name),
|
|
1747
|
+
)
|
|
1748
|
+
.sort(
|
|
1749
|
+
(a, b) =>
|
|
1750
|
+
Number(namesIt(b)) - Number(namesIt(a)) ||
|
|
1751
|
+
Number(typeof a.exampleFor === 'string') -
|
|
1752
|
+
Number(typeof b.exampleFor === 'string'),
|
|
1753
|
+
);
|
|
1754
|
+
const existing =
|
|
1755
|
+
composing.find(
|
|
1756
|
+
template =>
|
|
1757
|
+
typeof template.exampleFor !== 'string' && !claimed.has(template),
|
|
1758
|
+
) ?? composing.find(template => typeof template.exampleFor === 'string');
|
|
1759
|
+
const showsAnother =
|
|
1760
|
+
existing != null && typeof existing.exampleFor === 'string';
|
|
1761
|
+
if (existing && !showsAnother) claimed.add(existing);
|
|
1762
|
+
// The stem path is free to suggest unless a block there already shows
|
|
1763
|
+
// another component; then the new files take the next free stem.
|
|
1764
|
+
const stemTemplate = templates.find(
|
|
1765
|
+
template =>
|
|
1766
|
+
typeof template.filePath === 'string' &&
|
|
1767
|
+
path.basename(template.filePath).replace(/\.[^.]+$/u, '') === stem,
|
|
1768
|
+
);
|
|
1769
|
+
const stemShowsAnother =
|
|
1770
|
+
stemTemplate != null &&
|
|
1771
|
+
typeof stemTemplate.exampleFor === 'string' &&
|
|
1772
|
+
stemTemplate.exampleFor !== name;
|
|
1773
|
+
let freeStem = stem;
|
|
1774
|
+
if (stemShowsAnother && root && !rootProblem(root)) {
|
|
1775
|
+
for (
|
|
1776
|
+
let n = 2;
|
|
1777
|
+
fs.existsSync(path.join(root, `${freeStem}.tsx`)) ||
|
|
1778
|
+
fs.existsSync(path.join(root, `${freeStem}.doc.mjs`));
|
|
1779
|
+
n++
|
|
1780
|
+
) {
|
|
1781
|
+
freeStem = `${stem}-${n}`;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
const taken =
|
|
1785
|
+
!existing &&
|
|
1786
|
+
!stemShowsAnother &&
|
|
1787
|
+
root &&
|
|
1788
|
+
!rootProblem(root) &&
|
|
1789
|
+
fs.existsSync(path.join(root, `${stem}.tsx`));
|
|
1790
|
+
if (existing || taken) {
|
|
1791
|
+
const doc = existing
|
|
1792
|
+
? rel(existing.docPath ?? existing.filePath)
|
|
1793
|
+
: `${templatesDir}/${stem}.doc.mjs`;
|
|
1794
|
+
notes.push({
|
|
1795
|
+
code: 'component_without_example',
|
|
1796
|
+
message: `${rel(record.docPath)}: no block template shows "${name}" (\`exampleFor: '${name}'\` with \`isShowcase: true\`), so template lists, docs pages and catalog cards have no example of it. Fix: ${showsAnother ? `add '${name}' to \`alsoShowcaseFor\` in ${doc}, the block that already composes ${name} as the showcase of ${existing.exampleFor}` : `add \`exampleFor: '${name}'\` and \`isShowcase: true\` to ${doc}${existing ? `, the block that already composes ${name}` : ''}`}. A doc set to \`hidden\`, \`isHiddenFromOverview\` or category \`Utility\` needs no example.`,
|
|
1797
|
+
});
|
|
1798
|
+
continue;
|
|
1799
|
+
}
|
|
1800
|
+
notes.push({
|
|
1801
|
+
code: 'component_without_example',
|
|
1802
|
+
message:
|
|
1803
|
+
`${rel(record.docPath)}: no block template shows "${name}" (\`exampleFor: '${name}'\` with \`isShowcase: true\`), so template lists, docs pages and catalog cards have no example of it.` +
|
|
1804
|
+
(root
|
|
1805
|
+
? ''
|
|
1806
|
+
: " The manifest sets no `templates` root; add `templates: './templates'` to it.") +
|
|
1807
|
+
` Fix: add ${templatesDir}/${freeStem}.tsx, a small composition that renders ${name}, and beside it ${templatesDir}/${freeStem}.doc.mjs:` +
|
|
1808
|
+
` export default {type: 'block', name: '${freeStem}', displayName: '${name} showcase', description: 'A ${name} in use.', exampleFor: '${name}', isShowcase: true, aspectRatio: 16 / 10};` +
|
|
1809
|
+
' A doc set to `hidden`, `isHiddenFromOverview` or category `Utility` needs no example.',
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
return {notes, unchecked};
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1026
1815
|
/**
|
|
1027
1816
|
* Warn about a `.tsx` directly in the templates root with no same-stem template
|
|
1028
1817
|
* metadata: template discovery pairs sources with docs, so `astryx template`
|
|
@@ -1650,6 +2439,7 @@ async function allLoadedIntegrationIssues(loaded) {
|
|
|
1650
2439
|
codemods: loaded.codemods,
|
|
1651
2440
|
docs: loaded.docs,
|
|
1652
2441
|
themes: loaded.themes,
|
|
2442
|
+
iconSets: loaded.iconSets,
|
|
1653
2443
|
__manifestFile: loaded.__manifestFile,
|
|
1654
2444
|
},
|
|
1655
2445
|
issues,
|