@canonical/design-system 0.2.5 → 0.43.0-experimental.1
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/LICENSE +166 -0
- package/README.md +255 -14
- package/data/apps/component/file_tree.ttl +2 -0
- package/data/apps/component/key_value_pair.ttl +2 -0
- package/data/apps/component/navigation.ttl +2 -0
- package/data/apps/component/notification.ttl +2 -0
- package/data/apps/component/side_navigation.ttl +2 -0
- package/data/apps/component/skeleton_loading.ttl +2 -0
- package/data/apps/component/status_bar.ttl +2 -0
- package/data/apps/component/toolbar.ttl +2 -0
- package/data/apps/group/key_value_pairs.ttl +2 -0
- package/data/apps/group/notifications.ttl +2 -0
- package/data/apps/layout/application_layout.ttl +2 -0
- package/data/apps/layout/content_layout.ttl +2 -0
- package/data/apps/layout/empty_layout.ttl +2 -0
- package/data/apps/layout/empty_state.ttl +13 -0
- package/data/apps/layout/list_page_layout.ttl +2 -0
- package/data/apps/layout/settings_page_layout.ttl +2 -0
- package/data/apps/layout/view_layout.ttl +2 -0
- package/data/apps/pattern/action_bar.ttl +4 -2
- package/data/apps/pattern/code_diff.ttl +2 -0
- package/data/apps/pattern/{data_table.ttl → datatable.ttl} +27 -25
- package/data/apps/pattern/destructive_modal.ttl +2 -0
- package/data/apps/pattern/drawer.ttl +2 -0
- package/data/apps/pattern/keyboard_shortcuts.ttl +2 -0
- package/data/apps/pattern/notification_center.ttl +4 -2
- package/data/apps/pattern/side_panel.ttl +39 -4
- package/data/apps/pattern/sidepanel_stacked.ttl +2 -0
- package/data/apps/subcomponent/data_table-action_bar.ttl +7 -5
- package/data/apps/subcomponent/data_table-body_cell.ttl +27 -25
- package/data/apps/subcomponent/data_table-group_header_row.ttl +10 -8
- package/data/apps/subcomponent/data_table-header_cell.ttl +13 -11
- package/data/apps/subcomponent/data_table-pagination_bar.ttl +11 -9
- package/data/apps/subcomponent/data_table-persistent_selection.ttl +12 -10
- package/data/apps/subcomponent/data_table-settings_menu.ttl +17 -15
- package/data/apps/subcomponent/drawer-content.ttl +2 -0
- package/data/apps/subcomponent/drawer-footer.ttl +2 -0
- package/data/apps/subcomponent/drawer-header.ttl +2 -0
- package/data/apps/subcomponent/file_tree-node.ttl +2 -0
- package/data/apps/subcomponent/log.ttl +2 -0
- package/data/apps/subcomponent/side_panel-content.ttl +3 -1
- package/data/apps/subcomponent/side_panel-footer.ttl +3 -1
- package/data/apps/subcomponent/side_panel-header.ttl +3 -1
- package/data/apps.ttl +2 -0
- package/data/apps_anbox/component/theme_switcher.ttl +2 -0
- package/data/apps_anbox/pattern/side_menu.ttl +2 -0
- package/data/apps_anbox.ttl +2 -0
- package/data/apps_debcrafters/component/deb_package_card.ttl +12 -0
- package/data/apps_debcrafters/component/example.ttl +2 -0
- package/data/apps_debcrafters/component/my_fancy_component.ttl +2 -0
- package/data/apps_debcrafters.ttl +2 -0
- package/data/apps_juju/pattern/single_select_multi_layered.ttl +2 -0
- package/data/apps_juju.ttl +2 -0
- package/data/apps_landscape/component/checkbox_group.ttl +110 -0
- package/data/apps_landscape/component/code_editor.ttl +134 -0
- package/data/apps_landscape/component/cron_schedule.ttl +40 -0
- package/data/apps_landscape/component/expandable_radio_group.ttl +106 -0
- package/data/apps_landscape/component/expandable_truncation.ttl +50 -0
- package/data/apps_landscape/component/form_section.ttl +33 -0
- package/data/apps_landscape/component/gpg_key_field.ttl +86 -0
- package/data/apps_landscape/component/grouped_select.ttl +137 -0
- package/data/apps_landscape/component/loading_state.ttl +30 -0
- package/data/apps_landscape/component/managed_file_input.ttl +75 -0
- package/data/apps_landscape/component/multi_select_field.ttl +323 -0
- package/data/apps_landscape/component/pass_rate_filter.ttl +13 -0
- package/data/apps_landscape/component/password_constraints.ttl +3 -0
- package/data/apps_landscape/component/progress_bar.ttl +100 -0
- package/data/apps_landscape/component/read_only_field.ttl +46 -0
- package/data/apps_landscape/component/search_help_popup.ttl +51 -0
- package/data/apps_landscape/component/search_query_editor.ttl +149 -0
- package/data/apps_landscape/component/tag_multi_select.ttl +52 -0
- package/data/apps_landscape/pattern/content_blocks.ttl +70 -0
- package/data/apps_landscape/pattern/dashboard_page_composition.ttl +110 -0
- package/data/apps_landscape/pattern/delivery_scheduling.ttl +24 -0
- package/data/apps_landscape/pattern/form_field_help.ttl +67 -0
- package/data/apps_landscape/pattern/header_search_controls.ttl +106 -0
- package/data/apps_landscape/pattern/ignorable_notification.ttl +60 -0
- package/data/apps_landscape/pattern/information_grid.ttl +93 -0
- package/data/apps_landscape/pattern/instance_association.ttl +29 -0
- package/data/apps_landscape/pattern/process_flow.ttl +52 -0
- package/data/apps_landscape/pattern/progressively_expandable_table.ttl +158 -0
- package/data/apps_landscape/pattern/recurring_schedule.ttl +21 -0
- package/data/apps_landscape/pattern/responsive_action_group.ttl +77 -0
- package/data/apps_landscape/pattern/responsive_header_actions.ttl +83 -0
- package/data/apps_landscape/pattern/responsive_table_filters.ttl +61 -0
- package/data/apps_landscape/pattern/side_panel_form_actions.ttl +126 -0
- package/data/apps_landscape/pattern/sortable_list.ttl +50 -0
- package/data/apps_landscape/pattern/table_filter.ttl +201 -0
- package/data/apps_landscape/pattern/table_filter_chips.ttl +174 -0
- package/data/apps_landscape/pattern/table_pagination.ttl +220 -0
- package/data/apps_landscape/pattern/typed_confirmation_modal.ttl +88 -0
- package/data/apps_landscape/subcomponent/bold_substring.ttl +30 -0
- package/data/apps_landscape/subcomponent/inline_cell_input.ttl +36 -0
- package/data/apps_landscape/subcomponent/label_with_description.ttl +46 -0
- package/data/apps_landscape/subcomponent/nested_dropdown_item.ttl +61 -0
- package/data/apps_landscape/subcomponent/pluralized_bold_count.ttl +36 -0
- package/data/apps_landscape/subcomponent/select_all_results_prompt.ttl +56 -0
- package/data/apps_landscape.ttl +2 -0
- package/data/apps_launchpad/component/accordion.ttl +12 -0
- package/data/apps_launchpad/component/avatar.ttl +4 -2
- package/data/apps_launchpad/component/badge.ttl +4 -2
- package/data/apps_launchpad/component/breadcrumbs.ttl +2 -0
- package/data/apps_launchpad/component/button.ttl +4 -2
- package/data/apps_launchpad/component/checkbox_input.ttl +6 -4
- package/data/apps_launchpad/component/chip.ttl +2 -0
- package/data/apps_launchpad/component/combobox.ttl +4 -2
- package/data/apps_launchpad/component/description_list.ttl +2 -0
- package/data/apps_launchpad/component/drawer.ttl +6 -4
- package/data/apps_launchpad/component/link.ttl +12 -0
- package/data/apps_launchpad/component/log.ttl +2 -0
- package/data/apps_launchpad/component/markdown_editor.ttl +12 -0
- package/data/apps_launchpad/component/modal.ttl +7 -5
- package/data/apps_launchpad/component/pagination.ttl +12 -0
- package/data/apps_launchpad/component/popover.ttl +12 -0
- package/data/apps_launchpad/component/radio_input.ttl +6 -4
- package/data/apps_launchpad/component/relative_timestamp.ttl +12 -0
- package/data/apps_launchpad/component/select_input.ttl +2 -0
- package/data/apps_launchpad/component/spinner.ttl +12 -0
- package/data/apps_launchpad/component/switch.ttl +6 -4
- package/data/apps_launchpad/component/table.ttl +12 -0
- package/data/apps_launchpad/component/text_input.ttl +9 -7
- package/data/apps_launchpad/component/textarea_input.ttl +10 -8
- package/data/apps_launchpad/component/timestamp.ttl +12 -0
- package/data/apps_launchpad/component/tooltip.ttl +4 -2
- package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-group.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-helper.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-loading.ttl +4 -2
- package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +2 -0
- package/data/apps_launchpad/subcomponent/combobox-search.ttl +6 -4
- package/data/apps_launchpad/subcomponent/description_list-item.ttl +2 -0
- package/data/apps_launchpad/subcomponent/log-line.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-body.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-header-close_button.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content-header.ttl +2 -0
- package/data/apps_launchpad/subcomponent/modal-content.ttl +4 -2
- package/data/apps_launchpad/subcomponent/side_panel-content-body.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-footer.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header-close_button.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content-header.ttl +2 -0
- package/data/apps_launchpad/subcomponent/side_panel-content.ttl +2 -0
- package/data/apps_launchpad.ttl +2 -0
- package/data/apps_lxd/component/back_link.ttl +2 -0
- package/data/apps_lxd/component/code_snippet_with_copy_button.ttl +2 -0
- package/data/apps_lxd/component/confirmation_checkbox.ttl +2 -0
- package/data/apps_lxd/component/doc_link.ttl +4 -2
- package/data/apps_lxd/component/meter.ttl +6 -4
- package/data/apps_lxd/component/output_field.ttl +2 -0
- package/data/apps_lxd/component/rename_header.ttl +17 -15
- package/data/apps_lxd/component/tab_links.ttl +6 -4
- package/data/apps_lxd/subcomponent/copy_to_clipboard.ttl +2 -0
- package/data/apps_lxd/view/network_topology.ttl +2 -0
- package/data/apps_lxd.ttl +2 -0
- package/data/apps_notary.ttl +2 -0
- package/data/apps_portal/component/badge.ttl +2 -0
- package/data/apps_portal/component/credit_card_input.ttl +2 -0
- package/data/apps_portal/component/key_value_pair.ttl +2 -0
- package/data/apps_portal/layout/details_view.ttl +18 -0
- package/data/apps_portal/pattern/purchase_summary.ttl +2 -0
- package/data/apps_portal/subcomponent/read_only_modal.ttl +2 -0
- package/data/apps_portal.ttl +2 -0
- package/data/apps_support/component/data_spotlight.ttl +12 -0
- package/data/apps_support/subcomponent/ai_prompt_input.ttl +12 -0
- package/data/apps_support.ttl +6 -0
- package/data/apps_workplaceengineering/component/complex_multi_select.ttl +13 -0
- package/data/apps_workplaceengineering/component/label-highlight.ttl +3 -1
- package/data/apps_workplaceengineering/component/rule.ttl +2 -0
- package/data/apps_workplaceengineering/component/skip_link.ttl +2 -0
- package/data/apps_workplaceengineering/component/theme_switcher.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/callout_numbers_card.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/confirmation_modal.ttl +12 -0
- package/data/apps_workplaceengineering/pattern/event_timeline.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/group_card.ttl +2 -0
- package/data/apps_workplaceengineering/pattern/travel_provider_card.ttl +2 -0
- package/data/apps_workplaceengineering/subcomponent/multi_select_input.ttl +12 -0
- package/data/apps_workplaceengineering.ttl +2 -0
- package/data/concept/Foundations-Baseline.ttl +11 -0
- package/data/concept/Foundations-Density--the-form-channel.ttl +11 -0
- package/data/concept/Foundations-Grid--Layout.ttl +11 -0
- package/data/concept/Foundations-Spacing/-Element-vs-container-owned.ttl +11 -0
- package/data/concept/Foundations-Spacing.ttl +11 -0
- package/data/concept/Foundations-Surfaces.ttl +11 -0
- package/data/concept/Foundations-Typography.ttl +11 -0
- package/data/concept/{How-to-differentiate-components-variantsinheritance.ttl → How-to-differentiate-types-of-UI-blocks-.ttl} +5 -3
- package/data/concept/How-to-indicate-required-fields-in-forms.ttl +11 -0
- package/data/concept/How-to-support-modifiers-in-a-component.ttl +11 -0
- package/data/concept/Intentional-friction.ttl +11 -0
- package/data/concept/Question-mark-vs-information-icon.ttl +3 -1
- package/data/concept/Understanding-the-modifier-contract.ttl +11 -0
- package/data/concepttype/Explanation.ttl +2 -0
- package/data/concepttype/How-to-guide.ttl +2 -0
- package/data/concepttype/Reference.ttl +2 -0
- package/data/concepttype/Tutorial.ttl +2 -0
- package/data/documentation/layout/documentation_layout.ttl +2 -0
- package/data/documentation/pattern/library_side_navigation.ttl +3 -1
- package/data/documentation.ttl +2 -0
- package/data/global/component/accordion.ttl +180 -1
- package/data/global/component/announcement.ttl +13 -2
- package/data/global/component/avatar.ttl +2 -0
- package/data/global/component/badge.ttl +4 -2
- package/data/global/component/breadcrumbs.ttl +77 -2
- package/data/global/component/button.ttl +197 -2
- package/data/global/component/button_link.ttl +2 -0
- package/data/global/component/card.ttl +150 -3
- package/data/global/component/checkbox_field.ttl +269 -2
- package/data/global/component/chip.ttl +3 -1
- package/data/global/component/choices_field.ttl +373 -2
- package/data/global/component/code_snippet-content.ttl +3 -1
- package/data/global/component/code_snippet-header.ttl +21 -2
- package/data/global/component/code_snippet.ttl +28 -1
- package/data/global/component/color_field.ttl +2 -0
- package/data/global/component/combobox_field.ttl +470 -3
- package/data/global/component/contextual_menu.ttl +2 -0
- package/data/global/component/data_tooltip.ttl +149 -2
- package/data/global/component/date_field.ttl +158 -3
- package/data/global/component/date_time_field.ttl +157 -2
- package/data/global/component/drag_and_drop_list.ttl +13 -0
- package/data/global/component/dropdown_button.ttl +2 -0
- package/data/global/component/file_upload_field.ttl +230 -3
- package/data/global/component/heading.ttl +62 -3
- package/data/global/component/hidden_field.ttl +3 -1
- package/data/global/component/icon.ttl +3 -1
- package/data/global/component/icon_in_container.ttl +2 -0
- package/data/global/component/inline_code.ttl +2 -0
- package/data/global/component/keyboard_key.ttl +77 -2
- package/data/global/component/markdown_field.ttl +2 -0
- package/data/global/component/mode_switcher.ttl +2 -0
- package/data/global/component/month_field.ttl +2 -0
- package/data/global/component/notification_inline.ttl +2 -0
- package/data/global/component/notification_toast.ttl +2 -0
- package/data/global/component/number_field.ttl +2 -0
- package/data/global/component/pagination.ttl +2 -0
- package/data/global/component/password_field.ttl +189 -2
- package/data/global/component/phone_field.ttl +173 -2
- package/data/global/component/popover.ttl +2 -0
- package/data/global/component/range_field.ttl +165 -2
- package/data/global/component/rating_field.ttl +2 -0
- package/data/global/component/relative_timestamp.ttl +2 -0
- package/data/global/component/rich_choices_field.ttl +205 -2
- package/data/global/component/rich_text_field.ttl +2 -0
- package/data/global/component/search_field.ttl +2 -0
- package/data/global/component/segmented_control_field.ttl +2 -0
- package/data/global/component/select_field.ttl +158 -3
- package/data/global/component/switch_field.ttl +190 -3
- package/data/global/component/table.ttl +4 -2
- package/data/global/component/tabs.ttl +13 -2
- package/data/global/component/tag.ttl +13 -2
- package/data/global/component/text_field.ttl +173 -2
- package/data/global/component/textarea_field.ttl +157 -2
- package/data/global/component/tile.ttl +108 -1
- package/data/global/component/time_field.ttl +157 -2
- package/data/global/component/timestamp.ttl +2 -0
- package/data/global/component/tooltip.ttl +166 -43
- package/data/global/component/tooltip_wrapper.ttl +61 -2
- package/data/global/group/buttons.ttl +2 -0
- package/data/global/group/cards.ttl +2 -0
- package/data/global/group/code_snippets.ttl +2 -0
- package/data/global/group/keyboard_keys.ttl +101 -2
- package/data/global/group/tiles.ttl +2 -0
- package/data/global/layout/error_layout.ttl +2 -0
- package/data/global/layout/form_layout.ttl +2 -0
- package/data/global/layout/identity_page_form.ttl +2 -0
- package/data/global/modifier/alpha.ttl +2 -0
- package/data/global/modifier/beta.ttl +2 -0
- package/data/global/modifier/caution.ttl +2 -0
- package/data/global/modifier/comfortable.ttl +2 -0
- package/data/global/modifier/completed.ttl +2 -0
- package/data/global/modifier/constructive.ttl +2 -0
- package/data/global/modifier/dark.ttl +2 -0
- package/data/global/modifier/dense.ttl +2 -0
- package/data/global/modifier/destructive.ttl +2 -0
- package/data/global/modifier/editable.ttl +2 -0
- package/data/global/modifier/elevated.ttl +2 -0
- package/data/global/modifier/error.ttl +2 -0
- package/data/global/modifier/experimental.ttl +2 -0
- package/data/global/modifier/failed.ttl +2 -0
- package/data/global/modifier/focused.ttl +2 -0
- package/data/global/modifier/highlighted.ttl +2 -0
- package/data/global/modifier/in_progress.ttl +2 -0
- package/data/global/modifier/information.ttl +2 -0
- package/data/global/modifier/light.ttl +2 -0
- package/data/global/modifier/loading.ttl +2 -0
- package/data/global/modifier/modal.ttl +2 -0
- package/data/global/modifier/muted.ttl +2 -0
- package/data/global/modifier/planned.ttl +2 -0
- package/data/global/modifier/primary.ttl +2 -0
- package/data/global/modifier/secondary.ttl +2 -0
- package/data/global/modifier/stable.ttl +2 -0
- package/data/global/modifier/success.ttl +2 -0
- package/data/global/modifier/surface1.ttl +2 -0
- package/data/global/modifier/surface2.ttl +2 -0
- package/data/global/modifier/surface3.ttl +2 -0
- package/data/global/modifier/tertiary.ttl +2 -0
- package/data/global/modifier/warning.ttl +2 -0
- package/data/global/modifier/wireframe.ttl +2 -0
- package/data/global/modifier_family/_color_luminosity.ttl +2 -0
- package/data/global/modifier_family/_emphasis.ttl +2 -0
- package/data/global/modifier_family/_other.ttl +2 -0
- package/data/global/modifier_family/anticipation.ttl +2 -0
- package/data/global/modifier_family/criticality.ttl +2 -0
- package/data/global/modifier_family/density.ttl +2 -0
- package/data/global/modifier_family/importance.ttl +2 -0
- package/data/global/modifier_family/lifecycle.ttl +2 -0
- package/data/global/modifier_family/mode.ttl +2 -0
- package/data/global/modifier_family/release.ttl +2 -0
- package/data/global/modifier_family/surface.ttl +2 -0
- package/data/global/pattern/description_list.ttl +2 -0
- package/data/global/pattern/field.ttl +2 -0
- package/data/global/pattern/form.ttl +2 -0
- package/data/global/pattern/form_login.ttl +2 -0
- package/data/global/pattern/info_table.ttl +2 -0
- package/data/global/pattern/modal.ttl +431 -4
- package/data/global/pattern/navigation.ttl +2 -0
- package/data/global/pattern/stepper.ttl +2 -0
- package/data/global/pattern/table_of_contents.ttl +85 -2
- package/data/global/pattern/timeline.ttl +48 -13
- package/data/global/subcomponent/accordion-item.ttl +157 -2
- package/data/global/subcomponent/breadcrumbs-item.ttl +69 -2
- package/data/global/subcomponent/card-content.ttl +53 -2
- package/data/global/subcomponent/card-footer.ttl +2 -0
- package/data/global/subcomponent/card-header.ttl +45 -2
- package/data/global/subcomponent/card-image.ttl +13 -2
- package/data/global/subcomponent/card-thumbnail.ttl +37 -2
- package/data/global/subcomponent/chart_legend.ttl +93 -2
- package/data/global/subcomponent/chart_legend_item.ttl +77 -2
- package/data/global/subcomponent/checkbox_input.ttl +165 -2
- package/data/global/subcomponent/color_input.ttl +2 -0
- package/data/global/subcomponent/combobox_input.ttl +398 -3
- package/data/global/subcomponent/date_input.ttl +85 -2
- package/data/global/subcomponent/date_time_input.ttl +85 -2
- package/data/global/subcomponent/field-description.ttl +13 -2
- package/data/global/subcomponent/field-error.ttl +29 -0
- package/data/global/subcomponent/field-label.ttl +37 -2
- package/data/global/subcomponent/file_upload_input.ttl +158 -3
- package/data/global/subcomponent/hidden_input.ttl +3 -1
- package/data/global/subcomponent/kvp_container.ttl +77 -2
- package/data/global/subcomponent/kvpitem_base.ttl +69 -2
- package/data/global/subcomponent/markdown_input.ttl +2 -0
- package/data/global/subcomponent/modal-content.ttl +38 -2
- package/data/global/subcomponent/modal-footer.ttl +262 -2
- package/data/global/subcomponent/modal-header.ttl +294 -2
- package/data/global/subcomponent/month_input.ttl +2 -0
- package/data/global/subcomponent/number_input.ttl +2 -0
- package/data/global/subcomponent/password_input.ttl +117 -2
- package/data/global/subcomponent/phone_input.ttl +101 -2
- package/data/global/subcomponent/radio_input.ttl +94 -3
- package/data/global/subcomponent/range_input.ttl +85 -2
- package/data/global/subcomponent/rating_input.ttl +2 -0
- package/data/global/subcomponent/rich_text_input.ttl +2 -0
- package/data/global/subcomponent/search_input.ttl +5 -3
- package/data/global/subcomponent/segmented_control_input.ttl +2 -0
- package/data/global/subcomponent/select_input.ttl +86 -3
- package/data/global/subcomponent/spin_button.ttl +2 -0
- package/data/global/subcomponent/spinner.ttl +3 -1
- package/data/global/subcomponent/switch_input.ttl +86 -3
- package/data/global/subcomponent/table-cell.ttl +2 -0
- package/data/global/subcomponent/table-row.ttl +2 -0
- package/data/global/subcomponent/text_input.ttl +101 -2
- package/data/global/subcomponent/textarea_input.ttl +85 -2
- package/data/global/subcomponent/tile-content.ttl +45 -2
- package/data/global/subcomponent/tile-header.ttl +45 -2
- package/data/global/subcomponent/time_input.ttl +85 -2
- package/data/global/subcomponent/timeline-content.ttl +37 -2
- package/data/global/subcomponent/timeline-event.ttl +42 -7
- package/data/global/subcomponent/timeline-expansion_indicator.ttl +3 -1
- package/data/global/subcomponent/timeline-header.ttl +3 -1
- package/data/global/variant/tooltip_dense.ttl +2 -0
- package/data/global/view/settings_view.ttl +2 -0
- package/data/global.ttl +2 -0
- package/data/sites/component/blog_card.ttl +2 -0
- package/data/sites/component/quote.ttl +2 -0
- package/data/sites/component/rule.ttl +2 -0
- package/data/sites/component/section.ttl +2 -0
- package/data/sites/group/blog_cards.ttl +2 -0
- package/data/sites/group/xblog_elements.ttl +2 -0
- package/data/sites/layout/blog_page_layout.ttl +2 -0
- package/data/sites/layout/case_study_layout.ttl +2 -0
- package/data/sites/layout/site_layout.ttl +2 -0
- package/data/sites/pattern/hero-github.ttl +2 -0
- package/data/sites/pattern/hero.ttl +2 -0
- package/data/sites/pattern/info_table.ttl +2 -0
- package/data/sites/pattern/pricing_section.ttl +2 -0
- package/data/sites/pattern/pricing_table.ttl +2 -0
- package/data/sites/pattern/read_more_section.ttl +2 -0
- package/data/sites/pattern/skip_link.ttl +2 -0
- package/data/sites.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/blog_cards.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/ctablock.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/list.ttl +2 -0
- package/data/sites_webcomponentsprototype/component/tabs.ttl +2 -0
- package/data/sites_webcomponentsprototype/layout/site_layout.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/hero.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +2 -0
- package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +2 -0
- package/data/sites_webcomponentsprototype.ttl +2 -0
- package/data/stores.ttl +2 -0
- package/data/tag/allgood.ttl +2 -0
- package/data/tag/beta.ttl +2 -0
- package/data/tag/candidate.ttl +2 -0
- package/data/tag/devbatch1.ttl +2 -0
- package/data/tag/devbatch2.ttl +2 -0
- package/data/tag/devbatch3.ttl +9 -0
- package/data/tag/devexternal.ttl +2 -0
- package/data/tag/devreactapproved.ttl +2 -0
- package/data/tag/devreactbase.ttl +2 -0
- package/data/tag/devreactpreapproved.ttl +2 -0
- package/data/tag/devspecial.ttl +2 -0
- package/data/tag/devsveltedone.ttl +2 -0
- package/data/tag/devsveltein-progress.ttl +2 -0
- package/data/tag/divergent.ttl +2 -0
- package/data/tag/docscomplete.ttl +2 -0
- package/data/tag/draft.ttl +2 -0
- package/data/tag/edge.ttl +2 -0
- package/data/tag/global-docs-missing.ttl +2 -0
- package/data/tag/has-no-global-entry.ttl +2 -0
- package/data/tag/lpto-be-upstreamed.ttl +2 -0
- package/data/tag/lptriageblocked-reqs-design.ttl +2 -0
- package/data/tag/lptriageno-upstream.ttl +2 -0
- package/data/tag/lptriagereimplement-and-deprecate.ttl +2 -0
- package/data/tag/lptriagereimplement-and-keep.ttl +2 -0
- package/data/tag/lptriageupstream-and-deprecate.ttl +2 -0
- package/data/tag/minimal.ttl +2 -0
- package/data/tag/needsdefinition.ttl +2 -0
- package/data/tag/needsdiscussion.ttl +2 -0
- package/data/tag/needsdocumentation.ttl +2 -0
- package/data/tag/needsreview.ttl +2 -0
- package/data/tag/needstriage.ttl +2 -0
- package/data/tag/needsupdate.ttl +2 -0
- package/data/tag/notstarted.ttl +2 -0
- package/data/tag/specialadoption-docs.ttl +2 -0
- package/data/tag/stable.ttl +2 -0
- package/data/tag/stylesready.ttl +2 -0
- package/data/tag/triagedbacklog.ttl +2 -0
- package/data/tag/triagedrejected.ttl +2 -0
- package/data/tag/upstream-candidate.ttl +2 -0
- package/data/tag/upstream-compliant.ttl +2 -0
- package/data/tag/upstreamcandidate.ttl +2 -0
- package/data/tag/waiting-for-delta-review.ttl +2 -0
- package/data/tag/wpeinital-implementation.ttl +2 -0
- package/data/tag/wpetriageupstream-and-deprecate.ttl +2 -0
- package/data/tagcategory/channel.ttl +2 -0
- package/data/tagcategory/concept-status.ttl +2 -0
- package/data/tagcategory/concept-type.ttl +2 -0
- package/data/tagcategory/documentation-stage.ttl +2 -0
- package/data/tagcategory/implementation-status.ttl +2 -0
- package/data/tagcategory/lpupstream.ttl +2 -0
- package/data/tagcategory/review-status.ttl +2 -0
- package/data/tagcategory/tmp.ttl +2 -0
- package/definitions/ontology.ttl +70 -1
- package/package.json +34 -8
- package/skills/adoption-a1-styles/SKILL.md +24 -0
- package/skills/adoption-a2-components/SKILL.md +22 -6
- package/skills/anatomy-author/ANATOMY_DSL_SPEC.md +1397 -327
- package/skills/anatomy-author/SKILL.md +840 -137
- package/skills/design-auditor/SKILL.md +133 -9
- package/skills/implement-component/SKILL.md +192 -23
- package/skills/specify-component/SKILL.md +124 -12
- package/skills/specify-pattern/SKILL.md +47 -8
- package/src/collect-implementations.ts +0 -0
- package/src/serializers/TTLSerializer.tests.ts +101 -0
- package/src/serializers/TTLSerializer.ts +17 -2
- package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +0 -14
- package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +0 -26
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -22
- package/.github/workflows/ci.yml +0 -49
- package/.github/workflows/sync-coda-manual.yml +0 -25
- package/.github/workflows/sync-coda-scheduled.yml +0 -22
- package/.github/workflows/sync-coda.yml +0 -102
- package/.mcp.json +0 -12
- package/GEMINI.md +0 -2
- package/biome.json +0 -6
- package/bun.lock +0 -392
- package/data/apps_landscape/component/truncated_cell.ttl +0 -38
- package/data/concept/Foundations-Grid.ttl +0 -9
- package/data/concept/Indicating-required-fields-in-forms.ttl +0 -9
- package/data/concepttype/Decision-guide.ttl +0 -5
- package/data/concepttype/Mental-model.ttl +0 -5
- package/examples/form-roster.target.json +0 -550
- package/source.json +0 -205
- package/specs/README.md +0 -17
- package/src/cli.ts +0 -58
- package/src/commands/extract.tests.ts +0 -40
- package/src/commands/extract.ts +0 -50
- package/src/commands/index.ts +0 -4
- package/src/commands/list.tests.ts +0 -25
- package/src/commands/list.ts +0 -26
- package/src/commands/sync.tests.ts +0 -430
- package/src/commands/sync.ts +0 -418
- package/src/commands/transform.tests.ts +0 -213
- package/src/commands/transform.ts +0 -257
- package/src/config/index.ts +0 -2
- package/src/config/source.schema.json +0 -146
- package/src/config/types.ts +0 -129
- package/src/config/validateConfig.tests.ts +0 -46
- package/src/config/validateConfig.ts +0 -21
- package/src/constants.ts +0 -19
- package/src/providers/CodaProvider.tests.ts +0 -335
- package/src/providers/CodaProvider.ts +0 -384
- package/src/providers/CodaProvider.types.generated.ts +0 -12597
- package/src/providers/detectSmartChips.tests.ts +0 -42
- package/src/providers/detectSmartChips.ts +0 -60
- package/src/providers/index.ts +0 -18
- package/src/scripts/checkDataDeletion.ts +0 -68
- package/src/scripts/evaluateDataDeletion.tests.ts +0 -100
- package/src/scripts/evaluateDataDeletion.ts +0 -100
- package/src/sync/constants.ts +0 -52
- package/src/sync/diffRoster.tests.ts +0 -455
- package/src/sync/diffRoster.ts +0 -241
- package/src/sync/loadTargetSpec.tests.ts +0 -208
- package/src/sync/loadTargetSpec.ts +0 -139
- package/src/sync/renderPlan.tests.ts +0 -144
- package/src/sync/renderPlan.ts +0 -88
- package/src/sync/snapshotTable.tests.ts +0 -31
- package/src/sync/snapshotTable.ts +0 -20
- package/src/sync/toLiveEntries.tests.ts +0 -76
- package/src/sync/toLiveEntries.ts +0 -55
- package/src/sync/types.ts +0 -101
- package/src/transform/collectDataMetrics.tests.ts +0 -108
- package/src/transform/collectDataMetrics.ts +0 -114
- package/src/transform/deltaGuards.tests.ts +0 -136
- package/src/transform/deltaGuards.ts +0 -118
- package/src/transform/expectedTables.tests.ts +0 -99
- package/src/transform/expectedTables.ts +0 -34
- package/src/transform/isValidReferenceUri.tests.ts +0 -45
- package/src/transform/isValidReferenceUri.ts +0 -55
- package/src/transform/materializeInverses.tests.ts +0 -81
- package/src/transform/materializeInverses.ts +0 -78
- package/src/transform/resolveReferences.tests.ts +0 -67
- package/src/transform/resolveReferences.ts +0 -36
- package/src/transform/resolveValue.tests.ts +0 -82
- package/src/transform/resolveValue.ts +0 -87
- package/src/transform/rowFilter.tests.ts +0 -100
- package/src/transform/rowFilter.ts +0 -55
- package/src/transform/transform.tests.ts +0 -132
- package/src/transform/transform.ts +0 -145
- package/src/transform/transformRow.malformedRefs.tests.ts +0 -127
- package/src/transform/transformRow.tests.ts +0 -466
- package/src/transform/transformRow.ts +0 -358
- package/src/transform/types.ts +0 -37
- package/tsconfig.json +0 -9
- package/vite.config.ts +0 -11
- package/vitest.config.ts +0 -50
package/LICENSE
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
166
|
+
|
package/README.md
CHANGED
|
@@ -177,6 +177,7 @@ pragma graph query "SELECT ?c WHERE { ?c ds:hasModifierFamily <https://ds.canoni
|
|
|
177
177
|
| `Property` | Configurable component property |
|
|
178
178
|
| `ImplementationObject` | Platform-specific implementation |
|
|
179
179
|
| `ImplementationLibrary` | Implementation library |
|
|
180
|
+
| `TokenBinding` | One symbol a block consumes, at one node, key, state and rank |
|
|
180
181
|
|
|
181
182
|
Run `pragma ontology lookup ds` for the full class list with today's instance
|
|
182
183
|
counts (it also carries classes this overview omits).
|
|
@@ -227,6 +228,41 @@ Run `pragma ontology lookup ds --class UIBlock` for the full declared set —
|
|
|
227
228
|
| `library` | ImplementationObject | ImplementationLibrary | Source library |
|
|
228
229
|
| `libraryTier` | ImplementationLibrary | Tier | Library's tier |
|
|
229
230
|
|
|
231
|
+
### Token Bindings
|
|
232
|
+
|
|
233
|
+
`ds:TokenBinding` records are **derived**, not authored: `deriveTokenBindings`
|
|
234
|
+
(`src/transform/tokenBindings.ts`) is their only writer and runs as a post-step of the
|
|
235
|
+
transform, parsing each block's `ds:anatomyDsl` literal with `@canonical/anatomy-dsl`
|
|
236
|
+
and following its `uri:` references transitively. A record is a blank node in the
|
|
237
|
+
block's own per-instance file.
|
|
238
|
+
|
|
239
|
+
| Property | Domain | Range | Description |
|
|
240
|
+
|----------|--------|-------|-------------|
|
|
241
|
+
| `hasTokenBinding` | UIBlock | TokenBinding | A symbol this block consumes |
|
|
242
|
+
| `consumesSymbol` | TokenBinding | `dt:TokenSymbol` | The symbol — exactly one, determined by the identity |
|
|
243
|
+
| `viaBlock` | TokenBinding | UIBlock | The tree it was reached through; equal to the block for an own-tree binding |
|
|
244
|
+
| `node` | TokenBinding | string | The node's tree path (`$root/nav list/level-1 entry/link`) |
|
|
245
|
+
| `styleKey` | TokenBinding | string | `anatomy:styleKey`, reused from the anatomy vocabulary |
|
|
246
|
+
| `styleState` | TokenBinding | string | `anatomy:styleState`; `"default"` for the unmarked key |
|
|
247
|
+
| `rank` | TokenBinding | integer | 1-based position in the value's fallback order |
|
|
248
|
+
|
|
249
|
+
The identity is the six-tuple `(block, viaBlock, node, styleKey, styleState, rank)`;
|
|
250
|
+
`consumesSymbol` is functionally determined by it. An inherited binding is therefore
|
|
251
|
+
just `FILTER(?via != ?block)`:
|
|
252
|
+
|
|
253
|
+
```sparql
|
|
254
|
+
SELECT ?block ?key ?sym WHERE {
|
|
255
|
+
?block ds:hasTokenBinding ?b .
|
|
256
|
+
?b ds:consumesSymbol ?sym ; anatomy:styleKey ?key ; ds:viaBlock ?via .
|
|
257
|
+
FILTER(?via != ?block)
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
The node is a **path**, not a role, because a role alone collides:
|
|
262
|
+
`global.pattern.table_of_contents` binds `role: link` at three depths with identical
|
|
263
|
+
styles. No parsed anatomy tree is written to the graph — the literal ships, and a
|
|
264
|
+
consumer that wants the tree parses it with the package.
|
|
265
|
+
|
|
230
266
|
---
|
|
231
267
|
|
|
232
268
|
## Explanation
|
|
@@ -310,8 +346,138 @@ ds:global.modifier_family.importance
|
|
|
310
346
|
|
|
311
347
|
### Dependencies
|
|
312
348
|
|
|
313
|
-
Runtime dependencies are declared in `package.json
|
|
314
|
-
|
|
349
|
+
Runtime dependencies are declared in `package.json`; read them there, never from this
|
|
350
|
+
file.
|
|
351
|
+
|
|
352
|
+
Two of them carry the anatomy–token seam. `@canonical/anatomy-dsl` supplies the
|
|
353
|
+
anatomy parser, the value grammar (`liftSymbols`) and the style-key roster
|
|
354
|
+
(`STYLE_KEYS`, `takesToken`, `definitions/registry.ttl`); `@canonical/token-ontology`
|
|
355
|
+
supplies the token strata as data (`data/s1.ttl`, `data/s2.ttl`, `data/s4.web.ttl`).
|
|
356
|
+
Both are reached through `import.meta.resolve`, never by a path into `node_modules`
|
|
357
|
+
and never by copying a file into this repository.
|
|
358
|
+
|
|
359
|
+
> **The anatomy-dsl dependency is still a local `file:` link, and that is a finding
|
|
360
|
+
> rather than a choice.** `@canonical/anatomy-dsl@0.5.0` is published, but its tarball
|
|
361
|
+
> ships no `dist/` — `files` lists it and `exports["."]` points at
|
|
362
|
+
> `./dist/esm/index.js`, and neither is in the package — so importing the package root
|
|
363
|
+
> fails with `Cannot find package` and `tsc` reports `TS2307` in every module that
|
|
364
|
+
> imports it. The swap to `"^0.5.0"` is one line and is blocked on a `0.5.1` published
|
|
365
|
+
> after a build. `@canonical/token-ontology` is already on its published range.
|
|
366
|
+
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
## The anatomies: authored, validated, written
|
|
370
|
+
|
|
371
|
+
The anatomies are written by hand, one file per anatomy, from the component's
|
|
372
|
+
implementation. Reading an implementation and choosing the node, the key and the symbol
|
|
373
|
+
it should bind is judgement, so it happens in the file, under review, rather than in a
|
|
374
|
+
derivation.
|
|
375
|
+
|
|
376
|
+
```bash
|
|
377
|
+
# The law over the corpus, and the one writer of anatomies/register.yaml and
|
|
378
|
+
# anatomies/census.json.
|
|
379
|
+
bun src/cli.ts anatomies validate [--write-register] [--only <uri>] [--json]
|
|
380
|
+
|
|
381
|
+
# The law over the authored files, offline, over one tier or over all of them.
|
|
382
|
+
bun src/cli.ts anatomies validate --authored [--tier <name>] [--json]
|
|
383
|
+
|
|
384
|
+
# The authored files into the document's anatomy_dsl cells. Dry by default.
|
|
385
|
+
bun src/cli.ts anatomies write [--apply] [--only <uri>] [--tier <name>] [--json]
|
|
386
|
+
|
|
387
|
+
# A snapshot of those cells, put back.
|
|
388
|
+
bun src/cli.ts anatomies restore <snapshot> [--apply] [--json]
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
`validate` is the gate: every symbol an anatomy binds resolves against the token graph,
|
|
392
|
+
every `uri:` names a block, every exception carries a register row, and the census's
|
|
393
|
+
floors hold. `ci.yml`'s `census-drift` job runs it with `--write-register` and diffs
|
|
394
|
+
`anatomies/census.json`.
|
|
395
|
+
|
|
396
|
+
**The files, and who writes them.**
|
|
397
|
+
|
|
398
|
+
| File | Writer | What it is |
|
|
399
|
+
|---|---|---|
|
|
400
|
+
| `anatomies/authored/<tier>/<uri>.yaml` | by hand | One anatomy each. Reviewed as files in a pull request, and the text of the file is the text of the `anatomy_dsl` cell the write sends |
|
|
401
|
+
| `anatomies/census.json` | `validate --write-register` | The corpus and its counts. The one committed generated file, and the one thing CI diffs |
|
|
402
|
+
| `anatomies/register.yaml` | `validate --write-register` | Every exception, with its hand-written rationale preserved. **Not committed** — most of its rows today are the parse failures of the retired notation, and they disappear as the anatomies are authored, so the file would land at many times its steady-state size. `readRegister` reads a missing file as an empty register, and the census carries the counts |
|
|
403
|
+
| `anatomies/snapshots/<stamp>-uiBlocks.json` | `write --apply`, `restore --apply` | What every `anatomy_dsl` cell said before the run touched it. Gitignored: a recovery artefact of one run against one document |
|
|
404
|
+
|
|
405
|
+
Nothing here writes `data/`, which is the Coda pull sync's alone, and nothing here
|
|
406
|
+
writes `anatomies/authored/`.
|
|
407
|
+
|
|
408
|
+
**The write, in the order it is meant to be run.** `anatomies write` is dry by
|
|
409
|
+
default: it reads the authored files, runs the law over them, reads the live
|
|
410
|
+
`uiBlocks` table and prints the plan — how many files were read, how many cells
|
|
411
|
+
already hold theirs, which cells would change, and any file whose `uri` names no row.
|
|
412
|
+
Read that, then write one anatomy as a canary with `--only <uri>` and look at the cell
|
|
413
|
+
in the document, and only then let the rest follow.
|
|
414
|
+
|
|
415
|
+
```bash
|
|
416
|
+
bun src/cli.ts anatomies write # the plan
|
|
417
|
+
bun src/cli.ts anatomies write --only global.component.button --apply # the canary
|
|
418
|
+
bun src/cli.ts anatomies write --apply # the rest
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
**A tier at a time, and this round is the top-level tiers.** `anatomies/authored/` is
|
|
422
|
+
split by tier, and only the top-level tiers' anatomies are written to the document
|
|
423
|
+
now: `global`, `apps` and `sites` — of which only `global` and `apps` have anything
|
|
424
|
+
authored yet, so those two are what this round's write names. The second-level
|
|
425
|
+
tiers — `apps_landscape`, `apps_launchpad`, `apps_lxd`, `apps_anbox` and
|
|
426
|
+
`sites_webcomponentsprototype` — stay
|
|
427
|
+
authored, reviewed and lawful in their directories, and no cell of theirs is sent.
|
|
428
|
+
`--tier <name>` is what says so: it takes one tier per occurrence, or a
|
|
429
|
+
comma-separated list, or any mix of the two (`--tier global --tier apps,sites`), and
|
|
430
|
+
it names the directory under `anatomies/authored/`, which is also the first dotted
|
|
431
|
+
segment of every `uri` in it. A tier that matches no authored file is refused, naming
|
|
432
|
+
the directory and the tiers it does hold, because a misspelt tier that quietly
|
|
433
|
+
planned zero cells reads exactly like a corpus already in step. It narrows the plan
|
|
434
|
+
and nothing else: the **law still runs over every authored file**, because a corpus is
|
|
435
|
+
lawful or not as a whole and writing a different anatomy out of it does not make an
|
|
436
|
+
unregistered symbol lawful — so an unlawful file in a tier this round leaves alone
|
|
437
|
+
still refuses the run. What is narrowed is the plan, and its counts and its header
|
|
438
|
+
line say which tiers they are of (`Anatomy cells — the authored anatomies against
|
|
439
|
+
uiBlocks.anatomy_dsl (tiers: global, apps)`). `--only` composes with it, inside the
|
|
440
|
+
tiers in force. On `validate --authored` the same flag narrows which files are READ,
|
|
441
|
+
so an author with one tier open gets that tier's answer and the others are never
|
|
442
|
+
opened.
|
|
443
|
+
|
|
444
|
+
```bash
|
|
445
|
+
bun src/cli.ts anatomies validate --authored --tier global # one tier's law
|
|
446
|
+
bun src/cli.ts anatomies write --tier global,apps # the plan for this round
|
|
447
|
+
bun src/cli.ts anatomies write --tier global,apps --apply # and the write
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
`--apply` is refused, with the reason named, when `CI` is set (the write is an act
|
|
451
|
+
with a human reading the plan, never a pipeline step), when `CODA_WRITE_TOKEN` is
|
|
452
|
+
unset, when the law reports a finding (a warning prints and the run proceeds), when an
|
|
453
|
+
authored file names no row in the document, and when the plan is empty. When every
|
|
454
|
+
gate is open it writes `anatomies/snapshots/<stamp>-uiBlocks.json` — every live row's
|
|
455
|
+
row id, `uri` and cell — **before** its first write, then updates the cells one call
|
|
456
|
+
at a time, then re-reads and checks that every cell it wrote reads back as its file.
|
|
457
|
+
Coda answers 202 and queues a write, so that re-read is the only thing standing
|
|
458
|
+
between a write it silently dropped and a run that claims success.
|
|
459
|
+
|
|
460
|
+
**Where it writes comes from `source.json`, and nowhere else.** The root
|
|
461
|
+
configuration already says all four things the write needs, and they are read through
|
|
462
|
+
the same `validateConfig` every other command reads it through: the document id, the
|
|
463
|
+
`uiBlocks` table id under `extract.tables`, the column that carries the anatomy — the
|
|
464
|
+
`@context` key mapped to `ds:anatomyDsl` in `transform.tables.uiBlocks` — and the
|
|
465
|
+
column a row's subject is built from, which is the placeholder in that table's
|
|
466
|
+
`uriTemplate`. So the write plans against the same table and the same cell the pull
|
|
467
|
+
sync reads, by construction, and a rename in the document is one edit rather than two.
|
|
468
|
+
Column ids are learned at run time from the table itself, because a cell keyed by
|
|
469
|
+
display name is accepted with a 202 and changes nothing.
|
|
470
|
+
|
|
471
|
+
`anatomies restore <snapshot>` is the other half: it plans the cells that differ from
|
|
472
|
+
a snapshot, behind the same gates, and takes a fresh snapshot of its own before it
|
|
473
|
+
writes — a restore is a write too, and restoring the wrong file has to be undoable.
|
|
474
|
+
It only ever writes the `anatomy_dsl` column, and it never creates a row: the roster
|
|
475
|
+
of blocks is the pull sync's.
|
|
476
|
+
|
|
477
|
+
The whole write path — its READS included — runs on `CODA_WRITE_TOKEN`, a write-scoped
|
|
478
|
+
token for the one document, kept in the gitignored `.env`. It never touches
|
|
479
|
+
`CODA_API_KEY`, the read-only key CI and the daily sync hold, which is what keeps that
|
|
480
|
+
credential un-escalatable by any code path that reaches for a write.
|
|
315
481
|
|
|
316
482
|
---
|
|
317
483
|
|
|
@@ -466,7 +632,14 @@ Both run `bun run build` (extract + transform) and commit any changes to `data/`
|
|
|
466
632
|
|
|
467
633
|
`data/` is fully regenerated on every sync, so a broken extract (expired API
|
|
468
634
|
token, renamed grid, partial API response) could silently destroy committed
|
|
469
|
-
spec data.
|
|
635
|
+
spec data. Five independent layers prevent that.
|
|
636
|
+
|
|
637
|
+
They divide the work along one line: **a row that asserts nothing is skipped;
|
|
638
|
+
a row that asserts something but cannot be emitted fails the sync.** A row
|
|
639
|
+
with no name is not a thing yet — every Coda grid accumulates such rows,
|
|
640
|
+
because clicking into the last row of a grid creates one — and halting the
|
|
641
|
+
pipeline over it costs a human deletion to clear. A row that carries a name is
|
|
642
|
+
something the document says exists, so losing it must be loud.
|
|
470
643
|
|
|
471
644
|
1. **Expected-table manifest** — the transform derives the set of tables it
|
|
472
645
|
expects from `source.json` (outputs, references, and `@inline` embeds) and
|
|
@@ -477,17 +650,74 @@ spec data. Three independent layers prevent that:
|
|
|
477
650
|
transform aborts when a non-empty table yields zero subjects, the subject
|
|
478
651
|
count drops >10%, any tier file disappears, or the triple count drops >5%
|
|
479
652
|
(`src/transform/deltaGuards.ts`, `src/transform/collectDataMetrics.ts`).
|
|
480
|
-
3. **
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
`
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
653
|
+
3. **Identity filters** — each table declares, in `source.json`, the column
|
|
654
|
+
that carries a row's identity (`rowFilter.nonEmpty`). A row whose identity
|
|
655
|
+
column is empty is excluded before transformation: it is not a subject and
|
|
656
|
+
never becomes one, so it can neither produce a degenerate IRI nor trip the
|
|
657
|
+
guard below. The count of excluded rows is reported on every sync and
|
|
658
|
+
appears in the job summary, so blanks stay visible without ever being
|
|
659
|
+
fatal (`src/transform/rowFilter.ts`,
|
|
660
|
+
`src/transform/reportFilteredRows.ts`). Deleting them upstream is optional
|
|
661
|
+
tidying. Every configured table must declare such a filter, which
|
|
662
|
+
`src/transform/identityFilter.tests.ts` enforces: a table without one is a
|
|
663
|
+
latent outage.
|
|
664
|
+
4. **Malformed-row guard** — a row whose `uri` is *present but degenerate*
|
|
665
|
+
(a blank or dangling upstream reference leaves empty dot-separated
|
|
666
|
+
segments, e.g. `ds:global..`) cannot be emitted as valid Turtle, so the
|
|
667
|
+
transform drops it and its subject silently disappears from `data/`. The
|
|
668
|
+
threshold is **zero**: one such row fails the sync, naming the offending
|
|
669
|
+
URI and its table, so the defect is fixed at the source instead of
|
|
670
|
+
surfacing later as an unexplained deletion count
|
|
671
|
+
(`src/transform/deltaGuards.ts`, `src/transform/classifySubjectUri.ts`).
|
|
672
|
+
A row with **no** `uri` at all is a routine skip (a trailing blank grid
|
|
673
|
+
row) and is not counted. Its sibling, the **untypable-row guard**, covers
|
|
674
|
+
the other way a named row vanishes: its identity resolves but its `type`
|
|
675
|
+
column is empty or dangling, so it cannot be given an RDF class. Same
|
|
676
|
+
threshold of zero, same escape hatch. Before it existed such a row was
|
|
677
|
+
dropped in total silence — no warning, no count, no failure.
|
|
678
|
+
5. **Workflow content-loss guard** — after regeneration, the sync workflow
|
|
679
|
+
checks the staged git diff and refuses to commit when the sync *loses*
|
|
680
|
+
committed content: deletions that nothing added back, measured as **net
|
|
681
|
+
loss** (deleted − added) against a share of the committed corpus, with an
|
|
682
|
+
absolute ceiling as a catastrophic backstop
|
|
683
|
+
(`src/scripts/evaluateDataDeletion.ts`). Content rewritten in place —
|
|
684
|
+
large deletions with comparable additions, which is what re-derived
|
|
685
|
+
authored literals look like — passes; content that simply disappears does
|
|
686
|
+
not. Being a proportion, it does not need raising as the corpus grows.
|
|
687
|
+
|
|
688
|
+
On any guard failure the run fails without committing, the job summary names
|
|
689
|
+
*which* guard tripped and what to fix, and an issue is opened/annotated with
|
|
690
|
+
the same text.
|
|
691
|
+
|
|
692
|
+
#### Escape hatches
|
|
693
|
+
|
|
694
|
+
Both loss-shaped guards are fail-closed by default and share one escape
|
|
695
|
+
hatch; the two row-level guards share a second one, so that allowing an
|
|
696
|
+
intentional mass deletion does not also wave through rows the source is
|
|
697
|
+
losing by accident. Identity filters have no escape hatch and need none —
|
|
698
|
+
they never fail a sync.
|
|
699
|
+
|
|
700
|
+
| Situation | Manual workflow input | Environment variable |
|
|
701
|
+
| --- | --- | --- |
|
|
702
|
+
| Intentional large deletion (a planned cleanup in Coda) | `allow_shrink` | `SYNC_ALLOW_SHRINK=1` |
|
|
703
|
+
| Known-malformed upstream rows that cannot be fixed yet | `allow_malformed_rows` | `SYNC_ALLOW_MALFORMED_ROWS=1` |
|
|
704
|
+
| Named rows whose `type` cannot be filled in yet | `allow_malformed_rows` | `SYNC_ALLOW_MALFORMED_ROWS=1` |
|
|
705
|
+
|
|
706
|
+
Either input downgrades its guard to a warning for that run. Locally:
|
|
707
|
+
`SYNC_ALLOW_SHRINK=1 bun run build`. Scheduled runs never set either one.
|
|
708
|
+
|
|
709
|
+
The content-loss thresholds can also be overridden per run with
|
|
710
|
+
`SYNC_MAX_NET_LINE_LOSS_RATIO`, `SYNC_MAX_NET_FILE_LOSS_RATIO` and
|
|
711
|
+
`SYNC_MAX_NET_DELETED_LINES`; prefer the escape hatch, which leaves the
|
|
712
|
+
defaults intact.
|
|
713
|
+
|
|
714
|
+
### Setting up the two API tokens
|
|
715
|
+
|
|
716
|
+
There are two, and the split is the point: CI holds a read-only token, and the token
|
|
717
|
+
that can write is never in CI.
|
|
718
|
+
|
|
719
|
+
**`CODA_API_KEY` — read only, held by CI.** Used by `ds:extract`, `ds:list`,
|
|
720
|
+
`ds:transform` and the daily pull sync.
|
|
491
721
|
|
|
492
722
|
1. Go to <https://coda.io/account>
|
|
493
723
|
2. Scroll to **API settings**
|
|
@@ -499,6 +729,17 @@ for that run. Locally: `SYNC_ALLOW_SHRINK=1 bun run build`.
|
|
|
499
729
|
- Doc ID: the full `_d`-prefixed value from the Coda URL — for example, given `https://coda.io/d/Design-System-Database_dNyzE_TLZDh/`, the ID is `_dNyzE_TLZDh`. Verify by navigating to `https://coda.io/d/_dNyzE_TLZDh`
|
|
500
730
|
6. Copy the token, then in your GitHub repo go to **Settings > Secrets and variables > Actions** and create a secret named `CODA_API_KEY` with the token value
|
|
501
731
|
|
|
732
|
+
**`CODA_WRITE_TOKEN` — read and write, local only.** Used by `anatomies write` and
|
|
733
|
+
`anatomies restore`, for their reads as well as their writes. The same steps, with
|
|
734
|
+
**Read/Write** access and the same document restriction, and it goes in the gitignored
|
|
735
|
+
`.env` — never in CI, and never in a workflow secret.
|
|
736
|
+
|
|
737
|
+
> **The API host is the workspace's own**, `https://docs.superhuman.com/apis/v1`, not
|
|
738
|
+
> `coda.io`. The two do not answer for the same state: a read against `coda.io`
|
|
739
|
+
> returns a stale view of this workspace, and a write against it is accepted with a
|
|
740
|
+
> 202 and never applies. `CODA_API_BASE` in `src/providers/CodaProvider.ts` is the one
|
|
741
|
+
> place that says so, and a test asserts it.
|
|
742
|
+
|
|
502
743
|
---
|
|
503
744
|
|
|
504
745
|
## Version
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
4
|
+
|
|
5
|
+
ds:apps.layout.empty_state a ds:Layout;
|
|
6
|
+
ds:name "EmptyState";
|
|
7
|
+
ds:summary "Empty states are temporary app layouts used when there is no data to display to the user. They can be encountered at page level, section level or component level. They can be encountered the first time a user interacts with a feature that has not yet been configured, when a search action does not return any results, or when data has been deleted or is unavailable.";
|
|
8
|
+
ds:anatomyDsl "";
|
|
9
|
+
ds:anatomyClassic "\n\n1. **Icon:** a visual clue that enforces the message. \n2. **Heading:** a short descriptioon of the current state\n3. **Description:** further explanation regarding the reason of the empty state and what the user can do to resolve it.\n4. **Actions:** the primary action should be the one helping the user resolve the empty state. A secondary action is allowed that would offer additional guidance.\n\n";
|
|
10
|
+
ds:usage "";
|
|
11
|
+
ds:guidelines "";
|
|
12
|
+
ds:tier ds:apps;
|
|
13
|
+
ds:documentationStage ds:tag.needsdefinition.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
@prefix ds: <https://ds.canonical.com/>.
|
|
2
|
+
@prefix anatomy: <https://anatomy.canonical.com/>.
|
|
3
|
+
@prefix dt: <https://dt.canonical.com/>.
|
|
2
4
|
|
|
3
5
|
ds:apps.pattern.action_bar a ds:Pattern;
|
|
4
6
|
ds:name "ActionBar";
|
|
5
|
-
ds:summary "";
|
|
7
|
+
ds:summary "**Definition**\n\nAn action bar is a pattern that groups a set of controls directly related to the entire current view or a selected object within the view (e.g. a table, a side panel). The controls in an action bar can be task-oriented (examples) or otherwise (examples). Action bars reduce cognitive load by combining related actions in a predictable, easily accessible manner and in order of importance. \n\nFor the sake of simplicity, sort, group, toggle, search and filter actions have been excluded from the scope of action bars.\n\n\n\n**How is an action bar different from a button group?**\n\nA button group is a structural variation of the broader action bar pattern. Other structural variations are menu group, icon button group and overdrive menu. All variations are detailed below in the ‘Action Bar Types’ section.\n\n\n\n";
|
|
6
8
|
ds:anatomyDsl "";
|
|
7
9
|
ds:anatomyClassic "";
|
|
8
10
|
ds:usage "";
|
|
9
11
|
ds:guidelines "";
|
|
10
12
|
ds:tier ds:apps;
|
|
11
|
-
ds:documentationStage ds:tag.
|
|
13
|
+
ds:documentationStage ds:tag.needsdocumentation.
|