@salty-css/core 0.0.1-alpha.189 → 0.0.1-alpha.190
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/bin/main.cjs +1 -1
- package/bin/main.js +1 -1
- package/compiler/index.cjs +1 -1
- package/compiler/index.d.ts +12 -7
- package/compiler/index.js +9 -10
- package/config/index.cjs +1 -1
- package/config/index.js +1 -1
- package/css/index.cjs +1 -1
- package/css/index.d.ts +0 -1
- package/css/index.js +9 -43
- package/generators/class-name-generator.d.ts +6 -0
- package/generators/index.cjs +1 -0
- package/generators/index.d.ts +2 -0
- package/generators/index.js +75 -0
- package/generators/styled-generator.d.ts +19 -0
- package/generators/styles-generator.d.ts +18 -0
- package/index-BiZBc7HK.js +452 -0
- package/index-ptxZPIoq.cjs +31 -0
- package/package.json +1 -1
- package/parsers/index.d.ts +5 -0
- package/{generator → parsers}/parser-types.d.ts +1 -1
- package/server/index.cjs +1 -1
- package/server/index.js +1 -1
- package/types/index.d.ts +2 -2
- package/css/class-name.d.ts +0 -16
- package/generator/index.cjs +0 -1
- package/generator/index.d.ts +0 -1
- package/generator/index.js +0 -76
- package/generator/style-generator.d.ts +0 -36
- package/index-D9fpGzLy.cjs +0 -30
- package/index-_9I4QIPW.js +0 -433
- package/parse-templates-DRKlN-pP.js +0 -27
- package/parse-templates-VIvmVb52.cjs +0 -2
- /package/{factories → parsers}/index.cjs +0 -0
- /package/{factories → parsers}/index.js +0 -0
- /package/{generator → parsers}/parse-modifiers.d.ts +0 -0
- /package/{generator → parsers}/parse-styles.d.ts +0 -0
- /package/{generator → parsers}/parse-templates.d.ts +0 -0
- /package/{generator → parsers}/parse-tokens.d.ts +0 -0
@@ -1,36 +0,0 @@
|
|
1
|
-
import { StyledParams, Tag } from '../types';
|
2
|
-
export interface GeneratorProps {
|
3
|
-
element?: string;
|
4
|
-
variantKeys?: string[];
|
5
|
-
propValueKeys?: string[];
|
6
|
-
passProps?: boolean | string | string[];
|
7
|
-
defaultProps?: Record<PropertyKey, unknown>;
|
8
|
-
attr: {
|
9
|
-
[key: string]: any;
|
10
|
-
};
|
11
|
-
}
|
12
|
-
export declare class StyleComponentGenerator {
|
13
|
-
tagName: Tag<any>;
|
14
|
-
params: StyledParams;
|
15
|
-
_isProd: boolean | undefined;
|
16
|
-
_callerName: string | undefined;
|
17
|
-
_context: {
|
18
|
-
name: string;
|
19
|
-
config: any;
|
20
|
-
} | undefined;
|
21
|
-
constructor(tagName: Tag<any>, params: StyledParams);
|
22
|
-
get hash(): string;
|
23
|
-
get priority(): number;
|
24
|
-
get classNames(): string;
|
25
|
-
get cssClassName(): string;
|
26
|
-
get cssDisplayNameVar(): string;
|
27
|
-
get cssFileName(): string;
|
28
|
-
get templateKeys(): string[];
|
29
|
-
get css(): string;
|
30
|
-
get props(): GeneratorProps;
|
31
|
-
_withBuildContext(context: {
|
32
|
-
name: string;
|
33
|
-
config: any;
|
34
|
-
prod: boolean;
|
35
|
-
}): this;
|
36
|
-
}
|
package/index-D9fpGzLy.cjs
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
"use strict";const ge=require("esbuild"),he=require("child_process"),P=require("./dash-case-BJEkFEGQ.cjs"),o=require("path"),i=require("fs"),ee=require("fs/promises"),X=require("./parse-styles-3zK35muR.cjs"),oe=require("./parse-templates-VIvmVb52.cjs"),q=require("winston"),v=require("./css/merge.cjs");var Y=typeof document<"u"?document.currentScript:null;function Se(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const c=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const re=Se(ge),ce=e=>{if(!e||e==="/")throw new Error("Could not find package.json file");const t=o.join(e,"package.json");return i.existsSync(t)?t:ce(o.join(e,".."))},we=async e=>{const t=ce(e);return await ee.readFile(t,"utf-8").then(JSON.parse).catch(()=>{})},Fe=async e=>{const t=await we(e);if(t)return t.type};let V;const ae=async e=>{if(V)return V;const t=await Fe(e);return t==="module"?V="esm":(t==="commonjs"||(typeof document>"u"?require("url").pathToFileURL(__filename).href:Y&&Y.tagName.toUpperCase()==="SCRIPT"&&Y.src||new URL("index-D9fpGzLy.cjs",document.baseURI).href).endsWith(".cjs"))&&(V="cjs"),V||"esm"},I=q.createLogger({level:"debug",format:q.format.combine(q.format.colorize(),q.format.cli()),transports:[new q.transports.Console({})]}),je=e=>{I.error(e)};function le(e){return e?typeof e!="string"?le(String(e)):e.replace(/[\s-]/g,".").replace(/[A-Z](?:(?=[^A-Z])|[A-Z]*(?=[A-Z][^A-Z]|$))/g,(t,s)=>(s>0?".":"")+t.toLowerCase()):""}const be={"*, *::before, *::after":{boxSizing:"border-box"},"*":{margin:0},html:{lineHeight:1.15,textSizeAdjust:"100%",WebkitFontSmoothing:"antialiased"},"img, picture, video, canvas, svg":{display:"block",maxWidth:"100%"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},p:{textWrap:"pretty"},"h1, h2, h3, h4, h5, h6":{textWrap:"balance"},a:{color:"currentColor"},button:{lineHeight:"1em",color:"currentColor"},"input, optgroup, select, textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15em"}},T={externalModules:[],rcFile:void 0,destDir:void 0},fe=e=>{if(T.externalModules.length>0)return T.externalModules;const s=i.readFileSync(e,"utf8").match(/externalModules:\s?\[(.*)\]/);if(!s)return[];const c=s[1].split(",").map(f=>f.replace(/['"`]/g,"").trim());return T.externalModules=c,c},O=async e=>{if(T.destDir)return T.destDir;const t=await se(e),s=o.join(e,(t==null?void 0:t.saltygenDir)||"saltygen");return T.destDir=s,s},te=["salty","css","styles","styled"],de=(e=[])=>new RegExp(`\\.(${[...te,...e].join("|")})\\.`),L=(e,t=[])=>de(t).test(e),pe=async e=>{if(T.rcFile)return T.rcFile;if(e==="/")throw new Error("Could not find .saltyrc.json file");const t=o.join(e,".saltyrc.json"),s=await ee.readFile(t,"utf-8").then(JSON.parse).catch(()=>{});return s?(T.rcFile=s,s):pe(o.join(e,".."))},se=async e=>{var c,f;const t=await pe(e),s=(c=t.projects)==null?void 0:c.find(a=>e.endsWith(a.dir||""));return s||((f=t.projects)==null?void 0:f.find(a=>a.dir===t.defaultProject))},$e=async e=>{const t=await se(e),s=await O(e),c=o.join(e,(t==null?void 0:t.configDir)||"","salty.config.ts"),f=o.join(s,"salty.config.js"),a=await ae(e),l=fe(c);await re.build({entryPoints:[c],minify:!0,treeShaking:!0,bundle:!0,outfile:f,format:a,external:l});const h=Date.now(),{config:u}=await import(`${f}?t=${h}`);return u},ue=async(e,t)=>{var H,G;const s=await $e(e),c={...s},f=new Set,a=(b,$=[])=>b?Object.entries(b).flatMap(([M,_])=>{if(!_)return;if(typeof _=="object")return a(_,[...$,M]);const Z=le(M),A=P.dashCase(M),U=[...$,Z].join(".");f.add(`"${U}"`);const Q=[...$.map(P.dashCase),A].join("-"),{result:me}=X.parseValueTokens(_);return`--${Q}: ${me};`}):[],l=b=>b?Object.entries(b).flatMap(([$,M])=>{const _=a(M);return $==="base"?_.join(""):`${$} { ${_.join("")} }`}):[],h=b=>b?Object.entries(b).flatMap(([$,M])=>Object.entries(M).flatMap(([_,Z])=>{const A=a(Z,[$]),U=`.${$}-${_}, [data-${$}="${_}"]`,Q=A.join("");return`${U} { ${Q} }`})):[],u=b=>({...b,responsive:void 0,conditional:void 0}),n=b=>t.variables.map($=>b==="static"?u($._current):$._current[b]),g=a(v.mergeStyles(u(s.variables),n("static"))),m=l(v.mergeStyles((H=s.variables)==null?void 0:H.responsive,n("responsive"))),y=h(v.mergeStyles((G=s.variables)==null?void 0:G.conditional,n("conditional"))),F=await O(e),x=o.join(F,"css/_variables.css"),E=`:root { ${g.join("")} ${m.join("")} } ${y.join("")}`;i.writeFileSync(x,E);const D=o.join(F,"css/_global.css"),N=v.mergeStyles(s.global,t.globalStyles),R=X.parseStyles(N,"");i.writeFileSync(D,`@layer global { ${R} }`);const k=o.join(F,"css/_reset.css"),r=s.reset==="none"?{}:typeof s.reset=="object"?s.reset:be,C=X.parseStyles(r,"");i.writeFileSync(k,`@layer reset { ${C} }`);const j=o.join(F,"css/_templates.css"),S=v.mergeStyles(s.templates,t.templates),p=oe.parseTemplates(S),w=oe.getTemplateTypes(S);i.writeFileSync(j,p),c.templates=S;const d=o.join(F,"types/css-tokens.d.ts"),z=`
|
2
|
-
// Variable types
|
3
|
-
type VariableTokens = ${[...f].join("|")};
|
4
|
-
type PropertyValueToken = \`{\${VariableTokens}}\`;
|
5
|
-
|
6
|
-
// Template types
|
7
|
-
type TemplateTokens = {
|
8
|
-
${Object.entries(w).map(([b,$])=>`${b}?: ${$}`).join(`
|
9
|
-
`)}
|
10
|
-
}
|
11
|
-
`;i.writeFileSync(d,z);const B=o.join(F,"cache/config-cache.json");i.writeFileSync(B,JSON.stringify(c,null,2))},ie=e=>e.replace(/styled\(([^"'`{,]+),/g,(t,s)=>{if(/^['"`]/.test(s))return t;const f=new RegExp(`import[^;]*${s}[,\\s{][^;]*from\\s?([^{};]+);`);if(!f.test(e))return t;const l=f.exec(e);if(l){const h=l.at(1);if(te.some(n=>h==null?void 0:h.includes(n)))return t}return"styled('div',"}),K=async(e,t,s)=>{const c=P.toHash(t),f=o.join(s,"./temp");i.existsSync(f)||i.mkdirSync(f);const a=o.parse(t);let l=i.readFileSync(t,"utf8");l=ie(l);const h=o.join(s,"js",c+".js"),u=await se(e),n=o.join(e,(u==null?void 0:u.configDir)||"","salty.config.ts"),g=fe(n),m=await ae(e);await re.build({stdin:{contents:l,sourcefile:a.base,resolveDir:a.dir,loader:"tsx"},minify:!1,treeShaking:!0,bundle:!0,outfile:h,format:m,target:["node20"],keepNames:!0,external:g,packages:"external",plugins:[{name:"test",setup:x=>{x.onLoad({filter:/.*\.css|salty|styles|styled\.ts/},E=>{const D=i.readFileSync(E.path,"utf8");return{contents:ie(D),loader:"ts"}})}}]});const y=Date.now();return await import(`${h}?t=${y}`)},Ce=async e=>{const t=await O(e),s=o.join(t,"cache/config-cache.json"),c=i.readFileSync(s,"utf8");if(!c)throw new Error("Could not find config cache file");return JSON.parse(c)},ne=async e=>{const t=await Ce(e),s=await O(e),c=o.join(s,"salty.config.js"),f=Date.now(),{config:a}=await import(`${c}?t=${f}`);return v.mergeStyles(a,t)},ye=()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}},xe=async(e,t=ye(),s=!0)=>{try{const c=Date.now();t?I.info("Generating CSS in production mode! 🔥"):I.info("Generating CSS in development mode! 🚀");const f=[],a=[],l=await O(e),h=o.join(l,"index.css");s&&(()=>{i.existsSync(l)&&he.execSync("rm -rf "+l),i.mkdirSync(l,{recursive:!0}),i.mkdirSync(o.join(l,"css")),i.mkdirSync(o.join(l,"types")),i.mkdirSync(o.join(l,"js")),i.mkdirSync(o.join(l,"cache"))})();const n={keyframes:[],mediaQueries:[],globalStyles:[],variables:[],templates:[],components:[],classNames:[]};async function g(r){const C=["node_modules","saltygen"],j=i.statSync(r);if(j.isDirectory()){const S=i.readdirSync(r);if(C.some(w=>r.includes(w)))return;await Promise.all(S.map(w=>g(o.join(r,w))))}else if(j.isFile()&&L(r)){const p=await K(e,r,l);Object.entries(p).forEach(([w,d])=>{d.isKeyframes?n.keyframes.push({value:d,src:r,name:w}):d.isMedia?n.mediaQueries.push(d):d.isGlobalDefine?n.globalStyles.push(d):d.isDefineVariables?n.variables.push(d):d.isDefineTemplates?n.templates.push(d):d.isClassName?n.classNames.push({value:d.factory,src:r,name:w}):d.generator&&n.components.push({value:d.generator,src:r,name:w})})}}await g(e),await ue(e,n);const m=await ne(e);for(const r of n.keyframes){const{value:C}=r,j=`a_${C.animationName}.css`,S=`css/${j}`,p=o.join(l,S);f.push(j),i.writeFileSync(p,C.css)}const y={};for(const r of n.components){const{value:C,name:j,src:S}=r,p=C._withBuildContext({name:j,config:m,prod:t});a[p.priority]||(a[p.priority]=[]),a[p.priority].push(p.cssFileName);const w=`css/${p.cssFileName}`,d=o.join(l,w);i.writeFileSync(d,p.css),m.importStrategy==="component"&&(y[S]?y[S].push(p.cssFileName):y[S]=[p.cssFileName])}for(const r of n.classNames){const{value:C,src:j,name:S}=r,p=C._withBuildContext({name:S,prod:t});a[0].push(p.cssFileName);const w=`css/${p.cssFileName}`,d=o.join(l,w);i.writeFileSync(d,p.css),m.importStrategy==="component"&&(y[j]?y[j].push(p.cssFileName):y[j]=[p.cssFileName])}m.importStrategy==="component"&&Object.entries(y).forEach(([r,C])=>{const j=C.map(W=>`@import url('./${W}');`).join(`
|
12
|
-
`),S=P.toHash(r,6),p=o.parse(r),w=P.dashCase(p.name),d=o.join(l,`css/f_${w}-${S}.css`);i.writeFileSync(d,j)});const F=f.map(r=>`@import url('./css/${r}');`).join(`
|
13
|
-
`);let N=`@layer reset, global, l0, l1, l2, l3, l4, l5, l6, l7, l8;
|
14
|
-
|
15
|
-
${["_variables.css","_reset.css","_global.css","_templates.css"].filter(r=>{try{return i.readFileSync(o.join(l,"css",r),"utf8").length>0}catch{return!1}}).map(r=>`@import url('./css/${r}');`).join(`
|
16
|
-
`)}
|
17
|
-
${F}`;if(m.importStrategy!=="component"){const r=a.reduce((C,j,S)=>{const p=j.reduce((z,B)=>{var $;const H=o.join(l,"css",B),G=i.readFileSync(H,"utf8"),b=(($=/.*-([^-]+)-\d+.css/.exec(B))==null?void 0:$.at(1))||P.toHash(H,6);return z.includes(b)?z:`${z}
|
18
|
-
/*start:${b}*/
|
19
|
-
${G}
|
20
|
-
/*end:${b}*/
|
21
|
-
`},""),w=`l_${S}.css`,d=o.join(l,"css",w),W=`@layer l${S} { ${p}
|
22
|
-
}`;return i.writeFileSync(d,W),`${C}
|
23
|
-
@import url('./css/${w}');`},"");N+=r}i.writeFileSync(h,N);const k=Date.now()-c,J=k<200?"🔥":k<500?"🚀":k<1e3?"🎉":k<2e3?"🚗":k<5e3?"🤔":"🥴";I.info(`Generated CSS in ${k}ms! ${J}`)}catch(c){console.error(c)}},ke=async(e,t)=>{try{const s=await O(e);if(L(t)){const f=[],a=await ne(e),l=await K(e,t,s);if(Object.entries(l).forEach(([h,u])=>{if(u.isKeyframes&&u.css){const F=`css/${`a_${u.animationName}.css`}`,x=o.join(s,F);i.writeFileSync(x,u.css);return}if(u.isClassName){const y=u.factory._withBuildContext({name:h});f[0].push(y.cssFileName);const F=`css/${y.cssFileName}`,x=o.join(s,F);i.writeFileSync(x,y.css)}if(!u.generator)return;const n=u.generator._withBuildContext({name:h,config:a}),g=`css/${n.cssFileName}`,m=o.join(s,g);i.writeFileSync(m,n.css),f[n.priority]||(f[n.priority]=[]),f[n.priority].push(n.cssFileName)}),a.importStrategy!=="component")f.forEach((h,u)=>{const n=`l_${u}.css`,g=o.join(s,"css",n);let m=i.readFileSync(g,"utf8");h.forEach(y=>{var D;const F=o.join(s,"css",y),x=((D=/.*-([^-]+)-\d+.css/.exec(y))==null?void 0:D.at(1))||P.toHash(F,6);if(!m.includes(x)){const N=i.readFileSync(F,"utf8"),R=`/*start:${x}*/
|
24
|
-
${N}
|
25
|
-
/*end:${x}*/
|
26
|
-
`;m=`${m.replace(/\}$/,"")}
|
27
|
-
${R}
|
28
|
-
}`}}),i.writeFileSync(g,m)});else{const h=f.flat().map(y=>`@import url('./${y}');`).join(`
|
29
|
-
`),u=P.toHash(t,6),n=o.parse(t),g=P.dashCase(n.name),m=o.join(s,`css/f_${g}-${u}.css`);i.writeFileSync(m,h)}}}catch(s){console.error(s)}},Ne=async(e,t,s=ye())=>{try{const c=await O(e);if(L(t)){const a=i.readFileSync(t,"utf8");a.replace(/^(?!export\s)const\s.*/gm,g=>`export ${g}`)!==a&&await ee.writeFile(t,a);const h=await ne(e),u=await K(e,t,c);let n=a;if(Object.entries(u).forEach(([g,m])=>{var w;if(m.isKeyframes||!m.generator)return;const y=m.generator._withBuildContext({name:g,config:h,prod:s}),F=new RegExp(`\\s${g}[=\\s]+[^()]+styled\\(([^,]+),`,"g").exec(a);if(!F)return console.error("Could not find the original declaration");const x=(w=F.at(1))==null?void 0:w.trim(),E=new RegExp(`\\s${g}[=\\s]+styled\\(`,"g").exec(n);if(!E)return console.error("Could not find the original declaration");const{index:D}=E;let N=!1;const R=setTimeout(()=>N=!0,5e3);let k=0,J=!1,r=0;for(;!J&&!N;){const d=n[D+k];d==="("&&r++,d===")"&&r--,r===0&&d===")"&&(J=!0),k>n.length&&(N=!0),k++}if(!N)clearTimeout(R);else throw new Error("Failed to find the end of the styled call and timed out");const C=D+k,j=n.slice(D,C),S=n,p=` ${g} = styled(${x}, "${y.classNames}", ${JSON.stringify(y.props)});`;n=n.replace(j,p),S===n&&console.error("Minimize file failed to change content",{name:g,tagName:x})}),h.importStrategy==="component"){const g=P.toHash(t,6),m=o.parse(t);n=`import '../../saltygen/css/${`f_${P.dashCase(m.name)}-${g}.css`}';
|
30
|
-
${n}`}return n=n.replace("{ styled }","{ styledClient as styled }"),n=n.replace("@salty-css/react/styled","@salty-css/react/styled-client"),n}}catch(c){console.error("Error in minimizeFile:",c)}};exports.compileSaltyFile=K;exports.generateConfigStyles=ue;exports.generateCss=xe;exports.generateFile=ke;exports.isSaltyFile=L;exports.logError=je;exports.logger=I;exports.minimizeFile=Ne;exports.saltyFileExtensions=te;exports.saltyFileRegExp=de;
|
package/index-_9I4QIPW.js
DELETED
@@ -1,433 +0,0 @@
|
|
1
|
-
import * as ct from "esbuild";
|
2
|
-
import { execSync as yt } from "child_process";
|
3
|
-
import { t as z, d as G } from "./dash-case-DBThphLm.js";
|
4
|
-
import { join as o, parse as A } from "path";
|
5
|
-
import { existsSync as tt, writeFileSync as x, mkdirSync as J, readFileSync as _, statSync as $t, readdirSync as bt } from "fs";
|
6
|
-
import { readFile as it, writeFile as wt } from "fs/promises";
|
7
|
-
import { p as at, a as St } from "./parse-styles-DrLhKtqW.js";
|
8
|
-
import { p as Ct, a as Ft } from "./parse-templates-DRKlN-pP.js";
|
9
|
-
import { createLogger as xt, format as Y, transports as jt } from "winston";
|
10
|
-
import { mergeStyles as R } from "./css/merge.js";
|
11
|
-
const lt = (t) => {
|
12
|
-
if (!t || t === "/") throw new Error("Could not find package.json file");
|
13
|
-
const e = o(t, "package.json");
|
14
|
-
return tt(e) ? e : lt(o(t, ".."));
|
15
|
-
}, Nt = async (t) => {
|
16
|
-
const e = lt(t);
|
17
|
-
return await it(e, "utf-8").then(JSON.parse).catch(() => {
|
18
|
-
});
|
19
|
-
}, kt = async (t) => {
|
20
|
-
const e = await Nt(t);
|
21
|
-
if (e)
|
22
|
-
return e.type;
|
23
|
-
};
|
24
|
-
let v;
|
25
|
-
const ft = async (t) => {
|
26
|
-
if (v) return v;
|
27
|
-
const e = await kt(t);
|
28
|
-
return e === "module" ? v = "esm" : (e === "commonjs" || import.meta.url.endsWith(".cjs")) && (v = "cjs"), v || "esm";
|
29
|
-
}, Z = xt({
|
30
|
-
level: "debug",
|
31
|
-
format: Y.combine(Y.colorize(), Y.cli()),
|
32
|
-
transports: [new jt.Console({})]
|
33
|
-
}), Bt = (t) => {
|
34
|
-
Z.error(t);
|
35
|
-
};
|
36
|
-
function pt(t) {
|
37
|
-
return t ? typeof t != "string" ? pt(String(t)) : t.replace(/[\s-]/g, ".").replace(/[A-Z](?:(?=[^A-Z])|[A-Z]*(?=[A-Z][^A-Z]|$))/g, (e, s) => (s > 0 ? "." : "") + e.toLowerCase()) : "";
|
38
|
-
}
|
39
|
-
const Dt = {
|
40
|
-
/** Set box model to border-box */
|
41
|
-
"*, *::before, *::after": {
|
42
|
-
boxSizing: "border-box"
|
43
|
-
},
|
44
|
-
/** Remove default margin and padding */
|
45
|
-
"*": {
|
46
|
-
margin: 0
|
47
|
-
},
|
48
|
-
/** Remove adjust font properties */
|
49
|
-
html: {
|
50
|
-
lineHeight: 1.15,
|
51
|
-
textSizeAdjust: "100%",
|
52
|
-
WebkitFontSmoothing: "antialiased"
|
53
|
-
},
|
54
|
-
/** Make media elements responsive */
|
55
|
-
"img, picture, video, canvas, svg": {
|
56
|
-
display: "block",
|
57
|
-
maxWidth: "100%"
|
58
|
-
},
|
59
|
-
/** Avoid overflow of text */
|
60
|
-
"p, h1, h2, h3, h4, h5, h6": {
|
61
|
-
overflowWrap: "break-word"
|
62
|
-
},
|
63
|
-
/** Improve text wrapping */
|
64
|
-
p: {
|
65
|
-
textWrap: "pretty"
|
66
|
-
},
|
67
|
-
"h1, h2, h3, h4, h5, h6": {
|
68
|
-
textWrap: "balance"
|
69
|
-
},
|
70
|
-
/** Improve link color */
|
71
|
-
a: {
|
72
|
-
color: "currentColor"
|
73
|
-
},
|
74
|
-
/** Improve button line height */
|
75
|
-
button: {
|
76
|
-
lineHeight: "1em",
|
77
|
-
color: "currentColor"
|
78
|
-
},
|
79
|
-
/** Improve form elements */
|
80
|
-
"input, optgroup, select, textarea": {
|
81
|
-
fontFamily: "inherit",
|
82
|
-
fontSize: "100%",
|
83
|
-
lineHeight: "1.15em"
|
84
|
-
}
|
85
|
-
}, T = {
|
86
|
-
externalModules: [],
|
87
|
-
rcFile: void 0,
|
88
|
-
destDir: void 0
|
89
|
-
}, dt = (t) => {
|
90
|
-
if (T.externalModules.length > 0) return T.externalModules;
|
91
|
-
const s = _(t, "utf8").match(/externalModules:\s?\[(.*)\]/);
|
92
|
-
if (!s) return [];
|
93
|
-
const l = s[1].split(",").map((i) => i.replace(/['"`]/g, "").trim());
|
94
|
-
return T.externalModules = l, l;
|
95
|
-
}, V = async (t) => {
|
96
|
-
if (T.destDir) return T.destDir;
|
97
|
-
const e = await st(t), s = o(t, (e == null ? void 0 : e.saltygenDir) || "saltygen");
|
98
|
-
return T.destDir = s, s;
|
99
|
-
}, ut = ["salty", "css", "styles", "styled"], Pt = (t = []) => new RegExp(`\\.(${[...ut, ...t].join("|")})\\.`), et = (t, e = []) => Pt(e).test(t), mt = async (t) => {
|
100
|
-
if (T.rcFile) return T.rcFile;
|
101
|
-
if (t === "/") throw new Error("Could not find .saltyrc.json file");
|
102
|
-
const e = o(t, ".saltyrc.json"), s = await it(e, "utf-8").then(JSON.parse).catch(() => {
|
103
|
-
});
|
104
|
-
return s ? (T.rcFile = s, s) : mt(o(t, ".."));
|
105
|
-
}, st = async (t) => {
|
106
|
-
var l, i;
|
107
|
-
const e = await mt(t), s = (l = e.projects) == null ? void 0 : l.find((r) => t.endsWith(r.dir || ""));
|
108
|
-
return s || ((i = e.projects) == null ? void 0 : i.find((r) => r.dir === e.defaultProject));
|
109
|
-
}, Tt = async (t) => {
|
110
|
-
const e = await st(t), s = await V(t), l = o(t, (e == null ? void 0 : e.configDir) || "", "salty.config.ts"), i = o(s, "salty.config.js"), r = await ft(t), c = dt(l);
|
111
|
-
await ct.build({
|
112
|
-
entryPoints: [l],
|
113
|
-
minify: !0,
|
114
|
-
treeShaking: !0,
|
115
|
-
bundle: !0,
|
116
|
-
outfile: i,
|
117
|
-
format: r,
|
118
|
-
external: c
|
119
|
-
});
|
120
|
-
const h = Date.now(), { config: d } = await import(`${i}?t=${h}`);
|
121
|
-
return d;
|
122
|
-
}, _t = async (t, e) => {
|
123
|
-
var B, L;
|
124
|
-
const s = await Tt(t), l = { ...s }, i = /* @__PURE__ */ new Set(), r = (S, C = []) => S ? Object.entries(S).flatMap(([M, P]) => {
|
125
|
-
if (!P) return;
|
126
|
-
if (typeof P == "object") return r(P, [...C, M]);
|
127
|
-
const Q = pt(M), q = G(M), U = [...C, Q].join(".");
|
128
|
-
i.add(`"${U}"`);
|
129
|
-
const X = [...C.map(G), q].join("-"), { result: ht } = St(P);
|
130
|
-
return `--${X}: ${ht};`;
|
131
|
-
}) : [], c = (S) => S ? Object.entries(S).flatMap(([C, M]) => {
|
132
|
-
const P = r(M);
|
133
|
-
return C === "base" ? P.join("") : `${C} { ${P.join("")} }`;
|
134
|
-
}) : [], h = (S) => S ? Object.entries(S).flatMap(([C, M]) => Object.entries(M).flatMap(([P, Q]) => {
|
135
|
-
const q = r(Q, [C]), U = `.${C}-${P}, [data-${C}="${P}"]`, X = q.join("");
|
136
|
-
return `${U} { ${X} }`;
|
137
|
-
})) : [], d = (S) => ({ ...S, responsive: void 0, conditional: void 0 }), n = (S) => e.variables.map((C) => S === "static" ? d(C._current) : C._current[S]), g = r(R(d(s.variables), n("static"))), m = c(R((B = s.variables) == null ? void 0 : B.responsive, n("responsive"))), u = h(R((L = s.variables) == null ? void 0 : L.conditional, n("conditional"))), b = await V(t), j = o(b, "css/_variables.css"), E = `:root { ${g.join("")} ${m.join("")} } ${u.join("")}`;
|
138
|
-
x(j, E);
|
139
|
-
const D = o(b, "css/_global.css"), k = R(s.global, e.globalStyles), O = at(k, "");
|
140
|
-
x(D, `@layer global { ${O} }`);
|
141
|
-
const N = o(b, "css/_reset.css"), a = s.reset === "none" ? {} : typeof s.reset == "object" ? s.reset : Dt, F = at(a, "");
|
142
|
-
x(N, `@layer reset { ${F} }`);
|
143
|
-
const w = o(b, "css/_templates.css"), y = R(s.templates, e.templates), p = Ct(y), $ = Ft(y);
|
144
|
-
x(w, p), l.templates = y;
|
145
|
-
const f = o(b, "types/css-tokens.d.ts"), I = `
|
146
|
-
// Variable types
|
147
|
-
type VariableTokens = ${[...i].join("|")};
|
148
|
-
type PropertyValueToken = \`{\${VariableTokens}}\`;
|
149
|
-
|
150
|
-
// Template types
|
151
|
-
type TemplateTokens = {
|
152
|
-
${Object.entries($).map(([S, C]) => `${S}?: ${C}`).join(`
|
153
|
-
`)}
|
154
|
-
}
|
155
|
-
`;
|
156
|
-
x(f, I);
|
157
|
-
const K = o(b, "cache/config-cache.json");
|
158
|
-
x(K, JSON.stringify(l, null, 2));
|
159
|
-
}, rt = (t) => t.replace(/styled\(([^"'`{,]+),/g, (e, s) => {
|
160
|
-
if (/^['"`]/.test(s)) return e;
|
161
|
-
const i = new RegExp(`import[^;]*${s}[,\\s{][^;]*from\\s?([^{};]+);`);
|
162
|
-
if (!i.test(t)) return e;
|
163
|
-
const c = i.exec(t);
|
164
|
-
if (c) {
|
165
|
-
const h = c.at(1);
|
166
|
-
if (ut.some((n) => h == null ? void 0 : h.includes(n))) return e;
|
167
|
-
}
|
168
|
-
return "styled('div',";
|
169
|
-
}), nt = async (t, e, s) => {
|
170
|
-
const l = z(e), i = o(s, "./temp");
|
171
|
-
tt(i) || J(i);
|
172
|
-
const r = A(e);
|
173
|
-
let c = _(e, "utf8");
|
174
|
-
c = rt(c);
|
175
|
-
const h = o(s, "js", l + ".js"), d = await st(t), n = o(t, (d == null ? void 0 : d.configDir) || "", "salty.config.ts"), g = dt(n), m = await ft(t);
|
176
|
-
await ct.build({
|
177
|
-
stdin: {
|
178
|
-
contents: c,
|
179
|
-
sourcefile: r.base,
|
180
|
-
resolveDir: r.dir,
|
181
|
-
loader: "tsx"
|
182
|
-
},
|
183
|
-
minify: !1,
|
184
|
-
treeShaking: !0,
|
185
|
-
bundle: !0,
|
186
|
-
outfile: h,
|
187
|
-
format: m,
|
188
|
-
target: ["node20"],
|
189
|
-
keepNames: !0,
|
190
|
-
external: g,
|
191
|
-
packages: "external",
|
192
|
-
plugins: [
|
193
|
-
{
|
194
|
-
name: "test",
|
195
|
-
setup: (j) => {
|
196
|
-
j.onLoad({ filter: /.*\.css|salty|styles|styled\.ts/ }, (E) => {
|
197
|
-
const D = _(E.path, "utf8");
|
198
|
-
return { contents: rt(D), loader: "ts" };
|
199
|
-
});
|
200
|
-
}
|
201
|
-
}
|
202
|
-
]
|
203
|
-
});
|
204
|
-
const u = Date.now();
|
205
|
-
return await import(`${h}?t=${u}`);
|
206
|
-
}, Et = async (t) => {
|
207
|
-
const e = await V(t), s = o(e, "cache/config-cache.json"), l = _(s, "utf8");
|
208
|
-
if (!l) throw new Error("Could not find config cache file");
|
209
|
-
return JSON.parse(l);
|
210
|
-
}, ot = async (t) => {
|
211
|
-
const e = await Et(t), s = await V(t), l = o(s, "salty.config.js"), i = Date.now(), { config: r } = await import(`${l}?t=${i}`);
|
212
|
-
return R(r, e);
|
213
|
-
}, gt = () => {
|
214
|
-
try {
|
215
|
-
return process.env.NODE_ENV === "production";
|
216
|
-
} catch {
|
217
|
-
return !1;
|
218
|
-
}
|
219
|
-
}, Gt = async (t, e = gt(), s = !0) => {
|
220
|
-
try {
|
221
|
-
const l = Date.now();
|
222
|
-
e ? Z.info("Generating CSS in production mode! 🔥") : Z.info("Generating CSS in development mode! 🚀");
|
223
|
-
const i = [], r = [], c = await V(t), h = o(c, "index.css");
|
224
|
-
s && (() => {
|
225
|
-
tt(c) && yt("rm -rf " + c), J(c, { recursive: !0 }), J(o(c, "css")), J(o(c, "types")), J(o(c, "js")), J(o(c, "cache"));
|
226
|
-
})();
|
227
|
-
const n = {
|
228
|
-
keyframes: [],
|
229
|
-
mediaQueries: [],
|
230
|
-
globalStyles: [],
|
231
|
-
variables: [],
|
232
|
-
templates: [],
|
233
|
-
components: [],
|
234
|
-
classNames: []
|
235
|
-
};
|
236
|
-
async function g(a) {
|
237
|
-
const F = ["node_modules", "saltygen"], w = $t(a);
|
238
|
-
if (w.isDirectory()) {
|
239
|
-
const y = bt(a);
|
240
|
-
if (F.some(($) => a.includes($))) return;
|
241
|
-
await Promise.all(y.map(($) => g(o(a, $))));
|
242
|
-
} else if (w.isFile() && et(a)) {
|
243
|
-
const p = await nt(t, a, c);
|
244
|
-
Object.entries(p).forEach(([$, f]) => {
|
245
|
-
f.isKeyframes ? n.keyframes.push({
|
246
|
-
value: f,
|
247
|
-
src: a,
|
248
|
-
name: $
|
249
|
-
}) : f.isMedia ? n.mediaQueries.push(f) : f.isGlobalDefine ? n.globalStyles.push(f) : f.isDefineVariables ? n.variables.push(f) : f.isDefineTemplates ? n.templates.push(f) : f.isClassName ? n.classNames.push({
|
250
|
-
value: f.factory,
|
251
|
-
src: a,
|
252
|
-
name: $
|
253
|
-
}) : f.generator && n.components.push({
|
254
|
-
value: f.generator,
|
255
|
-
src: a,
|
256
|
-
name: $
|
257
|
-
});
|
258
|
-
});
|
259
|
-
}
|
260
|
-
}
|
261
|
-
await g(t), await _t(t, n);
|
262
|
-
const m = await ot(t);
|
263
|
-
for (const a of n.keyframes) {
|
264
|
-
const { value: F } = a, w = `a_${F.animationName}.css`, y = `css/${w}`, p = o(c, y);
|
265
|
-
i.push(w), x(p, F.css);
|
266
|
-
}
|
267
|
-
const u = {};
|
268
|
-
for (const a of n.components) {
|
269
|
-
const { value: F, name: w, src: y } = a, p = F._withBuildContext({
|
270
|
-
name: w,
|
271
|
-
config: m,
|
272
|
-
prod: e
|
273
|
-
});
|
274
|
-
r[p.priority] || (r[p.priority] = []), r[p.priority].push(p.cssFileName);
|
275
|
-
const $ = `css/${p.cssFileName}`, f = o(c, $);
|
276
|
-
x(f, p.css), m.importStrategy === "component" && (u[y] ? u[y].push(p.cssFileName) : u[y] = [p.cssFileName]);
|
277
|
-
}
|
278
|
-
for (const a of n.classNames) {
|
279
|
-
const { value: F, src: w, name: y } = a, p = F._withBuildContext({
|
280
|
-
name: y,
|
281
|
-
prod: e
|
282
|
-
});
|
283
|
-
r[0].push(p.cssFileName);
|
284
|
-
const $ = `css/${p.cssFileName}`, f = o(c, $);
|
285
|
-
x(f, p.css), m.importStrategy === "component" && (u[w] ? u[w].push(p.cssFileName) : u[w] = [p.cssFileName]);
|
286
|
-
}
|
287
|
-
m.importStrategy === "component" && Object.entries(u).forEach(([a, F]) => {
|
288
|
-
const w = F.map((H) => `@import url('./${H}');`).join(`
|
289
|
-
`), y = z(a, 6), p = A(a), $ = G(p.name), f = o(c, `css/f_${$}-${y}.css`);
|
290
|
-
x(f, w);
|
291
|
-
});
|
292
|
-
const b = i.map((a) => `@import url('./css/${a}');`).join(`
|
293
|
-
`);
|
294
|
-
let k = `@layer reset, global, l0, l1, l2, l3, l4, l5, l6, l7, l8;
|
295
|
-
|
296
|
-
${["_variables.css", "_reset.css", "_global.css", "_templates.css"].filter((a) => {
|
297
|
-
try {
|
298
|
-
return _(o(c, "css", a), "utf8").length > 0;
|
299
|
-
} catch {
|
300
|
-
return !1;
|
301
|
-
}
|
302
|
-
}).map((a) => `@import url('./css/${a}');`).join(`
|
303
|
-
`)}
|
304
|
-
${b}`;
|
305
|
-
if (m.importStrategy !== "component") {
|
306
|
-
const a = r.reduce((F, w, y) => {
|
307
|
-
const p = w.reduce((I, K) => {
|
308
|
-
var C;
|
309
|
-
const B = o(c, "css", K), L = _(B, "utf8"), S = ((C = /.*-([^-]+)-\d+.css/.exec(K)) == null ? void 0 : C.at(1)) || z(B, 6);
|
310
|
-
return I.includes(S) ? I : `${I}
|
311
|
-
/*start:${S}*/
|
312
|
-
${L}
|
313
|
-
/*end:${S}*/
|
314
|
-
`;
|
315
|
-
}, ""), $ = `l_${y}.css`, f = o(c, "css", $), H = `@layer l${y} { ${p}
|
316
|
-
}`;
|
317
|
-
return x(f, H), `${F}
|
318
|
-
@import url('./css/${$}');`;
|
319
|
-
}, "");
|
320
|
-
k += a;
|
321
|
-
}
|
322
|
-
x(h, k);
|
323
|
-
const N = Date.now() - l, W = N < 200 ? "🔥" : N < 500 ? "🚀" : N < 1e3 ? "🎉" : N < 2e3 ? "🚗" : N < 5e3 ? "🤔" : "🥴";
|
324
|
-
Z.info(`Generated CSS in ${N}ms! ${W}`);
|
325
|
-
} catch (l) {
|
326
|
-
console.error(l);
|
327
|
-
}
|
328
|
-
}, Ht = async (t, e) => {
|
329
|
-
try {
|
330
|
-
const s = await V(t);
|
331
|
-
if (et(e)) {
|
332
|
-
const i = [], r = await ot(t), c = await nt(t, e, s);
|
333
|
-
if (Object.entries(c).forEach(([h, d]) => {
|
334
|
-
if (d.isKeyframes && d.css) {
|
335
|
-
const b = `css/${`a_${d.animationName}.css`}`, j = o(s, b);
|
336
|
-
x(j, d.css);
|
337
|
-
return;
|
338
|
-
}
|
339
|
-
if (d.isClassName) {
|
340
|
-
const u = d.factory._withBuildContext({
|
341
|
-
name: h
|
342
|
-
});
|
343
|
-
i[0].push(u.cssFileName);
|
344
|
-
const b = `css/${u.cssFileName}`, j = o(s, b);
|
345
|
-
x(j, u.css);
|
346
|
-
}
|
347
|
-
if (!d.generator) return;
|
348
|
-
const n = d.generator._withBuildContext({
|
349
|
-
name: h,
|
350
|
-
config: r
|
351
|
-
}), g = `css/${n.cssFileName}`, m = o(s, g);
|
352
|
-
x(m, n.css), i[n.priority] || (i[n.priority] = []), i[n.priority].push(n.cssFileName);
|
353
|
-
}), r.importStrategy !== "component")
|
354
|
-
i.forEach((h, d) => {
|
355
|
-
const n = `l_${d}.css`, g = o(s, "css", n);
|
356
|
-
let m = _(g, "utf8");
|
357
|
-
h.forEach((u) => {
|
358
|
-
var D;
|
359
|
-
const b = o(s, "css", u), j = ((D = /.*-([^-]+)-\d+.css/.exec(u)) == null ? void 0 : D.at(1)) || z(b, 6);
|
360
|
-
if (!m.includes(j)) {
|
361
|
-
const k = _(b, "utf8"), O = `/*start:${j}*/
|
362
|
-
${k}
|
363
|
-
/*end:${j}*/
|
364
|
-
`;
|
365
|
-
m = `${m.replace(/\}$/, "")}
|
366
|
-
${O}
|
367
|
-
}`;
|
368
|
-
}
|
369
|
-
}), x(g, m);
|
370
|
-
});
|
371
|
-
else {
|
372
|
-
const h = i.flat().map((u) => `@import url('./${u}');`).join(`
|
373
|
-
`), d = z(e, 6), n = A(e), g = G(n.name), m = o(s, `css/f_${g}-${d}.css`);
|
374
|
-
x(m, h);
|
375
|
-
}
|
376
|
-
}
|
377
|
-
} catch (s) {
|
378
|
-
console.error(s);
|
379
|
-
}
|
380
|
-
}, Kt = async (t, e, s = gt()) => {
|
381
|
-
try {
|
382
|
-
const l = await V(t);
|
383
|
-
if (et(e)) {
|
384
|
-
const r = _(e, "utf8");
|
385
|
-
r.replace(/^(?!export\s)const\s.*/gm, (g) => `export ${g}`) !== r && await wt(e, r);
|
386
|
-
const h = await ot(t), d = await nt(t, e, l);
|
387
|
-
let n = r;
|
388
|
-
if (Object.entries(d).forEach(([g, m]) => {
|
389
|
-
var $;
|
390
|
-
if (m.isKeyframes || !m.generator) return;
|
391
|
-
const u = m.generator._withBuildContext({
|
392
|
-
name: g,
|
393
|
-
config: h,
|
394
|
-
prod: s
|
395
|
-
}), b = new RegExp(`\\s${g}[=\\s]+[^()]+styled\\(([^,]+),`, "g").exec(r);
|
396
|
-
if (!b) return console.error("Could not find the original declaration");
|
397
|
-
const j = ($ = b.at(1)) == null ? void 0 : $.trim(), E = new RegExp(`\\s${g}[=\\s]+styled\\(`, "g").exec(n);
|
398
|
-
if (!E) return console.error("Could not find the original declaration");
|
399
|
-
const { index: D } = E;
|
400
|
-
let k = !1;
|
401
|
-
const O = setTimeout(() => k = !0, 5e3);
|
402
|
-
let N = 0, W = !1, a = 0;
|
403
|
-
for (; !W && !k; ) {
|
404
|
-
const f = n[D + N];
|
405
|
-
f === "(" && a++, f === ")" && a--, a === 0 && f === ")" && (W = !0), N > n.length && (k = !0), N++;
|
406
|
-
}
|
407
|
-
if (!k) clearTimeout(O);
|
408
|
-
else throw new Error("Failed to find the end of the styled call and timed out");
|
409
|
-
const F = D + N, w = n.slice(D, F), y = n, p = ` ${g} = styled(${j}, "${u.classNames}", ${JSON.stringify(u.props)});`;
|
410
|
-
n = n.replace(w, p), y === n && console.error("Minimize file failed to change content", { name: g, tagName: j });
|
411
|
-
}), h.importStrategy === "component") {
|
412
|
-
const g = z(e, 6), m = A(e);
|
413
|
-
n = `import '../../saltygen/css/${`f_${G(m.name)}-${g}.css`}';
|
414
|
-
${n}`;
|
415
|
-
}
|
416
|
-
return n = n.replace("{ styled }", "{ styledClient as styled }"), n = n.replace("@salty-css/react/styled", "@salty-css/react/styled-client"), n;
|
417
|
-
}
|
418
|
-
} catch (l) {
|
419
|
-
console.error("Error in minimizeFile:", l);
|
420
|
-
}
|
421
|
-
};
|
422
|
-
export {
|
423
|
-
Bt as a,
|
424
|
-
Pt as b,
|
425
|
-
_t as c,
|
426
|
-
nt as d,
|
427
|
-
Ht as e,
|
428
|
-
Gt as g,
|
429
|
-
et as i,
|
430
|
-
Z as l,
|
431
|
-
Kt as m,
|
432
|
-
ut as s
|
433
|
-
};
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { d as p } from "./dash-case-DBThphLm.js";
|
2
|
-
import { p as u } from "./parse-styles-DrLhKtqW.js";
|
3
|
-
const a = (e, t = []) => {
|
4
|
-
if (!e) return "";
|
5
|
-
const s = [], r = {};
|
6
|
-
if (Object.entries(e).forEach(([n, o]) => {
|
7
|
-
if (typeof o == "object") {
|
8
|
-
if (!o) return;
|
9
|
-
const i = n.trim(), f = a(o, [...t, i]);
|
10
|
-
s.push(f);
|
11
|
-
} else
|
12
|
-
r[n] = o;
|
13
|
-
}), Object.keys(r).length) {
|
14
|
-
const n = t.map(p).join("-"), o = u(r, `.${n}`);
|
15
|
-
s.push(o);
|
16
|
-
}
|
17
|
-
return s.join(`
|
18
|
-
`);
|
19
|
-
}, m = (e) => Object.keys(e), b = (e) => e ? Object.entries(e).reduce((t, [s, r]) => (typeof r == "object" && (t[s] = c(r).map((n) => `"${n}"`).join(" | ")), t), {}) : {}, c = (e, t = "", s = /* @__PURE__ */ new Set()) => e ? (Object.entries(e).forEach(([r, n]) => {
|
20
|
-
const o = t ? `${t}.${r}` : r;
|
21
|
-
return typeof n == "object" ? c(n, o, s) : s.add(t);
|
22
|
-
}), [...s]) : [];
|
23
|
-
export {
|
24
|
-
b as a,
|
25
|
-
m as g,
|
26
|
-
a as p
|
27
|
-
};
|
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";const p=require("./dash-case-BJEkFEGQ.cjs"),y=require("./parse-styles-3zK35muR.cjs"),o=(e,t=[])=>{if(!e)return"";const s=[],r={};if(Object.entries(e).forEach(([n,c])=>{if(typeof c=="object"){if(!c)return;const u=n.trim(),f=o(c,[...t,u]);s.push(f)}else r[n]=c}),Object.keys(r).length){const n=t.map(p.dashCase).join("-"),c=y.parseStyles(r,`.${n}`);s.push(c)}return s.join(`
|
2
|
-
`)},a=e=>Object.keys(e),j=e=>e?Object.entries(e).reduce((t,[s,r])=>(typeof r=="object"&&(t[s]=i(r).map(n=>`"${n}"`).join(" | ")),t),{}):{},i=(e,t="",s=new Set)=>e?(Object.entries(e).forEach(([r,n])=>{const c=t?`${t}.${r}`:r;return typeof n=="object"?i(n,c,s):s.add(t)}),[...s]):[];exports.getTemplateKeys=a;exports.getTemplateTypes=j;exports.parseTemplates=o;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|