diff --git a/changelog.md b/changelog.md index 362d090..6638a62 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-12-28 - 1.5.0 - feat(html) +configure deesWccTools with sections metadata for Elements and Pages + +- Replaced positional setupWccTools call with a config object containing sections +- Adds two sections: 'Elements' (type: elements, icon: widgets) and 'Pages' (type: pages, icon: web) mapping items to imported modules +- No behavioral change to subsequent deesDomTools.elementBasic.setup() call + ## 2025-12-28 - 1.4.2 - fix(deps) add MIT license, update package metadata and bump dependencies; simplify docs diff --git a/html/index.ts b/html/index.ts index cbfe6bd..3693613 100644 --- a/html/index.ts +++ b/html/index.ts @@ -8,5 +8,20 @@ import '@design.estate/dees-wcctools/demotools'; import * as elements from '../ts_web/elements/index.js'; import * as pages from '../ts_web/pages/index.js'; -deesWccTools.setupWccTools(elements as any, pages); +deesWccTools.setupWccTools({ + sections: [ + { + name: 'Elements', + type: 'elements', + items: elements, + icon: 'widgets', + }, + { + name: 'Pages', + type: 'pages', + items: pages, + icon: 'web', + }, + ], +}); deesDomTools.elementBasic.setup(); diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index d58d1f9..eae61d5 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@uptime.link/statuspage', - version: '1.4.2', + version: '1.5.0', description: 'A catalog of web components for the UptimeLink dashboard.' }