@astryxdesign/cli 0.6.3 → 0.6.4-canary.10dd683
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 +194 -0
- package/README.md +117 -78
- package/api/blog/blog.doc.mjs +1 -0
- package/api/build/_adapter.d.mts +50 -0
- package/api/build/_adapter.mjs +60 -0
- package/api/build/build.doc.mjs +16 -9
- package/api/build/build.test.mjs +197 -8
- package/api/build/build.type.d.mts +91 -2
- package/api/build/build.type.mjs +52 -8
- package/api/build/help/help.d.mts +12 -5
- package/api/build/help/help.mjs +69 -6
- package/api/build/kit/kit.d.mts +4 -1
- package/api/build/kit/kit.mjs +165 -49
- package/api/build/kit/rank.d.mts +44 -0
- package/api/build/kit/rank.mjs +432 -0
- package/api/build/kit/rank.test.mjs +196 -0
- package/api/component/_adapter.d.mts +6 -12
- package/api/component/_adapter.mjs +20 -10
- package/api/component/component.doc.mjs +13 -3
- package/api/component/component.mjs +91 -14
- package/api/component/component.test.mjs +38 -0
- package/api/component/component.type.d.mts +22 -11
- package/api/component/component.type.mjs +32 -24
- package/api/component/detail/blocks/blocks.d.mts +2 -1
- package/api/component/detail/blocks/blocks.mjs +4 -3
- package/api/component/list/list.d.mts +0 -5
- package/api/component/list/list.mjs +40 -11
- package/api/discover/_adapter.d.mts +114 -6
- package/api/discover/_adapter.mjs +372 -17
- package/api/discover/_adapter.test.mjs +215 -0
- package/api/discover/_catalog-view.d.mts +115 -0
- package/api/discover/_catalog-view.mjs +203 -0
- package/api/discover/_catalog-view.test.mjs +128 -0
- package/api/discover/detail/detail.d.mts +18 -6
- package/api/discover/detail/detail.mjs +67 -13
- package/api/discover/detail/detail.test.mjs +85 -0
- package/api/discover/detail/item/item.d.mts +26 -0
- package/api/discover/detail/item/item.mjs +78 -0
- package/api/discover/detail/item/item.test.mjs +73 -0
- package/api/discover/discover.d.mts +3 -9
- package/api/discover/discover.doc.mjs +62 -18
- package/api/discover/discover.mjs +220 -36
- package/api/discover/discover.test.mjs +11 -2
- package/api/discover/discover.type.d.mts +150 -11
- package/api/discover/discover.type.mjs +107 -17
- package/api/discover/list/list.d.mts +20 -6
- package/api/discover/list/list.mjs +45 -12
- package/api/discover/list/list.test.mjs +46 -0
- package/api/discover/search/search.d.mts +18 -16
- package/api/discover/search/search.mjs +102 -56
- package/api/discover/search/search.test.mjs +144 -10
- package/api/docs/_adapter.d.mts +272 -41
- package/api/docs/_adapter.mjs +985 -108
- package/api/docs/compiled-topics.test.mjs +78 -0
- package/api/docs/detail/detail.mjs +22 -63
- package/api/docs/detail/section/section.d.mts +1 -1
- package/api/docs/detail/section/section.mjs +54 -19
- package/api/docs/detail/section/section.test.mjs +50 -0
- package/api/docs/docs.d.mts +10 -3
- package/api/docs/docs.doc.mjs +55 -16
- package/api/docs/docs.mjs +53 -10
- package/api/docs/docs.test.mjs +164 -4
- package/api/docs/docs.type.d.mts +221 -5
- package/api/docs/docs.type.mjs +153 -11
- package/api/docs/index/index.d.mts +18 -0
- package/api/docs/index/index.mjs +40 -0
- package/api/docs/index/index.test.mjs +62 -0
- package/api/docs/integration-tree.test.mjs +555 -0
- package/api/docs/integrationDocs.test.mjs +114 -8
- package/api/docs/list/list.mjs +28 -12
- package/api/docs/node/node.d.mts +43 -0
- package/api/docs/node/node.mjs +192 -0
- package/api/docs/reference-blocks.test.mjs +406 -0
- package/api/doctor/doctor.d.mts +99 -1
- package/api/doctor/doctor.doc.mjs +1 -0
- package/api/doctor/doctor.mjs +548 -1
- package/api/doctor/doctor.test.mjs +610 -1
- package/api/gap-report/gap-report.doc.mjs +8 -4
- package/api/hook/_adapter.mjs +19 -5
- package/api/hook/hook.doc.mjs +1 -0
- package/api/hook/hook.type.d.mts +3 -3
- package/api/hook/hook.type.mjs +11 -11
- package/api/hook/list/list.d.mts +2 -2
- package/api/hook/list/list.mjs +69 -17
- package/api/index.d.mts +1 -1
- package/api/index.mjs +1 -0
- package/api/init/init.doc.mjs +6 -1
- package/api/init/init.test.mjs +41 -1
- package/api/init/remove/remove.mjs +1 -1
- package/api/init/run/run.mjs +20 -10
- package/api/integration/add-contribution.component-names.test.mjs +120 -0
- package/api/integration/add-contribution.d.mts +2 -1
- package/api/integration/add-contribution.mjs +130 -15
- package/api/integration/add-contribution.test.mjs +258 -7
- package/api/integration/add-helpers.d.mts +5 -2
- package/api/integration/add-helpers.mjs +36 -9
- package/api/integration/add-theme.mjs +34 -64
- package/api/integration/add-theme.test.mjs +105 -21
- package/api/integration/authoring-checks.mjs +138 -28
- package/api/integration/authoring-checks.test.mjs +179 -7
- package/api/integration/authoring-checks.type.mjs +6 -1
- package/api/integration/integration-authoring.type.d.mts +3 -1
- package/api/integration/integration-authoring.type.mjs +2 -0
- package/api/integration/integration-block-exports.test.mjs +10 -6
- package/api/integration/integrationAdd.doc.mjs +14 -4
- package/api/integration/integrationAddAgentDoc.doc.mjs +1 -0
- package/api/integration/integrationAddCodemod.doc.mjs +1 -0
- package/api/integration/integrationAddComponent.doc.mjs +2 -1
- package/api/integration/integrationAddDoc.doc.mjs +8 -1
- package/api/integration/integrationAddTemplate.doc.mjs +1 -0
- package/api/integration/integrationAddTheme.doc.mjs +6 -5
- package/api/integration/integrationComponentConflicts.doc.mjs +1 -0
- package/api/integration/integrationDocConflicts.doc.mjs +2 -1
- package/api/integration/integrationPackCheck.doc.mjs +2 -1
- package/api/integration/integrationTemplateConflicts.doc.d.mts +3 -0
- package/api/integration/integrationTemplateConflicts.doc.mjs +4 -0
- package/api/integration/pack-check.mjs +83 -7
- package/api/integration/pack-check.test.mjs +387 -47
- package/api/integration/pack-check.type.d.mts +26 -2
- package/api/integration/pack-check.type.mjs +14 -1
- package/api/integration/summarizeIssues.doc.mjs +1 -0
- package/api/integration/template-conflict-compatibility.test.mjs +73 -0
- package/api/integration/validate-integration-fixes.test.mjs +1389 -0
- package/api/integration/validate-integration.mjs +52 -102
- package/api/integration/validate-integration.test.mjs +179 -26
- package/api/integration/validate-unread-theme-folders.test.mjs +110 -0
- package/api/integration/validateIntegration.doc.mjs +3 -2
- package/api/json/assertResponse.doc.mjs +1 -0
- package/api/json/envelope-types.test.mjs +76 -0
- package/api/json/index.ts +2 -0
- package/api/json/isError.doc.mjs +1 -0
- package/api/json/parseResponse.doc.mjs +3 -2
- package/api/layout/_adapter.mjs +20 -5
- package/api/layout/expand/expand.mjs +7 -5
- package/api/layout/expand/expand.path-safety.test.mjs +53 -0
- package/api/layout/grammar/grammar.mjs +2 -1
- package/api/layout/layoutCheck.doc.mjs +1 -0
- package/api/layout/layoutExpand.doc.mjs +2 -1
- package/api/layout/layoutGrammar.doc.mjs +1 -0
- package/api/search/search-return-type.test.mjs +54 -0
- package/api/search/search.d.mts +62 -11
- package/api/search/search.doc.mjs +8 -2
- package/api/search/search.mjs +471 -83
- package/api/search/search.test.mjs +124 -1
- package/api/search/search.type.d.mts +15 -3
- package/api/search/search.type.mjs +5 -2
- package/api/swizzle/copy/copy.mjs +28 -11
- package/api/swizzle/swizzle.doc.mjs +2 -1
- package/api/swizzle/swizzle.type.d.mts +2 -2
- package/api/swizzle/swizzle.type.mjs +2 -2
- package/api/template/copy/copy.mjs +17 -23
- package/api/template/copy/copy.test.mjs +17 -0
- package/api/template/list/list.mjs +1 -0
- package/api/template/table-floating-bulk-actions.test.mjs +66 -0
- package/api/template/template-integration.test.mjs +1072 -3
- package/api/template/template-suffix.test.mjs +41 -21
- package/api/template/template.d.mts +1 -1
- package/api/template/template.doc.mjs +30 -8
- package/api/template/template.mjs +45 -8
- package/api/template/template.type.d.mts +12 -14
- package/api/template/template.type.mjs +15 -14
- package/api/theme/_adapter.d.mts +2 -3
- package/api/theme/_adapter.mjs +4 -5
- package/api/theme/add/add.binary.test.mjs +84 -0
- package/api/theme/add/add.mjs +31 -22
- package/api/theme/add/add.rollback.test.mjs +158 -0
- package/api/theme/add/add.staging.test.mjs +83 -0
- package/api/theme/add/add.test.mjs +14 -1
- package/api/theme/build/build.family.test.mjs +7 -12
- package/api/theme/build/build.mjs +140 -59
- package/api/theme/build/build.public-component-vars.test.mjs +1 -1
- package/api/theme/build/build.receipt-doc.test.mjs +111 -0
- package/api/theme/build/build.rollback.test.mjs +148 -0
- package/api/theme/build/build.test.mjs +127 -0
- package/api/theme/build/font-warning.mjs +3 -3
- package/api/theme/build/font-warning.test.mjs +5 -2
- package/api/theme/generateTonalPalette.doc.mjs +1 -0
- package/api/theme/integration-themes.test.mjs +39 -28
- package/api/theme/list/list.test.mjs +19 -20
- package/api/theme/listThemes.doc.mjs +6 -5
- package/api/theme/palette/generate/generate.mjs +8 -3
- package/api/theme/palette/generate/generate.test.mjs +96 -0
- package/api/theme/palette/generate/generator.d.mts +10 -13
- package/api/theme/palette/generate/generator.mjs +15 -4
- package/api/theme/palette/generate/generator.test.mjs +10 -0
- package/api/theme/template/template.mjs +11 -2
- package/api/theme/template/template.test.mjs +20 -0
- package/api/theme/theme.type.d.mts +170 -11
- package/api/theme/theme.type.mjs +94 -27
- package/api/theme/themeAdd.doc.mjs +4 -3
- package/api/theme/themeBuild.doc.mjs +8 -4
- package/api/theme/themeList.doc.mjs +6 -3
- package/api/theme/themeListAvailable.doc.mjs +5 -3
- package/api/theme/themePaletteGenerate.doc.mjs +1 -0
- package/api/theme/themeTargets.doc.mjs +1 -0
- package/api/theme/themeTemplate.doc.mjs +6 -2
- package/api/upgrade/_adapter.d.mts +32 -5
- package/api/upgrade/_adapter.mjs +139 -22
- package/api/upgrade/list/list.mjs +2 -1
- package/api/upgrade/list/list.test.mjs +73 -0
- package/api/upgrade/project-context.test.mjs +272 -0
- package/api/upgrade/provider-agreement.test.mjs +152 -0
- package/api/upgrade/run/run.mjs +356 -59
- package/api/upgrade/status/status.mjs +2 -2
- package/api/upgrade/upgrade.doc.mjs +12 -5
- package/api/upgrade/upgrade.type.d.mts +43 -5
- package/api/upgrade/upgrade.type.mjs +27 -11
- package/assets/codemods/__tests__/registry.test.mjs +1 -0
- package/assets/codemods/__tests__/runner.test.mjs +330 -8
- package/assets/codemods/integration-discovery.mjs +48 -4
- package/assets/codemods/integration-discovery.test.mjs +73 -0
- package/assets/codemods/integration-runner.mjs +56 -4
- package/assets/codemods/integration-runner.protection.test.mjs +153 -0
- package/assets/codemods/registry.mjs +1 -0
- package/assets/codemods/run-codemod.mjs +177 -34
- package/assets/codemods/runner.mjs +350 -102
- package/assets/codemods/term-log.mjs +32 -8
- package/assets/codemods/term-log.test.mjs +19 -1
- package/assets/codemods/transform-prop.mjs +109 -0
- package/assets/codemods/transform-prop.test.mjs +95 -0
- package/assets/codemods/transforms/v0.0.14/__tests__/rename-status-variants.test.mjs +86 -165
- package/assets/codemods/transforms/v0.0.14/rename-status-variants.mjs +72 -210
- package/assets/codemods/transforms/v0.1.8/__tests__/rename-avatar-size-scale.test.mjs +83 -115
- package/assets/codemods/transforms/v0.1.8/rename-avatar-size-scale.mjs +57 -186
- package/assets/codemods/transforms/v0.3.0/__tests__/unwrap-authoring-factories.test.mjs +27 -5
- package/assets/codemods/transforms/v0.3.0/unwrap-authoring-factories.mjs +20 -5
- package/assets/codemods/transforms/v0.6.0/__tests__/next-codemods.test.mjs +47 -0
- package/assets/codemods/transforms/v0.6.0/rename-resizable-pixel-bounds.mjs +57 -10
- package/assets/codemods/transforms/v0.6.4/__tests__/migrate-native-picker-to-presentation.test.mjs +63 -0
- package/assets/codemods/transforms/v0.6.4/__tests__/migrate-theme-catalog-to-descriptors.test.mjs +220 -0
- package/assets/codemods/transforms/v0.6.4/index.mjs +31 -0
- package/assets/codemods/transforms/v0.6.4/migrate-native-picker-to-presentation.mjs +148 -0
- package/assets/codemods/transforms/v0.6.4/migrate-theme-catalog-to-descriptors.mjs +141 -0
- package/assets/docs/README.md +9 -0
- package/assets/docs/authoring.doc.mjs +14 -0
- package/assets/docs/getting-started.doc.mjs +2 -2
- package/assets/docs/internationalization.doc.mjs +7 -5
- package/assets/docs/layout.doc.dense.mjs +2 -2
- package/assets/docs/layout.doc.mjs +1 -1
- package/assets/docs/principles.doc.mjs +6 -6
- package/assets/docs/styling-libraries.doc.mjs +4 -4
- package/assets/docs/styling.doc.mjs +4 -4
- package/assets/docs/theme.doc.mjs +5 -5
- package/assets/docs/tokens.doc.mjs +1 -1
- package/assets/docs/tree/api.doc.mjs +30 -0
- package/assets/docs/tree/cli.doc.mjs +23 -0
- package/assets/docs/tree/commands.doc.mjs +25 -0
- package/assets/docs/{cli-integrations.doc.mjs → tree/integrations.doc.mjs} +144 -26
- package/assets/docs/tree/integrations.test.mjs +62 -0
- package/assets/docs/tree/writing-docs.doc.mjs +286 -0
- package/assets/docs/working-with-ai.doc.mjs +4 -4
- package/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjs +1 -1
- package/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.tsx +1 -3
- package/assets/templates/blocks/components/DateInput/DateInputDateRange.tsx +1 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.tsx +1 -1
- package/assets/templates/blocks/components/Item/ItemDocumentTabs.doc.mjs +14 -0
- package/assets/templates/blocks/components/Item/ItemDocumentTabs.tsx +100 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaInlineRail.doc.mjs +14 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaInlineRail.tsx +61 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaOverscrollChaining.doc.mjs +14 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaOverscrollChaining.tsx +126 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaShowcase.doc.mjs +15 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaShowcase.tsx +86 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaStickyGroupHeaders.doc.mjs +14 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaStickyGroupHeaders.tsx +99 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaStickyPassthrough.doc.mjs +14 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaStickyPassthrough.tsx +122 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaTwoAxisBoard.doc.mjs +14 -0
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaTwoAxisBoard.tsx +95 -0
- package/assets/templates/blocks/components/Table/TableBulkActionsTable.doc.mjs +14 -0
- package/assets/templates/blocks/components/Table/TableBulkActionsTable.tsx +71 -0
- package/assets/templates/blocks/components/Table/TableFloatingBulkActionsTable.doc.mjs +19 -0
- package/assets/templates/blocks/components/Table/TableFloatingBulkActionsTable.tsx +139 -0
- package/assets/templates/blocks/components/TimeInput/TimeInputConstrained.tsx +1 -0
- package/assets/templates/blocks/components/Timer/TimerFormats.doc.mjs +14 -0
- package/assets/templates/blocks/components/Timer/TimerFormats.tsx +34 -0
- package/assets/templates/blocks/components/Timer/TimerInline.doc.mjs +14 -0
- package/assets/templates/blocks/components/Timer/TimerInline.tsx +14 -0
- package/assets/templates/blocks/components/Timer/TimerShowcase.doc.mjs +13 -0
- package/assets/templates/blocks/components/Timer/TimerShowcase.tsx +47 -0
- package/assets/templates/blocks/components/Timer/TimerTypography.doc.mjs +14 -0
- package/assets/templates/blocks/components/Timer/TimerTypography.tsx +31 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs +19 -3
- package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.tsx +383 -65
- package/assets/templates/pages/table-tree/page.tsx +1704 -0
- package/assets/templates/pages/table-tree/template.doc.mjs +12 -0
- package/assets/templates/themes/butter/butterTheme.doc.mjs +11 -0
- package/assets/templates/themes/chocolate/chocolateTheme.doc.mjs +11 -0
- package/assets/templates/themes/gothic/gothicTheme.doc.mjs +11 -0
- package/assets/templates/themes/matcha/matchaTheme.doc.mjs +11 -0
- package/assets/templates/themes/neutral/neutralTheme.doc.mjs +11 -0
- package/assets/templates/themes/stone/stoneTheme.doc.mjs +11 -0
- package/assets/templates/themes/y2k/y2kTheme.doc.mjs +11 -0
- package/authoring/_shared/contract.ts +22 -0
- package/authoring/codemod/codemod.doc.mjs +7 -2
- package/authoring/codemod/parse.d.mts +8 -8
- package/authoring/codemod/parse.mjs +8 -6
- package/authoring/codemod/type.ts +12 -0
- package/authoring/config/config.doc.mjs +10 -2
- package/authoring/config/debug-composition.test.mjs +92 -0
- package/authoring/config/parse.d.mts +15 -13
- package/authoring/config/parse.mjs +27 -8
- package/authoring/config/parse.test.mjs +8 -0
- package/authoring/config/type.ts +29 -6
- package/authoring/debug/debug.doc.d.mts +11 -0
- package/authoring/debug/debug.doc.mjs +182 -0
- package/authoring/debug/parse.d.mts +8 -8
- package/authoring/debug/parse.mjs +3 -3
- package/authoring/discover/discover.doc.d.mts +13 -0
- package/authoring/discover/discover.doc.mjs +138 -0
- package/authoring/discover/parse.d.mts +24 -0
- package/authoring/discover/parse.mjs +128 -0
- package/authoring/discover/parse.test.mjs +124 -0
- package/authoring/discover/type.ts +87 -0
- package/authoring/doctypes/_schema.d.mts +790 -23
- package/authoring/doctypes/_schema.mjs +543 -39
- package/authoring/doctypes/base/graph-fields.doc.d.mts +9 -0
- package/authoring/doctypes/base/graph-fields.doc.mjs +64 -0
- package/authoring/doctypes/base/type.ts +41 -0
- package/authoring/doctypes/command/command.doc.mjs +4 -3
- package/authoring/doctypes/command/parse.d.mts +2 -2
- package/authoring/doctypes/command/parse.mjs +1 -1
- package/authoring/doctypes/command/type.ts +5 -4
- package/authoring/doctypes/component/component.doc.mjs +6 -3
- package/authoring/doctypes/component/parse.d.mts +2 -2
- package/authoring/doctypes/component/parse.mjs +1 -1
- package/authoring/doctypes/component/type.ts +6 -5
- package/authoring/doctypes/doctypes-new.test.mjs +48 -6
- package/authoring/doctypes/enum/enum.doc.mjs +1 -1
- package/authoring/doctypes/enum/parse.d.mts +2 -2
- package/authoring/doctypes/enum/parse.mjs +1 -1
- package/authoring/doctypes/enum/type.ts +4 -2
- package/authoring/doctypes/function/function.doc.mjs +7 -2
- package/authoring/doctypes/function/parse.d.mts +2 -2
- package/authoring/doctypes/function/parse.mjs +1 -1
- package/authoring/doctypes/function/type.ts +9 -4
- package/authoring/doctypes/hook/hook.doc.mjs +4 -0
- package/authoring/doctypes/hook/parse.d.mts +2 -2
- package/authoring/doctypes/hook/parse.mjs +1 -1
- package/authoring/doctypes/hook/type.ts +5 -4
- package/authoring/doctypes/legacy.d.mts +8 -6
- package/authoring/doctypes/legacy.mjs +5 -4
- package/authoring/doctypes/load-contract.test.mjs +233 -0
- package/authoring/doctypes/namespace/namespace.doc.d.mts +9 -0
- package/authoring/doctypes/namespace/namespace.doc.mjs +128 -0
- package/authoring/doctypes/namespace/parse.d.mts +12 -0
- package/authoring/doctypes/namespace/parse.mjs +25 -0
- package/authoring/doctypes/namespace/parse.test.mjs +163 -0
- package/authoring/doctypes/namespace/type.ts +74 -0
- package/authoring/doctypes/parse.d.mts +22 -18
- package/authoring/doctypes/parse.mjs +22 -11
- package/authoring/doctypes/parse.test.mjs +77 -3
- package/authoring/doctypes/reference/parse.d.mts +2 -2
- package/authoring/doctypes/reference/parse.mjs +8 -5
- package/authoring/doctypes/reference/reference.doc.mjs +48 -6
- package/authoring/doctypes/reference/type.ts +70 -7
- package/authoring/doctypes/schema/parse.d.mts +2 -2
- package/authoring/doctypes/schema/parse.mjs +1 -1
- package/authoring/doctypes/schema/schema.doc.mjs +1 -1
- package/authoring/doctypes/schema/type.ts +4 -4
- package/authoring/doctypes/template/parse.d.mts +94 -1
- package/authoring/doctypes/template/parse.mjs +40 -2
- package/authoring/doctypes/template/parse.test.mjs +26 -2
- package/authoring/doctypes/template/template.doc.mjs +13 -3
- package/authoring/doctypes/template/type.ts +13 -2
- package/authoring/doctypes/theme/parse.d.mts +35 -0
- package/authoring/doctypes/theme/parse.mjs +76 -0
- package/authoring/doctypes/theme/theme.doc.d.mts +9 -0
- package/authoring/doctypes/theme/theme.doc.mjs +79 -0
- package/authoring/doctypes/theme/type.ts +42 -0
- package/authoring/doctypes/types.ts +12 -10
- package/authoring/gap-report/gap-report.doc.d.mts +12 -0
- package/authoring/gap-report/gap-report.doc.mjs +183 -0
- package/authoring/gap-report/parse.d.mts +10 -10
- package/authoring/gap-report/parse.mjs +6 -6
- package/authoring/gap-report/type.ts +1 -1
- package/authoring/identity/identity.doc.d.mts +9 -0
- package/authoring/identity/identity.doc.mjs +61 -0
- package/authoring/identity/type.ts +132 -0
- package/authoring/index.d.mts +3 -0
- package/authoring/index.d.ts +62 -17
- package/authoring/index.mjs +4 -1
- package/authoring/integration/integration.doc.mjs +15 -8
- package/authoring/integration/parse.d.mts +2 -2
- package/authoring/integration/parse.mjs +1 -1
- package/authoring/integration/parse.test.mjs +10 -1
- package/authoring/integration/schema.d.mts +6 -4
- package/authoring/integration/schema.mjs +9 -3
- package/authoring/integration/type.ts +19 -8
- package/authoring/shadcn/receipt.d.mts +6 -6
- package/clients/cli/__tests__/cliManifest.test.ts +27 -29
- package/clients/cli/command-load-failure.test.mjs +83 -0
- package/clients/cli/commands/blog.doc.mjs +1 -1
- package/clients/cli/commands/blog.mjs +23 -8
- package/clients/cli/commands/blog.test.mjs +42 -1
- package/clients/cli/commands/build-theme.adaptations.test.mjs +100 -1
- package/clients/cli/commands/build-theme.ascii-output.test.mjs +161 -0
- package/clients/cli/commands/build-theme.flag-docs.test.mjs +110 -0
- package/clients/cli/commands/build-theme.mjs +16 -50
- package/clients/cli/commands/build-theme.path-safety.test.mjs +86 -1
- package/clients/cli/commands/build-theme.variants.test.mjs +76 -0
- package/clients/cli/commands/build.doc.mjs +16 -8
- package/clients/cli/commands/build.exit-codes-doc.test.mjs +50 -0
- package/clients/cli/commands/build.mjs +137 -114
- package/clients/cli/commands/build.playbook.test.mjs +75 -0
- package/clients/cli/commands/build.text-fields.test.mjs +81 -0
- package/clients/cli/commands/component/index.mjs +3 -8
- package/clients/cli/commands/component-ownership.test.mjs +3 -3
- package/clients/cli/commands/component-package.test.mjs +46 -0
- package/clients/cli/commands/component-resolution.test.mjs +21 -0
- package/clients/cli/commands/component.doc.mjs +1 -1
- package/clients/cli/commands/component.test.mjs +19 -0
- package/clients/cli/commands/detail-levels.test.mjs +2 -2
- package/clients/cli/commands/discover.broken-integration.test.mjs +52 -5
- package/clients/cli/commands/discover.components-flag.test.mjs +97 -0
- package/clients/cli/commands/discover.doc.mjs +55 -9
- package/clients/cli/commands/discover.mjs +393 -118
- package/clients/cli/commands/discover.sources.test.mjs +267 -0
- package/clients/cli/commands/discover.text-projection.test.mjs +103 -0
- package/clients/cli/commands/docs.doc.mjs +28 -6
- package/clients/cli/commands/docs.mjs +240 -26
- package/clients/cli/commands/docs.test.mjs +193 -1
- package/clients/cli/commands/doctor-integration-components.doc.mjs +1 -1
- package/clients/cli/commands/doctor-integration-docs.doc.mjs +3 -3
- package/clients/cli/commands/doctor-integration-templates.doc.mjs +15 -8
- package/clients/cli/commands/doctor-integration-validate.doc.mjs +1 -1
- package/clients/cli/commands/doctor-integration.doc.mjs +1 -1
- package/clients/cli/commands/doctor-integration.package-json.test.mjs +53 -0
- package/clients/cli/commands/doctor-integration.test.mjs +90 -8
- package/clients/cli/commands/doctor.doc.mjs +1 -1
- package/clients/cli/commands/doctor.mjs +59 -32
- package/clients/cli/commands/doctor.test.mjs +42 -0
- package/clients/cli/commands/gap-report.doc.mjs +17 -6
- package/clients/cli/commands/gap-report.test.mjs +72 -0
- package/clients/cli/commands/hook/index.mjs +7 -17
- package/clients/cli/commands/hook.doc.mjs +1 -1
- package/clients/cli/commands/hook.text-projection.test.mjs +45 -0
- package/clients/cli/commands/init.doc.mjs +20 -9
- package/clients/cli/commands/init.flag-help.test.mjs +153 -0
- package/clients/cli/commands/integration-add.controls.test.mjs +132 -0
- package/clients/cli/commands/integration-add.doc.mjs +32 -6
- package/clients/cli/commands/integration-authoring.test.mjs +13 -9
- package/clients/cli/commands/integration-pack.doc.mjs +1 -1
- package/clients/cli/commands/integration-real-world.test.mjs +3 -9
- package/clients/cli/commands/integration.doc.mjs +1 -1
- package/clients/cli/commands/integration.mjs +1 -0
- package/clients/cli/commands/interactive-guard.test.mjs +101 -24
- package/clients/cli/commands/json-contract.test.mjs +33 -0
- package/clients/cli/commands/layout-check.doc.mjs +15 -4
- package/clients/cli/commands/layout-expand.doc.mjs +22 -5
- package/clients/cli/commands/layout-grammar.doc.mjs +1 -1
- package/clients/cli/commands/layout.doc.mjs +3 -3
- package/clients/cli/commands/layout.mjs +21 -9
- package/clients/cli/commands/layout.path-help.test.mjs +33 -0
- package/clients/cli/commands/layout.stdin-cap.test.mjs +47 -0
- package/clients/cli/commands/layout.text-fields.test.mjs +39 -0
- package/clients/cli/commands/manifest.doc.mjs +1 -1
- package/clients/cli/commands/no-prompt-wording.test.mjs +94 -0
- package/clients/cli/commands/search.doc.mjs +7 -4
- package/clients/cli/commands/search.mjs +28 -9
- package/clients/cli/commands/search.test.mjs +75 -0
- package/clients/cli/commands/setup-nudge.test.mjs +6 -0
- package/clients/cli/commands/swizzle.doc.mjs +3 -2
- package/clients/cli/commands/swizzle.path-safety.test.mjs +42 -0
- package/clients/cli/commands/template.doc.mjs +52 -13
- package/clients/cli/commands/template.flag-help.test.mjs +117 -0
- package/clients/cli/commands/template.mjs +4 -91
- package/clients/cli/commands/template.path-help.test.mjs +40 -0
- package/clients/cli/commands/text-json-parity.test.mjs +719 -0
- package/clients/cli/commands/theme-add.doc.mjs +4 -3
- package/clients/cli/commands/theme-build.doc.mjs +8 -7
- package/clients/cli/commands/theme-list.doc.mjs +2 -2
- package/clients/cli/commands/theme-palette-generate.doc.mjs +9 -5
- package/clients/cli/commands/theme-palette-generate.test.mjs +19 -0
- package/clients/cli/commands/theme-palette.doc.mjs +1 -1
- package/clients/cli/commands/theme-targets.behavior.test.mjs +4 -3
- package/clients/cli/commands/theme-targets.doc.mjs +1 -1
- package/clients/cli/commands/theme-template.behavior.test.mjs +12 -0
- package/clients/cli/commands/theme-template.doc.mjs +2 -2
- package/clients/cli/commands/theme.doc.mjs +1 -1
- package/clients/cli/commands/upgrade.ascii-output.test.mjs +87 -0
- package/clients/cli/commands/upgrade.doc.mjs +22 -10
- package/clients/cli/commands/upgrade.file-protection.test.mjs +228 -0
- package/clients/cli/commands/upgrade.flag-help.test.mjs +188 -0
- package/clients/cli/commands/upgrade.hook-output.test.mjs +88 -0
- package/clients/cli/commands/upgrade.mjs +29 -7
- package/clients/cli/formatters/index.mjs +164 -1
- package/clients/cli/formatters/index.test.mjs +97 -0
- package/clients/cli/index.mjs +21 -30
- package/clients/cli/latest-version-env.test.mjs +50 -0
- package/clients/cli/lib/cli-error.test.mjs +7 -0
- package/clients/cli/lib/component-format.mjs +9 -9
- package/clients/cli/lib/component-format.test.mjs +1 -1
- package/clients/cli/lib/define-command.mjs +32 -6
- package/clients/cli/lib/doc-text-ascii.test.mjs +82 -0
- package/clients/cli/lib/exit-codes.test.mjs +97 -0
- package/clients/cli/lib/hook-format.mjs +19 -10
- package/clients/cli/lib/json-shim.mjs +38 -2
- package/clients/cli/lib/json-shim.test.mjs +83 -0
- package/clients/cli/lib/manifest.d.ts +2 -0
- package/clients/cli/lib/manifest.mjs +37 -2
- package/clients/cli/lib/manifest.test.mjs +17 -0
- package/foundation/agent-docs/agent-docs.d.mts +7 -2
- package/foundation/agent-docs/agent-docs.mjs +82 -12
- package/foundation/agent-docs/agent-docs.path-safety.test.mjs +266 -4
- package/foundation/agent-docs/agent-docs.test.mjs +19 -1
- package/foundation/config/integration-debug.test.mjs +28 -3
- package/foundation/config/project-themes.test.mjs +11 -19
- package/foundation/config/project.d.mts +20 -11
- package/foundation/config/project.mjs +263 -91
- package/foundation/config/project.test.mjs +270 -21
- package/foundation/discovery/authoring-self-docs.d.mts +87 -0
- package/foundation/discovery/authoring-self-docs.mjs +237 -0
- package/foundation/discovery/authoring-self-docs.test.mjs +170 -0
- package/foundation/discovery/authoring-surface.d.mts +74 -0
- package/foundation/discovery/authoring-surface.mjs +525 -0
- package/foundation/discovery/authoring-surface.test.mjs +392 -0
- package/foundation/discovery/cli-self-docs.d.mts +119 -0
- package/foundation/discovery/cli-self-docs.mjs +490 -0
- package/foundation/discovery/cli-self-docs.test.mjs +375 -0
- package/foundation/discovery/component-discovery.d.mts +39 -1
- package/foundation/discovery/component-discovery.mjs +50 -1
- package/foundation/discovery/component-loader.d.mts +35 -38
- package/foundation/discovery/component-loader.mjs +53 -222
- package/foundation/discovery/docs-discovery.d.mts +119 -11
- package/foundation/discovery/docs-discovery.mjs +423 -108
- package/foundation/discovery/docs-discovery.test.mjs +365 -20
- package/foundation/discovery/docs-output-budget.d.mts +28 -0
- package/foundation/discovery/docs-output-budget.mjs +50 -0
- package/foundation/discovery/docs-section-key.d.mts +116 -0
- package/foundation/discovery/docs-section-key.mjs +322 -0
- package/foundation/discovery/docs-section-key.test.mjs +246 -0
- package/foundation/discovery/template-adapter.d.mts +113 -11
- package/foundation/discovery/template-adapter.fixture-refs.test.mjs +248 -0
- package/foundation/discovery/template-adapter.integration-isolation.test.mjs +94 -0
- package/foundation/discovery/template-adapter.mjs +774 -83
- package/foundation/discovery/template-adapter.test.mjs +57 -0
- package/foundation/discovery/template-conflict-release.d.mts +13 -0
- package/foundation/discovery/template-conflict-release.mjs +40 -0
- package/foundation/discovery/template-conflict-release.test.mjs +40 -0
- package/foundation/discovery/theme-discovery.d.mts +67 -7
- package/foundation/discovery/theme-discovery.mjs +916 -186
- package/foundation/discovery/theme-discovery.test.mjs +613 -219
- package/foundation/discovery/theming-targets.test.mjs +4 -0
- package/foundation/doc-compiler/bundle.d.mts +47 -0
- package/foundation/doc-compiler/bundle.mjs +278 -0
- package/foundation/doc-compiler/bundle.test.mjs +266 -0
- package/foundation/doc-compiler/compile.d.mts +343 -0
- package/foundation/doc-compiler/compile.mjs +558 -0
- package/foundation/doc-compiler/diagnostics.d.mts +126 -0
- package/foundation/doc-compiler/diagnostics.mjs +305 -0
- package/foundation/doc-compiler/doc-compiler.test.mjs +714 -0
- package/foundation/doc-compiler/doc-loads.test.mjs +1642 -0
- package/foundation/doc-compiler/import.d.mts +24 -0
- package/foundation/doc-compiler/import.mjs +59 -0
- package/foundation/doc-compiler/inputs.d.mts +102 -0
- package/foundation/doc-compiler/inputs.mjs +291 -0
- package/foundation/doc-compiler/inputs.test.mjs +299 -0
- package/foundation/doc-compiler/ir.d.mts +22 -0
- package/foundation/doc-compiler/ir.mjs +471 -0
- package/foundation/doc-compiler/lenses.d.mts +36 -0
- package/foundation/doc-compiler/lenses.mjs +173 -0
- package/foundation/doc-compiler/links.d.mts +162 -0
- package/foundation/doc-compiler/links.mjs +294 -0
- package/foundation/doc-compiler/links.test.mjs +192 -0
- package/foundation/doc-compiler/lower-doc.test.mjs +495 -0
- package/foundation/doc-compiler/overlays.d.mts +37 -0
- package/foundation/doc-compiler/overlays.mjs +206 -0
- package/foundation/doc-compiler/parse-readable.d.mts +9 -0
- package/foundation/doc-compiler/parse-readable.mjs +29 -0
- package/foundation/doc-compiler/read.d.mts +127 -0
- package/foundation/doc-compiler/read.mjs +325 -0
- package/foundation/doc-compiler/read.test.mjs +313 -0
- package/foundation/doc-compiler/source.d.mts +33 -0
- package/foundation/doc-compiler/source.mjs +128 -0
- package/foundation/doc-compiler/tree.d.mts +288 -0
- package/foundation/doc-compiler/tree.mjs +876 -0
- package/foundation/doc-compiler/tree.test.mjs +598 -0
- package/foundation/fs/file-protection.d.mts +33 -0
- package/foundation/fs/file-protection.mjs +825 -0
- package/foundation/fs/file-protection.test.mjs +250 -0
- package/foundation/fs/module-loader.d.mts +1 -0
- package/foundation/fs/module-loader.mjs +50 -1
- package/foundation/fs/module-loader.stdout.test.mjs +332 -0
- package/foundation/fs/path-safety.d.mts +3 -2
- package/foundation/fs/path-safety.mjs +49 -19
- package/foundation/fs/path-safety.test.mjs +50 -0
- package/foundation/fs/publish-file-hardlink-unavailable.test.mjs +129 -94
- package/foundation/identity/provider-identity.d.mts +90 -0
- package/foundation/identity/provider-identity.mjs +320 -0
- package/foundation/identity/provider-identity.test.mjs +254 -0
- package/foundation/identity/providers.d.mts +7 -0
- package/foundation/identity/providers.mjs +16 -0
- package/foundation/integrations/autolink.d.mts +58 -1
- package/foundation/integrations/autolink.mjs +143 -45
- package/foundation/integrations/autolink.test.mjs +1 -1
- package/foundation/integrations/cli-requirement.d.mts +45 -0
- package/foundation/integrations/cli-requirement.mjs +154 -0
- package/foundation/integrations/cli-requirement.test.mjs +84 -0
- package/foundation/integrations/contribution-fixes.d.mts +145 -0
- package/foundation/integrations/contribution-fixes.mjs +1284 -0
- package/foundation/integrations/contribution-inventory.d.mts +3 -2
- package/foundation/integrations/contribution-inventory.mjs +27 -24
- package/foundation/integrations/contribution-inventory.test.mjs +86 -27
- package/foundation/integrations/integration-warnings.d.mts +9 -2
- package/foundation/integrations/integration-warnings.mjs +52 -21
- package/foundation/integrations/integration-warnings.test.mjs +74 -1
- package/foundation/integrations/integrations.d.mts +63 -3
- package/foundation/integrations/integrations.mjs +122 -9
- package/foundation/integrations/integrations.test.mjs +415 -1
- package/foundation/integrations/provider-conflicts.test.mjs +125 -0
- package/foundation/integrations/provider-ledger.test.mjs +275 -0
- package/foundation/integrations/provider-resolution.d.mts +152 -0
- package/foundation/integrations/provider-resolution.mjs +576 -0
- package/foundation/integrations/provider-resolution.test.mjs +369 -0
- package/foundation/integrations/theme-descriptor.d.mts +8 -0
- package/foundation/integrations/theme-descriptor.mjs +44 -0
- package/foundation/integrations/validate-contributions.d.mts +2 -0
- package/foundation/integrations/validate-contributions.mjs +131 -29
- package/foundation/response/base.d.ts +8 -4
- package/foundation/response/error-codes.d.mts +3 -1
- package/foundation/response/error-codes.d.ts +2 -0
- package/foundation/response/error-codes.doc.mjs +13 -4
- package/foundation/response/error-codes.mjs +8 -2
- package/foundation/response/error-codes.test.mjs +137 -10
- package/foundation/response/json-contract.test.mjs +57 -17
- package/foundation/response/json.d.mts +4 -2
- package/foundation/response/json.mjs +8 -10
- package/foundation/response/response-types.doc.d.mts +5 -1
- package/foundation/response/response-types.doc.mjs +41 -21
- package/foundation/response/response-types.doc.test.mjs +158 -0
- package/foundation/response/response.doc.mjs +1 -1
- package/foundation/text/string-utils.d.mts +8 -0
- package/foundation/text/string-utils.mjs +40 -10
- package/foundation/xle/expand.d.mts +2 -0
- package/foundation/xle/expand.mjs +4 -3
- package/foundation/xle/expand.test.mjs +54 -0
- package/foundation/xle/xle.test.mjs +13 -0
- package/package.json +10 -11
- package/assets/templates/themes/manifest.json +0 -95
- package/clients/cli/lib/update-check.mjs +0 -83
- package/clients/cli/lib/update-check.test.mjs +0 -137
- package/clients/cli/update-hint-commands.test.mjs +0 -54
|
@@ -1,16 +1,218 @@
|
|
|
1
1
|
// @generated by scripts/sync-api-types.mjs from the JSDoc in authoring/**/*.mjs.
|
|
2
2
|
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/** Every authored doc-kind discriminant accepted by parseDoc. */
|
|
5
|
+
export const AuthoredDocKindSchema: z.ZodEnum<{
|
|
6
|
+
function: "function";
|
|
7
|
+
component: "component";
|
|
8
|
+
generic: "generic";
|
|
9
|
+
page: "page";
|
|
10
|
+
block: "block";
|
|
11
|
+
schema: "schema";
|
|
12
|
+
command: "command";
|
|
13
|
+
enum: "enum";
|
|
14
|
+
namespace: "namespace";
|
|
15
|
+
}>;
|
|
16
|
+
export namespace AuthoredDocGraphFields {
|
|
17
|
+
let placement: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
parent: z.ZodString;
|
|
19
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
20
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strict>>;
|
|
22
|
+
let aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
let audience: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
public: "public";
|
|
25
|
+
internal: "internal";
|
|
26
|
+
}>>;
|
|
27
|
+
}
|
|
28
|
+
/** Runtime schema for the stable content-block union published in 0.6.x. */
|
|
29
|
+
export const ReferenceContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<"prose">;
|
|
31
|
+
text: z.ZodString;
|
|
32
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"heading">;
|
|
34
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
35
|
+
text: z.ZodString;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"code">;
|
|
38
|
+
lang: z.ZodString;
|
|
39
|
+
code: z.ZodString;
|
|
40
|
+
label: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"table">;
|
|
43
|
+
headers: z.ZodArray<z.ZodString>;
|
|
44
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
45
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
+
type: z.ZodLiteral<"list">;
|
|
47
|
+
style: z.ZodEnum<{
|
|
48
|
+
ordered: "ordered";
|
|
49
|
+
unordered: "unordered";
|
|
50
|
+
do: "do";
|
|
51
|
+
dont: "dont";
|
|
52
|
+
}>;
|
|
53
|
+
items: z.ZodArray<z.ZodString>;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<"token-ref">;
|
|
56
|
+
topic: z.ZodString;
|
|
57
|
+
section: z.ZodString;
|
|
58
|
+
}, z.core.$strict>], "type">;
|
|
59
|
+
/** Runtime schema for graph-only blocks used by NamespaceDoc. */
|
|
60
|
+
export const GraphContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"workflow">;
|
|
62
|
+
title: z.ZodOptional<z.ZodString>;
|
|
63
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
64
|
+
title: z.ZodString;
|
|
65
|
+
description: z.ZodOptional<z.ZodString>;
|
|
66
|
+
references: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
|
+
}, z.core.$strict>>;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"collection">;
|
|
70
|
+
title: z.ZodOptional<z.ZodString>;
|
|
71
|
+
source: z.ZodObject<{
|
|
72
|
+
slot: z.ZodString;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
list: "list";
|
|
76
|
+
cards: "cards";
|
|
77
|
+
compact: "compact";
|
|
78
|
+
}>>;
|
|
79
|
+
whenEmpty: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
show: "show";
|
|
81
|
+
omit: "omit";
|
|
82
|
+
}>>;
|
|
83
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
84
|
+
type: z.ZodLiteral<"reference">;
|
|
85
|
+
target: z.ZodString;
|
|
86
|
+
projection: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
88
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
compact: "compact";
|
|
92
|
+
summary: "summary";
|
|
93
|
+
full: "full";
|
|
94
|
+
}>>;
|
|
95
|
+
}, z.core.$strict>], "type">;
|
|
96
|
+
/**
|
|
97
|
+
* A topic section's blocks: the stable union, plus a reference block, which a
|
|
98
|
+
* read inlines as the doc it includes.
|
|
99
|
+
*/
|
|
100
|
+
export const SectionContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"prose">;
|
|
102
|
+
text: z.ZodString;
|
|
103
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"heading">;
|
|
105
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
106
|
+
text: z.ZodString;
|
|
107
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
108
|
+
type: z.ZodLiteral<"code">;
|
|
109
|
+
lang: z.ZodString;
|
|
110
|
+
code: z.ZodString;
|
|
111
|
+
label: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<"table">;
|
|
114
|
+
headers: z.ZodArray<z.ZodString>;
|
|
115
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
117
|
+
type: z.ZodLiteral<"list">;
|
|
118
|
+
style: z.ZodEnum<{
|
|
119
|
+
ordered: "ordered";
|
|
120
|
+
unordered: "unordered";
|
|
121
|
+
do: "do";
|
|
122
|
+
dont: "dont";
|
|
123
|
+
}>;
|
|
124
|
+
items: z.ZodArray<z.ZodString>;
|
|
125
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
126
|
+
type: z.ZodLiteral<"token-ref">;
|
|
127
|
+
topic: z.ZodString;
|
|
128
|
+
section: z.ZodString;
|
|
129
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
130
|
+
type: z.ZodLiteral<"reference">;
|
|
131
|
+
target: z.ZodString;
|
|
132
|
+
projection: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
|
+
}, z.core.$strict>>;
|
|
136
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
compact: "compact";
|
|
138
|
+
summary: "summary";
|
|
139
|
+
full: "full";
|
|
140
|
+
}>>;
|
|
141
|
+
}, z.core.$strict>], "type">;
|
|
142
|
+
/** Namespace content accepts both stable reference blocks and graph-only blocks. */
|
|
143
|
+
export const NamespaceContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<"prose">;
|
|
145
|
+
text: z.ZodString;
|
|
146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
147
|
+
type: z.ZodLiteral<"heading">;
|
|
148
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
149
|
+
text: z.ZodString;
|
|
150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<"code">;
|
|
152
|
+
lang: z.ZodString;
|
|
153
|
+
code: z.ZodString;
|
|
154
|
+
label: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
156
|
+
type: z.ZodLiteral<"table">;
|
|
157
|
+
headers: z.ZodArray<z.ZodString>;
|
|
158
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
159
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
160
|
+
type: z.ZodLiteral<"list">;
|
|
161
|
+
style: z.ZodEnum<{
|
|
162
|
+
ordered: "ordered";
|
|
163
|
+
unordered: "unordered";
|
|
164
|
+
do: "do";
|
|
165
|
+
dont: "dont";
|
|
166
|
+
}>;
|
|
167
|
+
items: z.ZodArray<z.ZodString>;
|
|
168
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
169
|
+
type: z.ZodLiteral<"token-ref">;
|
|
170
|
+
topic: z.ZodString;
|
|
171
|
+
section: z.ZodString;
|
|
172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
173
|
+
type: z.ZodLiteral<"workflow">;
|
|
174
|
+
title: z.ZodOptional<z.ZodString>;
|
|
175
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
176
|
+
title: z.ZodString;
|
|
177
|
+
description: z.ZodOptional<z.ZodString>;
|
|
178
|
+
references: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
179
|
+
}, z.core.$strict>>;
|
|
180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
181
|
+
type: z.ZodLiteral<"collection">;
|
|
182
|
+
title: z.ZodOptional<z.ZodString>;
|
|
183
|
+
source: z.ZodObject<{
|
|
184
|
+
slot: z.ZodString;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
187
|
+
list: "list";
|
|
188
|
+
cards: "cards";
|
|
189
|
+
compact: "compact";
|
|
190
|
+
}>>;
|
|
191
|
+
whenEmpty: z.ZodOptional<z.ZodEnum<{
|
|
192
|
+
show: "show";
|
|
193
|
+
omit: "omit";
|
|
194
|
+
}>>;
|
|
195
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
196
|
+
type: z.ZodLiteral<"reference">;
|
|
197
|
+
target: z.ZodString;
|
|
198
|
+
projection: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
200
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
201
|
+
}, z.core.$strict>>;
|
|
202
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
203
|
+
compact: "compact";
|
|
204
|
+
summary: "summary";
|
|
205
|
+
full: "full";
|
|
206
|
+
}>>;
|
|
207
|
+
}, z.core.$strict>], "type">;
|
|
208
|
+
/**
|
|
209
|
+
* New-format stamped component doc (`type: 'component'`): one component's
|
|
210
|
+
* `props`, or the `components` a group doc documents together. These are the
|
|
211
|
+
* shapes the published ComponentDoc type allows, and the ones an unstamped doc
|
|
212
|
+
* may already take.
|
|
213
|
+
*/
|
|
5
214
|
export const ComponentDocKindSchema: z.ZodObject<{
|
|
6
215
|
type: z.ZodLiteral<"component">;
|
|
7
|
-
props: z.ZodArray<z.ZodObject<{
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
type: z.ZodString;
|
|
10
|
-
description: z.ZodString;
|
|
11
|
-
default: z.ZodOptional<z.ZodString>;
|
|
12
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
}, z.core.$loose>>;
|
|
14
216
|
theming: z.ZodOptional<z.ZodUnknown>;
|
|
15
217
|
playground: z.ZodOptional<z.ZodUnknown>;
|
|
16
218
|
examples: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
@@ -26,9 +228,28 @@ export const ComponentDocKindSchema: z.ZodObject<{
|
|
|
26
228
|
relatedDocs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
229
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
28
230
|
isHiddenFromOverview: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
232
|
+
parent: z.ZodString;
|
|
233
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
234
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
}, z.core.$strict>>;
|
|
236
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
237
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
238
|
+
public: "public";
|
|
239
|
+
internal: "internal";
|
|
240
|
+
}>>;
|
|
241
|
+
props: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
242
|
+
name: z.ZodString;
|
|
243
|
+
type: z.ZodString;
|
|
244
|
+
description: z.ZodString;
|
|
245
|
+
default: z.ZodOptional<z.ZodString>;
|
|
246
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
}, z.core.$loose>>>;
|
|
248
|
+
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
249
|
+
name: z.ZodString;
|
|
250
|
+
}, z.core.$loose>>>;
|
|
29
251
|
}, z.core.$loose>;
|
|
30
|
-
/** New-format stamped function doc (`type: 'function'`)
|
|
31
|
-
* functions alike (the discriminant and schema are shared). */
|
|
252
|
+
/** New-format stamped function doc (`type: 'function'`). */
|
|
32
253
|
export const FunctionDocKindSchema: z.ZodObject<{
|
|
33
254
|
type: z.ZodLiteral<"function">;
|
|
34
255
|
params: z.ZodArray<z.ZodObject<{
|
|
@@ -55,12 +276,107 @@ export const FunctionDocKindSchema: z.ZodObject<{
|
|
|
55
276
|
relatedDocs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
277
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
57
278
|
isHiddenFromOverview: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
parent: z.ZodString;
|
|
281
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
282
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
}, z.core.$strict>>;
|
|
284
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
285
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
public: "public";
|
|
287
|
+
internal: "internal";
|
|
288
|
+
}>>;
|
|
58
289
|
}, z.core.$loose>;
|
|
59
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* A stamped function doc as it loads: as with components, `displayName` may be
|
|
292
|
+
* missing and `usage` passes through unchecked.
|
|
293
|
+
*
|
|
294
|
+
* @typedef {Omit<FunctionDoc, 'type' | 'displayName' | 'usage'>
|
|
295
|
+
* & {type: 'function', displayName?: string, usage?: unknown}} LoadedFunctionDoc
|
|
296
|
+
*/
|
|
297
|
+
/**
|
|
298
|
+
* @typedef {import('../_shared/contract.js').Expect<
|
|
299
|
+
* import('../_shared/contract.js').MutuallyAssignable<
|
|
300
|
+
* import('../_shared/contract.js').NamedFields<z.infer<typeof FunctionDocKindSchema>>,
|
|
301
|
+
* import('../_shared/contract.js').NamedFields<LoadedFunctionDoc>
|
|
302
|
+
* >
|
|
303
|
+
* >} _FunctionDocDriftLock
|
|
304
|
+
*/
|
|
305
|
+
/**
|
|
306
|
+
* Every HookDoc is a FunctionDoc, so the one function schema covers both.
|
|
307
|
+
*
|
|
308
|
+
* @typedef {import('../_shared/contract.js').Expect<[HookDoc] extends [FunctionDoc] ? true : false>} _HookDocIsFunctionDocLock
|
|
309
|
+
*/
|
|
310
|
+
/**
|
|
311
|
+
* Stamped generic reference/topic doc (`type: 'generic'`). `title` and
|
|
312
|
+
* `sections` stay optional at this parser boundary for docs produced by the
|
|
313
|
+
* shipped v0.3.0 factory-removal codemod. When present, all rich fields and
|
|
314
|
+
* semantic blocks are validated.
|
|
315
|
+
*/
|
|
60
316
|
export const GenericDocKindSchema: z.ZodObject<{
|
|
61
317
|
type: z.ZodLiteral<"generic">;
|
|
318
|
+
title: z.ZodOptional<z.ZodString>;
|
|
319
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
320
|
+
id: z.ZodOptional<z.ZodString>;
|
|
321
|
+
title: z.ZodString;
|
|
322
|
+
category: z.ZodOptional<z.ZodString>;
|
|
323
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
324
|
+
type: z.ZodLiteral<"prose">;
|
|
325
|
+
text: z.ZodString;
|
|
326
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
327
|
+
type: z.ZodLiteral<"heading">;
|
|
328
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
329
|
+
text: z.ZodString;
|
|
330
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
331
|
+
type: z.ZodLiteral<"code">;
|
|
332
|
+
lang: z.ZodString;
|
|
333
|
+
code: z.ZodString;
|
|
334
|
+
label: z.ZodOptional<z.ZodString>;
|
|
335
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
336
|
+
type: z.ZodLiteral<"table">;
|
|
337
|
+
headers: z.ZodArray<z.ZodString>;
|
|
338
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
339
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
340
|
+
type: z.ZodLiteral<"list">;
|
|
341
|
+
style: z.ZodEnum<{
|
|
342
|
+
ordered: "ordered";
|
|
343
|
+
unordered: "unordered";
|
|
344
|
+
do: "do";
|
|
345
|
+
dont: "dont";
|
|
346
|
+
}>;
|
|
347
|
+
items: z.ZodArray<z.ZodString>;
|
|
348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
349
|
+
type: z.ZodLiteral<"token-ref">;
|
|
350
|
+
topic: z.ZodString;
|
|
351
|
+
section: z.ZodString;
|
|
352
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
353
|
+
type: z.ZodLiteral<"reference">;
|
|
354
|
+
target: z.ZodString;
|
|
355
|
+
projection: z.ZodOptional<z.ZodObject<{
|
|
356
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
357
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
358
|
+
}, z.core.$strict>>;
|
|
359
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
compact: "compact";
|
|
361
|
+
summary: "summary";
|
|
362
|
+
full: "full";
|
|
363
|
+
}>>;
|
|
364
|
+
}, z.core.$strict>], "type">>;
|
|
365
|
+
previewType: z.ZodOptional<z.ZodEnum<{
|
|
366
|
+
swatch: "swatch";
|
|
367
|
+
"shadow-box": "shadow-box";
|
|
368
|
+
"radius-box": "radius-box";
|
|
369
|
+
"spacing-bar": "spacing-bar";
|
|
370
|
+
"size-bar": "size-bar";
|
|
371
|
+
"border-line": "border-line";
|
|
372
|
+
"duration-bar": "duration-bar";
|
|
373
|
+
"easing-curve": "easing-curve";
|
|
374
|
+
"font-sample": "font-sample";
|
|
375
|
+
}>>;
|
|
376
|
+
}, z.core.$strict>>>;
|
|
62
377
|
replaces: z.ZodOptional<z.ZodString>;
|
|
63
378
|
extends: z.ZodOptional<z.ZodString>;
|
|
379
|
+
tokenCategory: z.ZodOptional<z.ZodString>;
|
|
64
380
|
name: z.ZodString;
|
|
65
381
|
displayName: z.ZodOptional<z.ZodString>;
|
|
66
382
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -73,25 +389,80 @@ export const GenericDocKindSchema: z.ZodObject<{
|
|
|
73
389
|
relatedDocs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
390
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
75
391
|
isHiddenFromOverview: z.ZodOptional<z.ZodBoolean>;
|
|
392
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
393
|
+
parent: z.ZodString;
|
|
394
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
395
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
396
|
+
}, z.core.$strict>>;
|
|
397
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
398
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
399
|
+
public: "public";
|
|
400
|
+
internal: "internal";
|
|
401
|
+
}>>;
|
|
76
402
|
}, z.core.$loose>;
|
|
77
|
-
/** New stamped schema doc (`type: 'schema'`)
|
|
403
|
+
/** New stamped schema doc (`type: 'schema'`). */
|
|
78
404
|
export const SchemaDocKindSchema: z.ZodObject<{
|
|
79
405
|
type: z.ZodLiteral<"schema">;
|
|
80
406
|
name: z.ZodString;
|
|
81
407
|
displayName: z.ZodString;
|
|
82
408
|
description: z.ZodString;
|
|
83
409
|
namespace: z.ZodOptional<z.ZodString>;
|
|
84
|
-
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
410
|
appliesTo: z.ZodOptional<z.ZodString>;
|
|
86
|
-
fields: z.ZodArray<z.ZodType<import("./schema/type").SchemaFieldDoc, any, z.core.$ZodTypeInternals<import("./schema/type").SchemaFieldDoc, any>>>;
|
|
411
|
+
fields: z.ZodArray<z.ZodType<import("./schema/type.js").SchemaFieldDoc, any, z.core.$ZodTypeInternals<import("./schema/type.js").SchemaFieldDoc, any>>>;
|
|
87
412
|
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
413
|
label: z.ZodOptional<z.ZodString>;
|
|
89
414
|
code: z.ZodString;
|
|
90
415
|
}, z.core.$loose>>>;
|
|
91
|
-
notes: z.ZodOptional<z.ZodArray<z.
|
|
416
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
417
|
+
type: z.ZodLiteral<"prose">;
|
|
418
|
+
text: z.ZodString;
|
|
419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
420
|
+
type: z.ZodLiteral<"heading">;
|
|
421
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
422
|
+
text: z.ZodString;
|
|
423
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
424
|
+
type: z.ZodLiteral<"code">;
|
|
425
|
+
lang: z.ZodString;
|
|
426
|
+
code: z.ZodString;
|
|
427
|
+
label: z.ZodOptional<z.ZodString>;
|
|
428
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
429
|
+
type: z.ZodLiteral<"table">;
|
|
430
|
+
headers: z.ZodArray<z.ZodString>;
|
|
431
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
432
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
433
|
+
type: z.ZodLiteral<"list">;
|
|
434
|
+
style: z.ZodEnum<{
|
|
435
|
+
ordered: "ordered";
|
|
436
|
+
unordered: "unordered";
|
|
437
|
+
do: "do";
|
|
438
|
+
dont: "dont";
|
|
439
|
+
}>;
|
|
440
|
+
items: z.ZodArray<z.ZodString>;
|
|
441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
442
|
+
type: z.ZodLiteral<"token-ref">;
|
|
443
|
+
topic: z.ZodString;
|
|
444
|
+
section: z.ZodString;
|
|
445
|
+
}, z.core.$strict>], "type">>>;
|
|
446
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
447
|
+
parent: z.ZodString;
|
|
448
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
449
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
450
|
+
}, z.core.$strict>>;
|
|
451
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
452
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
453
|
+
public: "public";
|
|
454
|
+
internal: "internal";
|
|
455
|
+
}>>;
|
|
92
456
|
}, z.core.$loose>;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
457
|
+
/**
|
|
458
|
+
* @typedef {import('../_shared/contract.js').Expect<
|
|
459
|
+
* import('../_shared/contract.js').MutuallyAssignable<
|
|
460
|
+
* import('../_shared/contract.js').NamedFields<z.infer<typeof SchemaDocKindSchema>>,
|
|
461
|
+
* import('../_shared/contract.js').NamedFields<SchemaDoc & {type: 'schema'}>
|
|
462
|
+
* >
|
|
463
|
+
* >} _SchemaDocDriftLock
|
|
464
|
+
*/
|
|
465
|
+
/** New stamped command doc (`type: 'command'`). */
|
|
95
466
|
export const CommandDocKindSchema: z.ZodObject<{
|
|
96
467
|
type: z.ZodLiteral<"command">;
|
|
97
468
|
name: z.ZodString;
|
|
@@ -99,7 +470,6 @@ export const CommandDocKindSchema: z.ZodObject<{
|
|
|
99
470
|
summary: z.ZodString;
|
|
100
471
|
description: z.ZodOptional<z.ZodString>;
|
|
101
472
|
namespace: z.ZodOptional<z.ZodString>;
|
|
102
|
-
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
473
|
fn: z.ZodOptional<z.ZodString>;
|
|
104
474
|
args: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
475
|
name: z.ZodString;
|
|
@@ -127,24 +497,200 @@ export const CommandDocKindSchema: z.ZodObject<{
|
|
|
127
497
|
when: z.ZodString;
|
|
128
498
|
}, z.core.$loose>>>;
|
|
129
499
|
related: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
-
notes: z.ZodOptional<z.ZodArray<z.
|
|
500
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
501
|
+
type: z.ZodLiteral<"prose">;
|
|
502
|
+
text: z.ZodString;
|
|
503
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
504
|
+
type: z.ZodLiteral<"heading">;
|
|
505
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
506
|
+
text: z.ZodString;
|
|
507
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
508
|
+
type: z.ZodLiteral<"code">;
|
|
509
|
+
lang: z.ZodString;
|
|
510
|
+
code: z.ZodString;
|
|
511
|
+
label: z.ZodOptional<z.ZodString>;
|
|
512
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
513
|
+
type: z.ZodLiteral<"table">;
|
|
514
|
+
headers: z.ZodArray<z.ZodString>;
|
|
515
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
516
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
517
|
+
type: z.ZodLiteral<"list">;
|
|
518
|
+
style: z.ZodEnum<{
|
|
519
|
+
ordered: "ordered";
|
|
520
|
+
unordered: "unordered";
|
|
521
|
+
do: "do";
|
|
522
|
+
dont: "dont";
|
|
523
|
+
}>;
|
|
524
|
+
items: z.ZodArray<z.ZodString>;
|
|
525
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
526
|
+
type: z.ZodLiteral<"token-ref">;
|
|
527
|
+
topic: z.ZodString;
|
|
528
|
+
section: z.ZodString;
|
|
529
|
+
}, z.core.$strict>], "type">>>;
|
|
530
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
531
|
+
parent: z.ZodString;
|
|
532
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
533
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
}, z.core.$strict>>;
|
|
535
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
536
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
537
|
+
public: "public";
|
|
538
|
+
internal: "internal";
|
|
539
|
+
}>>;
|
|
131
540
|
}, z.core.$loose>;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
541
|
+
/**
|
|
542
|
+
* @typedef {import('../_shared/contract.js').Expect<
|
|
543
|
+
* import('../_shared/contract.js').MutuallyAssignable<
|
|
544
|
+
* import('../_shared/contract.js').NamedFields<z.infer<typeof CommandDocKindSchema>>,
|
|
545
|
+
* import('../_shared/contract.js').NamedFields<CommandDoc & {type: 'command'}>
|
|
546
|
+
* >
|
|
547
|
+
* >} _CommandDocDriftLock
|
|
548
|
+
*/
|
|
549
|
+
/** New stamped enum doc (`type: 'enum'`). */
|
|
134
550
|
export const EnumDocKindSchema: z.ZodObject<{
|
|
135
551
|
type: z.ZodLiteral<"enum">;
|
|
136
552
|
name: z.ZodString;
|
|
137
553
|
displayName: z.ZodString;
|
|
138
554
|
description: z.ZodString;
|
|
139
555
|
namespace: z.ZodOptional<z.ZodString>;
|
|
140
|
-
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
141
556
|
members: z.ZodArray<z.ZodObject<{
|
|
142
557
|
value: z.ZodString;
|
|
143
558
|
description: z.ZodString;
|
|
144
559
|
deprecated: z.ZodOptional<z.ZodString>;
|
|
145
560
|
}, z.core.$loose>>;
|
|
561
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
562
|
+
parent: z.ZodString;
|
|
563
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
564
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
565
|
+
}, z.core.$strict>>;
|
|
566
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
567
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
568
|
+
public: "public";
|
|
569
|
+
internal: "internal";
|
|
570
|
+
}>>;
|
|
146
571
|
}, z.core.$loose>;
|
|
147
|
-
/** The
|
|
572
|
+
/** The one new authored doctype: a hierarchy and layout owner. */
|
|
573
|
+
export const NamespaceDocKindSchema: z.ZodObject<{
|
|
574
|
+
type: z.ZodLiteral<"namespace">;
|
|
575
|
+
name: z.ZodString;
|
|
576
|
+
title: z.ZodString;
|
|
577
|
+
summary: z.ZodString;
|
|
578
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
579
|
+
slots: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
580
|
+
title: z.ZodString;
|
|
581
|
+
accepts: z.ZodObject<{
|
|
582
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
583
|
+
function: "function";
|
|
584
|
+
component: "component";
|
|
585
|
+
generic: "generic";
|
|
586
|
+
page: "page";
|
|
587
|
+
block: "block";
|
|
588
|
+
schema: "schema";
|
|
589
|
+
command: "command";
|
|
590
|
+
enum: "enum";
|
|
591
|
+
namespace: "namespace";
|
|
592
|
+
}>>;
|
|
593
|
+
providers: z.ZodOptional<z.ZodEnum<{
|
|
594
|
+
same: "same";
|
|
595
|
+
configured: "configured";
|
|
596
|
+
}>>;
|
|
597
|
+
}, z.core.$strict>;
|
|
598
|
+
}, z.core.$strict>>;
|
|
599
|
+
adopts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
600
|
+
source: z.ZodObject<{
|
|
601
|
+
group: z.ZodString;
|
|
602
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
603
|
+
function: "function";
|
|
604
|
+
component: "component";
|
|
605
|
+
generic: "generic";
|
|
606
|
+
page: "page";
|
|
607
|
+
block: "block";
|
|
608
|
+
schema: "schema";
|
|
609
|
+
command: "command";
|
|
610
|
+
enum: "enum";
|
|
611
|
+
namespace: "namespace";
|
|
612
|
+
}>>>;
|
|
613
|
+
}, z.core.$strict>;
|
|
614
|
+
into: z.ZodString;
|
|
615
|
+
groupBy: z.ZodOptional<z.ZodLiteral<"kind">>;
|
|
616
|
+
}, z.core.$strict>>>;
|
|
617
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
618
|
+
type: z.ZodLiteral<"prose">;
|
|
619
|
+
text: z.ZodString;
|
|
620
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
621
|
+
type: z.ZodLiteral<"heading">;
|
|
622
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
623
|
+
text: z.ZodString;
|
|
624
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
625
|
+
type: z.ZodLiteral<"code">;
|
|
626
|
+
lang: z.ZodString;
|
|
627
|
+
code: z.ZodString;
|
|
628
|
+
label: z.ZodOptional<z.ZodString>;
|
|
629
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
630
|
+
type: z.ZodLiteral<"table">;
|
|
631
|
+
headers: z.ZodArray<z.ZodString>;
|
|
632
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
633
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
634
|
+
type: z.ZodLiteral<"list">;
|
|
635
|
+
style: z.ZodEnum<{
|
|
636
|
+
ordered: "ordered";
|
|
637
|
+
unordered: "unordered";
|
|
638
|
+
do: "do";
|
|
639
|
+
dont: "dont";
|
|
640
|
+
}>;
|
|
641
|
+
items: z.ZodArray<z.ZodString>;
|
|
642
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
643
|
+
type: z.ZodLiteral<"token-ref">;
|
|
644
|
+
topic: z.ZodString;
|
|
645
|
+
section: z.ZodString;
|
|
646
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
647
|
+
type: z.ZodLiteral<"workflow">;
|
|
648
|
+
title: z.ZodOptional<z.ZodString>;
|
|
649
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
650
|
+
title: z.ZodString;
|
|
651
|
+
description: z.ZodOptional<z.ZodString>;
|
|
652
|
+
references: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
653
|
+
}, z.core.$strict>>;
|
|
654
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
655
|
+
type: z.ZodLiteral<"collection">;
|
|
656
|
+
title: z.ZodOptional<z.ZodString>;
|
|
657
|
+
source: z.ZodObject<{
|
|
658
|
+
slot: z.ZodString;
|
|
659
|
+
}, z.core.$strict>;
|
|
660
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
661
|
+
list: "list";
|
|
662
|
+
cards: "cards";
|
|
663
|
+
compact: "compact";
|
|
664
|
+
}>>;
|
|
665
|
+
whenEmpty: z.ZodOptional<z.ZodEnum<{
|
|
666
|
+
show: "show";
|
|
667
|
+
omit: "omit";
|
|
668
|
+
}>>;
|
|
669
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
670
|
+
type: z.ZodLiteral<"reference">;
|
|
671
|
+
target: z.ZodString;
|
|
672
|
+
projection: z.ZodOptional<z.ZodObject<{
|
|
673
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
674
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
675
|
+
}, z.core.$strict>>;
|
|
676
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
677
|
+
compact: "compact";
|
|
678
|
+
summary: "summary";
|
|
679
|
+
full: "full";
|
|
680
|
+
}>>;
|
|
681
|
+
}, z.core.$strict>], "type">>>;
|
|
682
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
683
|
+
parent: z.ZodString;
|
|
684
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
685
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
686
|
+
}, z.core.$strict>>;
|
|
687
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
688
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
689
|
+
public: "public";
|
|
690
|
+
internal: "internal";
|
|
691
|
+
}>>;
|
|
692
|
+
}, z.core.$strict>;
|
|
693
|
+
/** The permissive legacy union (sub-component, hook, multi, single, then reference). */
|
|
148
694
|
export const LegacyDocSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
149
695
|
name: z.ZodString;
|
|
150
696
|
displayName: z.ZodOptional<z.ZodString>;
|
|
@@ -163,6 +709,16 @@ export const LegacyDocSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
163
709
|
relatedDocs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
164
710
|
relatedComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
711
|
relatedHooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
712
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
713
|
+
parent: z.ZodString;
|
|
714
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
715
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
716
|
+
}, z.core.$strict>>;
|
|
717
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
718
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
719
|
+
public: "public";
|
|
720
|
+
internal: "internal";
|
|
721
|
+
}>>;
|
|
166
722
|
subComponentOf: z.ZodString;
|
|
167
723
|
description: z.ZodString;
|
|
168
724
|
props: z.ZodArray<z.ZodObject<{
|
|
@@ -191,6 +747,16 @@ export const LegacyDocSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
191
747
|
relatedDocs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
748
|
relatedComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
749
|
relatedHooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
750
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
751
|
+
parent: z.ZodString;
|
|
752
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
753
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
754
|
+
}, z.core.$strict>>;
|
|
755
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
756
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
757
|
+
public: "public";
|
|
758
|
+
internal: "internal";
|
|
759
|
+
}>>;
|
|
194
760
|
params: z.ZodArray<z.ZodObject<{
|
|
195
761
|
name: z.ZodString;
|
|
196
762
|
type: z.ZodString;
|
|
@@ -222,6 +788,16 @@ export const LegacyDocSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
222
788
|
relatedDocs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
223
789
|
relatedComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
790
|
relatedHooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
791
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
792
|
+
parent: z.ZodString;
|
|
793
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
794
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
795
|
+
}, z.core.$strict>>;
|
|
796
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
797
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
798
|
+
public: "public";
|
|
799
|
+
internal: "internal";
|
|
800
|
+
}>>;
|
|
225
801
|
components: z.ZodArray<z.ZodUnknown>;
|
|
226
802
|
}, z.core.$loose>, z.ZodObject<{
|
|
227
803
|
name: z.ZodString;
|
|
@@ -242,6 +818,16 @@ export const LegacyDocSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
242
818
|
relatedDocs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
243
819
|
relatedComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
244
820
|
relatedHooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
821
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
822
|
+
parent: z.ZodString;
|
|
823
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
824
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
825
|
+
}, z.core.$strict>>;
|
|
826
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
827
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
828
|
+
public: "public";
|
|
829
|
+
internal: "internal";
|
|
830
|
+
}>>;
|
|
245
831
|
props: z.ZodArray<z.ZodObject<{
|
|
246
832
|
name: z.ZodString;
|
|
247
833
|
type: z.ZodString;
|
|
@@ -249,5 +835,186 @@ export const LegacyDocSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
249
835
|
default: z.ZodOptional<z.ZodString>;
|
|
250
836
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
251
837
|
}, z.core.$loose>>;
|
|
838
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
839
|
+
name: z.ZodString;
|
|
840
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
841
|
+
group: z.ZodOptional<z.ZodString>;
|
|
842
|
+
category: z.ZodOptional<z.ZodString>;
|
|
843
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
844
|
+
isHiddenFromOverview: z.ZodOptional<z.ZodBoolean>;
|
|
845
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
846
|
+
hiddenComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
847
|
+
usage: z.ZodOptional<z.ZodUnknown>;
|
|
848
|
+
playground: z.ZodOptional<z.ZodUnknown>;
|
|
849
|
+
theming: z.ZodOptional<z.ZodUnknown>;
|
|
850
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
851
|
+
showcase: z.ZodOptional<z.ZodUnknown>;
|
|
852
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
853
|
+
relatedDocs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
854
|
+
relatedComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
855
|
+
relatedHooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
856
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
857
|
+
parent: z.ZodString;
|
|
858
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
859
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
860
|
+
}, z.core.$strict>>;
|
|
861
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
862
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
863
|
+
public: "public";
|
|
864
|
+
internal: "internal";
|
|
865
|
+
}>>;
|
|
866
|
+
title: z.ZodString;
|
|
867
|
+
description: z.ZodString;
|
|
868
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
869
|
+
id: z.ZodOptional<z.ZodString>;
|
|
870
|
+
title: z.ZodString;
|
|
871
|
+
category: z.ZodOptional<z.ZodString>;
|
|
872
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
873
|
+
type: z.ZodLiteral<"prose">;
|
|
874
|
+
text: z.ZodString;
|
|
875
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
876
|
+
type: z.ZodLiteral<"heading">;
|
|
877
|
+
level: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
878
|
+
text: z.ZodString;
|
|
879
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
880
|
+
type: z.ZodLiteral<"code">;
|
|
881
|
+
lang: z.ZodString;
|
|
882
|
+
code: z.ZodString;
|
|
883
|
+
label: z.ZodOptional<z.ZodString>;
|
|
884
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
885
|
+
type: z.ZodLiteral<"table">;
|
|
886
|
+
headers: z.ZodArray<z.ZodString>;
|
|
887
|
+
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
888
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
889
|
+
type: z.ZodLiteral<"list">;
|
|
890
|
+
style: z.ZodEnum<{
|
|
891
|
+
ordered: "ordered";
|
|
892
|
+
unordered: "unordered";
|
|
893
|
+
do: "do";
|
|
894
|
+
dont: "dont";
|
|
895
|
+
}>;
|
|
896
|
+
items: z.ZodArray<z.ZodString>;
|
|
897
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
898
|
+
type: z.ZodLiteral<"token-ref">;
|
|
899
|
+
topic: z.ZodString;
|
|
900
|
+
section: z.ZodString;
|
|
901
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
902
|
+
type: z.ZodLiteral<"reference">;
|
|
903
|
+
target: z.ZodString;
|
|
904
|
+
projection: z.ZodOptional<z.ZodObject<{
|
|
905
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
906
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
907
|
+
}, z.core.$strict>>;
|
|
908
|
+
presentation: z.ZodOptional<z.ZodEnum<{
|
|
909
|
+
compact: "compact";
|
|
910
|
+
summary: "summary";
|
|
911
|
+
full: "full";
|
|
912
|
+
}>>;
|
|
913
|
+
}, z.core.$strict>], "type">>;
|
|
914
|
+
previewType: z.ZodOptional<z.ZodEnum<{
|
|
915
|
+
swatch: "swatch";
|
|
916
|
+
"shadow-box": "shadow-box";
|
|
917
|
+
"radius-box": "radius-box";
|
|
918
|
+
"spacing-bar": "spacing-bar";
|
|
919
|
+
"size-bar": "size-bar";
|
|
920
|
+
"border-line": "border-line";
|
|
921
|
+
"duration-bar": "duration-bar";
|
|
922
|
+
"easing-curve": "easing-curve";
|
|
923
|
+
"font-sample": "font-sample";
|
|
924
|
+
}>>;
|
|
925
|
+
}, z.core.$strict>>;
|
|
926
|
+
replaces: z.ZodOptional<z.ZodString>;
|
|
927
|
+
extends: z.ZodOptional<z.ZodString>;
|
|
928
|
+
tokenCategory: z.ZodOptional<z.ZodString>;
|
|
252
929
|
}, z.core.$loose>]>;
|
|
930
|
+
export type AuthoredDocGraphFieldsType = import("./base/type.js").AuthoredDocGraphFields;
|
|
931
|
+
export type AuthoredDocKind = import("./base/type.js").AuthoredDocKind;
|
|
932
|
+
export type NamespaceDoc = import("./namespace/type.js").NamespaceDoc;
|
|
933
|
+
export type ReferenceContentBlock = import("./reference/type.js").ReferenceContentBlock;
|
|
934
|
+
export type GraphContentBlock = import("./reference/type.js").GraphContentBlock;
|
|
935
|
+
export type ReferenceSection = import("./reference/type.js").ReferenceSection;
|
|
936
|
+
export type ReferenceDoc = import("./reference/type.js").ReferenceDoc;
|
|
937
|
+
export type SingleComponentDoc = import("./component/type.js").SingleComponentDoc;
|
|
938
|
+
export type ComponentPropDoc = import("./base/type.js").ComponentPropDoc;
|
|
939
|
+
export type HookDoc = import("./hook/type.js").HookDoc;
|
|
940
|
+
export type FunctionDoc = import("./function/type.js").FunctionDoc;
|
|
941
|
+
export type SchemaDoc = import("./schema/type.js").SchemaDoc;
|
|
942
|
+
export type CommandDoc = import("./command/type.js").CommandDoc;
|
|
943
|
+
export type EnumDoc = import("./enum/type.js").EnumDoc;
|
|
944
|
+
export type _AuthoredDocKindDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").Equal<z.infer<typeof AuthoredDocKindSchema>, AuthoredDocKind>>;
|
|
945
|
+
export type _AuthoredDocGraphDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").MutuallyAssignable<z.infer<typeof _AuthoredDocGraphSchema>, AuthoredDocGraphFieldsType>>;
|
|
946
|
+
export type _ReferenceContentBlockDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").Equal<z.infer<typeof ReferenceContentBlockSchema>, ReferenceContentBlock>>;
|
|
947
|
+
export type _GraphContentBlockDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").Equal<z.infer<typeof GraphContentBlockSchema>, GraphContentBlock>>;
|
|
948
|
+
export type _SectionContentBlockDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").Equal<z.infer<typeof SectionContentBlockSchema>, ReferenceSection["content"][number]>>;
|
|
949
|
+
/**
|
|
950
|
+
* A stamped component doc as it loads. The loader accepts what the unstamped
|
|
951
|
+
* format always accepted, so stamping an existing doc never breaks it:
|
|
952
|
+
* `displayName` may be missing, `category` is any string, `usage`, `theming`,
|
|
953
|
+
* `playground` and `examples` pass through unchecked, and a doc has `props`,
|
|
954
|
+
* `components`, or both; each `components` entry needs only a `name`. Every
|
|
955
|
+
* other field matches the published type.
|
|
956
|
+
*/
|
|
957
|
+
export type LoadedComponentDoc = Omit<SingleComponentDoc, "type" | "displayName" | "category" | "usage" | "theming" | "examples" | "playground" | "props"> & {
|
|
958
|
+
type: "component";
|
|
959
|
+
displayName?: string;
|
|
960
|
+
category?: string;
|
|
961
|
+
usage?: unknown;
|
|
962
|
+
theming?: unknown;
|
|
963
|
+
examples?: unknown[];
|
|
964
|
+
playground?: unknown;
|
|
965
|
+
props?: ComponentPropDoc[];
|
|
966
|
+
components?: Array<{
|
|
967
|
+
name: string;
|
|
968
|
+
}>;
|
|
969
|
+
};
|
|
970
|
+
export type _ComponentDocDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").MutuallyAssignable<import("../_shared/contract.js").NamedFields<z.infer<typeof ComponentDocKindSchema>>, import("../_shared/contract.js").NamedFields<LoadedComponentDoc>>>;
|
|
971
|
+
/**
|
|
972
|
+
* A stamped function doc as it loads: as with components, `displayName` may be
|
|
973
|
+
* missing and `usage` passes through unchecked.
|
|
974
|
+
*/
|
|
975
|
+
export type LoadedFunctionDoc = Omit<FunctionDoc, "type" | "displayName" | "usage"> & {
|
|
976
|
+
type: "function";
|
|
977
|
+
displayName?: string;
|
|
978
|
+
usage?: unknown;
|
|
979
|
+
};
|
|
980
|
+
export type _FunctionDocDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").MutuallyAssignable<import("../_shared/contract.js").NamedFields<z.infer<typeof FunctionDocKindSchema>>, import("../_shared/contract.js").NamedFields<LoadedFunctionDoc>>>;
|
|
981
|
+
/**
|
|
982
|
+
* Every HookDoc is a FunctionDoc, so the one function schema covers both.
|
|
983
|
+
*/
|
|
984
|
+
export type _HookDocIsFunctionDocLock = import("../_shared/contract.js").Expect<[HookDoc] extends [FunctionDoc] ? true : false>;
|
|
985
|
+
/**
|
|
986
|
+
* A stamped generic doc as the load check accepts it. `title`, `description`
|
|
987
|
+
* and `sections` may be missing, as in docs the v0.3.0 factory-removal codemod
|
|
988
|
+
* produced; `parseReference` then fills them (title from `displayName` or
|
|
989
|
+
* `name`, an empty description, no sections), so its result is a full
|
|
990
|
+
* ReferenceDoc. Only a doc with a description and sections is a usable topic
|
|
991
|
+
* (see `problemsInTopic`).
|
|
992
|
+
*/
|
|
993
|
+
export type LoadedReferenceDoc = Omit<ReferenceDoc, "type" | "title" | "description" | "sections"> & {
|
|
994
|
+
type: "generic";
|
|
995
|
+
} & Partial<Pick<ReferenceDoc, "title" | "description" | "sections">>;
|
|
996
|
+
export type _ReferenceDocDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").MutuallyAssignable<import("../_shared/contract.js").NamedFields<z.infer<typeof GenericDocKindSchema>>, import("../_shared/contract.js").NamedFields<LoadedReferenceDoc>>>;
|
|
997
|
+
export type _SchemaDocDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").MutuallyAssignable<import("../_shared/contract.js").NamedFields<z.infer<typeof SchemaDocKindSchema>>, import("../_shared/contract.js").NamedFields<SchemaDoc & {
|
|
998
|
+
type: "schema";
|
|
999
|
+
}>>>;
|
|
1000
|
+
export type _CommandDocDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").MutuallyAssignable<import("../_shared/contract.js").NamedFields<z.infer<typeof CommandDocKindSchema>>, import("../_shared/contract.js").NamedFields<CommandDoc & {
|
|
1001
|
+
type: "command";
|
|
1002
|
+
}>>>;
|
|
1003
|
+
export type _EnumDocDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").MutuallyAssignable<import("../_shared/contract.js").NamedFields<z.infer<typeof EnumDocKindSchema>>, import("../_shared/contract.js").NamedFields<EnumDoc & {
|
|
1004
|
+
type: "enum";
|
|
1005
|
+
}>>>;
|
|
1006
|
+
export type _NamespaceDocDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").Equal<z.infer<typeof NamespaceDocKindSchema>, NamespaceDoc>>;
|
|
253
1007
|
import { z } from 'zod';
|
|
1008
|
+
declare const _AuthoredDocGraphSchema: z.ZodObject<{
|
|
1009
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
1010
|
+
parent: z.ZodString;
|
|
1011
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1013
|
+
}, z.core.$strict>>;
|
|
1014
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1015
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
1016
|
+
public: "public";
|
|
1017
|
+
internal: "internal";
|
|
1018
|
+
}>>;
|
|
1019
|
+
}, z.core.$strict>;
|
|
1020
|
+
export {};
|