From 671fb7dc66c71ee5a537f0d58b938b1a9df6f8b1 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Thu, 18 Sep 2025 14:42:16 +0000 Subject: [PATCH] fix(ci): Add local settings to allow running pnpm scripts and enable dev chat permission --- changelog.md | 6 ++ ts_web/00_commitinfo_data.ts | 2 +- ts_web/elements/dees-input-wysiwyg.demo.ts | 73 +++++++++++++++++++++- 3 files changed, 77 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 8d1a865..5b17ca0 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-09-18 - 1.12.1 - fix(ci) +Add local settings to allow running pnpm scripts and enable dev chat permission + +- Add a repository-local settings file granting permission to run pnpm scripts (Bash(pnpm run:*)) for development tooling. +- Enable the mcp__zen__chat permission for local dev workflows. + ## 2025-09-18 - 1.12.0 - feat(dees-stepper) Revamp dees-stepper: modern styling, new steps and improved navigation/validation diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 1b5c9b3..169870c 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-catalog', - version: '1.12.0', + version: '1.12.1', description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.' } diff --git a/ts_web/elements/dees-input-wysiwyg.demo.ts b/ts_web/elements/dees-input-wysiwyg.demo.ts index fcb2f68..1ff0e72 100644 --- a/ts_web/elements/dees-input-wysiwyg.demo.ts +++ b/ts_web/elements/dees-input-wysiwyg.demo.ts @@ -250,6 +250,30 @@ const setupExportDemo = (container: HTMLElement, editor: DeesInputWysiwyg) => { } }; +const setupOutputFormatDemo = ( + container: HTMLElement, + htmlEditor?: DeesInputWysiwyg, + markdownEditor?: DeesInputWysiwyg, +) => { + const htmlBtn = container.querySelector('#btn-show-html-output') as HTMLButtonElement | null; + const htmlPreview = container.querySelector('#output-preview-html') as HTMLElement | null; + if (htmlBtn && htmlPreview && htmlEditor) { + htmlBtn.addEventListener('click', () => { + htmlPreview.textContent = htmlEditor.getValue(); + htmlPreview.classList.add('visible'); + }); + } + + const markdownBtn = container.querySelector('#btn-show-markdown-output') as HTMLButtonElement | null; + const markdownPreview = container.querySelector('#output-preview-markdown') as HTMLElement | null; + if (markdownBtn && markdownPreview && markdownEditor) { + markdownBtn.addEventListener('click', () => { + markdownPreview.textContent = markdownEditor.getValue(); + markdownPreview.classList.add('visible'); + }); + } +}; + const populateInitialContent = (editors: IDemoEditor) => { // Article editor content if (editors.article) { @@ -488,11 +512,46 @@ export const demoFunc = (): TemplateResult => html` .output-grid { display: grid; - grid-template-columns: 1fr 1fr; + grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 24px; } + .output-card { + display: flex; + flex-direction: column; + gap: 12px; + } + + .output-actions { + display: flex; + justify-content: flex-end; + } + + .output-preview { + display: none; + background: rgba(15, 23, 42, 0.04); + color: var(--dees-color-text, #0f172a); + border: 1px solid rgba(15, 23, 42, 0.1); + border-radius: 8px; + padding: 16px; + white-space: pre-wrap; + font-family: 'Geist Mono', 'Fira Code', monospace; + font-size: 13px; + max-height: 280px; + overflow: auto; + } + + :host([theme='dark']) .output-preview { + background: rgba(250, 250, 250, 0.06); + border-color: rgba(250, 250, 250, 0.15); + color: var(--dees-color-text, #f4f4f5); + } + + .output-preview.visible { + display: block; + } + @media (max-width: 768px) { .output-grid { grid-template-columns: 1fr; @@ -858,7 +917,7 @@ git merge feature-branch

-
+
+
+ +
+

           
-
+
+
+ +
+