@astryxdesign/cli 0.7.16 → 0.7.17-canary.g0404a74
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 +76 -86
- package/api/build/_adapter.d.mts +17 -0
- package/api/build/_adapter.mjs +53 -34
- package/api/build/blocks/blocks.d.mts +7 -5
- package/api/build/blocks/blocks.mjs +113 -26
- package/api/build/blocks/blocks.weights.json +1 -1
- package/api/build/build.doc.mjs +4 -3
- package/api/build/build.type.d.mts +2 -2
- package/api/build/build.type.mjs +3 -3
- package/api/build/kit/kind.d.mts +2 -1
- package/api/build/kit/kind.mjs +199 -10
- package/api/build/kit/kit.mjs +6 -4
- package/api/build/kit/rank.d.mts +6 -4
- package/api/build/kit/rank.mjs +132 -28
- package/api/build/kit/signals.d.mts +7 -1
- package/api/build/kit/signals.mjs +21 -10
- package/api/build/kit/start.d.mts +5 -4
- package/api/build/kit/start.mjs +14 -9
- package/api/build/kit/weights.d.mts +39 -3
- package/api/build/kit/weights.json +1 -1
- package/api/build/kit/weights.mjs +351 -46
- package/api/build/kit/word-model.d.mts +23 -0
- package/api/build/kit/word-model.mjs +46 -0
- package/api/build/kit/words.d.mts +86 -0
- package/api/build/kit/words.mjs +241 -1
- package/api/build/tree.mjs +1 -1
- package/api/component/__fixtures__/resolutions/modules.txt +5 -6
- package/api/component/_adapter.d.mts +26 -2
- package/api/component/_adapter.mjs +135 -8
- package/api/component/component.mjs +14 -1
- package/api/component/list/list.d.mts +1 -1
- package/api/component/list/list.mjs +48 -6
- package/api/discover/_adapter.d.mts +11 -1
- package/api/discover/_adapter.mjs +95 -1
- package/api/discover/detail/item/item.mjs +5 -0
- package/api/discover/discover.mjs +12 -3
- package/api/discover/discover.type.d.mts +16 -3
- package/api/discover/discover.type.mjs +13 -3
- package/api/discover/search/search.mjs +3 -2
- package/api/docs/_adapter.d.mts +57 -2
- package/api/docs/_adapter.mjs +266 -33
- package/api/docs/_entry-names-lazily.d.mts +22 -0
- package/api/docs/_entry-names-lazily.mjs +25 -0
- package/api/docs/_entry-names.d.mts +23 -0
- package/api/docs/_entry-names.mjs +105 -0
- package/api/docs/docs.d.mts +3 -0
- package/api/docs/docs.doc.mjs +7 -1
- package/api/docs/docs.mjs +12 -0
- package/api/docs/docs.type.d.mts +5 -0
- package/api/docs/docs.type.mjs +2 -0
- package/api/docs/node/node.mjs +1 -1
- package/api/doctor/_adapter.d.mts +54 -5
- package/api/doctor/_adapter.mjs +162 -11
- package/api/doctor/built-checks.mjs +40 -14
- package/api/doctor/doctor.d.mts +15 -3
- package/api/doctor/doctor.doc.mjs +1 -1
- package/api/doctor/doctor.mjs +31 -7
- package/api/doctor/theme-checks.d.mts +35 -3
- package/api/doctor/theme-checks.mjs +377 -29
- package/api/hook/_adapter.d.mts +10 -4
- package/api/hook/_adapter.mjs +41 -5
- package/api/hook/detail/detail.mjs +5 -2
- package/api/hook/detail/params/params.mjs +10 -3
- package/api/icon/_records.mjs +2 -1
- package/api/index.d.mts +2 -0
- package/api/index.mjs +2 -0
- package/api/integration/_adapter.d.mts +44 -0
- package/api/integration/_adapter.mjs +77 -1
- package/api/integration/add-helpers.mjs +10 -0
- package/api/integration/authoring-checks.mjs +11 -8
- package/api/integration/example-scope.d.mts +14 -0
- package/api/integration/example-scope.mjs +44 -0
- package/api/integration/example-scope.type.d.mts +29 -0
- package/api/integration/example-scope.type.mjs +25 -0
- package/api/integration/integrationExampleScope.doc.d.mts +11 -0
- package/api/integration/integrationExampleScope.doc.mjs +59 -0
- package/api/integration/pack-check.mjs +16 -1
- package/api/integration/validate-integration.d.mts +18 -6
- package/api/integration/validate-integration.mjs +129 -15
- package/api/integration/validate-integration.type.d.mts +22 -0
- package/api/integration/validate-integration.type.mjs +2 -1
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/_adapter.mjs +591 -195
- package/api/render/render.doc.mjs +11 -3
- package/api/render/render.type.d.mts +53 -1
- package/api/render/render.type.mjs +32 -2
- package/api/search/ORDERING.md +2 -2
- package/api/search/_adapter.d.mts +9 -0
- package/api/search/_adapter.mjs +85 -0
- package/api/search/_candidate-score.d.mts +9 -4
- package/api/search/_candidate-score.mjs +133 -46
- package/api/search/_fit-order.mjs +3 -3
- package/api/search/_gather-components.d.mts +3 -2
- package/api/search/_gather-components.mjs +12 -3
- package/api/search/_lexical.d.mts +14 -0
- package/api/search/_lexical.mjs +93 -11
- package/api/search/_result.d.mts +11 -9
- package/api/search/_result.mjs +4 -4
- package/api/search/_score.d.mts +6 -1
- package/api/search/_score.mjs +15 -3
- package/api/search/search-index.mjs +7 -1
- package/api/search/search.d.mts +1 -1
- package/api/template/_adapter.d.mts +16 -0
- package/api/template/_adapter.mjs +39 -2
- package/api/template/cdn/cdn.mjs +37 -8
- package/api/template/copy/copy.d.mts +6 -3
- package/api/template/copy/copy.mjs +40 -8
- package/api/template/template.doc.mjs +3 -3
- package/api/template/template.mjs +63 -11
- package/api/template/template.type.d.mts +1 -0
- package/api/template/template.type.mjs +1 -0
- package/api/theme/_adapter.d.mts +12 -1
- package/api/theme/_adapter.mjs +132 -13
- package/api/theme/_app-provider.d.mts +31 -0
- package/api/theme/_app-provider.mjs +135 -0
- package/api/theme/add/add.mjs +3 -1
- package/api/theme/build/build.d.mts +142 -1
- package/api/theme/build/build.mjs +692 -284
- package/api/theme/build/core-interception.d.mts +10 -0
- package/api/theme/build/core-interception.mjs +10 -0
- package/api/theme/build/font-warning.d.mts +80 -5
- package/api/theme/build/font-warning.mjs +323 -55
- package/api/theme/build/icon-imports.mjs +51 -9
- package/api/theme/build/null-values.d.mts +28 -0
- package/api/theme/build/null-values.mjs +191 -0
- package/api/theme/list/list.mjs +17 -1
- package/api/theme/remove/remove.d.mts +2 -1
- package/api/theme/remove/remove.mjs +7 -3
- package/api/theme/theme.type.d.mts +78 -1
- package/api/theme/theme.type.mjs +38 -2
- package/api/theme/themeAdd.doc.mjs +1 -1
- package/api/theme/themeListAvailable.doc.mjs +1 -1
- package/api/theme/themeRemove.doc.mjs +8 -5
- package/api/theme-edit/_adapter.d.mts +116 -4
- package/api/theme-edit/_adapter.mjs +1058 -93
- package/api/theme-edit/_catalog.d.mts +46 -2
- package/api/theme-edit/_catalog.mjs +115 -14
- package/api/theme-edit/_check.d.mts +133 -24
- package/api/theme-edit/_check.mjs +3392 -531
- package/api/theme-edit/_color.d.mts +26 -0
- package/api/theme-edit/_color.mjs +92 -2
- package/api/theme-edit/_compiler.d.mts +5 -1
- package/api/theme-edit/_compiler.mjs +141 -17
- package/api/theme-edit/_context.d.mts +74 -6
- package/api/theme-edit/_context.mjs +468 -76
- package/api/theme-edit/_css.d.mts +21 -0
- package/api/theme-edit/_css.mjs +87 -14
- package/api/theme-edit/_edit.d.mts +74 -7
- package/api/theme-edit/_edit.mjs +4426 -319
- package/api/theme-edit/_how-commands.d.mts +76 -1
- package/api/theme-edit/_how-commands.mjs +793 -9
- package/api/theme-edit/_how-question.d.mts +97 -6
- package/api/theme-edit/_how-question.mjs +9184 -747
- package/api/theme-edit/_how.d.mts +5 -2
- package/api/theme-edit/_how.mjs +255 -46
- package/api/theme-edit/_importers.d.mts +38 -0
- package/api/theme-edit/_importers.mjs +188 -0
- package/api/theme-edit/_marks.d.mts +31 -5
- package/api/theme-edit/_marks.mjs +57 -5
- package/api/theme-edit/_name-rule.d.mts +11 -0
- package/api/theme-edit/_name-rule.mjs +12 -0
- package/api/theme-edit/_normal.d.mts +322 -0
- package/api/theme-edit/_normal.mjs +1630 -0
- package/api/theme-edit/_palette.d.mts +49 -0
- package/api/theme-edit/_palette.mjs +180 -38
- package/api/theme-edit/_part-words.d.mts +39 -0
- package/api/theme-edit/_part-words.mjs +152 -0
- package/api/theme-edit/_parts.d.mts +55 -3
- package/api/theme-edit/_parts.mjs +421 -36
- package/api/theme-edit/_preview-app.d.mts +7 -13
- package/api/theme-edit/_preview-app.mjs +1108 -599
- package/api/theme-edit/_preview.d.mts +156 -19
- package/api/theme-edit/_preview.mjs +809 -180
- package/api/theme-edit/_project.d.mts +61 -1
- package/api/theme-edit/_project.mjs +177 -6
- package/api/theme-edit/_settings.d.mts +619 -48
- package/api/theme-edit/_settings.mjs +4910 -617
- package/api/theme-edit/_tables.d.mts +41 -0
- package/api/theme-edit/_tables.mjs +261 -41
- package/api/theme-edit/_vet.d.mts +31 -0
- package/api/theme-edit/_vet.mjs +114 -8
- package/api/theme-edit/theme-edit.type.d.mts +34 -2
- package/api/theme-edit/theme-edit.type.mjs +18 -3
- package/api/theme-edit/themeEditHow.doc.mjs +1 -1
- package/api/theme-edit/themeEditNew.doc.d.mts +0 -1
- package/api/theme-edit/themeEditNew.doc.mjs +7 -4
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +3 -3
- package/api/theme-edit/themeEditPreviewRemove.doc.mjs +2 -2
- package/api/upgrade/run/run.mjs +4 -3
- package/api/upgrade/upgrade.mjs +16 -1
- package/assets/codemods/integration-discovery.mjs +2 -1
- package/assets/codemods/integration-runner.mjs +1 -1
- package/assets/codemods/jscodeshift.d.ts +1 -1
- package/assets/codemods/run-codemod.mjs +151 -18
- package/assets/codemods/runner.mjs +1 -4
- package/assets/codemods/transforms/next/index.mjs +11 -1
- package/assets/codemods/transforms/next/migrate-item-swipe-actions-to-swipe.mjs +394 -0
- package/assets/component-list.generated.json +1 -0
- package/assets/docs/author-a-theme.doc.mjs +2 -0
- package/assets/docs/theme.doc.dense.mjs +76 -7
- package/assets/docs/theme.doc.mjs +66 -2
- package/assets/docs/theme.doc.zh.mjs +51 -1
- package/assets/docs/tree/check-your-docs.doc.mjs +1 -1
- package/assets/docs/tree/checks.doc.mjs +2 -2
- package/assets/docs/tree/cli-command.doc.mjs +2 -3
- package/assets/docs/tree/document-the-theme.doc.mjs +1 -1
- package/assets/docs/tree/font-setup.doc.mjs +1 -1
- package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
- package/assets/docs/tree/render-pages.doc.mjs +46 -5
- package/assets/docs/tree/share-a-page.doc.mjs +157 -0
- package/assets/docs/tree/single-component.doc.mjs +4 -0
- package/assets/docs/tree/template-doc-overview.doc.mjs +1 -1
- package/assets/docs/tree/test-in-an-app.doc.mjs +1 -1
- package/assets/docs/tree/write-good-templates.doc.mjs +1 -1
- package/assets/docs/use-a-theme.doc.mjs +2 -2
- package/assets/docs-routes.generated.json +1 -0
- package/assets/docs.generated.json +2 -2
- package/assets/search-catalog.generated.json +2 -0
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/ChatComposerInput/useChatDictationHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useChatDictationHookUsage.tsx +38 -0
- package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.tsx +43 -0
- package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.tsx +2 -2
- package/assets/templates/blocks/components/SyntaxTheme/useSyntaxThemeHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/SyntaxTheme/useSyntaxThemeHookUsage.tsx +36 -0
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat/template.doc.mjs +5 -4
- package/assets/templates/pages/ai-chat-landing/page.tsx +31 -4
- package/assets/templates/pages/ai-chat-landing/template.doc.mjs +5 -1
- package/assets/templates/pages/blank/template.doc.mjs +1 -1
- package/assets/templates/pages/canvas-editor/template.doc.mjs +4 -2
- package/assets/templates/pages/centered-hero/template.doc.mjs +9 -1
- package/assets/templates/pages/classic-gallery/template.doc.mjs +1 -1
- package/assets/templates/pages/contact-form/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard/template.doc.mjs +3 -2
- package/assets/templates/pages/dashboard-alert-rail/page.tsx +1 -1
- package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +1 -1
- package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-comparison/page.tsx +2 -2
- package/assets/templates/pages/dashboard-composition/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-progress/page.tsx +1 -1
- package/assets/templates/pages/dashboard-progress/template.doc.mjs +6 -3
- package/assets/templates/pages/detail-page/page.tsx +60 -7
- package/assets/templates/pages/detail-page/template.doc.mjs +10 -3
- package/assets/templates/pages/documentation/template.doc.mjs +4 -1
- package/assets/templates/pages/documentation-design/template.doc.mjs +7 -1
- package/assets/templates/pages/documentation-technical/page.tsx +13 -13
- package/assets/templates/pages/documentation-technical/template.doc.mjs +7 -1
- package/assets/templates/pages/editor/page.tsx +14 -2
- package/assets/templates/pages/editor/template.doc.mjs +2 -8
- package/assets/templates/pages/file-explorer/page.tsx +9 -0
- package/assets/templates/pages/file-explorer/template.doc.mjs +1 -1
- package/assets/templates/pages/form-two-column/template.doc.mjs +4 -3
- package/assets/templates/pages/form-wizard/template.doc.mjs +5 -3
- package/assets/templates/pages/form-wizard-vertical/page.tsx +23 -3
- package/assets/templates/pages/gallery-hero/template.doc.mjs +4 -2
- package/assets/templates/pages/ide/page.tsx +33 -2
- package/assets/templates/pages/kanban-board/page.tsx +12 -2
- package/assets/templates/pages/kanban-board/template.doc.mjs +1 -9
- package/assets/templates/pages/library/template.doc.mjs +4 -1
- package/assets/templates/pages/login/template.doc.mjs +2 -1
- package/assets/templates/pages/login-card/page.tsx +16 -0
- package/assets/templates/pages/login-card/template.doc.mjs +2 -1
- package/assets/templates/pages/login-split/page.tsx +19 -6
- package/assets/templates/pages/login-split/template.doc.mjs +2 -1
- package/assets/templates/pages/login-sso/template.doc.mjs +4 -2
- package/assets/templates/pages/messaging-shell/template.doc.mjs +6 -0
- package/assets/templates/pages/mixed-gallery/template.doc.mjs +2 -1
- package/assets/templates/pages/payment-form/page.tsx +30 -4
- package/assets/templates/pages/product-detail/page.tsx +26 -2
- package/assets/templates/pages/product-detail/template.doc.mjs +4 -2
- package/assets/templates/pages/product-gallery/template.doc.mjs +2 -1
- package/assets/templates/pages/settings-dialog/page.tsx +162 -12
- package/assets/templates/pages/settings-dialog/template.doc.mjs +2 -1
- package/assets/templates/pages/settings-sidebar/template.doc.mjs +2 -1
- package/assets/templates/pages/shell-nav/template.doc.mjs +4 -2
- package/assets/templates/pages/shell-side-nav/page.tsx +11 -3
- package/assets/templates/pages/shell-side-nav/template.doc.mjs +5 -3
- package/assets/templates/pages/shell-top-nav/template.doc.mjs +2 -1
- package/assets/templates/pages/side-gallery/template.doc.mjs +9 -1
- package/assets/templates/pages/table-filter/page.tsx +9 -0
- package/assets/templates/pages/table-filter/template.doc.mjs +9 -8
- package/assets/templates/pages/table-grouped/page.tsx +161 -133
- package/assets/templates/pages/table-grouped/template.doc.mjs +4 -2
- package/assets/templates/pages/table-page/page.tsx +14 -1
- package/assets/templates/pages/table-page/template.doc.mjs +5 -4
- package/assets/templates/pages/table-tree/template.doc.mjs +6 -3
- package/assets/templates/pages/theme-showcase/template.doc.mjs +2 -9
- package/assets/templates/pages/work-item-detail/page.tsx +47 -7
- package/assets/templates/pages/work-item-detail/template.doc.mjs +1 -0
- package/assets/theme.template.ts +9 -2
- package/authoring/debug/parse.d.mts +3 -3
- package/authoring/doctypes/_schema.d.mts +9 -9
- package/authoring/doctypes/command/command.doc.mjs +1 -1
- package/authoring/doctypes/component/categories.d.mts +37 -0
- package/authoring/doctypes/component/categories.mjs +54 -0
- package/authoring/doctypes/template/template.doc.mjs +1 -1
- package/authoring/doctypes/template/type.ts +9 -0
- package/authoring/example/example.doc.d.mts +12 -0
- package/authoring/example/example.doc.mjs +69 -0
- package/authoring/example/preview.d.mts +92 -0
- package/authoring/example/preview.mjs +994 -0
- package/authoring/example/type.ts +102 -0
- package/authoring/index.d.mts +1 -0
- package/authoring/index.d.ts +12 -0
- package/authoring/index.mjs +3 -1
- package/authoring/integration/integration.doc.mjs +8 -0
- package/authoring/integration/schema.d.mts +24 -1
- package/authoring/integration/schema.mjs +126 -4
- package/authoring/integration/type.ts +14 -0
- package/clients/cli/bin/astryx.mjs +6 -9
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/component.doc.mjs +1 -1
- package/clients/cli/commands/component.mjs +22 -3
- package/clients/cli/commands/discover.mjs +70 -3
- package/clients/cli/commands/docs.doc.mjs +7 -1
- package/clients/cli/commands/docs.mjs +44 -6
- package/clients/cli/commands/doctor.mjs +84 -16
- package/clients/cli/commands/experimental/render.mjs +42 -1
- package/clients/cli/commands/experimental/theme.mjs +1032 -134
- package/clients/cli/commands/experimental-render.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +3 -3
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +87 -1
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +10 -3
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-preview.doc.mjs +2 -1
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +4 -4
- package/clients/cli/commands/experimental-theme.doc.mjs +5 -1
- package/clients/cli/commands/search.doc.mjs +2 -1
- package/clients/cli/commands/search.mjs +6 -1
- package/clients/cli/commands/template.doc.mjs +1 -1
- package/clients/cli/commands/template.mjs +15 -2
- package/clients/cli/commands/theme-add.doc.mjs +1 -1
- package/clients/cli/commands/theme-build.doc.mjs +5 -1
- package/clients/cli/commands/theme-list.doc.mjs +1 -1
- package/clients/cli/commands/theme-remove.doc.mjs +13 -5
- package/clients/cli/commands/theme.doc.mjs +1 -1
- package/clients/cli/commands/theme.mjs +849 -441
- package/clients/cli/commands/upgrade.mjs +46 -8
- package/clients/cli/index.mjs +9 -19
- package/clients/cli/lib/cli-error.mjs +2 -1
- package/clients/cli/lib/component-format.mjs +205 -98
- package/clients/cli/lib/hook-format.mjs +9 -19
- package/clients/cli/lib/json-shim.mjs +265 -29
- package/clients/cli/lib/manifest.mjs +3 -2
- package/clients/cli/lib/stray-option.mjs +478 -0
- package/clients/cli/lib/unknown-command.mjs +353 -0
- package/clients/cli/manifest.generated.json +1 -1
- package/foundation/agent-docs/agent-docs.mjs +1 -1
- package/foundation/config/project.d.mts +8 -0
- package/foundation/config/project.mjs +26 -29
- package/foundation/config/theme-state.d.mts +31 -2
- package/foundation/config/theme-state.mjs +140 -8
- package/foundation/discovery/authoring-self-docs.mjs +1 -0
- package/foundation/discovery/cli-self-doc-names.d.mts +13 -0
- package/foundation/discovery/cli-self-doc-names.mjs +51 -0
- package/foundation/discovery/cli-self-docs.d.mts +0 -2
- package/foundation/discovery/cli-self-docs.mjs +2 -15
- package/foundation/discovery/component-discovery.d.mts +11 -0
- package/foundation/discovery/component-discovery.mjs +59 -10
- package/foundation/discovery/component-replacement.mjs +130 -1
- package/foundation/discovery/copied-passages.mjs +2 -1
- package/foundation/discovery/core-component-docs.d.mts +29 -0
- package/foundation/discovery/core-component-docs.mjs +83 -0
- package/foundation/discovery/core-theme-facts.d.mts +70 -0
- package/foundation/discovery/core-theme-facts.mjs +384 -0
- package/foundation/discovery/doc-types.mjs +4 -3
- package/foundation/discovery/docs-discovery.d.mts +66 -9
- package/foundation/discovery/docs-discovery.mjs +126 -60
- package/foundation/discovery/entry-name-files.d.mts +106 -0
- package/foundation/discovery/entry-name-files.mjs +354 -0
- package/foundation/discovery/hook-discovery.d.mts +18 -2
- package/foundation/discovery/hook-discovery.mjs +93 -42
- package/foundation/discovery/icon-definition-discovery.mjs +2 -1
- package/foundation/discovery/icon-set-checks.mjs +2 -1
- package/foundation/discovery/icon-set-discovery.mjs +2 -1
- package/foundation/discovery/integration-component-views.d.mts +15 -0
- package/foundation/discovery/integration-component-views.mjs +91 -0
- package/foundation/discovery/integration-doc-files.mjs +2 -1
- package/foundation/discovery/module-exports.d.mts +26 -1
- package/foundation/discovery/module-exports.mjs +114 -40
- package/foundation/discovery/name-roots.d.mts +38 -0
- package/foundation/discovery/name-roots.mjs +108 -0
- package/foundation/discovery/next-routes.d.mts +48 -0
- package/foundation/discovery/next-routes.mjs +181 -0
- package/foundation/discovery/package-exports.d.mts +10 -0
- package/foundation/discovery/package-exports.mjs +56 -3
- package/foundation/discovery/prop-drift.mjs +9 -9
- package/foundation/discovery/runner-allowlist.d.mts +1 -0
- package/foundation/discovery/runner-allowlist.mjs +2 -0
- package/foundation/discovery/stored-component-list.d.mts +43 -0
- package/foundation/discovery/stored-component-list.mjs +90 -0
- package/foundation/discovery/stored-search-catalog.d.mts +115 -0
- package/foundation/discovery/stored-search-catalog.mjs +297 -0
- package/foundation/discovery/stored-self-audit.d.mts +26 -10
- package/foundation/discovery/stored-self-audit.mjs +40 -18
- package/foundation/discovery/template-adapter.d.mts +49 -29
- package/foundation/discovery/template-adapter.mjs +89 -99
- package/foundation/discovery/template-destination.d.mts +28 -0
- package/foundation/discovery/template-destination.mjs +104 -0
- package/foundation/discovery/template-icons.mjs +2 -1
- package/foundation/discovery/template-ids.d.mts +69 -0
- package/foundation/discovery/template-ids.mjs +199 -0
- package/foundation/discovery/theme-discovery.d.mts +12 -0
- package/foundation/discovery/theme-discovery.mjs +34 -4
- package/foundation/discovery/theme-imports.d.mts +24 -0
- package/foundation/discovery/theme-imports.mjs +61 -4
- package/foundation/discovery/theming-targets.d.mts +13 -5
- package/foundation/discovery/theming-targets.mjs +41 -47
- package/foundation/doc-compiler/generated-levels.d.mts +43 -0
- package/foundation/doc-compiler/generated-levels.mjs +72 -0
- package/foundation/doc-compiler/import.mjs +7 -1
- package/foundation/doc-compiler/inputs.mjs +3 -2
- package/foundation/doc-compiler/literal-doc.d.mts +12 -0
- package/foundation/doc-compiler/literal-doc.mjs +322 -0
- package/foundation/doc-compiler/parse-readable.mjs +4 -1
- package/foundation/doc-compiler/stored-docs.d.mts +29 -0
- package/foundation/doc-compiler/stored-docs.mjs +63 -1
- package/foundation/doc-compiler/tree.d.mts +4 -84
- package/foundation/doc-compiler/tree.mjs +4 -62
- package/foundation/env/semver.mjs +3 -1
- package/foundation/fonts/font-stylesheet.d.mts +46 -0
- package/foundation/fonts/font-stylesheet.mjs +173 -0
- package/foundation/fs/cache-eviction.d.mts +21 -0
- package/foundation/fs/cache-eviction.mjs +73 -0
- package/foundation/fs/exact-codec.d.mts +12 -2
- package/foundation/fs/exact-codec.mjs +23 -6
- package/foundation/fs/file-protection.mjs +16 -5
- package/foundation/fs/gather-cache.d.mts +94 -4
- package/foundation/fs/gather-cache.mjs +671 -106
- package/foundation/fs/glob.d.mts +16 -0
- package/foundation/fs/glob.mjs +105 -0
- package/foundation/fs/jiti-cache.d.mts +19 -1
- package/foundation/fs/jiti-cache.mjs +130 -6
- package/foundation/fs/kept-tree.d.mts +80 -0
- package/foundation/fs/kept-tree.mjs +240 -0
- package/foundation/fs/listing-cache.d.mts +7 -0
- package/foundation/fs/listing-cache.mjs +10 -0
- package/foundation/fs/module-loader.d.mts +24 -2
- package/foundation/fs/module-loader.mjs +94 -21
- package/foundation/fs/path-safety.d.mts +11 -2
- package/foundation/fs/path-safety.mjs +108 -18
- package/foundation/fs/paths.d.mts +18 -0
- package/foundation/fs/paths.mjs +15 -2
- package/foundation/fs/read-record.d.mts +56 -7
- package/foundation/fs/read-record.mjs +280 -56
- package/foundation/fs/regular-file.d.mts +29 -0
- package/foundation/fs/regular-file.mjs +77 -0
- package/foundation/fs/stop-cleanup.d.mts +12 -0
- package/foundation/fs/stop-cleanup.mjs +66 -0
- package/foundation/identity/provider-identity.d.mts +6 -0
- package/foundation/identity/provider-identity.mjs +10 -1
- package/foundation/integrations/contribution-inventory.mjs +4 -3
- package/foundation/integrations/example-code.d.mts +63 -0
- package/foundation/integrations/example-code.mjs +416 -0
- package/foundation/integrations/integrations.d.mts +23 -1
- package/foundation/integrations/integrations.mjs +18 -1
- package/foundation/integrations/pack-state.d.mts +75 -0
- package/foundation/integrations/pack-state.mjs +314 -0
- package/foundation/integrations/public-imports.d.mts +9 -0
- package/foundation/integrations/public-imports.mjs +3 -2
- package/foundation/integrations/shipped-imports.d.mts +122 -0
- package/foundation/integrations/shipped-imports.mjs +497 -0
- package/foundation/integrations/validate-contributions.d.mts +0 -17
- package/foundation/integrations/validate-contributions.mjs +59 -333
- package/foundation/render/assets.mjs +52 -7
- package/foundation/render/charts.d.mts +78 -27
- package/foundation/render/charts.mjs +266 -90
- package/foundation/render/embedded-files.d.mts +6 -0
- package/foundation/render/embedded-files.mjs +25 -5
- package/foundation/render/embedded-imports.d.mts +70 -7
- package/foundation/render/embedded-imports.mjs +132 -41
- package/foundation/render/file-header.d.mts +66 -0
- package/foundation/render/file-header.mjs +118 -0
- package/foundation/render/host-answer.d.mts +18 -0
- package/foundation/render/host-answer.mjs +46 -0
- package/foundation/render/host-exit.d.mts +1 -0
- package/foundation/render/host-exit.mjs +6 -1
- package/foundation/render/html-reader.d.mts +55 -2
- package/foundation/render/html-reader.mjs +145 -26
- package/foundation/render/layers.d.mts +30 -0
- package/foundation/render/layers.mjs +158 -0
- package/foundation/render/markup-edits.d.mts +57 -0
- package/foundation/render/markup-edits.mjs +182 -0
- package/foundation/render/offline.d.mts +32 -0
- package/foundation/render/offline.mjs +56 -0
- package/foundation/render/page-host.mjs +29 -12
- package/foundation/render/page-worker.mjs +354 -21
- package/foundation/render/picture-chrome.d.mts +4 -0
- package/foundation/render/picture-chrome.mjs +192 -0
- package/foundation/render/picture-playwright.d.mts +4 -0
- package/foundation/render/picture-playwright.mjs +46 -0
- package/foundation/render/rebuild.mjs +2 -1
- package/foundation/render/render-page.d.mts +79 -5
- package/foundation/render/render-page.mjs +735 -109
- package/foundation/render/source-block.d.mts +85 -6
- package/foundation/render/source-block.mjs +211 -20
- package/foundation/render/ts-paths.d.mts +69 -6
- package/foundation/render/ts-paths.mjs +326 -40
- package/foundation/response/error-codes.d.mts +3 -1
- package/foundation/response/error-codes.d.ts +1 -0
- package/foundation/response/error-codes.doc.mjs +12 -1
- package/foundation/response/error-codes.mjs +11 -1
- package/foundation/response/response-types.doc.mjs +6 -6
- package/foundation/suggest/name-index.d.mts +148 -0
- package/foundation/suggest/name-index.mjs +317 -0
- package/foundation/suggest/other-command.d.mts +140 -0
- package/foundation/suggest/other-command.mjs +756 -0
- package/foundation/text/compare-text.d.mts +14 -0
- package/foundation/text/compare-text.mjs +68 -0
- package/foundation/text/css-escape.d.mts +18 -0
- package/foundation/text/css-escape.mjs +35 -0
- package/foundation/text/entry-names.d.mts +14 -0
- package/foundation/text/entry-names.mjs +14 -0
- package/foundation/text/string-utils.d.mts +46 -6
- package/foundation/text/string-utils.mjs +118 -20
- package/foundation/text/suggest-order.d.mts +47 -4
- package/foundation/text/suggest-order.mjs +174 -5
- package/foundation/xle/browser.d.mts +2 -2
- package/foundation/xle/expand.mjs +2 -1
- package/host/index.mjs +8 -6
- package/package.json +7 -6
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
63
|
import {Button} from '@astryxdesign/core/Button';
|
|
64
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
64
65
|
import {AspectRatio} from '@astryxdesign/core/AspectRatio';
|
|
65
66
|
import {Card} from '@astryxdesign/core/Card';
|
|
66
67
|
import {Center} from '@astryxdesign/core/Center';
|
|
@@ -71,6 +72,7 @@ import {HStack} from '@astryxdesign/core/HStack';
|
|
|
71
72
|
import {useMediaQuery} from '@astryxdesign/core/hooks';
|
|
72
73
|
import {Icon} from '@astryxdesign/core/Icon';
|
|
73
74
|
import {IconButton} from '@astryxdesign/core/IconButton';
|
|
75
|
+
import {rtlStyles} from '@astryxdesign/core/utils';
|
|
74
76
|
import {Kbd} from '@astryxdesign/core/Kbd';
|
|
75
77
|
import {Layout, LayoutContent} from '@astryxdesign/core/Layout';
|
|
76
78
|
import {ListItem} from '@astryxdesign/core/List';
|
|
@@ -917,6 +919,7 @@ function ProfilePanel({settings, update}: PanelProps) {
|
|
|
917
919
|
}
|
|
918
920
|
|
|
919
921
|
function SecurityPanel({settings, update}: PanelProps) {
|
|
922
|
+
const showToast = useToast();
|
|
920
923
|
return (
|
|
921
924
|
<VStack gap={5}>
|
|
922
925
|
<SettingsCard title="Sign-in">
|
|
@@ -924,7 +927,20 @@ function SecurityPanel({settings, update}: PanelProps) {
|
|
|
924
927
|
title="Password"
|
|
925
928
|
description="Last changed 4 months ago."
|
|
926
929
|
icon={KeyIcon}
|
|
927
|
-
control={
|
|
930
|
+
control={
|
|
931
|
+
<Button
|
|
932
|
+
label="Change"
|
|
933
|
+
variant="secondary"
|
|
934
|
+
size="sm"
|
|
935
|
+
onClick={() =>
|
|
936
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
937
|
+
showToast({
|
|
938
|
+
body: 'Demo: changing the password would start here',
|
|
939
|
+
uniqueID: 'change-password',
|
|
940
|
+
})
|
|
941
|
+
}
|
|
942
|
+
/>
|
|
943
|
+
}
|
|
928
944
|
/>
|
|
929
945
|
<SettingsRow
|
|
930
946
|
title="Two-factor authentication"
|
|
@@ -944,7 +960,20 @@ function SecurityPanel({settings, update}: PanelProps) {
|
|
|
944
960
|
title="Passkeys"
|
|
945
961
|
icon={FingerPrintIcon}
|
|
946
962
|
description="No passkeys yet."
|
|
947
|
-
control={
|
|
963
|
+
control={
|
|
964
|
+
<Button
|
|
965
|
+
label="Add passkey"
|
|
966
|
+
variant="secondary"
|
|
967
|
+
size="sm"
|
|
968
|
+
onClick={() =>
|
|
969
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
970
|
+
showToast({
|
|
971
|
+
body: 'Demo: adding a passkey would start here',
|
|
972
|
+
uniqueID: 'add-passkey',
|
|
973
|
+
})
|
|
974
|
+
}
|
|
975
|
+
/>
|
|
976
|
+
}
|
|
948
977
|
/>
|
|
949
978
|
</SettingsCard>
|
|
950
979
|
|
|
@@ -959,13 +988,39 @@ function SecurityPanel({settings, update}: PanelProps) {
|
|
|
959
988
|
title="iPhone 15 · Safari"
|
|
960
989
|
description="San Francisco, California · 2 hours ago"
|
|
961
990
|
icon={DevicePhoneMobileIcon}
|
|
962
|
-
control={
|
|
991
|
+
control={
|
|
992
|
+
<Button
|
|
993
|
+
label="Sign out"
|
|
994
|
+
variant="ghost"
|
|
995
|
+
size="sm"
|
|
996
|
+
onClick={() =>
|
|
997
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
998
|
+
showToast({
|
|
999
|
+
body: 'Demo: iPhone 15 · Safari would be signed out here',
|
|
1000
|
+
uniqueID: 'sign-out-iphone',
|
|
1001
|
+
})
|
|
1002
|
+
}
|
|
1003
|
+
/>
|
|
1004
|
+
}
|
|
963
1005
|
/>
|
|
964
1006
|
<SettingsRow
|
|
965
1007
|
title="Windows · Edge"
|
|
966
1008
|
description="Austin, Texas · March 30 at 19:31"
|
|
967
1009
|
icon={ComputerDesktopIcon}
|
|
968
|
-
control={
|
|
1010
|
+
control={
|
|
1011
|
+
<Button
|
|
1012
|
+
label="Sign out"
|
|
1013
|
+
variant="ghost"
|
|
1014
|
+
size="sm"
|
|
1015
|
+
onClick={() =>
|
|
1016
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1017
|
+
showToast({
|
|
1018
|
+
body: 'Demo: Windows · Edge would be signed out here',
|
|
1019
|
+
uniqueID: 'sign-out-windows',
|
|
1020
|
+
})
|
|
1021
|
+
}
|
|
1022
|
+
/>
|
|
1023
|
+
}
|
|
969
1024
|
/>
|
|
970
1025
|
</SettingsCard>
|
|
971
1026
|
</VStack>
|
|
@@ -973,6 +1028,7 @@ function SecurityPanel({settings, update}: PanelProps) {
|
|
|
973
1028
|
}
|
|
974
1029
|
|
|
975
1030
|
function BillingPanel({settings, update}: PanelProps) {
|
|
1031
|
+
const showToast = useToast();
|
|
976
1032
|
return (
|
|
977
1033
|
<VStack gap={5}>
|
|
978
1034
|
<SettingsCard title="Plan">
|
|
@@ -981,14 +1037,38 @@ function BillingPanel({settings, update}: PanelProps) {
|
|
|
981
1037
|
icon={CubeIcon}
|
|
982
1038
|
titleAccessory={<Token label="Team" size="sm" color="blue" />}
|
|
983
1039
|
description="$12 per seat, per month. Renews on April 1."
|
|
984
|
-
control={
|
|
1040
|
+
control={
|
|
1041
|
+
<Button
|
|
1042
|
+
label="Upgrade"
|
|
1043
|
+
variant="primary"
|
|
1044
|
+
size="sm"
|
|
1045
|
+
onClick={() =>
|
|
1046
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1047
|
+
showToast({
|
|
1048
|
+
body: 'Demo: the plan upgrade would start here',
|
|
1049
|
+
uniqueID: 'upgrade',
|
|
1050
|
+
})
|
|
1051
|
+
}
|
|
1052
|
+
/>
|
|
1053
|
+
}
|
|
985
1054
|
/>
|
|
986
1055
|
<SettingsRow
|
|
987
1056
|
title="Seats"
|
|
988
1057
|
icon={UsersIcon}
|
|
989
1058
|
description="18 of 25 seats in use."
|
|
990
1059
|
control={
|
|
991
|
-
<Button
|
|
1060
|
+
<Button
|
|
1061
|
+
label="Manage seats"
|
|
1062
|
+
variant="secondary"
|
|
1063
|
+
size="sm"
|
|
1064
|
+
onClick={() =>
|
|
1065
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1066
|
+
showToast({
|
|
1067
|
+
body: 'Demo: seat management would open here',
|
|
1068
|
+
uniqueID: 'manage-seats',
|
|
1069
|
+
})
|
|
1070
|
+
}
|
|
1071
|
+
/>
|
|
992
1072
|
}
|
|
993
1073
|
/>
|
|
994
1074
|
</SettingsCard>
|
|
@@ -1027,7 +1107,20 @@ function BillingPanel({settings, update}: PanelProps) {
|
|
|
1027
1107
|
title="Payment method"
|
|
1028
1108
|
description="Visa ending 4242 · Expires 09/28"
|
|
1029
1109
|
icon={CreditCardIcon}
|
|
1030
|
-
control={
|
|
1110
|
+
control={
|
|
1111
|
+
<Button
|
|
1112
|
+
label="Update"
|
|
1113
|
+
variant="secondary"
|
|
1114
|
+
size="sm"
|
|
1115
|
+
onClick={() =>
|
|
1116
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
1117
|
+
showToast({
|
|
1118
|
+
body: 'Demo: updating the payment method would start here',
|
|
1119
|
+
uniqueID: 'update-payment',
|
|
1120
|
+
})
|
|
1121
|
+
}
|
|
1122
|
+
/>
|
|
1123
|
+
}
|
|
1031
1124
|
/>
|
|
1032
1125
|
</SettingsCard>
|
|
1033
1126
|
</VStack>
|
|
@@ -1885,6 +1978,7 @@ function LanguagePanel({settings, update}: PanelProps) {
|
|
|
1885
1978
|
}
|
|
1886
1979
|
|
|
1887
1980
|
function PrivacyPanel({settings, update}: PanelProps) {
|
|
1981
|
+
const showToast = useToast();
|
|
1888
1982
|
return (
|
|
1889
1983
|
<VStack gap={5}>
|
|
1890
1984
|
<SettingsCard title="Visibility">
|
|
@@ -1948,7 +2042,18 @@ function PrivacyPanel({settings, update}: PanelProps) {
|
|
|
1948
2042
|
description="We will email a download link within 24 hours."
|
|
1949
2043
|
icon={ArrowDownTrayIcon}
|
|
1950
2044
|
control={
|
|
1951
|
-
<Button
|
|
2045
|
+
<Button
|
|
2046
|
+
label="Request export"
|
|
2047
|
+
variant="secondary"
|
|
2048
|
+
size="sm"
|
|
2049
|
+
onClick={() =>
|
|
2050
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
2051
|
+
showToast({
|
|
2052
|
+
body: 'Demo: a data export request would be sent here',
|
|
2053
|
+
uniqueID: 'request-export',
|
|
2054
|
+
})
|
|
2055
|
+
}
|
|
2056
|
+
/>
|
|
1952
2057
|
}
|
|
1953
2058
|
/>
|
|
1954
2059
|
<SettingsRow
|
|
@@ -1963,25 +2068,65 @@ function PrivacyPanel({settings, update}: PanelProps) {
|
|
|
1963
2068
|
}
|
|
1964
2069
|
|
|
1965
2070
|
function IntegrationsPanel() {
|
|
2071
|
+
const showToast = useToast();
|
|
1966
2072
|
return (
|
|
1967
2073
|
<SettingsCard title="Connected apps">
|
|
1968
2074
|
<SettingsRow
|
|
1969
2075
|
title="Calendar"
|
|
1970
2076
|
description="Connected as alex@example.com"
|
|
1971
2077
|
icon={CalendarDaysIcon}
|
|
1972
|
-
control={
|
|
2078
|
+
control={
|
|
2079
|
+
<Button
|
|
2080
|
+
label="Disconnect"
|
|
2081
|
+
variant="ghost"
|
|
2082
|
+
size="sm"
|
|
2083
|
+
onClick={() =>
|
|
2084
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
2085
|
+
showToast({
|
|
2086
|
+
body: 'Demo: Calendar would be disconnected here',
|
|
2087
|
+
uniqueID: 'disconnect-calendar',
|
|
2088
|
+
})
|
|
2089
|
+
}
|
|
2090
|
+
/>
|
|
2091
|
+
}
|
|
1973
2092
|
/>
|
|
1974
2093
|
<SettingsRow
|
|
1975
2094
|
title="File storage"
|
|
1976
2095
|
description="Attach files straight from your drive."
|
|
1977
2096
|
icon={FolderIcon}
|
|
1978
|
-
control={
|
|
2097
|
+
control={
|
|
2098
|
+
<Button
|
|
2099
|
+
label="Connect"
|
|
2100
|
+
variant="secondary"
|
|
2101
|
+
size="sm"
|
|
2102
|
+
onClick={() =>
|
|
2103
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
2104
|
+
showToast({
|
|
2105
|
+
body: 'Demo: File storage would be connected here',
|
|
2106
|
+
uniqueID: 'connect-file-storage',
|
|
2107
|
+
})
|
|
2108
|
+
}
|
|
2109
|
+
/>
|
|
2110
|
+
}
|
|
1979
2111
|
/>
|
|
1980
2112
|
<SettingsRow
|
|
1981
2113
|
title="Chat"
|
|
1982
2114
|
description="Post updates to a channel when work ships."
|
|
1983
2115
|
icon={ChatBubbleLeftRightIcon}
|
|
1984
|
-
control={
|
|
2116
|
+
control={
|
|
2117
|
+
<Button
|
|
2118
|
+
label="Connect"
|
|
2119
|
+
variant="secondary"
|
|
2120
|
+
size="sm"
|
|
2121
|
+
onClick={() =>
|
|
2122
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
2123
|
+
showToast({
|
|
2124
|
+
body: 'Demo: Chat would be connected here',
|
|
2125
|
+
uniqueID: 'connect-chat',
|
|
2126
|
+
})
|
|
2127
|
+
}
|
|
2128
|
+
/>
|
|
2129
|
+
}
|
|
1985
2130
|
/>
|
|
1986
2131
|
</SettingsCard>
|
|
1987
2132
|
);
|
|
@@ -2215,7 +2360,12 @@ function SettingsSearchResults({
|
|
|
2215
2360
|
<Icon icon={setting.icon} size="sm" color="secondary" />
|
|
2216
2361
|
}
|
|
2217
2362
|
endContent={
|
|
2218
|
-
<Icon
|
|
2363
|
+
<Icon
|
|
2364
|
+
icon={ChevronRightIcon}
|
|
2365
|
+
size="sm"
|
|
2366
|
+
color="secondary"
|
|
2367
|
+
xstyle={rtlStyles.mirror}
|
|
2368
|
+
/>
|
|
2219
2369
|
}
|
|
2220
2370
|
isSelected={index === activeIndex}
|
|
2221
2371
|
onMouseEnter={() => onActiveIndexChange(index)}
|
|
@@ -16,6 +16,7 @@ import {NavIcon} from '@astryxdesign/core/NavIcon';
|
|
|
16
16
|
import {Icon} from '@astryxdesign/core/Icon';
|
|
17
17
|
import type {IconType} from '@astryxdesign/core/Icon';
|
|
18
18
|
import {MoreMenu} from '@astryxdesign/core/MoreMenu';
|
|
19
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
19
20
|
import {StatusDot} from '@astryxdesign/core/StatusDot';
|
|
20
21
|
import type {StatusDotVariant} from '@astryxdesign/core/StatusDot';
|
|
21
22
|
import {Card} from '@astryxdesign/core/Card';
|
|
@@ -128,6 +129,13 @@ function ConversationItem({
|
|
|
128
129
|
const [isHovered, setIsHovered] = useState(false);
|
|
129
130
|
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
130
131
|
const showMenu = isHovered || isMenuOpen;
|
|
132
|
+
const showToast = useToast();
|
|
133
|
+
// Demo only: replace these toasts with the calls that act on the conversation.
|
|
134
|
+
const demoAction = (verb: string) =>
|
|
135
|
+
showToast({
|
|
136
|
+
body: `Demo: ${label} would be ${verb} here`,
|
|
137
|
+
uniqueID: `${verb}-${label}`,
|
|
138
|
+
});
|
|
131
139
|
|
|
132
140
|
return (
|
|
133
141
|
<Stack
|
|
@@ -144,9 +152,9 @@ function ConversationItem({
|
|
|
144
152
|
label="Conversation options"
|
|
145
153
|
onOpenChange={setIsMenuOpen}
|
|
146
154
|
items={[
|
|
147
|
-
{label: 'Pin', onClick: () =>
|
|
148
|
-
{label: 'Rename', onClick: () =>
|
|
149
|
-
{label: 'Archive', onClick: () =>
|
|
155
|
+
{label: 'Pin', onClick: () => demoAction('pinned')},
|
|
156
|
+
{label: 'Rename', onClick: () => demoAction('renamed')},
|
|
157
|
+
{label: 'Archive', onClick: () => demoAction('archived')},
|
|
150
158
|
{label: 'Delete', onClick: () => {}},
|
|
151
159
|
]}
|
|
152
160
|
/>
|
|
@@ -10,12 +10,14 @@ export const doc = {
|
|
|
10
10
|
keywords: [
|
|
11
11
|
'shell',
|
|
12
12
|
'chrome',
|
|
13
|
-
'layout
|
|
13
|
+
'layout',
|
|
14
|
+
'frame',
|
|
14
15
|
'sidebar',
|
|
15
16
|
'drawer',
|
|
16
|
-
'left
|
|
17
|
+
'left',
|
|
18
|
+
'rail',
|
|
17
19
|
'navigation',
|
|
18
|
-
'desktop
|
|
20
|
+
'desktop',
|
|
19
21
|
'directory',
|
|
20
22
|
'workspace',
|
|
21
23
|
],
|
|
@@ -6,7 +6,15 @@ export const doc = {
|
|
|
6
6
|
displayName: 'Side Gallery',
|
|
7
7
|
description:
|
|
8
8
|
'Asymmetric split section: a copy column of headline, supporting text, and links held against a clustered image collage opposite. Deliberately off-balance, unlike the centered hero.',
|
|
9
|
-
keywords: [
|
|
9
|
+
keywords: [
|
|
10
|
+
'feature',
|
|
11
|
+
'banner',
|
|
12
|
+
'split',
|
|
13
|
+
'section',
|
|
14
|
+
'marketing',
|
|
15
|
+
'gallery',
|
|
16
|
+
'intro',
|
|
17
|
+
],
|
|
10
18
|
type: 'page',
|
|
11
19
|
isReady: true,
|
|
12
20
|
category: 'Gallery - Side',
|
|
@@ -65,6 +65,7 @@ import {Tab, TabList} from '@astryxdesign/core/TabList';
|
|
|
65
65
|
import {MetadataList, MetadataListItem} from '@astryxdesign/core/MetadataList';
|
|
66
66
|
import {Heading, Text} from '@astryxdesign/core/Text';
|
|
67
67
|
import {Button} from '@astryxdesign/core/Button';
|
|
68
|
+
import {useToast} from '@astryxdesign/core/Toast';
|
|
68
69
|
import {IconButton} from '@astryxdesign/core/IconButton';
|
|
69
70
|
import {ToggleButton} from '@astryxdesign/core/ToggleButton';
|
|
70
71
|
import {Icon} from '@astryxdesign/core/Icon';
|
|
@@ -2193,6 +2194,7 @@ export default function TableFilterTemplate() {
|
|
|
2193
2194
|
// client render rather than a default that corrects itself afterwards —
|
|
2194
2195
|
// which is what lets the auto-open effect below trust it.
|
|
2195
2196
|
const isCompactSurface = useMediaQuery(COMPACT_SURFACE_QUERY);
|
|
2197
|
+
const showToast = useToast();
|
|
2196
2198
|
|
|
2197
2199
|
// --- Filtering -------------------------------------------------------------
|
|
2198
2200
|
const [filters, setFilters] = useState<PowerSearchFilter[]>(INITIAL_FILTERS);
|
|
@@ -4185,6 +4187,13 @@ export default function TableFilterTemplate() {
|
|
|
4185
4187
|
label={NEXT_ACTION[activeJob.status]}
|
|
4186
4188
|
size="sm"
|
|
4187
4189
|
width="100%"
|
|
4190
|
+
onClick={() =>
|
|
4191
|
+
// Demo only: replace this toast with the call that performs the action.
|
|
4192
|
+
showToast({
|
|
4193
|
+
body: `Started “${NEXT_ACTION[activeJob.status]}” for ${activeJob.id}`,
|
|
4194
|
+
uniqueID: `next-${activeJob.id}`,
|
|
4195
|
+
})
|
|
4196
|
+
}
|
|
4188
4197
|
/>
|
|
4189
4198
|
<Button
|
|
4190
4199
|
label="Edit job"
|
|
@@ -14,17 +14,18 @@ export const doc = {
|
|
|
14
14
|
'records',
|
|
15
15
|
'grid',
|
|
16
16
|
'search',
|
|
17
|
-
'filtered
|
|
18
|
-
'
|
|
17
|
+
'filtered',
|
|
18
|
+
'dataset',
|
|
19
|
+
'searchable',
|
|
19
20
|
'filters',
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'results list',
|
|
21
|
+
'advanced',
|
|
22
|
+
'results',
|
|
23
23
|
'explorer',
|
|
24
|
-
'bulk
|
|
24
|
+
'bulk',
|
|
25
|
+
'actions',
|
|
25
26
|
'badges',
|
|
26
|
-
'detail
|
|
27
|
-
'
|
|
27
|
+
'detail',
|
|
28
|
+
'drawer',
|
|
28
29
|
],
|
|
29
30
|
isReady: true,
|
|
30
31
|
category: 'Table - Filtering',
|