spell-ui 0.8.9 → 0.8.11
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-components.md +9 -3
- package/README-frameworks.md +5 -5
- package/README-migrating.md +2 -2
- package/README.md +5 -5
- package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
- package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
- package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
- package/dist/Dragging-B93hbRxF.js.map +1 -0
- package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
- package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
- package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
- package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
- package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
- package/dist/PrefStore-Di83C0bY.js.map +1 -0
- package/dist/ScrollingRow-DkOtx2QK.js +89 -0
- package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
- package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
- package/dist/SitePages-B3zd5Zgu.js.map +1 -0
- package/dist/SlottedItems-DWfAZYqM.js +88 -0
- package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
- package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
- package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
- package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
- package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
- package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
- package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
- package/dist/UIButton-BmIiXYDC.js +5 -0
- package/dist/UIButton-BmIiXYDC.js.map +1 -0
- package/dist/UIGrid-2ZUA1YEc.js +200 -0
- package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
- package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
- package/dist/UIInput-B3K0w4ow.js.map +1 -0
- package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
- package/dist/UIKeys-DmXvyJuU.js.map +1 -0
- package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
- package/dist/UILabel-pCjKxQlQ.js.map +1 -0
- package/dist/UIMenu-CqURPocK.js +42 -0
- package/dist/UIMenu-CqURPocK.js.map +1 -0
- package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
- package/dist/UIRuntime-BXutHphM.js.map +1 -0
- package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
- package/dist/UISegment-BF4Tgy2D.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +8 -0
- package/dist/_spell-element/vocabulary.types.d.ts +20 -2
- package/dist/_util/Dragging.d.ts +14 -2
- package/dist/_util/dom.d.ts +12 -8
- package/dist/_util/measures/Dimension.d.ts +1 -1
- package/dist/_util/persist/PrefStore.d.ts +7 -2
- package/dist/_util/persist/persist.types.d.ts +6 -0
- package/dist/_util/platform.d.ts +54 -0
- package/dist/_util/string.d.ts +32 -0
- package/dist/api.js +2 -3
- package/dist/api.js.map +1 -1
- package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
- package/dist/apple.palette-YLjENwUt.js.map +1 -0
- package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
- package/dist/classic-BHyJFvQa.js.map +1 -0
- package/dist/components/ComponentDefinitions.d.ts +55 -8
- package/dist/components/components.es.d.ts +2 -1
- package/dist/components/components.planned.d.ts +1 -1
- package/dist/components/components.types.d.ts +22 -0
- package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
- package/dist/components/ui-action/UIAction.d.ts +38 -1
- package/dist/components/ui-action/UIAction.en.d.ts +17 -8
- package/dist/components/ui-action/UIAction.es.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.d.ts +1 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
- package/dist/components/ui-app-menu/UIAppMenu.d.ts +41 -0
- package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
- package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
- package/dist/components/ui-app-menu/index.d.ts +2 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
- package/dist/components/ui-button/UIButton.d.ts +5 -4
- package/dist/components/ui-button/UIButton.en.d.ts +4 -3
- package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
- package/dist/components/ui-button/UIButton.types.d.ts +1 -1
- package/dist/components/ui-button/UIButtons.d.ts +7 -5
- package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
- package/dist/components/ui-button/UIButtons.es.d.ts +1 -0
- package/dist/components/ui-button/UIOr.d.ts +1 -0
- package/dist/components/ui-button/UIOr.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
- package/dist/components/ui-card/UICard.d.ts +1 -0
- package/dist/components/ui-card/UICard.en.d.ts +1 -0
- package/dist/components/ui-card/UICards.d.ts +1 -0
- package/dist/components/ui-card/UICards.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
- package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
- package/dist/components/ui-code/UICode.d.ts +12 -1
- package/dist/components/ui-code/UICode.en.d.ts +1 -0
- package/dist/components/ui-code/UICode.types.d.ts +9 -0
- package/dist/components/ui-comment/UIComment.d.ts +1 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.d.ts +1 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.d.ts +1 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
- package/dist/components/ui-container/UIContainer.d.ts +54 -1
- package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
- package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
- package/dist/components/ui-device/UIDevice.d.ts +234 -0
- package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
- package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
- package/dist/components/ui-device/index.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
- package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
- package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.d.ts +1 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
- package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
- package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
- package/dist/components/ui-example/UIExample.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.d.ts +1 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.d.ts +1 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
- package/dist/components/ui-form/UIField.d.ts +11 -4
- package/dist/components/ui-form/UIField.en.d.ts +3 -2
- package/dist/components/ui-form/UIFields.d.ts +1 -0
- package/dist/components/ui-form/UIFields.en.d.ts +1 -0
- package/dist/components/ui-form/UIForm.d.ts +1 -0
- package/dist/components/ui-form/UIForm.en.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.d.ts +1 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
- package/dist/components/ui-grid/UIColumn.d.ts +4 -3
- package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
- package/dist/components/ui-grid/UIGrid.d.ts +1 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.d.ts +1 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.d.ts +1 -0
- package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.d.ts +1 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +5 -1
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
- package/dist/components/ui-image/UIImage.d.ts +1 -0
- package/dist/components/ui-image/UIImage.en.d.ts +1 -0
- package/dist/components/ui-image/UIImages.d.ts +1 -0
- package/dist/components/ui-image/UIImages.en.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.d.ts +1 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.d.ts +1 -0
- package/dist/components/ui-input/UIInput.en.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.d.ts +1 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
- package/dist/components/ui-item/UIItem.d.ts +19 -8
- package/dist/components/ui-item/UIItem.en.d.ts +2 -1
- package/dist/components/ui-items/UIItems.d.ts +1 -0
- package/dist/components/ui-items/UIItems.en.d.ts +1 -0
- package/dist/components/ui-json/UIJson.d.ts +1 -0
- package/dist/components/ui-json/UIJson.en.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.d.ts +1 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
- package/dist/components/ui-label/UILabel.d.ts +3 -2
- package/dist/components/ui-label/UILabel.en.d.ts +3 -2
- package/dist/components/ui-label/UILabels.d.ts +1 -0
- package/dist/components/ui-label/UILabels.en.d.ts +1 -0
- package/dist/components/ui-list/UIList.d.ts +1 -0
- package/dist/components/ui-list/UIList.en.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.d.ts +1 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
- package/dist/components/ui-markdown/MarkdownBox.d.ts +7 -2
- package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
- package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
- package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
- package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
- package/dist/components/ui-menu/TitleFit.d.ts +16 -1
- package/dist/components/ui-menu/UIMenu.d.ts +112 -9
- package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
- package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
- package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
- package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
- package/dist/components/ui-menu/index.d.ts +3 -1
- package/dist/components/ui-message/UIMessage.d.ts +3 -2
- package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
- package/dist/components/ui-modal/ModalDialogs.d.ts +35 -3
- package/dist/components/ui-modal/UIModal.d.ts +6 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +6 -0
- package/dist/components/ui-nag/UINag.d.ts +1 -0
- package/dist/components/ui-nag/UINag.en.d.ts +1 -0
- package/dist/components/ui-page/UIPage.d.ts +1 -0
- package/dist/components/ui-page/UIPage.en.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
- package/dist/components/ui-page-layout/index.d.ts +1 -0
- package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
- package/dist/components/ui-panel/UIPanel.d.ts +21 -2
- package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
- package/dist/components/ui-parts/UIActions.d.ts +1 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +11 -2
- package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
- package/dist/components/ui-parts/UIContent.d.ts +1 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.d.ts +1 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.d.ts +1 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.d.ts +1 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.d.ts +1 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
- package/dist/components/ui-parts/UIHeader.d.ts +4 -3
- package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
- package/dist/components/ui-parts/UIMeta.d.ts +1 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +18 -5
- package/dist/components/ui-parts/UISummary.d.ts +1 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.d.ts +1 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.d.ts +1 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
- package/dist/components/ui-popup/UIPopup.d.ts +21 -3
- package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
- package/dist/components/ui-progress/UIProgress.d.ts +3 -2
- package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
- package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.d.ts +1 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
- package/dist/components/ui-rail/UIRail.d.ts +4 -3
- package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
- package/dist/components/ui-rating/UIRating.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
- package/dist/components/ui-root/UIRoot.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.d.ts +1 -0
- package/dist/components/ui-search/UISearch.en.d.ts +1 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
- package/dist/components/ui-section/UISection.d.ts +3 -2
- package/dist/components/ui-section/UISection.en.d.ts +3 -2
- package/dist/components/ui-section/UISections.d.ts +1 -0
- package/dist/components/ui-section/UISections.en.d.ts +1 -0
- package/dist/components/ui-segment/UISegment.d.ts +9 -10
- package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
- package/dist/components/ui-segment/UISegments.d.ts +1 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.d.ts +1 -0
- package/dist/components/ui-select/UISelect.en.d.ts +1 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.d.ts +1 -0
- package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
- package/dist/components/ui-shape/UISide.d.ts +1 -0
- package/dist/components/ui-shape/UISide.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.d.ts +1 -0
- package/dist/components/ui-sides/UISides.en.d.ts +1 -0
- package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
- package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
- package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
- package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
- package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
- package/dist/components/ui-site-nav-button/index.d.ts +1 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -0
- package/dist/components/ui-space/UISpace.d.ts +1 -0
- package/dist/components/ui-space/UISpace.en.d.ts +1 -0
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +43 -7
- package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
- package/dist/components/ui-stack/UIStack.d.ts +1 -0
- package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
- package/dist/components/ui-step/UIStep.d.ts +1 -0
- package/dist/components/ui-step/UIStep.en.d.ts +1 -0
- package/dist/components/ui-step/UISteps.d.ts +3 -2
- package/dist/components/ui-step/UISteps.en.d.ts +3 -2
- package/dist/components/ui-sticky/UISticky.d.ts +1 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
- package/dist/components/ui-tab/UITab.d.ts +3 -2
- package/dist/components/ui-tab/UITab.en.d.ts +4 -3
- package/dist/components/ui-tab/UITabs.d.ts +5 -4
- package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
- package/dist/components/ui-table/TableGrammar.d.ts +2 -2
- package/dist/components/ui-table/UICell.d.ts +1 -0
- package/dist/components/ui-table/UICell.en.d.ts +1 -0
- package/dist/components/ui-table/UITable.d.ts +7 -6
- package/dist/components/ui-table/UITable.en.d.ts +7 -6
- package/dist/components/ui-terms/UITerm.d.ts +1 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.d.ts +1 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
- package/dist/components/ui-text/UILink.d.ts +1 -0
- package/dist/components/ui-text/UILink.en.d.ts +1 -0
- package/dist/components/ui-text/UIText.d.ts +2 -1
- package/dist/components/ui-text/UIText.en.d.ts +2 -1
- package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +37 -15
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
- package/dist/components/ui-toast/ToastStack.d.ts +9 -0
- package/dist/components/ui-toast/UIToast.d.ts +1 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.d.ts +1 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
- package/dist/components/ui-transition/UITransition.d.ts +1 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
- package/dist/components/ui-tree/UITree.d.ts +102 -2
- package/dist/components/ui-tree/UITree.en.d.ts +14 -1
- package/dist/components/ui-tree/UITree.es.d.ts +3 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
- package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
- package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
- package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.d.ts +1 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.d.ts +1 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
- package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
- package/dist/components.es-DEa8Ep42.js.map +1 -0
- package/dist/core.js +795 -702
- package/dist/core.js.map +1 -1
- package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
- package/dist/crisp-DIpY320U.js.map +1 -0
- package/dist/crisp.theme-Ir9p4BDC.js +5 -0
- package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
- package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
- package/dist/dark-B5s4QbmU.js.map +1 -0
- package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
- package/dist/dist-BQT4KajA.js.map +1 -0
- package/dist/docs-components/docs-components.types.d.ts +6 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
- package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
- package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
- package/dist/elements/PartComponent.d.ts +5 -0
- package/dist/elements/PopoverPanel.d.ts +12 -1
- package/dist/elements/Validator.d.ts +1 -1
- package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
- package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
- package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
- package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
- package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
- package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
- package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
- package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
- package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
- package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
- package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
- package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
- package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
- package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
- package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
- package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
- package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
- package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
- package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
- package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
- package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
- package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
- package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
- package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
- package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
- package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
- package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
- package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
- package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
- package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
- package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
- package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
- package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
- package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
- package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
- package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
- package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
- package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
- package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
- package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
- package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
- package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
- package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
- package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
- package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
- package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
- package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
- package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
- package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
- package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
- package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
- package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
- package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
- package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
- package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
- package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
- package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
- package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
- package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
- package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
- package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
- package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
- package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
- package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
- package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
- package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
- package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
- package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
- package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
- package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
- package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
- package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
- package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
- package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
- package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
- package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
- package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
- package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
- package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
- package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
- package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
- package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
- package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
- package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
- package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
- package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
- package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
- package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
- package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
- package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
- package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
- package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
- package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
- package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
- package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
- package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
- package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
- package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
- package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
- package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
- package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
- package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
- package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
- package/dist/forms.js +65 -75
- package/dist/forms.js.map +1 -1
- package/dist/fruity-CsfZNeXb.js +5 -0
- package/dist/fruity-CsfZNeXb.js.map +1 -0
- package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
- package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
- package/dist/glass-BCK30hpe.js +5 -0
- package/dist/glass-BCK30hpe.js.map +1 -0
- package/dist/glass.theme-C7QSRB7b.js +5 -0
- package/dist/glass.theme-C7QSRB7b.js.map +1 -0
- package/dist/hot.js +18 -32
- package/dist/hot.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +96 -91
- package/dist/jsx.d.ts +3875 -711
- package/dist/matrix-DEnqBfwC.js +5 -0
- package/dist/matrix-DEnqBfwC.js.map +1 -0
- package/dist/matrix.theme-YV6_nvXv.js +5 -0
- package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
- package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
- package/dist/merlot-DFa6kDbA.js.map +1 -0
- package/dist/merlot.theme-B1K8nn2u.js +5 -0
- package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
- package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
- package/dist/midnight-q0-3-V6U.js.map +1 -0
- package/dist/midnight.theme-C7M02wTD.js +5 -0
- package/dist/midnight.theme-C7M02wTD.js.map +1 -0
- package/dist/mockup-D0vovNO7.js +5 -0
- package/dist/mockup-D0vovNO7.js.map +1 -0
- package/dist/mockup.theme-C92r9NI0.js +5 -0
- package/dist/mockup.theme-C92r9NI0.js.map +1 -0
- package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
- package/dist/paper-DPxolmdy.js.map +1 -0
- package/dist/paper.theme-BAKk3DY1.js +5 -0
- package/dist/paper.theme-BAKk3DY1.js.map +1 -0
- package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
- package/dist/persist.types-D7N7GewC.js.map +1 -0
- package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
- package/dist/pop-Dw_6k177.js.map +1 -0
- package/dist/pop.theme-Cw-yD0MO.js +5 -0
- package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
- package/dist/property/PropertyEditorPages.d.ts +1 -1
- package/dist/property/PropertyLayouts.d.ts +119 -0
- package/dist/property/PropertySchemas.d.ts +5 -1
- package/dist/property/index.d.ts +2 -0
- package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
- package/dist/runtime/Browser.d.ts +7 -0
- package/dist/runtime/DataTooltips.d.ts +2 -0
- package/dist/runtime/Keyboard.d.ts +4 -1
- package/dist/runtime/Toasts.d.ts +10 -0
- package/dist/runtime/runtime.types.d.ts +52 -0
- package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
- package/dist/search-C2Rq9HF1.js.map +1 -0
- package/dist/spell-CB-MivSX.js +5 -0
- package/dist/spell-CB-MivSX.js.map +1 -0
- package/dist/spell.theme-CUoc5rTq.js +5 -0
- package/dist/spell.theme-CUoc5rTq.js.map +1 -0
- package/dist/styles/StyleGenerator.d.ts +7 -0
- package/dist/styles/styles.en.d.ts +27 -18
- package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
- package/dist/styles.en-DZlSJiOR.js.map +1 -0
- package/dist/styles.js +9 -10
- package/dist/styles.js.map +1 -1
- package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
- package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
- package/dist/ui-accordion.js +59 -60
- package/dist/ui-accordion.js.map +1 -1
- package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
- package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
- package/dist/ui-action.js +73 -45
- package/dist/ui-action.js.map +1 -1
- package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
- package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
- package/dist/ui-ad.editor-BHTDuSii.js +5 -0
- package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
- package/dist/ui-ad.js +8 -9
- package/dist/ui-ad.js.map +1 -1
- package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
- package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
- package/dist/ui-app-menu.js +89 -0
- package/dist/ui-app-menu.js.map +1 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
- package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
- package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
- package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
- package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
- package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
- package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
- package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
- package/dist/ui-breadcrumbs.js +18 -17
- package/dist/ui-breadcrumbs.js.map +1 -1
- package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
- package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
- package/dist/ui-button.js +157 -156
- package/dist/ui-button.js.map +1 -1
- package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
- package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
- package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
- package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
- package/dist/ui-calendar.js +148 -157
- package/dist/ui-calendar.js.map +1 -1
- package/dist/ui-card.editor-BBZj9e03.js +5 -0
- package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
- package/dist/ui-card.js +70 -70
- package/dist/ui-card.js.map +1 -1
- package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
- package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
- package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
- package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
- package/dist/ui-checkbox.js +49 -48
- package/dist/ui-checkbox.js.map +1 -1
- package/dist/ui-code.editor-Drr_FVB6.js +5 -0
- package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
- package/dist/ui-code.js +116 -79
- package/dist/ui-code.js.map +1 -1
- package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
- package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
- package/dist/ui-column.editor-hdUb-qwT.js +5 -0
- package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
- package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
- package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
- package/dist/ui-comment.js +15 -14
- package/dist/ui-comment.js.map +1 -1
- package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
- package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
- package/dist/ui-components.editor-BKFXnARt.js +5 -0
- package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
- package/dist/ui-components.js +12 -13
- package/dist/ui-components.js.map +1 -1
- package/dist/ui-container.editor-CBNhNkRm.js +5 -0
- package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
- package/dist/ui-container.js +106 -21
- package/dist/ui-container.js.map +1 -1
- package/dist/ui-content.editor-B78lxK3P.js +5 -0
- package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
- package/dist/ui-date.editor-PHEnU7QX.js +5 -0
- package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
- package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
- package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
- package/dist/ui-detail.editor-wliuVbx3.js +5 -0
- package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
- package/dist/ui-device.editor-kl48NVma.js +5 -0
- package/dist/ui-device.editor-kl48NVma.js.map +1 -0
- package/dist/ui-device.js +436 -0
- package/dist/ui-device.js.map +1 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
- package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
- package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
- package/dist/ui-diagram.js +128 -129
- package/dist/ui-diagram.js.map +1 -1
- package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
- package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
- package/dist/ui-dimension.js +111 -12
- package/dist/ui-dimension.js.map +1 -1
- package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
- package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
- package/dist/ui-dimmer.js +29 -30
- package/dist/ui-dimmer.js.map +1 -1
- package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
- package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
- package/dist/ui-divider.js +9 -10
- package/dist/ui-divider.js.map +1 -1
- package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
- package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
- package/dist/ui-dropdown.js +155 -156
- package/dist/ui-dropdown.js.map +1 -1
- package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
- package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
- package/dist/ui-embed.js +23 -24
- package/dist/ui-embed.js.map +1 -1
- package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
- package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
- package/dist/ui-emoji.js +63 -64
- package/dist/ui-emoji.js.map +1 -1
- package/dist/ui-event.editor-Bk17y7wW.js +5 -0
- package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
- package/dist/ui-example.editor-D46Vnctp.js +5 -0
- package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
- package/dist/ui-example.js +67 -74
- package/dist/ui-example.js.map +1 -1
- package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
- package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
- package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
- package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
- package/dist/ui-feed.js +26 -25
- package/dist/ui-feed.js.map +1 -1
- package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
- package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
- package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
- package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
- package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
- package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
- package/dist/ui-flag.js +13 -14
- package/dist/ui-flag.js.map +1 -1
- package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
- package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
- package/dist/ui-flyout.js +10 -11
- package/dist/ui-flyout.js.map +1 -1
- package/dist/ui-form.editor-BJC3WhNf.js +5 -0
- package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
- package/dist/ui-form.js +199 -195
- package/dist/ui-form.js.map +1 -1
- package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
- package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
- package/dist/ui-grid.js +43 -234
- package/dist/ui-grid.js.map +1 -1
- package/dist/ui-header.editor-meOjCASK.js +5 -0
- package/dist/ui-header.editor-meOjCASK.js.map +1 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
- package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
- package/dist/ui-icon-picker.js +64 -69
- package/dist/ui-icon-picker.js.map +1 -1
- package/dist/ui-icon.editor-DoKK49PD.js +5 -0
- package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
- package/dist/ui-icon.js +15 -14
- package/dist/ui-icon.js.map +1 -1
- package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
- package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
- package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
- package/dist/ui-image.js +26 -26
- package/dist/ui-image.js.map +1 -1
- package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
- package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
- package/dist/ui-include.editor-CZcsVJbH.js +5 -0
- package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
- package/dist/ui-include.js +21 -22
- package/dist/ui-include.js.map +1 -1
- package/dist/ui-input.editor-budoNoB0.js +5 -0
- package/dist/ui-input.editor-budoNoB0.js.map +1 -0
- package/dist/ui-input.js +131 -130
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-item.editor-BlWp1HXu.js +5 -0
- package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
- package/dist/ui-item.js +127 -113
- package/dist/ui-item.js.map +1 -1
- package/dist/ui-items.editor-GOul3Xss.js +5 -0
- package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
- package/dist/ui-items.js +11 -12
- package/dist/ui-items.js.map +1 -1
- package/dist/ui-json.editor-BgZbrB_W.js +5 -0
- package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
- package/dist/ui-json.js +18 -19
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
- package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
- package/dist/ui-keys.js +2 -3
- package/dist/ui-label.editor-BVUYLSUs.js +5 -0
- package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
- package/dist/ui-label.js +22 -22
- package/dist/ui-label.js.map +1 -1
- package/dist/ui-labels.editor-BWJth86p.js +5 -0
- package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
- package/dist/ui-link.editor-CpI53scP.js +5 -0
- package/dist/ui-link.editor-CpI53scP.js.map +1 -0
- package/dist/ui-list.editor-DhBZIkAa.js +5 -0
- package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
- package/dist/ui-list.js +9 -10
- package/dist/ui-list.js.map +1 -1
- package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
- package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
- package/dist/ui-loader.js +10 -11
- package/dist/ui-loader.js.map +1 -1
- package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
- package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
- package/dist/ui-markdown.js +208 -154
- package/dist/ui-markdown.js.map +1 -1
- package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
- package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
- package/dist/ui-menu.js +815 -223
- package/dist/ui-menu.js.map +1 -1
- package/dist/ui-message.editor-vfT0pyu5.js +5 -0
- package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
- package/dist/ui-message.js +32 -33
- package/dist/ui-message.js.map +1 -1
- package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
- package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
- package/dist/ui-modal.editor-B6gmmGsR.js +5 -0
- package/dist/ui-modal.editor-B6gmmGsR.js.map +1 -0
- package/dist/ui-modal.js +128 -99
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
- package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
- package/dist/ui-nag.js +23 -24
- package/dist/ui-nag.js.map +1 -1
- package/dist/ui-or.editor-BfBLNVgm.js +5 -0
- package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
- package/dist/ui-page-layout.js +363 -0
- package/dist/ui-page-layout.js.map +1 -0
- package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
- package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
- package/dist/ui-page.js +11 -12
- package/dist/ui-page.js.map +1 -1
- package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
- package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
- package/dist/ui-panel.js +105 -27
- package/dist/ui-panel.js.map +1 -1
- package/dist/ui-parts.js +83 -68
- package/dist/ui-parts.js.map +1 -1
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
- package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
- package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
- package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
- package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
- package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
- package/dist/ui-placeholder.js +23 -19
- package/dist/ui-placeholder.js.map +1 -1
- package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
- package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
- package/dist/ui-popup.js +107 -100
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
- package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
- package/dist/ui-progress.js +23 -24
- package/dist/ui-progress.js.map +1 -1
- package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
- package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
- package/dist/ui-property-editor.js +649 -277
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
- package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
- package/dist/ui-property.editor-BC-jtjjt.js +5 -0
- package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
- package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
- package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
- package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
- package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
- package/dist/ui-quote.js +8 -9
- package/dist/ui-quote.js.map +1 -1
- package/dist/ui-radio.editor-DPzActfO.js +5 -0
- package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
- package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
- package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
- package/dist/ui-rail.js +11 -12
- package/dist/ui-rail.js.map +1 -1
- package/dist/ui-rating.editor-C19syymj.js +5 -0
- package/dist/ui-rating.editor-C19syymj.js.map +1 -0
- package/dist/ui-rating.js +40 -49
- package/dist/ui-rating.js.map +1 -1
- package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
- package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
- package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
- package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
- package/dist/ui-reveal.js +10 -11
- package/dist/ui-reveal.js.map +1 -1
- package/dist/ui-root.editor-CAokPDVa.js +5 -0
- package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
- package/dist/ui-root.js +206 -102
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
- package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
- package/dist/ui-search.editor-CtzfYgNu.js +5 -0
- package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
- package/dist/ui-search.js +143 -146
- package/dist/ui-search.js.map +1 -1
- package/dist/ui-section.editor-DmNICxCs.js +5 -0
- package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
- package/dist/ui-section.js +74 -73
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-sections.editor-BxXECGv9.js +5 -0
- package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
- package/dist/ui-segment.editor-CebyLPFn.js +5 -0
- package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
- package/dist/ui-segment.js +43 -43
- package/dist/ui-segment.js.map +1 -1
- package/dist/ui-segments.editor-CSumzMa5.js +5 -0
- package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
- package/dist/ui-select.editor-wAcZzvU7.js +5 -0
- package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
- package/dist/ui-select.js +86 -87
- package/dist/ui-select.js.map +1 -1
- package/dist/ui-shape.editor-By9-8aD2.js +5 -0
- package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
- package/dist/ui-shape.js +39 -38
- package/dist/ui-shape.js.map +1 -1
- package/dist/ui-side.editor-CFSqGHGH.js +5 -0
- package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
- package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
- package/dist/ui-sidebar.js +79 -77
- package/dist/ui-sidebar.js.map +1 -1
- package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
- package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
- package/dist/ui-sides.js +25 -26
- package/dist/ui-sides.js.map +1 -1
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
- package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
- package/dist/ui-site-breadcrumbs.js +143 -0
- package/dist/ui-site-breadcrumbs.js.map +1 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
- package/dist/ui-site-nav-button.js +113 -0
- package/dist/ui-site-nav-button.js.map +1 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
- package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
- package/dist/ui-site-nav.js +133 -97
- package/dist/ui-site-nav.js.map +1 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
- package/dist/ui-site-tabs.js +53 -48
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
- package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
- package/dist/ui-slider.js +37 -38
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-space.editor-s-XVWFBN.js +5 -0
- package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
- package/dist/ui-space.js +9 -10
- package/dist/ui-space.js.map +1 -1
- package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
- package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
- package/dist/ui-split-panel.js +107 -68
- package/dist/ui-split-panel.js.map +1 -1
- package/dist/ui-stack.editor-D69Fky6H.js +5 -0
- package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
- package/dist/ui-stack.js +12 -13
- package/dist/ui-stack.js.map +1 -1
- package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
- package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
- package/dist/ui-statistic.js +28 -27
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
- package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
- package/dist/ui-step.editor-CYmNXrk_.js +5 -0
- package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
- package/dist/ui-step.js +62 -61
- package/dist/ui-step.js.map +1 -1
- package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
- package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
- package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
- package/dist/ui-sticky.js +10 -11
- package/dist/ui-sticky.js.map +1 -1
- package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
- package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
- package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
- package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
- package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
- package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
- package/dist/ui-tab.js +115 -117
- package/dist/ui-tab.js.map +1 -1
- package/dist/ui-table.editor-DJvfg9oG.js +5 -0
- package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
- package/dist/ui-table.js +272 -272
- package/dist/ui-table.js.map +1 -1
- package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
- package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
- package/dist/ui-term.editor-BMCF3jBM.js +5 -0
- package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
- package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
- package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
- package/dist/ui-terms.js +13 -12
- package/dist/ui-terms.js.map +1 -1
- package/dist/ui-text.editor-B6AENK13.js +5 -0
- package/dist/ui-text.editor-B6AENK13.js.map +1 -0
- package/dist/ui-text.js +37 -36
- package/dist/ui-text.js.map +1 -1
- package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
- package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
- package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
- package/dist/ui-theme-editor.js +448 -461
- package/dist/ui-theme-editor.js.map +1 -1
- package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
- package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
- package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
- package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
- package/dist/ui-title.editor-40PZSOpn.js +5 -0
- package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
- package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
- package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
- package/dist/ui-toast.js +141 -139
- package/dist/ui-toast.js.map +1 -1
- package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
- package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
- package/dist/ui-toc.js +52 -53
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
- package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
- package/dist/ui-toolbar.js +254 -50
- package/dist/ui-toolbar.js.map +1 -1
- package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
- package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
- package/dist/ui-transition.js +13 -14
- package/dist/ui-transition.js.map +1 -1
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
- package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
- package/dist/ui-tree-diagram.js +128 -127
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
- package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
- package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
- package/dist/ui-tree.editor-BoQztwdz.js +5 -0
- package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
- package/dist/ui-tree.js +393 -134
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-value.editor-CYak24cr.js +5 -0
- package/dist/ui-value.editor-CYak24cr.js.map +1 -0
- package/dist/ui-video.editor-CuWtFVjR.js +5 -0
- package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
- package/dist/ui-video.js +15 -14
- package/dist/ui-video.js.map +1 -1
- package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
- package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
- package/dist/ui-visibility.js +25 -26
- package/dist/ui-visibility.js.map +1 -1
- package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
- package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
- package/dist/ui-zoom.js +82 -83
- package/dist/ui-zoom.js.map +1 -1
- package/dist/util/TopLayerTip.d.ts +11 -2
- package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
- package/dist/vocabulary/help.generated.d.ts +11 -0
- package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
- package/package.json +3 -3
- package/dist/Dragging-CMZoLEWQ.js.map +0 -1
- package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
- package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
- package/dist/PrefStore-Qv0e5y04.js.map +0 -1
- package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
- package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
- package/dist/SitePages-CciwREek.js.map +0 -1
- package/dist/SlottedItems-Du3aJwG1.js +0 -80
- package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
- package/dist/UIButton-DFEds67r.js +0 -6
- package/dist/UIButton-DFEds67r.js.map +0 -1
- package/dist/UIInput-BodVbUoQ.js.map +0 -1
- package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
- package/dist/UILabel-DgJUBzB_.js.map +0 -1
- package/dist/UIMenu-zdcAtwTa.js +0 -42
- package/dist/UIMenu-zdcAtwTa.js.map +0 -1
- package/dist/UIRuntime-KH309p5B.js.map +0 -1
- package/dist/UISegment-CMMIW7cZ.js.map +0 -1
- package/dist/apple.palette-B4ivrNlM.js.map +0 -1
- package/dist/classic-DCTQrteU.js.map +0 -1
- package/dist/components.es-BOa_7gFF.js.map +0 -1
- package/dist/crisp-VfYZlTph.js.map +0 -1
- package/dist/crisp.theme-DRiePRdf.js +0 -6
- package/dist/crisp.theme-DRiePRdf.js.map +0 -1
- package/dist/dark-CbUdPe0a.js.map +0 -1
- package/dist/dist-BLYIGZVK.js.map +0 -1
- package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
- package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
- package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
- package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
- package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
- package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
- package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
- package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
- package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
- package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
- package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
- package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
- package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
- package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
- package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
- package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
- package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
- package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
- package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
- package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
- package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
- package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
- package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
- package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
- package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
- package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
- package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
- package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
- package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
- package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
- package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
- package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
- package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
- package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
- package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
- package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
- package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
- package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
- package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
- package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
- package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
- package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
- package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
- package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
- package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
- package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
- package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
- package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
- package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
- package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
- package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
- package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
- package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
- package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
- package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
- package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
- package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
- package/dist/fruity-BRVlgJZd.js +0 -6
- package/dist/fruity-BRVlgJZd.js.map +0 -1
- package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
- package/dist/glass-x9tbbwVq.js +0 -6
- package/dist/glass-x9tbbwVq.js.map +0 -1
- package/dist/glass.theme-24wY2wH9.js +0 -6
- package/dist/glass.theme-24wY2wH9.js.map +0 -1
- package/dist/matrix-QY2gWbJ0.js +0 -6
- package/dist/matrix-QY2gWbJ0.js.map +0 -1
- package/dist/matrix.theme-_8xtwhDq.js +0 -6
- package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
- package/dist/merlot-DOXLuUaU.js.map +0 -1
- package/dist/merlot.theme-S-QnNGsw.js +0 -6
- package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
- package/dist/midnight-BxlTQSfw.js.map +0 -1
- package/dist/midnight.theme-wXbqRYLy.js +0 -6
- package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
- package/dist/mockup-83ELBuVr.js +0 -6
- package/dist/mockup-83ELBuVr.js.map +0 -1
- package/dist/mockup.theme-DmpBgGBl.js +0 -6
- package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
- package/dist/paper-M61nUilz.js.map +0 -1
- package/dist/paper.theme-B8R5Jn5H.js +0 -6
- package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
- package/dist/persist.types-D2m6wD-S.js.map +0 -1
- package/dist/pop-CxXfytjk.js.map +0 -1
- package/dist/pop.theme-CXzv8B9x.js +0 -6
- package/dist/pop.theme-CXzv8B9x.js.map +0 -1
- package/dist/search-CzSzx7bX.js.map +0 -1
- package/dist/spell-By5Y3jKP.js +0 -6
- package/dist/spell-By5Y3jKP.js.map +0 -1
- package/dist/spell.theme-DxGj7qHx.js +0 -6
- package/dist/spell.theme-DxGj7qHx.js.map +0 -1
- package/dist/styles.en-CUUxNwHo.js.map +0 -1
- package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
package/dist/ui-markdown.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./rolldown-runtime-
|
|
2
|
-
import {
|
|
1
|
+
import "./rolldown-runtime-c6e9CmGy.js";
|
|
2
|
+
import { DOMLoadableElement as e, Gt as t, Jt as n, Kt as r, LoadableComponent as i, NodeType as a, SourceEvent as o, UI as s, Ut as c, Wt as l, Yt as u, after as d, cssState as f, ft as ee, gt as te, ht as ne, mt as re, onChange as ie, once as ae, proto as oe, protoMerged as se, qt as p, st as ce, state as m, untracked as h, whileConnected as le } from "./core.js";
|
|
3
|
+
import { t as ue } from "./PrefStore-Di83C0bY.js";
|
|
3
4
|
import "./ui-button.js";
|
|
4
|
-
import
|
|
5
|
+
import "./ui-code.js";
|
|
5
6
|
import "./ui-loader.js";
|
|
6
7
|
import "./ui-message.js";
|
|
7
8
|
import "./ui-select.js";
|
|
8
|
-
import "
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var w = class MarkdownFormats {
|
|
9
|
+
import { For as de, Show as fe } from "solid-js";
|
|
10
|
+
import { addEvent as g, className as pe, createComponent as me, delegateEvents as he, effect as _, insert as v, memo as y, readShallow as ge, ref as b, setAttribute as x, template as S } from "@solidjs/web";
|
|
11
|
+
// src/components/ui-markdown/MarkdownFormats.ts
|
|
12
|
+
var C = class MarkdownFormats {
|
|
13
13
|
static toggle(e, t) {
|
|
14
14
|
let { text: n } = e, { start: r, end: i } = e.start === e.end ? MarkdownFormats.wordAt(e) : e;
|
|
15
15
|
if (r === i) return {
|
|
@@ -17,7 +17,19 @@ var w = class MarkdownFormats {
|
|
|
17
17
|
start: r + t.length,
|
|
18
18
|
end: r + t.length
|
|
19
19
|
};
|
|
20
|
-
let a = t.length
|
|
20
|
+
let a = t.length;
|
|
21
|
+
if (t === "`") {
|
|
22
|
+
let t = MarkdownFormats.codeAt(n, e.start, e.end);
|
|
23
|
+
if (t) {
|
|
24
|
+
let r = n.slice(t.start + 1, t.end - 1);
|
|
25
|
+
return {
|
|
26
|
+
text: n.slice(0, t.start) + r + n.slice(t.end),
|
|
27
|
+
start: Math.max(t.start, e.start - 1),
|
|
28
|
+
end: Math.min(t.start + r.length, e.end - 1)
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
let isWrapped = (e, r) => n.slice(e - a, e) === t && n.slice(r, r + a) === t && (t !== "*" || n[e - a - 1] !== "*" && n[r + a] !== "*" || MarkdownFormats.isTriple(n, e, r));
|
|
21
33
|
if (isWrapped(r, i)) return {
|
|
22
34
|
text: n.slice(0, r - a) + n.slice(r, i) + n.slice(i + a),
|
|
23
35
|
start: r - a,
|
|
@@ -60,7 +72,7 @@ var w = class MarkdownFormats {
|
|
|
60
72
|
};
|
|
61
73
|
}
|
|
62
74
|
static linkAt(e, t) {
|
|
63
|
-
for (let n of e.matchAll(
|
|
75
|
+
for (let n of e.matchAll(w)) {
|
|
64
76
|
let e = n.index, r = e + n[0].length;
|
|
65
77
|
if (t >= e && t <= r) return {
|
|
66
78
|
start: e,
|
|
@@ -70,15 +82,24 @@ var w = class MarkdownFormats {
|
|
|
70
82
|
};
|
|
71
83
|
}
|
|
72
84
|
}
|
|
85
|
+
static codeAt(e, t, n) {
|
|
86
|
+
for (let r of e.matchAll(E)) {
|
|
87
|
+
let e = r.index, i = e + r[0].length;
|
|
88
|
+
if (t > e && n < i) return {
|
|
89
|
+
start: e,
|
|
90
|
+
end: i
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
73
94
|
static clear(e) {
|
|
74
95
|
let t = e.start === e.end, n = t ? 0 : e.start, r = t ? e.text.length : e.end, i = e.text.slice(n, r);
|
|
75
|
-
i = i.replace(
|
|
96
|
+
i = i.replace(w, "$1").replace(E, "$1").replace(T, "$1").replace(D, "$1").replace(O, "$1");
|
|
76
97
|
let a = {
|
|
77
98
|
text: e.text.slice(0, n) + i + e.text.slice(r),
|
|
78
99
|
start: n,
|
|
79
100
|
end: n + i.length
|
|
80
101
|
};
|
|
81
|
-
for (let e of
|
|
102
|
+
for (let e of _e) {
|
|
82
103
|
let n = a.text.slice(a.start - e.length, a.start) === e;
|
|
83
104
|
!t && n && a.text.slice(a.end, a.end + e.length) === e && (a = MarkdownFormats.toggle(a, e));
|
|
84
105
|
}
|
|
@@ -88,7 +109,7 @@ var w = class MarkdownFormats {
|
|
|
88
109
|
let n = /* @__PURE__ */ new Set(), inside = (r, i) => {
|
|
89
110
|
for (let a of e.matchAll(r)) t > a.index && t < a.index + a[0].length && n.add(i);
|
|
90
111
|
};
|
|
91
|
-
return inside(
|
|
112
|
+
return inside(T, "bold"), inside(O, "italic"), inside(D, "strikethrough"), inside(E, "code"), inside(w, "link"), n;
|
|
92
113
|
}
|
|
93
114
|
static shapeOf(e, t) {
|
|
94
115
|
if (t.kind === "cell") return;
|
|
@@ -96,7 +117,7 @@ var w = class MarkdownFormats {
|
|
|
96
117
|
return r ? `h${r[1].length}` : /^\s*\d{1,9}[.)][ \t]/.test(n) ? "numbered" : /^\s*[*+-][ \t]/.test(n) ? "bullet" : "paragraph";
|
|
97
118
|
}
|
|
98
119
|
static reshape(e, t, n, r) {
|
|
99
|
-
let i = e.lastIndexOf("\n", t.start - 1) + 1, a = /^\s*/.exec(e.slice(i, t.start))[0], o = r.startsWith("h") ? n.replace(/\s*\n\s*/g, " ").trim() : n.replace(/\s+$/, ""), s = a +
|
|
120
|
+
let i = e.lastIndexOf("\n", t.start - 1) + 1, a = /^\s*/.exec(e.slice(i, t.start))[0], o = r.startsWith("h") ? n.replace(/\s*\n\s*/g, " ").trim() : n.replace(/\s+$/, ""), s = a + ve[r], c = e.slice(0, i) + s + o + e.slice(t.end), l = r === "paragraph" ? "paragraph" : r.startsWith("h") ? "heading" : "item", u = i + s.length;
|
|
100
121
|
return {
|
|
101
122
|
text: c,
|
|
102
123
|
place: {
|
|
@@ -113,11 +134,11 @@ var w = class MarkdownFormats {
|
|
|
113
134
|
static markdownOf(e) {
|
|
114
135
|
let t = "";
|
|
115
136
|
for (let n of e.childNodes) {
|
|
116
|
-
if (n.nodeType ===
|
|
137
|
+
if (n.nodeType === xe) {
|
|
117
138
|
t += (n.textContent ?? "").replace(/[\\*]/g, "\\$&");
|
|
118
139
|
continue;
|
|
119
140
|
}
|
|
120
|
-
if (n.nodeType !==
|
|
141
|
+
if (n.nodeType !== Se) continue;
|
|
121
142
|
let e = n, r = MarkdownFormats.markdownOf(e), i = e.localName;
|
|
122
143
|
i === "br" ? t += "\n" : i === "code" ? t += `\`${e.textContent ?? ""}\`` : i === "a" ? t += `[${r}](${e.getAttribute("href") ?? ""})` : k[i] && r.trim() ? t += k[i] + r + k[i] : t += r;
|
|
123
144
|
}
|
|
@@ -125,8 +146,8 @@ var w = class MarkdownFormats {
|
|
|
125
146
|
}
|
|
126
147
|
static wordAt({ text: e, start: t }) {
|
|
127
148
|
let n = t, r = t;
|
|
128
|
-
for (; n > 0 &&
|
|
129
|
-
for (; r < e.length &&
|
|
149
|
+
for (; n > 0 && be.test(e[n - 1]);) n--;
|
|
150
|
+
for (; r < e.length && be.test(e[r]);) r++;
|
|
130
151
|
return {
|
|
131
152
|
start: n,
|
|
132
153
|
end: r
|
|
@@ -137,7 +158,7 @@ var w = class MarkdownFormats {
|
|
|
137
158
|
}
|
|
138
159
|
static cut(e, t, n) {
|
|
139
160
|
let r;
|
|
140
|
-
for (let [t, n, i] of
|
|
161
|
+
for (let [t, n, i] of ye) {
|
|
141
162
|
t.lastIndex = 0;
|
|
142
163
|
let a = t.exec(e);
|
|
143
164
|
a && (!r || a.index < r.match.index) && (r = {
|
|
@@ -161,7 +182,19 @@ var w = class MarkdownFormats {
|
|
|
161
182
|
isMark: !1
|
|
162
183
|
});
|
|
163
184
|
let c = [...t, a];
|
|
164
|
-
a === "
|
|
185
|
+
a === "code" ? (n.push({
|
|
186
|
+
text: o,
|
|
187
|
+
formats: c,
|
|
188
|
+
isMark: !0
|
|
189
|
+
}), i[1] && n.push({
|
|
190
|
+
text: i[1],
|
|
191
|
+
formats: c,
|
|
192
|
+
isMark: !1
|
|
193
|
+
}), n.push({
|
|
194
|
+
text: o,
|
|
195
|
+
formats: c,
|
|
196
|
+
isMark: !0
|
|
197
|
+
})) : a === "link" ? (n.push({
|
|
165
198
|
text: "[",
|
|
166
199
|
formats: c,
|
|
167
200
|
isMark: !0
|
|
@@ -179,11 +212,12 @@ var w = class MarkdownFormats {
|
|
|
179
212
|
isMark: !0
|
|
180
213
|
})), MarkdownFormats.cut(e.slice(i.index + i[0].length), t, n);
|
|
181
214
|
}
|
|
182
|
-
},
|
|
215
|
+
}, _e = [
|
|
183
216
|
"**",
|
|
184
217
|
"~~",
|
|
218
|
+
"`",
|
|
185
219
|
"*"
|
|
186
|
-
],
|
|
220
|
+
], ve = {
|
|
187
221
|
paragraph: "",
|
|
188
222
|
h1: "# ",
|
|
189
223
|
h2: "## ",
|
|
@@ -193,14 +227,19 @@ var w = class MarkdownFormats {
|
|
|
193
227
|
h6: "###### ",
|
|
194
228
|
bullet: "- ",
|
|
195
229
|
numbered: "1. "
|
|
196
|
-
},
|
|
230
|
+
}, w = /\[([^\]\n]*)\]\(([^)\s]*)\)/g, T = /\*\*(?=\S)([^\n]*?\S)\*\*/g, E = /`([^`\n]+)`/g, D = /~~(?=\S)([^\n]*?\S)~~/g, O = /(?<!\*)\*(?=[^\s*])([^\n*]*?[^\s*])\*/g, ye = [
|
|
197
231
|
[
|
|
198
|
-
new RegExp(
|
|
232
|
+
new RegExp(E.source, "g"),
|
|
233
|
+
"code",
|
|
234
|
+
"`"
|
|
235
|
+
],
|
|
236
|
+
[
|
|
237
|
+
new RegExp(w.source, "g"),
|
|
199
238
|
"link",
|
|
200
239
|
""
|
|
201
240
|
],
|
|
202
241
|
[
|
|
203
|
-
new RegExp(
|
|
242
|
+
new RegExp(T.source, "g"),
|
|
204
243
|
"bold",
|
|
205
244
|
"**"
|
|
206
245
|
],
|
|
@@ -222,7 +261,7 @@ var w = class MarkdownFormats {
|
|
|
222
261
|
del: "~~",
|
|
223
262
|
s: "~~",
|
|
224
263
|
strike: "~~"
|
|
225
|
-
},
|
|
264
|
+
}, be = /[\p{L}\p{N}_'’-]/u, xe = 3, Se = 1, Ce = class MarkdownBox {
|
|
226
265
|
props;
|
|
227
266
|
field;
|
|
228
267
|
bar;
|
|
@@ -241,7 +280,7 @@ var w = class MarkdownFormats {
|
|
|
241
280
|
this.unformattable = n ? void 0 : e.texts(e.renderInline ? "formattedOff" : "noFormattedView"), this.view = e.view === "formatted" && !this.unformattable ? "formatted" : "marks", this.field = t.createElement("span"), this.field.setAttribute("role", "textbox"), this.field.setAttribute("aria-label", e.label), this.field.setAttribute("part", e.parts.box), e.kind === "paragraph" && this.field.setAttribute("aria-multiline", "true"), this.field.addEventListener("keydown", this.onKey), this.field.addEventListener("input", this.onInput), this.field.addEventListener("paste", this.onPaste), this.field.addEventListener("focusout", e.onLeave), this.field.ownerDocument.addEventListener("selectionchange", this.onSelectionChange), this.shapes = t.createElement("ui-select"), this.address = t.createElement("input"), this.bar = this.drawBar(), this.draw(e.raw);
|
|
242
281
|
}
|
|
243
282
|
get raw() {
|
|
244
|
-
return this.view === "formatted" ?
|
|
283
|
+
return this.view === "formatted" ? C.markdownOf(this.field).replace(/\n$/, "") : (this.field.textContent ?? "").replace(/\n$/, "");
|
|
245
284
|
}
|
|
246
285
|
set raw(e) {
|
|
247
286
|
this.draw(e), this.caret = e.length;
|
|
@@ -266,10 +305,25 @@ var w = class MarkdownFormats {
|
|
|
266
305
|
if (e === "view") return this.switchView();
|
|
267
306
|
if (e === "link") return this.askAddress();
|
|
268
307
|
if (e === "bullet" || e === "numbered") return this.reshape(this.shape === e ? "paragraph" : e);
|
|
269
|
-
if (
|
|
308
|
+
if (e === "code" && this.view === "formatted") return this.toggleCode();
|
|
309
|
+
if (this.view === "formatted") this.field.ownerDocument.execCommand(ke[e]), e === "clear" && this.field.ownerDocument.execCommand("unlink");
|
|
270
310
|
else {
|
|
271
311
|
let t = this.edit();
|
|
272
|
-
this.apply(e === "clear" ?
|
|
312
|
+
this.apply(e === "clear" ? C.clear(t) : C.toggle(t, Oe[e]));
|
|
313
|
+
}
|
|
314
|
+
this.changed();
|
|
315
|
+
}
|
|
316
|
+
toggleCode() {
|
|
317
|
+
let e = MarkdownBox.rangeIn(this.field);
|
|
318
|
+
if (!e) return;
|
|
319
|
+
let t = this.field.ownerDocument, n = e.startContainer, r = (n.nodeType === 1 ? n : n.parentElement)?.closest("code");
|
|
320
|
+
if (r && this.field.contains(r)) {
|
|
321
|
+
let e = t.createTextNode(r.textContent ?? "");
|
|
322
|
+
r.replaceWith(e), t.getSelection()?.setBaseAndExtent(e, 0, e, e.data.length);
|
|
323
|
+
} else if (e.collapsed) return;
|
|
324
|
+
else {
|
|
325
|
+
let n = t.createElement("code");
|
|
326
|
+
n.textContent = e.toString(), e.deleteContents(), e.insertNode(n), t.getSelection()?.selectAllChildren(n);
|
|
273
327
|
}
|
|
274
328
|
this.changed();
|
|
275
329
|
}
|
|
@@ -284,7 +338,7 @@ var w = class MarkdownFormats {
|
|
|
284
338
|
askAddress() {
|
|
285
339
|
let e = this.edit();
|
|
286
340
|
this.linkFor = e;
|
|
287
|
-
let t = this.view === "marks" ?
|
|
341
|
+
let t = this.view === "marks" ? C.linkAt(e.text, e.start) : void 0, n = this.view === "formatted" ? MarkdownBox.rangeIn(this.field)?.startContainer.parentElement?.closest("a") : void 0;
|
|
288
342
|
this.address.value = t?.address ?? n?.getAttribute("href") ?? "", this.address.hidden = !1, this.address.focus(), this.address.select();
|
|
289
343
|
}
|
|
290
344
|
onAddressKey = (e) => {
|
|
@@ -294,16 +348,12 @@ var w = class MarkdownFormats {
|
|
|
294
348
|
if (this.linkFor = void 0, this.address.hidden = !0, this.field.focus(), !t) return;
|
|
295
349
|
if (e.key === "Escape") return this.select(t.start, t.end);
|
|
296
350
|
let n = this.address.value.trim();
|
|
297
|
-
this.view === "formatted" ? (this.select(t.start, t.end), this.field.ownerDocument.execCommand(n ? "createLink" : "unlink", !1, n)) : this.apply(
|
|
351
|
+
this.view === "formatted" ? (this.select(t.start, t.end), this.field.ownerDocument.execCommand(n ? "createLink" : "unlink", !1, n)) : this.apply(C.link(t, n)), this.changed();
|
|
298
352
|
};
|
|
299
353
|
onKey = (e) => {
|
|
300
|
-
let t = (e.metaKey || e.ctrlKey) && !e.altKey ?
|
|
354
|
+
let t = (e.metaKey || e.ctrlKey) && !e.altKey ? je[`${e.shiftKey ? "shift+" : ""}${e.code}`] : void 0;
|
|
301
355
|
if (t) return e.preventDefault(), e.stopPropagation(), this.act(t);
|
|
302
|
-
|
|
303
|
-
e.preventDefault(), e.stopPropagation(), this.field.ownerDocument.execCommand("insertText", !1, "\n");
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
|
-
this.props.onKey(e);
|
|
356
|
+
e.key === "Enter" && e.shiftKey && this.props.kind === "paragraph" ? (e.preventDefault(), e.stopPropagation(), this.field.ownerDocument.execCommand("insertText", !1, "\n")) : this.props.onKey(e);
|
|
307
357
|
};
|
|
308
358
|
onInput = (e) => {
|
|
309
359
|
if (this.view === "marks" && !e.isComposing) {
|
|
@@ -325,11 +375,7 @@ var w = class MarkdownFormats {
|
|
|
325
375
|
}
|
|
326
376
|
draw(e) {
|
|
327
377
|
let t = this.field.ownerDocument;
|
|
328
|
-
|
|
329
|
-
this.field.innerHTML = this.props.renderInline(e);
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
this.field.replaceChildren(...w.runsOf(e).map((e) => {
|
|
378
|
+
this.field.contentEditable = this.view === "marks" ? "plaintext-only" : "true", this.field.dataset.view = this.view, this.view === "formatted" ? this.field.innerHTML = this.props.renderInline(e) : this.field.replaceChildren(...C.runsOf(e).map((e) => {
|
|
333
379
|
if (!e.isMark && !e.formats.length) return t.createTextNode(e.text);
|
|
334
380
|
let n = t.createElement("span");
|
|
335
381
|
return n.className = [e.isMark ? "md-mark" : "", ...e.formats.map((e) => `md-${e}`)].join(" ").trim(), n.textContent = e.text, n;
|
|
@@ -340,14 +386,14 @@ var w = class MarkdownFormats {
|
|
|
340
386
|
r.setAttribute("part", n.bar), r.setAttribute("role", "toolbar"), r.popover = "manual", r.setAttribute("aria-label", t("formatBar")), r.addEventListener("mousedown", (e) => {
|
|
341
387
|
!e.composedPath().includes(this.shapes) && e.target !== this.address && e.preventDefault();
|
|
342
388
|
});
|
|
343
|
-
for (let n of
|
|
389
|
+
for (let n of we) {
|
|
344
390
|
if (n === "shape") {
|
|
345
391
|
this.shape && r.append(this.drawShapes());
|
|
346
392
|
continue;
|
|
347
393
|
}
|
|
348
394
|
if ((n === "bullet" || n === "numbered") && !this.shape) continue;
|
|
349
395
|
let i = e.createElement("ui-button");
|
|
350
|
-
i.setAttribute("appearance", "basic"), i.setAttribute("size", "small"), i.setAttribute("icon",
|
|
396
|
+
i.setAttribute("appearance", "basic"), i.setAttribute("size", "small"), i.setAttribute("icon", De[n]);
|
|
351
397
|
let a = n === "view" && this.unformattable ? this.unformattable : t(n);
|
|
352
398
|
i.setAttribute("title", a), i.setAttribute("aria-label", a), n === "view" && this.unformattable && i.setAttribute("disabled", ""), i.addEventListener("click", () => this.act(n)), this.buttons.set(n, i), r.append(i);
|
|
353
399
|
}
|
|
@@ -355,9 +401,9 @@ var w = class MarkdownFormats {
|
|
|
355
401
|
}
|
|
356
402
|
drawShapes() {
|
|
357
403
|
let { document: e, texts: t } = this.props;
|
|
358
|
-
for (let n of
|
|
404
|
+
for (let n of Te) {
|
|
359
405
|
let r = e.createElement("ui-item");
|
|
360
|
-
r.setAttribute("value", n), r.textContent = t(
|
|
406
|
+
r.setAttribute("value", n), r.textContent = t(Ee[n]), this.shapes.append(r);
|
|
361
407
|
}
|
|
362
408
|
return this.shapes.setAttribute("size", "small"), this.shapes.style.setProperty("--ui-select-picker-background", "var(--_ui-markdown-bar-background)"), this.shapes.setAttribute("value", this.shape?.startsWith("h") ? this.shape : "paragraph"), this.shapes.setAttribute("aria-label", t("shape")), this.shapes.title = t("shape"), this.shapes.addEventListener("ui-changed", (e) => {
|
|
363
409
|
let { value: t } = e.detail;
|
|
@@ -374,12 +420,12 @@ var w = class MarkdownFormats {
|
|
|
374
420
|
formatsNow() {
|
|
375
421
|
if (this.view === "marks") {
|
|
376
422
|
let e = this.selection;
|
|
377
|
-
return e ?
|
|
423
|
+
return e ? C.formatsAt(this.field.textContent ?? "", e.start) : /* @__PURE__ */ new Set();
|
|
378
424
|
}
|
|
379
425
|
let e = this.field.ownerDocument, t = /* @__PURE__ */ new Set();
|
|
380
|
-
for (let [n, r] of Object.entries(
|
|
381
|
-
let n = MarkdownBox.rangeIn(this.field)?.startContainer;
|
|
382
|
-
return (
|
|
426
|
+
for (let [n, r] of Object.entries(Ae)) r && e.queryCommandState(r) && t.add(n);
|
|
427
|
+
let n = MarkdownBox.rangeIn(this.field)?.startContainer, r = n?.nodeType === 1 ? n : n?.parentElement;
|
|
428
|
+
return r?.closest("a") && t.add("link"), r?.closest("code") && t.add("code"), t;
|
|
383
429
|
}
|
|
384
430
|
edit() {
|
|
385
431
|
let e = this.field.textContent ?? "";
|
|
@@ -418,59 +464,63 @@ var w = class MarkdownFormats {
|
|
|
418
464
|
}
|
|
419
465
|
static comesBack(e, t, n) {
|
|
420
466
|
let r = n.createElement("span");
|
|
421
|
-
return r.innerHTML = t(e),
|
|
467
|
+
return r.innerHTML = t(e), C.markdownOf(r) === e;
|
|
422
468
|
}
|
|
423
|
-
},
|
|
469
|
+
}, we = [
|
|
424
470
|
"bold",
|
|
425
471
|
"italic",
|
|
426
472
|
"strikethrough",
|
|
473
|
+
"code",
|
|
427
474
|
"link",
|
|
428
475
|
"shape",
|
|
429
476
|
"bullet",
|
|
430
477
|
"numbered",
|
|
431
478
|
"clear",
|
|
432
479
|
"view"
|
|
433
|
-
],
|
|
480
|
+
], Te = [
|
|
434
481
|
"paragraph",
|
|
435
482
|
"h2",
|
|
436
483
|
"h3",
|
|
437
484
|
"h4"
|
|
438
|
-
],
|
|
485
|
+
], Ee = {
|
|
439
486
|
paragraph: "shapeParagraph",
|
|
440
487
|
h2: "shapeH2",
|
|
441
488
|
h3: "shapeH3",
|
|
442
489
|
h4: "shapeH4"
|
|
443
|
-
},
|
|
490
|
+
}, De = {
|
|
444
491
|
bold: "bold",
|
|
445
492
|
italic: "italic",
|
|
446
493
|
strikethrough: "strikethrough",
|
|
494
|
+
code: "code",
|
|
447
495
|
link: "link",
|
|
448
496
|
bullet: "list ul",
|
|
449
497
|
numbered: "list ol",
|
|
450
498
|
clear: "eraser",
|
|
451
499
|
view: "eye"
|
|
452
|
-
},
|
|
500
|
+
}, Oe = {
|
|
453
501
|
bold: "**",
|
|
454
502
|
italic: "*",
|
|
455
|
-
strikethrough: "~~"
|
|
456
|
-
|
|
503
|
+
strikethrough: "~~",
|
|
504
|
+
code: "`"
|
|
505
|
+
}, ke = {
|
|
457
506
|
bold: "bold",
|
|
458
507
|
italic: "italic",
|
|
459
508
|
strikethrough: "strikeThrough",
|
|
460
509
|
clear: "removeFormat"
|
|
461
|
-
},
|
|
510
|
+
}, Ae = {
|
|
462
511
|
bold: "bold",
|
|
463
512
|
italic: "italic",
|
|
464
513
|
strikethrough: "strikeThrough",
|
|
514
|
+
code: "",
|
|
465
515
|
link: ""
|
|
466
|
-
},
|
|
516
|
+
}, je = {
|
|
467
517
|
KeyB: "bold",
|
|
468
518
|
KeyI: "italic",
|
|
469
519
|
KeyK: "link",
|
|
470
520
|
"shift+KeyX": "strikethrough"
|
|
471
|
-
},
|
|
472
|
-
|
|
473
|
-
var
|
|
521
|
+
}, Me, Ne = [ae], A;
|
|
522
|
+
Me = [ae];
|
|
523
|
+
var j = class _MarkdownRenderer {
|
|
474
524
|
static load() {
|
|
475
525
|
return _MarkdownRenderer.engineLoader().then((e) => e.MarkdownEngine.instance);
|
|
476
526
|
}
|
|
@@ -478,11 +528,11 @@ var N = class _MarkdownRenderer {
|
|
|
478
528
|
return _MarkdownRenderer.sanitizerLoader().then((e) => e.MarkdownSanitizer.instance);
|
|
479
529
|
}
|
|
480
530
|
};
|
|
481
|
-
|
|
482
|
-
var
|
|
531
|
+
A = t(null), c(A, 9, "load", Ne, j), c(A, 9, "loadSanitizer", Me, j), l(A, j), u(A, 3, j), r(j, "MarkdownRenderer"), n(j, "engineLoader", /* @__PURE__ */ r(() => import("./MarkdownEngine-D1jqcFeU.js"), "engineLoader")), n(j, "sanitizerLoader", /* @__PURE__ */ r(() => import("./MarkdownSanitizer-CqsWivYJ.js"), "sanitizerLoader"));
|
|
532
|
+
var M = j, Pe = class MarkdownSource {
|
|
483
533
|
static placesOf(e, t) {
|
|
484
534
|
let n = [], add = (e, t, r, i) => {
|
|
485
|
-
e[
|
|
535
|
+
e[Fe] = n.length, n.push({
|
|
486
536
|
kind: t,
|
|
487
537
|
start: r,
|
|
488
538
|
end: i
|
|
@@ -496,10 +546,10 @@ var P = N, F = class MarkdownSource {
|
|
|
496
546
|
return n;
|
|
497
547
|
}
|
|
498
548
|
static placeOf(e) {
|
|
499
|
-
return e[
|
|
549
|
+
return e[Fe];
|
|
500
550
|
}
|
|
501
551
|
static replace(e, t, n) {
|
|
502
|
-
let r = t.kind === "paragraph" ? n.replace(/\s+$/, "") : n.replace(/\s*\n\s*/g, " ").trim(), i = t.kind === "cell" ? r.replace(
|
|
552
|
+
let r = t.kind === "paragraph" ? n.replace(/\s+$/, "") : n.replace(/\s*\n\s*/g, " ").trim(), i = t.kind === "cell" ? r.replace(ze, "\\|") : r;
|
|
503
553
|
return e.slice(0, t.start) + i + e.slice(t.end);
|
|
504
554
|
}
|
|
505
555
|
static visit(e, t, n, r) {
|
|
@@ -510,13 +560,13 @@ var P = N, F = class MarkdownSource {
|
|
|
510
560
|
i > r && n(e, "paragraph", t + r, t + i);
|
|
511
561
|
}
|
|
512
562
|
static heading(e, t, n) {
|
|
513
|
-
let r =
|
|
563
|
+
let r = Ie.exec(e.raw.split("\n")[0]);
|
|
514
564
|
if (r) {
|
|
515
565
|
let i = r[2];
|
|
516
566
|
i && n(e, "heading", t + r[1].length, t + r[1].length + i.length);
|
|
517
567
|
return;
|
|
518
568
|
}
|
|
519
|
-
let i =
|
|
569
|
+
let i = Le.exec(e.raw);
|
|
520
570
|
if (!i) return;
|
|
521
571
|
let { from: a, to: o } = MarkdownSource.trimmed(e.raw.slice(0, i.index));
|
|
522
572
|
o > a && n(e, "heading", t + a, t + o);
|
|
@@ -541,7 +591,7 @@ var P = N, F = class MarkdownSource {
|
|
|
541
591
|
let e = n.raw.split("\n")[0].trim(), o = t.indexOf(e, a);
|
|
542
592
|
if (o < 0 || o >= r) return;
|
|
543
593
|
a = o + e.length;
|
|
544
|
-
let [s, ...c] = n.tokens.filter((e) => e.type !== "space" && e.type !== "checkbox"), l =
|
|
594
|
+
let [s, ...c] = n.tokens.filter((e) => e.type !== "space" && e.type !== "checkbox"), l = Re.exec(e), u = !!s && !s.raw.trim().includes("\n"), d = c.every((e) => e.type === "list");
|
|
545
595
|
if (l && u && d && (s.type === "text" || s.type === "paragraph")) {
|
|
546
596
|
let t = e.slice(l[0].length).replace(/\s+$/, "");
|
|
547
597
|
t && i(n, "item", o + l[0].length, o + l[0].length + t.length);
|
|
@@ -588,7 +638,7 @@ var P = N, F = class MarkdownSource {
|
|
|
588
638
|
}
|
|
589
639
|
return r;
|
|
590
640
|
}
|
|
591
|
-
},
|
|
641
|
+
}, Fe = "uiPlace", Ie = /^( {0,3}#{1,6}(?:[ \t]+|$))(.*?)(?:[ \t]+#+)?[ \t]*$/, Le = /\n {0,3}(?:=+|-+)[ \t]*\n*$/, Re = /^(?:[*+-]|\d{1,9}[.)])[ \t]+(?:\[[ xX]\][ \t]+)?/, ze = /(?<!\\)\|/g, Be = {
|
|
592
642
|
tag: "ui-markdown",
|
|
593
643
|
icon: "markdown",
|
|
594
644
|
topics: [
|
|
@@ -606,9 +656,10 @@ var P = N, F = class MarkdownSource {
|
|
|
606
656
|
],
|
|
607
657
|
skeleton: "header, 4 line paragraph",
|
|
608
658
|
noun: "markdown",
|
|
659
|
+
partOfSpeech: "property",
|
|
609
660
|
description: "Markdown renders GitHub-flavoured markdown -- tables, task lists, code blocks -- from the element's own text or a file on this site.",
|
|
610
661
|
attributes: [
|
|
611
|
-
...
|
|
662
|
+
...ce,
|
|
612
663
|
{
|
|
613
664
|
name: "size",
|
|
614
665
|
group: "appearance",
|
|
@@ -656,7 +707,7 @@ var P = N, F = class MarkdownSource {
|
|
|
656
707
|
}],
|
|
657
708
|
slots: [],
|
|
658
709
|
parts: [
|
|
659
|
-
...
|
|
710
|
+
...re,
|
|
660
711
|
{
|
|
661
712
|
name: "body",
|
|
662
713
|
description: "The `<article>` holding the rendered markdown."
|
|
@@ -755,6 +806,11 @@ var P = N, F = class MarkdownSource {
|
|
|
755
806
|
text: "Strikethrough (⌘⇧X)",
|
|
756
807
|
description: "`editable`: the bar's strikethrough button."
|
|
757
808
|
},
|
|
809
|
+
{
|
|
810
|
+
key: "code",
|
|
811
|
+
text: "Inline code",
|
|
812
|
+
description: "`editable`: the bar's inline code button (no key: ⌘E is Claude Code's)."
|
|
813
|
+
},
|
|
758
814
|
{
|
|
759
815
|
key: "link",
|
|
760
816
|
text: "Link (⌘K)",
|
|
@@ -821,9 +877,9 @@ var P = N, F = class MarkdownSource {
|
|
|
821
877
|
description: "`editable`: the switch's tooltip, for a subclass's engine without `renderInline()`."
|
|
822
878
|
}
|
|
823
879
|
]
|
|
824
|
-
},
|
|
880
|
+
}, Ve = "@layer ui.components.markdown.types{:host{--_ui-markdown-editor-border:var(--ui-markdown-editor-border,var(--ui-border-color));--_ui-markdown-editor-background:var(--ui-markdown-editor-background,var(--ui-surface));--_ui-markdown-color:var(--ui-markdown-color,var(--ui-text-color));--_ui-markdown-muted:var(--ui-markdown-muted,var(--ui-text-muted));--_ui-markdown-radius:var(--ui-markdown-radius,var(--ui-radius));--_ui-markdown-measure:var(--ui-markdown-measure,none);display:block}.ui.markdown{--_ui-markdown-color:var(--ui-markdown-color,var(--ui-text-color));--_ui-markdown-muted:var(--ui-markdown-muted,var(--ui-text-muted));--_ui-markdown-line-height:var(--ui-markdown-line-height,1.6);--_ui-markdown-heading-color:var(--ui-markdown-heading-color,var(--ui-text-color));--_ui-markdown-heading-font-family:var(--ui-markdown-heading-font-family,initial);--_ui-markdown-heading-weight:var(--ui-markdown-heading-weight,600);--_ui-markdown-heading-line-height:var(--ui-markdown-heading-line-height,1.25);--_ui-markdown-heading-margin:var(--ui-markdown-heading-margin,1.5em 1em);--_ui-markdown-heading-rule:var(--ui-markdown-heading-rule,1px solid var(--_ui-markdown-rule-color));--_ui-markdown-heading-rule-gap:var(--ui-markdown-heading-rule-gap,.3em);--_ui-markdown-heading-scroll-margin:var(--ui-markdown-heading-scroll-margin,0);--_ui-markdown-h1-size:var(--ui-markdown-h1-size,2em);--_ui-markdown-h2-size:var(--ui-markdown-h2-size,1.5em);--_ui-markdown-h3-size:var(--ui-markdown-h3-size,1.25em);--_ui-markdown-strong-color:var(--ui-markdown-strong-color,initial);--_ui-markdown-code-color:var(--ui-markdown-code-color,initial);--_ui-markdown-link-color:var(--ui-markdown-link-color,var(--ui-link));--_ui-markdown-rule-color:var(--ui-markdown-rule-color,var(--ui-border-color));--_ui-markdown-hr-height:var(--ui-markdown-hr-height,.25em);--_ui-markdown-table-border:var(--ui-markdown-table-border,var(--ui-border-color));--_ui-markdown-stripe:var(--ui-markdown-stripe,var(--ui-surface-muted));--_ui-markdown-blockquote-color:var(--ui-markdown-blockquote-color,var(--ui-text-muted));--_ui-markdown-blockquote-border:var(--ui-markdown-blockquote-border,var(--ui-border-color-strong));--_ui-markdown-code-background:var(--ui-markdown-code-background,var(--ui-surface-strong));--_ui-markdown-radius:var(--ui-markdown-radius,var(--ui-radius));--_ui-markdown-measure:var(--ui-markdown-measure,none);color:var(--_ui-markdown-color);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));line-height:var(--_ui-markdown-line-height);overflow-wrap:break-word;display:block}}@layer ui.components.markdown.content{.ui.markdown :is(p,ul,ol,blockquote,table,pre,ui-code,details,hr){margin-block:0 1em}.ui.markdown>:is(p,ul,ol,blockquote){max-width:var(--_ui-markdown-measure)}.ui.markdown :is(h1,h2,h3,h4,h5,h6){margin-block:var(--_ui-markdown-heading-margin);color:var(--_ui-markdown-heading-color);font-family:var(--_ui-markdown-heading-font-family,inherit);font-weight:var(--_ui-markdown-heading-weight);line-height:var(--_ui-markdown-heading-line-height);scroll-margin-top:var(--_ui-markdown-heading-scroll-margin)}.ui.markdown :is(h1,h2){border-block-end:var(--_ui-markdown-heading-rule);padding-block-end:var(--_ui-markdown-heading-rule-gap)}.ui.markdown h1{font-size:var(--_ui-markdown-h1-size)}.ui.markdown h2{font-size:var(--_ui-markdown-h2-size)}.ui.markdown h3{font-size:var(--_ui-markdown-h3-size)}.ui.markdown h4{font-size:1em}.ui.markdown h5{font-size:.875em}.ui.markdown h6{color:var(--_ui-markdown-muted);font-size:.85em}.ui.markdown a{color:var(--_ui-markdown-link-color);text-underline-offset:.15em;text-decoration:underline}.ui.markdown :is(ul,ol){padding-inline-start:2em}.ui.markdown :is(ul,ol) :is(ul,ol){margin-block-end:0}.ui.markdown li+li{margin-block-start:.25em}.ui.markdown li:has(>input[type=checkbox]){list-style:none}.ui.markdown li>input[type=checkbox]{vertical-align:middle;margin-inline:-1.4em .4em}.ui.markdown blockquote{border-inline-start:.25em solid var(--_ui-markdown-blockquote-border);color:var(--_ui-markdown-blockquote-color);margin-inline:0;padding:0 1em}.ui.markdown hr{height:var(--_ui-markdown-hr-height);background:var(--_ui-markdown-rule-color);border:0;margin-block:1.5em}.ui.markdown table:not(ui-table>table){border-collapse:collapse;width:max-content;max-width:100%;display:block;overflow:auto}.ui.markdown :is(th,td):not(ui-table *){border:1px solid var(--_ui-markdown-table-border);padding:.4em .8em}.ui.markdown th:not(ui-table *){font-weight:600}.ui.markdown tbody tr:nth-child(2n):not(ui-table *){background:var(--_ui-markdown-stripe)}.ui.markdown :is(strong,b){color:var(--_ui-markdown-strong-color,inherit)}.ui.markdown :not(pre)>code{border-radius:var(--_ui-markdown-radius);background:var(--_ui-markdown-code-background);color:var(--_ui-markdown-code-color,inherit);font-family:var(--ui-font-family-mono);padding:.125em .375em;font-size:.85em}.ui.markdown :not(pre)>code.short{white-space:nowrap}.ui.markdown img{max-width:100%;height:auto}.ui.markdown del{color:var(--_ui-markdown-muted)}.ui.markdown ui-code{display:block}.ui.markdown :is(ui-header,ui-list,ui-message,ui-segment,ui-table,ui-divider){margin-block:0 1em;display:block}.ui.markdown ui-header{margin-block-start:1.5em}.ui.markdown ui-list ui-list{margin-block-end:0}.ui.markdown>:first-child{margin-block-start:0}.ui.markdown>:last-child{margin-block-end:0}[part~=tabs]{border-block-end:1px solid var(--_ui-markdown-editor-border);gap:.25em;display:flex}[part~=tab]{color:var(--_ui-markdown-muted);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-start-start-radius:var(--_ui-markdown-radius);border-start-end-radius:var(--_ui-markdown-radius);margin-block-end:-1px;padding:.5em 1em}[part~=tab][aria-selected=true]{border-color:var(--_ui-markdown-editor-border);border-block-end-color:var(--_ui-markdown-editor-background);background:var(--_ui-markdown-editor-background);color:var(--_ui-markdown-color)}[part~=editor]{box-sizing:border-box;border:1px solid var(--_ui-markdown-editor-border);border-radius:var(--_ui-markdown-radius);background:var(--_ui-markdown-editor-background);width:100%;min-height:12em;color:var(--_ui-markdown-color);font-family:var(--ui-font-family-mono);resize:vertical;padding:.75em;font-size:.875em;line-height:1.5;display:block}.ui.tabs.editable.markdown{margin-block-start:.75em}}@layer ui.components.markdown.variations;@layer ui.components.markdown.states{:host{--_ui-markdown-edit-color:var(--ui-markdown-edit-color,var(--ui-primary));--_ui-markdown-bar-background:var(--ui-markdown-bar-background,var(--ui-background))}:host(:state(placing)) .ui.editable.markdown [data-ui-place]{outline:1px dashed color-mix(in oklch, var(--_ui-markdown-edit-color) 70%, transparent);outline-offset:-1px;cursor:text}.ui.editable.markdown [part~=edit-box]{outline:2px solid var(--_ui-markdown-edit-color);outline-offset:1px;background:color-mix(in oklch, var(--_ui-markdown-edit-color) 6%, transparent);font-family:var(--ui-font-family-mono);white-space:pre-wrap;overflow-wrap:anywhere;anchor-name:--ui-markdown-box;border-radius:2px;font-size:.92em}.ui.editable.markdown [part~=edit-box][data-view=formatted]{font-family:inherit;font-size:inherit}[part~=edit-box] .md-mark{opacity:.4;font-style:normal;font-weight:400}[part~=edit-box] .md-bold{font-weight:700}[part~=edit-box] .md-italic{font-style:italic}[part~=edit-box] .md-strikethrough{text-decoration:line-through}[part~=edit-box] .md-code,[part~=edit-box] code{font-family:var(--ui-font-family-mono);font-size:.92em}[part~=edit-box] .md-link{color:var(--_ui-markdown-link-color,var(--ui-link))}[part~=edit-bar]{color:inherit;position-anchor:--ui-markdown-box;position-area:block-start span-inline-end;position-try-fallbacks:flip-block;z-index:10;border:1px solid var(--_ui-markdown-editor-border);border-radius:var(--_ui-markdown-radius);background:var(--_ui-markdown-bar-background);backdrop-filter:blur(12px);align-items:center;gap:2px;margin-block:6px;margin-inline:0;padding:3px;font-size:.875em;display:flex;position:fixed;inset:auto;overflow:visible;box-shadow:0 2px 8px oklch(0% none none/.12)}[part~=edit-bar] input{font:inherit;border:1px solid var(--_ui-markdown-editor-border);border-radius:var(--_ui-markdown-radius);background:var(--_ui-markdown-editor-background);color:var(--_ui-markdown-color);inline-size:18em;padding:.2em .4em}}", He = /* @__PURE__ */ S("<section><article>"), Ue = /* @__PURE__ */ S("<nav>"), We = /* @__PURE__ */ S("<button type=button>"), Ge = /* @__PURE__ */ S("<section><textarea>"), Ke, N, P, qe, Je, Ye, Xe, Ze, F, I, L, R, z, Qe, $e, et, tt, nt, rt, B, V, H, U, W, G, K = class _DOMMarkdownElement extends (N = e, Ke = [h], N) {
|
|
825
881
|
constructor() {
|
|
826
|
-
super(...arguments),
|
|
882
|
+
super(...arguments), u(P, 5, this);
|
|
827
883
|
}
|
|
828
884
|
get headings() {
|
|
829
885
|
return this.component?.headings ?? [];
|
|
@@ -832,40 +888,40 @@ var P = N, F = class MarkdownSource {
|
|
|
832
888
|
return this.component?.reveal(e) ?? !1;
|
|
833
889
|
}
|
|
834
890
|
};
|
|
835
|
-
|
|
836
|
-
var
|
|
891
|
+
P = t(N), c(P, 2, "headings", Ke, K), l(P, K), r(K, "DOMMarkdownElement");
|
|
892
|
+
var it = K, q = class _UIMarkdown extends (B = i, rt = [oe], nt = [se], tt = [ie("textToShow", "skipTitle", "loadStatus", "editable", "shownTab", "breaks", "headingOffset", "sanitized")], et = [m], $e = [h], Qe = [ie("textToShow")], z = [m], R = [f("placing")], L = [m], I = [f("editing")], F = [le], Ze = [h], Xe = [h], Ye = [h], Je = [m], qe = [le], B) {
|
|
837
893
|
constructor() {
|
|
838
|
-
super(...arguments),
|
|
894
|
+
super(...arguments), u(V, 5, this), n(this, "body"), n(this, "ticket", 0), n(this, "rendered", /* @__PURE__ */ new WeakMap()), p(this, H, u(V, 8, this, X)), u(V, 11, this), n(this, "textBox"), n(this, "tabButtons", /* @__PURE__ */ new Map()), n(this, "keepTextBox", u(V, 32, this, /* @__PURE__ */ r((e) => {
|
|
839
895
|
this.textBox = e, e.value = this.textToShow;
|
|
840
|
-
}, "keepTextBox"))),
|
|
896
|
+
}, "keepTextBox"))), u(V, 35, this), n(this, "onInput", /* @__PURE__ */ r((e) => {
|
|
841
897
|
this.content = e.currentTarget.value;
|
|
842
|
-
}, "onInput")), n(this, "onTabKeyDown", /* @__PURE__ */
|
|
843
|
-
|
|
844
|
-
container:
|
|
845
|
-
items: /* @__PURE__ */
|
|
898
|
+
}, "onInput")), n(this, "onTabKeyDown", /* @__PURE__ */ r((e) => {
|
|
899
|
+
s.focus.arrowKey(e, {
|
|
900
|
+
container: e.currentTarget,
|
|
901
|
+
items: /* @__PURE__ */ r(() => Q.map((e) => this.tabButtons.get(e)), "items"),
|
|
846
902
|
orientation: "horizontal",
|
|
847
903
|
tabindex: "left alone",
|
|
848
|
-
onChange: /* @__PURE__ */
|
|
904
|
+
onChange: /* @__PURE__ */ r((e, t) => this.shownTab = Q[t], "onChange")
|
|
849
905
|
});
|
|
850
|
-
}, "onTabKeyDown")),
|
|
906
|
+
}, "onTabKeyDown")), p(this, U, u(V, 12, this, !1)), u(V, 15, this), p(this, W, u(V, 16, this)), u(V, 19, this), n(this, "places", []), n(this, "placesOffset", 0), n(this, "isRenderWaiting", !1), n(this, "keepTimer"), n(this, "engine"), n(this, "saves", Promise.resolve()), n(this, "onBoxKey", u(V, 36, this, /* @__PURE__ */ r((e) => {
|
|
851
907
|
e.stopPropagation();
|
|
852
908
|
let t = this.box;
|
|
853
909
|
if (!t) return;
|
|
854
|
-
let n = e.key === "Enter" && e.shiftKey && t.place.kind === "paragraph", r = e.shiftKey ? void 0 :
|
|
910
|
+
let n = e.key === "Enter" && e.shiftKey && t.place.kind === "paragraph", r = e.shiftKey ? void 0 : lt[e.key];
|
|
855
911
|
if (r !== void 0) t.editor.caret = r === "start" ? 0 : (t.editor.field.textContent ?? "").length;
|
|
856
912
|
else if (e.key === "Escape") this.putBack();
|
|
857
913
|
else if (e.key === "Enter" && !n) this.keep("close");
|
|
858
914
|
else if (e.key === "Tab") this.keep(e.shiftKey ? "previous" : "next");
|
|
859
915
|
else return;
|
|
860
916
|
e.preventDefault();
|
|
861
|
-
}, "onBoxKey"))),
|
|
862
|
-
this.keepTimer?.cancel(), this.keepTimer = d(
|
|
863
|
-
}, "onBoxInput"))),
|
|
917
|
+
}, "onBoxKey"))), u(V, 39, this), n(this, "onBoxInput", u(V, 40, this, /* @__PURE__ */ r(() => {
|
|
918
|
+
this.keepTimer?.cancel(), this.keepTimer = d(ct, () => void this.keep("open"));
|
|
919
|
+
}, "onBoxInput"))), u(V, 43, this), n(this, "onBoxLeft", u(V, 44, this, /* @__PURE__ */ r((e) => {
|
|
864
920
|
let t = this.box, n = e.relatedTarget;
|
|
865
921
|
t && !t.editor.field.contains(n) && !t.editor.bar.contains(n) && this.keep("close");
|
|
866
|
-
}, "onBoxLeft"))),
|
|
922
|
+
}, "onBoxLeft"))), u(V, 47, this), p(this, G, u(V, 20, this, [])), u(V, 23, this), n(this, "hasRendered", !1), n(this, "onClick", /* @__PURE__ */ r((e) => {
|
|
867
923
|
if (this.editsInPlace && e.altKey && this.openAt(e)) return e.preventDefault();
|
|
868
|
-
let t = e.target.closest?.(
|
|
924
|
+
let t = e.target.closest?.(Ct), n = t && _UIMarkdown.idForHash(t.getAttribute("href"));
|
|
869
925
|
n && this.reveal(n) && e.preventDefault();
|
|
870
926
|
}, "onClick"));
|
|
871
927
|
}
|
|
@@ -879,7 +935,7 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
879
935
|
this.isRenderWaiting = !0;
|
|
880
936
|
return;
|
|
881
937
|
}
|
|
882
|
-
let t = this.textToShow, n = this.skipTitle ? t.replace(
|
|
938
|
+
let t = this.textToShow, n = this.skipTitle ? t.replace(ft, "") : t;
|
|
883
939
|
return this.placesOffset = t.length - n.length, this.renderMarkdown({
|
|
884
940
|
text: n,
|
|
885
941
|
isEditable: !!this.editable,
|
|
@@ -893,42 +949,42 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
893
949
|
}
|
|
894
950
|
renderContent() {
|
|
895
951
|
let e = this;
|
|
896
|
-
return [
|
|
952
|
+
return [me(fe, {
|
|
897
953
|
get when() {
|
|
898
954
|
return e.hasTabs;
|
|
899
955
|
},
|
|
900
956
|
get children() {
|
|
901
|
-
return [
|
|
957
|
+
return [y(() => e.tabs()), y(() => e.editor())];
|
|
902
958
|
}
|
|
903
959
|
}), (() => {
|
|
904
|
-
var t =
|
|
905
|
-
return
|
|
960
|
+
var t = He(), n = t.firstChild;
|
|
961
|
+
return g(n, "click", e.onClick, !0), b(() => (t) => {
|
|
906
962
|
e.body = t;
|
|
907
|
-
}, n),
|
|
963
|
+
}, n), _(() => ({
|
|
908
964
|
e: _UIMarkdown.panelId(Z),
|
|
909
965
|
t: e.hasTabs ? $.panel : void 0,
|
|
910
966
|
a: e.hasTabs ? _UIMarkdown.tabId(Z) : void 0,
|
|
911
967
|
o: e.hasTabs && e.shownTab !== Z ? !0 : void 0,
|
|
912
|
-
i:
|
|
968
|
+
i: ge(e.rootClass),
|
|
913
969
|
n: e.partForName("body")
|
|
914
970
|
}), ({ e, t: r, a: i, o: a, i: o, n: s }, c) => {
|
|
915
|
-
e !== c?.e &&
|
|
971
|
+
e !== c?.e && x(t, "id", e), r !== c?.t && x(t, "role", r), i !== c?.a && x(t, "aria-labelledby", i), a !== c?.o && x(t, "hidden", a), pe(n, o, c?.i), s !== c?.n && x(n, "part", s);
|
|
916
972
|
}), t;
|
|
917
973
|
})()];
|
|
918
974
|
}
|
|
919
975
|
get hasTabs() {
|
|
920
|
-
return this.editable ===
|
|
976
|
+
return this.editable === st;
|
|
921
977
|
}
|
|
922
978
|
tabs() {
|
|
923
979
|
let e = this;
|
|
924
|
-
var t =
|
|
925
|
-
return
|
|
980
|
+
var t = Ue();
|
|
981
|
+
return g(t, "keydown", e.onTabKeyDown, !0), v(t, me(de, {
|
|
926
982
|
each: Q,
|
|
927
983
|
children: (t) => (() => {
|
|
928
|
-
var n =
|
|
929
|
-
return n._$$click = () => e.shownTab = t,
|
|
984
|
+
var n = We();
|
|
985
|
+
return n._$$click = () => e.shownTab = t, b(() => (n) => {
|
|
930
986
|
e.tabButtons.set(t, n);
|
|
931
|
-
}, n),
|
|
987
|
+
}, n), v(n, () => e.translationForKey(t)), _(() => ({
|
|
932
988
|
e: _UIMarkdown.tabId(t),
|
|
933
989
|
t: $.tab,
|
|
934
990
|
a: e.partForName("tab"),
|
|
@@ -936,22 +992,22 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
936
992
|
i: _UIMarkdown.panelId(t),
|
|
937
993
|
n: e.shownTab === t ? 0 : -1
|
|
938
994
|
}), ({ e, t, a: r, o: i, i: a, n: o }, s) => {
|
|
939
|
-
e !== s?.e &&
|
|
995
|
+
e !== s?.e && x(n, "id", e), t !== s?.t && x(n, "role", t), r !== s?.a && x(n, "part", r), i !== s?.o && x(n, "aria-selected", i), a !== s?.i && x(n, "aria-controls", a), o !== s?.n && x(n, "tabindex", o);
|
|
940
996
|
}), n;
|
|
941
997
|
})()
|
|
942
|
-
})),
|
|
998
|
+
})), _(() => ({
|
|
943
999
|
e: e.partForName("tabs"),
|
|
944
1000
|
t: $.list
|
|
945
1001
|
}), ({ e, t: n }, r) => {
|
|
946
|
-
e !== r?.e &&
|
|
1002
|
+
e !== r?.e && x(t, "part", e), n !== r?.t && x(t, "role", n);
|
|
947
1003
|
}), t;
|
|
948
1004
|
}
|
|
949
1005
|
editor() {
|
|
950
1006
|
let e = this;
|
|
951
|
-
var t =
|
|
952
|
-
|
|
1007
|
+
var t = Ge(), n = t.firstChild;
|
|
1008
|
+
g(n, "input", e.onInput, !0);
|
|
953
1009
|
var r = e.keepTextBox;
|
|
954
|
-
return typeof r == "function" || Array.isArray(r) ?
|
|
1010
|
+
return typeof r == "function" || Array.isArray(r) ? b(() => r, n) : e.keepTextBox = n, _(() => ({
|
|
955
1011
|
e: _UIMarkdown.panelId(X),
|
|
956
1012
|
t: $.panel,
|
|
957
1013
|
a: _UIMarkdown.tabId(X),
|
|
@@ -959,7 +1015,7 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
959
1015
|
i: e.partForName("editor"),
|
|
960
1016
|
n: e.translationForKey("editor")
|
|
961
1017
|
}), ({ e, t: r, a: i, o: a, i: o, n: s }, c) => {
|
|
962
|
-
e !== c?.e &&
|
|
1018
|
+
e !== c?.e && x(t, "id", e), r !== c?.t && x(t, "role", r), i !== c?.a && x(t, "aria-labelledby", i), a !== c?.o && x(t, "hidden", a), o !== c?.i && x(n, "part", o), s !== c?.n && x(n, "aria-label", s);
|
|
963
1019
|
}), t;
|
|
964
1020
|
}
|
|
965
1021
|
onTextChanged(e) {
|
|
@@ -975,8 +1031,8 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
975
1031
|
return !!this.box;
|
|
976
1032
|
}
|
|
977
1033
|
followOptionKey() {
|
|
978
|
-
let
|
|
979
|
-
return window.addEventListener("keydown",
|
|
1034
|
+
let e = new AbortController(), t = { signal: e.signal }, n = /* @__PURE__ */ r((e) => this.isOptionHeld = e.altKey, "follow");
|
|
1035
|
+
return window.addEventListener("keydown", n, t), window.addEventListener("keyup", n, t), window.addEventListener("blur", () => this.isOptionHeld = !1, t), () => e.abort();
|
|
980
1036
|
}
|
|
981
1037
|
openAt(e) {
|
|
982
1038
|
let t = e.target;
|
|
@@ -991,7 +1047,7 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
991
1047
|
this.box && await this.keep("close");
|
|
992
1048
|
let n = this.places[Number(e.getAttribute(J))];
|
|
993
1049
|
if (!n || !e.isConnected) return;
|
|
994
|
-
let r = this.textToShow, i = n.start + this.placesOffset, a = n.end + this.placesOffset, o = r.slice(i, a), s = _UIMarkdown.holderOf(e), c = _UIMarkdown.ownNodes(s), l = t ? this.caretFor(s, o, t) : o.length, u =
|
|
1050
|
+
let r = this.textToShow, i = n.start + this.placesOffset, a = n.end + this.placesOffset, o = r.slice(i, a), s = _UIMarkdown.holderOf(e), c = _UIMarkdown.ownNodes(s), l = t ? this.caretFor(s, o, t) : o.length, u = C.shapeOf(r, {
|
|
995
1051
|
...n,
|
|
996
1052
|
start: i,
|
|
997
1053
|
end: a
|
|
@@ -1014,32 +1070,32 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
1014
1070
|
base: r
|
|
1015
1071
|
}, d.focus(d.view === "marks" ? l : void 0);
|
|
1016
1072
|
}
|
|
1017
|
-
boxFor(t, n
|
|
1073
|
+
boxFor(e, t, n) {
|
|
1018
1074
|
let i = this.engine;
|
|
1019
|
-
return new
|
|
1075
|
+
return new Ce({
|
|
1020
1076
|
document: this.domElement.ownerDocument,
|
|
1021
|
-
kind:
|
|
1022
|
-
raw:
|
|
1023
|
-
shape:
|
|
1024
|
-
label: this.translationForKey("editBox", { kind: this.translationForKey(
|
|
1077
|
+
kind: e,
|
|
1078
|
+
raw: t,
|
|
1079
|
+
shape: n,
|
|
1080
|
+
label: this.translationForKey("editBox", { kind: this.translationForKey(e) }),
|
|
1025
1081
|
parts: {
|
|
1026
1082
|
box: this.partForName("edit-box"),
|
|
1027
1083
|
bar: this.partForName("edit-bar")
|
|
1028
1084
|
},
|
|
1029
|
-
texts: /* @__PURE__ */
|
|
1085
|
+
texts: /* @__PURE__ */ r((e) => this.translationForKey(e), "texts"),
|
|
1030
1086
|
view: _UIMarkdown.chosenView,
|
|
1031
1087
|
renderInline: i?.renderInline ? (e) => i.renderInline(e) : void 0,
|
|
1032
1088
|
onKey: this.onBoxKey,
|
|
1033
1089
|
onInput: this.onBoxInput,
|
|
1034
1090
|
onLeave: this.onBoxLeft,
|
|
1035
|
-
onView: /* @__PURE__ */
|
|
1091
|
+
onView: /* @__PURE__ */ r((e) => _UIMarkdown.chosenView = e, "onView")
|
|
1036
1092
|
});
|
|
1037
1093
|
}
|
|
1038
1094
|
static get chosenView() {
|
|
1039
|
-
return
|
|
1095
|
+
return ue.getAt(ot) === "formatted" ? "formatted" : "marks";
|
|
1040
1096
|
}
|
|
1041
1097
|
static set chosenView(e) {
|
|
1042
|
-
|
|
1098
|
+
ue.setAt(ot, e);
|
|
1043
1099
|
}
|
|
1044
1100
|
async keep(e) {
|
|
1045
1101
|
let t = this.box;
|
|
@@ -1055,7 +1111,7 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
1055
1111
|
...t.place,
|
|
1056
1112
|
start: i,
|
|
1057
1113
|
end: i + t.raw.length
|
|
1058
|
-
}, o = t.editor.shape, s = o && o !== t.shape ?
|
|
1114
|
+
}, o = t.editor.shape, s = o && o !== t.shape ? C.reshape(r, a, n, o) : void 0, c = s?.text ?? Pe.replace(r, a, n), l = e === "next" || e === "previous" ? this.neighbourOf(t.piece, e) : void 0, u = l && this.startInNext(l, a, c.length - r.length);
|
|
1059
1115
|
if (c !== r && (t.place = s?.place ?? {
|
|
1060
1116
|
...a,
|
|
1061
1117
|
end: c.length - (r.length - a.end)
|
|
@@ -1081,7 +1137,7 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
1081
1137
|
}
|
|
1082
1138
|
onKeepConflict() {
|
|
1083
1139
|
let e = /* @__PURE__ */ Error("<ui-markdown>: this text changed while it was edited; copy what you typed, and reload");
|
|
1084
|
-
this.sendSourceEvent(
|
|
1140
|
+
this.sendSourceEvent(o.error, {
|
|
1085
1141
|
kind: "conflict",
|
|
1086
1142
|
source: this.source || void 0,
|
|
1087
1143
|
error: e
|
|
@@ -1126,32 +1182,32 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
1126
1182
|
return t?.scrollIntoView(), !!t;
|
|
1127
1183
|
}
|
|
1128
1184
|
loadEngine() {
|
|
1129
|
-
return
|
|
1185
|
+
return M.load();
|
|
1130
1186
|
}
|
|
1131
1187
|
async renderMarkdown({ text: e, options: t, isEditable: n }) {
|
|
1132
1188
|
let r = ++this.ticket;
|
|
1133
1189
|
try {
|
|
1134
|
-
await
|
|
1135
|
-
let [i, a] = await Promise.all([this.loadEngine(), t.sanitized ?
|
|
1190
|
+
await s.load();
|
|
1191
|
+
let [i, a] = await Promise.all([this.loadEngine(), t.sanitized ? M.loadSanitizer() : void 0]);
|
|
1136
1192
|
if (r !== this.ticket || !this.body) return;
|
|
1137
1193
|
this.engine = i;
|
|
1138
|
-
let { html: o, headings:
|
|
1139
|
-
this.upgradeCode(u), this.keepShortCode(u), this.labelTaskItems(u), this.resolveUrls(u), n ? this.patchBody(this.body, u) : this.body.replaceChildren(u), this.places = l ?? [], this.headings =
|
|
1194
|
+
let { html: o, headings: c, places: l } = i.render(e, t), u = a ? a.sanitize(o, { uiTags: !!i.drawsUITags }) : this.domElement.ownerDocument.createRange().createContextualFragment(o);
|
|
1195
|
+
this.upgradeCode(u), this.keepShortCode(u), this.labelTaskItems(u), this.resolveUrls(u), n ? this.patchBody(this.body, u) : this.body.replaceChildren(u), this.places = l ?? [], this.headings = c, this.send("ui-drawn", { headings: c }), this.hasRendered || (this.hasRendered = !0, this.onHashChange());
|
|
1140
1196
|
} catch (e) {
|
|
1141
1197
|
r === this.ticket && this.onLoadError(e, "render");
|
|
1142
1198
|
}
|
|
1143
1199
|
}
|
|
1144
1200
|
upgradeCode(e) {
|
|
1145
|
-
for (let t of e.querySelectorAll(
|
|
1146
|
-
let e = t.parentElement, n = this.domElement.ownerDocument.createElement(
|
|
1147
|
-
r && n.setAttribute(
|
|
1201
|
+
for (let t of e.querySelectorAll(pt)) {
|
|
1202
|
+
let e = t.parentElement, n = this.domElement.ownerDocument.createElement(vt), r = _t.exec(t.className)?.[1];
|
|
1203
|
+
r && n.setAttribute(yt, r), n.setAttribute(bt, ""), n.textContent = (t.textContent ?? "").replace(/\n$/, ""), e.replaceWith(n);
|
|
1148
1204
|
}
|
|
1149
1205
|
}
|
|
1150
1206
|
keepShortCode(e) {
|
|
1151
|
-
for (let t of e.querySelectorAll(
|
|
1207
|
+
for (let t of e.querySelectorAll(mt)) (t.textContent ?? "").length <= ht && t.classList.add(gt);
|
|
1152
1208
|
}
|
|
1153
1209
|
labelTaskItems(e) {
|
|
1154
|
-
for (let t of e.querySelectorAll(
|
|
1210
|
+
for (let t of e.querySelectorAll(xt)) {
|
|
1155
1211
|
let e = t.parentElement.textContent?.trim();
|
|
1156
1212
|
e && t.setAttribute("aria-label", e);
|
|
1157
1213
|
}
|
|
@@ -1160,7 +1216,7 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
1160
1216
|
let t = this.source || void 0;
|
|
1161
1217
|
if (!t) return;
|
|
1162
1218
|
let n = new URL(t, this.domElement.ownerDocument.baseURI);
|
|
1163
|
-
for (let t of
|
|
1219
|
+
for (let t of St) for (let r of e.querySelectorAll(`[${t}]`)) {
|
|
1164
1220
|
let e = r.getAttribute(t);
|
|
1165
1221
|
if (!e.startsWith("#")) try {
|
|
1166
1222
|
r.setAttribute(t, new URL(e, n).href);
|
|
@@ -1190,8 +1246,8 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
1190
1246
|
static ownNodes(e) {
|
|
1191
1247
|
let t = [];
|
|
1192
1248
|
for (let n of e.childNodes) {
|
|
1193
|
-
if (n.nodeType === a.element &&
|
|
1194
|
-
n.nodeType === a.element && n.matches(
|
|
1249
|
+
if (n.nodeType === a.element && ut.test(n.localName)) break;
|
|
1250
|
+
n.nodeType === a.element && n.matches(dt) || t.push(n);
|
|
1195
1251
|
}
|
|
1196
1252
|
return t;
|
|
1197
1253
|
}
|
|
@@ -1206,27 +1262,25 @@ var rt = K, q = class _UIMarkdown extends (B = r, nt = [ae], tt = [oe], et = [p(
|
|
|
1206
1262
|
return `ui-markdown-${e}-panel`;
|
|
1207
1263
|
}
|
|
1208
1264
|
};
|
|
1209
|
-
V =
|
|
1210
|
-
styleSheets: { markdown:
|
|
1211
|
-
DOMElement:
|
|
1265
|
+
V = t(B), H = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), c(V, 1, "onMarkdownChanged", tt, q), c(V, 4, "shownTab", et, q, H), c(V, 1, "onTextChanged", Qe, q), c(V, 4, "isOptionHeld", z, q, U), c(V, 2, "isPlacing", R, q), c(V, 4, "box", L, q, W), c(V, 2, "isEditingInPlace", I, q), c(V, 1, "followOptionKey", F, q), c(V, 4, "headings", Je, q, G), c(V, 1, "followHash", qe, q), c(V, 13, "vocabulary", rt, q), c(V, 13, "elementSetup", nt, q), c(V, 5, "keepTextBox", $e, q), c(V, 5, "onBoxKey", Ze, q), c(V, 5, "onBoxInput", Xe, q), c(V, 5, "onBoxLeft", Ye, q), l(V, q), r(q, "UIMarkdown"), n(q, "vocabulary", u(V, 24, q, Be)), u(V, 27, q), n(q, "elementSetup", u(V, 28, q, {
|
|
1266
|
+
styleSheets: { markdown: Ve },
|
|
1267
|
+
DOMElement: it,
|
|
1212
1268
|
delegatesFocus: !1
|
|
1213
|
-
})),
|
|
1214
|
-
var
|
|
1269
|
+
})), u(V, 31, q);
|
|
1270
|
+
var at = q, ot = "ui-markdown:edit-view", st = "tabs", J = "data-ui-place", Y = `[${J}]`, ct = 5, lt = {
|
|
1215
1271
|
Home: "start",
|
|
1216
1272
|
End: "end"
|
|
1217
|
-
},
|
|
1273
|
+
}, ut = /^(ul|ol)$/, dt = "input[type=checkbox]", X = "write", Z = "preview", Q = [X, Z], $ = {
|
|
1218
1274
|
list: "tablist",
|
|
1219
1275
|
tab: "tab",
|
|
1220
1276
|
panel: "tabpanel"
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
fe([
|
|
1277
|
+
}, ft = /^(?:[ \t]*\n)*[ ]{0,3}(?:#(?=[ \t\n]|$)[^\n]*|[^\s][^\n]*\n[ ]{0,3}=+[ \t]*)(?:\n|$)/, pt = "pre > code", mt = ":not(pre) > code", ht = 28, gt = "short", _t = /\blanguage-(\S+)/, vt = "ui-code", yt = "language", bt = "copy", xt = "li > input[type=checkbox], ui-item > ui-checkbox", St = ["href", "src"], Ct = "a[href^='#']";
|
|
1278
|
+
// src/components/ui-markdown/index.ts
|
|
1279
|
+
he([
|
|
1225
1280
|
"click",
|
|
1226
1281
|
"keydown",
|
|
1227
1282
|
"input"
|
|
1228
|
-
]),
|
|
1229
|
-
|
|
1230
|
-
export { rt as DOMMarkdownElement, P as MarkdownRenderer, it as UIMarkdown, F as t };
|
|
1283
|
+
]), at.define();
|
|
1284
|
+
export { it as DOMMarkdownElement, M as MarkdownRenderer, at as UIMarkdown, Pe as t };
|
|
1231
1285
|
|
|
1232
1286
|
//# sourceMappingURL=ui-markdown.js.map
|