@astryxdesign/cli 0.7.4-canary.f32572e → 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/built-checks.mjs +43 -13
- package/api/doctor/built-checks.test.mjs +29 -0
- package/api/doctor/doctor.d.mts +34 -2
- package/api/doctor/doctor.doc.mjs +2 -2
- 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/discover/official-packages.json +16 -0
- 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/assets/templates/themes/butter/butterPaletteRefs.generated.ts +54 -0
- package/assets/templates/themes/butter/butterPalettes.generated.receipt.json +1499 -0
- package/assets/templates/themes/butter/butterPalettes.generated.ts +550 -0
- package/assets/templates/themes/butter/butterTheme.ts +274 -234
- package/assets/templates/themes/butter/palette.config.json +484 -0
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +41 -0
- package/assets/templates/themes/gothic/gothicPalettes.generated.receipt.json +979 -0
- package/assets/templates/themes/gothic/gothicPalettes.generated.ts +271 -0
- package/assets/templates/themes/gothic/gothicTheme.ts +130 -160
- package/assets/templates/themes/gothic/palette.config.json +371 -0
- package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +51 -0
- package/assets/templates/themes/matcha/matchaPalettes.generated.receipt.json +1502 -0
- package/assets/templates/themes/matcha/matchaPalettes.generated.ts +501 -0
- package/assets/templates/themes/matcha/matchaPalettes.ts +21 -0
- package/assets/templates/themes/matcha/matchaTheme.ts +164 -103
- package/assets/templates/themes/matcha/palette.config.json +448 -0
- package/assets/templates/themes/y2k/palette.config.json +166 -0
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +54 -0
- package/assets/templates/themes/y2k/y2kPalettes.generated.receipt.json +872 -0
- package/assets/templates/themes/y2k/y2kPalettes.generated.ts +550 -0
- package/assets/templates/themes/y2k/y2kPalettes.ts +257 -0
- package/assets/templates/themes/y2k/y2kTheme.ts +164 -391
- 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
|
@@ -22,12 +22,12 @@ export const docs = {
|
|
|
22
22
|
content: [
|
|
23
23
|
{
|
|
24
24
|
type: 'prose',
|
|
25
|
-
text: 'Publish only a package that passes every check, then preview the upload with `npm publish --dry-run`. The dry run lists the files and the tag without uploading.',
|
|
25
|
+
text: 'Publish only a package that passes every check, then preview the upload with `{@pm-only npm "publishing goes through npm, which every Node install carries" publish --dry-run}`. The dry run lists the files and the tag without uploading.',
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
type: 'code',
|
|
29
29
|
lang: 'bash',
|
|
30
|
-
code: '
|
|
30
|
+
code: '{@command doctor integration validate} && {@command doctor integration components} && {@command doctor integration templates} && {@command doctor integration docs} && {@command integration verify}\n{@pm-only npm "publishing goes through npm, which every Node install carries" publish --dry-run --access public}',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
type: 'code',
|
|
@@ -51,7 +51,7 @@ export const docs = {
|
|
|
51
51
|
{
|
|
52
52
|
type: 'code',
|
|
53
53
|
lang: 'bash',
|
|
54
|
-
code: "npm pkg set 'files[]=components' 'files[]=templates' 'files[]=themes' 'files[]=docs' 'files[]=codemods' 'files[]=astryx.integration.mjs'\
|
|
54
|
+
code: "{@pm-only npm \"edits package.json\" pkg set 'files[]=components' 'files[]=templates' 'files[]=themes' 'files[]=docs' 'files[]=codemods' 'files[]=astryx.integration.mjs'}\n{@pm-only npm \"builds the tarball npm publishes\" pack --dry-run}",
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
type: 'list',
|
|
@@ -70,12 +70,12 @@ export const docs = {
|
|
|
70
70
|
content: [
|
|
71
71
|
{
|
|
72
72
|
type: 'prose',
|
|
73
|
-
text: 'A scoped package is private by default, so publish it with `--access public`. Without `--tag`, npm tags the release `latest`, which is what `
|
|
73
|
+
text: 'A scoped package is private by default, so publish it with `--access public`. Without `--tag`, npm tags the release `latest`, which is what `{@pm install @acme/astryx-widgets}` installs.',
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
type: 'code',
|
|
77
77
|
lang: 'bash',
|
|
78
|
-
code: '# Publish a release\
|
|
78
|
+
code: '# Publish a release\n{@pm-only npm "publishing goes through npm, which every Node install carries" publish --access public}\n\n# Or set the access once in package.json\n{@pm-only npm "Yarn has no pkg command" pkg set publishConfig.access=public}',
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
type: 'prose',
|
|
@@ -84,7 +84,7 @@ export const docs = {
|
|
|
84
84
|
{
|
|
85
85
|
type: 'code',
|
|
86
86
|
lang: 'bash',
|
|
87
|
-
code: '# Only apps that ask for next get it: npm install @acme/astryx-widgets@next\
|
|
87
|
+
code: '# Only apps that ask for next get it: npm install @acme/astryx-widgets@next\n{@pm-only npm "publishing goes through npm, which every Node install carries" publish --tag next}\n\n# Make that version the default\n{@pm-only npm "dist-tags are set with npm, which every Node install carries" dist-tag add @acme/astryx-widgets@1.1.0 latest}\n{@pm-only npm "dist-tags are set with npm, which every Node install carries" dist-tag ls @acme/astryx-widgets}',
|
|
88
88
|
},
|
|
89
89
|
],
|
|
90
90
|
},
|
|
@@ -99,7 +99,7 @@ export const docs = {
|
|
|
99
99
|
{
|
|
100
100
|
type: 'code',
|
|
101
101
|
lang: 'bash',
|
|
102
|
-
code: 'mkdir check-release && cd check-release\
|
|
102
|
+
code: 'mkdir check-release && cd check-release\n{@pm-only npm "npm, which every Node install carries, writes the package.json" init -y}\n{@pm install @astryxdesign/core @astryxdesign/cli @acme/astryx-widgets@1.0.0}\n{@command component AcmeCarousel}\n{@command doctor integration validate @acme/astryx-widgets}',
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
type: 'prose',
|
|
@@ -39,13 +39,13 @@ export const docs = {
|
|
|
39
39
|
{
|
|
40
40
|
type: 'code',
|
|
41
41
|
lang: 'bash',
|
|
42
|
-
code:
|
|
42
|
+
code: 'mkdir acme-widgets && cd acme-widgets\n{@pm-only npm "writes package.json" init -y}\n{@pm-only npm "edits package.json" pkg set name=@acme/astryx-widgets type=module}\n{@pm-only npm "edits package.json" pkg set \'exports={}\' --json}\n{@pm install @astryxdesign/cli @astryxdesign/core typescript@6 --dev}',
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
type: 'list',
|
|
46
46
|
style: 'unordered',
|
|
47
47
|
items: [
|
|
48
|
-
'Set `"type": "module"`: the `.js` files the CLI generates, such as a built theme, are ES modules, and Node fails to load them in a package marked `"type": "commonjs"`, which `npm init -y` writes on npm 11.',
|
|
48
|
+
'Set `"type": "module"`: the `.js` files the CLI generates, such as a built theme, are ES modules, and Node fails to load them in a package marked `"type": "commonjs"`, which `{@pm-only npm "writes package.json" init -y}` writes on npm 11.',
|
|
49
49
|
'Start with `"exports": {}`: each component and template you add then writes the public import that `integration verify` resolves.',
|
|
50
50
|
'Run the CLI as `astryx`, which runs the `@astryxdesign/cli` you installed as a devDependency.',
|
|
51
51
|
'Component commands read Core, so they need `@astryxdesign/core` installed.',
|
|
@@ -64,7 +64,7 @@ export const docs = {
|
|
|
64
64
|
{
|
|
65
65
|
type: 'code',
|
|
66
66
|
lang: 'bash',
|
|
67
|
-
code: '
|
|
67
|
+
code: '{@command integration add component AcmeCarousel}',
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
type: 'code',
|
|
@@ -82,7 +82,7 @@ export const docs = {
|
|
|
82
82
|
{
|
|
83
83
|
type: 'code',
|
|
84
84
|
lang: 'bash',
|
|
85
|
-
code: '
|
|
85
|
+
code: '{@command component AcmeCarousel}',
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
type: 'prose',
|
|
@@ -100,7 +100,7 @@ export const docs = {
|
|
|
100
100
|
{
|
|
101
101
|
type: 'code',
|
|
102
102
|
lang: 'bash',
|
|
103
|
-
code: 'npm pkg set scripts.typecheck="astryx integration check --strict"\
|
|
103
|
+
code: '{@pm-only npm "edits package.json" pkg set scripts.typecheck="astryx integration check --strict"}\n{@pm run typecheck}',
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
type: 'code',
|
|
@@ -127,7 +127,7 @@ export const docs = {
|
|
|
127
127
|
{
|
|
128
128
|
type: 'code',
|
|
129
129
|
lang: 'bash',
|
|
130
|
-
code: '
|
|
130
|
+
code: '{@command integration verify}\n{@pm-only npm "builds the publish tarball" pack --pack-destination ..}',
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
type: 'code',
|
|
@@ -136,7 +136,7 @@ export const docs = {
|
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
type: 'prose',
|
|
139
|
-
text: '`integration verify` installs the packed package in a temporary app and confirms the component resolves through its public import there ({@link generic:checks}). It publishes nothing and leaves no `.tgz` file, so `npm pack` writes `../acme-astryx-widgets-1.0.0.tgz` for the next step.',
|
|
139
|
+
text: '`integration verify` installs the packed package in a temporary app and confirms the component resolves through its public import there ({@link generic:checks}). It publishes nothing and leaves no `.tgz` file, so `{@pm-only npm "builds the publish tarball" pack}` writes `../acme-astryx-widgets-1.0.0.tgz` for the next step.',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'heading',
|
|
@@ -150,7 +150,7 @@ export const docs = {
|
|
|
150
150
|
{
|
|
151
151
|
type: 'code',
|
|
152
152
|
lang: 'bash',
|
|
153
|
-
code: 'cd ..\nmkdir my-app && cd my-app\
|
|
153
|
+
code: 'cd ..\nmkdir my-app && cd my-app\n{@pm-only npm "writes package.json" init -y}\n{@pm install @astryxdesign/core @astryxdesign/cli ../acme-astryx-widgets-1.0.0.tgz}\n{@command component AcmeCarousel}',
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
type: 'code',
|
|
@@ -290,7 +290,7 @@ export const docs = {
|
|
|
290
290
|
content: [
|
|
291
291
|
{
|
|
292
292
|
type: 'prose',
|
|
293
|
-
text: 'In global mode: users can also install your package for their computer, beside the global CLI (`
|
|
293
|
+
text: 'In global mode: users can also install your package for their computer, beside the global CLI (`{@pm install @astryxdesign/cli your-package --global}`). It then applies in folders outside any project, and inside a project only if the project installs it. See {@link namespace:global} and {@link generic:global-integrations}.',
|
|
294
294
|
},
|
|
295
295
|
],
|
|
296
296
|
},
|
|
@@ -62,7 +62,7 @@ export const docs = {
|
|
|
62
62
|
'`%APPDATA%\\astryx`',
|
|
63
63
|
],
|
|
64
64
|
[
|
|
65
|
-
'Update checks and notices, and why the last notice or check did not happen (for `
|
|
65
|
+
'Update checks and notices, and why the last notice or check did not happen (for `{@command doctor}` only)',
|
|
66
66
|
'`<settings>/state.json`',
|
|
67
67
|
'`<settings>/state.json`',
|
|
68
68
|
'`<settings>\\state.json`',
|
|
@@ -128,7 +128,7 @@ export const docs = {
|
|
|
128
128
|
style: 'unordered',
|
|
129
129
|
items: [
|
|
130
130
|
"`meta.answeredBy` on every successful `--json` result: `cli` (the version that answered), `core` (the Core it used, or `null`), and `copy`: `project` (the project's own CLI), `starting` (the astryx command you started, in a project with no CLI of its own), `matched` (the CLI version equal to the project's Core, when the project's own CLI cannot start), `carried` (outside a project), or `fallback` (that version could not be obtained, so the astryx command you started answered instead).",
|
|
131
|
-
'`meta.available` entries from `
|
|
131
|
+
'`meta.available` entries from `{@command discover}` with `source: "installed for this computer"`: an integration installed next to your global install that the project could add, with its install command in `install`.',
|
|
132
132
|
],
|
|
133
133
|
},
|
|
134
134
|
],
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
{
|
|
104
104
|
type: 'code',
|
|
105
105
|
lang: 'bash',
|
|
106
|
-
code: '
|
|
106
|
+
code: '{@command doctor integration components}\n{@command component SideNav}\n{@command component AcmeSideNav}\n{@command component SideNav --package @astryxdesign/core}',
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
type: 'list',
|
|
@@ -31,7 +31,7 @@ export const docs = {
|
|
|
31
31
|
type: 'list',
|
|
32
32
|
style: 'unordered',
|
|
33
33
|
items: [
|
|
34
|
-
'Sharing a Core id without `replaces` does not replace Core. It makes the bare id ambiguous, so `
|
|
34
|
+
'Sharing a Core id without `replaces` does not replace Core. It makes the bare id ambiguous, so `{@command template <id>}` fails until the app adds `--package`, and `doctor integration templates` reports an accidental collision.',
|
|
35
35
|
'A replacement can keep the Core id or use its own. `replaces` is what makes it the default.',
|
|
36
36
|
],
|
|
37
37
|
},
|
|
@@ -113,10 +113,10 @@ export default {
|
|
|
113
113
|
type: 'code',
|
|
114
114
|
lang: 'bash',
|
|
115
115
|
code: `# Receives the active replacement
|
|
116
|
-
|
|
116
|
+
{@command template shell-side-nav src/app}
|
|
117
117
|
|
|
118
118
|
# Receives the original Core template
|
|
119
|
-
|
|
119
|
+
{@command template shell-side-nav --package @astryxdesign/core src/app}`,
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
type: 'prose',
|
|
@@ -140,7 +140,7 @@ astryx template shell-side-nav --package @astryxdesign/core src/app`,
|
|
|
140
140
|
{
|
|
141
141
|
type: 'code',
|
|
142
142
|
lang: 'bash',
|
|
143
|
-
code: '
|
|
143
|
+
code: '{@command doctor integration templates}',
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
type: 'table',
|
|
@@ -132,7 +132,7 @@ export const docs = {
|
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
type: 'prose',
|
|
135
|
-
text: 'Verify: you can state the reason in one sentence, and the choice still holds if the nav doubles in size. `
|
|
135
|
+
text: 'Verify: you can state the reason in one sentence, and the choice still holds if the nav doubles in size. `{@command build "<idea>"}` names the template to start from; scaffold it and the pairing is already wired up.',
|
|
136
136
|
},
|
|
137
137
|
],
|
|
138
138
|
},
|
|
@@ -26,7 +26,7 @@ export const docs = {
|
|
|
26
26
|
{
|
|
27
27
|
type: 'code',
|
|
28
28
|
lang: 'bash',
|
|
29
|
-
code: '
|
|
29
|
+
code: '{@command integration add doc deploying --parent acme}\n# Open your section\n{@command docs acme}',
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
type: 'code',
|
|
@@ -69,7 +69,7 @@ export const docs = {
|
|
|
69
69
|
{
|
|
70
70
|
type: 'code',
|
|
71
71
|
lang: 'bash',
|
|
72
|
-
code: '
|
|
72
|
+
code: '{@command docs acme/deploying}',
|
|
73
73
|
},
|
|
74
74
|
],
|
|
75
75
|
},
|
|
@@ -84,7 +84,7 @@ export const docs = {
|
|
|
84
84
|
{
|
|
85
85
|
type: 'code',
|
|
86
86
|
lang: 'bash',
|
|
87
|
-
code: '
|
|
87
|
+
code: '{@command doctor integration docs}',
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
type: 'code',
|
|
@@ -26,9 +26,9 @@ export const docs = {
|
|
|
26
26
|
{
|
|
27
27
|
type: 'code',
|
|
28
28
|
lang: 'bash',
|
|
29
|
-
code: `
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
code: `{@command component AcmeCarousel}
|
|
30
|
+
{@command component --list}
|
|
31
|
+
{@command search carousel}`,
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
type: 'code',
|
|
@@ -21,7 +21,7 @@ export const docs = {
|
|
|
21
21
|
content: [
|
|
22
22
|
{
|
|
23
23
|
type: 'prose',
|
|
24
|
-
text: 'Readers open one section at a time, so give each section one idea and keep it to about 30 lines. `
|
|
24
|
+
text: 'Readers open one section at a time, so give each section one idea and keep it to about 30 lines. `{@command doctor}` warns on any read over 32 KB.',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
type: 'list',
|
|
@@ -35,7 +35,7 @@ export const docs = {
|
|
|
35
35
|
{
|
|
36
36
|
type: 'code',
|
|
37
37
|
lang: 'bash',
|
|
38
|
-
code: '# The section list\
|
|
38
|
+
code: '# The section list\n{@command docs acme/deploying}\n# One section\n{@command docs acme/deploying check-before-you-ship}\n# Everything\n{@command docs acme/deploying --full}',
|
|
39
39
|
},
|
|
40
40
|
],
|
|
41
41
|
},
|
|
@@ -93,7 +93,7 @@ export const docs = {
|
|
|
93
93
|
{
|
|
94
94
|
type: 'code',
|
|
95
95
|
lang: 'bash',
|
|
96
|
-
code: '
|
|
96
|
+
code: '{@command search "place a doc" --type doc}',
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
type: 'list',
|
|
@@ -88,12 +88,12 @@ export default {
|
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
type: 'prose',
|
|
91
|
-
text: "Set `keywords` to the words people search for: synonyms and the task the component does, such as `keywords: ['slider', 'slideshow', 'rotating cards']`. `
|
|
91
|
+
text: "Set `keywords` to the words people search for: synonyms and the task the component does, such as `keywords: ['slider', 'slideshow', 'rotating cards']`. `{@command search}` ranks a match on a component's name or keywords above one in its description, so without keywords a search for the component's task can list Core components first. Check with the words a person would type:",
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
type: 'code',
|
|
95
95
|
lang: 'bash',
|
|
96
|
-
code: '
|
|
96
|
+
code: '{@command search "rotating cards" --type component}',
|
|
97
97
|
},
|
|
98
98
|
],
|
|
99
99
|
},
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
'Set `required: true` only when every caller must pass the prop.',
|
|
131
131
|
'Write `default` exactly as the value should appear in documentation.',
|
|
132
132
|
'Skip styling escape hatches such as `xstyle`, `className`, and `style`.',
|
|
133
|
-
'`
|
|
133
|
+
'`{@command doctor integration components}` lists a documented prop the code lacks, a public prop the doc misses, and a wrong `required`. See {@link generic:check-the-props}.',
|
|
134
134
|
],
|
|
135
135
|
},
|
|
136
136
|
],
|
|
@@ -166,7 +166,7 @@ export default {
|
|
|
166
166
|
{
|
|
167
167
|
type: 'code',
|
|
168
168
|
lang: 'bash',
|
|
169
|
-
code: '
|
|
169
|
+
code: '{@command component AcmeCarousel}\n{@command doctor integration components}\n{@command integration verify}',
|
|
170
170
|
},
|
|
171
171
|
],
|
|
172
172
|
},
|
|
@@ -38,8 +38,8 @@ export const docs = {
|
|
|
38
38
|
type: 'code',
|
|
39
39
|
lang: 'bash',
|
|
40
40
|
code: `# How an app finds a template and copies it
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
{@command template --list}
|
|
42
|
+
{@command template acme-dashboard src/app/dashboard}`,
|
|
43
43
|
},
|
|
44
44
|
],
|
|
45
45
|
},
|
|
@@ -83,7 +83,7 @@ astryx template acme-dashboard src/app/dashboard`,
|
|
|
83
83
|
content: [
|
|
84
84
|
{
|
|
85
85
|
type: 'prose',
|
|
86
|
-
text: 'Choose a stable lowercase kebab-case id, such as `acme-dashboard`. The id becomes the source and doc file name, the package export, and the value apps pass to `
|
|
86
|
+
text: 'Choose a stable lowercase kebab-case id, such as `acme-dashboard`. The id becomes the source and doc file name, the package export, and the value apps pass to `{@command template}`. To change a label, edit the doc ({@link generic:template-doc-overview}); never rename the id.',
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
type: 'list',
|
|
@@ -112,8 +112,8 @@ astryx template acme-dashboard src/app/dashboard`,
|
|
|
112
112
|
{
|
|
113
113
|
type: 'code',
|
|
114
114
|
lang: 'bash',
|
|
115
|
-
code: `
|
|
116
|
-
|
|
115
|
+
code: `{@command integration add template acme-dashboard}
|
|
116
|
+
{@command integration add template acme-stat-card --type block}`,
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
type: 'code',
|
|
@@ -118,7 +118,7 @@ const overrides = stylex.create({
|
|
|
118
118
|
content: [
|
|
119
119
|
{
|
|
120
120
|
type: 'prose',
|
|
121
|
-
text: 'Astryx 0.7 emits canonical `astryx-*` target classes and reflected `data-*` attributes only. Run `
|
|
121
|
+
text: 'Astryx 0.7 emits canonical `astryx-*` target classes and reflected `data-*` attributes only. Run `{@command upgrade --from <your 0.6 version> --apply --path .}` to rename removed target keys inside theme `components` maps and to migrate CSS selectors. The CSS migration renames removed target classes and replaces target-qualified bare prop/value/state classes such as `.primary`, `.sm`, `.level-2`, and `.checked` with their reflected `data-*` selectors.',
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
type: 'code',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export const docs = {
|
|
11
11
|
type: 'namespace',
|
|
12
12
|
name: 'styling-libraries',
|
|
13
|
-
title: '
|
|
13
|
+
title: 'Other styling libraries',
|
|
14
14
|
summary:
|
|
15
15
|
'Integrate Tailwind, StyleX, Panda, Chakra, MUI, CSS-in-JS, CSS Modules, and non-CSS renderers with system tokens.',
|
|
16
16
|
keywords: [
|
|
@@ -23,6 +23,7 @@ export const docs = {
|
|
|
23
23
|
'styled-components',
|
|
24
24
|
'CSS Modules',
|
|
25
25
|
'interop',
|
|
26
|
+
'styling library interop',
|
|
26
27
|
],
|
|
27
28
|
slots: {
|
|
28
29
|
guides: {title: 'Guides', accepts: {kinds: ['generic']}},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export const docs = {
|
|
11
11
|
type: 'namespace',
|
|
12
12
|
name: 'styling',
|
|
13
|
-
title: 'Styling
|
|
13
|
+
title: 'Styling components',
|
|
14
14
|
summary:
|
|
15
15
|
'Customize component appearance: xstyle, Tailwind, className, rest props, compound components, data attribute selectors, tokens, and StyleX setup.',
|
|
16
16
|
keywords: [
|
|
@@ -49,7 +49,7 @@ export const docs = {
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
type: 'prose',
|
|
52
|
-
text:
|
|
52
|
+
text: "A layer's rank is set by the first stylesheet on the page that names it, so this order only holds when `globals.css` loads first. Make it the first import in the root layout or app entry, before any module that imports Astryx or theme CSS. That includes the `astryx-themes` module generated by `{@command theme add}` and any root component that imports a theme's `theme.css`. If a theme stylesheet loads first, Tailwind preflight overrides Astryx base styles and theme overrides lose. If `globals.css` cannot come first, move the `@layer` line into its own `layers.css` and import that first instead.",
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
type: 'code',
|
|
@@ -27,14 +27,14 @@ export const docs = {
|
|
|
27
27
|
{
|
|
28
28
|
type: 'code',
|
|
29
29
|
lang: 'bash',
|
|
30
|
-
code: '# In the package\
|
|
30
|
+
code: '# In the package\n{@pm-only npm "the tarball the registry receives" pack --pack-destination ..}\n\n# In an app folder beside it\n{@pm install @astryxdesign/core @astryxdesign/cli ../acme-astryx-widgets-1.0.0.tgz}',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
type: 'list',
|
|
34
34
|
style: 'unordered',
|
|
35
35
|
items: [
|
|
36
36
|
"Install the CLI in the app too: `astryx` runs the CLI from the app's `node_modules`.",
|
|
37
|
-
'The app holds a copy, not a link. After each change, pack again and run the same `
|
|
37
|
+
'The app holds a copy, not a link. After each change, pack again and run the same `{@pm install}`.',
|
|
38
38
|
'Reading your work inside the package shows your source. The app shows what npm would publish.',
|
|
39
39
|
],
|
|
40
40
|
},
|
|
@@ -51,7 +51,7 @@ export const docs = {
|
|
|
51
51
|
{
|
|
52
52
|
type: 'code',
|
|
53
53
|
lang: 'bash',
|
|
54
|
-
code: '
|
|
54
|
+
code: '{@command component AcmeCarousel}\n{@command template --list --package @acme/astryx-widgets}\n{@command theme list --package @acme/astryx-widgets}\n{@command docs acme}\n{@command search deploying --type doc}',
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
type: 'table',
|
|
@@ -88,12 +88,12 @@ export const docs = {
|
|
|
88
88
|
content: [
|
|
89
89
|
{
|
|
90
90
|
type: 'prose',
|
|
91
|
-
text: '`
|
|
91
|
+
text: '`{@command doctor}` checks the whole app, including every package it loaded. `doctor integration validate` checks your package as the app installed it.',
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
type: 'code',
|
|
95
95
|
lang: 'bash',
|
|
96
|
-
code: '
|
|
96
|
+
code: '{@command doctor}\n{@command doctor integration validate @acme/astryx-widgets}',
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
type: 'code',
|
|
@@ -41,11 +41,11 @@ export const docs = {
|
|
|
41
41
|
astryx --json template --list --package @acme/astryx-widgets
|
|
42
42
|
|
|
43
43
|
# Inspect source without writing
|
|
44
|
-
|
|
44
|
+
{@command template acme-dashboard --package @acme/astryx-widgets}
|
|
45
45
|
|
|
46
46
|
# Copy a page and a block to their real app locations
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
{@command template acme-dashboard --package @acme/astryx-widgets src/app/acme-dashboard}
|
|
48
|
+
{@command template acme-stat-card --package @acme/astryx-widgets src/components}`,
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
type: 'list',
|
|
@@ -64,13 +64,13 @@ astryx template acme-stat-card --package @acme/astryx-widgets src/components`,
|
|
|
64
64
|
content: [
|
|
65
65
|
{
|
|
66
66
|
type: 'prose',
|
|
67
|
-
text: "Run the type check (`
|
|
67
|
+
text: "Run the type check (`{@pm exec tsc --noEmit}`, or the app's own script) and the production build in every framework or bundler the integration supports. One toolchain passing does not prove another.",
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
type: 'code',
|
|
71
71
|
lang: 'bash',
|
|
72
|
-
code: `
|
|
73
|
-
|
|
72
|
+
code: `{@pm exec tsc --noEmit}
|
|
73
|
+
{@pm run build}`,
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
type: 'list',
|
|
@@ -71,7 +71,7 @@ const styles = stylex.create({
|
|
|
71
71
|
content: [
|
|
72
72
|
{
|
|
73
73
|
type: 'prose',
|
|
74
|
-
text: "Astryx components ship pre-compiled: `astryx.css` and each package's own stylesheet hold all of their styles, so consuming the published packages needs no StyleX setup. But `
|
|
74
|
+
text: "Astryx components ship pre-compiled: `astryx.css` and each package's own stylesheet hold all of their styles, so consuming the published packages needs no StyleX setup. But `{@command swizzle <Component>}` copies the raw StyleX *source* into your app, and StyleX source requires a build-time StyleX compiler to produce atomic CSS. Without one, importing the component throws an error that starts `Unexpected 'stylex.create' call at runtime`, and the page does not render. If a swizzled component throws that error, the app is missing a StyleX compiler. The same applies if you author your own StyleX with `stylex.create()`.",
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
type: 'table',
|
|
@@ -31,11 +31,11 @@ export const docs = {
|
|
|
31
31
|
rows: [
|
|
32
32
|
[
|
|
33
33
|
'`No package.json found. Run this command inside an integration package.`',
|
|
34
|
-
'Run `npm init -y` and `npm pkg set name=@acme/astryx-widgets` first, in the package folder.',
|
|
34
|
+
'Run `{@pm-only npm "writes package.json" init -y}` and `{@pm-only npm "edits package.json" pkg set name=@acme/astryx-widgets}` first, in the package folder.',
|
|
35
35
|
],
|
|
36
36
|
[
|
|
37
37
|
'`Error: Could not find @astryxdesign/core package`',
|
|
38
|
-
'Component commands read Core. Run `
|
|
38
|
+
'Component commands read Core. Run `{@pm install @astryxdesign/core --dev}` in the package.',
|
|
39
39
|
],
|
|
40
40
|
[
|
|
41
41
|
'`core_not_found`: `Could not resolve @astryxdesign/core, so component names could not be checked.`',
|
|
@@ -43,11 +43,11 @@ export const docs = {
|
|
|
43
43
|
],
|
|
44
44
|
[
|
|
45
45
|
"`Error: unknown subcommand 'integration verify'`, or `Error: Pass --check to verify the integration tarball.`",
|
|
46
|
-
'Your CLI is older than `integration verify`. Run `
|
|
46
|
+
'Your CLI is older than `integration verify`. Run `{@pm install @astryxdesign/cli@latest --dev}`. On the older CLI, the same check is `integration pack --check`.',
|
|
47
47
|
],
|
|
48
48
|
[
|
|
49
49
|
'Note: `integration pack --check` is deprecated.',
|
|
50
|
-
'The old name still runs the same check. Switch to `
|
|
50
|
+
'The old name still runs the same check. Switch to `{@command integration verify}`; the old name will be removed in a later release.',
|
|
51
51
|
],
|
|
52
52
|
],
|
|
53
53
|
},
|
|
@@ -59,7 +59,7 @@ export const docs = {
|
|
|
59
59
|
content: [
|
|
60
60
|
{
|
|
61
61
|
type: 'prose',
|
|
62
|
-
text: '`
|
|
62
|
+
text: '`{@command integration verify}` prints each failure as a `[fail]` line. Add `--json` to see its issue code, such as `component_export_missing`.',
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
type: 'table',
|
|
@@ -67,15 +67,15 @@ export const docs = {
|
|
|
67
67
|
rows: [
|
|
68
68
|
[
|
|
69
69
|
'`component_export_missing`: `Component "AcmeCarousel" advertises import "@acme/astryx-widgets/components/AcmeCarousel", but that packed module does not export "AcmeCarousel".`',
|
|
70
|
-
"package.json has no `exports` map, or the module does not export the name. Keep `export function AcmeCarousel`, and add the entry: `npm pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'`. When the quoted name is a file name, such as `acme-carousel`, set the doc's `name` to the component the file exports. A type-only export does not count.",
|
|
70
|
+
"package.json has no `exports` map, or the module does not export the name. Keep `export function AcmeCarousel`, and add the entry: `{@pm-only npm \"edits package.json\" pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'}`. When the quoted name is a file name, such as `acme-carousel`, set the doc's `name` to the component the file exports. A type-only export does not count.",
|
|
71
71
|
],
|
|
72
72
|
[
|
|
73
73
|
'`template_export_missing`: `Template "acme-dashboard" public import "@acme/astryx-widgets/templates/acme-dashboard" does not have a default export.`',
|
|
74
|
-
'Run `npm pkg set \'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx\'`, and keep `export default` in the source. Start new packages with `"exports": {}` so each add writes these.',
|
|
74
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx\'}`, and keep `export default` in the source. Start new packages with `"exports": {}` so each add writes these.',
|
|
75
75
|
],
|
|
76
76
|
[
|
|
77
77
|
'`component_import_unresolvable` or `template_import_unresolvable`: `…Package subpath \'./components/AcmeCarousel\' is not defined by "exports"…`',
|
|
78
|
-
"The `exports` map has no entry for it. Run `npm pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'`, or `'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx'` for a template.",
|
|
78
|
+
"The `exports` map has no entry for it. Run `{@pm-only npm \"edits package.json\" pkg set 'exports[./components/AcmeCarousel]=./components/AcmeCarousel.tsx'}`, or `'exports[./templates/acme-dashboard]=./templates/acme-dashboard.tsx'` for a template.",
|
|
79
79
|
],
|
|
80
80
|
[
|
|
81
81
|
"`component_import_unresolvable`: `…but a consumer cannot resolve it: Cannot find package '@acme/old-name'`",
|
|
@@ -83,32 +83,36 @@ export const docs = {
|
|
|
83
83
|
],
|
|
84
84
|
[
|
|
85
85
|
'`Declared templates root "templates" has 0 of 2 expected files in the pack list. Add "templates" to "files" in package.json.`',
|
|
86
|
-
|
|
86
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'files[]=templates\'}`.',
|
|
87
87
|
],
|
|
88
88
|
[
|
|
89
89
|
'`docs_tree_needs_cli`: `The package ships a namespace doc or a placed guide but declares no @astryxdesign/cli peer.`',
|
|
90
|
-
|
|
90
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.4\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`.',
|
|
91
91
|
],
|
|
92
92
|
[
|
|
93
93
|
'`replaces_needs_cli`: The package has a template that sets `replaces` but declares no @astryxdesign/cli peer.',
|
|
94
|
-
|
|
94
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.4\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`. A stable CLI before 0.6.4 rejects `replaces`, drops that template, and hides your doc topics.',
|
|
95
95
|
],
|
|
96
96
|
[
|
|
97
97
|
'`component_replaces_needs_cli` (a warning): The package has a component that sets `replaces` but declares no @astryxdesign/cli peer, or a peer range that admits an earlier CLI.',
|
|
98
|
-
|
|
98
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.7\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}` to turn the replacement on. Until then apps see no change ({@link generic:replace-a-core-component}).',
|
|
99
99
|
],
|
|
100
100
|
[
|
|
101
101
|
'`keywords_needs_cli`: The package has a template that sets `keywords` but declares no @astryxdesign/cli peer.',
|
|
102
|
-
|
|
102
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.6\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`. What an older CLI does with the field is in {@link generic:template-doc-overview}.',
|
|
103
103
|
],
|
|
104
104
|
[
|
|
105
105
|
'`themes_need_cli`: The package ships a theme but declares no @astryxdesign/cli peer.',
|
|
106
|
-
|
|
106
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.6.4\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`. A CLI older than published 0.6.4 cannot read typed theme descriptors, so it drops your themes and can hide your doc topics.',
|
|
107
107
|
],
|
|
108
108
|
[
|
|
109
109
|
'`section_ids_need_cli`: The package has a doc section that sets `id` but declares no @astryxdesign/cli peer.',
|
|
110
110
|
'The same fix as `themes_need_cli`, or drop the section `id`s: a CLI older than published 0.6.4 rejects them and hides your doc topics.',
|
|
111
111
|
],
|
|
112
|
+
[
|
|
113
|
+
'`doc_tokens_need_cli`: The package writes doc tokens (`{@@command …}`, `{@@pm …}`, `{@@pm-only …}`) in its docs, but its @astryxdesign/cli peer admits a CLI before 0.7.4.',
|
|
114
|
+
'Run `{@pm-only npm "edits package.json" pkg set \'peerDependencies.@astryxdesign/cli=>=0.7.4\'}` and `{@pm-only npm "edits package.json" pkg set \'peerDependenciesMeta.@astryxdesign/cli.optional=true\' --json}`. A CLI before 0.7.4 prints each token as written, so readers see raw tokens.',
|
|
115
|
+
],
|
|
112
116
|
],
|
|
113
117
|
},
|
|
114
118
|
],
|
|
@@ -130,20 +134,20 @@ export const docs = {
|
|
|
130
134
|
"Its doc still names its file. Set `name` to the export, such as `name: 'AcmeCarousel'` in `acme-carousel.doc.mjs`. A family member is listed only when the module its family doc imports exports it ({@link generic:component-family}).",
|
|
131
135
|
],
|
|
132
136
|
[
|
|
133
|
-
"`
|
|
134
|
-
"A name that Core, a legacy docs package, or another package's file already has stays theirs. Run `
|
|
137
|
+
"`{@command component Dialog}` opens Core's `Dialog`, not yours.",
|
|
138
|
+
"A name that Core, a legacy docs package, or another package's file already has stays theirs. Run `{@command component Dialog --package @acme/astryx-widgets}`, or give your component a name of its own.",
|
|
135
139
|
],
|
|
136
140
|
[
|
|
137
141
|
'`Error: Template "dashboard" is ambiguous — narrow it with --type and/or --package.`',
|
|
138
|
-
"Your template id matches a Core id. Rename it, such as `acme-dashboard`, or set `replaces: 'dashboard'` to take its place. `
|
|
142
|
+
"Your template id matches a Core id. Rename it, such as `acme-dashboard`, or set `replaces: 'dashboard'` to take its place. `{@command doctor integration templates}` warns about this before you publish.",
|
|
139
143
|
],
|
|
140
144
|
[
|
|
141
145
|
'`invalid_doc_graph`: `placement.parent "namespace:nope" names no namespace; @acme/astryx-widgets declares "acme".`',
|
|
142
146
|
'The guide stays hidden until its `placement` names a namespace and slot your package declares. For `"…" names no doc`, fix the link target.',
|
|
143
147
|
],
|
|
144
148
|
[
|
|
145
|
-
'Error: Unknown topic "acme". The docs of @acme/astryx-widgets did not load; run `
|
|
146
|
-
'One invalid doc hides all of your docs. Run `
|
|
149
|
+
'Error: Unknown topic "acme". The docs of @acme/astryx-widgets did not load; run `{@command doctor integration docs}` in that package to see why.',
|
|
150
|
+
'One invalid doc hides all of your docs. Run `{@command doctor integration docs}` in the package and fix the `invalid_doc` it names.',
|
|
147
151
|
],
|
|
148
152
|
[
|
|
149
153
|
'`cli-command` warns: `Loaded integrations declare different CLI commands`',
|
|
@@ -154,7 +158,7 @@ export const docs = {
|
|
|
154
158
|
'Your `cliCommand` is not one line of plain text of at most 120 characters, so it is ignored. Fix the value; the rest of the manifest still loads.',
|
|
155
159
|
],
|
|
156
160
|
[
|
|
157
|
-
'`
|
|
161
|
+
'`{@command upgrade}` runs none of your codemods',
|
|
158
162
|
'The app must list your package in `integrations` in `astryx.config`, or pass `--integration @acme/astryx-widgets`. It runs a codemod folder only when its version is after `--from` and at most the installed `@astryxdesign/core`.',
|
|
159
163
|
],
|
|
160
164
|
[
|