@astryxdesign/cli 0.7.3 → 0.7.4-canary.1a31622
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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 +139 -18
- package/api/discover/_catalog-view.d.mts +2 -0
- package/api/discover/_catalog-view.mjs +1 -0
- package/api/discover/_catalog-view.test.mjs +1 -0
- package/api/discover/detail/detail.mjs +1 -0
- package/api/discover/detail/detail.test.mjs +3 -0
- package/api/discover/detail/doc/doc.mjs +5 -1
- package/api/discover/detail/doc/doc.test.mjs +1 -0
- package/api/discover/detail/item/item.mjs +33 -0
- package/api/discover/detail/item/item.test.mjs +2 -0
- package/api/discover/discover.doc.mjs +4 -4
- package/api/discover/discover.mjs +26 -8
- package/api/discover/discover.type.d.mts +45 -0
- package/api/discover/discover.type.mjs +20 -1
- package/api/discover/list/list.test.mjs +2 -0
- package/api/discover/search/search.d.mts +3 -2
- package/api/discover/search/search.mjs +26 -7
- package/api/discover/search/search.test.mjs +67 -0
- 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/_adapter.d.mts +40 -0
- package/api/doctor/_adapter.mjs +171 -1
- package/api/doctor/built-checks.d.mts +85 -0
- package/api/doctor/built-checks.mjs +837 -0
- package/api/doctor/built-checks.test.mjs +531 -0
- package/api/doctor/doctor.d.mts +40 -7
- package/api/doctor/doctor.doc.mjs +11 -1
- package/api/doctor/doctor.mjs +127 -14
- package/api/doctor/doctor.test.mjs +7 -3
- package/api/doctor/doctor.type.d.mts +6 -0
- package/api/doctor/doctor.type.mjs +3 -0
- 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 +74 -2
- package/api/integration/pack-check.test.mjs +77 -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/palette/generate/generate.d.mts +8 -0
- package/api/theme/palette/generate/generate.mjs +38 -11
- package/api/theme/palette/generate/generate.test.mjs +83 -4
- package/api/theme/palette/generate/generator.d.mts +6 -0
- package/api/theme/palette/generate/generator.mjs +6 -0
- package/api/theme/theme.type.d.mts +12 -1
- package/api/theme/theme.type.mjs +7 -1
- package/api/theme/themeBuild.doc.mjs +1 -1
- package/api/theme/themeList.doc.mjs +1 -1
- package/api/theme/themePaletteGenerate.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/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +1 -1
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.doc.mjs +1 -1
- 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/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/stone/palette.config.json +262 -0
- package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +51 -0
- package/assets/templates/themes/stone/stonePalettes.generated.receipt.json +840 -0
- package/assets/templates/themes/stone/stonePalettes.generated.ts +501 -0
- package/assets/templates/themes/stone/stoneTheme.ts +190 -207
- 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 +4 -1
- package/clients/cli/commands/discover.sources.test.mjs +6 -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 +13 -1
- package/clients/cli/commands/doctor.mjs +190 -25
- 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/error-codes.test.mjs +9 -0
- package/foundation/response/response-types.doc.mjs +68 -11
- package/foundation/response/response-types.doc.test.mjs +29 -0
- package/package.json +9 -9
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file Colocated types for the `icon` command (AST-084 FR6, FR7): the source
|
|
5
|
+
* of truth for its response shapes.
|
|
6
|
+
*
|
|
7
|
+
* @position api/icon — typedefs for api/icon/{icon,search,detail,list}
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The variant an icon's own export draws.
|
|
12
|
+
* @experimental May change or be removed in a patch release.
|
|
13
|
+
* @typedef {object} IconSetDefaultVariant
|
|
14
|
+
* @property {string} [variant] - One of the set's declared variants.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* One variant of an icon.
|
|
19
|
+
* @experimental May change or be removed in a patch release.
|
|
20
|
+
* @typedef {object} IconVariantEntry
|
|
21
|
+
* @property {string} variant - Which of the set's declared variants it draws.
|
|
22
|
+
* @property {string} module - The import specifier the variant is read from.
|
|
23
|
+
* @property {string} export - The named export that draws the variant.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* One variant of an icon, with its import line.
|
|
28
|
+
* @experimental May change or be removed in a patch release.
|
|
29
|
+
* @typedef {IconVariantEntry & {import: string}} IconDetailVariantEntry
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* One icon, as every icon read names it.
|
|
34
|
+
* @experimental May change or be removed in a patch release.
|
|
35
|
+
* @typedef {object} IconRecord
|
|
36
|
+
* @property {string} set - The set's name.
|
|
37
|
+
* @property {string} id - The icon's id, unique in its set.
|
|
38
|
+
* @property {string} package - The integration package that ships the set.
|
|
39
|
+
* @property {string} module - The import specifier of the icon's default export.
|
|
40
|
+
* @property {string} export - The named export that draws the default variant.
|
|
41
|
+
* @property {string} import - The import line for the default variant.
|
|
42
|
+
* @property {string[]} words - Terms a person might search for.
|
|
43
|
+
* @property {string[]} definitions - The icon definitions the set's `map` names this icon for.
|
|
44
|
+
* @property {IconVariantEntry[]} variants - Other variants.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* One ranked icon match.
|
|
49
|
+
* @experimental May change or be removed in a patch release.
|
|
50
|
+
* @typedef {IconRecord & {reason: string, score: number}} IconMatchEntry
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* `astryx --json experimental icon <words>`.
|
|
55
|
+
* @experimental May change or be removed in a patch release.
|
|
56
|
+
* @typedef {object} IconSearchResponse
|
|
57
|
+
* @property {'icon.search'} type
|
|
58
|
+
* @property {object} data
|
|
59
|
+
* @property {string} data.query
|
|
60
|
+
* @property {number} data.matchCount - Every match, before `limit`.
|
|
61
|
+
* @property {IconMatchEntry[]} data.matches - The ranked matches, at most `limit`.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* `astryx --json experimental icon <set>/<id>`.
|
|
66
|
+
* @experimental May change or be removed in a patch release.
|
|
67
|
+
* @typedef {object} IconDetailResponse
|
|
68
|
+
* @property {'icon.detail'} type
|
|
69
|
+
* @property {string} package - The integration package that ships the set.
|
|
70
|
+
* @property {Omit<IconRecord, 'variants'> & {variants: IconDetailVariantEntry[]}} data
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* One installed set.
|
|
75
|
+
* @experimental May change or be removed in a patch release.
|
|
76
|
+
* @typedef {object} IconSetEntry
|
|
77
|
+
* @property {string} name
|
|
78
|
+
* @property {string} displayName
|
|
79
|
+
* @property {string} description
|
|
80
|
+
* @property {string} package
|
|
81
|
+
* @property {string} license
|
|
82
|
+
* @property {number} iconCount
|
|
83
|
+
* @property {IconSetDefaultVariant | null} default
|
|
84
|
+
* @property {string[] | null} variants - The variants the set declares: named looks such as outline or solid; size comes from CSS.
|
|
85
|
+
* @property {IconSetCoverage} coverage - Which icon definitions the set's `map` covers.
|
|
86
|
+
* @property {boolean} project - Whether this is the project's icon set.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Which icon definitions one set's `map` covers.
|
|
91
|
+
* @experimental May change or be removed in a patch release.
|
|
92
|
+
* @typedef {object} IconSetCoverage
|
|
93
|
+
* @property {{mapped: number, total: number, missing: string[]}} builtIn - Built-in definitions: every set maps them all.
|
|
94
|
+
* @property {{mapped: number, total: number}} astryx - Every Astryx definition, built in or not.
|
|
95
|
+
* @property {string[]} own - The definitions the set declares itself, in its `definitions` folder.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* A set that answers nothing, and why.
|
|
100
|
+
* @experimental May change or be removed in a patch release.
|
|
101
|
+
* @typedef {object} IconWithdrawnEntry
|
|
102
|
+
* @property {string} name
|
|
103
|
+
* @property {string} package
|
|
104
|
+
* @property {string} reason
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* `astryx --json experimental icon --list`.
|
|
109
|
+
* @experimental May change or be removed in a patch release.
|
|
110
|
+
* @typedef {object} IconListResponse
|
|
111
|
+
* @property {'icon.list'} type
|
|
112
|
+
* @property {object} data
|
|
113
|
+
* @property {'selected' | 'none' | 'ambiguous' | 'missing' | 'withdrawn'} data.status - The project's icon-set state.
|
|
114
|
+
* @property {string | null} data.projectSet - The project's set, as `<package>/<set>`, when selected.
|
|
115
|
+
* @property {string} data.reason - Why the project has that set, or none.
|
|
116
|
+
* @property {IconSetEntry[]} data.sets - Installed sets, the project's first.
|
|
117
|
+
* @property {IconWithdrawnEntry[]} data.withdrawn - Sets found but withdrawn.
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* `astryx --json experimental icon use <set>`.
|
|
122
|
+
* @experimental May change or be removed in a patch release.
|
|
123
|
+
* @typedef {object} IconUseResponse
|
|
124
|
+
* @property {'icon.use'} type
|
|
125
|
+
* @property {object} data
|
|
126
|
+
* @property {string} data.iconSet - The value written to `experimental.iconSet`.
|
|
127
|
+
* @property {string} data.set - The set it names, as `<package>/<set>`.
|
|
128
|
+
* @property {string} data.config - The config file, relative to the project.
|
|
129
|
+
* @property {boolean} data.created - Whether the config file was created.
|
|
130
|
+
* @property {string | null} data.previous - The `experimental.iconSet` value it replaced.
|
|
131
|
+
* @property {boolean} data.changed - Whether anything was written.
|
|
132
|
+
* @property {string} [data.warning] - Present when the project's
|
|
133
|
+
* `@astryxdesign/cli` range admits a release before 0.7.4, which refuses
|
|
134
|
+
* an astryx.config that sets `experimental.iconSet`: what fails, and the
|
|
135
|
+
* range to require.
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Options for `iconMap()`.
|
|
140
|
+
* @experimental May change or be removed in a patch release.
|
|
141
|
+
* @typedef {object} IconMapOptions
|
|
142
|
+
* @property {string} [cwd]
|
|
143
|
+
* @property {string} [set] - The set to edit, when the package ships several.
|
|
144
|
+
* @property {boolean} [remove] - Remove the definition's entry instead.
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* `astryx --json experimental icon map <definition> <icon>`.
|
|
149
|
+
* @experimental May change or be removed in a patch release.
|
|
150
|
+
* @typedef {object} IconMapResponse
|
|
151
|
+
* @property {'icon.map'} type
|
|
152
|
+
* @property {object} data
|
|
153
|
+
* @property {string} data.set
|
|
154
|
+
* @property {string} data.package
|
|
155
|
+
* @property {string} data.file - The data file, relative to the package.
|
|
156
|
+
* @property {string} data.definition
|
|
157
|
+
* @property {string | null} data.icon - The icon id now mapped; null after `remove`.
|
|
158
|
+
* @property {string | null} data.previous - The icon id it replaced.
|
|
159
|
+
* @property {boolean} data.changed - Whether the file was written.
|
|
160
|
+
* @property {string[]} [data.files] - The generated module and its types, when its theme map was rewritten.
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Options for `iconAdd()`.
|
|
165
|
+
* @experimental May change or be removed in a patch release.
|
|
166
|
+
* @typedef {object} IconAddOptions
|
|
167
|
+
* @property {string} [cwd]
|
|
168
|
+
* @property {string} from - The module the icon is exported from: a package, a package subpath, or a relative path in this package.
|
|
169
|
+
* @property {string} [set] - The set to edit, when the package ships several.
|
|
170
|
+
* @property {string} [definition] - The icon definition to map the icon to.
|
|
171
|
+
* @property {string} [newDefinition] - Add the set's own definition with this name and map the icon to it.
|
|
172
|
+
* @property {string} [description] - With `newDefinition`: what the icon is for.
|
|
173
|
+
* @property {string[]} [words] - With `newDefinition`: words people search for.
|
|
174
|
+
* @property {boolean} [useDefault] - The module's default export is the icon.
|
|
175
|
+
* @property {string} [variant] - Add the export as this declared variant of an existing icon.
|
|
176
|
+
* @property {string} [id] - The icon's id, instead of the one its name gives.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* `astryx --json experimental icon add <Export> --from <module> --definition <name>`.
|
|
181
|
+
* @experimental May change or be removed in a patch release.
|
|
182
|
+
* @typedef {object} IconAddResponse
|
|
183
|
+
* @property {'icon.add'} type
|
|
184
|
+
* @property {object} data
|
|
185
|
+
* @property {string} data.set
|
|
186
|
+
* @property {string} data.package
|
|
187
|
+
* @property {{id: string, export: string, module: string}} data.icon
|
|
188
|
+
* @property {string} [data.variant] - The variant, when the export was added as one.
|
|
189
|
+
* @property {string | null} data.definition - The definition mapped to the icon.
|
|
190
|
+
* @property {string} [data.newDefinition] - The set's own definition the command wrote.
|
|
191
|
+
* @property {string[]} data.files - Files written, relative to the package.
|
|
192
|
+
* @property {boolean} data.changed - Whether anything was written.
|
|
193
|
+
* @property {string} [data.note] - What the set's module still needs to export the icon.
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* One icon definition that fits an export.
|
|
198
|
+
* @experimental May change or be removed in a patch release.
|
|
199
|
+
* @typedef {object} IconDefinitionMatch
|
|
200
|
+
* @property {string} name
|
|
201
|
+
* @property {string} description
|
|
202
|
+
* @property {'astryx' | 'set'} source - Astryx's definition, or the set's own.
|
|
203
|
+
* @property {number} score
|
|
204
|
+
* @property {string} reason
|
|
205
|
+
* @property {string} command - The `experimental icon add` command that maps the icon to it.
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* `astryx --json experimental icon add <Export> --from <module>` with no definition.
|
|
210
|
+
* @experimental May change or be removed in a patch release.
|
|
211
|
+
* @typedef {object} IconDefinitionMatchesResponse
|
|
212
|
+
* @property {'icon.definitionMatches'} type
|
|
213
|
+
* @property {object} data
|
|
214
|
+
* @property {string} data.export
|
|
215
|
+
* @property {string} data.from
|
|
216
|
+
* @property {string} data.id - The id the icon would get.
|
|
217
|
+
* @property {IconDefinitionMatch[]} data.matches - At most 10, best first.
|
|
218
|
+
* @property {string | null} data.newDefinition - The command that adds the set's own definition, when no match fits.
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Options for `icon()`.
|
|
223
|
+
* @experimental May change or be removed in a patch release.
|
|
224
|
+
* @typedef {object} IconOptions
|
|
225
|
+
* @property {string} [cwd]
|
|
226
|
+
* @property {boolean} [list] - List the installed sets.
|
|
227
|
+
* @property {string} [set] - Keep one set, by name or `<package>/<set>`.
|
|
228
|
+
* @property {number} [limit] - Max matches (default 10).
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Options for `iconNewSet()`.
|
|
233
|
+
* @experimental May change or be removed in a patch release.
|
|
234
|
+
* @typedef {object} IconNewSetOptions
|
|
235
|
+
* @property {string} [cwd] - A directory inside the integration package.
|
|
236
|
+
* @property {boolean} [dryRun] - Return the receipt without writing.
|
|
237
|
+
* @property {string} [from] - A module whose every icon component the set wraps: a package, a package subpath, or a ./ path in the package.
|
|
238
|
+
* @property {string[] | string} [exclude] - With `from`: export names that are not icons; a string is split on commas.
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Options for `iconNewDefinition()`.
|
|
243
|
+
* @experimental May change or be removed in a patch release.
|
|
244
|
+
* @typedef {object} IconNewDefinitionOptions
|
|
245
|
+
* @property {string} [cwd] - A directory inside the icon-set package.
|
|
246
|
+
* @property {boolean} [dryRun] - Return the receipt without writing.
|
|
247
|
+
* @property {string} [set] - The set, when the package ships several.
|
|
248
|
+
* @property {string} [description] - What an icon with this definition is for.
|
|
249
|
+
* @property {string[] | string} [words] - Words people search for; a string is split on commas.
|
|
250
|
+
* @property {string} [icon] - An icon id to map the definition to.
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* What `iconNewSet()` and `iconNewDefinition()` wrote.
|
|
255
|
+
* @experimental May change or be removed in a patch release.
|
|
256
|
+
* @typedef {object} IconNewData
|
|
257
|
+
* @property {'icon-set' | 'icon-definition'} kind
|
|
258
|
+
* @property {string} name
|
|
259
|
+
* @property {{path: string, created: boolean} | null} root - The manifest's `experimental.iconSets` root, when the call declared or used it.
|
|
260
|
+
* @property {string} manifest - The manifest file, relative to the package.
|
|
261
|
+
* @property {string[]} files - Files written, relative to the package.
|
|
262
|
+
* @property {boolean} written
|
|
263
|
+
* @property {boolean} dryRun
|
|
264
|
+
* @property {string} [from]
|
|
265
|
+
* @property {number} [icons] - With `from`: how many icons it wrote.
|
|
266
|
+
* @property {string[]} [notes] - What the author does next.
|
|
267
|
+
*/
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* `astryx --json experimental icon new-set <name>`.
|
|
271
|
+
* @experimental May change or be removed in a patch release.
|
|
272
|
+
* @typedef {object} IconNewSetResponse
|
|
273
|
+
* @property {'icon.newSet'} type
|
|
274
|
+
* @property {IconNewData} data
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* `astryx --json experimental icon new-definition <name>`.
|
|
279
|
+
* @experimental May change or be removed in a patch release.
|
|
280
|
+
* @typedef {object} IconNewDefinitionResponse
|
|
281
|
+
* @property {'icon.newDefinition'} type
|
|
282
|
+
* @property {IconNewData} data
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @experimental May change or be removed in a patch release.
|
|
287
|
+
* @typedef {IconNewSetResponse | IconNewDefinitionResponse} IconNewResponse
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/** @file FunctionDoc for `iconAdd()` / `astryx experimental icon add` (AST-084 FR13). */
|
|
5
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
6
|
+
export const doc: import("@astryxdesign/cli/authoring").FunctionDoc;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/** @file FunctionDoc for `iconAdd()` / `astryx experimental icon add` (AST-084 FR13). */
|
|
4
|
+
|
|
5
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
6
|
+
export const doc = {
|
|
7
|
+
type: 'function',
|
|
8
|
+
kind: 'api',
|
|
9
|
+
name: 'iconAdd',
|
|
10
|
+
namespace: 'cli/api',
|
|
11
|
+
stability: 'experimental',
|
|
12
|
+
displayName: 'iconAdd()',
|
|
13
|
+
summary:
|
|
14
|
+
'Register one icon you chose from a library in the set being authored.',
|
|
15
|
+
description:
|
|
16
|
+
"Run inside an icon-set package. The caller picks the export; the CLI never searches the library. It proves the export is a runtime component of `from` (a package, a package subpath, or a relative path this package exports), read without running it. With no definition it answers the icon definitions that fit the export, Astryx's and the set's own, and writes nothing. With `definition` it adds the icon (id from its name, `module` the source unless the set's own module already exports it, words from its name and the definition) and maps the definition to it. With `newDefinition` it first writes the set's own definition file. A `variant` adds the export as that declared variant of an existing icon. Running it again changes nothing. Experimental: it may change or be removed in a patch release.",
|
|
17
|
+
importPath: '@astryxdesign/cli/api',
|
|
18
|
+
signature:
|
|
19
|
+
'iconAdd(exportName: string, options: IconAddOptions): Promise<IconAddResponse | IconDefinitionMatchesResponse>',
|
|
20
|
+
keywords: [
|
|
21
|
+
'icon',
|
|
22
|
+
'icon set',
|
|
23
|
+
'add icon',
|
|
24
|
+
'register',
|
|
25
|
+
'icon library',
|
|
26
|
+
'icon definition',
|
|
27
|
+
],
|
|
28
|
+
params: [
|
|
29
|
+
{
|
|
30
|
+
name: 'exportName',
|
|
31
|
+
type: 'string',
|
|
32
|
+
description:
|
|
33
|
+
'The export the set exposes the icon as, such as `Bin`; the set exports it as `<Name>Icon`.',
|
|
34
|
+
required: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'options.from',
|
|
38
|
+
type: 'string',
|
|
39
|
+
description: 'The module the icon is exported from.',
|
|
40
|
+
required: true,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'options.set',
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'The set, when the package ships several.',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'options.definition',
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'The icon definition to map the icon to.',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'options.newDefinition',
|
|
54
|
+
type: 'string',
|
|
55
|
+
description:
|
|
56
|
+
"Add the set's own definition with this name, then map the icon to it.",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'options.description',
|
|
60
|
+
type: 'string',
|
|
61
|
+
description: 'With `newDefinition`: what the icon is for.',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'options.words',
|
|
65
|
+
type: 'string[]',
|
|
66
|
+
description: 'With `newDefinition`: the words people search for.',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'options.useDefault',
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
description:
|
|
72
|
+
"The module's default export is the icon; the set's module must re-export it as `exportName`.",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'options.variant',
|
|
76
|
+
type: 'string',
|
|
77
|
+
description:
|
|
78
|
+
"Add the export as this variant of an existing icon: one of the set's declared variants, such as `solid`.",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'options.id',
|
|
82
|
+
type: 'string',
|
|
83
|
+
description: "The icon's id, instead of the one its name gives.",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'options.cwd',
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'A directory inside the icon-set package.',
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
returns: [
|
|
92
|
+
{
|
|
93
|
+
type: 'icon.add',
|
|
94
|
+
description:
|
|
95
|
+
'The icon registered, the definition mapped, and the files written.',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: 'icon.definitionMatches',
|
|
99
|
+
description:
|
|
100
|
+
'Without a definition: the definitions that fit the export, and the commands that add it.',
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
throws: [
|
|
104
|
+
{
|
|
105
|
+
code: 'ERR_NOT_FOUND',
|
|
106
|
+
when: 'the module does not export the name, or the definition is unknown',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
code: 'ERR_INVALID_ARGUMENT',
|
|
110
|
+
when: 'the export is data rather than a component, a new definition is named like an Astryx one, or the variant is not one the set declares',
|
|
111
|
+
},
|
|
112
|
+
{code: 'ERR_FILE_EXISTS', when: 'another icon already has the id'},
|
|
113
|
+
{
|
|
114
|
+
code: 'ERR_PROJECT_REQUIRED',
|
|
115
|
+
when: 'the folder is outside any project and has no package.json at or above it',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
code: 'ERR_MISSING_ARGUMENT',
|
|
119
|
+
when: '`from` is missing',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
code: 'ERR_FILE_NOT_FOUND',
|
|
123
|
+
when: 'a relative `from` resolves to no module file in the package',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
code: 'ERR_PATH_TRAVERSAL',
|
|
127
|
+
when: '`from`, or the declared `experimental.iconSets` root, escapes the package',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
code: 'ERR_WRITE_FAILED',
|
|
131
|
+
when: 'a file cannot be written; every write before it is undone',
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
examples: [
|
|
135
|
+
{
|
|
136
|
+
label: 'Which definitions fit',
|
|
137
|
+
code: "await iconAdd('Bin', {from: '@acme/glyph-library'});",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: 'Add and map',
|
|
141
|
+
code: "await iconAdd('Bin', {from: '@acme/glyph-library', definition: 'delete'});",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
command: 'experimental icon add',
|
|
145
|
+
related: ['iconMap', 'iconNewDefinition', 'validateIntegration'],
|
|
146
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/** @file FunctionDoc for `iconMap()` / `astryx experimental icon map` (AST-084 FR13). */
|
|
5
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
6
|
+
export const doc: import("@astryxdesign/cli/authoring").FunctionDoc;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/** @file FunctionDoc for `iconMap()` / `astryx experimental icon map` (AST-084 FR13). */
|
|
4
|
+
|
|
5
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
6
|
+
export const doc = {
|
|
7
|
+
type: 'function',
|
|
8
|
+
kind: 'api',
|
|
9
|
+
name: 'iconMap',
|
|
10
|
+
namespace: 'cli/api',
|
|
11
|
+
stability: 'experimental',
|
|
12
|
+
displayName: 'iconMap()',
|
|
13
|
+
summary:
|
|
14
|
+
'Register which icon of the set being authored draws an icon definition.',
|
|
15
|
+
description:
|
|
16
|
+
"Run inside an icon-set package. Sets `map[definition] = icon` in the set's data file, or removes the entry. The definition must be Astryx's or one the set declares, and the icon an id in the file. The file is written in one fixed shape, `map` keys sorted. `integration check` suggests these commands for definitions the set has a fitting icon for. Experimental: it may change or be removed in a patch release.",
|
|
17
|
+
importPath: '@astryxdesign/cli/api',
|
|
18
|
+
signature:
|
|
19
|
+
'iconMap(definition: string, icon?: string, options?: IconMapOptions): Promise<IconMapResponse>',
|
|
20
|
+
keywords: ['icon', 'icon set', 'map', 'icon definition', 'register'],
|
|
21
|
+
params: [
|
|
22
|
+
{
|
|
23
|
+
name: 'definition',
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'The icon definition.',
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'icon',
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'An icon id in the set. Omit with `remove`.',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'options.cwd',
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'A directory inside the icon-set package.',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'options.set',
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'The set, when the package ships several.',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'options.remove',
|
|
45
|
+
type: 'boolean',
|
|
46
|
+
description: "Remove the definition's entry.",
|
|
47
|
+
default: 'false',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
returns: [
|
|
51
|
+
{
|
|
52
|
+
type: 'icon.map',
|
|
53
|
+
description:
|
|
54
|
+
'The set, the data file, the definition, the icon now mapped, the icon it replaced, and whether the file changed.',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
throws: [
|
|
58
|
+
{
|
|
59
|
+
code: 'ERR_NOT_FOUND',
|
|
60
|
+
when: 'the definition is unknown, or the set has no such icon',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
code: 'ERR_INVALID_ARGUMENT',
|
|
64
|
+
when: 'the package ships several sets and none is named',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
code: 'ERR_PROJECT_REQUIRED',
|
|
68
|
+
when: 'the folder is outside any project and has no package.json at or above it',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
code: 'ERR_MISSING_ARGUMENT',
|
|
72
|
+
when: 'the definition is missing, or the icon id without `remove`',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
code: 'ERR_PATH_TRAVERSAL',
|
|
76
|
+
when: 'the declared `experimental.iconSets` root escapes the package',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
code: 'ERR_WRITE_FAILED',
|
|
80
|
+
when: 'the data file or generated module cannot be written; every write before it is undone',
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
examples: [
|
|
84
|
+
{label: 'Map a definition', code: "await iconMap('delete', 'trash');"},
|
|
85
|
+
{
|
|
86
|
+
label: 'Remove an entry',
|
|
87
|
+
code: "await iconMap('delete', undefined, {remove: true});",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
command: 'experimental icon map',
|
|
91
|
+
related: ['iconAdd', 'iconNewDefinition', 'validateIntegration'],
|
|
92
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
5
|
+
export const doc: import("@astryxdesign/cli/authoring").FunctionDoc;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
4
|
+
export const doc = {
|
|
5
|
+
type: 'function',
|
|
6
|
+
kind: 'api',
|
|
7
|
+
name: 'iconNewDefinition',
|
|
8
|
+
namespace: 'cli/api',
|
|
9
|
+
stability: 'experimental',
|
|
10
|
+
displayName: 'iconNewDefinition()',
|
|
11
|
+
summary: "Add one of an icon set's own icon definitions.",
|
|
12
|
+
description:
|
|
13
|
+
"Run inside an icon-set package. Writes `<set>/definitions/<name>.doc.mjs`, a strongly typed IconDefinitionDoc with the description and words, and, with `icon`, the set's `map` entry for it. A name Astryx already has is refused: map to Astryx's definition instead. The file is never overwritten, and a write that fails is undone. Experimental: it may change or be removed in a patch release.",
|
|
14
|
+
importPath: '@astryxdesign/cli/api',
|
|
15
|
+
signature:
|
|
16
|
+
'iconNewDefinition(name: string, options?: IconNewDefinitionOptions): Promise<IconNewDefinitionResponse>',
|
|
17
|
+
keywords: ['integration', 'add', 'icon definition', 'icon set', 'author'],
|
|
18
|
+
params: [
|
|
19
|
+
{
|
|
20
|
+
name: 'name',
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'camelCase definition name.',
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'options.description',
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'One sentence on what an icon with this definition is for.',
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'options.words',
|
|
33
|
+
type: 'string[] | string',
|
|
34
|
+
description: 'Words people search for; a string is split on commas.',
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'options.icon',
|
|
39
|
+
type: 'string',
|
|
40
|
+
description: 'An icon id in the set to map the definition to.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'options.set',
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'The set, when the package ships several.',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'options.cwd',
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'A directory inside the icon-set package.',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'options.dryRun',
|
|
54
|
+
type: 'boolean',
|
|
55
|
+
description: 'Return the receipt without writing.',
|
|
56
|
+
default: 'false',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
returns: [
|
|
60
|
+
{
|
|
61
|
+
type: 'icon.newDefinition',
|
|
62
|
+
description:
|
|
63
|
+
'What it wrote: the manifest root, the files, and what to do next.',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
throws: [
|
|
67
|
+
{
|
|
68
|
+
code: 'ERR_INVALID_ARGUMENT',
|
|
69
|
+
when: 'the name is not camelCase, or Astryx already has it',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
code: 'ERR_MISSING_ARGUMENT',
|
|
73
|
+
when: 'the description or words are missing',
|
|
74
|
+
},
|
|
75
|
+
{code: 'ERR_FILE_EXISTS', when: 'the definition file already exists'},
|
|
76
|
+
{
|
|
77
|
+
code: 'ERR_NOT_FOUND',
|
|
78
|
+
when: 'the package ships no icon set, or the set has no such icon',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
code: 'ERR_PROJECT_REQUIRED',
|
|
82
|
+
when: 'the folder is outside any project and has no package.json at or above it',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
code: 'ERR_PATH_TRAVERSAL',
|
|
86
|
+
when: 'the declared `experimental.iconSets` root escapes the package',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
code: 'ERR_WRITE_FAILED',
|
|
90
|
+
when: 'the definition file or data file cannot be written; every write before it is undone',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
examples: [
|
|
94
|
+
{
|
|
95
|
+
label: 'Add and map a definition',
|
|
96
|
+
code: "await iconNewDefinition('rotate', {description: 'Rotate an image or shape.', words: ['turn', 'spin'], icon: 'rotate-cw'});",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
command: 'experimental icon new-definition',
|
|
100
|
+
related: ['iconNewSet', 'iconMap', 'iconAdd'],
|
|
101
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
5
|
+
export const doc: import("@astryxdesign/cli/authoring").FunctionDoc;
|