@razorwind/notepad-plus-plus 0.0.6 → 0.0.8

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/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require("@razorwind/core/plugin"),t=require("@razorwind/core/utils"),n=require("node:path");function r(e){let t=e.themes[0];return`# Installing ${e.themes.length===1?t.displayName:`Notepad++ Themes`}
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require("@razorwind/core/plugin"),t=require("@razorwind/core/utils"),n=require("node:path");function r(e){let t=e.themes[0];return`# Installing ${e.title??(e.themes.length===1?t.displayName:`Notepad++ Themes`)}
2
2
 
3
3
  Generated by \`@razorwind/notepad-plus-plus\`.
4
4
 
@@ -48,4 +48,4 @@ If tab text or backgrounds look wrong, check:
48
48
  `}function i(e){return(0,t.themeDisplayName)(e)}const a={name:`razorwind-notepad-plus-plus`};function o(e,n,r){return(0,t.createDocument)(e,n,a,r)}function s(e){return(0,t.isObject)(e)&&typeof e.name==`string`&&e.name.length>0}function c(e){if(Array.isArray(e))return e.map((e,t)=>{if(!s(e))throw TypeError(`@razorwind/notepad-plus-plus mapTheme()[${t}] must be a NotepadPlusPlusTheme with name`);return e});if(s(e))return[e];if(!(0,t.isObject)(e))throw TypeError(`@razorwind/notepad-plus-plus mapTheme() must return a theme, theme array, or theme record`);return Object.entries(e).map(([e,t])=>{if(!s(t))throw TypeError(`@razorwind/notepad-plus-plus mapTheme()["${e}"] must be a NotepadPlusPlusTheme with name`);return{...t,name:t.name||e}})}function l(e){if(!e.mapTheme)throw Error(`@razorwind/notepad-plus-plus requires options.mapTheme`)}function u(e){let t=e.trim();if(t.startsWith(`#`)){let n=t.slice(1);if(!/^[0-9a-fA-F]{6}$/.test(n))throw TypeError(`Invalid Notepad++ color: ${e}`);return n.toUpperCase()}if(/^[0-9a-fA-F]{6}$/.test(t))return t.toUpperCase();throw TypeError(`Invalid Notepad++ color: ${e}`)}function d(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`"`,`&quot;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function f(e){if(e!==void 0&&e!==``)return u(e)}function p(e){return Object.entries(e).filter(([,e])=>e!==void 0).map(([e,t])=>` ${e}="${d(String(t))}"`).join(``)}function m(e,t=``){return e.map(e=>`${t}<!-- ${e} -->`)}function h(e,t){return`${t}<WordsStyle${p({name:e.name,styleID:e.styleID,fgColor:f(e.fgColor),bgColor:f(e.bgColor),fontName:e.fontName??``,fontStyle:e.fontStyle??`0`,fontSize:e.fontSize??``,colorStyle:e.colorStyle,keywordClass:e.keywordClass})} />`}function g(e,t){let n=[`${t}<LexerType${p({name:e.name,desc:e.desc,ext:e.ext??``})}>`];for(let r of e.wordsStyles)n.push(h(r,`${t} `));return n.push(`${t}</LexerType>`),n}function _(e,t){return`${t}<WidgetStyle${p({name:e.name,styleID:e.styleID,fgColor:f(e.fgColor),bgColor:f(e.bgColor),fontName:e.fontName??``,fontStyle:e.fontStyle,fontSize:e.fontSize??``,colorStyle:e.colorStyle})}></WidgetStyle>`}function v(e){return!!(e.body||e.lexerStyles&&e.lexerStyles.length>0||e.globalStyles&&e.globalStyles.length>0)}function y(e){let t=[i(e),...e.description?[e.description]:[],...e.author?[`Author: ${e.author}`]:[],...e.date?[`Date: ${e.date}`]:[],...e.license?[`License: ${e.license}`]:[],`Generated by @razorwind/notepad-plus-plus`];return e.comments?.length&&t.push(...e.comments),m(t)}function b(e){if(e.body)return e.body.replace(/\n$/,``);let t=[];if(e.lexerStyles?.length){t.push(` <LexerStyles>`);for(let n of e.lexerStyles)t.push(...g(n,` `));t.push(` </LexerStyles>`)}if(e.globalStyles?.length){t.push(` <GlobalStyles>`);for(let n of e.globalStyles)t.push(_(n,` `));t.push(` </GlobalStyles>`)}return t.join(`
49
49
  `)}function x(e){if(e.xml)return e.xml.endsWith(`
50
50
  `)?e.xml:`${e.xml}\n`;if(!v(e))throw TypeError(`@razorwind/notepad-plus-plus theme "${e.name}" must include lexerStyles, globalStyles, body, or xml`);return[`<?xml version="1.0" encoding="UTF-8" ?>`,``,`<NotepadPlus>`,...y(e,` `),b(e),`</NotepadPlus>`,``].join(`
51
- `)}function S(e,a){l(a);let s=a.outputPath??`notepad-plus-plus-themes`,u=c(a.mapTheme(e.tokens));if(u.length===0)throw Error(`@razorwind/notepad-plus-plus mapTheme() returned no themes`);let d={},f=new Set,p=[];for(let e of u){let r=(0,t.slugifyThemeName)(e.name);if(!r)throw TypeError(`@razorwind/notepad-plus-plus theme name "${e.name}" slugifies to an empty string`);if(f.has(r)){let n=2;for(;f.has(`${(0,t.slugifyThemeName)(e.name)}-${n}`);)n+=1;r=`${(0,t.slugifyThemeName)(e.name)}-${n}`}f.add(r);let a=`${r}.xml`,c=(0,n.join)(s,a);d[c]=o(c,x({...e,name:r}),`xml`),p.push({name:r,displayName:i(e),fileName:a})}let m=a.installGuide??r({themes:p}),h=(0,n.join)(s,`INSTALL.md`);return d[h]=o(h,m,`markdown`),d}var C=(0,e.definePlugin)(e=>({name:`notepad-plus-plus`,generate:async t=>{if(!e)throw Error(`@razorwind/notepad-plus-plus requires options: { mapTheme }`);return S(t,e)}}));exports.default=C,Object.defineProperty(exports,"flattenTokens",{enumerable:!0,get:function(){return t.flattenTokens}}),Object.defineProperty(exports,"formatTokenValue",{enumerable:!0,get:function(){return t.formatTokenValue}}),exports.generateNotepadPlusPlusTheme=S,exports.normalizeThemes=c,exports.renderInstallMd=r,exports.renderNotepadPlusPlusTheme=x,Object.defineProperty(exports,"resolveTokenSets",{enumerable:!0,get:function(){return t.resolveTokenSets}}),Object.defineProperty(exports,"toCssVar",{enumerable:!0,get:function(){return t.toCssVar}}),exports.toNppColor=u;
51
+ `)}function S(e,a){l(a);let s=a.outputPath??`notepad-plus-plus-themes`,u=c(a.mapTheme(e.tokens));if(u.length===0)throw Error(`@razorwind/notepad-plus-plus mapTheme() returned no themes`);let d={},f=new Set,p=[];for(let e of u){let r=(0,t.slugifyThemeName)(e.name);if(!r)throw TypeError(`@razorwind/notepad-plus-plus theme name "${e.name}" slugifies to an empty string`);if(f.has(r)){let n=2;for(;f.has(`${(0,t.slugifyThemeName)(e.name)}-${n}`);)n+=1;r=`${(0,t.slugifyThemeName)(e.name)}-${n}`}f.add(r);let a=`${r}.xml`,c=(0,n.join)(s,a);d[c]=o(c,x({...e,name:r}),`xml`),p.push({name:r,displayName:i(e),fileName:a})}let m=a.installGuide??r({themes:p,title:(0,t.resolveSchemaIdentity)(e).title}),h=(0,n.join)(s,`INSTALL.md`);return d[h]=o(h,m,`markdown`),d}var C=(0,e.definePlugin)(e=>({name:`notepad-plus-plus`,generate:async t=>{if(!e)throw Error(`@razorwind/notepad-plus-plus requires options: { mapTheme }`);return S(t,e)}}));exports.default=C,Object.defineProperty(exports,"flattenTokens",{enumerable:!0,get:function(){return t.flattenTokens}}),Object.defineProperty(exports,"formatTokenValue",{enumerable:!0,get:function(){return t.formatTokenValue}}),exports.generateNotepadPlusPlusTheme=S,exports.normalizeThemes=c,exports.renderInstallMd=r,exports.renderNotepadPlusPlusTheme=x,Object.defineProperty(exports,"resolveTokenSets",{enumerable:!0,get:function(){return t.resolveTokenSets}}),Object.defineProperty(exports,"toCssVar",{enumerable:!0,get:function(){return t.toCssVar}}),exports.toNppColor=u;
package/dist/index.d.cts CHANGED
@@ -148,6 +148,8 @@ declare function renderInstallMd(options: {
148
148
  displayName: string;
149
149
  fileName: string;
150
150
  }>;
151
+ /** Design-system / package title from Schema when multiple themes. */
152
+ title?: string;
151
153
  }): string;
152
154
  //#endregion
153
155
  //#region src/generate.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/install.ts","../src/generate.ts","../src/index.ts"],"mappings":";;;;;;;;UAyBiB;;EAEf;;EAEA,OAAO;;EAEP;;EAEA;;EAEA;;EAEA;;;;;;;UAQe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;EAMA;EACA;;;;;UAMe;;EAEf;;EAEA;;EAEA;EACA,aAAa;;;;;UAME;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;UAYe;;;;EAIf;;EAEA;EACA;EACA;EACA;EACA;;EAEA;;EAEA,cAAc;;EAEd,eAAe;;;;;EAKf;;EAEA;;;;;KAMU,gCACV,QAAQ,SAAS,eAAe,YAE9B,uBACA,yBACA,eAAe;;;;;;UAOF;;;;;;EAMf;;;;;;EAOA,UAAU;;;;;;;EAQV;;;;;EAMA,eAAe;;;;;;;;;iBC3ID,gBAAgB;EAC9B,QAAQ;IAAQ;IAAc;IAAqB;;;;;iBC0BrC,gBACd,QACI,uBACA,yBACA,eAAe,wBAClB;;;;;;iBAkDa,WAAW;;;;;;;iBAgJX,2BAA2B,OAAO;iBA0BlC,6BACd,MAAM,QACN,SAAS,+BACR,wBAAwB,QAAQ"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/install.ts","../src/generate.ts","../src/index.ts"],"mappings":";;;;;;;;UAyBiB;;EAEf;;EAEA,OAAO;;EAEP;;EAEA;;EAEA;;EAEA;;;;;;;UAQe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;EAMA;EACA;;;;;UAMe;;EAEf;;EAEA;;EAEA;EACA,aAAa;;;;;UAME;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;;;;;UAYe;;;;EAIf;;EAEA;EACA;EACA;EACA;EACA;;EAEA;;EAEA,cAAc;;EAEd,eAAe;;;;;EAKf;;EAEA;;;;;KAMU,gCACV,QAAQ,SAAS,eAAe,YAE9B,uBACA,yBACA,eAAe;;;;;;UAOF;;;;;;EAMf;;;;;;EAOA,UAAU;;;;;;;EAQV;;;;;EAMA,eAAe;;;;;;;;;iBC3ID,gBAAgB;EAC9B,QAAQ;IAAQ;IAAc;IAAqB;;;EAEnD;;;;iBCwBc,gBACd,QACI,uBACA,yBACA,eAAe,wBAClB;;;;;;iBAkDa,WAAW;;;;;;;iBAgJX,2BAA2B,OAAO;iBA0BlC,6BACd,MAAM,QACN,SAAS,+BACR,wBAAwB,QAAQ"}
package/dist/index.d.mts CHANGED
@@ -148,6 +148,8 @@ declare function renderInstallMd(options: {
148
148
  displayName: string;
149
149
  fileName: string;
150
150
  }>;
151
+ /** Design-system / package title from Schema when multiple themes. */
152
+ title?: string;
151
153
  }): string;
152
154
  //#endregion
153
155
  //#region src/generate.d.ts
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{definePlugin as e}from"@razorwind/core/plugin";import{createDocument as t,flattenTokens as n,formatTokenValue as r,isObject as i,resolveTokenSets as a,slugifyThemeName as o,themeDisplayName as s,toCssVar as c}from"@razorwind/core/utils";import{join as l}from"node:path";function u(e){let t=e.themes[0];return`# Installing ${e.themes.length===1?t.displayName:`Notepad++ Themes`}
1
+ import{definePlugin as e}from"@razorwind/core/plugin";import{createDocument as t,flattenTokens as n,formatTokenValue as r,isObject as i,resolveSchemaIdentity as a,resolveTokenSets as o,slugifyThemeName as s,themeDisplayName as c,toCssVar as l}from"@razorwind/core/utils";import{join as u}from"node:path";function d(e){let t=e.themes[0];return`# Installing ${e.title??(e.themes.length===1?t.displayName:`Notepad++ Themes`)}
2
2
 
3
3
  Generated by \`@razorwind/notepad-plus-plus\`.
4
4
 
@@ -45,8 +45,8 @@ If tab text or backgrounds look wrong, check:
45
45
  1. **Settings → Preferences → General → Tab Bar** — enable **Change inactive tab color**
46
46
  2. **Settings → Preferences → Dark Mode** — newer builds may override theme tab colors
47
47
  3. Advanced \`config.xml\` — set \`darkTabUseTheme\` / \`lightModeUseTheme\` so tabs follow the theme
48
- `}function d(e){return s(e)}const f={name:`razorwind-notepad-plus-plus`};function p(e,n,r){return t(e,n,f,r)}function m(e){return i(e)&&typeof e.name==`string`&&e.name.length>0}function h(e){if(Array.isArray(e))return e.map((e,t)=>{if(!m(e))throw TypeError(`@razorwind/notepad-plus-plus mapTheme()[${t}] must be a NotepadPlusPlusTheme with name`);return e});if(m(e))return[e];if(!i(e))throw TypeError(`@razorwind/notepad-plus-plus mapTheme() must return a theme, theme array, or theme record`);return Object.entries(e).map(([e,t])=>{if(!m(t))throw TypeError(`@razorwind/notepad-plus-plus mapTheme()["${e}"] must be a NotepadPlusPlusTheme with name`);return{...t,name:t.name||e}})}function g(e){if(!e.mapTheme)throw Error(`@razorwind/notepad-plus-plus requires options.mapTheme`)}function _(e){let t=e.trim();if(t.startsWith(`#`)){let n=t.slice(1);if(!/^[0-9a-fA-F]{6}$/.test(n))throw TypeError(`Invalid Notepad++ color: ${e}`);return n.toUpperCase()}if(/^[0-9a-fA-F]{6}$/.test(t))return t.toUpperCase();throw TypeError(`Invalid Notepad++ color: ${e}`)}function v(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`"`,`&quot;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function y(e){if(e!==void 0&&e!==``)return _(e)}function b(e){return Object.entries(e).filter(([,e])=>e!==void 0).map(([e,t])=>` ${e}="${v(String(t))}"`).join(``)}function x(e,t=``){return e.map(e=>`${t}<!-- ${e} -->`)}function S(e,t){return`${t}<WordsStyle${b({name:e.name,styleID:e.styleID,fgColor:y(e.fgColor),bgColor:y(e.bgColor),fontName:e.fontName??``,fontStyle:e.fontStyle??`0`,fontSize:e.fontSize??``,colorStyle:e.colorStyle,keywordClass:e.keywordClass})} />`}function C(e,t){let n=[`${t}<LexerType${b({name:e.name,desc:e.desc,ext:e.ext??``})}>`];for(let r of e.wordsStyles)n.push(S(r,`${t} `));return n.push(`${t}</LexerType>`),n}function w(e,t){return`${t}<WidgetStyle${b({name:e.name,styleID:e.styleID,fgColor:y(e.fgColor),bgColor:y(e.bgColor),fontName:e.fontName??``,fontStyle:e.fontStyle,fontSize:e.fontSize??``,colorStyle:e.colorStyle})}></WidgetStyle>`}function T(e){return!!(e.body||e.lexerStyles&&e.lexerStyles.length>0||e.globalStyles&&e.globalStyles.length>0)}function E(e){let t=[d(e),...e.description?[e.description]:[],...e.author?[`Author: ${e.author}`]:[],...e.date?[`Date: ${e.date}`]:[],...e.license?[`License: ${e.license}`]:[],`Generated by @razorwind/notepad-plus-plus`];return e.comments?.length&&t.push(...e.comments),x(t)}function D(e){if(e.body)return e.body.replace(/\n$/,``);let t=[];if(e.lexerStyles?.length){t.push(` <LexerStyles>`);for(let n of e.lexerStyles)t.push(...C(n,` `));t.push(` </LexerStyles>`)}if(e.globalStyles?.length){t.push(` <GlobalStyles>`);for(let n of e.globalStyles)t.push(w(n,` `));t.push(` </GlobalStyles>`)}return t.join(`
49
- `)}function O(e){if(e.xml)return e.xml.endsWith(`
50
- `)?e.xml:`${e.xml}\n`;if(!T(e))throw TypeError(`@razorwind/notepad-plus-plus theme "${e.name}" must include lexerStyles, globalStyles, body, or xml`);return[`<?xml version="1.0" encoding="UTF-8" ?>`,``,`<NotepadPlus>`,...E(e,` `),D(e),`</NotepadPlus>`,``].join(`
51
- `)}function k(e,t){g(t);let n=t.outputPath??`notepad-plus-plus-themes`,r=h(t.mapTheme(e.tokens));if(r.length===0)throw Error(`@razorwind/notepad-plus-plus mapTheme() returned no themes`);let i={},a=new Set,s=[];for(let e of r){let t=o(e.name);if(!t)throw TypeError(`@razorwind/notepad-plus-plus theme name "${e.name}" slugifies to an empty string`);if(a.has(t)){let n=2;for(;a.has(`${o(e.name)}-${n}`);)n+=1;t=`${o(e.name)}-${n}`}a.add(t);let r=`${t}.xml`,c=l(n,r);i[c]=p(c,O({...e,name:t}),`xml`),s.push({name:t,displayName:d(e),fileName:r})}let c=t.installGuide??u({themes:s}),f=l(n,`INSTALL.md`);return i[f]=p(f,c,`markdown`),i}var A=e(e=>({name:`notepad-plus-plus`,generate:async t=>{if(!e)throw Error(`@razorwind/notepad-plus-plus requires options: { mapTheme }`);return k(t,e)}}));export{A as default,n as flattenTokens,r as formatTokenValue,k as generateNotepadPlusPlusTheme,h as normalizeThemes,u as renderInstallMd,O as renderNotepadPlusPlusTheme,a as resolveTokenSets,c as toCssVar,_ as toNppColor};
48
+ `}function f(e){return c(e)}const p={name:`razorwind-notepad-plus-plus`};function m(e,n,r){return t(e,n,p,r)}function h(e){return i(e)&&typeof e.name==`string`&&e.name.length>0}function g(e){if(Array.isArray(e))return e.map((e,t)=>{if(!h(e))throw TypeError(`@razorwind/notepad-plus-plus mapTheme()[${t}] must be a NotepadPlusPlusTheme with name`);return e});if(h(e))return[e];if(!i(e))throw TypeError(`@razorwind/notepad-plus-plus mapTheme() must return a theme, theme array, or theme record`);return Object.entries(e).map(([e,t])=>{if(!h(t))throw TypeError(`@razorwind/notepad-plus-plus mapTheme()["${e}"] must be a NotepadPlusPlusTheme with name`);return{...t,name:t.name||e}})}function _(e){if(!e.mapTheme)throw Error(`@razorwind/notepad-plus-plus requires options.mapTheme`)}function v(e){let t=e.trim();if(t.startsWith(`#`)){let n=t.slice(1);if(!/^[0-9a-fA-F]{6}$/.test(n))throw TypeError(`Invalid Notepad++ color: ${e}`);return n.toUpperCase()}if(/^[0-9a-fA-F]{6}$/.test(t))return t.toUpperCase();throw TypeError(`Invalid Notepad++ color: ${e}`)}function y(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`"`,`&quot;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function b(e){if(e!==void 0&&e!==``)return v(e)}function x(e){return Object.entries(e).filter(([,e])=>e!==void 0).map(([e,t])=>` ${e}="${y(String(t))}"`).join(``)}function S(e,t=``){return e.map(e=>`${t}<!-- ${e} -->`)}function C(e,t){return`${t}<WordsStyle${x({name:e.name,styleID:e.styleID,fgColor:b(e.fgColor),bgColor:b(e.bgColor),fontName:e.fontName??``,fontStyle:e.fontStyle??`0`,fontSize:e.fontSize??``,colorStyle:e.colorStyle,keywordClass:e.keywordClass})} />`}function w(e,t){let n=[`${t}<LexerType${x({name:e.name,desc:e.desc,ext:e.ext??``})}>`];for(let r of e.wordsStyles)n.push(C(r,`${t} `));return n.push(`${t}</LexerType>`),n}function T(e,t){return`${t}<WidgetStyle${x({name:e.name,styleID:e.styleID,fgColor:b(e.fgColor),bgColor:b(e.bgColor),fontName:e.fontName??``,fontStyle:e.fontStyle,fontSize:e.fontSize??``,colorStyle:e.colorStyle})}></WidgetStyle>`}function E(e){return!!(e.body||e.lexerStyles&&e.lexerStyles.length>0||e.globalStyles&&e.globalStyles.length>0)}function D(e){let t=[f(e),...e.description?[e.description]:[],...e.author?[`Author: ${e.author}`]:[],...e.date?[`Date: ${e.date}`]:[],...e.license?[`License: ${e.license}`]:[],`Generated by @razorwind/notepad-plus-plus`];return e.comments?.length&&t.push(...e.comments),S(t)}function O(e){if(e.body)return e.body.replace(/\n$/,``);let t=[];if(e.lexerStyles?.length){t.push(` <LexerStyles>`);for(let n of e.lexerStyles)t.push(...w(n,` `));t.push(` </LexerStyles>`)}if(e.globalStyles?.length){t.push(` <GlobalStyles>`);for(let n of e.globalStyles)t.push(T(n,` `));t.push(` </GlobalStyles>`)}return t.join(`
49
+ `)}function k(e){if(e.xml)return e.xml.endsWith(`
50
+ `)?e.xml:`${e.xml}\n`;if(!E(e))throw TypeError(`@razorwind/notepad-plus-plus theme "${e.name}" must include lexerStyles, globalStyles, body, or xml`);return[`<?xml version="1.0" encoding="UTF-8" ?>`,``,`<NotepadPlus>`,...D(e,` `),O(e),`</NotepadPlus>`,``].join(`
51
+ `)}function A(e,t){_(t);let n=t.outputPath??`notepad-plus-plus-themes`,r=g(t.mapTheme(e.tokens));if(r.length===0)throw Error(`@razorwind/notepad-plus-plus mapTheme() returned no themes`);let i={},o=new Set,c=[];for(let e of r){let t=s(e.name);if(!t)throw TypeError(`@razorwind/notepad-plus-plus theme name "${e.name}" slugifies to an empty string`);if(o.has(t)){let n=2;for(;o.has(`${s(e.name)}-${n}`);)n+=1;t=`${s(e.name)}-${n}`}o.add(t);let r=`${t}.xml`,a=u(n,r);i[a]=m(a,k({...e,name:t}),`xml`),c.push({name:t,displayName:f(e),fileName:r})}let l=t.installGuide??d({themes:c,title:a(e).title}),p=u(n,`INSTALL.md`);return i[p]=m(p,l,`markdown`),i}var j=e(e=>({name:`notepad-plus-plus`,generate:async t=>{if(!e)throw Error(`@razorwind/notepad-plus-plus requires options: { mapTheme }`);return A(t,e)}}));export{j as default,n as flattenTokens,r as formatTokenValue,A as generateNotepadPlusPlusTheme,g as normalizeThemes,d as renderInstallMd,k as renderNotepadPlusPlusTheme,o as resolveTokenSets,l as toCssVar,v as toNppColor};
52
52
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razorwind/notepad-plus-plus",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "description": "Razorwind plugin that generates Notepad++ themes from design tokens.",
6
6
  "repository": {
@@ -69,7 +69,7 @@
69
69
  "dependencies": {
70
70
  "@power-plant/core": "^0.0.81",
71
71
  "@power-plant/dtcg-schema": "^0.0.1",
72
- "@razorwind/core": "0.0.32"
72
+ "@razorwind/core": "0.0.34"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@powerlines/plugin-tsdown": "^0.1.591",
@@ -77,5 +77,5 @@
77
77
  "typescript": "^6.0.3"
78
78
  },
79
79
  "publishConfig": { "access": "public" },
80
- "gitHead": "cd7b84a1fe793c0f7c0ad64b028817d97bff5ced"
80
+ "gitHead": "2e9d53ceff13e46fdd225eff5f9ac32bc661814a"
81
81
  }