@astryxdesign/cli 0.7.17-canary.g4ea41ce → 0.7.17-canary.g5a3fd39
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 +7 -2
- package/api/build/_adapter.d.mts +7 -6
- package/api/build/_adapter.mjs +18 -11
- package/api/build/build.type.mjs +1 -1
- package/api/build/kit/kind.d.mts +6 -0
- package/api/build/kit/kind.mjs +1 -1
- package/api/build/kit/rank.d.mts +7 -1
- package/api/build/kit/rank.mjs +15 -5
- package/api/build/kit/signals.mjs +58 -57
- package/api/build/kit/start.d.mts +2 -1
- package/api/build/kit/start.mjs +62 -9
- package/api/build/kit/words.d.mts +6 -2
- package/api/build/kit/words.mjs +7 -3
- package/api/component/__fixtures__/resolutions/modules.txt +2 -2
- package/api/component/_adapter.d.mts +30 -24
- package/api/component/_adapter.mjs +72 -31
- package/api/component/component.mjs +4 -4
- package/api/component/detail/detail.d.mts +2 -2
- package/api/component/detail/detail.mjs +1 -1
- package/api/component/list/list.d.mts +2 -2
- package/api/component/list/list.mjs +4 -4
- package/api/discover/_adapter.mjs +15 -15
- package/api/docs/_adapter.d.mts +13 -5
- package/api/docs/_adapter.mjs +37 -10
- package/api/doctor/_adapter.d.mts +32 -0
- package/api/doctor/_adapter.mjs +56 -1
- package/api/doctor/doctor.mjs +28 -5
- package/api/doctor/theme-checks.mjs +165 -83
- package/api/error.d.mts +4 -3
- package/api/error.mjs +3 -2
- package/api/hook/_adapter.d.mts +5 -4
- package/api/hook/_adapter.mjs +6 -5
- package/api/icon/_options.d.mts +17 -0
- package/api/icon/_options.mjs +54 -0
- package/api/icon/exportIconIndex.doc.d.mts +10 -0
- package/api/icon/exportIconIndex.doc.mjs +59 -0
- package/api/icon/icon.mjs +11 -34
- package/api/icon/icon.type.d.mts +49 -0
- package/api/icon/icon.type.mjs +24 -0
- package/api/icon/rankIconIndex.doc.d.mts +10 -0
- package/api/icon/rankIconIndex.doc.mjs +79 -0
- package/api/icon/search/icon-index.d.mts +41 -0
- package/api/icon/search/icon-index.mjs +139 -0
- package/api/icon/search/search.d.mts +18 -0
- package/api/icon/search/search.mjs +13 -0
- package/api/index.d.mts +1 -0
- package/api/index.mjs +1 -0
- package/api/search/_adapter.d.mts +8 -5
- package/api/search/_adapter.mjs +14 -10
- package/api/search/_gather-components.d.mts +4 -4
- package/api/search/_gather-components.mjs +4 -3
- package/api/search/_gather-hooks.d.mts +2 -2
- package/api/search/_gather-hooks.mjs +1 -1
- package/api/search/_lexical.mjs +12 -2
- package/api/search/_priority.d.mts +10 -2
- package/api/search/_priority.mjs +37 -7
- package/api/search/_score.d.mts +12 -3
- package/api/search/_score.mjs +6 -3
- package/api/search/_words.mjs +12 -3
- package/api/search/search.d.mts +7 -1
- package/api/search/search.mjs +37 -4
- package/api/swizzle/_adapter.d.mts +7 -5
- package/api/swizzle/_adapter.mjs +7 -3
- package/api/swizzle/copy/copy.mjs +5 -4
- package/api/theme/build/build.d.mts +5 -0
- package/api/theme/build/build.mjs +400 -21
- package/api/theme/build/family.mjs +18 -7
- package/api/theme/build/font-warning.mjs +5 -4
- package/api/theme/build/input-fields.d.mts +21 -6
- package/api/theme/build/input-fields.mjs +104 -13
- package/api/theme/build/typography-values.d.mts +22 -0
- package/api/theme/build/typography-values.mjs +172 -22
- package/api/theme/build/written-values.d.mts +7 -0
- package/api/theme/build/written-values.mjs +57 -8
- package/api/theme/generateTonalPalette.doc.mjs +1 -1
- package/api/theme/palette/generate/generator.d.mts +14 -2
- package/api/theme/palette/generate/generator.mjs +94 -8
- package/api/theme/theme.type.d.mts +21 -4
- package/api/theme/theme.type.mjs +14 -5
- package/api/theme/themePaletteGenerate.doc.mjs +1 -1
- package/api/theme/themeTemplate.doc.mjs +18 -3
- package/api/theme-edit/_adapter.d.mts +1 -1
- package/api/theme-edit/_adapter.mjs +1 -1
- package/api/theme-edit/_catalog.d.mts +10 -4
- package/api/theme-edit/_catalog.mjs +81 -22
- package/api/theme-edit/_check.mjs +402 -88
- package/api/theme-edit/_color.d.mts +11 -2
- package/api/theme-edit/_color.mjs +23 -7
- package/api/theme-edit/_compiler.mjs +11 -3
- package/api/theme-edit/_context.d.mts +87 -6
- package/api/theme-edit/_context.mjs +224 -17
- package/api/theme-edit/_css.mjs +4 -0
- package/api/theme-edit/_edit.mjs +331 -58
- package/api/theme-edit/_how-question.d.mts +11 -0
- package/api/theme-edit/_how-question.mjs +2514 -234
- package/api/theme-edit/_how.mjs +79 -14
- package/api/theme-edit/_missed.mjs +294 -32
- package/api/theme-edit/_normal.d.mts +3 -1
- package/api/theme-edit/_normal.mjs +4 -1
- package/api/theme-edit/_palette.mjs +36 -5
- package/api/theme-edit/_part-words.mjs +20 -2
- package/api/theme-edit/_parts.d.mts +12 -1
- package/api/theme-edit/_parts.mjs +116 -11
- package/api/theme-edit/_preview-app.mjs +40 -2
- package/api/theme-edit/_preview.d.mts +45 -5
- package/api/theme-edit/_preview.mjs +173 -21
- package/api/theme-edit/_settings.d.mts +20 -0
- package/api/theme-edit/_settings.mjs +1033 -94
- package/api/theme-edit/_tables.mjs +2 -2
- package/api/theme-edit/theme-edit.type.d.mts +6 -5
- package/api/theme-edit/theme-edit.type.mjs +8 -8
- package/api/upgrade/_adapter.mjs +13 -2
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/tree/authoring.doc.mjs +1 -0
- package/assets/docs/tree/cli.doc.mjs +1 -0
- package/assets/docs/tree/computer-agent-guide.doc.mjs +1 -1
- package/assets/docs/tree/generate-a-palette.doc.mjs +2 -2
- package/assets/docs/tree/global.doc.mjs +1 -0
- package/assets/docs/tree/single-component.doc.mjs +40 -2
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/who-answers.doc.mjs +2 -2
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/Blockquote/BlockquoteShowcase.tsx +1 -1
- package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsx +4 -4
- package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsx +1 -0
- package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsx +2 -2
- package/assets/templates/blocks/components/Card/CardElevations.tsx +1 -1
- package/assets/templates/blocks/components/Card/CardWithInnerLayout.tsx +19 -3
- package/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx +11 -1
- package/assets/templates/blocks/components/Card/SelectableCardElevated.tsx +1 -1
- package/assets/templates/blocks/components/Card/SelectableCardMulti.tsx +1 -1
- package/assets/templates/blocks/components/Center/CenterHorizontal.tsx +1 -1
- package/assets/templates/blocks/components/Center/CenterInsideACard.tsx +1 -1
- package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsx +8 -0
- package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsx +8 -2
- package/assets/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.tsx +1 -0
- package/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsx +1 -1
- package/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleCustomContent.tsx +9 -1
- package/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.tsx +12 -2
- package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsx +28 -7
- package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsx +35 -7
- package/assets/templates/blocks/components/Collapsible/CollapsibleShowcase.tsx +1 -1
- package/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.tsx +20 -4
- package/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.tsx +15 -3
- package/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.tsx +29 -6
- package/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.tsx +2 -2
- package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.tsx +1 -1
- package/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsx +2 -2
- package/assets/templates/blocks/components/Divider/DividerFullBleed.tsx +1 -1
- package/assets/templates/blocks/components/Divider/DividerShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Divider/DividerVariants.tsx +1 -1
- package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupShowcase.tsx +23 -4
- package/assets/templates/blocks/components/EmptyState/EmptyStateActions.tsx +18 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.tsx +20 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.tsx +16 -2
- package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.tsx +11 -1
- package/assets/templates/blocks/components/Heading/HeadingTruncation.tsx +12 -2
- package/assets/templates/blocks/components/InternationalizationProvider/useDirectionHookUsage.tsx +1 -1
- package/assets/templates/blocks/components/LayoutContent/LayoutContentBasic.tsx +1 -1
- package/assets/templates/blocks/components/LayoutContent/LayoutContentShowcase.tsx +1 -1
- package/assets/templates/blocks/components/LayoutFooter/LayoutFooterActions.tsx +17 -3
- package/assets/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.tsx +17 -3
- package/assets/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.tsx +15 -3
- package/assets/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.tsx +9 -2
- package/assets/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.tsx +1 -1
- package/assets/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.tsx +1 -1
- package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.tsx +1 -1
- package/assets/templates/blocks/components/MultiSelector/MultiSelectorGhostToolbar.tsx +14 -2
- package/assets/templates/blocks/components/Outline/OutlineDensity.tsx +2 -0
- package/assets/templates/blocks/components/OverflowList/OverflowListShowcase.tsx +6 -1
- package/assets/templates/blocks/components/Pagination/PaginationVariants.tsx +4 -0
- package/assets/templates/blocks/components/Popover/PopoverHookUsage.tsx +17 -2
- package/assets/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.tsx +1 -1
- package/assets/templates/blocks/components/Selector/SelectorGhostToolbar.tsx +14 -2
- package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx +8 -1
- package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx +2 -2
- package/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx +2 -0
- package/assets/templates/blocks/components/Switch/SwitchWithStatus.tsx +1 -1
- package/assets/templates/blocks/components/TabList/TabListTabsFillLayout.tsx +1 -1
- package/assets/templates/blocks/components/TabList/TabListTabsWithActions.tsx +12 -1
- package/assets/templates/blocks/components/Table/TableBulkActionsTable.tsx +11 -1
- package/assets/templates/blocks/components/Table/TableInCard.tsx +2 -2
- package/assets/templates/blocks/components/Text/TextTruncation.tsx +1 -1
- package/assets/templates/blocks/components/Text/TextWordBreak.tsx +12 -2
- package/assets/templates/blocks/components/Text/TextWrap.tsx +19 -4
- package/assets/templates/blocks/components/TextArea/TextAreaCharacterCount.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaStates.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaValidation.tsx +1 -1
- package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.tsx +1 -1
- package/assets/templates/blocks/components/TextInput/TextInputStatusVariant.tsx +2 -2
- package/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.tsx +15 -1
- package/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsx +15 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx +8 -0
- package/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx +12 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx +18 -3
- package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsx +6 -0
- package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx +7 -1
- package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.tsx +2 -2
- package/assets/templates/blocks/components/TopNav/TopNavShowcase.tsx +9 -0
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat/page.tsx +102 -6
- package/assets/templates/pages/canvas-editor/page.tsx +73 -2
- package/assets/templates/pages/centered-hero/page.tsx +10 -4
- package/assets/templates/pages/course-detail/page.tsx +46 -2
- package/assets/templates/pages/dashboard/page.tsx +45 -16
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +31 -20
- package/assets/templates/pages/dashboard-comparison/page.tsx +9 -0
- package/assets/templates/pages/dashboard-composition/page.tsx +22 -9
- package/assets/templates/pages/dashboard-progress/page.tsx +27 -15
- package/assets/templates/pages/dashboard-scorecard/page.tsx +9 -0
- package/assets/templates/pages/detail-page/page.tsx +105 -77
- package/assets/templates/pages/documentation/page.tsx +15 -2
- package/assets/templates/pages/documentation-design/page.tsx +7 -34
- package/assets/templates/pages/documentation-technical/page.tsx +76 -12
- package/assets/templates/pages/editor/page.tsx +26 -21
- package/assets/templates/pages/file-explorer/page.tsx +35 -1
- package/assets/templates/pages/form-two-column/page.tsx +2 -3
- package/assets/templates/pages/form-wizard/page.tsx +31 -3
- package/assets/templates/pages/form-wizard-vertical/page.tsx +32 -3
- package/assets/templates/pages/gallery-hero/page.tsx +2 -1
- package/assets/templates/pages/ide/page.tsx +15 -1
- package/assets/templates/pages/incident-console/page.tsx +2 -1
- package/assets/templates/pages/incident-console/template.doc.mjs +1 -1
- package/assets/templates/pages/kanban-board/page.tsx +39 -2
- package/assets/templates/pages/payment-form/page.tsx +77 -39
- package/assets/templates/pages/product-gallery/page.tsx +16 -14
- package/assets/templates/pages/settings/page.tsx +35 -3
- package/assets/templates/pages/settings-dialog/page.tsx +34 -5
- package/assets/templates/pages/settings-sidebar/page.tsx +23 -3
- package/assets/templates/pages/shell-nav/page.tsx +28 -12
- package/assets/templates/pages/shell-side-nav/page.tsx +16 -1
- package/assets/templates/pages/shell-top-nav/page.tsx +27 -1
- package/assets/templates/pages/side-gallery/page.tsx +1 -1
- package/assets/templates/pages/table/page.tsx +2 -1
- package/assets/templates/pages/table/template.doc.mjs +1 -1
- package/assets/templates/pages/table-collapsible/page.tsx +1 -1
- package/assets/templates/pages/table-comparison/page.tsx +1 -1
- package/assets/templates/pages/table-filter/page.tsx +9 -2
- package/assets/templates/pages/table-grouped/page.tsx +16 -6
- package/assets/templates/pages/table-inbox/page.tsx +60 -1
- package/assets/templates/pages/table-page/page.tsx +10 -2
- package/assets/templates/pages/table-tree/page.tsx +95 -13
- package/assets/templates/pages/theme-showcase/page.tsx +107 -11
- package/assets/templates/pages/work-item-detail/page.tsx +88 -74
- package/assets/templates/pages/work-item-detail/template.doc.mjs +0 -1
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/gothic/gothicTheme.ts +5 -0
- package/assets/templates/themes/neutral/neutralTheme.ts +1 -1
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/y2k/y2kTheme.ts +1 -1
- package/authoring/debug/parse.d.mts +1 -1
- package/authoring/doctypes/_schema.d.mts +22 -8
- package/authoring/doctypes/_schema.mjs +31 -0
- package/authoring/doctypes/command/command.doc.mjs +24 -0
- package/authoring/doctypes/command/type.ts +31 -0
- package/authoring/doctypes/component/component.doc.mjs +1 -1
- package/authoring/doctypes/component/type.ts +8 -5
- package/authoring/doctypes/namespace/namespace.doc.mjs +6 -0
- package/authoring/doctypes/namespace/type.ts +4 -0
- package/authoring/doctypes/template/type.ts +0 -7
- package/authoring/index.d.ts +6 -1
- package/authoring/integration/integration.doc.mjs +7 -0
- package/authoring/integration/schema.d.mts +6 -0
- package/authoring/integration/schema.mjs +3 -0
- package/authoring/integration/type.ts +34 -0
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/component.doc.mjs +1 -0
- package/clients/cli/commands/component.mjs +5 -1
- package/clients/cli/commands/docs.doc.mjs +1 -1
- package/clients/cli/commands/experimental/index.mjs +4 -1
- package/clients/cli/commands/experimental/theme.mjs +139 -64
- package/clients/cli/commands/experimental-render.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-add.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +3 -1
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -1
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-eject.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +2 -0
- package/clients/cli/commands/experimental-theme-targets.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-template.doc.mjs +1 -0
- package/clients/cli/commands/experimental-theme-use.doc.mjs +2 -0
- package/clients/cli/commands/gap-report.doc.mjs +1 -0
- package/clients/cli/commands/hook.doc.mjs +1 -1
- package/clients/cli/commands/init.doc.mjs +1 -1
- package/clients/cli/commands/integration-add.doc.mjs +1 -0
- package/clients/cli/commands/manifest.mjs +10 -3
- package/clients/cli/commands/swizzle.doc.mjs +8 -1
- package/clients/cli/commands/swizzle.mjs +13 -6
- package/clients/cli/commands/template.doc.mjs +3 -0
- package/clients/cli/commands/theme-add.doc.mjs +2 -1
- package/clients/cli/commands/theme-build.doc.mjs +2 -1
- package/clients/cli/commands/theme-eject.doc.mjs +1 -1
- package/clients/cli/commands/theme-palette-generate.doc.mjs +3 -2
- package/clients/cli/commands/theme-remove.doc.mjs +2 -1
- package/clients/cli/commands/theme-targets.doc.mjs +1 -0
- package/clients/cli/commands/theme-template.doc.mjs +1 -0
- package/clients/cli/commands/theme-use.doc.mjs +2 -1
- package/clients/cli/commands/theme.doc.mjs +7 -2
- package/clients/cli/commands/theme.mjs +21 -5
- package/clients/cli/index.mjs +167 -59
- package/clients/cli/lib/base-gate.mjs +522 -0
- package/clients/cli/lib/command-path.mjs +26 -0
- package/clients/cli/lib/define-command.mjs +161 -12
- package/clients/cli/lib/json-shim.mjs +34 -31
- package/clients/cli/lib/manifest.d.ts +14 -0
- package/clients/cli/lib/manifest.mjs +78 -22
- package/clients/cli/lib/root-args.mjs +79 -0
- package/clients/cli/lib/stray-option.mjs +21 -8
- package/clients/cli/lib/unknown-command.mjs +27 -6
- package/clients/cli/manifest.generated.json +1 -1
- package/clients/cli/run.mjs +13 -1
- package/foundation/agent-docs/computer-agent-text.mjs +1 -1
- package/foundation/bases/core-docs.d.mts +10 -0
- package/foundation/bases/core-docs.mjs +42 -0
- package/foundation/bases/core.d.mts +11 -0
- package/foundation/bases/core.mjs +32 -0
- package/foundation/bases/requirements.d.mts +128 -0
- package/foundation/bases/requirements.mjs +193 -0
- package/foundation/bases/resolve.d.mts +134 -0
- package/foundation/bases/resolve.mjs +295 -0
- package/foundation/bases/state.d.mts +24 -0
- package/foundation/bases/state.mjs +46 -0
- package/foundation/bases/steps.d.mts +49 -0
- package/foundation/bases/steps.mjs +88 -0
- package/foundation/config/project.d.mts +14 -0
- package/foundation/config/project.mjs +68 -1
- package/foundation/discovery/cli-self-docs.mjs +9 -1
- package/foundation/discovery/command-pointers.d.mts +28 -0
- package/foundation/discovery/command-pointers.mjs +31 -0
- package/foundation/discovery/component-discovery.d.mts +9 -8
- package/foundation/discovery/component-discovery.mjs +9 -4
- package/foundation/discovery/docs-discovery.d.mts +13 -5
- package/foundation/discovery/docs-discovery.mjs +25 -6
- package/foundation/discovery/hook-discovery.d.mts +6 -6
- package/foundation/discovery/hook-discovery.mjs +6 -4
- package/foundation/discovery/template-adapter.mjs +5 -0
- package/foundation/discovery/template-ids.d.mts +1 -1
- package/foundation/discovery/template-ids.mjs +5 -1
- package/foundation/discovery/theme-discovery.mjs +3 -0
- package/foundation/discovery/theme-imports.mjs +19 -1
- package/foundation/doc-compiler/tree.d.mts +4 -2
- package/foundation/doc-compiler/tree.mjs +46 -1
- package/foundation/env/package-manager.d.mts +7 -0
- package/foundation/env/package-manager.mjs +21 -0
- package/foundation/fonts/font-stylesheet.d.mts +8 -0
- package/foundation/fonts/font-stylesheet.mjs +26 -2
- package/foundation/fs/gather-cache.mjs +44 -13
- package/foundation/fs/own-modules.d.mts +29 -0
- package/foundation/fs/own-modules.mjs +57 -0
- package/foundation/fs/paths.d.mts +30 -2
- package/foundation/fs/paths.mjs +49 -2
- package/foundation/integrations/integrations.d.mts +4 -0
- package/foundation/integrations/integrations.mjs +6 -1
- package/foundation/release/choose.d.mts +7 -0
- package/foundation/release/choose.mjs +16 -2
- package/foundation/release/notices.d.mts +26 -0
- package/foundation/release/notices.mjs +48 -19
- package/foundation/release/project.d.mts +3 -2
- package/foundation/release/project.mjs +4 -5
- package/foundation/release/run-context.d.mts +7 -2
- package/foundation/release/run-context.mjs +6 -2
- package/foundation/render/css-cut.mjs +86 -6
- package/foundation/render/cut-short.d.mts +35 -0
- package/foundation/render/cut-short.mjs +124 -0
- package/foundation/render/font-probe.d.mts +27 -0
- package/foundation/render/font-probe.mjs +77 -0
- package/foundation/render/layers.d.mts +1 -9
- package/foundation/render/layers.mjs +2 -111
- package/foundation/render/page-worker.mjs +83 -6
- package/foundation/render/picture-chrome.mjs +24 -2
- package/foundation/render/picture-playwright.mjs +22 -2
- package/foundation/render/picture-window.d.mts +20 -4
- package/foundation/render/picture-window.mjs +137 -4
- package/foundation/response/base.d.ts +25 -0
- package/foundation/response/error-codes.d.mts +4 -1
- package/foundation/response/error-codes.d.ts +4 -1
- package/foundation/response/error-codes.doc.mjs +17 -0
- package/foundation/response/error-codes.mjs +21 -0
- package/foundation/response/json.d.mts +3 -1
- package/foundation/response/json.mjs +7 -2
- package/foundation/response/response-types.doc.mjs +2 -2
- package/foundation/suggest/name-index.d.mts +2 -1
- package/foundation/suggest/name-index.mjs +1 -1
- package/foundation/suggest/other-command.d.mts +4 -1
- package/foundation/suggest/other-command.mjs +23 -6
- package/foundation/text/string-utils.d.mts +7 -2
- package/foundation/text/string-utils.mjs +24 -10
- package/package.json +6 -6
- package/assets/templates/pages/access-denied/page.tsx +0 -101
- package/assets/templates/pages/access-denied/template.doc.mjs +0 -24
- package/assets/templates/pages/error-page/page.tsx +0 -130
- package/assets/templates/pages/error-page/template.doc.mjs +0 -22
- package/assets/templates/pages/not-found/page.tsx +0 -124
- package/assets/templates/pages/not-found/template.doc.mjs +0 -30
- package/assets/templates/pages/review-workspace/page.tsx +0 -551
- package/assets/templates/pages/review-workspace/template.doc.mjs +0 -31
- package/assets/templates/pages/run-console/page.tsx +0 -945
- package/assets/templates/pages/run-console/template.doc.mjs +0 -27
- package/assets/templates/pages/welcome-portal/page.tsx +0 -538
- package/assets/templates/pages/welcome-portal/template.doc.mjs +0 -38
|
@@ -72,6 +72,8 @@ import {
|
|
|
72
72
|
useChatNewMessages,
|
|
73
73
|
useChatStreamScroll,
|
|
74
74
|
} from '@astryxdesign/core/Chat';
|
|
75
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
76
|
+
import {useImperativeAlertDialog} from '@astryxdesign/core/AlertDialog';
|
|
75
77
|
|
|
76
78
|
// StackItem has no wrapping basis; Stack has no body variant.
|
|
77
79
|
// LayoutContent has no height cap; keep the message viewport bounded.
|
|
@@ -632,6 +634,7 @@ const SUGGESTED_QUESTIONS = [
|
|
|
632
634
|
];
|
|
633
635
|
|
|
634
636
|
function ChatCard() {
|
|
637
|
+
const showToast = useToast();
|
|
635
638
|
const scrollRef = useRef<HTMLDivElement>(null);
|
|
636
639
|
const {lock, isLocked, scrollIfLocked} = useChatStreamScroll({scrollRef});
|
|
637
640
|
const {contentRef} = useChatNewMessages({isLocked, onResize: scrollIfLocked});
|
|
@@ -668,6 +671,13 @@ function ChatCard() {
|
|
|
668
671
|
label="Export conversation"
|
|
669
672
|
tooltip="Export conversation"
|
|
670
673
|
icon={<Icon icon={Download} size="sm" />}
|
|
674
|
+
onClick={() =>
|
|
675
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
676
|
+
showToast({
|
|
677
|
+
body: 'Demo: the conversation would export here',
|
|
678
|
+
uniqueID: 'export-chat',
|
|
679
|
+
})
|
|
680
|
+
}
|
|
671
681
|
/>
|
|
672
682
|
<Button
|
|
673
683
|
variant="ghost"
|
|
@@ -676,6 +686,13 @@ function ChatCard() {
|
|
|
676
686
|
label="Close chat"
|
|
677
687
|
tooltip="Close chat"
|
|
678
688
|
icon={<Icon icon={X} size="sm" />}
|
|
689
|
+
onClick={() =>
|
|
690
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
691
|
+
showToast({
|
|
692
|
+
body: 'Demo: the chat would close here',
|
|
693
|
+
uniqueID: 'close-chat',
|
|
694
|
+
})
|
|
695
|
+
}
|
|
679
696
|
/>
|
|
680
697
|
</HStack>
|
|
681
698
|
</HStack>
|
|
@@ -708,6 +725,13 @@ function ChatCard() {
|
|
|
708
725
|
label="Attach"
|
|
709
726
|
tooltip="Attach"
|
|
710
727
|
icon={<Icon icon={Plus} size="sm" />}
|
|
728
|
+
onClick={() =>
|
|
729
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
730
|
+
showToast({
|
|
731
|
+
body: 'Demo: a file picker would open here',
|
|
732
|
+
uniqueID: 'attach',
|
|
733
|
+
})
|
|
734
|
+
}
|
|
711
735
|
/>
|
|
712
736
|
}
|
|
713
737
|
sendActions={
|
|
@@ -718,6 +742,13 @@ function ChatCard() {
|
|
|
718
742
|
label="Voice input"
|
|
719
743
|
tooltip="Voice input"
|
|
720
744
|
icon={<Icon icon={Mic} size="sm" />}
|
|
745
|
+
onClick={() =>
|
|
746
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
747
|
+
showToast({
|
|
748
|
+
body: 'Demo: voice input would start here',
|
|
749
|
+
uniqueID: 'voice',
|
|
750
|
+
})
|
|
751
|
+
}
|
|
721
752
|
/>
|
|
722
753
|
}
|
|
723
754
|
/>
|
|
@@ -1069,18 +1100,61 @@ function TagsCell({row}: {row: InventoryRow}) {
|
|
|
1069
1100
|
}
|
|
1070
1101
|
|
|
1071
1102
|
function ActionsCell() {
|
|
1103
|
+
const showToast = useToast();
|
|
1104
|
+
const confirm = useImperativeAlertDialog();
|
|
1072
1105
|
return (
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
{
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1106
|
+
<>
|
|
1107
|
+
<MoreMenu
|
|
1108
|
+
label="Row actions"
|
|
1109
|
+
size="sm"
|
|
1110
|
+
// Demo only: replace these toasts with the calls that perform each action.
|
|
1111
|
+
items={[
|
|
1112
|
+
{
|
|
1113
|
+
label: 'Edit',
|
|
1114
|
+
onClick: () =>
|
|
1115
|
+
showToast({
|
|
1116
|
+
body: 'Demo: edit would happen here',
|
|
1117
|
+
uniqueID: 'row-edit',
|
|
1118
|
+
}),
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
label: 'Duplicate',
|
|
1122
|
+
onClick: () =>
|
|
1123
|
+
showToast({
|
|
1124
|
+
body: 'Demo: duplicate would happen here',
|
|
1125
|
+
uniqueID: 'row-duplicate',
|
|
1126
|
+
}),
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
label: 'Move to…',
|
|
1130
|
+
onClick: () =>
|
|
1131
|
+
showToast({
|
|
1132
|
+
body: 'Demo: moving the item would happen here',
|
|
1133
|
+
uniqueID: 'row-move-to',
|
|
1134
|
+
}),
|
|
1135
|
+
},
|
|
1136
|
+
{type: 'divider'},
|
|
1137
|
+
{
|
|
1138
|
+
label: 'Delete',
|
|
1139
|
+
onClick: () =>
|
|
1140
|
+
confirm.show({
|
|
1141
|
+
title: 'Delete this item?',
|
|
1142
|
+
description: "This demo won't delete anything.",
|
|
1143
|
+
actionLabel: 'Delete',
|
|
1144
|
+
onAction: () => {
|
|
1145
|
+
confirm.hide();
|
|
1146
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1147
|
+
showToast({
|
|
1148
|
+
body: 'Demo: the item would be deleted here',
|
|
1149
|
+
uniqueID: 'row-delete',
|
|
1150
|
+
});
|
|
1151
|
+
},
|
|
1152
|
+
}),
|
|
1153
|
+
},
|
|
1154
|
+
]}
|
|
1155
|
+
/>
|
|
1156
|
+
{confirm.element}
|
|
1157
|
+
</>
|
|
1084
1158
|
);
|
|
1085
1159
|
}
|
|
1086
1160
|
|
|
@@ -1091,6 +1165,7 @@ function InventoryCard({
|
|
|
1091
1165
|
images: Record<string, string>;
|
|
1092
1166
|
inventory: InventoryRow[];
|
|
1093
1167
|
}) {
|
|
1168
|
+
const showToast = useToast();
|
|
1094
1169
|
const [query, setQuery] = useState('');
|
|
1095
1170
|
const [category, setCategory] = useState<string | null>(null);
|
|
1096
1171
|
const [location, setLocation] = useState<string | null>(null);
|
|
@@ -1135,6 +1210,13 @@ function InventoryCard({
|
|
|
1135
1210
|
variant="primary"
|
|
1136
1211
|
size="sm"
|
|
1137
1212
|
icon={<Icon icon={Plus} size="sm" />}
|
|
1213
|
+
onClick={() =>
|
|
1214
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1215
|
+
showToast({
|
|
1216
|
+
body: 'Demo: a new item form would open here',
|
|
1217
|
+
uniqueID: 'add-item',
|
|
1218
|
+
})
|
|
1219
|
+
}
|
|
1138
1220
|
/>
|
|
1139
1221
|
</HStack>
|
|
1140
1222
|
<Divider variant="subtle" />
|
|
@@ -1205,6 +1287,13 @@ function InventoryCard({
|
|
|
1205
1287
|
label="List view"
|
|
1206
1288
|
tooltip="List view"
|
|
1207
1289
|
icon={<List size={18} />}
|
|
1290
|
+
onClick={() =>
|
|
1291
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1292
|
+
showToast({
|
|
1293
|
+
body: 'Demo: the list view would show here',
|
|
1294
|
+
uniqueID: 'list-view',
|
|
1295
|
+
})
|
|
1296
|
+
}
|
|
1208
1297
|
/>
|
|
1209
1298
|
<Button
|
|
1210
1299
|
variant="ghost"
|
|
@@ -1213,6 +1302,13 @@ function InventoryCard({
|
|
|
1213
1302
|
label="Grid view"
|
|
1214
1303
|
tooltip="Grid view"
|
|
1215
1304
|
icon={<LayoutGrid size={18} />}
|
|
1305
|
+
onClick={() =>
|
|
1306
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1307
|
+
showToast({
|
|
1308
|
+
body: 'Demo: the grid view would show here',
|
|
1309
|
+
uniqueID: 'grid-view',
|
|
1310
|
+
})
|
|
1311
|
+
}
|
|
1216
1312
|
/>
|
|
1217
1313
|
</HStack>
|
|
1218
1314
|
</HStack>
|
|
@@ -43,7 +43,7 @@ import {ProgressBar} from '@astryxdesign/core/ProgressBar';
|
|
|
43
43
|
import {Selector} from '@astryxdesign/core/Selector';
|
|
44
44
|
import {TextArea} from '@astryxdesign/core/TextArea';
|
|
45
45
|
import {Timestamp} from '@astryxdesign/core/Timestamp';
|
|
46
|
-
import {
|
|
46
|
+
import {useImperativeAlertDialog} from '@astryxdesign/core/AlertDialog';
|
|
47
47
|
import {
|
|
48
48
|
ArrowLeftIcon,
|
|
49
49
|
LinkIcon,
|
|
@@ -52,7 +52,6 @@ import {
|
|
|
52
52
|
TrashIcon,
|
|
53
53
|
PhotoIcon,
|
|
54
54
|
ViewColumnsIcon,
|
|
55
|
-
InformationCircleIcon,
|
|
56
55
|
BellIcon,
|
|
57
56
|
ShareIcon,
|
|
58
57
|
EyeIcon,
|
|
@@ -256,7 +255,7 @@ const ATTACHMENT_ICONS = {
|
|
|
256
255
|
file: DocumentTextIcon,
|
|
257
256
|
};
|
|
258
257
|
|
|
259
|
-
//
|
|
258
|
+
// The parts of every row's Delete that do not depend on the row.
|
|
260
259
|
const ATTACHMENT_DELETE: DropdownMenuOption = {
|
|
261
260
|
label: 'Delete',
|
|
262
261
|
icon: TrashIcon,
|
|
@@ -376,6 +375,7 @@ function PageHeader({
|
|
|
376
375
|
onToggleDetails: () => void;
|
|
377
376
|
isNarrow: boolean;
|
|
378
377
|
}) {
|
|
378
|
+
const showToast = useToast();
|
|
379
379
|
return (
|
|
380
380
|
<LayoutHeader padding={6} hasDivider>
|
|
381
381
|
<VStack gap={4}>
|
|
@@ -405,14 +405,7 @@ function PageHeader({
|
|
|
405
405
|
Refresh onboarding flow for workspaces
|
|
406
406
|
</Heading>
|
|
407
407
|
</VStack>
|
|
408
|
-
{isNarrow
|
|
409
|
-
<IconButton
|
|
410
|
-
label="Show details"
|
|
411
|
-
variant="secondary"
|
|
412
|
-
icon={<Icon icon={InformationCircleIcon} size="sm" />}
|
|
413
|
-
onClick={onToggleDetails}
|
|
414
|
-
/>
|
|
415
|
-
) : (
|
|
408
|
+
{!isNarrow && (
|
|
416
409
|
<HStack gap={1}>
|
|
417
410
|
{HEADER_ACTIONS.map(action => (
|
|
418
411
|
<IconButton
|
|
@@ -420,6 +413,13 @@ function PageHeader({
|
|
|
420
413
|
label={action.label}
|
|
421
414
|
variant="secondary"
|
|
422
415
|
icon={<Icon icon={action.icon} size="sm" />}
|
|
416
|
+
onClick={() =>
|
|
417
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
418
|
+
showToast({
|
|
419
|
+
body: `Demo: ${action.label} would happen here`,
|
|
420
|
+
uniqueID: `header-${action.label}`,
|
|
421
|
+
})
|
|
422
|
+
}
|
|
423
423
|
/>
|
|
424
424
|
))}
|
|
425
425
|
<Button
|
|
@@ -585,12 +585,24 @@ function SubtasksSection({
|
|
|
585
585
|
// ─── Attachments ────────────────────────────────────────────────────────────
|
|
586
586
|
function AttachmentsSection() {
|
|
587
587
|
const showToast = useToast();
|
|
588
|
+
const confirm = useImperativeAlertDialog();
|
|
588
589
|
return (
|
|
589
590
|
<Section padding={SECTION_PADDING}>
|
|
590
591
|
<VStack gap={4}>
|
|
591
592
|
<SectionHeader
|
|
592
593
|
title="Attachments"
|
|
593
|
-
action={
|
|
594
|
+
action={
|
|
595
|
+
<Button
|
|
596
|
+
label="Add attachment"
|
|
597
|
+
onClick={() =>
|
|
598
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
599
|
+
showToast({
|
|
600
|
+
body: 'Demo: a file picker would open here',
|
|
601
|
+
uniqueID: 'add-attachment',
|
|
602
|
+
})
|
|
603
|
+
}
|
|
604
|
+
/>
|
|
605
|
+
}
|
|
594
606
|
/>
|
|
595
607
|
<VStack gap={1}>
|
|
596
608
|
{ATTACHMENTS.map(attachment => (
|
|
@@ -634,13 +646,30 @@ function AttachmentsSection() {
|
|
|
634
646
|
uniqueID: `edit-${attachment.id}`,
|
|
635
647
|
}),
|
|
636
648
|
},
|
|
637
|
-
|
|
649
|
+
{
|
|
650
|
+
...ATTACHMENT_DELETE,
|
|
651
|
+
onClick: () =>
|
|
652
|
+
confirm.show({
|
|
653
|
+
title: `Delete ${attachment.title}?`,
|
|
654
|
+
description: "This demo won't delete anything.",
|
|
655
|
+
actionLabel: 'Delete',
|
|
656
|
+
onAction: () => {
|
|
657
|
+
confirm.hide();
|
|
658
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
659
|
+
showToast({
|
|
660
|
+
body: `Demo: ${attachment.title} would be deleted here`,
|
|
661
|
+
uniqueID: `delete-${attachment.id}`,
|
|
662
|
+
});
|
|
663
|
+
},
|
|
664
|
+
}),
|
|
665
|
+
},
|
|
638
666
|
]}
|
|
639
667
|
/>
|
|
640
668
|
</HStack>
|
|
641
669
|
</ClickableCard>
|
|
642
670
|
))}
|
|
643
671
|
</VStack>
|
|
672
|
+
{confirm.element}
|
|
644
673
|
</VStack>
|
|
645
674
|
</Section>
|
|
646
675
|
);
|
|
@@ -864,14 +893,11 @@ export default function WorkItemDetailTemplate() {
|
|
|
864
893
|
const [subtasks, setSubtasks] = useState(SUBTASKS);
|
|
865
894
|
const [comment, setComment] = useState('');
|
|
866
895
|
|
|
867
|
-
|
|
868
|
-
//
|
|
869
|
-
//
|
|
870
|
-
|
|
871
|
-
const [
|
|
872
|
-
const [isDialogOpen, setDialogOpen] = useState(false);
|
|
873
|
-
const isDetailsOpen = isNarrow ? isDialogOpen : isRailOpen;
|
|
874
|
-
const setDetailsOpen = isNarrow ? setDialogOpen : setRailOpen;
|
|
896
|
+
// Mobile first: the server render and a shared static copy, which run no
|
|
897
|
+
// script, get the narrow layout, which reads well at every width. Once
|
|
898
|
+
// script runs, wide screens move the details to a rail that can be hidden.
|
|
899
|
+
const isNarrow = useMediaQuery('(max-width: 1024px)', true);
|
|
900
|
+
const [isDetailsOpen, setDetailsOpen] = useState(true);
|
|
875
901
|
const toggleDetails = () => setDetailsOpen(isOpen => !isOpen);
|
|
876
902
|
|
|
877
903
|
const updateFields = (patch: Partial<WorkItemFields>) =>
|
|
@@ -883,59 +909,47 @@ export default function WorkItemDetailTemplate() {
|
|
|
883
909
|
);
|
|
884
910
|
|
|
885
911
|
return (
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
isNarrow={isNarrow}
|
|
897
|
-
/>
|
|
898
|
-
}
|
|
899
|
-
content={
|
|
900
|
-
<LayoutContent padding={6} role="main">
|
|
901
|
-
<VStack gap={6}>
|
|
902
|
-
<DescriptionSection />
|
|
903
|
-
<Divider />
|
|
904
|
-
<SubtasksSection subtasks={subtasks} onSetDone={setSubtaskDone} />
|
|
905
|
-
<Divider />
|
|
906
|
-
<AttachmentsSection />
|
|
907
|
-
<Divider />
|
|
908
|
-
<ActivitySection comment={comment} onCommentChange={setComment} />
|
|
909
|
-
</VStack>
|
|
910
|
-
</LayoutContent>
|
|
911
|
-
}
|
|
912
|
-
end={
|
|
913
|
-
!isNarrow && isDetailsOpen ? (
|
|
914
|
-
<LayoutPanel
|
|
915
|
-
width={340}
|
|
916
|
-
padding={6}
|
|
917
|
-
role="complementary"
|
|
918
|
-
hasDivider>
|
|
919
|
-
<DetailsPanel fields={fields} />
|
|
920
|
-
</LayoutPanel>
|
|
921
|
-
) : undefined
|
|
922
|
-
}
|
|
923
|
-
/>
|
|
924
|
-
<Dialog
|
|
925
|
-
variant="fullscreen"
|
|
926
|
-
isOpen={isNarrow && isDetailsOpen}
|
|
927
|
-
onOpenChange={setDialogOpen}>
|
|
928
|
-
<Layout
|
|
929
|
-
header={
|
|
930
|
-
<DialogHeader title="Task details" onOpenChange={setDialogOpen} />
|
|
931
|
-
}
|
|
932
|
-
content={
|
|
933
|
-
<LayoutContent padding={4}>
|
|
934
|
-
<DetailsPanel fields={fields} />
|
|
935
|
-
</LayoutContent>
|
|
936
|
-
}
|
|
912
|
+
<Layout
|
|
913
|
+
height="fill"
|
|
914
|
+
contentWidth={1260}
|
|
915
|
+
header={
|
|
916
|
+
<PageHeader
|
|
917
|
+
fields={fields}
|
|
918
|
+
onFieldsChange={updateFields}
|
|
919
|
+
isDetailsOpen={isDetailsOpen}
|
|
920
|
+
onToggleDetails={toggleDetails}
|
|
921
|
+
isNarrow={isNarrow}
|
|
937
922
|
/>
|
|
938
|
-
|
|
939
|
-
|
|
923
|
+
}
|
|
924
|
+
content={
|
|
925
|
+
<LayoutContent padding={6} role="main">
|
|
926
|
+
<VStack gap={6}>
|
|
927
|
+
<DescriptionSection />
|
|
928
|
+
<Divider />
|
|
929
|
+
<SubtasksSection subtasks={subtasks} onSetDone={setSubtaskDone} />
|
|
930
|
+
<Divider />
|
|
931
|
+
<AttachmentsSection />
|
|
932
|
+
<Divider />
|
|
933
|
+
<ActivitySection comment={comment} onCommentChange={setComment} />
|
|
934
|
+
{/* Narrow screens: the details follow the main column instead
|
|
935
|
+
of squeezing beside it. */}
|
|
936
|
+
{isNarrow && (
|
|
937
|
+
<>
|
|
938
|
+
<Divider />
|
|
939
|
+
<Heading level={2}>Task details</Heading>
|
|
940
|
+
<DetailsPanel fields={fields} />
|
|
941
|
+
</>
|
|
942
|
+
)}
|
|
943
|
+
</VStack>
|
|
944
|
+
</LayoutContent>
|
|
945
|
+
}
|
|
946
|
+
end={
|
|
947
|
+
!isNarrow && isDetailsOpen ? (
|
|
948
|
+
<LayoutPanel width={340} padding={6} role="complementary" hasDivider>
|
|
949
|
+
<DetailsPanel fields={fields} />
|
|
950
|
+
</LayoutPanel>
|
|
951
|
+
) : undefined
|
|
952
|
+
}
|
|
953
|
+
/>
|
|
940
954
|
);
|
|
941
955
|
}
|
|
@@ -28,7 +28,7 @@ export const gothicPaletteRefs = {
|
|
|
28
28
|
dark: {20: '#174a40', 30: '#1f5e52', 60: '#86a499', 70: '#7cc5b3', 75: '#a3c2b6'},
|
|
29
29
|
},
|
|
30
30
|
red: {
|
|
31
|
-
dark: {5: '#220806', 20: '#4a2520', 30: '#5e3a35', 60: '#a48581', 75: '#c6a6a2'},
|
|
31
|
+
dark: {5: '#220806', 20: '#4a2520', 30: '#5e3a35', 45: '#825e59', 60: '#a48581', 75: '#c6a6a2'},
|
|
32
32
|
},
|
|
33
33
|
cyan: {
|
|
34
34
|
dark: {20: '#204858', 30: '#2a5e75', 60: '#86a4b1', 75: '#a3c2cf'},
|
|
@@ -160,6 +160,11 @@ export const gothicTheme = defineTheme({
|
|
|
160
160
|
'--color-success': green.dark[75],
|
|
161
161
|
'--color-success-muted': green.dark[75],
|
|
162
162
|
'--color-error': red.dark[75],
|
|
163
|
+
// The error toast's surface, the same in both modes as every gothic
|
|
164
|
+
// surface. Core's dark-mode red is too bright for gothic's pale text.
|
|
165
|
+
// This step keeps that text at 4.97:1, and the card at 3.28:1 against
|
|
166
|
+
// the page.
|
|
167
|
+
'--color-background-error-inverted': red.dark[45],
|
|
163
168
|
'--color-error-muted': red.dark[75],
|
|
164
169
|
'--color-warning': yellow.dark[75],
|
|
165
170
|
'--color-warning-muted': yellow.dark[75],
|
|
@@ -165,7 +165,7 @@ export const neutralTheme = defineTheme({
|
|
|
165
165
|
'--color-border-emphasized': [neutral.light[85], neutral.dark[35]],
|
|
166
166
|
|
|
167
167
|
// Effects
|
|
168
|
-
'--color-skeleton': [neutral.light[
|
|
168
|
+
'--color-skeleton': [neutral.light[85], neutral.dark[35]],
|
|
169
169
|
'--color-shadow': [
|
|
170
170
|
withAlpha(neutral.light[0], '1A'),
|
|
171
171
|
withAlpha(neutral.dark[0], '4D'),
|
|
@@ -15,7 +15,7 @@ export const y2kPaletteRefs = {
|
|
|
15
15
|
dark: {20: '#2a3600', 65: '#95b041', 75: '#b5d263', 80: '#c5e17a'},
|
|
16
16
|
},
|
|
17
17
|
neutral: {
|
|
18
|
-
light: {15: '#2d241b', 20: '#382e24', 30: '#4f453b', 35: '#5a5146', 40: '#675d52', 80: '#d1c5b8', 85: '#dfd5c9', 90: '#f1e6db', 95: '#fff6ed', 100: '#ffffff'},
|
|
18
|
+
light: {15: '#2d241b', 20: '#382e24', 30: '#4f453b', 35: '#5a5146', 40: '#675d52', 75: '#c4b8a9', 80: '#d1c5b8', 85: '#dfd5c9', 90: '#f1e6db', 95: '#fff6ed', 100: '#ffffff'},
|
|
19
19
|
dark: {0: '#000000', 5: '#0e0f1a', 10: '#16182b', 20: '#1f2238', 25: '#2c3048', 35: '#4a4f6b', 45: '#636889', 70: '#a6acd6', 85: '#d0d4eb', 90: '#dfe2f3', 95: '#edeffc'},
|
|
20
20
|
},
|
|
21
21
|
orange: {
|
|
@@ -228,7 +228,7 @@ export const y2kTheme = defineTheme({
|
|
|
228
228
|
'--color-border-emphasized': [neutral.light[20], neutral.dark[45]],
|
|
229
229
|
|
|
230
230
|
// Effects
|
|
231
|
-
'--color-skeleton': [neutral.light[
|
|
231
|
+
'--color-skeleton': [neutral.light[75], neutral.dark[25]],
|
|
232
232
|
'--color-shadow': [
|
|
233
233
|
withAlpha(neutral.light[15], '1A'),
|
|
234
234
|
withAlpha(neutral.dark[0], '4D'),
|
|
@@ -75,8 +75,8 @@ declare const eventSchema: z.ZodObject<{
|
|
|
75
75
|
resultCount: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
76
76
|
emptyResult: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
77
77
|
resultKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
78
|
-
command: "command";
|
|
79
78
|
none: "none";
|
|
79
|
+
command: "command";
|
|
80
80
|
component: "component";
|
|
81
81
|
template: "template";
|
|
82
82
|
doc: "doc";
|
|
@@ -507,14 +507,6 @@ export const SchemaDocKindSchema: z.ZodObject<{
|
|
|
507
507
|
}>>;
|
|
508
508
|
stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
|
|
509
509
|
}, z.core.$loose>;
|
|
510
|
-
/**
|
|
511
|
-
* @typedef {import('../_shared/contract.js').Expect<
|
|
512
|
-
* import('../_shared/contract.js').MutuallyAssignable<
|
|
513
|
-
* import('../_shared/contract.js').NamedFields<z.infer<typeof SchemaDocKindSchema>>,
|
|
514
|
-
* import('../_shared/contract.js').NamedFields<SchemaDoc & {type: 'schema'}>
|
|
515
|
-
* >
|
|
516
|
-
* >} _SchemaDocDriftLock
|
|
517
|
-
*/
|
|
518
510
|
/** New stamped command doc (`type: 'command'`). */
|
|
519
511
|
export const CommandDocKindSchema: z.ZodObject<{
|
|
520
512
|
type: z.ZodLiteral<"command">;
|
|
@@ -530,6 +522,14 @@ export const CommandDocKindSchema: z.ZodObject<{
|
|
|
530
522
|
description: z.ZodOptional<z.ZodString>;
|
|
531
523
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
532
524
|
variadic: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
+
requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("../integration/type.js").BaseStep, any, z.core.$ZodTypeInternals<import("../integration/type.js").BaseStep, any>>>>>;
|
|
526
|
+
names: z.ZodOptional<z.ZodEnum<{
|
|
527
|
+
topic: "topic";
|
|
528
|
+
component: "component";
|
|
529
|
+
template: "template";
|
|
530
|
+
theme: "theme";
|
|
531
|
+
hook: "hook";
|
|
532
|
+
}>>;
|
|
533
533
|
}, z.core.$loose>>>;
|
|
534
534
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
535
535
|
flag: z.ZodString;
|
|
@@ -538,6 +538,14 @@ export const CommandDocKindSchema: z.ZodObject<{
|
|
|
538
538
|
choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
539
539
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
540
540
|
cliOnly: z.ZodOptional<z.ZodBoolean>;
|
|
541
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodType<import("../integration/type.js").BaseStep, any, z.core.$ZodTypeInternals<import("../integration/type.js").BaseStep, any>>>>;
|
|
542
|
+
names: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
topic: "topic";
|
|
544
|
+
component: "component";
|
|
545
|
+
template: "template";
|
|
546
|
+
theme: "theme";
|
|
547
|
+
hook: "hook";
|
|
548
|
+
}>>;
|
|
541
549
|
}, z.core.$loose>>>;
|
|
542
550
|
subcommands: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
543
551
|
examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -555,6 +563,11 @@ export const CommandDocKindSchema: z.ZodObject<{
|
|
|
555
563
|
refuse: "refuse";
|
|
556
564
|
}>>;
|
|
557
565
|
replaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
566
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodType<import("../integration/type.js").BaseStep, any, z.core.$ZodTypeInternals<import("../integration/type.js").BaseStep, any>>>>;
|
|
567
|
+
pointers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
568
|
+
commands: z.ZodArray<z.ZodString>;
|
|
569
|
+
text: z.ZodString;
|
|
570
|
+
}, z.core.$strict>>>;
|
|
558
571
|
related: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
559
572
|
notes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
560
573
|
type: z.ZodLiteral<"prose">;
|
|
@@ -638,6 +651,7 @@ export const NamespaceDocKindSchema: z.ZodObject<{
|
|
|
638
651
|
title: z.ZodString;
|
|
639
652
|
summary: z.ZodString;
|
|
640
653
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
654
|
+
describes: z.ZodOptional<z.ZodLiteral<"cli">>;
|
|
641
655
|
slots: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
642
656
|
title: z.ZodString;
|
|
643
657
|
accepts: z.ZodObject<{
|
|
@@ -593,6 +593,17 @@ export const SchemaDocKindSchema = z
|
|
|
593
593
|
* >} _SchemaDocDriftLock
|
|
594
594
|
*/
|
|
595
595
|
|
|
596
|
+
/**
|
|
597
|
+
* A platform step a base serves, named `<capability>.<step>`. The schema
|
|
598
|
+
* checks the shape; the closed list lives with the CLI's requirement check,
|
|
599
|
+
* and a test holds every command declaration to it.
|
|
600
|
+
* @type {z.ZodType<import('../integration/type.js').BaseStep>}
|
|
601
|
+
*/
|
|
602
|
+
const BaseStepSchema = z.custom(
|
|
603
|
+
value => typeof value === 'string' && /^[a-z]+\.[a-zA-Z]+$/u.test(value),
|
|
604
|
+
{message: 'a step is named `<capability>.<step>`, such as `themes.compile`'},
|
|
605
|
+
);
|
|
606
|
+
|
|
596
607
|
/** New stamped command doc (`type: 'command'`). */
|
|
597
608
|
export const CommandDocKindSchema = z
|
|
598
609
|
.object({
|
|
@@ -613,6 +624,10 @@ export const CommandDocKindSchema = z
|
|
|
613
624
|
description: z.string().optional(),
|
|
614
625
|
required: z.boolean().optional(),
|
|
615
626
|
variadic: z.boolean().optional(),
|
|
627
|
+
requires: z.record(z.string(), z.array(BaseStepSchema)).optional(),
|
|
628
|
+
names: z
|
|
629
|
+
.enum(['component', 'hook', 'topic', 'template', 'theme'])
|
|
630
|
+
.optional(),
|
|
616
631
|
})
|
|
617
632
|
.passthrough(),
|
|
618
633
|
)
|
|
@@ -629,6 +644,10 @@ export const CommandDocKindSchema = z
|
|
|
629
644
|
.union([z.string(), z.boolean(), z.array(z.string())])
|
|
630
645
|
.optional(),
|
|
631
646
|
cliOnly: z.boolean().optional(),
|
|
647
|
+
requires: z.array(BaseStepSchema).optional(),
|
|
648
|
+
names: z
|
|
649
|
+
.enum(['component', 'hook', 'topic', 'template', 'theme'])
|
|
650
|
+
.optional(),
|
|
632
651
|
})
|
|
633
652
|
.passthrough(),
|
|
634
653
|
)
|
|
@@ -650,6 +669,17 @@ export const CommandDocKindSchema = z
|
|
|
650
669
|
.optional(),
|
|
651
670
|
outsideProject: z.enum(['same', 'refuse', 'own']).optional(),
|
|
652
671
|
replaces: z.array(z.string()).optional(),
|
|
672
|
+
requires: z.array(BaseStepSchema).optional(),
|
|
673
|
+
pointers: z
|
|
674
|
+
.array(
|
|
675
|
+
z
|
|
676
|
+
.object({
|
|
677
|
+
commands: z.array(z.string().min(1)).min(1),
|
|
678
|
+
text: z.string().min(1),
|
|
679
|
+
})
|
|
680
|
+
.strict(),
|
|
681
|
+
)
|
|
682
|
+
.optional(),
|
|
653
683
|
related: z.array(z.string()).optional(),
|
|
654
684
|
notes: z.array(ReferenceContentBlockSchema).optional(),
|
|
655
685
|
})
|
|
@@ -716,6 +746,7 @@ export const NamespaceDocKindSchema = z
|
|
|
716
746
|
title: nonEmptyString,
|
|
717
747
|
summary: nonEmptyString,
|
|
718
748
|
keywords: z.array(nonEmptyString).optional(),
|
|
749
|
+
describes: z.literal('cli').optional(),
|
|
719
750
|
slots: z
|
|
720
751
|
.record(nonEmptyString, NamespaceSlotSchema)
|
|
721
752
|
.refine(slots => Object.keys(slots).length > 0, {
|