stable
Clone or download
Read-only
part of story #32315 Add support of markdown This contribution introduces a new custom element whose role is to display a commonmark cheatsheet. It is available as a lib, so it can be reused everywhere we can write commonmark. I needed to know whether the popover was hidden or shown, so I've made it dispatch events, like it is already done in tlp-tooltip and tlp-modal. How to test: - In WritingZones headers --> There is a trigger "Markdown available (?)" on the right end - hover it --> It is underlined - Click it --> The popover is shown --> You can scroll it --> The trigger text appears in tlp-main-color Change-Id: Ief302e999d36fc329e2f90c8344dcfaa43c7c1e5
Modified Files
Name | ||||
---|---|---|---|---|
M | build-manifest.json | +4 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/.gitignore | +1 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/README.md | +26 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/package.json | +35 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/pnpm-lock.yaml | +35 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/po/fr_FR.po | +22 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/CommonmarkPopover.test.ts | +82 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/CommonmarkPopover.ts | +72 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/CommonmarkPopoverController.test.ts | +97 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/CommonmarkPopoverController.ts | +63 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/CommonmarkPopoverTemplate.test.ts | +104 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/CommonmarkPopoverTemplate.ts | +173 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/gettext-provider.ts | +27 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/index.ts | +20 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/pofile-shims.d.ts | +24 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/src/scss-shims.d.ts | +23 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/tests/stubs/CommonmarkPopover.ts | +25 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/tests/stubs/GettextProviderStub.ts | +27 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/themes/assets/image_example_commonmark.png | Binary file | Go to diff View file | |
A | lib/frontend/commonmark-popover/themes/style.scss | +123 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/tsconfig.json | +7 | −0 | Go to diff View file |
A | lib/frontend/commonmark-popover/vite.config.ts | +32 | −0 | Go to diff View file |
M | lib/frontend/tlp-popovers/src/index.ts | +1 | −0 | Go to diff View file |
M | lib/frontend/tlp-popovers/src/popovers.test.ts | +72 | −1 | Go to diff View file |
M | lib/frontend/tlp-popovers/src/popovers.ts | +14 | −16 | Go to diff View file |
M | lib/frontend/tlp-popovers/themes/style.scss | +19 | −1 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/pullrequest-comments/package.json | +1 | −0 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/pullrequest-comments/pnpm-lock.yaml | +3 | −0 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/pullrequest-comments/src/main.ts | +1 | −0 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/pullrequest-comments/src/writing-zone/WritingZone.test.ts | +1 | −0 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/pullrequest-comments/src/writing-zone/WritingZoneTemplate.test.ts | +1 | −0 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/pullrequest-comments/src/writing-zone/WritingZoneTemplate.ts | +2 | −0 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/pullrequest-comments/themes/includes/_writing-zone.scss | +6 | −0 | Go to diff View file |
M | src/scripts/tlp/src/scss/components/_css-var-root.scss | +1 | −0 | Go to diff View file |